libfuncs.h (LTI_synchronize): New libfunc_index.
[official-gcc.git] / gcc / configure
blob284b644d36f3c57388df252105ddbbe003e124dd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
423 ac_unique_file="tree.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn 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 BUILD_LDFLAGS STMP_FIXINC STMP_FIXPROTO collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN ac_ct_AR STRIP ac_ct_STRIP lt_ECHO objdir enable_fast_install gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines build_file_translate check_languages cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs fortran_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
462 ac_subst_files='language_hooks'
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
923 ac_env_GMPLIBS_set=${GMPLIBS+set}
924 ac_env_GMPLIBS_value=$GMPLIBS
925 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
926 ac_cv_env_GMPLIBS_value=$GMPLIBS
927 ac_env_GMPINC_set=${GMPINC+set}
928 ac_env_GMPINC_value=$GMPINC
929 ac_cv_env_GMPINC_set=${GMPINC+set}
930 ac_cv_env_GMPINC_value=$GMPINC
933 # Report the --help message.
935 if test "$ac_init_help" = "long"; then
936 # Omit some internal or obsolete options to make the list less imposing.
937 # This message is too long to be a string in the A/UX 3.1 sh.
938 cat <<_ACEOF
939 \`configure' configures this package to adapt to many kinds of systems.
941 Usage: $0 [OPTION]... [VAR=VALUE]...
943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
944 VAR=VALUE. See below for descriptions of some of the useful variables.
946 Defaults for the options are specified in brackets.
948 Configuration:
949 -h, --help display this help and exit
950 --help=short display options specific to this package
951 --help=recursive display the short help of all the included packages
952 -V, --version display version information and exit
953 -q, --quiet, --silent do not print \`checking...' messages
954 --cache-file=FILE cache test results in FILE [disabled]
955 -C, --config-cache alias for \`--cache-file=config.cache'
956 -n, --no-create do not create output files
957 --srcdir=DIR find the sources in DIR [configure dir or \`..']
959 _ACEOF
961 cat <<_ACEOF
962 Installation directories:
963 --prefix=PREFIX install architecture-independent files in PREFIX
964 [$ac_default_prefix]
965 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
966 [PREFIX]
968 By default, \`make install' will install all the files in
969 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
970 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971 for instance \`--prefix=\$HOME'.
973 For better control, use the options below.
975 Fine tuning of the installation directories:
976 --bindir=DIR user executables [EPREFIX/bin]
977 --sbindir=DIR system admin executables [EPREFIX/sbin]
978 --libexecdir=DIR program executables [EPREFIX/libexec]
979 --datadir=DIR read-only architecture-independent data [PREFIX/share]
980 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
981 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
982 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
983 --libdir=DIR object code libraries [EPREFIX/lib]
984 --includedir=DIR C header files [PREFIX/include]
985 --oldincludedir=DIR C header files for non-gcc [/usr/include]
986 --infodir=DIR info documentation [PREFIX/info]
987 --mandir=DIR man documentation [PREFIX/man]
988 _ACEOF
990 cat <<\_ACEOF
992 Program names:
993 --program-prefix=PREFIX prepend PREFIX to installed program names
994 --program-suffix=SUFFIX append SUFFIX to installed program names
995 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
997 System types:
998 --build=BUILD configure for building on BUILD [guessed]
999 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1000 --target=TARGET configure for building compilers for TARGET [HOST]
1001 _ACEOF
1004 if test -n "$ac_init_help"; then
1006 cat <<\_ACEOF
1008 Optional Features:
1009 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1010 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1011 --enable-generated-files-in-srcdir
1012 put copies of generated files in source dir
1013 intended for creating source tarballs for users
1014 without texinfo bison or flex.
1015 --enable-werror-always enable -Werror despite compiler version
1016 --enable-checking=LIST
1017 enable expensive run-time checks. With LIST,
1018 enable only specific categories of checks.
1019 Categories are: yes,no,all,none,release.
1020 Flags are: assert,df,fold,gc,gcac,misc,
1021 rtlflag,rtl,runtime,tree,valgrind,types.
1022 --enable-coverage=LEVEL
1023 enable compiler's code coverage collection.
1024 Use to measure compiler performance and locate
1025 unused parts of the compiler. With LEVEL, specify
1026 optimization. Values are opt, noopt,
1027 default is noopt
1028 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1029 --enable-multilib enable library support for multiple ABIs
1030 --enable-__cxa_atexit enable __cxa_atexit for C++
1031 --enable-decimal-float={no,yes,bid,dpd}
1032 enable decimal float extension to C. Selecting 'bid'
1033 or 'dpd' choses which decimal floating point format
1034 to use
1035 --enable-fixed-point enable fixed-point arithmetic extension to C
1036 --enable-threads enable thread usage for target GCC
1037 --enable-threads=LIB use LIB thread package for target GCC
1038 --enable-tls enable or disable generation of tls code
1039 overriding the assembler check for tls support
1040 --enable-objc-gc enable the use of Boehm's garbage collector with
1041 the GNU Objective-C runtime
1042 --disable-shared don't provide a shared libgcc
1043 --enable-intermodule build the compiler in one step
1044 --enable-languages=LIST specify which front-ends to build
1045 --disable-rpath do not hardcode runtime library paths
1046 --enable-initfini-array use .init_array/.fini_array sections
1047 --enable-sjlj-exceptions
1048 arrange to use setjmp/longjmp exception handling
1049 --enable-secureplt enable -msecure-plt by default for PowerPC
1050 --enable-cld enable -mcld by default for 32bit x86
1051 --disable-win32-registry
1052 disable lookup of installation paths in the
1053 Registry on Windows hosts
1054 --enable-win32-registry enable registry lookup (default)
1055 --enable-win32-registry=KEY
1056 use KEY instead of GCC version as the last portion
1057 of the registry key
1058 --enable-shared[=PKGS]
1059 build shared libraries [default=yes]
1060 --enable-static[=PKGS]
1061 build static libraries [default=yes]
1062 --enable-fast-install[=PKGS]
1063 optimize for fast installation [default=yes]
1064 --disable-libtool-lock avoid locking (might break parallel builds)
1065 --enable-maintainer-mode
1066 enable make rules and dependencies not useful
1067 (and sometimes confusing) to the casual installer
1068 --enable-version-specific-runtime-libs
1069 specify that runtime libraries should be
1070 installed in a compiler-specific directory
1072 Optional Packages:
1073 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1074 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1075 --with-build-libsubdir=DIR Directory where to find libraries for build system
1076 --with-local-prefix=DIR specifies directory to put local include
1077 --with-gxx-include-dir=DIR
1078 specifies directory to put g++ header files
1079 --with-cpp-install-dir=DIR
1080 install the user visible C preprocessor in DIR
1081 (relative to PREFIX) as well as PREFIX/bin
1082 --with-gnu-ld arrange to work with GNU ld.
1083 --with-ld arrange to use the specified ld (full pathname)
1084 --with-demangler-in-ld try to use demangler in GNU ld.
1085 --with-gnu-as arrange to work with GNU as
1086 --with-as arrange to use the specified as (full pathname)
1087 --with-stabs arrange to use stabs instead of host debug format
1088 --with-dwarf2 force the default debug format to be DWARF 2
1089 --with-build-sysroot=sysroot
1090 use sysroot as the system root during the build
1091 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1092 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1093 --with-bugurl=URL Direct users to URL to report a bug
1094 --with-gnu-ld assume the C compiler uses GNU ld default=no
1095 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1096 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1097 --with-system-libunwind use installed libunwind
1098 --with-pic try to use only PIC/non-PIC objects [default=use
1099 both]
1100 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1101 --with-long-double-128 Use 128-bit long double by default.
1102 --with-gc={page,zone} choose the garbage collection mechanism to use
1103 with the compiler
1104 --with-system-zlib use installed libz
1105 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1106 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
1107 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
1108 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
1110 Some influential environment variables:
1111 CC C compiler command
1112 CFLAGS C compiler flags
1113 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1114 nonstandard directory <lib dir>
1115 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1116 headers in a nonstandard directory <include dir>
1117 CPP C preprocessor
1118 GMPLIBS How to link GMP
1119 GMPINC How to find GMP include files
1121 Use these variables to override the choices made by `configure' or to help
1122 it to find libraries and programs with nonstandard names/locations.
1124 _ACEOF
1127 if test "$ac_init_help" = "recursive"; then
1128 # If there are subdirs, report their specific --help.
1129 ac_popdir=`pwd`
1130 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1131 test -d $ac_dir || continue
1132 ac_builddir=.
1134 if test "$ac_dir" != .; then
1135 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1136 # A "../" for each directory in $ac_dir_suffix.
1137 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1138 else
1139 ac_dir_suffix= ac_top_builddir=
1142 case $srcdir in
1143 .) # No --srcdir option. We are building in place.
1144 ac_srcdir=.
1145 if test -z "$ac_top_builddir"; then
1146 ac_top_srcdir=.
1147 else
1148 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1149 fi ;;
1150 [\\/]* | ?:[\\/]* ) # Absolute path.
1151 ac_srcdir=$srcdir$ac_dir_suffix;
1152 ac_top_srcdir=$srcdir ;;
1153 *) # Relative path.
1154 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1155 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1156 esac
1158 # Do not use `cd foo && pwd` to compute absolute paths, because
1159 # the directories may not exist.
1160 case `pwd` in
1161 .) ac_abs_builddir="$ac_dir";;
1163 case "$ac_dir" in
1164 .) ac_abs_builddir=`pwd`;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1166 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1167 esac;;
1168 esac
1169 case $ac_abs_builddir in
1170 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1172 case ${ac_top_builddir}. in
1173 .) ac_abs_top_builddir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1175 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1176 esac;;
1177 esac
1178 case $ac_abs_builddir in
1179 .) ac_abs_srcdir=$ac_srcdir;;
1181 case $ac_srcdir in
1182 .) ac_abs_srcdir=$ac_abs_builddir;;
1183 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1184 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1185 esac;;
1186 esac
1187 case $ac_abs_builddir in
1188 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1190 case $ac_top_srcdir in
1191 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1192 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1193 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1194 esac;;
1195 esac
1197 cd $ac_dir
1198 # Check for guested configure; otherwise get Cygnus style configure.
1199 if test -f $ac_srcdir/configure.gnu; then
1200 echo
1201 $SHELL $ac_srcdir/configure.gnu --help=recursive
1202 elif test -f $ac_srcdir/configure; then
1203 echo
1204 $SHELL $ac_srcdir/configure --help=recursive
1205 elif test -f $ac_srcdir/configure.ac ||
1206 test -f $ac_srcdir/configure.in; then
1207 echo
1208 $ac_configure --help
1209 else
1210 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1212 cd $ac_popdir
1213 done
1216 test -n "$ac_init_help" && exit 0
1217 if $ac_init_version; then
1218 cat <<\_ACEOF
1220 Copyright (C) 2003 Free Software Foundation, Inc.
1221 This configure script is free software; the Free Software Foundation
1222 gives unlimited permission to copy, distribute and modify it.
1223 _ACEOF
1224 exit 0
1226 exec 5>config.log
1227 cat >&5 <<_ACEOF
1228 This file contains any messages produced by compilers while
1229 running configure, to aid debugging if configure makes a mistake.
1231 It was created by $as_me, which was
1232 generated by GNU Autoconf 2.59. Invocation command line was
1234 $ $0 $@
1236 _ACEOF
1238 cat <<_ASUNAME
1239 ## --------- ##
1240 ## Platform. ##
1241 ## --------- ##
1243 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1244 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1245 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1246 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1247 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1249 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1250 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1252 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1253 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1254 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1255 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1256 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1257 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1258 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1260 _ASUNAME
1262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1263 for as_dir in $PATH
1265 IFS=$as_save_IFS
1266 test -z "$as_dir" && as_dir=.
1267 echo "PATH: $as_dir"
1268 done
1270 } >&5
1272 cat >&5 <<_ACEOF
1275 ## ----------- ##
1276 ## Core tests. ##
1277 ## ----------- ##
1279 _ACEOF
1282 # Keep a trace of the command line.
1283 # Strip out --no-create and --no-recursion so they do not pile up.
1284 # Strip out --silent because we don't want to record it for future runs.
1285 # Also quote any args containing shell meta-characters.
1286 # Make two passes to allow for proper duplicate-argument suppression.
1287 ac_configure_args=
1288 ac_configure_args0=
1289 ac_configure_args1=
1290 ac_sep=
1291 ac_must_keep_next=false
1292 for ac_pass in 1 2
1294 for ac_arg
1296 case $ac_arg in
1297 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299 | -silent | --silent | --silen | --sile | --sil)
1300 continue ;;
1301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1303 esac
1304 case $ac_pass in
1305 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1307 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1308 if test $ac_must_keep_next = true; then
1309 ac_must_keep_next=false # Got value, back to normal.
1310 else
1311 case $ac_arg in
1312 *=* | --config-cache | -C | -disable-* | --disable-* \
1313 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1314 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1315 | -with-* | --with-* | -without-* | --without-* | --x)
1316 case "$ac_configure_args0 " in
1317 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1318 esac
1320 -* ) ac_must_keep_next=true ;;
1321 esac
1323 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1324 # Get rid of the leading space.
1325 ac_sep=" "
1327 esac
1328 done
1329 done
1330 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1331 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1333 # When interrupted or exit'd, cleanup temporary files, and complete
1334 # config.log. We remove comments because anyway the quotes in there
1335 # would cause problems or look ugly.
1336 # WARNING: Be sure not to use single quotes in there, as some shells,
1337 # such as our DU 5.0 friend, will then `close' the trap.
1338 trap 'exit_status=$?
1339 # Save into config.log some information that might help in debugging.
1341 echo
1343 cat <<\_ASBOX
1344 ## ---------------- ##
1345 ## Cache variables. ##
1346 ## ---------------- ##
1347 _ASBOX
1348 echo
1349 # The following way of writing the cache mishandles newlines in values,
1351 (set) 2>&1 |
1352 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1353 *ac_space=\ *)
1354 sed -n \
1355 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1359 sed -n \
1360 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1362 esac;
1364 echo
1366 cat <<\_ASBOX
1367 ## ----------------- ##
1368 ## Output variables. ##
1369 ## ----------------- ##
1370 _ASBOX
1371 echo
1372 for ac_var in $ac_subst_vars
1374 eval ac_val=$`echo $ac_var`
1375 echo "$ac_var='"'"'$ac_val'"'"'"
1376 done | sort
1377 echo
1379 if test -n "$ac_subst_files"; then
1380 cat <<\_ASBOX
1381 ## ------------- ##
1382 ## Output files. ##
1383 ## ------------- ##
1384 _ASBOX
1385 echo
1386 for ac_var in $ac_subst_files
1388 eval ac_val=$`echo $ac_var`
1389 echo "$ac_var='"'"'$ac_val'"'"'"
1390 done | sort
1391 echo
1394 if test -s confdefs.h; then
1395 cat <<\_ASBOX
1396 ## ----------- ##
1397 ## confdefs.h. ##
1398 ## ----------- ##
1399 _ASBOX
1400 echo
1401 sed "/^$/d" confdefs.h | sort
1402 echo
1404 test "$ac_signal" != 0 &&
1405 echo "$as_me: caught signal $ac_signal"
1406 echo "$as_me: exit $exit_status"
1407 } >&5
1408 rm -f core *.core &&
1409 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1410 exit $exit_status
1412 for ac_signal in 1 2 13 15; do
1413 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1414 done
1415 ac_signal=0
1417 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1418 rm -rf conftest* confdefs.h
1419 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1420 echo >confdefs.h
1422 # Predefined preprocessor variables.
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_NAME "$PACKAGE_NAME"
1426 _ACEOF
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1431 _ACEOF
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1436 _ACEOF
1439 cat >>confdefs.h <<_ACEOF
1440 #define PACKAGE_STRING "$PACKAGE_STRING"
1441 _ACEOF
1444 cat >>confdefs.h <<_ACEOF
1445 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1446 _ACEOF
1449 # Let the site file select an alternate cache file if it wants to.
1450 # Prefer explicitly selected file to automatically selected ones.
1451 if test -z "$CONFIG_SITE"; then
1452 if test "x$prefix" != xNONE; then
1453 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1454 else
1455 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1458 for ac_site_file in $CONFIG_SITE; do
1459 if test -r "$ac_site_file"; then
1460 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1461 echo "$as_me: loading site script $ac_site_file" >&6;}
1462 sed 's/^/| /' "$ac_site_file" >&5
1463 . "$ac_site_file"
1465 done
1467 if test -r "$cache_file"; then
1468 # Some versions of bash will fail to source /dev/null (special
1469 # files actually), so we avoid doing that.
1470 if test -f "$cache_file"; then
1471 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1472 echo "$as_me: loading cache $cache_file" >&6;}
1473 case $cache_file in
1474 [\\/]* | ?:[\\/]* ) . $cache_file;;
1475 *) . ./$cache_file;;
1476 esac
1478 else
1479 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1480 echo "$as_me: creating cache $cache_file" >&6;}
1481 >$cache_file
1484 # Check that the precious variables saved in the cache have kept the same
1485 # value.
1486 ac_cache_corrupted=false
1487 for ac_var in `(set) 2>&1 |
1488 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1489 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1490 eval ac_new_set=\$ac_env_${ac_var}_set
1491 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1492 eval ac_new_val="\$ac_env_${ac_var}_value"
1493 case $ac_old_set,$ac_new_set in
1494 set,)
1495 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1496 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1497 ac_cache_corrupted=: ;;
1498 ,set)
1499 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1500 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1501 ac_cache_corrupted=: ;;
1502 ,);;
1504 if test "x$ac_old_val" != "x$ac_new_val"; then
1505 # differences in whitespace do not lead to failure.
1506 ac_old_val_w=`echo x $ac_old_val`
1507 ac_new_val_w=`echo x $ac_new_val`
1508 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1509 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1510 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1511 ac_cache_corrupted=:
1512 else
1513 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1514 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1515 eval $ac_var=\$ac_old_val
1517 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1518 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1519 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1520 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1521 fi;;
1522 esac
1523 # Pass precious variables to config.status.
1524 if test "$ac_new_set" = set; then
1525 case $ac_new_val in
1526 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1527 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1528 *) ac_arg=$ac_var=$ac_new_val ;;
1529 esac
1530 case " $ac_configure_args " in
1531 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1532 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1533 esac
1535 done
1536 if $ac_cache_corrupted; then
1537 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1538 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1539 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1540 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1541 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1542 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1543 { (exit 1); exit 1; }; }
1546 ac_ext=c
1547 ac_cpp='$CPP $CPPFLAGS'
1548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1574 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1577 gcc_version=`cat $srcdir/BASE-VER`
1579 # Determine the host, build, and target systems
1580 ac_aux_dir=
1581 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1582 if test -f $ac_dir/install-sh; then
1583 ac_aux_dir=$ac_dir
1584 ac_install_sh="$ac_aux_dir/install-sh -c"
1585 break
1586 elif test -f $ac_dir/install.sh; then
1587 ac_aux_dir=$ac_dir
1588 ac_install_sh="$ac_aux_dir/install.sh -c"
1589 break
1590 elif test -f $ac_dir/shtool; then
1591 ac_aux_dir=$ac_dir
1592 ac_install_sh="$ac_aux_dir/shtool install -c"
1593 break
1595 done
1596 if test -z "$ac_aux_dir"; then
1597 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1598 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1599 { (exit 1); exit 1; }; }
1601 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1602 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1603 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1605 # Make sure we can run config.sub.
1606 $ac_config_sub sun4 >/dev/null 2>&1 ||
1607 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1608 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1609 { (exit 1); exit 1; }; }
1611 echo "$as_me:$LINENO: checking build system type" >&5
1612 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1613 if test "${ac_cv_build+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616 ac_cv_build_alias=$build_alias
1617 test -z "$ac_cv_build_alias" &&
1618 ac_cv_build_alias=`$ac_config_guess`
1619 test -z "$ac_cv_build_alias" &&
1620 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1621 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1622 { (exit 1); exit 1; }; }
1623 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1624 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1625 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1626 { (exit 1); exit 1; }; }
1629 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1630 echo "${ECHO_T}$ac_cv_build" >&6
1631 build=$ac_cv_build
1632 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637 echo "$as_me:$LINENO: checking host system type" >&5
1638 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1639 if test "${ac_cv_host+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642 ac_cv_host_alias=$host_alias
1643 test -z "$ac_cv_host_alias" &&
1644 ac_cv_host_alias=$ac_cv_build_alias
1645 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1646 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1647 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1648 { (exit 1); exit 1; }; }
1651 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1652 echo "${ECHO_T}$ac_cv_host" >&6
1653 host=$ac_cv_host
1654 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659 echo "$as_me:$LINENO: checking target system type" >&5
1660 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1661 if test "${ac_cv_target+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664 ac_cv_target_alias=$target_alias
1665 test "x$ac_cv_target_alias" = "x" &&
1666 ac_cv_target_alias=$ac_cv_host_alias
1667 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1668 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1670 { (exit 1); exit 1; }; }
1673 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1674 echo "${ECHO_T}$ac_cv_target" >&6
1675 target=$ac_cv_target
1676 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681 # The aliases save the names the user supplied, while $host etc.
1682 # will get canonicalized.
1683 test -n "$target_alias" &&
1684 test "$program_prefix$program_suffix$program_transform_name" = \
1685 NONENONEs,x,x, &&
1686 program_prefix=${target_alias}-
1688 # Determine the noncanonical target name, for directory use.
1689 case ${build_alias} in
1690 "") build_noncanonical=${build} ;;
1691 *) build_noncanonical=${build_alias} ;;
1692 esac
1694 case ${host_alias} in
1695 "") host_noncanonical=${build_noncanonical} ;;
1696 *) host_noncanonical=${host_alias} ;;
1697 esac
1699 case ${target_alias} in
1700 "") target_noncanonical=${host_noncanonical} ;;
1701 *) target_noncanonical=${target_alias} ;;
1702 esac
1707 # Determine the target- and build-specific subdirectories
1709 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1710 # have matching libraries, they should use host libraries: Makefile.tpl
1711 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1712 # However, they still use the build modules, because the corresponding
1713 # host modules (e.g. bison) are only built for the host when bootstrap
1714 # finishes. So:
1715 # - build_subdir is where we find build modules, and never changes.
1716 # - build_libsubdir is where we find build libraries, and can be overridden.
1718 # Prefix 'build-' so this never conflicts with target_subdir.
1719 build_subdir="build-${build_noncanonical}"
1721 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1722 if test "${with_build_libsubdir+set}" = set; then
1723 withval="$with_build_libsubdir"
1724 build_libsubdir="$withval"
1725 else
1726 build_libsubdir="$build_subdir"
1728 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1729 if ( test $srcdir = . && test -d gcc ) \
1730 || test -d $srcdir/../host-${host_noncanonical}; then
1731 host_subdir="host-${host_noncanonical}"
1732 else
1733 host_subdir=.
1735 # No prefix.
1736 target_subdir=${target_noncanonical}
1739 # Set program_transform_name
1740 test "$program_prefix" != NONE &&
1741 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1742 # Use a double $ so make ignores it.
1743 test "$program_suffix" != NONE &&
1744 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1745 # Double any \ or $. echo might interpret backslashes.
1746 # By default was `s,x,x', remove it if useless.
1747 cat <<\_ACEOF >conftest.sed
1748 s/[\\$]/&&/g;s/;s,x,x,$//
1749 _ACEOF
1750 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1751 rm conftest.sed
1754 # Check for bogus environment variables.
1755 # Test if LIBRARY_PATH contains the notation for the current directory
1756 # since this would lead to problems installing/building glibc.
1757 # LIBRARY_PATH contains the current directory if one of the following
1758 # is true:
1759 # - one of the terminals (":" and ";") is the first or last sign
1760 # - two terminals occur directly after each other
1761 # - the path contains an element with a dot in it
1762 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1763 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1764 case ${LIBRARY_PATH} in
1765 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1766 library_path_setting="contains current directory"
1769 library_path_setting="ok"
1771 esac
1772 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1773 echo "${ECHO_T}$library_path_setting" >&6
1774 if test "$library_path_setting" != "ok"; then
1775 { { echo "$as_me:$LINENO: error:
1776 *** LIBRARY_PATH shouldn't contain the current directory when
1777 *** building gcc. Please change the environment variable
1778 *** and run configure again." >&5
1779 echo "$as_me: error:
1780 *** LIBRARY_PATH shouldn't contain the current directory when
1781 *** building gcc. Please change the environment variable
1782 *** and run configure again." >&2;}
1783 { (exit 1); exit 1; }; }
1786 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1787 # since this would lead to problems installing/building glibc.
1788 # GCC_EXEC_PREFIX contains the current directory if one of the following
1789 # is true:
1790 # - one of the terminals (":" and ";") is the first or last sign
1791 # - two terminals occur directly after each other
1792 # - the path contains an element with a dot in it
1793 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1794 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1795 case ${GCC_EXEC_PREFIX} in
1796 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1797 gcc_exec_prefix_setting="contains current directory"
1800 gcc_exec_prefix_setting="ok"
1802 esac
1803 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1804 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1805 if test "$gcc_exec_prefix_setting" != "ok"; then
1806 { { echo "$as_me:$LINENO: error:
1807 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1808 *** building gcc. Please change the environment variable
1809 *** and run configure again." >&5
1810 echo "$as_me: error:
1811 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1812 *** building gcc. Please change the environment variable
1813 *** and run configure again." >&2;}
1814 { (exit 1); exit 1; }; }
1817 # -----------
1818 # Directories
1819 # -----------
1821 # Specify the local prefix
1822 local_prefix=
1824 # Check whether --with-local-prefix or --without-local-prefix was given.
1825 if test "${with_local_prefix+set}" = set; then
1826 withval="$with_local_prefix"
1827 case "${withval}" in
1828 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1829 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1830 { (exit 1); exit 1; }; } ;;
1831 no) ;;
1832 *) local_prefix=$with_local_prefix ;;
1833 esac
1836 # Default local prefix if it is empty
1837 if test x$local_prefix = x; then
1838 local_prefix=/usr/local
1841 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1842 # passed in by the toplevel make and thus we'd get different behavior
1843 # depending on where we built the sources.
1844 gcc_gxx_include_dir=
1845 # Specify the g++ header file directory
1847 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1848 if test "${with_gxx_include_dir+set}" = set; then
1849 withval="$with_gxx_include_dir"
1850 case "${withval}" in
1851 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1852 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1853 { (exit 1); exit 1; }; } ;;
1854 no) ;;
1855 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1856 esac
1859 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1860 if test x${gcc_gxx_include_dir} = x; then
1861 if test x${enable_version_specific_runtime_libs} = xyes; then
1862 gcc_gxx_include_dir='${libsubdir}/include/c++'
1863 else
1864 libstdcxx_incdir='include/c++/$(version)'
1865 if test x$host != x$target; then
1866 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1868 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1873 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1874 if test "${with_cpp_install_dir+set}" = set; then
1875 withval="$with_cpp_install_dir"
1876 if test x$withval = xyes; then
1877 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1878 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1879 { (exit 1); exit 1; }; }
1880 elif test x$withval != xno; then
1881 cpp_install_dir=$withval
1885 # We would like to our source tree to be readonly. However when releases or
1886 # pre-releases are generated, the flex/bison generated files as well as the
1887 # various formats of manuals need to be included along with the rest of the
1888 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1889 # just that.
1891 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1892 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1893 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1894 if test "${enable_generated_files_in_srcdir+set}" = set; then
1895 enableval="$enable_generated_files_in_srcdir"
1896 generated_files_in_srcdir=$enableval
1897 else
1898 generated_files_in_srcdir=no
1901 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1902 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1904 if test "$generated_files_in_srcdir" = "yes"; then
1905 GENINSRC=''
1906 else
1907 GENINSRC='#'
1911 # -------------------
1912 # Find default linker
1913 # -------------------
1915 # With GNU ld
1917 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1918 if test "${with_gnu_ld+set}" = set; then
1919 withval="$with_gnu_ld"
1920 gnu_ld_flag="$with_gnu_ld"
1921 else
1922 gnu_ld_flag=no
1925 # With pre-defined ld
1927 # Check whether --with-ld or --without-ld was given.
1928 if test "${with_ld+set}" = set; then
1929 withval="$with_ld"
1930 DEFAULT_LINKER="$with_ld"
1932 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1933 if test ! -x "$DEFAULT_LINKER"; then
1934 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1935 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1936 { (exit 1); exit 1; }; }
1937 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1938 gnu_ld_flag=yes
1941 cat >>confdefs.h <<_ACEOF
1942 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1943 _ACEOF
1947 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1949 cat >>confdefs.h <<_ACEOF
1950 #define HAVE_GNU_LD $gnu_ld
1951 _ACEOF
1954 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1955 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1956 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1957 if test x"$gnu_ld_flag" = x"no"; then
1958 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1959 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1960 else
1961 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1962 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1964 else
1965 echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1969 # With demangler in GNU ld
1971 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1972 if test "${with_demangler_in_ld+set}" = set; then
1973 withval="$with_demangler_in_ld"
1974 demangler_in_ld="$with_demangler_in_ld"
1975 else
1976 demangler_in_ld=no
1979 # ----------------------
1980 # Find default assembler
1981 # ----------------------
1983 # With GNU as
1985 # Check whether --with-gnu-as or --without-gnu-as was given.
1986 if test "${with_gnu_as+set}" = set; then
1987 withval="$with_gnu_as"
1988 gas_flag="$with_gnu_as"
1989 else
1990 gas_flag=no
1994 # Check whether --with-as or --without-as was given.
1995 if test "${with_as+set}" = set; then
1996 withval="$with_as"
1997 DEFAULT_ASSEMBLER="$with_as"
1999 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2000 if test ! -x "$DEFAULT_ASSEMBLER"; then
2001 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2002 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2003 { (exit 1); exit 1; }; }
2004 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2005 gas_flag=yes
2008 cat >>confdefs.h <<_ACEOF
2009 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2010 _ACEOF
2014 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2016 cat >>confdefs.h <<_ACEOF
2017 #define HAVE_GNU_AS $gnu_as
2018 _ACEOF
2021 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2022 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2023 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2024 if test x"$gas_flag" = x"no"; then
2025 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2026 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2027 else
2028 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2029 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2031 else
2032 echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2036 # ---------------
2037 # Find C compiler
2038 # ---------------
2040 # If a non-executable a.out is present (e.g. created by GNU as above even if
2041 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2042 # file, even when creating an executable, so an execution test fails.
2043 # Remove possible default executable files to avoid this.
2045 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2046 # Autoconf includes it.
2047 rm -f a.out a.exe b.out
2049 # Find the native compiler
2050 ac_ext=c
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055 if test -n "$ac_tool_prefix"; then
2056 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2057 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_CC+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063 if test -n "$CC"; then
2064 ac_cv_prog_CC="$CC" # Let the user override the test.
2065 else
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH
2069 IFS=$as_save_IFS
2070 test -z "$as_dir" && as_dir=.
2071 for ac_exec_ext in '' $ac_executable_extensions; do
2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 break 2
2077 done
2078 done
2082 CC=$ac_cv_prog_CC
2083 if test -n "$CC"; then
2084 echo "$as_me:$LINENO: result: $CC" >&5
2085 echo "${ECHO_T}$CC" >&6
2086 else
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2092 if test -z "$ac_cv_prog_CC"; then
2093 ac_ct_CC=$CC
2094 # Extract the first word of "gcc", so it can be a program name with args.
2095 set dummy gcc; ac_word=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 if test -n "$ac_ct_CC"; then
2102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2103 else
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2107 IFS=$as_save_IFS
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111 ac_cv_prog_ac_ct_CC="gcc"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 break 2
2115 done
2116 done
2120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2121 if test -n "$ac_ct_CC"; then
2122 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2123 echo "${ECHO_T}$ac_ct_CC" >&6
2124 else
2125 echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6
2129 CC=$ac_ct_CC
2130 else
2131 CC="$ac_cv_prog_CC"
2134 if test -z "$CC"; then
2135 if test -n "$ac_tool_prefix"; then
2136 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2137 set dummy ${ac_tool_prefix}cc; ac_word=$2
2138 echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140 if test "${ac_cv_prog_CC+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143 if test -n "$CC"; then
2144 ac_cv_prog_CC="$CC" # Let the user override the test.
2145 else
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2153 ac_cv_prog_CC="${ac_tool_prefix}cc"
2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 break 2
2157 done
2158 done
2162 CC=$ac_cv_prog_CC
2163 if test -n "$CC"; then
2164 echo "$as_me:$LINENO: result: $CC" >&5
2165 echo "${ECHO_T}$CC" >&6
2166 else
2167 echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6
2172 if test -z "$ac_cv_prog_CC"; then
2173 ac_ct_CC=$CC
2174 # Extract the first word of "cc", so it can be a program name with args.
2175 set dummy cc; ac_word=$2
2176 echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181 if test -n "$ac_ct_CC"; then
2182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2183 else
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191 ac_cv_prog_ac_ct_CC="cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2195 done
2196 done
2200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2201 if test -n "$ac_ct_CC"; then
2202 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2203 echo "${ECHO_T}$ac_ct_CC" >&6
2204 else
2205 echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6
2209 CC=$ac_ct_CC
2210 else
2211 CC="$ac_cv_prog_CC"
2215 if test -z "$CC"; then
2216 # Extract the first word of "cc", so it can be a program name with args.
2217 set dummy cc; ac_word=$2
2218 echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2220 if test "${ac_cv_prog_CC+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2225 else
2226 ac_prog_rejected=no
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2235 ac_prog_rejected=yes
2236 continue
2238 ac_cv_prog_CC="cc"
2239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240 break 2
2242 done
2243 done
2245 if test $ac_prog_rejected = yes; then
2246 # We found a bogon in the path, so make sure we never use it.
2247 set dummy $ac_cv_prog_CC
2248 shift
2249 if test $# != 0; then
2250 # We chose a different compiler from the bogus one.
2251 # However, it has the same basename, so the bogon will be chosen
2252 # first if we set CC to just the basename; use the full file name.
2253 shift
2254 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2259 CC=$ac_cv_prog_CC
2260 if test -n "$CC"; then
2261 echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6
2263 else
2264 echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6
2269 if test -z "$CC"; then
2270 if test -n "$ac_tool_prefix"; then
2271 for ac_prog in cl
2273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2275 echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2277 if test "${ac_cv_prog_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 break 2
2294 done
2295 done
2299 CC=$ac_cv_prog_CC
2300 if test -n "$CC"; then
2301 echo "$as_me:$LINENO: result: $CC" >&5
2302 echo "${ECHO_T}$CC" >&6
2303 else
2304 echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2308 test -n "$CC" && break
2309 done
2311 if test -z "$CC"; then
2312 ac_ct_CC=$CC
2313 for ac_prog in cl
2315 # Extract the first word of "$ac_prog", so it can be a program name with args.
2316 set dummy $ac_prog; ac_word=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 if test -n "$ac_ct_CC"; then
2323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332 ac_cv_prog_ac_ct_CC="$ac_prog"
2333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2336 done
2337 done
2341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2342 if test -n "$ac_ct_CC"; then
2343 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2344 echo "${ECHO_T}$ac_ct_CC" >&6
2345 else
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2350 test -n "$ac_ct_CC" && break
2351 done
2353 CC=$ac_ct_CC
2359 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2360 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: no acceptable C compiler found in \$PATH
2364 See \`config.log' for more details." >&2;}
2365 { (exit 1); exit 1; }; }; }
2367 # Provide some information about the compiler.
2368 echo "$as_me:$LINENO:" \
2369 "checking for C compiler version" >&5
2370 ac_compiler=`set X $ac_compile; echo $2`
2371 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2372 (eval $ac_compiler --version </dev/null >&5) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }
2376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2377 (eval $ac_compiler -v </dev/null >&5) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
2381 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2382 (eval $ac_compiler -V </dev/null >&5) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }
2387 cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h. */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h. */
2395 main ()
2399 return 0;
2401 _ACEOF
2402 ac_clean_files_save=$ac_clean_files
2403 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2404 # Try to create an executable without -o first, disregard a.out.
2405 # It will help us diagnose broken compilers, and finding out an intuition
2406 # of exeext.
2407 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2408 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2409 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411 (eval $ac_link_default) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; then
2415 # Find the output, starting from the most likely. This scheme is
2416 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2417 # resort.
2419 # Be careful to initialize this variable, since it used to be cached.
2420 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2421 ac_cv_exeext=
2422 # b.out is created by i960 compilers.
2423 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2425 test -f "$ac_file" || continue
2426 case $ac_file in
2427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2429 conftest.$ac_ext )
2430 # This is the source file.
2432 [ab].out )
2433 # We found the default executable, but exeext='' is most
2434 # certainly right.
2435 break;;
2436 *.* )
2437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438 # FIXME: I believe we export ac_cv_exeext for Libtool,
2439 # but it would be cool to find out if it's true. Does anybody
2440 # maintain Libtool? --akim.
2441 export ac_cv_exeext
2442 break;;
2444 break;;
2445 esac
2446 done
2447 else
2448 echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2451 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2452 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2454 See \`config.log' for more details." >&5
2455 echo "$as_me: error: C compiler cannot create executables
2456 See \`config.log' for more details." >&2;}
2457 { (exit 77); exit 77; }; }; }
2460 ac_exeext=$ac_cv_exeext
2461 echo "$as_me:$LINENO: result: $ac_file" >&5
2462 echo "${ECHO_T}$ac_file" >&6
2464 # Check the compiler produces executables we can run. If not, either
2465 # the compiler is broken, or we cross compile.
2466 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2467 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2468 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2469 # If not cross compiling, check that we can run a simple program.
2470 if test "$cross_compiling" != yes; then
2471 if { ac_try='./$ac_file'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 (eval $ac_try) 2>&5
2474 ac_status=$?
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 cross_compiling=no
2478 else
2479 if test "$cross_compiling" = maybe; then
2480 cross_compiling=yes
2481 else
2482 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2483 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2485 If you meant to cross compile, use \`--host'.
2486 See \`config.log' for more details." >&5
2487 echo "$as_me: error: cannot run C compiled programs.
2488 If you meant to cross compile, use \`--host'.
2489 See \`config.log' for more details." >&2;}
2490 { (exit 1); exit 1; }; }; }
2494 echo "$as_me:$LINENO: result: yes" >&5
2495 echo "${ECHO_T}yes" >&6
2497 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2498 ac_clean_files=$ac_clean_files_save
2499 # Check the compiler produces executables we can run. If not, either
2500 # the compiler is broken, or we cross compile.
2501 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2502 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2503 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2504 echo "${ECHO_T}$cross_compiling" >&6
2506 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2507 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2509 (eval $ac_link) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; then
2513 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2514 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2515 # work properly (i.e., refer to `conftest.exe'), while it won't with
2516 # `rm'.
2517 for ac_file in conftest.exe conftest conftest.*; do
2518 test -f "$ac_file" || continue
2519 case $ac_file in
2520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2521 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2522 export ac_cv_exeext
2523 break;;
2524 * ) break;;
2525 esac
2526 done
2527 else
2528 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2529 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2530 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }; }
2537 rm -f conftest$ac_cv_exeext
2538 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2539 echo "${ECHO_T}$ac_cv_exeext" >&6
2541 rm -f conftest.$ac_ext
2542 EXEEXT=$ac_cv_exeext
2543 ac_exeext=$EXEEXT
2544 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2545 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2546 if test "${ac_cv_objext+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549 cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h. */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2557 main ()
2561 return 0;
2563 _ACEOF
2564 rm -f conftest.o conftest.obj
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; then
2570 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2571 case $ac_file in
2572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2574 break;;
2575 esac
2576 done
2577 else
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2581 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2582 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2583 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2584 See \`config.log' for more details." >&5
2585 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2586 See \`config.log' for more details." >&2;}
2587 { (exit 1); exit 1; }; }; }
2590 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2592 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2593 echo "${ECHO_T}$ac_cv_objext" >&6
2594 OBJEXT=$ac_cv_objext
2595 ac_objext=$OBJEXT
2596 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2597 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2598 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601 cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h. */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2609 main ()
2611 #ifndef __GNUC__
2612 choke me
2613 #endif
2616 return 0;
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
2622 ac_status=$?
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -z "$ac_c_werror_flag"
2629 || test ! -s conftest.err'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2641 ac_compiler_gnu=yes
2642 else
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2646 ac_compiler_gnu=no
2648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2652 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2653 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2654 GCC=`test $ac_compiler_gnu = yes && echo yes`
2655 ac_test_CFLAGS=${CFLAGS+set}
2656 ac_save_CFLAGS=$CFLAGS
2657 CFLAGS="-g"
2658 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2659 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2660 if test "${ac_cv_prog_cc_g+set}" = set; then
2661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663 cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h. */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2671 main ()
2675 return 0;
2677 _ACEOF
2678 rm -f conftest.$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680 (eval $ac_compile) 2>conftest.er1
2681 ac_status=$?
2682 grep -v '^ *+' conftest.er1 >conftest.err
2683 rm -f conftest.er1
2684 cat conftest.err >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } &&
2687 { ac_try='test -z "$ac_c_werror_flag"
2688 || test ! -s conftest.err'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; } &&
2694 { ac_try='test -s conftest.$ac_objext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2700 ac_cv_prog_cc_g=yes
2701 else
2702 echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2705 ac_cv_prog_cc_g=no
2707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2709 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2710 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2711 if test "$ac_test_CFLAGS" = set; then
2712 CFLAGS=$ac_save_CFLAGS
2713 elif test $ac_cv_prog_cc_g = yes; then
2714 if test "$GCC" = yes; then
2715 CFLAGS="-g -O2"
2716 else
2717 CFLAGS="-g"
2719 else
2720 if test "$GCC" = yes; then
2721 CFLAGS="-O2"
2722 else
2723 CFLAGS=
2726 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2727 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2728 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731 ac_cv_prog_cc_stdc=no
2732 ac_save_CC=$CC
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h. */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2739 #include <stdarg.h>
2740 #include <stdio.h>
2741 #include <sys/types.h>
2742 #include <sys/stat.h>
2743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2744 struct buf { int x; };
2745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2746 static char *e (p, i)
2747 char **p;
2748 int i;
2750 return p[i];
2752 static char *f (char * (*g) (char **, int), char **p, ...)
2754 char *s;
2755 va_list v;
2756 va_start (v,p);
2757 s = g (p, va_arg (v,int));
2758 va_end (v);
2759 return s;
2762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2763 function prototypes and stuff, but not '\xHH' hex character constants.
2764 These don't provoke an error unfortunately, instead are silently treated
2765 as 'x'. The following induces an error, until -std1 is added to get
2766 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2767 array size at least. It's necessary to write '\x00'==0 to get something
2768 that's true only with -std1. */
2769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2771 int test (int i, double x);
2772 struct s1 {int (*f) (int a);};
2773 struct s2 {int (*f) (double a);};
2774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2775 int argc;
2776 char **argv;
2778 main ()
2780 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2782 return 0;
2784 _ACEOF
2785 # Don't try gcc -ansi; that turns off useful extensions and
2786 # breaks some systems' header files.
2787 # AIX -qlanglvl=ansi
2788 # Ultrix and OSF/1 -std1
2789 # HP-UX 10.20 and later -Ae
2790 # HP-UX older versions -Aa -D_HPUX_SOURCE
2791 # SVR4 -Xc -D__EXTENSIONS__
2792 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2794 CC="$ac_save_CC $ac_arg"
2795 rm -f conftest.$ac_objext
2796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797 (eval $ac_compile) 2>conftest.er1
2798 ac_status=$?
2799 grep -v '^ *+' conftest.er1 >conftest.err
2800 rm -f conftest.er1
2801 cat conftest.err >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } &&
2804 { ac_try='test -z "$ac_c_werror_flag"
2805 || test ! -s conftest.err'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; } &&
2811 { ac_try='test -s conftest.$ac_objext'
2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 (eval $ac_try) 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }; }; then
2817 ac_cv_prog_cc_stdc=$ac_arg
2818 break
2819 else
2820 echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2824 rm -f conftest.err conftest.$ac_objext
2825 done
2826 rm -f conftest.$ac_ext conftest.$ac_objext
2827 CC=$ac_save_CC
2831 case "x$ac_cv_prog_cc_stdc" in
2832 x|xno)
2833 echo "$as_me:$LINENO: result: none needed" >&5
2834 echo "${ECHO_T}none needed" >&6 ;;
2836 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2837 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2838 CC="$CC $ac_cv_prog_cc_stdc" ;;
2839 esac
2841 # Some people use a C++ compiler to compile C. Since we use `exit',
2842 # in C++ we need to declare it. In case someone uses the same compiler
2843 # for both compiling C and C++ we need to have the C++ compiler decide
2844 # the declaration of exit, since it's the most demanding environment.
2845 cat >conftest.$ac_ext <<_ACEOF
2846 #ifndef __cplusplus
2847 choke me
2848 #endif
2849 _ACEOF
2850 rm -f conftest.$ac_objext
2851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2852 (eval $ac_compile) 2>conftest.er1
2853 ac_status=$?
2854 grep -v '^ *+' conftest.er1 >conftest.err
2855 rm -f conftest.er1
2856 cat conftest.err >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } &&
2859 { ac_try='test -z "$ac_c_werror_flag"
2860 || test ! -s conftest.err'
2861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 (eval $ac_try) 2>&5
2863 ac_status=$?
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; } &&
2866 { ac_try='test -s conftest.$ac_objext'
2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 (eval $ac_try) 2>&5
2869 ac_status=$?
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; }; then
2872 for ac_declaration in \
2873 '' \
2874 'extern "C" void std::exit (int) throw (); using std::exit;' \
2875 'extern "C" void std::exit (int); using std::exit;' \
2876 'extern "C" void exit (int) throw ();' \
2877 'extern "C" void exit (int);' \
2878 'void exit (int);'
2880 cat >conftest.$ac_ext <<_ACEOF
2881 /* confdefs.h. */
2882 _ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2886 $ac_declaration
2887 #include <stdlib.h>
2889 main ()
2891 exit (42);
2893 return 0;
2895 _ACEOF
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } &&
2905 { ac_try='test -z "$ac_c_werror_flag"
2906 || test ! -s conftest.err'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 (eval $ac_try) 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2919 else
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2923 continue
2925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2926 cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2932 $ac_declaration
2934 main ()
2936 exit (42);
2938 return 0;
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943 (eval $ac_compile) 2>conftest.er1
2944 ac_status=$?
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try='test -z "$ac_c_werror_flag"
2951 || test ! -s conftest.err'
2952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; } &&
2957 { ac_try='test -s conftest.$ac_objext'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 (eval $ac_try) 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; }; then
2963 break
2964 else
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2970 done
2971 rm -f conftest*
2972 if test -n "$ac_declaration"; then
2973 echo '#ifdef __cplusplus' >>confdefs.h
2974 echo $ac_declaration >>confdefs.h
2975 echo '#endif' >>confdefs.h
2978 else
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2984 ac_ext=c
2985 ac_cpp='$CPP $CPPFLAGS'
2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990 if test "x$CC" != xcc; then
2991 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2992 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2993 else
2994 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2995 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2997 set dummy $CC; ac_cc=`echo $2 |
2998 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2999 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002 cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h. */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3010 main ()
3014 return 0;
3016 _ACEOF
3017 # Make sure it works both with $CC and with simple cc.
3018 # We do the test twice because some compilers refuse to overwrite an
3019 # existing .o file with -o, though they will create one.
3020 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3021 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 (eval $ac_try) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); };
3031 then
3032 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3033 if test "x$CC" != xcc; then
3034 # Test first that cc exists at all.
3035 if { ac_try='cc -c conftest.$ac_ext >&5'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 (eval $ac_try) 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
3041 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3042 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 (eval $ac_try) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); };
3052 then
3053 # cc works too.
3055 else
3056 # cc exists but doesn't like -o.
3057 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3061 else
3062 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3064 rm -f conftest*
3067 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3068 echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3070 else
3071 echo "$as_me:$LINENO: result: no" >&5
3072 echo "${ECHO_T}no" >&6
3074 cat >>confdefs.h <<\_ACEOF
3075 #define NO_MINUS_C_MINUS_O 1
3076 _ACEOF
3080 # expand $ac_aux_dir to an absolute path
3081 am_aux_dir=`cd $ac_aux_dir && pwd`
3083 # FIXME: we rely on the cache variable name because
3084 # there is no other way.
3085 set dummy $CC
3086 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3087 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3088 # Losing compiler, so override with the script.
3089 # FIXME: It is wrong to rewrite CC.
3090 # But if we don't then we get into trouble of one sort or another.
3091 # A longer-term fix would be to have automake use am__CC in this case,
3092 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3093 CC="$am_aux_dir/compile $CC"
3099 if test -n "$ac_tool_prefix"; then
3100 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3101 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3102 echo "$as_me:$LINENO: checking for $ac_word" >&5
3103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 if test -n "$GNATBIND"; then
3108 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3121 done
3122 done
3126 GNATBIND=$ac_cv_prog_GNATBIND
3127 if test -n "$GNATBIND"; then
3128 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3129 echo "${ECHO_T}$GNATBIND" >&6
3130 else
3131 echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3136 if test -z "$ac_cv_prog_GNATBIND"; then
3137 ac_ct_GNATBIND=$GNATBIND
3138 # Extract the first word of "gnatbind", so it can be a program name with args.
3139 set dummy gnatbind; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145 if test -n "$ac_ct_GNATBIND"; then
3146 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3159 done
3160 done
3162 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3165 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3166 if test -n "$ac_ct_GNATBIND"; then
3167 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3168 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3169 else
3170 echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3174 GNATBIND=$ac_ct_GNATBIND
3175 else
3176 GNATBIND="$ac_cv_prog_GNATBIND"
3179 if test -n "$ac_tool_prefix"; then
3180 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3181 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3182 echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187 if test -n "$GNATMAKE"; then
3188 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3201 done
3202 done
3206 GNATMAKE=$ac_cv_prog_GNATMAKE
3207 if test -n "$GNATMAKE"; then
3208 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3209 echo "${ECHO_T}$GNATMAKE" >&6
3210 else
3211 echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6
3216 if test -z "$ac_cv_prog_GNATMAKE"; then
3217 ac_ct_GNATMAKE=$GNATMAKE
3218 # Extract the first word of "gnatmake", so it can be a program name with args.
3219 set dummy gnatmake; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225 if test -n "$ac_ct_GNATMAKE"; then
3226 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3239 done
3240 done
3242 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3245 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3246 if test -n "$ac_ct_GNATMAKE"; then
3247 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3248 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3249 else
3250 echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3254 GNATMAKE=$ac_ct_GNATMAKE
3255 else
3256 GNATMAKE="$ac_cv_prog_GNATMAKE"
3259 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3260 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3261 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264 cat >conftest.adb <<EOF
3265 procedure conftest is begin null; end conftest;
3267 acx_cv_cc_gcc_supports_ada=no
3268 # There is a bug in old released versions of GCC which causes the
3269 # driver to exit successfully when the appropriate language module
3270 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3271 # Therefore we must check for the error message as well as an
3272 # unsuccessful exit.
3273 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3274 # given a .adb file, but produce no object file. So we must check
3275 # if an object file was really produced to guard against this.
3276 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3277 if test x"$errors" = x && test -f conftest.$ac_objext; then
3278 acx_cv_cc_gcc_supports_ada=yes
3280 rm -f conftest.*
3282 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3283 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3285 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3286 have_gnat=yes
3287 else
3288 have_gnat=no
3292 # autoconf is lame and doesn't give us any substitution variable for this.
3293 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3294 NO_MINUS_C_MINUS_O=yes
3295 else
3296 OUTPUT_OPTION='-o $@'
3301 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3302 # optimizations to be activated explicitly by the toplevel.
3303 case "$CC" in
3304 */prev-gcc/xgcc*) ;;
3305 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3306 esac
3309 # -------------------------
3310 # Check C compiler features
3311 # -------------------------
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3320 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3321 # On Suns, sometimes $CPP names a directory.
3322 if test -n "$CPP" && test -d "$CPP"; then
3323 CPP=
3325 if test -z "$CPP"; then
3326 if test "${ac_cv_prog_CPP+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329 # Double quotes because CPP needs to be expanded
3330 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3332 ac_preproc_ok=false
3333 for ac_c_preproc_warn_flag in '' yes
3335 # Use a header file that comes with gcc, so configuring glibc
3336 # with a fresh cross-compiler works.
3337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338 # <limits.h> exists even on freestanding compilers.
3339 # On the NeXT, cc -E runs the code through the compiler's parser,
3340 # not just through cpp. "Syntax error" is here to catch this case.
3341 cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h. */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3347 #ifdef __STDC__
3348 # include <limits.h>
3349 #else
3350 # include <assert.h>
3351 #endif
3352 Syntax error
3353 _ACEOF
3354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3356 ac_status=$?
3357 grep -v '^ *+' conftest.er1 >conftest.err
3358 rm -f conftest.er1
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } >/dev/null; then
3362 if test -s conftest.err; then
3363 ac_cpp_err=$ac_c_preproc_warn_flag
3364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3365 else
3366 ac_cpp_err=
3368 else
3369 ac_cpp_err=yes
3371 if test -z "$ac_cpp_err"; then
3373 else
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 # Broken: fails on valid input.
3378 continue
3380 rm -f conftest.err conftest.$ac_ext
3382 # OK, works on sane cases. Now check whether non-existent headers
3383 # can be detected and how.
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390 #include <ac_nonexistent.h>
3391 _ACEOF
3392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } >/dev/null; then
3400 if test -s conftest.err; then
3401 ac_cpp_err=$ac_c_preproc_warn_flag
3402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3403 else
3404 ac_cpp_err=
3406 else
3407 ac_cpp_err=yes
3409 if test -z "$ac_cpp_err"; then
3410 # Broken: success on invalid input.
3411 continue
3412 else
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 # Passes both tests.
3417 ac_preproc_ok=:
3418 break
3420 rm -f conftest.err conftest.$ac_ext
3422 done
3423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3424 rm -f conftest.err conftest.$ac_ext
3425 if $ac_preproc_ok; then
3426 break
3429 done
3430 ac_cv_prog_CPP=$CPP
3433 CPP=$ac_cv_prog_CPP
3434 else
3435 ac_cv_prog_CPP=$CPP
3437 echo "$as_me:$LINENO: result: $CPP" >&5
3438 echo "${ECHO_T}$CPP" >&6
3439 ac_preproc_ok=false
3440 for ac_c_preproc_warn_flag in '' yes
3442 # Use a header file that comes with gcc, so configuring glibc
3443 # with a fresh cross-compiler works.
3444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3445 # <limits.h> exists even on freestanding compilers.
3446 # On the NeXT, cc -E runs the code through the compiler's parser,
3447 # not just through cpp. "Syntax error" is here to catch this case.
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 #ifdef __STDC__
3455 # include <limits.h>
3456 #else
3457 # include <assert.h>
3458 #endif
3459 Syntax error
3460 _ACEOF
3461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3463 ac_status=$?
3464 grep -v '^ *+' conftest.er1 >conftest.err
3465 rm -f conftest.er1
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } >/dev/null; then
3469 if test -s conftest.err; then
3470 ac_cpp_err=$ac_c_preproc_warn_flag
3471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3472 else
3473 ac_cpp_err=
3475 else
3476 ac_cpp_err=yes
3478 if test -z "$ac_cpp_err"; then
3480 else
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 # Broken: fails on valid input.
3485 continue
3487 rm -f conftest.err conftest.$ac_ext
3489 # OK, works on sane cases. Now check whether non-existent headers
3490 # can be detected and how.
3491 cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h. */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3497 #include <ac_nonexistent.h>
3498 _ACEOF
3499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } >/dev/null; then
3507 if test -s conftest.err; then
3508 ac_cpp_err=$ac_c_preproc_warn_flag
3509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3510 else
3511 ac_cpp_err=
3513 else
3514 ac_cpp_err=yes
3516 if test -z "$ac_cpp_err"; then
3517 # Broken: success on invalid input.
3518 continue
3519 else
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 # Passes both tests.
3524 ac_preproc_ok=:
3525 break
3527 rm -f conftest.err conftest.$ac_ext
3529 done
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then
3534 else
3535 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3536 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3538 See \`config.log' for more details." >&5
3539 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3540 See \`config.log' for more details." >&2;}
3541 { (exit 1); exit 1; }; }; }
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 echo "$as_me:$LINENO: checking for egrep" >&5
3552 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3553 if test "${ac_cv_prog_egrep+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3557 then ac_cv_prog_egrep='grep -E'
3558 else ac_cv_prog_egrep='egrep'
3561 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3562 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3563 EGREP=$ac_cv_prog_egrep
3566 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3567 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3568 if test "${ac_cv_header_stdc+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571 cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h. */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577 #include <stdlib.h>
3578 #include <stdarg.h>
3579 #include <string.h>
3580 #include <float.h>
3583 main ()
3587 return 0;
3589 _ACEOF
3590 rm -f conftest.$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>conftest.er1
3593 ac_status=$?
3594 grep -v '^ *+' conftest.er1 >conftest.err
3595 rm -f conftest.er1
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try='test -z "$ac_c_werror_flag"
3600 || test ! -s conftest.err'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 (eval $ac_try) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; } &&
3606 { ac_try='test -s conftest.$ac_objext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3612 ac_cv_header_stdc=yes
3613 else
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 ac_cv_header_stdc=no
3619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3621 if test $ac_cv_header_stdc = yes; then
3622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3623 cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h. */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629 #include <string.h>
3631 _ACEOF
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633 $EGREP "memchr" >/dev/null 2>&1; then
3635 else
3636 ac_cv_header_stdc=no
3638 rm -f conftest*
3642 if test $ac_cv_header_stdc = yes; then
3643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 #include <stdlib.h>
3652 _ACEOF
3653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3654 $EGREP "free" >/dev/null 2>&1; then
3656 else
3657 ac_cv_header_stdc=no
3659 rm -f conftest*
3663 if test $ac_cv_header_stdc = yes; then
3664 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3665 if test "$cross_compiling" = yes; then
3667 else
3668 cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h. */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3674 #include <ctype.h>
3675 #if ((' ' & 0x0FF) == 0x020)
3676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3678 #else
3679 # define ISLOWER(c) \
3680 (('a' <= (c) && (c) <= 'i') \
3681 || ('j' <= (c) && (c) <= 'r') \
3682 || ('s' <= (c) && (c) <= 'z'))
3683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3684 #endif
3686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3688 main ()
3690 int i;
3691 for (i = 0; i < 256; i++)
3692 if (XOR (islower (i), ISLOWER (i))
3693 || toupper (i) != TOUPPER (i))
3694 exit(2);
3695 exit (0);
3697 _ACEOF
3698 rm -f conftest$ac_exeext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3700 (eval $ac_link) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3710 else
3711 echo "$as_me: program exited with status $ac_status" >&5
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3715 ( exit $ac_status )
3716 ac_cv_header_stdc=no
3718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3722 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3723 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3724 if test $ac_cv_header_stdc = yes; then
3726 cat >>confdefs.h <<\_ACEOF
3727 #define STDC_HEADERS 1
3728 _ACEOF
3732 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3742 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3743 inttypes.h stdint.h unistd.h
3745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3746 echo "$as_me:$LINENO: checking for $ac_header" >&5
3747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h. */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3757 $ac_includes_default
3759 #include <$ac_header>
3760 _ACEOF
3761 rm -f conftest.$ac_objext
3762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3763 (eval $ac_compile) 2>conftest.er1
3764 ac_status=$?
3765 grep -v '^ *+' conftest.er1 >conftest.err
3766 rm -f conftest.er1
3767 cat conftest.err >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try='test -z "$ac_c_werror_flag"
3771 || test ! -s conftest.err'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 (eval $ac_try) 2>&5
3774 ac_status=$?
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; } &&
3777 { ac_try='test -s conftest.$ac_objext'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; }; then
3783 eval "$as_ac_Header=yes"
3784 else
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 eval "$as_ac_Header=no"
3790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3795 cat >>confdefs.h <<_ACEOF
3796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3797 _ACEOF
3801 done
3805 if test "${ac_cv_header_minix_config_h+set}" = set; then
3806 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3807 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3808 if test "${ac_cv_header_minix_config_h+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3812 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3813 else
3814 # Is the header compilable?
3815 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3816 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 $ac_includes_default
3824 #include <minix/config.h>
3825 _ACEOF
3826 rm -f conftest.$ac_objext
3827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3828 (eval $ac_compile) 2>conftest.er1
3829 ac_status=$?
3830 grep -v '^ *+' conftest.er1 >conftest.err
3831 rm -f conftest.er1
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } &&
3835 { ac_try='test -z "$ac_c_werror_flag"
3836 || test ! -s conftest.err'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; } &&
3842 { ac_try='test -s conftest.$ac_objext'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 (eval $ac_try) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; }; then
3848 ac_header_compiler=yes
3849 else
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 ac_header_compiler=no
3855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3857 echo "${ECHO_T}$ac_header_compiler" >&6
3859 # Is the header present?
3860 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3861 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3862 cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h. */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 #include <minix/config.h>
3869 _ACEOF
3870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3872 ac_status=$?
3873 grep -v '^ *+' conftest.er1 >conftest.err
3874 rm -f conftest.er1
3875 cat conftest.err >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } >/dev/null; then
3878 if test -s conftest.err; then
3879 ac_cpp_err=$ac_c_preproc_warn_flag
3880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3881 else
3882 ac_cpp_err=
3884 else
3885 ac_cpp_err=yes
3887 if test -z "$ac_cpp_err"; then
3888 ac_header_preproc=yes
3889 else
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 ac_header_preproc=no
3895 rm -f conftest.err conftest.$ac_ext
3896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3897 echo "${ECHO_T}$ac_header_preproc" >&6
3899 # So? What about this header?
3900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3901 yes:no: )
3902 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3903 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3904 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3905 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3906 ac_header_preproc=yes
3908 no:yes:* )
3909 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3910 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3911 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3912 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3913 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3914 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3915 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3916 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3917 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3918 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3919 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3920 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3922 cat <<\_ASBOX
3923 ## ------------------------------------------ ##
3924 ## Report this to the AC_PACKAGE_NAME lists. ##
3925 ## ------------------------------------------ ##
3926 _ASBOX
3928 sed "s/^/$as_me: WARNING: /" >&2
3930 esac
3931 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3932 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3933 if test "${ac_cv_header_minix_config_h+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936 ac_cv_header_minix_config_h=$ac_header_preproc
3938 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3939 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3942 if test $ac_cv_header_minix_config_h = yes; then
3943 MINIX=yes
3944 else
3945 MINIX=
3949 if test "$MINIX" = yes; then
3951 cat >>confdefs.h <<\_ACEOF
3952 #define _POSIX_SOURCE 1
3953 _ACEOF
3956 cat >>confdefs.h <<\_ACEOF
3957 #define _POSIX_1_SOURCE 2
3958 _ACEOF
3961 cat >>confdefs.h <<\_ACEOF
3962 #define _MINIX 1
3963 _ACEOF
3969 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3970 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3971 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974 cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h. */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3981 # define __EXTENSIONS__ 1
3982 $ac_includes_default
3984 main ()
3988 return 0;
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>conftest.er1
3994 ac_status=$?
3995 grep -v '^ *+' conftest.er1 >conftest.err
3996 rm -f conftest.er1
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try='test -z "$ac_c_werror_flag"
4001 || test ! -s conftest.err'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try='test -s conftest.$ac_objext'
4008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 (eval $ac_try) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; }; then
4013 ac_cv_safe_to_define___extensions__=yes
4014 else
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018 ac_cv_safe_to_define___extensions__=no
4020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4022 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4023 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4024 test $ac_cv_safe_to_define___extensions__ = yes &&
4025 cat >>confdefs.h <<\_ACEOF
4026 #define __EXTENSIONS__ 1
4027 _ACEOF
4029 cat >>confdefs.h <<\_ACEOF
4030 #define _ALL_SOURCE 1
4031 _ACEOF
4033 cat >>confdefs.h <<\_ACEOF
4034 #define _GNU_SOURCE 1
4035 _ACEOF
4037 cat >>confdefs.h <<\_ACEOF
4038 #define _POSIX_PTHREAD_SEMANTICS 1
4039 _ACEOF
4041 cat >>confdefs.h <<\_ACEOF
4042 #define _TANDEM_SOURCE 1
4043 _ACEOF
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4052 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4053 # On Suns, sometimes $CPP names a directory.
4054 if test -n "$CPP" && test -d "$CPP"; then
4055 CPP=
4057 if test -z "$CPP"; then
4058 if test "${ac_cv_prog_CPP+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 # Double quotes because CPP needs to be expanded
4062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4064 ac_preproc_ok=false
4065 for ac_c_preproc_warn_flag in '' yes
4067 # Use a header file that comes with gcc, so configuring glibc
4068 # with a fresh cross-compiler works.
4069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070 # <limits.h> exists even on freestanding compilers.
4071 # On the NeXT, cc -E runs the code through the compiler's parser,
4072 # not just through cpp. "Syntax error" is here to catch this case.
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h. */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4079 #ifdef __STDC__
4080 # include <limits.h>
4081 #else
4082 # include <assert.h>
4083 #endif
4084 Syntax error
4085 _ACEOF
4086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } >/dev/null; then
4094 if test -s conftest.err; then
4095 ac_cpp_err=$ac_c_preproc_warn_flag
4096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4097 else
4098 ac_cpp_err=
4100 else
4101 ac_cpp_err=yes
4103 if test -z "$ac_cpp_err"; then
4105 else
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 # Broken: fails on valid input.
4110 continue
4112 rm -f conftest.err conftest.$ac_ext
4114 # OK, works on sane cases. Now check whether non-existent headers
4115 # can be detected and how.
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h. */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <ac_nonexistent.h>
4123 _ACEOF
4124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4126 ac_status=$?
4127 grep -v '^ *+' conftest.er1 >conftest.err
4128 rm -f conftest.er1
4129 cat conftest.err >&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } >/dev/null; then
4132 if test -s conftest.err; then
4133 ac_cpp_err=$ac_c_preproc_warn_flag
4134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4135 else
4136 ac_cpp_err=
4138 else
4139 ac_cpp_err=yes
4141 if test -z "$ac_cpp_err"; then
4142 # Broken: success on invalid input.
4143 continue
4144 else
4145 echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4148 # Passes both tests.
4149 ac_preproc_ok=:
4150 break
4152 rm -f conftest.err conftest.$ac_ext
4154 done
4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156 rm -f conftest.err conftest.$ac_ext
4157 if $ac_preproc_ok; then
4158 break
4161 done
4162 ac_cv_prog_CPP=$CPP
4165 CPP=$ac_cv_prog_CPP
4166 else
4167 ac_cv_prog_CPP=$CPP
4169 echo "$as_me:$LINENO: result: $CPP" >&5
4170 echo "${ECHO_T}$CPP" >&6
4171 ac_preproc_ok=false
4172 for ac_c_preproc_warn_flag in '' yes
4174 # Use a header file that comes with gcc, so configuring glibc
4175 # with a fresh cross-compiler works.
4176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4177 # <limits.h> exists even on freestanding compilers.
4178 # On the NeXT, cc -E runs the code through the compiler's parser,
4179 # not just through cpp. "Syntax error" is here to catch this case.
4180 cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h. */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4186 #ifdef __STDC__
4187 # include <limits.h>
4188 #else
4189 # include <assert.h>
4190 #endif
4191 Syntax error
4192 _ACEOF
4193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } >/dev/null; then
4201 if test -s conftest.err; then
4202 ac_cpp_err=$ac_c_preproc_warn_flag
4203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4204 else
4205 ac_cpp_err=
4207 else
4208 ac_cpp_err=yes
4210 if test -z "$ac_cpp_err"; then
4212 else
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 # Broken: fails on valid input.
4217 continue
4219 rm -f conftest.err conftest.$ac_ext
4221 # OK, works on sane cases. Now check whether non-existent headers
4222 # can be detected and how.
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h. */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <ac_nonexistent.h>
4230 _ACEOF
4231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4233 ac_status=$?
4234 grep -v '^ *+' conftest.er1 >conftest.err
4235 rm -f conftest.er1
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } >/dev/null; then
4239 if test -s conftest.err; then
4240 ac_cpp_err=$ac_c_preproc_warn_flag
4241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4242 else
4243 ac_cpp_err=
4245 else
4246 ac_cpp_err=yes
4248 if test -z "$ac_cpp_err"; then
4249 # Broken: success on invalid input.
4250 continue
4251 else
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 # Passes both tests.
4256 ac_preproc_ok=:
4257 break
4259 rm -f conftest.err conftest.$ac_ext
4261 done
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then
4266 else
4267 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4268 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4270 See \`config.log' for more details." >&5
4271 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4272 See \`config.log' for more details." >&2;}
4273 { (exit 1); exit 1; }; }; }
4276 ac_ext=c
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282 echo "$as_me:$LINENO: checking for inline" >&5
4283 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4284 if test "${ac_cv_c_inline+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287 ac_cv_c_inline=no
4288 for ac_kw in inline __inline__ __inline; do
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h. */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 #ifndef __cplusplus
4296 typedef int foo_t;
4297 static $ac_kw foo_t static_foo () {return 0; }
4298 $ac_kw foo_t foo () {return 0; }
4299 #endif
4301 _ACEOF
4302 rm -f conftest.$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304 (eval $ac_compile) 2>conftest.er1
4305 ac_status=$?
4306 grep -v '^ *+' conftest.er1 >conftest.err
4307 rm -f conftest.er1
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -z "$ac_c_werror_flag"
4312 || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 (eval $ac_try) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_cv_c_inline=$ac_kw; break
4325 else
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331 done
4334 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4335 echo "${ECHO_T}$ac_cv_c_inline" >&6
4338 case $ac_cv_c_inline in
4339 inline | yes) ;;
4341 case $ac_cv_c_inline in
4342 no) ac_val=;;
4343 *) ac_val=$ac_cv_c_inline;;
4344 esac
4345 cat >>confdefs.h <<_ACEOF
4346 #ifndef __cplusplus
4347 #define inline $ac_val
4348 #endif
4349 _ACEOF
4351 esac
4354 # sizeof(char) is 1 by definition.
4355 echo "$as_me:$LINENO: checking for void *" >&5
4356 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4357 if test "${ac_cv_type_void_p+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 cat >conftest.$ac_ext <<_ACEOF
4361 /* confdefs.h. */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4366 $ac_includes_default
4368 main ()
4370 if ((void * *) 0)
4371 return 0;
4372 if (sizeof (void *))
4373 return 0;
4375 return 0;
4377 _ACEOF
4378 rm -f conftest.$ac_objext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4380 (eval $ac_compile) 2>conftest.er1
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag"
4388 || test ! -s conftest.err'
4389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390 (eval $ac_try) 2>&5
4391 ac_status=$?
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); }; } &&
4394 { ac_try='test -s conftest.$ac_objext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 (eval $ac_try) 2>&5
4397 ac_status=$?
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 ac_cv_type_void_p=yes
4401 else
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4405 ac_cv_type_void_p=no
4407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4409 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4410 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4412 echo "$as_me:$LINENO: checking size of void *" >&5
4413 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4414 if test "${ac_cv_sizeof_void_p+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 if test "$ac_cv_type_void_p" = yes; then
4418 # The cast to unsigned long works around a bug in the HP C Compiler
4419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4421 # This bug is HP SR number 8606223364.
4422 if test "$cross_compiling" = yes; then
4423 # Depending upon the size, compute the lo and hi bounds.
4424 cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h. */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 $ac_includes_default
4432 main ()
4434 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4435 test_array [0] = 0
4438 return 0;
4440 _ACEOF
4441 rm -f conftest.$ac_objext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443 (eval $ac_compile) 2>conftest.er1
4444 ac_status=$?
4445 grep -v '^ *+' conftest.er1 >conftest.err
4446 rm -f conftest.er1
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -z "$ac_c_werror_flag"
4451 || test ! -s conftest.err'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453 (eval $ac_try) 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; } &&
4457 { ac_try='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 (eval $ac_try) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 ac_lo=0 ac_mid=0
4464 while :; do
4465 cat >conftest.$ac_ext <<_ACEOF
4466 /* confdefs.h. */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4471 $ac_includes_default
4473 main ()
4475 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4476 test_array [0] = 0
4479 return 0;
4481 _ACEOF
4482 rm -f conftest.$ac_objext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484 (eval $ac_compile) 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } &&
4491 { ac_try='test -z "$ac_c_werror_flag"
4492 || test ! -s conftest.err'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 (eval $ac_try) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; } &&
4498 { ac_try='test -s conftest.$ac_objext'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 ac_hi=$ac_mid; break
4505 else
4506 echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4509 ac_lo=`expr $ac_mid + 1`
4510 if test $ac_lo -le $ac_mid; then
4511 ac_lo= ac_hi=
4512 break
4514 ac_mid=`expr 2 '*' $ac_mid + 1`
4516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4517 done
4518 else
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4522 cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h. */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 $ac_includes_default
4530 main ()
4532 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4533 test_array [0] = 0
4536 return 0;
4538 _ACEOF
4539 rm -f conftest.$ac_objext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>conftest.er1
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag"
4549 || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 ac_hi=-1 ac_mid=-1
4562 while :; do
4563 cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h. */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 $ac_includes_default
4571 main ()
4573 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4574 test_array [0] = 0
4577 return 0;
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_lo=$ac_mid; break
4603 else
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 ac_hi=`expr '(' $ac_mid ')' - 1`
4608 if test $ac_mid -le $ac_hi; then
4609 ac_lo= ac_hi=
4610 break
4612 ac_mid=`expr 2 '*' $ac_mid`
4614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4615 done
4616 else
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 ac_lo= ac_hi=
4622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625 # Binary search between lo and hi bounds.
4626 while test "x$ac_lo" != "x$ac_hi"; do
4627 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4628 cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h. */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 $ac_includes_default
4636 main ()
4638 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4639 test_array [0] = 0
4642 return 0;
4644 _ACEOF
4645 rm -f conftest.$ac_objext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>conftest.er1
4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } &&
4654 { ac_try='test -z "$ac_c_werror_flag"
4655 || test ! -s conftest.err'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; } &&
4661 { ac_try='test -s conftest.$ac_objext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 ac_hi=$ac_mid
4668 else
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4672 ac_lo=`expr '(' $ac_mid ')' + 1`
4674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4675 done
4676 case $ac_lo in
4677 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4678 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4679 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4681 See \`config.log' for more details." >&5
4682 echo "$as_me: error: cannot compute sizeof (void *), 77
4683 See \`config.log' for more details." >&2;}
4684 { (exit 1); exit 1; }; }; } ;;
4685 esac
4686 else
4687 if test "$cross_compiling" = yes; then
4688 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4689 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4691 See \`config.log' for more details." >&5
4692 echo "$as_me: error: cannot run test program while cross compiling
4693 See \`config.log' for more details." >&2;}
4694 { (exit 1); exit 1; }; }; }
4695 else
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h. */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4702 $ac_includes_default
4703 long longval () { return (long) (sizeof (void *)); }
4704 unsigned long ulongval () { return (long) (sizeof (void *)); }
4705 #include <stdio.h>
4706 #include <stdlib.h>
4708 main ()
4711 FILE *f = fopen ("conftest.val", "w");
4712 if (! f)
4713 exit (1);
4714 if (((long) (sizeof (void *))) < 0)
4716 long i = longval ();
4717 if (i != ((long) (sizeof (void *))))
4718 exit (1);
4719 fprintf (f, "%ld\n", i);
4721 else
4723 unsigned long i = ulongval ();
4724 if (i != ((long) (sizeof (void *))))
4725 exit (1);
4726 fprintf (f, "%lu\n", i);
4728 exit (ferror (f) || fclose (f) != 0);
4731 return 0;
4733 _ACEOF
4734 rm -f conftest$ac_exeext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736 (eval $ac_link) 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 ac_cv_sizeof_void_p=`cat conftest.val`
4746 else
4747 echo "$as_me: program exited with status $ac_status" >&5
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4751 ( exit $ac_status )
4752 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4753 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4755 See \`config.log' for more details." >&5
4756 echo "$as_me: error: cannot compute sizeof (void *), 77
4757 See \`config.log' for more details." >&2;}
4758 { (exit 1); exit 1; }; }; }
4760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4763 rm -f conftest.val
4764 else
4765 ac_cv_sizeof_void_p=0
4768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4769 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4770 cat >>confdefs.h <<_ACEOF
4771 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4772 _ACEOF
4775 echo "$as_me:$LINENO: checking for short" >&5
4776 echo $ECHO_N "checking for short... $ECHO_C" >&6
4777 if test "${ac_cv_type_short+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 $ac_includes_default
4788 main ()
4790 if ((short *) 0)
4791 return 0;
4792 if (sizeof (short))
4793 return 0;
4795 return 0;
4797 _ACEOF
4798 rm -f conftest.$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800 (eval $ac_compile) 2>conftest.er1
4801 ac_status=$?
4802 grep -v '^ *+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try='test -z "$ac_c_werror_flag"
4808 || test ! -s conftest.err'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; } &&
4814 { ac_try='test -s conftest.$ac_objext'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 (eval $ac_try) 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; }; then
4820 ac_cv_type_short=yes
4821 else
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4825 ac_cv_type_short=no
4827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4829 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4830 echo "${ECHO_T}$ac_cv_type_short" >&6
4832 echo "$as_me:$LINENO: checking size of short" >&5
4833 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4834 if test "${ac_cv_sizeof_short+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837 if test "$ac_cv_type_short" = yes; then
4838 # The cast to unsigned long works around a bug in the HP C Compiler
4839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4841 # This bug is HP SR number 8606223364.
4842 if test "$cross_compiling" = yes; then
4843 # Depending upon the size, compute the lo and hi bounds.
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h. */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 $ac_includes_default
4852 main ()
4854 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4855 test_array [0] = 0
4858 return 0;
4860 _ACEOF
4861 rm -f conftest.$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863 (eval $ac_compile) 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try='test -z "$ac_c_werror_flag"
4871 || test ! -s conftest.err'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; } &&
4877 { ac_try='test -s conftest.$ac_objext'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 (eval $ac_try) 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; }; then
4883 ac_lo=0 ac_mid=0
4884 while :; do
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 $ac_includes_default
4893 main ()
4895 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4896 test_array [0] = 0
4899 return 0;
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -z "$ac_c_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_hi=$ac_mid; break
4925 else
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4929 ac_lo=`expr $ac_mid + 1`
4930 if test $ac_lo -le $ac_mid; then
4931 ac_lo= ac_hi=
4932 break
4934 ac_mid=`expr 2 '*' $ac_mid + 1`
4936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937 done
4938 else
4939 echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 $ac_includes_default
4950 main ()
4952 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4953 test_array [0] = 0
4956 return 0;
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -z "$ac_c_werror_flag"
4969 || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try='test -s conftest.$ac_objext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 (eval $ac_try) 2>&5
4978 ac_status=$?
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_hi=-1 ac_mid=-1
4982 while :; do
4983 cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h. */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 $ac_includes_default
4991 main ()
4993 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4994 test_array [0] = 0
4997 return 0;
4999 _ACEOF
5000 rm -f conftest.$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try='test -z "$ac_c_werror_flag"
5010 || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5022 ac_lo=$ac_mid; break
5023 else
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5027 ac_hi=`expr '(' $ac_mid ')' - 1`
5028 if test $ac_mid -le $ac_hi; then
5029 ac_lo= ac_hi=
5030 break
5032 ac_mid=`expr 2 '*' $ac_mid`
5034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035 done
5036 else
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 ac_lo= ac_hi=
5042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5045 # Binary search between lo and hi bounds.
5046 while test "x$ac_lo" != "x$ac_hi"; do
5047 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5054 $ac_includes_default
5056 main ()
5058 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5059 test_array [0] = 0
5062 return 0;
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 ac_hi=$ac_mid
5088 else
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 ac_lo=`expr '(' $ac_mid ')' + 1`
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 done
5096 case $ac_lo in
5097 ?*) ac_cv_sizeof_short=$ac_lo;;
5098 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5099 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5101 See \`config.log' for more details." >&5
5102 echo "$as_me: error: cannot compute sizeof (short), 77
5103 See \`config.log' for more details." >&2;}
5104 { (exit 1); exit 1; }; }; } ;;
5105 esac
5106 else
5107 if test "$cross_compiling" = yes; then
5108 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5109 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5110 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5111 See \`config.log' for more details." >&5
5112 echo "$as_me: error: cannot run test program while cross compiling
5113 See \`config.log' for more details." >&2;}
5114 { (exit 1); exit 1; }; }; }
5115 else
5116 cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h. */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 $ac_includes_default
5123 long longval () { return (long) (sizeof (short)); }
5124 unsigned long ulongval () { return (long) (sizeof (short)); }
5125 #include <stdio.h>
5126 #include <stdlib.h>
5128 main ()
5131 FILE *f = fopen ("conftest.val", "w");
5132 if (! f)
5133 exit (1);
5134 if (((long) (sizeof (short))) < 0)
5136 long i = longval ();
5137 if (i != ((long) (sizeof (short))))
5138 exit (1);
5139 fprintf (f, "%ld\n", i);
5141 else
5143 unsigned long i = ulongval ();
5144 if (i != ((long) (sizeof (short))))
5145 exit (1);
5146 fprintf (f, "%lu\n", i);
5148 exit (ferror (f) || fclose (f) != 0);
5151 return 0;
5153 _ACEOF
5154 rm -f conftest$ac_exeext
5155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5156 (eval $ac_link) 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 (eval $ac_try) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_cv_sizeof_short=`cat conftest.val`
5166 else
5167 echo "$as_me: program exited with status $ac_status" >&5
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5171 ( exit $ac_status )
5172 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5173 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5175 See \`config.log' for more details." >&5
5176 echo "$as_me: error: cannot compute sizeof (short), 77
5177 See \`config.log' for more details." >&2;}
5178 { (exit 1); exit 1; }; }; }
5180 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5183 rm -f conftest.val
5184 else
5185 ac_cv_sizeof_short=0
5188 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5189 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5190 cat >>confdefs.h <<_ACEOF
5191 #define SIZEOF_SHORT $ac_cv_sizeof_short
5192 _ACEOF
5195 echo "$as_me:$LINENO: checking for int" >&5
5196 echo $ECHO_N "checking for int... $ECHO_C" >&6
5197 if test "${ac_cv_type_int+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h. */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5206 $ac_includes_default
5208 main ()
5210 if ((int *) 0)
5211 return 0;
5212 if (sizeof (int))
5213 return 0;
5215 return 0;
5217 _ACEOF
5218 rm -f conftest.$ac_objext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5220 (eval $ac_compile) 2>conftest.er1
5221 ac_status=$?
5222 grep -v '^ *+' conftest.er1 >conftest.err
5223 rm -f conftest.er1
5224 cat conftest.err >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } &&
5227 { ac_try='test -z "$ac_c_werror_flag"
5228 || test ! -s conftest.err'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 (eval $ac_try) 2>&5
5231 ac_status=$?
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; } &&
5234 { ac_try='test -s conftest.$ac_objext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 (eval $ac_try) 2>&5
5237 ac_status=$?
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5240 ac_cv_type_int=yes
5241 else
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5245 ac_cv_type_int=no
5247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5250 echo "${ECHO_T}$ac_cv_type_int" >&6
5252 echo "$as_me:$LINENO: checking size of int" >&5
5253 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5254 if test "${ac_cv_sizeof_int+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257 if test "$ac_cv_type_int" = yes; then
5258 # The cast to unsigned long works around a bug in the HP C Compiler
5259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5261 # This bug is HP SR number 8606223364.
5262 if test "$cross_compiling" = yes; then
5263 # Depending upon the size, compute the lo and hi bounds.
5264 cat >conftest.$ac_ext <<_ACEOF
5265 /* confdefs.h. */
5266 _ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5270 $ac_includes_default
5272 main ()
5274 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5275 test_array [0] = 0
5278 return 0;
5280 _ACEOF
5281 rm -f conftest.$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283 (eval $ac_compile) 2>conftest.er1
5284 ac_status=$?
5285 grep -v '^ *+' conftest.er1 >conftest.err
5286 rm -f conftest.er1
5287 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } &&
5290 { ac_try='test -z "$ac_c_werror_flag"
5291 || test ! -s conftest.err'
5292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 (eval $ac_try) 2>&5
5294 ac_status=$?
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); }; } &&
5297 { ac_try='test -s conftest.$ac_objext'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; }; then
5303 ac_lo=0 ac_mid=0
5304 while :; do
5305 cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h. */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 $ac_includes_default
5313 main ()
5315 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5316 test_array [0] = 0
5319 return 0;
5321 _ACEOF
5322 rm -f conftest.$ac_objext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324 (eval $ac_compile) 2>conftest.er1
5325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } &&
5331 { ac_try='test -z "$ac_c_werror_flag"
5332 || test ! -s conftest.err'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 (eval $ac_try) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_hi=$ac_mid; break
5345 else
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 ac_lo=`expr $ac_mid + 1`
5350 if test $ac_lo -le $ac_mid; then
5351 ac_lo= ac_hi=
5352 break
5354 ac_mid=`expr 2 '*' $ac_mid + 1`
5356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357 done
5358 else
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h. */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 $ac_includes_default
5370 main ()
5372 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5373 test_array [0] = 0
5376 return 0;
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381 (eval $ac_compile) 2>conftest.er1
5382 ac_status=$?
5383 grep -v '^ *+' conftest.er1 >conftest.err
5384 rm -f conftest.er1
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } &&
5388 { ac_try='test -z "$ac_c_werror_flag"
5389 || test ! -s conftest.err'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 (eval $ac_try) 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; } &&
5395 { ac_try='test -s conftest.$ac_objext'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 (eval $ac_try) 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5401 ac_hi=-1 ac_mid=-1
5402 while :; do
5403 cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h. */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 $ac_includes_default
5411 main ()
5413 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5414 test_array [0] = 0
5417 return 0;
5419 _ACEOF
5420 rm -f conftest.$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag"
5430 || test ! -s conftest.err'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 (eval $ac_try) 2>&5
5433 ac_status=$?
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; } &&
5436 { ac_try='test -s conftest.$ac_objext'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 (eval $ac_try) 2>&5
5439 ac_status=$?
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 ac_lo=$ac_mid; break
5443 else
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5447 ac_hi=`expr '(' $ac_mid ')' - 1`
5448 if test $ac_mid -le $ac_hi; then
5449 ac_lo= ac_hi=
5450 break
5452 ac_mid=`expr 2 '*' $ac_mid`
5454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5455 done
5456 else
5457 echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5460 ac_lo= ac_hi=
5462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5465 # Binary search between lo and hi bounds.
5466 while test "x$ac_lo" != "x$ac_hi"; do
5467 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5468 cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h. */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h. */
5474 $ac_includes_default
5476 main ()
5478 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5479 test_array [0] = 0
5482 return 0;
5484 _ACEOF
5485 rm -f conftest.$ac_objext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487 (eval $ac_compile) 2>conftest.er1
5488 ac_status=$?
5489 grep -v '^ *+' conftest.er1 >conftest.err
5490 rm -f conftest.er1
5491 cat conftest.err >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } &&
5494 { ac_try='test -z "$ac_c_werror_flag"
5495 || test ! -s conftest.err'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 (eval $ac_try) 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; } &&
5501 { ac_try='test -s conftest.$ac_objext'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 (eval $ac_try) 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
5507 ac_hi=$ac_mid
5508 else
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 ac_lo=`expr '(' $ac_mid ')' + 1`
5514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5515 done
5516 case $ac_lo in
5517 ?*) ac_cv_sizeof_int=$ac_lo;;
5518 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5519 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5520 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5521 See \`config.log' for more details." >&5
5522 echo "$as_me: error: cannot compute sizeof (int), 77
5523 See \`config.log' for more details." >&2;}
5524 { (exit 1); exit 1; }; }; } ;;
5525 esac
5526 else
5527 if test "$cross_compiling" = yes; then
5528 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5529 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5530 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5531 See \`config.log' for more details." >&5
5532 echo "$as_me: error: cannot run test program while cross compiling
5533 See \`config.log' for more details." >&2;}
5534 { (exit 1); exit 1; }; }; }
5535 else
5536 cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h. */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 $ac_includes_default
5543 long longval () { return (long) (sizeof (int)); }
5544 unsigned long ulongval () { return (long) (sizeof (int)); }
5545 #include <stdio.h>
5546 #include <stdlib.h>
5548 main ()
5551 FILE *f = fopen ("conftest.val", "w");
5552 if (! f)
5553 exit (1);
5554 if (((long) (sizeof (int))) < 0)
5556 long i = longval ();
5557 if (i != ((long) (sizeof (int))))
5558 exit (1);
5559 fprintf (f, "%ld\n", i);
5561 else
5563 unsigned long i = ulongval ();
5564 if (i != ((long) (sizeof (int))))
5565 exit (1);
5566 fprintf (f, "%lu\n", i);
5568 exit (ferror (f) || fclose (f) != 0);
5571 return 0;
5573 _ACEOF
5574 rm -f conftest$ac_exeext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5576 (eval $ac_link) 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 (eval $ac_try) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; }; then
5585 ac_cv_sizeof_int=`cat conftest.val`
5586 else
5587 echo "$as_me: program exited with status $ac_status" >&5
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5591 ( exit $ac_status )
5592 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5593 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5594 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5595 See \`config.log' for more details." >&5
5596 echo "$as_me: error: cannot compute sizeof (int), 77
5597 See \`config.log' for more details." >&2;}
5598 { (exit 1); exit 1; }; }; }
5600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5603 rm -f conftest.val
5604 else
5605 ac_cv_sizeof_int=0
5608 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5609 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5610 cat >>confdefs.h <<_ACEOF
5611 #define SIZEOF_INT $ac_cv_sizeof_int
5612 _ACEOF
5615 echo "$as_me:$LINENO: checking for long" >&5
5616 echo $ECHO_N "checking for long... $ECHO_C" >&6
5617 if test "${ac_cv_type_long+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 else
5620 cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626 $ac_includes_default
5628 main ()
5630 if ((long *) 0)
5631 return 0;
5632 if (sizeof (long))
5633 return 0;
5635 return 0;
5637 _ACEOF
5638 rm -f conftest.$ac_objext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640 (eval $ac_compile) 2>conftest.er1
5641 ac_status=$?
5642 grep -v '^ *+' conftest.er1 >conftest.err
5643 rm -f conftest.er1
5644 cat conftest.err >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try='test -z "$ac_c_werror_flag"
5648 || test ! -s conftest.err'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 (eval $ac_try) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; } &&
5654 { ac_try='test -s conftest.$ac_objext'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 (eval $ac_try) 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; }; then
5660 ac_cv_type_long=yes
5661 else
5662 echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5665 ac_cv_type_long=no
5667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5669 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5670 echo "${ECHO_T}$ac_cv_type_long" >&6
5672 echo "$as_me:$LINENO: checking size of long" >&5
5673 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5674 if test "${ac_cv_sizeof_long+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677 if test "$ac_cv_type_long" = yes; then
5678 # The cast to unsigned long works around a bug in the HP C Compiler
5679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5681 # This bug is HP SR number 8606223364.
5682 if test "$cross_compiling" = yes; then
5683 # Depending upon the size, compute the lo and hi bounds.
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h. */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 $ac_includes_default
5692 main ()
5694 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5695 test_array [0] = 0
5698 return 0;
5700 _ACEOF
5701 rm -f conftest.$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_lo=0 ac_mid=0
5724 while :; do
5725 cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h. */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 $ac_includes_default
5733 main ()
5735 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5736 test_array [0] = 0
5739 return 0;
5741 _ACEOF
5742 rm -f conftest.$ac_objext
5743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5744 (eval $ac_compile) 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } &&
5751 { ac_try='test -z "$ac_c_werror_flag"
5752 || test ! -s conftest.err'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 (eval $ac_try) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; } &&
5758 { ac_try='test -s conftest.$ac_objext'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 (eval $ac_try) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5764 ac_hi=$ac_mid; break
5765 else
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5769 ac_lo=`expr $ac_mid + 1`
5770 if test $ac_lo -le $ac_mid; then
5771 ac_lo= ac_hi=
5772 break
5774 ac_mid=`expr 2 '*' $ac_mid + 1`
5776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5777 done
5778 else
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h. */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 $ac_includes_default
5790 main ()
5792 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5793 test_array [0] = 0
5796 return 0;
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801 (eval $ac_compile) 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -z "$ac_c_werror_flag"
5809 || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 (eval $ac_try) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 ac_hi=-1 ac_mid=-1
5822 while :; do
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5831 main ()
5833 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5834 test_array [0] = 0
5837 return 0;
5839 _ACEOF
5840 rm -f conftest.$ac_objext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842 (eval $ac_compile) 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag"
5850 || test ! -s conftest.err'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 (eval $ac_try) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; } &&
5856 { ac_try='test -s conftest.$ac_objext'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 (eval $ac_try) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5862 ac_lo=$ac_mid; break
5863 else
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5867 ac_hi=`expr '(' $ac_mid ')' - 1`
5868 if test $ac_mid -le $ac_hi; then
5869 ac_lo= ac_hi=
5870 break
5872 ac_mid=`expr 2 '*' $ac_mid`
5874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5875 done
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 ac_lo= ac_hi=
5882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5885 # Binary search between lo and hi bounds.
5886 while test "x$ac_lo" != "x$ac_hi"; do
5887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5888 cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h. */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 $ac_includes_default
5896 main ()
5898 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5899 test_array [0] = 0
5902 return 0;
5904 _ACEOF
5905 rm -f conftest.$ac_objext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -z "$ac_c_werror_flag"
5915 || test ! -s conftest.err'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 (eval $ac_try) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; } &&
5921 { ac_try='test -s conftest.$ac_objext'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 (eval $ac_try) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5927 ac_hi=$ac_mid
5928 else
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5932 ac_lo=`expr '(' $ac_mid ')' + 1`
5934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5935 done
5936 case $ac_lo in
5937 ?*) ac_cv_sizeof_long=$ac_lo;;
5938 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5939 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5941 See \`config.log' for more details." >&5
5942 echo "$as_me: error: cannot compute sizeof (long), 77
5943 See \`config.log' for more details." >&2;}
5944 { (exit 1); exit 1; }; }; } ;;
5945 esac
5946 else
5947 if test "$cross_compiling" = yes; then
5948 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5949 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5950 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5951 See \`config.log' for more details." >&5
5952 echo "$as_me: error: cannot run test program while cross compiling
5953 See \`config.log' for more details." >&2;}
5954 { (exit 1); exit 1; }; }; }
5955 else
5956 cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h. */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 $ac_includes_default
5963 long longval () { return (long) (sizeof (long)); }
5964 unsigned long ulongval () { return (long) (sizeof (long)); }
5965 #include <stdio.h>
5966 #include <stdlib.h>
5968 main ()
5971 FILE *f = fopen ("conftest.val", "w");
5972 if (! f)
5973 exit (1);
5974 if (((long) (sizeof (long))) < 0)
5976 long i = longval ();
5977 if (i != ((long) (sizeof (long))))
5978 exit (1);
5979 fprintf (f, "%ld\n", i);
5981 else
5983 unsigned long i = ulongval ();
5984 if (i != ((long) (sizeof (long))))
5985 exit (1);
5986 fprintf (f, "%lu\n", i);
5988 exit (ferror (f) || fclose (f) != 0);
5991 return 0;
5993 _ACEOF
5994 rm -f conftest$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996 (eval $ac_link) 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_sizeof_long=`cat conftest.val`
6006 else
6007 echo "$as_me: program exited with status $ac_status" >&5
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6011 ( exit $ac_status )
6012 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6013 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6015 See \`config.log' for more details." >&5
6016 echo "$as_me: error: cannot compute sizeof (long), 77
6017 See \`config.log' for more details." >&2;}
6018 { (exit 1); exit 1; }; }; }
6020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6023 rm -f conftest.val
6024 else
6025 ac_cv_sizeof_long=0
6028 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6029 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6030 cat >>confdefs.h <<_ACEOF
6031 #define SIZEOF_LONG $ac_cv_sizeof_long
6032 _ACEOF
6035 echo "$as_me:$LINENO: checking for long long" >&5
6036 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6037 if test "${ac_cv_type_long_long+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040 cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h. */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 $ac_includes_default
6048 main ()
6050 if ((long long *) 0)
6051 return 0;
6052 if (sizeof (long long))
6053 return 0;
6055 return 0;
6057 _ACEOF
6058 rm -f conftest.$ac_objext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>conftest.er1
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } &&
6067 { ac_try='test -z "$ac_c_werror_flag"
6068 || test ! -s conftest.err'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 (eval $ac_try) 2>&5
6071 ac_status=$?
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; } &&
6074 { ac_try='test -s conftest.$ac_objext'
6075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 (eval $ac_try) 2>&5
6077 ac_status=$?
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; }; then
6080 ac_cv_type_long_long=yes
6081 else
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 ac_cv_type_long_long=no
6087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6089 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6090 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6091 if test $ac_cv_type_long_long = yes; then
6093 cat >>confdefs.h <<_ACEOF
6094 #define HAVE_LONG_LONG 1
6095 _ACEOF
6097 echo "$as_me:$LINENO: checking for long long" >&5
6098 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6099 if test "${ac_cv_type_long_long+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 $ac_includes_default
6110 main ()
6112 if ((long long *) 0)
6113 return 0;
6114 if (sizeof (long long))
6115 return 0;
6117 return 0;
6119 _ACEOF
6120 rm -f conftest.$ac_objext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122 (eval $ac_compile) 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -z "$ac_c_werror_flag"
6130 || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try='test -s conftest.$ac_objext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_type_long_long=yes
6143 else
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_cv_type_long_long=no
6149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6151 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6152 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6154 echo "$as_me:$LINENO: checking size of long long" >&5
6155 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6156 if test "${ac_cv_sizeof_long_long+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 if test "$ac_cv_type_long_long" = yes; then
6160 # The cast to unsigned long works around a bug in the HP C Compiler
6161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6163 # This bug is HP SR number 8606223364.
6164 if test "$cross_compiling" = yes; then
6165 # Depending upon the size, compute the lo and hi bounds.
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h. */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172 $ac_includes_default
6174 main ()
6176 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6177 test_array [0] = 0
6180 return 0;
6182 _ACEOF
6183 rm -f conftest.$ac_objext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185 (eval $ac_compile) 2>conftest.er1
6186 ac_status=$?
6187 grep -v '^ *+' conftest.er1 >conftest.err
6188 rm -f conftest.er1
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -z "$ac_c_werror_flag"
6193 || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 ac_lo=0 ac_mid=0
6206 while :; do
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6215 main ()
6217 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6218 test_array [0] = 0
6221 return 0;
6223 _ACEOF
6224 rm -f conftest.$ac_objext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226 (eval $ac_compile) 2>conftest.er1
6227 ac_status=$?
6228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try='test -z "$ac_c_werror_flag"
6234 || test ! -s conftest.err'
6235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 (eval $ac_try) 2>&5
6237 ac_status=$?
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); }; } &&
6240 { ac_try='test -s conftest.$ac_objext'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 (eval $ac_try) 2>&5
6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; }; then
6246 ac_hi=$ac_mid; break
6247 else
6248 echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6251 ac_lo=`expr $ac_mid + 1`
6252 if test $ac_lo -le $ac_mid; then
6253 ac_lo= ac_hi=
6254 break
6256 ac_mid=`expr 2 '*' $ac_mid + 1`
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259 done
6260 else
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h. */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 $ac_includes_default
6272 main ()
6274 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6275 test_array [0] = 0
6278 return 0;
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283 (eval $ac_compile) 2>conftest.er1
6284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_hi=-1 ac_mid=-1
6304 while :; do
6305 cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h. */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 $ac_includes_default
6313 main ()
6315 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6316 test_array [0] = 0
6319 return 0;
6321 _ACEOF
6322 rm -f conftest.$ac_objext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324 (eval $ac_compile) 2>conftest.er1
6325 ac_status=$?
6326 grep -v '^ *+' conftest.er1 >conftest.err
6327 rm -f conftest.er1
6328 cat conftest.err >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } &&
6331 { ac_try='test -z "$ac_c_werror_flag"
6332 || test ! -s conftest.err'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; } &&
6338 { ac_try='test -s conftest.$ac_objext'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 (eval $ac_try) 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 ac_lo=$ac_mid; break
6345 else
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6349 ac_hi=`expr '(' $ac_mid ')' - 1`
6350 if test $ac_mid -le $ac_hi; then
6351 ac_lo= ac_hi=
6352 break
6354 ac_mid=`expr 2 '*' $ac_mid`
6356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6357 done
6358 else
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 ac_lo= ac_hi=
6364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367 # Binary search between lo and hi bounds.
6368 while test "x$ac_lo" != "x$ac_hi"; do
6369 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6370 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 $ac_includes_default
6378 main ()
6380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6381 test_array [0] = 0
6384 return 0;
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399 (eval $ac_try) 2>&5
6400 ac_status=$?
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest.$ac_objext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405 (eval $ac_try) 2>&5
6406 ac_status=$?
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 ac_hi=$ac_mid
6410 else
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 ac_lo=`expr '(' $ac_mid ')' + 1`
6416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6417 done
6418 case $ac_lo in
6419 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6420 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6421 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6422 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6423 See \`config.log' for more details." >&5
6424 echo "$as_me: error: cannot compute sizeof (long long), 77
6425 See \`config.log' for more details." >&2;}
6426 { (exit 1); exit 1; }; }; } ;;
6427 esac
6428 else
6429 if test "$cross_compiling" = yes; then
6430 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6431 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6433 See \`config.log' for more details." >&5
6434 echo "$as_me: error: cannot run test program while cross compiling
6435 See \`config.log' for more details." >&2;}
6436 { (exit 1); exit 1; }; }; }
6437 else
6438 cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h. */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 $ac_includes_default
6445 long longval () { return (long) (sizeof (long long)); }
6446 unsigned long ulongval () { return (long) (sizeof (long long)); }
6447 #include <stdio.h>
6448 #include <stdlib.h>
6450 main ()
6453 FILE *f = fopen ("conftest.val", "w");
6454 if (! f)
6455 exit (1);
6456 if (((long) (sizeof (long long))) < 0)
6458 long i = longval ();
6459 if (i != ((long) (sizeof (long long))))
6460 exit (1);
6461 fprintf (f, "%ld\n", i);
6463 else
6465 unsigned long i = ulongval ();
6466 if (i != ((long) (sizeof (long long))))
6467 exit (1);
6468 fprintf (f, "%lu\n", i);
6470 exit (ferror (f) || fclose (f) != 0);
6473 return 0;
6475 _ACEOF
6476 rm -f conftest$ac_exeext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478 (eval $ac_link) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 (eval $ac_try) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
6487 ac_cv_sizeof_long_long=`cat conftest.val`
6488 else
6489 echo "$as_me: program exited with status $ac_status" >&5
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6493 ( exit $ac_status )
6494 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6495 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6496 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6497 See \`config.log' for more details." >&5
6498 echo "$as_me: error: cannot compute sizeof (long long), 77
6499 See \`config.log' for more details." >&2;}
6500 { (exit 1); exit 1; }; }; }
6502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6505 rm -f conftest.val
6506 else
6507 ac_cv_sizeof_long_long=0
6510 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6511 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6512 cat >>confdefs.h <<_ACEOF
6513 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6514 _ACEOF
6519 echo "$as_me:$LINENO: checking for __int64" >&5
6520 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6521 if test "${ac_cv_type___int64+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524 cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h. */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 $ac_includes_default
6532 main ()
6534 if ((__int64 *) 0)
6535 return 0;
6536 if (sizeof (__int64))
6537 return 0;
6539 return 0;
6541 _ACEOF
6542 rm -f conftest.$ac_objext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -z "$ac_c_werror_flag"
6552 || test ! -s conftest.err'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 ac_cv_type___int64=yes
6565 else
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6569 ac_cv_type___int64=no
6571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6573 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6574 echo "${ECHO_T}$ac_cv_type___int64" >&6
6575 if test $ac_cv_type___int64 = yes; then
6577 cat >>confdefs.h <<_ACEOF
6578 #define HAVE___INT64 1
6579 _ACEOF
6581 echo "$as_me:$LINENO: checking for __int64" >&5
6582 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6583 if test "${ac_cv_type___int64+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586 cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h. */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 $ac_includes_default
6594 main ()
6596 if ((__int64 *) 0)
6597 return 0;
6598 if (sizeof (__int64))
6599 return 0;
6601 return 0;
6603 _ACEOF
6604 rm -f conftest.$ac_objext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606 (eval $ac_compile) 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -z "$ac_c_werror_flag"
6614 || test ! -s conftest.err'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 ac_cv_type___int64=yes
6627 else
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_cv_type___int64=no
6633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6635 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6636 echo "${ECHO_T}$ac_cv_type___int64" >&6
6638 echo "$as_me:$LINENO: checking size of __int64" >&5
6639 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6640 if test "${ac_cv_sizeof___int64+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643 if test "$ac_cv_type___int64" = yes; then
6644 # The cast to unsigned long works around a bug in the HP C Compiler
6645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6647 # This bug is HP SR number 8606223364.
6648 if test "$cross_compiling" = yes; then
6649 # Depending upon the size, compute the lo and hi bounds.
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h. */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 $ac_includes_default
6658 main ()
6660 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6661 test_array [0] = 0
6664 return 0;
6666 _ACEOF
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_c_werror_flag"
6677 || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try='test -s conftest.$ac_objext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 (eval $ac_try) 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6689 ac_lo=0 ac_mid=0
6690 while :; do
6691 cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h. */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 $ac_includes_default
6699 main ()
6701 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6702 test_array [0] = 0
6705 return 0;
6707 _ACEOF
6708 rm -f conftest.$ac_objext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710 (eval $ac_compile) 2>conftest.er1
6711 ac_status=$?
6712 grep -v '^ *+' conftest.er1 >conftest.err
6713 rm -f conftest.er1
6714 cat conftest.err >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try='test -z "$ac_c_werror_flag"
6718 || test ! -s conftest.err'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720 (eval $ac_try) 2>&5
6721 ac_status=$?
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; } &&
6724 { ac_try='test -s conftest.$ac_objext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726 (eval $ac_try) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6730 ac_hi=$ac_mid; break
6731 else
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6735 ac_lo=`expr $ac_mid + 1`
6736 if test $ac_lo -le $ac_mid; then
6737 ac_lo= ac_hi=
6738 break
6740 ac_mid=`expr 2 '*' $ac_mid + 1`
6742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6743 done
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h. */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 $ac_includes_default
6756 main ()
6758 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6759 test_array [0] = 0
6762 return 0;
6764 _ACEOF
6765 rm -f conftest.$ac_objext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6767 (eval $ac_compile) 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest.$ac_objext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 (eval $ac_try) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 ac_hi=-1 ac_mid=-1
6788 while :; do
6789 cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h. */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795 $ac_includes_default
6797 main ()
6799 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6800 test_array [0] = 0
6803 return 0;
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808 (eval $ac_compile) 2>conftest.er1
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_c_werror_flag"
6816 || test ! -s conftest.err'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; } &&
6822 { ac_try='test -s conftest.$ac_objext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 (eval $ac_try) 2>&5
6825 ac_status=$?
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_lo=$ac_mid; break
6829 else
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6833 ac_hi=`expr '(' $ac_mid ')' - 1`
6834 if test $ac_mid -le $ac_hi; then
6835 ac_lo= ac_hi=
6836 break
6838 ac_mid=`expr 2 '*' $ac_mid`
6840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6841 done
6842 else
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6846 ac_lo= ac_hi=
6848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6851 # Binary search between lo and hi bounds.
6852 while test "x$ac_lo" != "x$ac_hi"; do
6853 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 $ac_includes_default
6862 main ()
6864 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6865 test_array [0] = 0
6868 return 0;
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>conftest.er1
6874 ac_status=$?
6875 grep -v '^ *+' conftest.er1 >conftest.err
6876 rm -f conftest.er1
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -z "$ac_c_werror_flag"
6881 || test ! -s conftest.err'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; } &&
6887 { ac_try='test -s conftest.$ac_objext'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 (eval $ac_try) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6893 ac_hi=$ac_mid
6894 else
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6898 ac_lo=`expr '(' $ac_mid ')' + 1`
6900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6901 done
6902 case $ac_lo in
6903 ?*) ac_cv_sizeof___int64=$ac_lo;;
6904 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6905 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6907 See \`config.log' for more details." >&5
6908 echo "$as_me: error: cannot compute sizeof (__int64), 77
6909 See \`config.log' for more details." >&2;}
6910 { (exit 1); exit 1; }; }; } ;;
6911 esac
6912 else
6913 if test "$cross_compiling" = yes; then
6914 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6915 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6917 See \`config.log' for more details." >&5
6918 echo "$as_me: error: cannot run test program while cross compiling
6919 See \`config.log' for more details." >&2;}
6920 { (exit 1); exit 1; }; }; }
6921 else
6922 cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h. */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6928 $ac_includes_default
6929 long longval () { return (long) (sizeof (__int64)); }
6930 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6931 #include <stdio.h>
6932 #include <stdlib.h>
6934 main ()
6937 FILE *f = fopen ("conftest.val", "w");
6938 if (! f)
6939 exit (1);
6940 if (((long) (sizeof (__int64))) < 0)
6942 long i = longval ();
6943 if (i != ((long) (sizeof (__int64))))
6944 exit (1);
6945 fprintf (f, "%ld\n", i);
6947 else
6949 unsigned long i = ulongval ();
6950 if (i != ((long) (sizeof (__int64))))
6951 exit (1);
6952 fprintf (f, "%lu\n", i);
6954 exit (ferror (f) || fclose (f) != 0);
6957 return 0;
6959 _ACEOF
6960 rm -f conftest$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962 (eval $ac_link) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 (eval $ac_try) 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); }; }; then
6971 ac_cv_sizeof___int64=`cat conftest.val`
6972 else
6973 echo "$as_me: program exited with status $ac_status" >&5
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 ( exit $ac_status )
6978 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6979 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6980 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6981 See \`config.log' for more details." >&5
6982 echo "$as_me: error: cannot compute sizeof (__int64), 77
6983 See \`config.log' for more details." >&2;}
6984 { (exit 1); exit 1; }; }; }
6986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6989 rm -f conftest.val
6990 else
6991 ac_cv_sizeof___int64=0
6994 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6995 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6996 cat >>confdefs.h <<_ACEOF
6997 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6998 _ACEOF
7004 # ---------------------
7005 # Warnings and checking
7006 # ---------------------
7008 # Check $CC warning features (if it's GCC).
7009 # We want to use -pedantic, but we don't want warnings about
7010 # * 'long long'
7011 # * variadic macros
7012 # * overlong strings
7013 # So, we only use -pedantic if we can disable those warnings.
7015 loose_warn=
7016 save_CFLAGS="$CFLAGS"
7017 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
7018 -Wmissing-prototypes; do
7019 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7021 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7022 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7023 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026 CFLAGS="$option"
7027 cat >conftest.$ac_ext <<_ACEOF
7028 /* confdefs.h. */
7029 _ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7035 main ()
7039 return 0;
7041 _ACEOF
7042 rm -f conftest.$ac_objext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>conftest.er1
7045 ac_status=$?
7046 grep -v '^ *+' conftest.er1 >conftest.err
7047 rm -f conftest.er1
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -z "$ac_c_werror_flag"
7052 || test ! -s conftest.err'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; } &&
7058 { ac_try='test -s conftest.$ac_objext'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 (eval $ac_try) 2>&5
7061 ac_status=$?
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7064 eval "$as_acx_Woption=yes"
7065 else
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 eval "$as_acx_Woption=no"
7071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7074 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7075 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7076 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7077 loose_warn="$loose_warn${loose_warn:+ }$option"
7080 done
7081 CFLAGS="$save_CFLAGS"
7083 cxx_compat_warn=
7084 save_CFLAGS="$CFLAGS"
7085 for option in -Wc++-compat; do
7086 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7088 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7089 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7090 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093 CFLAGS="$option"
7094 cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7102 main ()
7106 return 0;
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111 (eval $ac_compile) 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try='test -z "$ac_c_werror_flag"
7119 || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try='test -s conftest.$ac_objext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 eval "$as_acx_Woption=yes"
7132 else
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 eval "$as_acx_Woption=no"
7138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7141 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7142 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7143 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7144 cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
7147 done
7148 CFLAGS="$save_CFLAGS"
7150 strict_warn=
7151 save_CFLAGS="$CFLAGS"
7152 for option in -Wold-style-definition \
7153 -Wmissing-format-attribute; do
7154 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7156 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7157 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7158 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 else
7161 CFLAGS="$option"
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7170 main ()
7174 return 0;
7176 _ACEOF
7177 rm -f conftest.$ac_objext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7179 (eval $ac_compile) 2>conftest.er1
7180 ac_status=$?
7181 grep -v '^ *+' conftest.er1 >conftest.err
7182 rm -f conftest.er1
7183 cat conftest.err >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try='test -z "$ac_c_werror_flag"
7187 || test ! -s conftest.err'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; } &&
7193 { ac_try='test -s conftest.$ac_objext'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
7199 eval "$as_acx_Woption=yes"
7200 else
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7204 eval "$as_acx_Woption=no"
7206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7209 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7210 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7211 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7212 strict_warn="$strict_warn${strict_warn:+ }$option"
7215 done
7216 CFLAGS="$save_CFLAGS"
7218 if test "$GCC" = yes; then
7219 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7220 -Wno-overlength-strings" >&5
7221 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7222 -Wno-overlength-strings... $ECHO_C" >&6
7223 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226 save_CFLAGS="$CFLAGS"
7227 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
7228 -Wno-overlength-strings"
7229 cat >conftest.$ac_ext <<_ACEOF
7230 /* confdefs.h. */
7231 _ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h. */
7237 main ()
7241 return 0;
7243 _ACEOF
7244 rm -f conftest.$ac_objext
7245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7246 (eval $ac_compile) 2>conftest.er1
7247 ac_status=$?
7248 grep -v '^ *+' conftest.er1 >conftest.err
7249 rm -f conftest.er1
7250 cat conftest.err >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } &&
7253 { ac_try='test -z "$ac_c_werror_flag"
7254 || test ! -s conftest.err'
7255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 (eval $ac_try) 2>&5
7257 ac_status=$?
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; } &&
7260 { ac_try='test -s conftest.$ac_objext'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 (eval $ac_try) 2>&5
7263 ac_status=$?
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; }; then
7266 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
7267 else
7268 echo "$as_me: failed program was:" >&5
7269 sed 's/^/| /' conftest.$ac_ext >&5
7271 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
7273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7274 CFLAGS="$save_CFLAGS"
7276 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
7277 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
7278 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
7279 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
7280 -Wno-overlength-strings"
7287 # Check whether --enable-werror-always or --disable-werror-always was given.
7288 if test "${enable_werror_always+set}" = set; then
7289 enableval="$enable_werror_always"
7291 else
7292 enable_werror_always=no
7294 if test $enable_werror_always = yes; then
7295 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7301 # The above macros do nothing if the compiler is not GCC. However, the
7302 # Makefile has more goo to add other flags, so this variabl is used to
7303 # enables warnings only for GCC.
7304 warn_cflags=
7305 if test "x$GCC" = "xyes"; then
7306 warn_cflags='$(GCC_WARN_CFLAGS)'
7310 # Enable expensive internal checks
7311 is_release=
7312 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7313 is_release=yes
7316 # Check whether --enable-checking or --disable-checking was given.
7317 if test "${enable_checking+set}" = set; then
7318 enableval="$enable_checking"
7319 ac_checking_flags="${enableval}"
7320 else
7322 # Determine the default checks.
7323 if test x$is_release = x ; then
7324 ac_checking_flags=yes
7325 else
7326 ac_checking_flags=release
7329 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7330 for check in release $ac_checking_flags
7332 case $check in
7333 # these set all the flags to specific states
7334 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7335 ac_fold_checking= ; ac_gc_checking=1 ;
7336 ac_gc_always_collect= ; ac_rtl_checking= ;
7337 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7338 ac_tree_checking=1 ; ac_valgrind_checking= ;
7339 ac_types_checking=1 ;;
7340 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7341 ac_fold_checking= ; ac_gc_checking= ;
7342 ac_gc_always_collect= ; ac_rtl_checking= ;
7343 ac_rtlflag_checking= ; ac_runtime_checking= ;
7344 ac_tree_checking= ; ac_valgrind_checking= ;
7345 ac_types_checking= ;;
7346 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7347 ac_fold_checking=1 ; ac_gc_checking=1 ;
7348 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
7349 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7350 ac_tree_checking=1 ; ac_valgrind_checking= ;
7351 ac_types_checking=1 ;;
7352 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7353 ac_fold_checking= ; ac_gc_checking= ;
7354 ac_gc_always_collect= ; ac_rtl_checking= ;
7355 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7356 ac_tree_checking= ; ac_valgrind_checking= ;
7357 ac_types_checking= ;;
7358 # these enable particular checks
7359 assert) ac_assert_checking=1 ;;
7360 df) ac_df_checking=1 ;;
7361 fold) ac_fold_checking=1 ;;
7362 gc) ac_gc_checking=1 ;;
7363 gcac) ac_gc_always_collect=1 ;;
7364 misc) ac_checking=1 ;;
7365 rtl) ac_rtl_checking=1 ;;
7366 rtlflag) ac_rtlflag_checking=1 ;;
7367 runtime) ac_runtime_checking=1 ;;
7368 tree) ac_tree_checking=1 ;;
7369 types) ac_types_checking=1 ;;
7370 valgrind) ac_valgrind_checking=1 ;;
7371 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7372 echo "$as_me: error: unknown check category $check" >&2;}
7373 { (exit 1); exit 1; }; } ;;
7374 esac
7375 done
7376 IFS="$ac_save_IFS"
7378 nocommon_flag=""
7379 if test x$ac_checking != x ; then
7381 cat >>confdefs.h <<\_ACEOF
7382 #define ENABLE_CHECKING 1
7383 _ACEOF
7385 nocommon_flag=-fno-common
7388 if test x$ac_df_checking != x ; then
7390 cat >>confdefs.h <<\_ACEOF
7391 #define ENABLE_DF_CHECKING 1
7392 _ACEOF
7395 if test x$ac_assert_checking != x ; then
7397 cat >>confdefs.h <<\_ACEOF
7398 #define ENABLE_ASSERT_CHECKING 1
7399 _ACEOF
7403 if test x$ac_runtime_checking != x ; then
7405 cat >>confdefs.h <<\_ACEOF
7406 #define ENABLE_RUNTIME_CHECKING 1
7407 _ACEOF
7410 if test x$ac_tree_checking != x ; then
7412 cat >>confdefs.h <<\_ACEOF
7413 #define ENABLE_TREE_CHECKING 1
7414 _ACEOF
7416 TREEBROWSER=tree-browser.o
7418 if test x$ac_types_checking != x ; then
7420 cat >>confdefs.h <<\_ACEOF
7421 #define ENABLE_TYPES_CHECKING 1
7422 _ACEOF
7426 if test x$ac_rtl_checking != x ; then
7428 cat >>confdefs.h <<\_ACEOF
7429 #define ENABLE_RTL_CHECKING 1
7430 _ACEOF
7433 if test x$ac_rtlflag_checking != x ; then
7435 cat >>confdefs.h <<\_ACEOF
7436 #define ENABLE_RTL_FLAG_CHECKING 1
7437 _ACEOF
7440 if test x$ac_gc_checking != x ; then
7442 cat >>confdefs.h <<\_ACEOF
7443 #define ENABLE_GC_CHECKING 1
7444 _ACEOF
7447 if test x$ac_gc_always_collect != x ; then
7449 cat >>confdefs.h <<\_ACEOF
7450 #define ENABLE_GC_ALWAYS_COLLECT 1
7451 _ACEOF
7454 if test x$ac_fold_checking != x ; then
7456 cat >>confdefs.h <<\_ACEOF
7457 #define ENABLE_FOLD_CHECKING 1
7458 _ACEOF
7461 valgrind_path_defines=
7462 valgrind_command=
7464 if test "${ac_cv_header_valgrind_h+set}" = set; then
7465 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7466 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7467 if test "${ac_cv_header_valgrind_h+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7471 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7472 else
7473 # Is the header compilable?
7474 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7475 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7476 cat >conftest.$ac_ext <<_ACEOF
7477 /* confdefs.h. */
7478 _ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h. */
7482 $ac_includes_default
7483 #include <valgrind.h>
7484 _ACEOF
7485 rm -f conftest.$ac_objext
7486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7487 (eval $ac_compile) 2>conftest.er1
7488 ac_status=$?
7489 grep -v '^ *+' conftest.er1 >conftest.err
7490 rm -f conftest.er1
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } &&
7494 { ac_try='test -z "$ac_c_werror_flag"
7495 || test ! -s conftest.err'
7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 (eval $ac_try) 2>&5
7498 ac_status=$?
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; } &&
7501 { ac_try='test -s conftest.$ac_objext'
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 (eval $ac_try) 2>&5
7504 ac_status=$?
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; }; then
7507 ac_header_compiler=yes
7508 else
7509 echo "$as_me: failed program was:" >&5
7510 sed 's/^/| /' conftest.$ac_ext >&5
7512 ac_header_compiler=no
7514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7516 echo "${ECHO_T}$ac_header_compiler" >&6
7518 # Is the header present?
7519 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7520 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 #include <valgrind.h>
7528 _ACEOF
7529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7531 ac_status=$?
7532 grep -v '^ *+' conftest.er1 >conftest.err
7533 rm -f conftest.er1
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } >/dev/null; then
7537 if test -s conftest.err; then
7538 ac_cpp_err=$ac_c_preproc_warn_flag
7539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7540 else
7541 ac_cpp_err=
7543 else
7544 ac_cpp_err=yes
7546 if test -z "$ac_cpp_err"; then
7547 ac_header_preproc=yes
7548 else
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 ac_header_preproc=no
7554 rm -f conftest.err conftest.$ac_ext
7555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7556 echo "${ECHO_T}$ac_header_preproc" >&6
7558 # So? What about this header?
7559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7560 yes:no: )
7561 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7562 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7563 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7564 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7565 ac_header_preproc=yes
7567 no:yes:* )
7568 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7569 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7570 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7571 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7572 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7573 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7574 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7575 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7577 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7579 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7581 cat <<\_ASBOX
7582 ## ------------------------------------------ ##
7583 ## Report this to the AC_PACKAGE_NAME lists. ##
7584 ## ------------------------------------------ ##
7585 _ASBOX
7587 sed "s/^/$as_me: WARNING: /" >&2
7589 esac
7590 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7591 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7592 if test "${ac_cv_header_valgrind_h+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595 ac_cv_header_valgrind_h=$ac_header_preproc
7597 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7598 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7601 if test $ac_cv_header_valgrind_h = yes; then
7602 have_valgrind_h=yes
7603 else
7604 have_valgrind_h=no
7609 if test x$ac_valgrind_checking != x ; then
7610 # It is certainly possible that there's valgrind but no valgrind.h.
7611 # GCC relies on making annotations so we must have both.
7612 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7613 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7614 cat >conftest.$ac_ext <<_ACEOF
7615 /* confdefs.h. */
7616 _ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7620 #include <valgrind/memcheck.h>
7621 #ifndef VALGRIND_DISCARD
7622 #error VALGRIND_DISCARD not defined
7623 #endif
7624 _ACEOF
7625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7627 ac_status=$?
7628 grep -v '^ *+' conftest.er1 >conftest.err
7629 rm -f conftest.er1
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } >/dev/null; then
7633 if test -s conftest.err; then
7634 ac_cpp_err=$ac_c_preproc_warn_flag
7635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7636 else
7637 ac_cpp_err=
7639 else
7640 ac_cpp_err=yes
7642 if test -z "$ac_cpp_err"; then
7643 gcc_cv_header_valgrind_memcheck_h=yes
7644 else
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 gcc_cv_header_valgrind_memcheck_h=no
7650 rm -f conftest.err conftest.$ac_ext
7651 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7652 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7653 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7654 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7655 cat >conftest.$ac_ext <<_ACEOF
7656 /* confdefs.h. */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7661 #include <memcheck.h>
7662 #ifndef VALGRIND_DISCARD
7663 #error VALGRIND_DISCARD not defined
7664 #endif
7665 _ACEOF
7666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7668 ac_status=$?
7669 grep -v '^ *+' conftest.er1 >conftest.err
7670 rm -f conftest.er1
7671 cat conftest.err >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } >/dev/null; then
7674 if test -s conftest.err; then
7675 ac_cpp_err=$ac_c_preproc_warn_flag
7676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7677 else
7678 ac_cpp_err=
7680 else
7681 ac_cpp_err=yes
7683 if test -z "$ac_cpp_err"; then
7684 gcc_cv_header_memcheck_h=yes
7685 else
7686 echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7689 gcc_cv_header_memcheck_h=no
7691 rm -f conftest.err conftest.$ac_ext
7692 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7693 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7695 # Prepare PATH_SEPARATOR.
7696 # The user is always right.
7697 if test "${PATH_SEPARATOR+set}" != set; then
7698 echo "#! /bin/sh" >conf$$.sh
7699 echo "exit 0" >>conf$$.sh
7700 chmod +x conf$$.sh
7701 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7702 PATH_SEPARATOR=';'
7703 else
7704 PATH_SEPARATOR=:
7706 rm -f conf$$.sh
7709 # Find out how to test for executable files. Don't use a zero-byte file,
7710 # as systems may use methods other than mode bits to determine executability.
7711 cat >conf$$.file <<_ASEOF
7712 #! /bin/sh
7713 exit 0
7714 _ASEOF
7715 chmod +x conf$$.file
7716 if test -x conf$$.file >/dev/null 2>&1; then
7717 ac_executable_p="test -x"
7718 else
7719 ac_executable_p="test -f"
7721 rm -f conf$$.file
7723 # Extract the first word of "valgrind", so it can be a program name with args.
7724 set dummy valgrind; ac_word=$2
7725 echo "$as_me:$LINENO: checking for $ac_word" >&5
7726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7727 if test "${ac_cv_path_valgrind_path+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730 case "$valgrind_path" in
7731 [\\/]* | ?:[\\/]*)
7732 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7735 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7736 for ac_dir in $PATH; do
7737 IFS="$ac_save_IFS"
7738 test -z "$ac_dir" && ac_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7741 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7742 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7743 break 2
7746 done
7747 done
7748 IFS="$ac_save_IFS"
7750 esac
7752 valgrind_path="$ac_cv_path_valgrind_path"
7753 if test -n "$valgrind_path"; then
7754 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7755 echo "${ECHO_T}$valgrind_path" >&6
7756 else
7757 echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6
7761 if test "x$valgrind_path" = "x" \
7762 || (test $have_valgrind_h = no \
7763 && test $gcc_cv_header_memcheck_h = no \
7764 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7765 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7766 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7767 { (exit 1); exit 1; }; }
7769 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7770 valgrind_command="$valgrind_path -q"
7772 cat >>confdefs.h <<\_ACEOF
7773 #define ENABLE_VALGRIND_CHECKING 1
7774 _ACEOF
7776 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7778 cat >>confdefs.h <<\_ACEOF
7779 #define HAVE_VALGRIND_MEMCHECK_H 1
7780 _ACEOF
7783 if test $gcc_cv_header_memcheck_h = yes; then
7785 cat >>confdefs.h <<\_ACEOF
7786 #define HAVE_MEMCHECK_H 1
7787 _ACEOF
7794 # Enable code coverage collection
7795 # Check whether --enable-coverage or --disable-coverage was given.
7796 if test "${enable_coverage+set}" = set; then
7797 enableval="$enable_coverage"
7798 case "${enableval}" in
7799 yes|noopt)
7800 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7802 opt)
7803 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7806 # a.k.a. --disable-coverage
7807 coverage_flags=""
7810 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7811 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7812 { (exit 1); exit 1; }; }
7814 esac
7815 else
7816 coverage_flags=""
7820 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7821 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7822 enableval="$enable_gather_detailed_mem_stats"
7824 else
7825 enable_gather_detailed_mem_stats=no
7827 if test x$enable_gather_detailed_mem_stats = xyes ; then
7829 cat >>confdefs.h <<\_ACEOF
7830 #define GATHER_STATISTICS 1
7831 _ACEOF
7835 # -------------------------------
7836 # Miscenalleous configure options
7837 # -------------------------------
7839 # With stabs
7841 # Check whether --with-stabs or --without-stabs was given.
7842 if test "${with_stabs+set}" = set; then
7843 withval="$with_stabs"
7844 stabs="$with_stabs"
7845 else
7846 stabs=no
7849 # Determine whether or not multilibs are enabled.
7850 # Check whether --enable-multilib or --disable-multilib was given.
7851 if test "${enable_multilib+set}" = set; then
7852 enableval="$enable_multilib"
7854 else
7855 enable_multilib=yes
7859 # Enable __cxa_atexit for C++.
7860 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7861 if test "${enable___cxa_atexit+set}" = set; then
7862 enableval="$enable___cxa_atexit"
7866 # Enable C extension for decimal float if target supports it.
7867 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7868 if test "${enable_decimal_float+set}" = set; then
7869 enableval="$enable_decimal_float"
7871 case $enable_decimal_float in
7872 yes | no | bid | dpd) ;;
7873 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7874 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7875 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7876 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7877 { (exit 1); exit 1; }; } ;;
7878 esac
7880 else
7882 case $target in
7883 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7884 enable_decimal_float=yes
7887 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7888 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7889 enable_decimal_float=no
7891 esac
7895 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7897 cat >>confdefs.h <<_ACEOF
7898 #define ENABLE_DECIMAL_FLOAT $dfp
7899 _ACEOF
7902 # x86's use BID format instead of DPD
7903 case x$enable_decimal_float in
7904 xyes)
7905 case $target in
7906 i?86*-*-linux* | x86_64*-*-linux*)
7907 enable_decimal_float=bid
7910 enable_decimal_float=dpd
7912 esac
7914 xno)
7915 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7916 # dependency on libdecnumber.
7917 enable_decimal_float=dpd
7919 esac
7922 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7924 cat >>confdefs.h <<_ACEOF
7925 #define ENABLE_DECIMAL_BID_FORMAT $bid
7926 _ACEOF
7929 # Enable C extension for fixed-point arithmetic.
7930 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7931 if test "${enable_fixed_point+set}" = set; then
7932 enableval="$enable_fixed_point"
7935 else
7937 case $target in
7938 mips*-*-*)
7939 case $host in
7940 mips*-sgi-irix*)
7941 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7942 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7943 enable_fixed_point=no
7946 enable_fixed_point=yes
7948 esac
7951 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7952 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7953 enable_fixed_point=no
7955 esac
7960 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7962 cat >>confdefs.h <<_ACEOF
7963 #define ENABLE_FIXED_POINT $fixedpoint
7964 _ACEOF
7967 # Enable threads
7968 # Pass with no value to take the default
7969 # Pass with a value to specify a thread package
7970 # Check whether --enable-threads or --disable-threads was given.
7971 if test "${enable_threads+set}" = set; then
7972 enableval="$enable_threads"
7974 else
7975 enable_threads=''
7978 # Check whether --enable-tls or --disable-tls was given.
7979 if test "${enable_tls+set}" = set; then
7980 enableval="$enable_tls"
7982 case $enable_tls in
7983 yes | no) ;;
7984 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7985 Valid choices are 'yes' and 'no'." >&5
7986 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7987 Valid choices are 'yes' and 'no'." >&2;}
7988 { (exit 1); exit 1; }; } ;;
7989 esac
7991 else
7992 enable_tls=''
7995 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7996 if test "${enable_objc_gc+set}" = set; then
7997 enableval="$enable_objc_gc"
7998 if test x$enable_objc_gc = xno; then
7999 objc_boehm_gc=''
8000 else
8001 objc_boehm_gc=1
8003 else
8004 objc_boehm_gc=''
8008 # Check whether --with-dwarf2 or --without-dwarf2 was given.
8009 if test "${with_dwarf2+set}" = set; then
8010 withval="$with_dwarf2"
8011 dwarf2="$with_dwarf2"
8012 else
8013 dwarf2=no
8016 # Check whether --enable-shared or --disable-shared was given.
8017 if test "${enable_shared+set}" = set; then
8018 enableval="$enable_shared"
8020 case $enable_shared in
8021 yes | no) ;;
8023 enable_shared=no
8024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8025 for pkg in $enableval; do
8026 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8027 enable_shared=yes
8029 done
8030 IFS="$ac_save_ifs"
8032 esac
8034 else
8035 enable_shared=yes
8040 # Check whether --with-build-sysroot or --without-build-sysroot was given.
8041 if test "${with_build_sysroot+set}" = set; then
8042 withval="$with_build_sysroot"
8047 # Check whether --with-sysroot or --without-sysroot was given.
8048 if test "${with_sysroot+set}" = set; then
8049 withval="$with_sysroot"
8051 case ${with_sysroot} in
8052 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
8053 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
8054 esac
8056 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8057 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
8059 if test "x$prefix" = xNONE; then
8060 test_prefix=/usr/local
8061 else
8062 test_prefix=$prefix
8064 if test "x$exec_prefix" = xNONE; then
8065 test_exec_prefix=$test_prefix
8066 else
8067 test_exec_prefix=$exec_prefix
8069 case ${TARGET_SYSTEM_ROOT} in
8070 "${test_prefix}"|"${test_prefix}/"*|\
8071 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
8072 '${prefix}'|'${prefix}/'*|\
8073 '${exec_prefix}'|'${exec_prefix}/'*)
8074 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8075 TARGET_SYSTEM_ROOT_DEFINE="$t"
8077 esac
8079 else
8081 TARGET_SYSTEM_ROOT=
8082 TARGET_SYSTEM_ROOT_DEFINE=
8083 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
8090 # Build with intermodule optimisations
8091 # Check whether --enable-intermodule or --disable-intermodule was given.
8092 if test "${enable_intermodule+set}" = set; then
8093 enableval="$enable_intermodule"
8094 case ${enable_intermodule} in
8095 yes) onestep="-onestep";;
8096 *) onestep="";;
8097 esac
8098 else
8099 onestep=""
8105 # Check whether --with-pkgversion or --without-pkgversion was given.
8106 if test "${with_pkgversion+set}" = set; then
8107 withval="$with_pkgversion"
8108 case "$withval" in
8109 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8110 echo "$as_me: error: package version not specified" >&2;}
8111 { (exit 1); exit 1; }; } ;;
8112 no) PKGVERSION= ;;
8113 *) PKGVERSION="($withval) " ;;
8114 esac
8115 else
8116 PKGVERSION="(GCC) "
8123 # Check whether --with-bugurl or --without-bugurl was given.
8124 if test "${with_bugurl+set}" = set; then
8125 withval="$with_bugurl"
8126 case "$withval" in
8127 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8128 echo "$as_me: error: bug URL not specified" >&2;}
8129 { (exit 1); exit 1; }; } ;;
8130 no) BUGURL=
8132 *) BUGURL="$withval"
8134 esac
8135 else
8136 BUGURL="http://gcc.gnu.org/bugs.html"
8139 case ${BUGURL} in
8141 REPORT_BUGS_TO=
8142 REPORT_BUGS_TEXI=
8145 REPORT_BUGS_TO="<$BUGURL>"
8146 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8148 esac;
8153 # Sanity check enable_languages in case someone does not run the toplevel
8154 # configure # script.
8155 # Check whether --enable-languages or --disable-languages was given.
8156 if test "${enable_languages+set}" = set; then
8157 enableval="$enable_languages"
8158 case ,${enable_languages}, in
8159 ,,|,yes,)
8160 # go safe -- we cannot be much sure without the toplevel
8161 # configure's
8162 # analysis of which target libs are present and usable
8163 enable_languages=c
8165 *,all,*)
8166 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8167 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8168 { (exit 1); exit 1; }; }
8170 *,c,*)
8173 enable_languages=c,${enable_languages}
8175 esac
8176 else
8177 enable_languages=c
8180 # Used by documentation targets
8185 # -------------------------
8186 # Checks for other programs
8187 # -------------------------
8189 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8190 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8191 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8192 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 else
8195 cat >conftest.make <<\_ACEOF
8196 all:
8197 @echo 'ac_maketemp="$(MAKE)"'
8198 _ACEOF
8199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8200 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8201 if test -n "$ac_maketemp"; then
8202 eval ac_cv_prog_make_${ac_make}_set=yes
8203 else
8204 eval ac_cv_prog_make_${ac_make}_set=no
8206 rm -f conftest.make
8208 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8209 echo "$as_me:$LINENO: result: yes" >&5
8210 echo "${ECHO_T}yes" >&6
8211 SET_MAKE=
8212 else
8213 echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6
8215 SET_MAKE="MAKE=${MAKE-make}"
8219 # Find some useful tools
8220 for ac_prog in gawk mawk nawk awk
8222 # Extract the first word of "$ac_prog", so it can be a program name with args.
8223 set dummy $ac_prog; ac_word=$2
8224 echo "$as_me:$LINENO: checking for $ac_word" >&5
8225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8226 if test "${ac_cv_prog_AWK+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 if test -n "$AWK"; then
8230 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8231 else
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8239 ac_cv_prog_AWK="$ac_prog"
8240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8243 done
8244 done
8248 AWK=$ac_cv_prog_AWK
8249 if test -n "$AWK"; then
8250 echo "$as_me:$LINENO: result: $AWK" >&5
8251 echo "${ECHO_T}$AWK" >&6
8252 else
8253 echo "$as_me:$LINENO: result: no" >&5
8254 echo "${ECHO_T}no" >&6
8257 test -n "$AWK" && break
8258 done
8260 # We need awk to create options.c and options.h.
8261 # Bail out if it's missing.
8262 case ${AWK} in
8263 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8264 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8265 { (exit 1); exit 1; }; } ;;
8266 esac
8268 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8269 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8270 if test "${gcc_cv_prog_LN_S+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273 rm -f conftestdata_t
8274 echo >conftestdata_f
8275 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8276 then
8277 gcc_cv_prog_LN_S="ln -s"
8278 else
8279 if ln conftestdata_f conftestdata_t 2>/dev/null
8280 then
8281 gcc_cv_prog_LN_S=ln
8282 else
8283 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8284 then
8285 gcc_cv_prog_LN_S="cp -p"
8286 else
8287 gcc_cv_prog_LN_S=cp
8291 rm -f conftestdata_f conftestdata_t
8294 LN_S="$gcc_cv_prog_LN_S"
8295 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8296 echo "$as_me:$LINENO: result: yes" >&5
8297 echo "${ECHO_T}yes" >&6
8298 else
8299 if test "$gcc_cv_prog_LN_S" = "ln"; then
8300 echo "$as_me:$LINENO: result: no, using ln" >&5
8301 echo "${ECHO_T}no, using ln" >&6
8302 else
8303 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8304 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8308 echo "$as_me:$LINENO: checking whether ln works" >&5
8309 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8310 if test "${acx_cv_prog_LN+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313 rm -f conftestdata_t
8314 echo >conftestdata_f
8315 if ln conftestdata_f conftestdata_t 2>/dev/null
8316 then
8317 acx_cv_prog_LN=ln
8318 else
8319 acx_cv_prog_LN=no
8321 rm -f conftestdata_f conftestdata_t
8324 if test $acx_cv_prog_LN = no; then
8325 LN="$LN_S"
8326 echo "$as_me:$LINENO: result: no, using $LN" >&5
8327 echo "${ECHO_T}no, using $LN" >&6
8328 else
8329 LN="$acx_cv_prog_LN"
8330 echo "$as_me:$LINENO: result: yes" >&5
8331 echo "${ECHO_T}yes" >&6
8334 if test -n "$ac_tool_prefix"; then
8335 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8336 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8337 echo "$as_me:$LINENO: checking for $ac_word" >&5
8338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8339 if test "${ac_cv_prog_RANLIB+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342 if test -n "$RANLIB"; then
8343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8344 else
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8348 IFS=$as_save_IFS
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8352 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8354 break 2
8356 done
8357 done
8361 RANLIB=$ac_cv_prog_RANLIB
8362 if test -n "$RANLIB"; then
8363 echo "$as_me:$LINENO: result: $RANLIB" >&5
8364 echo "${ECHO_T}$RANLIB" >&6
8365 else
8366 echo "$as_me:$LINENO: result: no" >&5
8367 echo "${ECHO_T}no" >&6
8371 if test -z "$ac_cv_prog_RANLIB"; then
8372 ac_ct_RANLIB=$RANLIB
8373 # Extract the first word of "ranlib", so it can be a program name with args.
8374 set dummy ranlib; ac_word=$2
8375 echo "$as_me:$LINENO: checking for $ac_word" >&5
8376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8377 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 else
8380 if test -n "$ac_ct_RANLIB"; then
8381 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8382 else
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8390 ac_cv_prog_ac_ct_RANLIB="ranlib"
8391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 break 2
8394 done
8395 done
8397 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8400 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8401 if test -n "$ac_ct_RANLIB"; then
8402 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8403 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8404 else
8405 echo "$as_me:$LINENO: result: no" >&5
8406 echo "${ECHO_T}no" >&6
8409 RANLIB=$ac_ct_RANLIB
8410 else
8411 RANLIB="$ac_cv_prog_RANLIB"
8414 case "${host}" in
8415 *-*-darwin*)
8416 # By default, the Darwin ranlib will not treat common symbols as
8417 # definitions when building the archive table of contents. Other
8418 # ranlibs do that; pass an option to the Darwin ranlib that makes
8419 # it behave similarly.
8420 ranlib_flags="-c"
8423 ranlib_flags=""
8424 esac
8427 # Find a good install program. We prefer a C program (faster),
8428 # so one script is as good as another. But avoid the broken or
8429 # incompatible versions:
8430 # SysV /etc/install, /usr/sbin/install
8431 # SunOS /usr/etc/install
8432 # IRIX /sbin/install
8433 # AIX /bin/install
8434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8436 # ./install, which can be erroneously created by make from ./install.sh.
8437 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8438 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8439 if test -z "$INSTALL"; then
8440 if test "${ac_cv_path_install+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 else
8443 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8444 for ac_dir in $PATH; do
8445 # Account for people who put trailing slashes in PATH elements.
8446 case "$ac_dir/" in
8447 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8449 # OSF1 and SCO ODT 3.0 have their own names for install.
8450 for ac_prog in ginstall scoinst install; do
8451 if test -f $ac_dir/$ac_prog; then
8452 if test $ac_prog = install &&
8453 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8454 # AIX install. It has an incompatible calling convention.
8455 # OSF/1 installbsd also uses dspmsg, but is usable.
8457 else
8458 ac_cv_path_install="$ac_dir/$ac_prog -c"
8459 break 2
8462 done
8464 esac
8465 done
8466 IFS="$ac_save_IFS"
8469 if test "${ac_cv_path_install+set}" = set; then
8470 INSTALL="$ac_cv_path_install"
8471 else
8472 # As a last resort, use the slow shell script. We don't cache a
8473 # path for INSTALL within a source directory, because that will
8474 # break other packages using the cache if that directory is
8475 # removed, or if the path is relative.
8476 INSTALL="$ac_install_sh"
8479 echo "$as_me:$LINENO: result: $INSTALL" >&5
8480 echo "${ECHO_T}$INSTALL" >&6
8482 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8483 # It thinks the first close brace ends the variable substitution.
8484 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8486 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8489 # See if cmp has --ignore-initial.
8490 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8491 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8492 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495 echo abfoo >t1
8496 echo cdfoo >t2
8497 gcc_cv_prog_cmp_skip=slowcompare
8498 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8499 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8501 else
8502 gcc_cv_prog_cmp_skip=gnucompare
8505 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8506 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8507 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8509 else
8510 gcc_cv_prog_cmp_skip=fastcompare
8514 rm t1 t2
8517 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8518 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8519 make_compare_target=$gcc_cv_prog_cmp_skip
8523 # See if we have the mktemp command.
8524 # Extract the first word of "mktemp", so it can be a program name with args.
8525 set dummy mktemp; ac_word=$2
8526 echo "$as_me:$LINENO: checking for $ac_word" >&5
8527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8528 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531 if test -n "$have_mktemp_command"; then
8532 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8533 else
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 for as_dir in $PATH
8537 IFS=$as_save_IFS
8538 test -z "$as_dir" && as_dir=.
8539 for ac_exec_ext in '' $ac_executable_extensions; do
8540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8541 ac_cv_prog_have_mktemp_command="yes"
8542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8543 break 2
8545 done
8546 done
8548 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8551 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8552 if test -n "$have_mktemp_command"; then
8553 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8554 echo "${ECHO_T}$have_mktemp_command" >&6
8555 else
8556 echo "$as_me:$LINENO: result: no" >&5
8557 echo "${ECHO_T}no" >&6
8561 # See if makeinfo has been installed and is modern enough
8562 # that we can use it.
8564 # Extract the first word of "makeinfo", so it can be a program name with args.
8565 set dummy makeinfo; ac_word=$2
8566 echo "$as_me:$LINENO: checking for $ac_word" >&5
8567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8568 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571 if test -n "$MAKEINFO"; then
8572 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8573 else
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 for as_dir in $PATH
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8581 ac_cv_prog_MAKEINFO="makeinfo"
8582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 break 2
8585 done
8586 done
8590 MAKEINFO=$ac_cv_prog_MAKEINFO
8591 if test -n "$MAKEINFO"; then
8592 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8593 echo "${ECHO_T}$MAKEINFO" >&6
8594 else
8595 echo "$as_me:$LINENO: result: no" >&5
8596 echo "${ECHO_T}no" >&6
8599 if test -n "$MAKEINFO"; then
8600 # Found it, now check the version.
8601 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8602 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8603 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8607 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8609 case $ac_prog_version in
8610 '') gcc_cv_prog_makeinfo_modern=no;;
8611 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8612 *) gcc_cv_prog_makeinfo_modern=no;;
8613 esac
8616 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8617 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8618 else
8619 gcc_cv_prog_makeinfo_modern=no
8621 if test $gcc_cv_prog_makeinfo_modern = no; then
8622 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8625 if test $gcc_cv_prog_makeinfo_modern = no; then
8626 { echo "$as_me:$LINENO: WARNING:
8627 *** Makeinfo is missing or too old.
8628 *** Info documentation will not be built." >&5
8629 echo "$as_me: WARNING:
8630 *** Makeinfo is missing or too old.
8631 *** Info documentation will not be built." >&2;}
8632 BUILD_INFO=
8633 else
8634 BUILD_INFO=info
8638 # Is pod2man recent enough to regenerate manpages?
8639 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8640 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8641 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8642 echo "$as_me:$LINENO: result: yes" >&5
8643 echo "${ECHO_T}yes" >&6
8644 GENERATED_MANPAGES=generated-manpages
8645 else
8646 echo "$as_me:$LINENO: result: no" >&5
8647 echo "${ECHO_T}no" >&6
8648 GENERATED_MANPAGES=
8652 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8654 # How about lex?
8655 for ac_prog in flex
8657 # Extract the first word of "$ac_prog", so it can be a program name with args.
8658 set dummy $ac_prog; ac_word=$2
8659 echo "$as_me:$LINENO: checking for $ac_word" >&5
8660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8661 if test "${ac_cv_prog_FLEX+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664 if test -n "$FLEX"; then
8665 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8666 else
8667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 for as_dir in $PATH
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
8672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8674 ac_cv_prog_FLEX="$ac_prog"
8675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 break 2
8678 done
8679 done
8683 FLEX=$ac_cv_prog_FLEX
8684 if test -n "$FLEX"; then
8685 echo "$as_me:$LINENO: result: $FLEX" >&5
8686 echo "${ECHO_T}$FLEX" >&6
8687 else
8688 echo "$as_me:$LINENO: result: no" >&5
8689 echo "${ECHO_T}no" >&6
8692 test -n "$FLEX" && break
8693 done
8694 test -n "$FLEX" || FLEX="$MISSING flex"
8697 # Bison?
8698 for ac_prog in bison
8700 # Extract the first word of "$ac_prog", so it can be a program name with args.
8701 set dummy $ac_prog; ac_word=$2
8702 echo "$as_me:$LINENO: checking for $ac_word" >&5
8703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8704 if test "${ac_cv_prog_BISON+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707 if test -n "$BISON"; then
8708 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8709 else
8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711 for as_dir in $PATH
8713 IFS=$as_save_IFS
8714 test -z "$as_dir" && as_dir=.
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8717 ac_cv_prog_BISON="$ac_prog"
8718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8719 break 2
8721 done
8722 done
8726 BISON=$ac_cv_prog_BISON
8727 if test -n "$BISON"; then
8728 echo "$as_me:$LINENO: result: $BISON" >&5
8729 echo "${ECHO_T}$BISON" >&6
8730 else
8731 echo "$as_me:$LINENO: result: no" >&5
8732 echo "${ECHO_T}no" >&6
8735 test -n "$BISON" && break
8736 done
8737 test -n "$BISON" || BISON="$MISSING bison"
8740 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8741 # check for build == host before using them.
8743 # NM
8744 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8745 && test -d ../binutils ; then
8746 NM='$(objdir)/../binutils/nm-new'
8747 else
8748 # Extract the first word of "nm", so it can be a program name with args.
8749 set dummy nm; ac_word=$2
8750 echo "$as_me:$LINENO: checking for $ac_word" >&5
8751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8752 if test "${ac_cv_prog_NM+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755 if test -n "$NM"; then
8756 ac_cv_prog_NM="$NM" # Let the user override the test.
8757 else
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759 for as_dir in $PATH
8761 IFS=$as_save_IFS
8762 test -z "$as_dir" && as_dir=.
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8765 ac_cv_prog_NM="nm"
8766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 break 2
8769 done
8770 done
8772 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8775 NM=$ac_cv_prog_NM
8776 if test -n "$NM"; then
8777 echo "$as_me:$LINENO: result: $NM" >&5
8778 echo "${ECHO_T}$NM" >&6
8779 else
8780 echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6
8786 # AR
8787 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8788 && test -d ../binutils ; then
8789 AR='$(objdir)/../binutils/ar'
8790 else
8791 # Extract the first word of "ar", so it can be a program name with args.
8792 set dummy ar; ac_word=$2
8793 echo "$as_me:$LINENO: checking for $ac_word" >&5
8794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8795 if test "${ac_cv_prog_AR+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798 if test -n "$AR"; then
8799 ac_cv_prog_AR="$AR" # Let the user override the test.
8800 else
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 for as_dir in $PATH
8804 IFS=$as_save_IFS
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808 ac_cv_prog_AR="ar"
8809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8810 break 2
8812 done
8813 done
8815 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8818 AR=$ac_cv_prog_AR
8819 if test -n "$AR"; then
8820 echo "$as_me:$LINENO: result: $AR" >&5
8821 echo "${ECHO_T}$AR" >&6
8822 else
8823 echo "$as_me:$LINENO: result: no" >&5
8824 echo "${ECHO_T}no" >&6
8830 # --------------------
8831 # Checks for C headers
8832 # --------------------
8834 # Need to reject headers which give warnings, so that the -Werror bootstrap
8835 # works later. *sigh* This needs to come before all header checks.
8837 ac_c_preproc_warn_flag=yes
8839 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8840 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8841 if test "${ac_cv_header_stdc+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844 cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h. */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8850 #include <stdlib.h>
8851 #include <stdarg.h>
8852 #include <string.h>
8853 #include <float.h>
8856 main ()
8860 return 0;
8862 _ACEOF
8863 rm -f conftest.$ac_objext
8864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8865 (eval $ac_compile) 2>conftest.er1
8866 ac_status=$?
8867 grep -v '^ *+' conftest.er1 >conftest.err
8868 rm -f conftest.er1
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } &&
8872 { ac_try='test -z "$ac_c_werror_flag"
8873 || test ! -s conftest.err'
8874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875 (eval $ac_try) 2>&5
8876 ac_status=$?
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; } &&
8879 { ac_try='test -s conftest.$ac_objext'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 (eval $ac_try) 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; }; then
8885 ac_cv_header_stdc=yes
8886 else
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8890 ac_cv_header_stdc=no
8892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8894 if test $ac_cv_header_stdc = yes; then
8895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8896 cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h. */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8902 #include <string.h>
8904 _ACEOF
8905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8906 $EGREP "memchr" >/dev/null 2>&1; then
8908 else
8909 ac_cv_header_stdc=no
8911 rm -f conftest*
8915 if test $ac_cv_header_stdc = yes; then
8916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8917 cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h. */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8923 #include <stdlib.h>
8925 _ACEOF
8926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8927 $EGREP "free" >/dev/null 2>&1; then
8929 else
8930 ac_cv_header_stdc=no
8932 rm -f conftest*
8936 if test $ac_cv_header_stdc = yes; then
8937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8938 if test "$cross_compiling" = yes; then
8940 else
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 #include <ctype.h>
8948 #if ((' ' & 0x0FF) == 0x020)
8949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8951 #else
8952 # define ISLOWER(c) \
8953 (('a' <= (c) && (c) <= 'i') \
8954 || ('j' <= (c) && (c) <= 'r') \
8955 || ('s' <= (c) && (c) <= 'z'))
8956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8957 #endif
8959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8961 main ()
8963 int i;
8964 for (i = 0; i < 256; i++)
8965 if (XOR (islower (i), ISLOWER (i))
8966 || toupper (i) != TOUPPER (i))
8967 exit(2);
8968 exit (0);
8970 _ACEOF
8971 rm -f conftest$ac_exeext
8972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8973 (eval $ac_link) 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8983 else
8984 echo "$as_me: program exited with status $ac_status" >&5
8985 echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8988 ( exit $ac_status )
8989 ac_cv_header_stdc=no
8991 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8995 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8996 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8997 if test $ac_cv_header_stdc = yes; then
8999 cat >>confdefs.h <<\_ACEOF
9000 #define STDC_HEADERS 1
9001 _ACEOF
9005 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9006 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9007 if test "${ac_cv_header_time+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010 cat >conftest.$ac_ext <<_ACEOF
9011 /* confdefs.h. */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9016 #include <sys/types.h>
9017 #include <sys/time.h>
9018 #include <time.h>
9021 main ()
9023 if ((struct tm *) 0)
9024 return 0;
9026 return 0;
9028 _ACEOF
9029 rm -f conftest.$ac_objext
9030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9031 (eval $ac_compile) 2>conftest.er1
9032 ac_status=$?
9033 grep -v '^ *+' conftest.er1 >conftest.err
9034 rm -f conftest.er1
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
9038 { ac_try='test -z "$ac_c_werror_flag"
9039 || test ! -s conftest.err'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 (eval $ac_try) 2>&5
9042 ac_status=$?
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; } &&
9045 { ac_try='test -s conftest.$ac_objext'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 (eval $ac_try) 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9051 ac_cv_header_time=yes
9052 else
9053 echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.$ac_ext >&5
9056 ac_cv_header_time=no
9058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9060 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9061 echo "${ECHO_T}$ac_cv_header_time" >&6
9062 if test $ac_cv_header_time = yes; then
9064 cat >>confdefs.h <<\_ACEOF
9065 #define TIME_WITH_SYS_TIME 1
9066 _ACEOF
9070 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9071 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9072 if test "${gcc_cv_header_string+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9074 else
9075 cat >conftest.$ac_ext <<_ACEOF
9076 /* confdefs.h. */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9081 #include <string.h>
9082 #include <strings.h>
9084 main ()
9088 return 0;
9090 _ACEOF
9091 rm -f conftest.$ac_objext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9093 (eval $ac_compile) 2>conftest.er1
9094 ac_status=$?
9095 grep -v '^ *+' conftest.er1 >conftest.err
9096 rm -f conftest.er1
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } &&
9100 { ac_try='test -z "$ac_c_werror_flag"
9101 || test ! -s conftest.err'
9102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103 (eval $ac_try) 2>&5
9104 ac_status=$?
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; } &&
9107 { ac_try='test -s conftest.$ac_objext'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 (eval $ac_try) 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 gcc_cv_header_string=yes
9114 else
9115 echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9118 gcc_cv_header_string=no
9120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9122 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9123 echo "${ECHO_T}$gcc_cv_header_string" >&6
9124 if test $gcc_cv_header_string = yes; then
9126 cat >>confdefs.h <<\_ACEOF
9127 #define STRING_WITH_STRINGS 1
9128 _ACEOF
9132 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9133 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9134 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 else
9137 cat >conftest.$ac_ext <<_ACEOF
9138 /* confdefs.h. */
9139 _ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9143 #include <sys/types.h>
9144 #include <sys/wait.h>
9145 #ifndef WEXITSTATUS
9146 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9147 #endif
9148 #ifndef WIFEXITED
9149 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9150 #endif
9153 main ()
9155 int s;
9156 wait (&s);
9157 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9159 return 0;
9161 _ACEOF
9162 rm -f conftest.$ac_objext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9164 (eval $ac_compile) 2>conftest.er1
9165 ac_status=$?
9166 grep -v '^ *+' conftest.er1 >conftest.err
9167 rm -f conftest.er1
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
9171 { ac_try='test -z "$ac_c_werror_flag"
9172 || test ! -s conftest.err'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 (eval $ac_try) 2>&5
9175 ac_status=$?
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; } &&
9178 { ac_try='test -s conftest.$ac_objext'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 (eval $ac_try) 2>&5
9181 ac_status=$?
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9184 ac_cv_header_sys_wait_h=yes
9185 else
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9189 ac_cv_header_sys_wait_h=no
9191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9193 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9194 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9195 if test $ac_cv_header_sys_wait_h = yes; then
9197 cat >>confdefs.h <<\_ACEOF
9198 #define HAVE_SYS_WAIT_H 1
9199 _ACEOF
9225 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9226 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9227 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9228 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9231 echo "$as_me:$LINENO: checking for $ac_header" >&5
9232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236 cat >conftest.$ac_ext <<_ACEOF
9237 /* confdefs.h. */
9238 _ACEOF
9239 cat confdefs.h >>conftest.$ac_ext
9240 cat >>conftest.$ac_ext <<_ACEOF
9241 /* end confdefs.h. */
9242 #include <$ac_header>
9243 _ACEOF
9244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9246 ac_status=$?
9247 grep -v '^ *+' conftest.er1 >conftest.err
9248 rm -f conftest.er1
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } >/dev/null; then
9252 if test -s conftest.err; then
9253 ac_cpp_err=$ac_c_preproc_warn_flag
9254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9255 else
9256 ac_cpp_err=
9258 else
9259 ac_cpp_err=yes
9261 if test -z "$ac_cpp_err"; then
9262 eval "$as_ac_Header=yes"
9263 else
9264 echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9267 eval "$as_ac_Header=no"
9269 rm -f conftest.err conftest.$ac_ext
9271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9274 cat >>confdefs.h <<_ACEOF
9275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9276 _ACEOF
9279 done
9282 # Check for thread headers.
9283 echo "$as_me:$LINENO: checking for thread.h" >&5
9284 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9285 if test "${ac_cv_header_thread_h+set}" = set; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 else
9288 cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h. */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9294 #include <thread.h>
9295 _ACEOF
9296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9298 ac_status=$?
9299 grep -v '^ *+' conftest.er1 >conftest.err
9300 rm -f conftest.er1
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } >/dev/null; then
9304 if test -s conftest.err; then
9305 ac_cpp_err=$ac_c_preproc_warn_flag
9306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9307 else
9308 ac_cpp_err=
9310 else
9311 ac_cpp_err=yes
9313 if test -z "$ac_cpp_err"; then
9314 ac_cv_header_thread_h=yes
9315 else
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319 ac_cv_header_thread_h=no
9321 rm -f conftest.err conftest.$ac_ext
9323 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9324 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9325 if test $ac_cv_header_thread_h = yes; then
9326 have_thread_h=yes
9327 else
9328 have_thread_h=
9331 echo "$as_me:$LINENO: checking for pthread.h" >&5
9332 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9333 if test "${ac_cv_header_pthread_h+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 else
9336 cat >conftest.$ac_ext <<_ACEOF
9337 /* confdefs.h. */
9338 _ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 #include <pthread.h>
9343 _ACEOF
9344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9346 ac_status=$?
9347 grep -v '^ *+' conftest.er1 >conftest.err
9348 rm -f conftest.er1
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } >/dev/null; then
9352 if test -s conftest.err; then
9353 ac_cpp_err=$ac_c_preproc_warn_flag
9354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9355 else
9356 ac_cpp_err=
9358 else
9359 ac_cpp_err=yes
9361 if test -z "$ac_cpp_err"; then
9362 ac_cv_header_pthread_h=yes
9363 else
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 ac_cv_header_pthread_h=no
9369 rm -f conftest.err conftest.$ac_ext
9371 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9372 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9373 if test $ac_cv_header_pthread_h = yes; then
9374 have_pthread_h=yes
9375 else
9376 have_pthread_h=
9380 # These tests can't be done till we know if we have limits.h.
9381 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9382 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9383 if test "${gcc_cv_decl_char_bit+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 else
9386 cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h. */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 #ifdef HAVE_LIMITS_H
9393 #include <limits.h>
9394 #endif
9395 #ifdef CHAR_BIT
9396 found
9397 #endif
9398 _ACEOF
9399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9400 $EGREP "found" >/dev/null 2>&1; then
9401 gcc_cv_decl_char_bit=yes
9402 else
9403 gcc_cv_decl_char_bit=no
9405 rm -f conftest*
9409 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9410 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9411 if test $gcc_cv_decl_char_bit = no; then
9412 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9413 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9414 if test "${gcc_cv_c_nbby+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 else
9418 gcc_cv_c_nbby=
9419 while test $i -lt 65; do
9420 cat >conftest.$ac_ext <<_ACEOF
9421 /* confdefs.h. */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9428 main ()
9430 switch(0) {
9431 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9432 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9435 return 0;
9437 _ACEOF
9438 rm -f conftest.$ac_objext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9440 (eval $ac_compile) 2>conftest.er1
9441 ac_status=$?
9442 grep -v '^ *+' conftest.er1 >conftest.err
9443 rm -f conftest.er1
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -z "$ac_c_werror_flag"
9448 || test ! -s conftest.err'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 (eval $ac_try) 2>&5
9451 ac_status=$?
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; } &&
9454 { ac_try='test -s conftest.$ac_objext'
9455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 (eval $ac_try) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; }; then
9460 gcc_cv_c_nbby=$i; break
9461 else
9462 echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9467 i=`expr $i + 1`
9468 done
9469 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9472 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9473 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9474 if test $gcc_cv_c_nbby = failed; then
9475 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9476 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9477 { (exit 1); exit 1; }; }
9478 else
9480 cat >>confdefs.h <<_ACEOF
9481 #define CHAR_BIT $gcc_cv_c_nbby
9482 _ACEOF
9486 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9487 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9488 if test "${ac_cv_c_bigendian+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491 # See if sys/param.h defines the BYTE_ORDER macro.
9492 cat >conftest.$ac_ext <<_ACEOF
9493 /* confdefs.h. */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9498 #include <sys/types.h>
9499 #include <sys/param.h>
9502 main ()
9504 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9505 bogus endian macros
9506 #endif
9509 return 0;
9511 _ACEOF
9512 rm -f conftest.$ac_objext
9513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9514 (eval $ac_compile) 2>conftest.er1
9515 ac_status=$?
9516 grep -v '^ *+' conftest.er1 >conftest.err
9517 rm -f conftest.er1
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
9521 { ac_try='test -z "$ac_c_werror_flag"
9522 || test ! -s conftest.err'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 (eval $ac_try) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; } &&
9528 { ac_try='test -s conftest.$ac_objext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 # It does; now see whether it defined to BIG_ENDIAN or not.
9535 cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h. */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541 #include <sys/types.h>
9542 #include <sys/param.h>
9545 main ()
9547 #if BYTE_ORDER != BIG_ENDIAN
9548 not big endian
9549 #endif
9552 return 0;
9554 _ACEOF
9555 rm -f conftest.$ac_objext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9557 (eval $ac_compile) 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag"
9565 || test ! -s conftest.err'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest.$ac_objext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 ac_cv_c_bigendian=yes
9578 else
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9582 ac_cv_c_bigendian=no
9584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9585 else
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 # It does not; compile a test program.
9590 if test "$cross_compiling" = yes; then
9591 # try to guess the endianness by grepping values into an object file
9592 ac_cv_c_bigendian=unknown
9593 cat >conftest.$ac_ext <<_ACEOF
9594 /* confdefs.h. */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9599 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9600 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9601 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9602 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9603 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9604 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9606 main ()
9608 _ascii (); _ebcdic ();
9610 return 0;
9612 _ACEOF
9613 rm -f conftest.$ac_objext
9614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9615 (eval $ac_compile) 2>conftest.er1
9616 ac_status=$?
9617 grep -v '^ *+' conftest.er1 >conftest.err
9618 rm -f conftest.er1
9619 cat conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } &&
9622 { ac_try='test -z "$ac_c_werror_flag"
9623 || test ! -s conftest.err'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 (eval $ac_try) 2>&5
9626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; } &&
9629 { ac_try='test -s conftest.$ac_objext'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 (eval $ac_try) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9636 ac_cv_c_bigendian=yes
9638 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9639 if test "$ac_cv_c_bigendian" = unknown; then
9640 ac_cv_c_bigendian=no
9641 else
9642 # finding both strings is unlikely to happen, but who knows?
9643 ac_cv_c_bigendian=unknown
9646 else
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9652 else
9653 cat >conftest.$ac_ext <<_ACEOF
9654 /* confdefs.h. */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9660 main ()
9662 /* Are we little or big endian? From Harbison&Steele. */
9663 union
9665 long l;
9666 char c[sizeof (long)];
9667 } u;
9668 u.l = 1;
9669 exit (u.c[sizeof (long) - 1] == 1);
9671 _ACEOF
9672 rm -f conftest$ac_exeext
9673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9674 (eval $ac_link) 2>&5
9675 ac_status=$?
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 (eval $ac_try) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_cv_c_bigendian=no
9684 else
9685 echo "$as_me: program exited with status $ac_status" >&5
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 ( exit $ac_status )
9690 ac_cv_c_bigendian=yes
9692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9697 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9698 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9699 case $ac_cv_c_bigendian in
9700 yes)
9702 cat >>confdefs.h <<\_ACEOF
9703 #define WORDS_BIGENDIAN 1
9704 _ACEOF
9709 { { echo "$as_me:$LINENO: error: unknown endianness
9710 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9711 echo "$as_me: error: unknown endianness
9712 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9713 { (exit 1); exit 1; }; } ;;
9714 esac
9717 # --------
9718 # UNSORTED
9719 # --------
9722 # These libraries may be used by collect2.
9723 # We may need a special search path to get them linked.
9724 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9725 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9726 if test "${gcc_cv_collect2_libs+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 else
9729 save_LIBS="$LIBS"
9730 for libs in '' -lld -lmld \
9731 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9732 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9734 LIBS="$libs"
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h. */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9742 /* Override any gcc2 internal prototype to avoid an error. */
9743 #ifdef __cplusplus
9744 extern "C"
9745 #endif
9746 /* We use char because int might match the return type of a gcc2
9747 builtin and then its argument prototype would still apply. */
9748 char ldopen ();
9750 main ()
9752 ldopen ();
9754 return 0;
9756 _ACEOF
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9759 (eval $ac_link) 2>conftest.er1
9760 ac_status=$?
9761 grep -v '^ *+' conftest.er1 >conftest.err
9762 rm -f conftest.er1
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -z "$ac_c_werror_flag"
9767 || test ! -s conftest.err'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 (eval $ac_try) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; } &&
9773 { ac_try='test -s conftest$ac_exeext'
9774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 (eval $ac_try) 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; }; then
9779 gcc_cv_collect2_libs="$libs"; break
9780 else
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9785 rm -f conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
9787 done
9788 LIBS="$save_LIBS"
9789 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9791 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9792 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9793 case $gcc_cv_collect2_libs in
9794 "none required") ;;
9795 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9796 esac
9799 # When building Ada code on Alpha, we need exc_resume which is usually in
9800 # -lexc. So test for it.
9801 save_LIBS="$LIBS"
9802 LIBS=
9803 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9804 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9805 if test "${ac_cv_search_exc_resume+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808 ac_func_search_save_LIBS=$LIBS
9809 ac_cv_search_exc_resume=no
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9817 /* Override any gcc2 internal prototype to avoid an error. */
9818 #ifdef __cplusplus
9819 extern "C"
9820 #endif
9821 /* We use char because int might match the return type of a gcc2
9822 builtin and then its argument prototype would still apply. */
9823 char exc_resume ();
9825 main ()
9827 exc_resume ();
9829 return 0;
9831 _ACEOF
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9834 (eval $ac_link) 2>conftest.er1
9835 ac_status=$?
9836 grep -v '^ *+' conftest.er1 >conftest.err
9837 rm -f conftest.er1
9838 cat conftest.err >&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
9841 { ac_try='test -z "$ac_c_werror_flag"
9842 || test ! -s conftest.err'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844 (eval $ac_try) 2>&5
9845 ac_status=$?
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; } &&
9848 { ac_try='test -s conftest$ac_exeext'
9849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850 (eval $ac_try) 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
9854 ac_cv_search_exc_resume="none required"
9855 else
9856 echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9860 rm -f conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 if test "$ac_cv_search_exc_resume" = no; then
9863 for ac_lib in exc; do
9864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9865 cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h. */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9872 /* Override any gcc2 internal prototype to avoid an error. */
9873 #ifdef __cplusplus
9874 extern "C"
9875 #endif
9876 /* We use char because int might match the return type of a gcc2
9877 builtin and then its argument prototype would still apply. */
9878 char exc_resume ();
9880 main ()
9882 exc_resume ();
9884 return 0;
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9889 (eval $ac_link) 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -z "$ac_c_werror_flag"
9897 || test ! -s conftest.err'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 (eval $ac_try) 2>&5
9900 ac_status=$?
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; } &&
9903 { ac_try='test -s conftest$ac_exeext'
9904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 (eval $ac_try) 2>&5
9906 ac_status=$?
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 ac_cv_search_exc_resume="-l$ac_lib"
9910 break
9911 else
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9916 rm -f conftest.err conftest.$ac_objext \
9917 conftest$ac_exeext conftest.$ac_ext
9918 done
9920 LIBS=$ac_func_search_save_LIBS
9922 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9923 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9924 if test "$ac_cv_search_exc_resume" != no; then
9925 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9929 GNAT_LIBEXC="$LIBS"
9930 LIBS="$save_LIBS"
9933 # Some systems put ldexp and frexp in libm instead of libc; assume
9934 # they're both in the same place. jcf-dump needs them.
9935 save_LIBS="$LIBS"
9936 LIBS=
9937 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9938 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9939 if test "${ac_cv_search_ldexp+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9941 else
9942 ac_func_search_save_LIBS=$LIBS
9943 ac_cv_search_ldexp=no
9944 cat >conftest.$ac_ext <<_ACEOF
9945 /* confdefs.h. */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9951 /* Override any gcc2 internal prototype to avoid an error. */
9952 #ifdef __cplusplus
9953 extern "C"
9954 #endif
9955 /* We use char because int might match the return type of a gcc2
9956 builtin and then its argument prototype would still apply. */
9957 char ldexp ();
9959 main ()
9961 ldexp ();
9963 return 0;
9965 _ACEOF
9966 rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9968 (eval $ac_link) 2>conftest.er1
9969 ac_status=$?
9970 grep -v '^ *+' conftest.er1 >conftest.err
9971 rm -f conftest.er1
9972 cat conftest.err >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -z "$ac_c_werror_flag"
9976 || test ! -s conftest.err'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 (eval $ac_try) 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; } &&
9982 { ac_try='test -s conftest$ac_exeext'
9983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 (eval $ac_try) 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_search_ldexp="none required"
9989 else
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9994 rm -f conftest.err conftest.$ac_objext \
9995 conftest$ac_exeext conftest.$ac_ext
9996 if test "$ac_cv_search_ldexp" = no; then
9997 for ac_lib in m; do
9998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9999 cat >conftest.$ac_ext <<_ACEOF
10000 /* confdefs.h. */
10001 _ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10006 /* Override any gcc2 internal prototype to avoid an error. */
10007 #ifdef __cplusplus
10008 extern "C"
10009 #endif
10010 /* We use char because int might match the return type of a gcc2
10011 builtin and then its argument prototype would still apply. */
10012 char ldexp ();
10014 main ()
10016 ldexp ();
10018 return 0;
10020 _ACEOF
10021 rm -f conftest.$ac_objext conftest$ac_exeext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023 (eval $ac_link) 2>conftest.er1
10024 ac_status=$?
10025 grep -v '^ *+' conftest.er1 >conftest.err
10026 rm -f conftest.er1
10027 cat conftest.err >&5
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } &&
10030 { ac_try='test -z "$ac_c_werror_flag"
10031 || test ! -s conftest.err'
10032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033 (eval $ac_try) 2>&5
10034 ac_status=$?
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; } &&
10037 { ac_try='test -s conftest$ac_exeext'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10043 ac_cv_search_ldexp="-l$ac_lib"
10044 break
10045 else
10046 echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10050 rm -f conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
10052 done
10054 LIBS=$ac_func_search_save_LIBS
10056 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10057 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
10058 if test "$ac_cv_search_ldexp" != no; then
10059 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
10063 LDEXP_LIB="$LIBS"
10064 LIBS="$save_LIBS"
10067 # Use <inttypes.h> only if it exists,
10068 # doesn't clash with <sys/types.h>, and declares intmax_t.
10069 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10070 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10071 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10080 #include <sys/types.h>
10081 #include <inttypes.h>
10083 main ()
10085 intmax_t i = -1;
10087 return 0;
10089 _ACEOF
10090 rm -f conftest.$ac_objext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10092 (eval $ac_compile) 2>conftest.er1
10093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag"
10100 || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest.$ac_objext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 gcc_cv_header_inttypes_h=yes
10113 else
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 gcc_cv_header_inttypes_h=no
10119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10122 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10123 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10124 if test $gcc_cv_header_inttypes_h = yes; then
10126 cat >>confdefs.h <<\_ACEOF
10127 #define HAVE_INTTYPES_H 1
10128 _ACEOF
10169 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
10170 sysconf strsignal getrusage nl_langinfo scandir alphasort \
10171 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10172 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
10174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10175 echo "$as_me:$LINENO: checking for $ac_func" >&5
10176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10177 if eval "test \"\${$as_ac_var+set}\" = set"; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180 cat >conftest.$ac_ext <<_ACEOF
10181 /* confdefs.h. */
10182 _ACEOF
10183 cat confdefs.h >>conftest.$ac_ext
10184 cat >>conftest.$ac_ext <<_ACEOF
10185 /* end confdefs.h. */
10186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10188 #define $ac_func innocuous_$ac_func
10190 /* System header to define __stub macros and hopefully few prototypes,
10191 which can conflict with char $ac_func (); below.
10192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10193 <limits.h> exists even on freestanding compilers. */
10195 #ifdef __STDC__
10196 # include <limits.h>
10197 #else
10198 # include <assert.h>
10199 #endif
10201 #undef $ac_func
10203 /* Override any gcc2 internal prototype to avoid an error. */
10204 #ifdef __cplusplus
10205 extern "C"
10207 #endif
10208 /* We use char because int might match the return type of a gcc2
10209 builtin and then its argument prototype would still apply. */
10210 char $ac_func ();
10211 /* The GNU C library defines this for functions which it implements
10212 to always fail with ENOSYS. Some functions are actually named
10213 something starting with __ and the normal name is an alias. */
10214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10215 choke me
10216 #else
10217 char (*f) () = $ac_func;
10218 #endif
10219 #ifdef __cplusplus
10221 #endif
10224 main ()
10226 return f != $ac_func;
10228 return 0;
10230 _ACEOF
10231 rm -f conftest.$ac_objext conftest$ac_exeext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10233 (eval $ac_link) 2>conftest.er1
10234 ac_status=$?
10235 grep -v '^ *+' conftest.er1 >conftest.err
10236 rm -f conftest.er1
10237 cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } &&
10240 { ac_try='test -z "$ac_c_werror_flag"
10241 || test ! -s conftest.err'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try='test -s conftest$ac_exeext'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; }; then
10253 eval "$as_ac_var=yes"
10254 else
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 eval "$as_ac_var=no"
10260 rm -f conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10265 if test `eval echo '${'$as_ac_var'}'` = yes; then
10266 cat >>confdefs.h <<_ACEOF
10267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10268 _ACEOF
10271 done
10274 if test x$ac_cv_func_mbstowcs = xyes; then
10275 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10276 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10277 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280 if test "$cross_compiling" = yes; then
10281 gcc_cv_func_mbstowcs_works=yes
10282 else
10283 cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h. */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 #include <stdlib.h>
10290 int main()
10292 mbstowcs(0, "", 0);
10293 return 0;
10295 _ACEOF
10296 rm -f conftest$ac_exeext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298 (eval $ac_link) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 gcc_cv_func_mbstowcs_works=yes
10308 else
10309 echo "$as_me: program exited with status $ac_status" >&5
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10313 ( exit $ac_status )
10314 gcc_cv_func_mbstowcs_works=no
10316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10319 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10320 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10321 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10323 cat >>confdefs.h <<\_ACEOF
10324 #define HAVE_WORKING_MBSTOWCS 1
10325 _ACEOF
10330 echo "$as_me:$LINENO: checking for ssize_t" >&5
10331 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10332 if test "${ac_cv_type_ssize_t+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 else
10335 cat >conftest.$ac_ext <<_ACEOF
10336 /* confdefs.h. */
10337 _ACEOF
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 $ac_includes_default
10343 main ()
10345 if ((ssize_t *) 0)
10346 return 0;
10347 if (sizeof (ssize_t))
10348 return 0;
10350 return 0;
10352 _ACEOF
10353 rm -f conftest.$ac_objext
10354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10355 (eval $ac_compile) 2>conftest.er1
10356 ac_status=$?
10357 grep -v '^ *+' conftest.er1 >conftest.err
10358 rm -f conftest.er1
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } &&
10362 { ac_try='test -z "$ac_c_werror_flag"
10363 || test ! -s conftest.err'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; } &&
10369 { ac_try='test -s conftest.$ac_objext'
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }; then
10375 ac_cv_type_ssize_t=yes
10376 else
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_cv_type_ssize_t=no
10382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10384 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10385 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10386 if test $ac_cv_type_ssize_t = yes; then
10388 else
10390 cat >>confdefs.h <<_ACEOF
10391 #define ssize_t int
10392 _ACEOF
10397 # Try to determine the array type of the second argument of getgroups
10398 # for the target system (int or gid_t).
10399 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10400 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10401 if test "${ac_cv_type_uid_t+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404 cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h. */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 #include <sys/types.h>
10412 _ACEOF
10413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10414 $EGREP "uid_t" >/dev/null 2>&1; then
10415 ac_cv_type_uid_t=yes
10416 else
10417 ac_cv_type_uid_t=no
10419 rm -f conftest*
10422 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10423 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10424 if test $ac_cv_type_uid_t = no; then
10426 cat >>confdefs.h <<\_ACEOF
10427 #define uid_t int
10428 _ACEOF
10431 cat >>confdefs.h <<\_ACEOF
10432 #define gid_t int
10433 _ACEOF
10437 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10438 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10439 if test "${ac_cv_type_getgroups+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442 if test "$cross_compiling" = yes; then
10443 ac_cv_type_getgroups=cross
10444 else
10445 cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h. */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 /* Thanks to Mike Rendell for this test. */
10452 #include <sys/types.h>
10453 #define NGID 256
10454 #undef MAX
10455 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10458 main ()
10460 gid_t gidset[NGID];
10461 int i, n;
10462 union { gid_t gval; long lval; } val;
10464 val.lval = -1;
10465 for (i = 0; i < NGID; i++)
10466 gidset[i] = val.gval;
10467 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10468 gidset);
10469 /* Exit non-zero if getgroups seems to require an array of ints. This
10470 happens when gid_t is short but getgroups modifies an array of ints. */
10471 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10473 _ACEOF
10474 rm -f conftest$ac_exeext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
10485 ac_cv_type_getgroups=gid_t
10486 else
10487 echo "$as_me: program exited with status $ac_status" >&5
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ( exit $ac_status )
10492 ac_cv_type_getgroups=int
10494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10496 if test $ac_cv_type_getgroups = cross; then
10497 cat >conftest.$ac_ext <<_ACEOF
10498 /* confdefs.h. */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503 #include <unistd.h>
10505 _ACEOF
10506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10507 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10508 ac_cv_type_getgroups=gid_t
10509 else
10510 ac_cv_type_getgroups=int
10512 rm -f conftest*
10516 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10517 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10519 cat >>confdefs.h <<_ACEOF
10520 #define GETGROUPS_T $ac_cv_type_getgroups
10521 _ACEOF
10524 if test "${target}" = "${build}"; then
10525 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10526 else
10527 case "${target}" in
10528 # This condition may need some tweaking. It should include all
10529 # targets where the array type of the second argument of getgroups
10530 # is int and the type of gid_t is not equivalent to int.
10531 *-*-sunos* | *-*-ultrix*)
10532 TARGET_GETGROUPS_T=int
10535 TARGET_GETGROUPS_T=gid_t
10537 esac
10542 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10543 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10544 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 else
10547 cat >conftest.$ac_ext <<_ACEOF
10548 /* confdefs.h. */
10549 _ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10553 #include <sys/mman.h>
10554 _ACEOF
10555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10557 ac_status=$?
10558 grep -v '^ *+' conftest.er1 >conftest.err
10559 rm -f conftest.er1
10560 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } >/dev/null; then
10563 if test -s conftest.err; then
10564 ac_cpp_err=$ac_c_preproc_warn_flag
10565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10566 else
10567 ac_cpp_err=
10569 else
10570 ac_cpp_err=yes
10572 if test -z "$ac_cpp_err"; then
10573 ac_cv_header_sys_mman_h=yes
10574 else
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10578 ac_cv_header_sys_mman_h=no
10580 rm -f conftest.err conftest.$ac_ext
10582 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10583 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10584 if test $ac_cv_header_sys_mman_h = yes; then
10585 gcc_header_sys_mman_h=yes
10586 else
10587 gcc_header_sys_mman_h=no
10590 echo "$as_me:$LINENO: checking for mmap" >&5
10591 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10592 if test "${ac_cv_func_mmap+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595 cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h. */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10603 #define mmap innocuous_mmap
10605 /* System header to define __stub macros and hopefully few prototypes,
10606 which can conflict with char mmap (); below.
10607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10608 <limits.h> exists even on freestanding compilers. */
10610 #ifdef __STDC__
10611 # include <limits.h>
10612 #else
10613 # include <assert.h>
10614 #endif
10616 #undef mmap
10618 /* Override any gcc2 internal prototype to avoid an error. */
10619 #ifdef __cplusplus
10620 extern "C"
10622 #endif
10623 /* We use char because int might match the return type of a gcc2
10624 builtin and then its argument prototype would still apply. */
10625 char mmap ();
10626 /* The GNU C library defines this for functions which it implements
10627 to always fail with ENOSYS. Some functions are actually named
10628 something starting with __ and the normal name is an alias. */
10629 #if defined (__stub_mmap) || defined (__stub___mmap)
10630 choke me
10631 #else
10632 char (*f) () = mmap;
10633 #endif
10634 #ifdef __cplusplus
10636 #endif
10639 main ()
10641 return f != mmap;
10643 return 0;
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648 (eval $ac_link) 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try='test -z "$ac_c_werror_flag"
10656 || test ! -s conftest.err'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; } &&
10662 { ac_try='test -s conftest$ac_exeext'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 ac_cv_func_mmap=yes
10669 else
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10673 ac_cv_func_mmap=no
10675 rm -f conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
10678 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10679 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10680 if test $ac_cv_func_mmap = yes; then
10681 gcc_func_mmap=yes
10682 else
10683 gcc_func_mmap=no
10686 if test "$gcc_header_sys_mman_h" != yes \
10687 || test "$gcc_func_mmap" != yes; then
10688 gcc_cv_func_mmap_file=no
10689 gcc_cv_func_mmap_dev_zero=no
10690 gcc_cv_func_mmap_anon=no
10691 else
10692 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10693 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10694 if test "${gcc_cv_func_mmap_file+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 else
10697 # Add a system to this blacklist if
10698 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10699 # memory area containing the same data that you'd get if you applied
10700 # read() to the same fd. The only system known to have a problem here
10701 # is VMS, where text files have record structure.
10702 case "$host_os" in
10703 vms* | ultrix*)
10704 gcc_cv_func_mmap_file=no ;;
10706 gcc_cv_func_mmap_file=yes;;
10707 esac
10709 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10710 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10711 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10712 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10713 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10715 else
10716 # Add a system to this blacklist if it has mmap() but /dev/zero
10717 # does not exist, or if mmapping /dev/zero does not give anonymous
10718 # zeroed pages with both the following properties:
10719 # 1. If you map N consecutive pages in with one call, and then
10720 # unmap any subset of those pages, the pages that were not
10721 # explicitly unmapped remain accessible.
10722 # 2. If you map two adjacent blocks of memory and then unmap them
10723 # both at once, they must both go away.
10724 # Systems known to be in this category are Windows (all variants),
10725 # VMS, and Darwin.
10726 case "$host_os" in
10727 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10728 gcc_cv_func_mmap_dev_zero=no ;;
10730 gcc_cv_func_mmap_dev_zero=yes;;
10731 esac
10733 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10734 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10736 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10737 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10738 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10739 if test "${gcc_cv_decl_map_anon+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 #include <sys/types.h>
10749 #include <sys/mman.h>
10750 #include <unistd.h>
10752 #ifndef MAP_ANONYMOUS
10753 #define MAP_ANONYMOUS MAP_ANON
10754 #endif
10757 main ()
10759 int n = MAP_ANONYMOUS;
10761 return 0;
10763 _ACEOF
10764 rm -f conftest.$ac_objext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10766 (eval $ac_compile) 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
10773 { ac_try='test -z "$ac_c_werror_flag"
10774 || test ! -s conftest.err'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; } &&
10780 { ac_try='test -s conftest.$ac_objext'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 gcc_cv_decl_map_anon=yes
10787 else
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 gcc_cv_decl_map_anon=no
10793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10795 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10796 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10798 if test $gcc_cv_decl_map_anon = no; then
10799 gcc_cv_func_mmap_anon=no
10800 else
10801 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10802 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10803 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 else
10806 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10807 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10808 # doesn't give anonymous zeroed pages with the same properties listed
10809 # above for use of /dev/zero.
10810 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10811 case "$host_os" in
10812 vms* | cygwin* | pe | mingw* | sco* | udk* )
10813 gcc_cv_func_mmap_anon=no ;;
10815 gcc_cv_func_mmap_anon=yes;;
10816 esac
10818 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10819 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10823 if test $gcc_cv_func_mmap_file = yes; then
10825 cat >>confdefs.h <<\_ACEOF
10826 #define HAVE_MMAP_FILE 1
10827 _ACEOF
10830 if test $gcc_cv_func_mmap_dev_zero = yes; then
10832 cat >>confdefs.h <<\_ACEOF
10833 #define HAVE_MMAP_DEV_ZERO 1
10834 _ACEOF
10837 if test $gcc_cv_func_mmap_anon = yes; then
10839 cat >>confdefs.h <<\_ACEOF
10840 #define HAVE_MMAP_ANON 1
10841 _ACEOF
10846 case "${host}" in
10847 *-*-*vms*)
10848 # Under VMS, vfork works very differently than on Unix. The standard test
10849 # won't work, and it isn't easily adaptable. It makes more sense to
10850 # just force it.
10851 ac_cv_func_vfork_works=yes
10853 esac
10854 echo "$as_me:$LINENO: checking for pid_t" >&5
10855 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10856 if test "${ac_cv_type_pid_t+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 else
10859 cat >conftest.$ac_ext <<_ACEOF
10860 /* confdefs.h. */
10861 _ACEOF
10862 cat confdefs.h >>conftest.$ac_ext
10863 cat >>conftest.$ac_ext <<_ACEOF
10864 /* end confdefs.h. */
10865 $ac_includes_default
10867 main ()
10869 if ((pid_t *) 0)
10870 return 0;
10871 if (sizeof (pid_t))
10872 return 0;
10874 return 0;
10876 _ACEOF
10877 rm -f conftest.$ac_objext
10878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10879 (eval $ac_compile) 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -z "$ac_c_werror_flag"
10887 || test ! -s conftest.err'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; } &&
10893 { ac_try='test -s conftest.$ac_objext'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
10899 ac_cv_type_pid_t=yes
10900 else
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10904 ac_cv_type_pid_t=no
10906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10908 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10909 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10910 if test $ac_cv_type_pid_t = yes; then
10912 else
10914 cat >>confdefs.h <<_ACEOF
10915 #define pid_t int
10916 _ACEOF
10922 for ac_header in unistd.h vfork.h
10924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10925 echo "$as_me:$LINENO: checking for $ac_header" >&5
10926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 else
10930 cat >conftest.$ac_ext <<_ACEOF
10931 /* confdefs.h. */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10936 #include <$ac_header>
10937 _ACEOF
10938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10940 ac_status=$?
10941 grep -v '^ *+' conftest.er1 >conftest.err
10942 rm -f conftest.er1
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } >/dev/null; then
10946 if test -s conftest.err; then
10947 ac_cpp_err=$ac_c_preproc_warn_flag
10948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10949 else
10950 ac_cpp_err=
10952 else
10953 ac_cpp_err=yes
10955 if test -z "$ac_cpp_err"; then
10956 eval "$as_ac_Header=yes"
10957 else
10958 echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10961 eval "$as_ac_Header=no"
10963 rm -f conftest.err conftest.$ac_ext
10965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10968 cat >>confdefs.h <<_ACEOF
10969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10970 _ACEOF
10973 done
10977 for ac_func in fork vfork
10979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10980 echo "$as_me:$LINENO: checking for $ac_func" >&5
10981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10982 if eval "test \"\${$as_ac_var+set}\" = set"; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 else
10985 cat >conftest.$ac_ext <<_ACEOF
10986 /* confdefs.h. */
10987 _ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h. */
10991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10993 #define $ac_func innocuous_$ac_func
10995 /* System header to define __stub macros and hopefully few prototypes,
10996 which can conflict with char $ac_func (); below.
10997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10998 <limits.h> exists even on freestanding compilers. */
11000 #ifdef __STDC__
11001 # include <limits.h>
11002 #else
11003 # include <assert.h>
11004 #endif
11006 #undef $ac_func
11008 /* Override any gcc2 internal prototype to avoid an error. */
11009 #ifdef __cplusplus
11010 extern "C"
11012 #endif
11013 /* We use char because int might match the return type of a gcc2
11014 builtin and then its argument prototype would still apply. */
11015 char $ac_func ();
11016 /* The GNU C library defines this for functions which it implements
11017 to always fail with ENOSYS. Some functions are actually named
11018 something starting with __ and the normal name is an alias. */
11019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11020 choke me
11021 #else
11022 char (*f) () = $ac_func;
11023 #endif
11024 #ifdef __cplusplus
11026 #endif
11029 main ()
11031 return f != $ac_func;
11033 return 0;
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11038 (eval $ac_link) 2>conftest.er1
11039 ac_status=$?
11040 grep -v '^ *+' conftest.er1 >conftest.err
11041 rm -f conftest.er1
11042 cat conftest.err >&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } &&
11045 { ac_try='test -z "$ac_c_werror_flag"
11046 || test ! -s conftest.err'
11047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; } &&
11052 { ac_try='test -s conftest$ac_exeext'
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; }; then
11058 eval "$as_ac_var=yes"
11059 else
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11063 eval "$as_ac_var=no"
11065 rm -f conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11070 if test `eval echo '${'$as_ac_var'}'` = yes; then
11071 cat >>confdefs.h <<_ACEOF
11072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11073 _ACEOF
11076 done
11078 if test "x$ac_cv_func_fork" = xyes; then
11079 echo "$as_me:$LINENO: checking for working fork" >&5
11080 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11081 if test "${ac_cv_func_fork_works+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 else
11084 if test "$cross_compiling" = yes; then
11085 ac_cv_func_fork_works=cross
11086 else
11087 cat >conftest.$ac_ext <<_ACEOF
11088 /* By Ruediger Kuhlmann. */
11089 #include <sys/types.h>
11090 #if HAVE_UNISTD_H
11091 # include <unistd.h>
11092 #endif
11093 /* Some systems only have a dummy stub for fork() */
11094 int main ()
11096 if (fork() < 0)
11097 exit (1);
11098 exit (0);
11100 _ACEOF
11101 rm -f conftest$ac_exeext
11102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11103 (eval $ac_link) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108 (eval $ac_try) 2>&5
11109 ac_status=$?
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; }; then
11112 ac_cv_func_fork_works=yes
11113 else
11114 echo "$as_me: program exited with status $ac_status" >&5
11115 echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11118 ( exit $ac_status )
11119 ac_cv_func_fork_works=no
11121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11124 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11125 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11127 else
11128 ac_cv_func_fork_works=$ac_cv_func_fork
11130 if test "x$ac_cv_func_fork_works" = xcross; then
11131 case $host in
11132 *-*-amigaos* | *-*-msdosdjgpp*)
11133 # Override, as these systems have only a dummy fork() stub
11134 ac_cv_func_fork_works=no
11137 ac_cv_func_fork_works=yes
11139 esac
11140 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11141 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11143 ac_cv_func_vfork_works=$ac_cv_func_vfork
11144 if test "x$ac_cv_func_vfork" = xyes; then
11145 echo "$as_me:$LINENO: checking for working vfork" >&5
11146 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11147 if test "${ac_cv_func_vfork_works+set}" = set; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 else
11150 if test "$cross_compiling" = yes; then
11151 ac_cv_func_vfork_works=cross
11152 else
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h. */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 /* Thanks to Paul Eggert for this test. */
11160 #include <stdio.h>
11161 #include <stdlib.h>
11162 #include <sys/types.h>
11163 #include <sys/stat.h>
11164 #include <sys/wait.h>
11165 #if HAVE_UNISTD_H
11166 # include <unistd.h>
11167 #endif
11168 #if HAVE_VFORK_H
11169 # include <vfork.h>
11170 #endif
11171 /* On some sparc systems, changes by the child to local and incoming
11172 argument registers are propagated back to the parent. The compiler
11173 is told about this with #include <vfork.h>, but some compilers
11174 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11175 static variable whose address is put into a register that is
11176 clobbered by the vfork. */
11177 static void
11178 #ifdef __cplusplus
11179 sparc_address_test (int arg)
11180 # else
11181 sparc_address_test (arg) int arg;
11182 #endif
11184 static pid_t child;
11185 if (!child) {
11186 child = vfork ();
11187 if (child < 0) {
11188 perror ("vfork");
11189 _exit(2);
11191 if (!child) {
11192 arg = getpid();
11193 write(-1, "", 0);
11194 _exit (arg);
11200 main ()
11202 pid_t parent = getpid ();
11203 pid_t child;
11205 sparc_address_test (0);
11207 child = vfork ();
11209 if (child == 0) {
11210 /* Here is another test for sparc vfork register problems. This
11211 test uses lots of local variables, at least as many local
11212 variables as main has allocated so far including compiler
11213 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11214 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11215 reuse the register of parent for one of the local variables,
11216 since it will think that parent can't possibly be used any more
11217 in this routine. Assigning to the local variable will thus
11218 munge parent in the parent process. */
11219 pid_t
11220 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11221 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11222 /* Convince the compiler that p..p7 are live; otherwise, it might
11223 use the same hardware register for all 8 local variables. */
11224 if (p != p1 || p != p2 || p != p3 || p != p4
11225 || p != p5 || p != p6 || p != p7)
11226 _exit(1);
11228 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11229 from child file descriptors. If the child closes a descriptor
11230 before it execs or exits, this munges the parent's descriptor
11231 as well. Test for this by closing stdout in the child. */
11232 _exit(close(fileno(stdout)) != 0);
11233 } else {
11234 int status;
11235 struct stat st;
11237 while (wait(&status) != child)
11239 exit(
11240 /* Was there some problem with vforking? */
11241 child < 0
11243 /* Did the child fail? (This shouldn't happen.) */
11244 || status
11246 /* Did the vfork/compiler bug occur? */
11247 || parent != getpid()
11249 /* Did the file descriptor bug occur? */
11250 || fstat(fileno(stdout), &st) != 0
11254 _ACEOF
11255 rm -f conftest$ac_exeext
11256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11257 (eval $ac_link) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11263 ac_status=$?
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; }; then
11266 ac_cv_func_vfork_works=yes
11267 else
11268 echo "$as_me: program exited with status $ac_status" >&5
11269 echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11272 ( exit $ac_status )
11273 ac_cv_func_vfork_works=no
11275 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11278 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11279 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11282 if test "x$ac_cv_func_fork_works" = xcross; then
11283 ac_cv_func_vfork_works=$ac_cv_func_vfork
11284 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11285 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11288 if test "x$ac_cv_func_vfork_works" = xyes; then
11290 cat >>confdefs.h <<\_ACEOF
11291 #define HAVE_WORKING_VFORK 1
11292 _ACEOF
11294 else
11296 cat >>confdefs.h <<\_ACEOF
11297 #define vfork fork
11298 _ACEOF
11301 if test "x$ac_cv_func_fork_works" = xyes; then
11303 cat >>confdefs.h <<\_ACEOF
11304 #define HAVE_WORKING_FORK 1
11305 _ACEOF
11311 if test "X$prefix" = "XNONE"; then
11312 acl_final_prefix="$ac_default_prefix"
11313 else
11314 acl_final_prefix="$prefix"
11316 if test "X$exec_prefix" = "XNONE"; then
11317 acl_final_exec_prefix='${prefix}'
11318 else
11319 acl_final_exec_prefix="$exec_prefix"
11321 acl_save_prefix="$prefix"
11322 prefix="$acl_final_prefix"
11323 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11324 prefix="$acl_save_prefix"
11327 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11328 if test "${with_gnu_ld+set}" = set; then
11329 withval="$with_gnu_ld"
11330 test "$withval" = no || with_gnu_ld=yes
11331 else
11332 with_gnu_ld=no
11334 # Prepare PATH_SEPARATOR.
11335 # The user is always right.
11336 if test "${PATH_SEPARATOR+set}" != set; then
11337 echo "#! /bin/sh" >conf$$.sh
11338 echo "exit 0" >>conf$$.sh
11339 chmod +x conf$$.sh
11340 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11341 PATH_SEPARATOR=';'
11342 else
11343 PATH_SEPARATOR=:
11345 rm -f conf$$.sh
11347 ac_prog=ld
11348 if test "$GCC" = yes; then
11349 # Check if gcc -print-prog-name=ld gives a path.
11350 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11351 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11352 case $host in
11353 *-*-mingw*)
11354 # gcc leaves a trailing carriage return which upsets mingw
11355 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11357 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11358 esac
11359 case $ac_prog in
11360 # Accept absolute paths.
11361 [\\/]* | [A-Za-z]:[\\/]*)
11362 re_direlt='/[^/][^/]*/\.\./'
11363 # Canonicalize the path of ld
11364 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11365 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11366 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11367 done
11368 test -z "$LD" && LD="$ac_prog"
11371 # If it fails, then pretend we aren't using GCC.
11372 ac_prog=ld
11375 # If it is relative, then search for the first ld in PATH.
11376 with_gnu_ld=unknown
11378 esac
11379 elif test "$with_gnu_ld" = yes; then
11380 echo "$as_me:$LINENO: checking for GNU ld" >&5
11381 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11382 else
11383 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11384 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11386 if test "${acl_cv_path_LD+set}" = set; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 else
11389 if test -z "$LD"; then
11390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11391 for ac_dir in $PATH; do
11392 test -z "$ac_dir" && ac_dir=.
11393 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11394 acl_cv_path_LD="$ac_dir/$ac_prog"
11395 # Check to see if the program is GNU ld. I'd rather use --version,
11396 # but apparently some GNU ld's only accept -v.
11397 # Break only if it was the GNU/non-GNU ld that we prefer.
11398 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11399 test "$with_gnu_ld" != no && break
11400 else
11401 test "$with_gnu_ld" != yes && break
11404 done
11405 IFS="$ac_save_ifs"
11406 else
11407 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11411 LD="$acl_cv_path_LD"
11412 if test -n "$LD"; then
11413 echo "$as_me:$LINENO: result: $LD" >&5
11414 echo "${ECHO_T}$LD" >&6
11415 else
11416 echo "$as_me:$LINENO: result: no" >&5
11417 echo "${ECHO_T}no" >&6
11419 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11420 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11421 { (exit 1); exit 1; }; }
11422 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11423 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11424 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 else
11427 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11428 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11429 acl_cv_prog_gnu_ld=yes
11430 else
11431 acl_cv_prog_gnu_ld=no
11434 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11435 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11436 with_gnu_ld=$acl_cv_prog_gnu_ld
11440 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11441 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11442 if test "${acl_cv_rpath+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11446 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11447 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11448 . ./conftest.sh
11449 rm -f ./conftest.sh
11450 acl_cv_rpath=done
11453 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11454 echo "${ECHO_T}$acl_cv_rpath" >&6
11455 wl="$acl_cv_wl"
11456 libext="$acl_cv_libext"
11457 shlibext="$acl_cv_shlibext"
11458 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11459 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11460 hardcode_direct="$acl_cv_hardcode_direct"
11461 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11462 # Check whether --enable-rpath or --disable-rpath was given.
11463 if test "${enable_rpath+set}" = set; then
11464 enableval="$enable_rpath"
11466 else
11467 enable_rpath=yes
11476 use_additional=yes
11478 acl_save_prefix="$prefix"
11479 prefix="$acl_final_prefix"
11480 acl_save_exec_prefix="$exec_prefix"
11481 exec_prefix="$acl_final_exec_prefix"
11483 eval additional_includedir=\"$includedir\"
11484 eval additional_libdir=\"$libdir\"
11486 exec_prefix="$acl_save_exec_prefix"
11487 prefix="$acl_save_prefix"
11490 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11491 if test "${with_libiconv_prefix+set}" = set; then
11492 withval="$with_libiconv_prefix"
11494 if test "X$withval" = "Xno"; then
11495 use_additional=no
11496 else
11497 if test "X$withval" = "X"; then
11499 acl_save_prefix="$prefix"
11500 prefix="$acl_final_prefix"
11501 acl_save_exec_prefix="$exec_prefix"
11502 exec_prefix="$acl_final_exec_prefix"
11504 eval additional_includedir=\"$includedir\"
11505 eval additional_libdir=\"$libdir\"
11507 exec_prefix="$acl_save_exec_prefix"
11508 prefix="$acl_save_prefix"
11510 else
11511 additional_includedir="$withval/include"
11512 additional_libdir="$withval/lib"
11517 LIBICONV=
11518 LTLIBICONV=
11519 INCICONV=
11520 rpathdirs=
11521 ltrpathdirs=
11522 names_already_handled=
11523 names_next_round='iconv '
11524 while test -n "$names_next_round"; do
11525 names_this_round="$names_next_round"
11526 names_next_round=
11527 for name in $names_this_round; do
11528 already_handled=
11529 for n in $names_already_handled; do
11530 if test "$n" = "$name"; then
11531 already_handled=yes
11532 break
11534 done
11535 if test -z "$already_handled"; then
11536 names_already_handled="$names_already_handled $name"
11537 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11538 eval value=\"\$HAVE_LIB$uppername\"
11539 if test -n "$value"; then
11540 if test "$value" = yes; then
11541 eval value=\"\$LIB$uppername\"
11542 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11543 eval value=\"\$LTLIB$uppername\"
11544 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11545 else
11548 else
11549 found_dir=
11550 found_la=
11551 found_so=
11552 found_a=
11553 if test $use_additional = yes; then
11554 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11555 found_dir="$additional_libdir"
11556 found_so="$additional_libdir/lib$name.$shlibext"
11557 if test -f "$additional_libdir/lib$name.la"; then
11558 found_la="$additional_libdir/lib$name.la"
11560 else
11561 if test -f "$additional_libdir/lib$name.$libext"; then
11562 found_dir="$additional_libdir"
11563 found_a="$additional_libdir/lib$name.$libext"
11564 if test -f "$additional_libdir/lib$name.la"; then
11565 found_la="$additional_libdir/lib$name.la"
11570 if test "X$found_dir" = "X"; then
11571 for x in $LDFLAGS $LTLIBICONV; do
11573 acl_save_prefix="$prefix"
11574 prefix="$acl_final_prefix"
11575 acl_save_exec_prefix="$exec_prefix"
11576 exec_prefix="$acl_final_exec_prefix"
11577 eval x=\"$x\"
11578 exec_prefix="$acl_save_exec_prefix"
11579 prefix="$acl_save_prefix"
11581 case "$x" in
11582 -L*)
11583 dir=`echo "X$x" | sed -e 's/^X-L//'`
11584 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11585 found_dir="$dir"
11586 found_so="$dir/lib$name.$shlibext"
11587 if test -f "$dir/lib$name.la"; then
11588 found_la="$dir/lib$name.la"
11590 else
11591 if test -f "$dir/lib$name.$libext"; then
11592 found_dir="$dir"
11593 found_a="$dir/lib$name.$libext"
11594 if test -f "$dir/lib$name.la"; then
11595 found_la="$dir/lib$name.la"
11600 esac
11601 if test "X$found_dir" != "X"; then
11602 break
11604 done
11606 if test "X$found_dir" != "X"; then
11607 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11608 if test "X$found_so" != "X"; then
11609 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11610 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11611 else
11612 haveit=
11613 for x in $ltrpathdirs; do
11614 if test "X$x" = "X$found_dir"; then
11615 haveit=yes
11616 break
11618 done
11619 if test -z "$haveit"; then
11620 ltrpathdirs="$ltrpathdirs $found_dir"
11622 if test "$hardcode_direct" = yes; then
11623 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11624 else
11625 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11626 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11627 haveit=
11628 for x in $rpathdirs; do
11629 if test "X$x" = "X$found_dir"; then
11630 haveit=yes
11631 break
11633 done
11634 if test -z "$haveit"; then
11635 rpathdirs="$rpathdirs $found_dir"
11637 else
11638 haveit=
11639 for x in $LDFLAGS $LIBICONV; do
11641 acl_save_prefix="$prefix"
11642 prefix="$acl_final_prefix"
11643 acl_save_exec_prefix="$exec_prefix"
11644 exec_prefix="$acl_final_exec_prefix"
11645 eval x=\"$x\"
11646 exec_prefix="$acl_save_exec_prefix"
11647 prefix="$acl_save_prefix"
11649 if test "X$x" = "X-L$found_dir"; then
11650 haveit=yes
11651 break
11653 done
11654 if test -z "$haveit"; then
11655 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11657 if test "$hardcode_minus_L" != no; then
11658 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11659 else
11660 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11665 else
11666 if test "X$found_a" != "X"; then
11667 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11668 else
11669 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11672 additional_includedir=
11673 case "$found_dir" in
11674 */lib | */lib/)
11675 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11676 additional_includedir="$basedir/include"
11678 esac
11679 if test "X$additional_includedir" != "X"; then
11680 if test "X$additional_includedir" != "X/usr/include"; then
11681 haveit=
11682 if test "X$additional_includedir" = "X/usr/local/include"; then
11683 if test -n "$GCC"; then
11684 case $host_os in
11685 linux*) haveit=yes;;
11686 esac
11689 if test -z "$haveit"; then
11690 for x in $CPPFLAGS $INCICONV; do
11692 acl_save_prefix="$prefix"
11693 prefix="$acl_final_prefix"
11694 acl_save_exec_prefix="$exec_prefix"
11695 exec_prefix="$acl_final_exec_prefix"
11696 eval x=\"$x\"
11697 exec_prefix="$acl_save_exec_prefix"
11698 prefix="$acl_save_prefix"
11700 if test "X$x" = "X-I$additional_includedir"; then
11701 haveit=yes
11702 break
11704 done
11705 if test -z "$haveit"; then
11706 if test -d "$additional_includedir"; then
11707 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11713 if test -n "$found_la"; then
11714 save_libdir="$libdir"
11715 case "$found_la" in
11716 */* | *\\*) . "$found_la" ;;
11717 *) . "./$found_la" ;;
11718 esac
11719 libdir="$save_libdir"
11720 for dep in $dependency_libs; do
11721 case "$dep" in
11722 -L*)
11723 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11724 if test "X$additional_libdir" != "X/usr/lib"; then
11725 haveit=
11726 if test "X$additional_libdir" = "X/usr/local/lib"; then
11727 if test -n "$GCC"; then
11728 case $host_os in
11729 linux*) haveit=yes;;
11730 esac
11733 if test -z "$haveit"; then
11734 haveit=
11735 for x in $LDFLAGS $LIBICONV; do
11737 acl_save_prefix="$prefix"
11738 prefix="$acl_final_prefix"
11739 acl_save_exec_prefix="$exec_prefix"
11740 exec_prefix="$acl_final_exec_prefix"
11741 eval x=\"$x\"
11742 exec_prefix="$acl_save_exec_prefix"
11743 prefix="$acl_save_prefix"
11745 if test "X$x" = "X-L$additional_libdir"; then
11746 haveit=yes
11747 break
11749 done
11750 if test -z "$haveit"; then
11751 if test -d "$additional_libdir"; then
11752 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11755 haveit=
11756 for x in $LDFLAGS $LTLIBICONV; do
11758 acl_save_prefix="$prefix"
11759 prefix="$acl_final_prefix"
11760 acl_save_exec_prefix="$exec_prefix"
11761 exec_prefix="$acl_final_exec_prefix"
11762 eval x=\"$x\"
11763 exec_prefix="$acl_save_exec_prefix"
11764 prefix="$acl_save_prefix"
11766 if test "X$x" = "X-L$additional_libdir"; then
11767 haveit=yes
11768 break
11770 done
11771 if test -z "$haveit"; then
11772 if test -d "$additional_libdir"; then
11773 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11779 -R*)
11780 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11781 if test "$enable_rpath" != no; then
11782 haveit=
11783 for x in $rpathdirs; do
11784 if test "X$x" = "X$dir"; then
11785 haveit=yes
11786 break
11788 done
11789 if test -z "$haveit"; then
11790 rpathdirs="$rpathdirs $dir"
11792 haveit=
11793 for x in $ltrpathdirs; do
11794 if test "X$x" = "X$dir"; then
11795 haveit=yes
11796 break
11798 done
11799 if test -z "$haveit"; then
11800 ltrpathdirs="$ltrpathdirs $dir"
11804 -l*)
11805 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11807 *.la)
11808 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11811 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11812 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11814 esac
11815 done
11817 else
11818 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11819 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11823 done
11824 done
11825 if test "X$rpathdirs" != "X"; then
11826 if test -n "$hardcode_libdir_separator"; then
11827 alldirs=
11828 for found_dir in $rpathdirs; do
11829 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11830 done
11831 acl_save_libdir="$libdir"
11832 libdir="$alldirs"
11833 eval flag=\"$hardcode_libdir_flag_spec\"
11834 libdir="$acl_save_libdir"
11835 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11836 else
11837 for found_dir in $rpathdirs; do
11838 acl_save_libdir="$libdir"
11839 libdir="$found_dir"
11840 eval flag=\"$hardcode_libdir_flag_spec\"
11841 libdir="$acl_save_libdir"
11842 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11843 done
11846 if test "X$ltrpathdirs" != "X"; then
11847 for found_dir in $ltrpathdirs; do
11848 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11849 done
11858 am_save_CPPFLAGS="$CPPFLAGS"
11860 for element in $INCICONV; do
11861 haveit=
11862 for x in $CPPFLAGS; do
11864 acl_save_prefix="$prefix"
11865 prefix="$acl_final_prefix"
11866 acl_save_exec_prefix="$exec_prefix"
11867 exec_prefix="$acl_final_exec_prefix"
11868 eval x=\"$x\"
11869 exec_prefix="$acl_save_exec_prefix"
11870 prefix="$acl_save_prefix"
11872 if test "X$x" = "X$element"; then
11873 haveit=yes
11874 break
11876 done
11877 if test -z "$haveit"; then
11878 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11880 done
11883 echo "$as_me:$LINENO: checking for iconv" >&5
11884 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11885 if test "${am_cv_func_iconv+set}" = set; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 else
11889 am_cv_func_iconv="no, consider installing GNU libiconv"
11890 am_cv_lib_iconv=no
11891 cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h. */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897 #include <stdlib.h>
11898 #include <iconv.h>
11900 main ()
11902 iconv_t cd = iconv_open("","");
11903 iconv(cd,NULL,NULL,NULL,NULL);
11904 iconv_close(cd);
11906 return 0;
11908 _ACEOF
11909 rm -f conftest.$ac_objext conftest$ac_exeext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11911 (eval $ac_link) 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag"
11919 || test ! -s conftest.err'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } &&
11925 { ac_try='test -s conftest$ac_exeext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 am_cv_func_iconv=yes
11932 else
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11937 rm -f conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11939 if test "$am_cv_func_iconv" != yes; then
11940 am_save_LIBS="$LIBS"
11941 LIBS="$LIBS $LIBICONV"
11942 cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h. */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 #include <stdlib.h>
11949 #include <iconv.h>
11951 main ()
11953 iconv_t cd = iconv_open("","");
11954 iconv(cd,NULL,NULL,NULL,NULL);
11955 iconv_close(cd);
11957 return 0;
11959 _ACEOF
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962 (eval $ac_link) 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try='test -z "$ac_c_werror_flag"
11970 || test ! -s conftest.err'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; } &&
11976 { ac_try='test -s conftest$ac_exeext'
11977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978 (eval $ac_try) 2>&5
11979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 am_cv_lib_iconv=yes
11983 am_cv_func_iconv=yes
11984 else
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11989 rm -f conftest.err conftest.$ac_objext \
11990 conftest$ac_exeext conftest.$ac_ext
11991 LIBS="$am_save_LIBS"
11995 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11996 echo "${ECHO_T}$am_cv_func_iconv" >&6
11997 if test "$am_cv_func_iconv" = yes; then
11999 cat >>confdefs.h <<\_ACEOF
12000 #define HAVE_ICONV 1
12001 _ACEOF
12004 if test "$am_cv_lib_iconv" = yes; then
12005 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12006 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12007 echo "$as_me:$LINENO: result: $LIBICONV" >&5
12008 echo "${ECHO_T}$LIBICONV" >&6
12009 else
12010 CPPFLAGS="$am_save_CPPFLAGS"
12011 LIBICONV=
12012 LTLIBICONV=
12017 if test "$am_cv_func_iconv" = yes; then
12018 echo "$as_me:$LINENO: checking for iconv declaration" >&5
12019 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12020 if test "${am_cv_proto_iconv+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12024 cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h. */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12031 #include <stdlib.h>
12032 #include <iconv.h>
12033 extern
12034 #ifdef __cplusplus
12036 #endif
12037 #if defined(__STDC__) || defined(__cplusplus)
12038 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12039 #else
12040 size_t iconv();
12041 #endif
12044 main ()
12048 return 0;
12050 _ACEOF
12051 rm -f conftest.$ac_objext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053 (eval $ac_compile) 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try='test -z "$ac_c_werror_flag"
12061 || test ! -s conftest.err'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; } &&
12067 { ac_try='test -s conftest.$ac_objext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073 am_cv_proto_iconv_arg1=""
12074 else
12075 echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 am_cv_proto_iconv_arg1="const"
12080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12081 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);"
12084 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12085 echo "$as_me:$LINENO: result: ${ac_t:-
12086 }$am_cv_proto_iconv" >&5
12087 echo "${ECHO_T}${ac_t:-
12088 }$am_cv_proto_iconv" >&6
12090 cat >>confdefs.h <<_ACEOF
12091 #define ICONV_CONST $am_cv_proto_iconv_arg1
12092 _ACEOF
12096 # Until we have in-tree GNU iconv:
12097 LIBICONV_DEP=
12101 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12102 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12103 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 else
12106 cat >conftest.$ac_ext <<_ACEOF
12107 /* confdefs.h. */
12108 _ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 #include <locale.h>
12114 main ()
12116 return LC_MESSAGES
12118 return 0;
12120 _ACEOF
12121 rm -f conftest.$ac_objext conftest$ac_exeext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12123 (eval $ac_link) 2>conftest.er1
12124 ac_status=$?
12125 grep -v '^ *+' conftest.er1 >conftest.err
12126 rm -f conftest.er1
12127 cat conftest.err >&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try='test -z "$ac_c_werror_flag"
12131 || test ! -s conftest.err'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; } &&
12137 { ac_try='test -s conftest$ac_exeext'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12140 ac_status=$?
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12143 am_cv_val_LC_MESSAGES=yes
12144 else
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12148 am_cv_val_LC_MESSAGES=no
12150 rm -f conftest.err conftest.$ac_objext \
12151 conftest$ac_exeext conftest.$ac_ext
12153 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12154 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12155 if test $am_cv_val_LC_MESSAGES = yes; then
12157 cat >>confdefs.h <<\_ACEOF
12158 #define HAVE_LC_MESSAGES 1
12159 _ACEOF
12165 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12166 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12167 if test "${am_cv_langinfo_codeset+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176 #include <langinfo.h>
12178 main ()
12180 char* cs = nl_langinfo(CODESET);
12182 return 0;
12184 _ACEOF
12185 rm -f conftest.$ac_objext conftest$ac_exeext
12186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12187 (eval $ac_link) 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
12194 { ac_try='test -z "$ac_c_werror_flag"
12195 || test ! -s conftest.err'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12198 ac_status=$?
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; } &&
12201 { ac_try='test -s conftest$ac_exeext'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 am_cv_langinfo_codeset=yes
12208 else
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12212 am_cv_langinfo_codeset=no
12214 rm -f conftest.err conftest.$ac_objext \
12215 conftest$ac_exeext conftest.$ac_ext
12218 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12219 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12220 if test $am_cv_langinfo_codeset = yes; then
12222 cat >>confdefs.h <<\_ACEOF
12223 #define HAVE_LANGINFO_CODESET 1
12224 _ACEOF
12229 # We will need to find libiberty.h and ansidecl.h
12230 saved_CFLAGS="$CFLAGS"
12231 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12271 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12272 strsignal strstr strverscmp \
12273 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12274 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
12276 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12277 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12278 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12279 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 else
12282 cat >conftest.$ac_ext <<_ACEOF
12283 /* confdefs.h. */
12284 _ACEOF
12285 cat confdefs.h >>conftest.$ac_ext
12286 cat >>conftest.$ac_ext <<_ACEOF
12287 /* end confdefs.h. */
12288 #undef $ac_tr_decl
12289 #define $ac_tr_decl 1
12291 #include "ansidecl.h"
12292 #include "system.h"
12295 main ()
12297 #ifndef $ac_func
12298 char *(*pfn) = (char *(*)) $ac_func ;
12299 #endif
12301 return 0;
12303 _ACEOF
12304 rm -f conftest.$ac_objext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306 (eval $ac_compile) 2>conftest.er1
12307 ac_status=$?
12308 grep -v '^ *+' conftest.er1 >conftest.err
12309 rm -f conftest.er1
12310 cat conftest.err >&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } &&
12313 { ac_try='test -z "$ac_c_werror_flag"
12314 || test ! -s conftest.err'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; } &&
12320 { ac_try='test -s conftest.$ac_objext'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12323 ac_status=$?
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; }; then
12326 eval "gcc_cv_have_decl_$ac_func=yes"
12327 else
12328 echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12331 eval "gcc_cv_have_decl_$ac_func=no"
12333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12336 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12337 echo "$as_me:$LINENO: result: yes" >&5
12338 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12339 #define $ac_tr_decl 1
12340 _ACEOF
12342 else
12343 echo "$as_me:$LINENO: result: no" >&5
12344 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12345 #define $ac_tr_decl 0
12346 _ACEOF
12350 done
12356 for ac_func in getrlimit setrlimit getrusage
12358 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12359 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12360 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12361 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 else
12364 cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h. */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12370 #undef $ac_tr_decl
12371 #define $ac_tr_decl 1
12373 #include "ansidecl.h"
12374 #include "system.h"
12375 #ifdef HAVE_SYS_RESOURCE_H
12376 #include <sys/resource.h>
12377 #endif
12381 main ()
12383 #ifndef $ac_func
12384 char *(*pfn) = (char *(*)) $ac_func ;
12385 #endif
12387 return 0;
12389 _ACEOF
12390 rm -f conftest.$ac_objext
12391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12392 (eval $ac_compile) 2>conftest.er1
12393 ac_status=$?
12394 grep -v '^ *+' conftest.er1 >conftest.err
12395 rm -f conftest.er1
12396 cat conftest.err >&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } &&
12399 { ac_try='test -z "$ac_c_werror_flag"
12400 || test ! -s conftest.err'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; } &&
12406 { ac_try='test -s conftest.$ac_objext'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 eval "gcc_cv_have_decl_$ac_func=yes"
12413 else
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12417 eval "gcc_cv_have_decl_$ac_func=no"
12419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12422 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12423 echo "$as_me:$LINENO: result: yes" >&5
12424 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12425 #define $ac_tr_decl 1
12426 _ACEOF
12428 else
12429 echo "$as_me:$LINENO: result: no" >&5
12430 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12431 #define $ac_tr_decl 0
12432 _ACEOF
12436 done
12439 cat >conftest.$ac_ext <<_ACEOF
12440 /* confdefs.h. */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12446 #include "ansidecl.h"
12447 #include "system.h"
12448 #ifdef HAVE_SYS_RESOURCE_H
12449 #include <sys/resource.h>
12450 #endif
12453 main ()
12455 rlim_t l = 0;
12457 return 0;
12459 _ACEOF
12460 rm -f conftest.$ac_objext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462 (eval $ac_compile) 2>conftest.er1
12463 ac_status=$?
12464 grep -v '^ *+' conftest.er1 >conftest.err
12465 rm -f conftest.er1
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -z "$ac_c_werror_flag"
12470 || test ! -s conftest.err'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest.$ac_objext'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12483 else
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12488 cat >>confdefs.h <<\_ACEOF
12489 #define rlim_t long
12490 _ACEOF
12493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12495 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12496 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12497 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12498 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12500 for ac_func in ldgetname
12502 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12503 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12504 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12505 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 else
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h. */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514 #undef $ac_tr_decl
12515 #define $ac_tr_decl 1
12517 #include "ansidecl.h"
12518 #include "system.h"
12519 #ifdef HAVE_LDFCN_H
12520 #undef FREAD
12521 #undef FWRITE
12522 #include <ldfcn.h>
12523 #endif
12527 main ()
12529 #ifndef $ac_func
12530 char *(*pfn) = (char *(*)) $ac_func ;
12531 #endif
12533 return 0;
12535 _ACEOF
12536 rm -f conftest.$ac_objext
12537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12538 (eval $ac_compile) 2>conftest.er1
12539 ac_status=$?
12540 grep -v '^ *+' conftest.er1 >conftest.err
12541 rm -f conftest.er1
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } &&
12545 { ac_try='test -z "$ac_c_werror_flag"
12546 || test ! -s conftest.err'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; } &&
12552 { ac_try='test -s conftest.$ac_objext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 eval "gcc_cv_have_decl_$ac_func=yes"
12559 else
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12563 eval "gcc_cv_have_decl_$ac_func=no"
12565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12568 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12569 echo "$as_me:$LINENO: result: yes" >&5
12570 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12571 #define $ac_tr_decl 1
12572 _ACEOF
12574 else
12575 echo "$as_me:$LINENO: result: no" >&5
12576 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12577 #define $ac_tr_decl 0
12578 _ACEOF
12582 done
12586 for ac_func in times
12588 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12589 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12590 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12591 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12592 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 else
12594 cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h. */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12600 #undef $ac_tr_decl
12601 #define $ac_tr_decl 1
12603 #include "ansidecl.h"
12604 #include "system.h"
12605 #ifdef HAVE_SYS_TIMES_H
12606 #include <sys/times.h>
12607 #endif
12611 main ()
12613 #ifndef $ac_func
12614 char *(*pfn) = (char *(*)) $ac_func ;
12615 #endif
12617 return 0;
12619 _ACEOF
12620 rm -f conftest.$ac_objext
12621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12622 (eval $ac_compile) 2>conftest.er1
12623 ac_status=$?
12624 grep -v '^ *+' conftest.er1 >conftest.err
12625 rm -f conftest.er1
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } &&
12629 { ac_try='test -z "$ac_c_werror_flag"
12630 || test ! -s conftest.err'
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; } &&
12636 { ac_try='test -s conftest.$ac_objext'
12637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12639 ac_status=$?
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; }; then
12642 eval "gcc_cv_have_decl_$ac_func=yes"
12643 else
12644 echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12647 eval "gcc_cv_have_decl_$ac_func=no"
12649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12652 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12653 echo "$as_me:$LINENO: result: yes" >&5
12654 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12655 #define $ac_tr_decl 1
12656 _ACEOF
12658 else
12659 echo "$as_me:$LINENO: result: no" >&5
12660 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12661 #define $ac_tr_decl 0
12662 _ACEOF
12666 done
12670 for ac_func in sigaltstack
12672 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12673 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12674 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12675 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 else
12678 cat >conftest.$ac_ext <<_ACEOF
12679 /* confdefs.h. */
12680 _ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12684 #undef $ac_tr_decl
12685 #define $ac_tr_decl 1
12687 #include "ansidecl.h"
12688 #include "system.h"
12689 #include <signal.h>
12693 main ()
12695 #ifndef $ac_func
12696 char *(*pfn) = (char *(*)) $ac_func ;
12697 #endif
12699 return 0;
12701 _ACEOF
12702 rm -f conftest.$ac_objext
12703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12704 (eval $ac_compile) 2>conftest.er1
12705 ac_status=$?
12706 grep -v '^ *+' conftest.er1 >conftest.err
12707 rm -f conftest.er1
12708 cat conftest.err >&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } &&
12711 { ac_try='test -z "$ac_c_werror_flag"
12712 || test ! -s conftest.err'
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12715 ac_status=$?
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; } &&
12718 { ac_try='test -s conftest.$ac_objext'
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12721 ac_status=$?
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
12724 eval "gcc_cv_have_decl_$ac_func=yes"
12725 else
12726 echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12729 eval "gcc_cv_have_decl_$ac_func=no"
12731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12734 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12735 echo "$as_me:$LINENO: result: yes" >&5
12736 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12737 #define $ac_tr_decl 1
12738 _ACEOF
12740 else
12741 echo "$as_me:$LINENO: result: no" >&5
12742 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12743 #define $ac_tr_decl 0
12744 _ACEOF
12748 done
12751 # More time-related stuff.
12752 echo "$as_me:$LINENO: checking for struct tms" >&5
12753 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12754 if test "${ac_cv_struct_tms+set}" = set; then
12755 echo $ECHO_N "(cached) $ECHO_C" >&6
12756 else
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12765 #include "ansidecl.h"
12766 #include "system.h"
12767 #ifdef HAVE_SYS_TIMES_H
12768 #include <sys/times.h>
12769 #endif
12772 main ()
12774 struct tms tms;
12776 return 0;
12778 _ACEOF
12779 rm -f conftest.$ac_objext
12780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12781 (eval $ac_compile) 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -z "$ac_c_werror_flag"
12789 || test ! -s conftest.err'
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try='test -s conftest.$ac_objext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_cv_struct_tms=yes
12802 else
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12806 ac_cv_struct_tms=no
12808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12810 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12811 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12812 if test $ac_cv_struct_tms = yes; then
12814 cat >>confdefs.h <<\_ACEOF
12815 #define HAVE_STRUCT_TMS 1
12816 _ACEOF
12820 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12821 # revisit after autoconf 2.50.
12822 echo "$as_me:$LINENO: checking for clock_t" >&5
12823 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12824 if test "${gcc_cv_type_clock_t+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 else
12828 cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h. */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12835 #include "ansidecl.h"
12836 #include "system.h"
12839 main ()
12841 clock_t x;
12843 return 0;
12845 _ACEOF
12846 rm -f conftest.$ac_objext
12847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12848 (eval $ac_compile) 2>conftest.er1
12849 ac_status=$?
12850 grep -v '^ *+' conftest.er1 >conftest.err
12851 rm -f conftest.er1
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -z "$ac_c_werror_flag"
12856 || test ! -s conftest.err'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } &&
12862 { ac_try='test -s conftest.$ac_objext'
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864 (eval $ac_try) 2>&5
12865 ac_status=$?
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; }; then
12868 gcc_cv_type_clock_t=yes
12869 else
12870 echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12873 gcc_cv_type_clock_t=no
12875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12877 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12878 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12879 if test $gcc_cv_type_clock_t = yes; then
12881 cat >>confdefs.h <<\_ACEOF
12882 #define HAVE_CLOCK_T 1
12883 _ACEOF
12887 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12888 CFLAGS="$saved_CFLAGS"
12890 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12891 if test "${enable_initfini_array+set}" = set; then
12892 enableval="$enable_initfini_array"
12894 else
12896 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12897 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12898 if test "${gcc_cv_initfini_array+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901 if test "$cross_compiling" = yes; then
12902 gcc_cv_initfini_array=no
12903 else
12904 cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h. */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12911 static int x = -1;
12912 int main (void) { return x; }
12913 int foo (void) { x = 0; }
12914 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12915 _ACEOF
12916 rm -f conftest$ac_exeext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12918 (eval $ac_link) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12924 ac_status=$?
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 gcc_cv_initfini_array=yes
12928 else
12929 echo "$as_me: program exited with status $ac_status" >&5
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12933 ( exit $ac_status )
12934 gcc_cv_initfini_array=no
12936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12939 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12940 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12941 enable_initfini_array=$gcc_cv_initfini_array
12944 if test $enable_initfini_array = yes; then
12946 cat >>confdefs.h <<\_ACEOF
12947 #define HAVE_INITFINI_ARRAY 1
12948 _ACEOF
12952 # mkdir takes a single argument on some systems.
12953 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12954 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12955 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 else
12958 cat >conftest.$ac_ext <<_ACEOF
12959 /* confdefs.h. */
12960 _ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12965 #include <sys/types.h>
12966 #ifdef HAVE_SYS_STAT_H
12967 # include <sys/stat.h>
12968 #endif
12969 #ifdef HAVE_UNISTD_H
12970 # include <unistd.h>
12971 #endif
12972 #ifdef HAVE_DIRECT_H
12973 # include <direct.h>
12974 #endif
12976 main ()
12978 mkdir ("foo", 0);
12980 return 0;
12982 _ACEOF
12983 rm -f conftest.$ac_objext
12984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12985 (eval $ac_compile) 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } &&
12992 { ac_try='test -z "$ac_c_werror_flag"
12993 || test ! -s conftest.err'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try='test -s conftest.$ac_objext'
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13005 gcc_cv_mkdir_takes_one_arg=no
13006 else
13007 echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.$ac_ext >&5
13010 gcc_cv_mkdir_takes_one_arg=yes
13012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13014 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
13015 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
13016 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
13018 cat >>confdefs.h <<\_ACEOF
13019 #define MKDIR_TAKES_ONE_ARG 1
13020 _ACEOF
13025 # File extensions
13026 manext='.1'
13027 objext='.o'
13031 # With Setjmp/Longjmp based exception handling.
13032 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
13033 if test "${enable_sjlj_exceptions+set}" = set; then
13034 enableval="$enable_sjlj_exceptions"
13035 case $target in
13036 *-*-hpux10*)
13037 if test $enableval != yes; then
13038 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
13039 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
13040 enableval=yes
13043 esac
13044 force_sjlj_exceptions=yes
13045 else
13046 case $target in
13047 *-*-hpux10*)
13048 force_sjlj_exceptions=yes
13049 enableval=yes
13052 force_sjlj_exceptions=no
13054 esac
13056 if test $force_sjlj_exceptions = yes; then
13057 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
13059 cat >>confdefs.h <<_ACEOF
13060 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13061 _ACEOF
13065 # For platforms with the unwind ABI which includes an unwind library,
13066 # libunwind, we can choose to use the system libunwind.
13068 # Check whether --with-system-libunwind or --without-system-libunwind was given.
13069 if test "${with_system_libunwind+set}" = set; then
13070 withval="$with_system_libunwind"
13074 # config.gcc also contains tests of with_system_libunwind.
13075 if test x$with_system_libunwind = xyes; then
13077 cat >>confdefs.h <<\_ACEOF
13078 #define HAVE_GETIPINFO 1
13079 _ACEOF
13083 # --------------------------------------------------------
13084 # Build, host, and target specific configuration fragments
13085 # --------------------------------------------------------
13087 # Collect build-machine-specific information.
13088 . ${srcdir}/config.build
13090 # Collect host-machine-specific information.
13091 . ${srcdir}/config.host
13093 target_gtfiles=
13095 # Collect target-machine-specific information.
13096 . ${srcdir}/config.gcc
13098 extra_objs="${host_extra_objs} ${extra_objs}"
13099 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13101 # Default the target-machine variables that were not explicitly set.
13102 if test x"$tm_file" = x
13103 then tm_file=$cpu_type/$cpu_type.h; fi
13105 if test x"$extra_headers" = x
13106 then extra_headers=; fi
13108 if test x$md_file = x
13109 then md_file=$cpu_type/$cpu_type.md; fi
13111 if test x$out_file = x
13112 then out_file=$cpu_type/$cpu_type.c; fi
13114 if test x"$tmake_file" = x
13115 then tmake_file=$cpu_type/t-$cpu_type
13118 if test x"$dwarf2" = xyes
13119 then tm_file="$tm_file tm-dwarf2.h"
13122 # Say what files are being used for the output code and MD file.
13123 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13124 echo "Using \`$srcdir/config/$md_file' as machine description file."
13126 # If any of the xm_file variables contain nonexistent files, warn
13127 # about them and drop them.
13130 for x in $build_xm_file; do
13131 if test -f $srcdir/config/$x
13132 then bx="$bx $x"
13133 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13134 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13136 done
13137 build_xm_file="$bx"
13140 for x in $host_xm_file; do
13141 if test -f $srcdir/config/$x
13142 then hx="$hx $x"
13143 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13144 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13146 done
13147 host_xm_file="$hx"
13150 for x in $xm_file; do
13151 if test -f $srcdir/config/$x
13152 then tx="$tx $x"
13153 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13154 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13156 done
13157 xm_file="$tx"
13159 count=a
13160 for f in $tm_file; do
13161 count=${count}x
13162 done
13163 if test $count = ax; then
13164 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13165 else
13166 echo "Using the following target machine macro files:"
13167 for f in $tm_file; do
13168 echo " $srcdir/config/$f"
13169 done
13172 if test x$need_64bit_hwint = xyes; then
13174 cat >>confdefs.h <<\_ACEOF
13175 #define NEED_64BIT_HOST_WIDE_INT 1
13176 _ACEOF
13180 if test x$use_long_long_for_widest_fast_int = xyes; then
13182 cat >>confdefs.h <<\_ACEOF
13183 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13184 _ACEOF
13188 count=a
13189 for f in $host_xm_file; do
13190 count=${count}x
13191 done
13192 if test $count = a; then
13194 elif test $count = ax; then
13195 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13196 else
13197 echo "Using the following host machine macro files:"
13198 for f in $host_xm_file; do
13199 echo " $srcdir/config/$f"
13200 done
13202 echo "Using ${out_host_hook_obj} for host machine hooks."
13204 if test "$host_xm_file" != "$build_xm_file"; then
13205 count=a
13206 for f in $build_xm_file; do
13207 count=${count}x
13208 done
13209 if test $count = a; then
13211 elif test $count = ax; then
13212 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13213 else
13214 echo "Using the following build machine macro files:"
13215 for f in $build_xm_file; do
13216 echo " $srcdir/config/$f"
13217 done
13221 case ${host} in
13222 powerpc*-*-darwin*)
13223 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13224 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13225 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 else
13228 cat >conftest.$ac_ext <<_ACEOF
13230 #include <sys/cdefs.h>
13231 #include <sys/signal.h>
13232 #include <ucontext.h>
13233 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13235 _ACEOF
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -z "$ac_c_werror_flag"
13246 || test ! -s conftest.err'
13247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13248 (eval $ac_try) 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; } &&
13252 { ac_try='test -s conftest.$ac_objext'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13255 ac_status=$?
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13258 gcc_cv_mcontext_underscores=no
13259 else
13260 echo "$as_me: failed program was:" >&5
13261 sed 's/^/| /' conftest.$ac_ext >&5
13263 gcc_cv_mcontext_underscores=yes
13265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13267 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13268 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13269 if test $gcc_cv_mcontext_underscores = yes; then
13271 cat >>confdefs.h <<\_ACEOF
13272 #define HAS_MCONTEXT_T_UNDERSCORES
13273 _ACEOF
13277 esac
13279 # ---------
13280 # Threading
13281 # ---------
13283 # Check if a valid thread package
13284 case ${enable_threads} in
13285 "" | no)
13286 # No threads
13287 target_thread_file='single'
13289 yes)
13290 # default
13291 target_thread_file='single'
13293 aix | dce | gnat | irix | posix | posix95 | rtems | \
13294 single | solaris | vxworks | win32 | mipssde)
13295 target_thread_file=${enable_threads}
13298 echo "${enable_threads} is an unknown thread package" 1>&2
13299 exit 1
13301 esac
13303 if test x${thread_file} = x; then
13304 # No thread file set by target-specific clauses in config.gcc,
13305 # so use file chosen by default logic above
13306 thread_file=${target_thread_file}
13309 # Make gthr-default.h if we have a thread file.
13310 gthread_flags=
13311 if test $thread_file != single; then
13312 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13313 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
13314 rm -f gthr-default.h-t
13315 else
13316 mv -f gthr-default.h-t gthr-default.h
13318 gthread_flags=-DHAVE_GTHR_DEFAULT
13322 # --------
13323 # UNSORTED
13324 # --------
13326 use_cxa_atexit=no
13327 if test x$enable___cxa_atexit = xyes || \
13328 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13329 if test x$host = x$target; then
13330 case $host in
13331 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13332 # keyed to flag_use_cxa_atexit
13333 *-*-mingw32*)
13334 use_cxa_atexit=yes
13337 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13338 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13339 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 else
13342 cat >conftest.$ac_ext <<_ACEOF
13343 /* confdefs.h. */
13344 _ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13348 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13350 #define __cxa_atexit innocuous___cxa_atexit
13352 /* System header to define __stub macros and hopefully few prototypes,
13353 which can conflict with char __cxa_atexit (); below.
13354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13355 <limits.h> exists even on freestanding compilers. */
13357 #ifdef __STDC__
13358 # include <limits.h>
13359 #else
13360 # include <assert.h>
13361 #endif
13363 #undef __cxa_atexit
13365 /* Override any gcc2 internal prototype to avoid an error. */
13366 #ifdef __cplusplus
13367 extern "C"
13369 #endif
13370 /* We use char because int might match the return type of a gcc2
13371 builtin and then its argument prototype would still apply. */
13372 char __cxa_atexit ();
13373 /* The GNU C library defines this for functions which it implements
13374 to always fail with ENOSYS. Some functions are actually named
13375 something starting with __ and the normal name is an alias. */
13376 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13377 choke me
13378 #else
13379 char (*f) () = __cxa_atexit;
13380 #endif
13381 #ifdef __cplusplus
13383 #endif
13386 main ()
13388 return f != __cxa_atexit;
13390 return 0;
13392 _ACEOF
13393 rm -f conftest.$ac_objext conftest$ac_exeext
13394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13395 (eval $ac_link) 2>conftest.er1
13396 ac_status=$?
13397 grep -v '^ *+' conftest.er1 >conftest.err
13398 rm -f conftest.er1
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } &&
13402 { ac_try='test -z "$ac_c_werror_flag"
13403 || test ! -s conftest.err'
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; } &&
13409 { ac_try='test -s conftest$ac_exeext'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13412 ac_status=$?
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; }; then
13415 ac_cv_func___cxa_atexit=yes
13416 else
13417 echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13420 ac_cv_func___cxa_atexit=no
13422 rm -f conftest.err conftest.$ac_objext \
13423 conftest$ac_exeext conftest.$ac_ext
13425 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13426 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13427 if test $ac_cv_func___cxa_atexit = yes; then
13428 use_cxa_atexit=yes
13429 else
13430 echo "__cxa_atexit can't be enabled on this target"
13434 esac
13435 else
13436 # We can't check for __cxa_atexit when building a cross, so assume
13437 # it is available
13438 use_cxa_atexit=yes
13440 if test x$use_cxa_atexit = xyes; then
13442 cat >>confdefs.h <<\_ACEOF
13443 #define DEFAULT_USE_CXA_ATEXIT 2
13444 _ACEOF
13449 use_getipinfo=yes
13450 if test x$with_system_libunwind = xyes; then
13451 if test x$host = x$target; then
13452 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13453 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13454 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13456 else
13457 ac_func_search_save_LIBS=$LIBS
13458 ac_cv_search__Unwind_GetIPInfo=no
13459 cat >conftest.$ac_ext <<_ACEOF
13460 /* confdefs.h. */
13461 _ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13466 /* Override any gcc2 internal prototype to avoid an error. */
13467 #ifdef __cplusplus
13468 extern "C"
13469 #endif
13470 /* We use char because int might match the return type of a gcc2
13471 builtin and then its argument prototype would still apply. */
13472 char _Unwind_GetIPInfo ();
13474 main ()
13476 _Unwind_GetIPInfo ();
13478 return 0;
13480 _ACEOF
13481 rm -f conftest.$ac_objext conftest$ac_exeext
13482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13483 (eval $ac_link) 2>conftest.er1
13484 ac_status=$?
13485 grep -v '^ *+' conftest.er1 >conftest.err
13486 rm -f conftest.er1
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
13490 { ac_try='test -z "$ac_c_werror_flag"
13491 || test ! -s conftest.err'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; } &&
13497 { ac_try='test -s conftest$ac_exeext'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; }; then
13503 ac_cv_search__Unwind_GetIPInfo="none required"
13504 else
13505 echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13509 rm -f conftest.err conftest.$ac_objext \
13510 conftest$ac_exeext conftest.$ac_ext
13511 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
13512 for ac_lib in unwind; do
13513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13514 cat >conftest.$ac_ext <<_ACEOF
13515 /* confdefs.h. */
13516 _ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13521 /* Override any gcc2 internal prototype to avoid an error. */
13522 #ifdef __cplusplus
13523 extern "C"
13524 #endif
13525 /* We use char because int might match the return type of a gcc2
13526 builtin and then its argument prototype would still apply. */
13527 char _Unwind_GetIPInfo ();
13529 main ()
13531 _Unwind_GetIPInfo ();
13533 return 0;
13535 _ACEOF
13536 rm -f conftest.$ac_objext conftest$ac_exeext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13538 (eval $ac_link) 2>conftest.er1
13539 ac_status=$?
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
13545 { ac_try='test -z "$ac_c_werror_flag"
13546 || test ! -s conftest.err'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; } &&
13552 { ac_try='test -s conftest$ac_exeext'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
13558 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
13559 break
13560 else
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13565 rm -f conftest.err conftest.$ac_objext \
13566 conftest$ac_exeext conftest.$ac_ext
13567 done
13569 LIBS=$ac_func_search_save_LIBS
13571 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13572 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13573 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
13574 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13576 else
13577 use_getipinfo=no
13583 if test x$use_getipinfo = xyes; then
13585 cat >>confdefs.h <<\_ACEOF
13586 #define HAVE_GETIPINFO 1
13587 _ACEOF
13589 else
13590 echo "The system unwind library does not support _Unwind_GetIPInfo."
13593 # Look for a file containing extra machine modes.
13594 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13595 extra_modes_file='$(srcdir)'/config/${extra_modes}
13598 cat >>confdefs.h <<_ACEOF
13599 #define EXTRA_MODES_FILE "config/$extra_modes"
13600 _ACEOF
13604 # Convert extra_options into a form suitable for Makefile use.
13605 extra_opt_files=
13606 for f in $extra_options; do
13607 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13608 done
13611 # auto-host.h is the file containing items generated by autoconf and is
13612 # the first file included by config.h.
13613 # If host=build, it is correct to have bconfig include auto-host.h
13614 # as well. If host!=build, we are in error and need to do more
13615 # work to find out the build config parameters.
13616 if test x$host = x$build
13617 then
13618 build_auto=auto-host.h
13619 else
13620 # We create a subdir, then run autoconf in the subdir.
13621 # To prevent recursion we set host and build for the new
13622 # invocation of configure to the build for this invocation
13623 # of configure.
13624 tempdir=build.$$
13625 rm -rf $tempdir
13626 mkdir $tempdir
13627 cd $tempdir
13628 case ${srcdir} in
13629 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13630 *) realsrcdir=../${srcdir};;
13631 esac
13632 saved_CFLAGS="${CFLAGS}"
13633 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13634 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13635 ${realsrcdir}/configure \
13636 --enable-languages=${enable_languages-all} \
13637 --target=$target_alias --host=$build_alias --build=$build_alias
13638 CFLAGS="${saved_CFLAGS}"
13640 # We just finished tests for the build machine, so rename
13641 # the file auto-build.h in the gcc directory.
13642 mv auto-host.h ../auto-build.h
13643 cd ..
13644 rm -rf $tempdir
13645 build_auto=auto-build.h
13649 tm_file="${tm_file} defaults.h"
13650 tm_p_file="${tm_p_file} tm-preds.h"
13651 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13652 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13653 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13654 # put this back in temporarily.
13655 xm_file="auto-host.h ansidecl.h ${xm_file}"
13657 # --------
13658 # UNSORTED
13659 # --------
13661 # Compile in configure arguments.
13662 if test -f configargs.h ; then
13663 # Being re-configured.
13664 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13665 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13666 else
13667 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13670 # Double all backslashes and backslash all quotes to turn
13671 # gcc_config_arguments into a C string.
13672 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13673 $gcc_config_arguments
13675 gcc_config_arguments_str=`cat conftest.out`
13676 rm -f conftest.out
13678 cat > configargs.h <<EOF
13679 /* Generated automatically. */
13680 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13681 static const char thread_model[] = "$thread_file";
13683 static const struct {
13684 const char *name, *value;
13685 } configure_default_options[] = $configure_default_options;
13688 # Internationalization
13689 # If we haven't got the data from the intl directory,
13690 # assume NLS is disabled.
13691 USE_NLS=no
13692 LIBINTL=
13693 LIBINTL_DEP=
13694 INCINTL=
13695 XGETTEXT=
13696 GMSGFMT=
13697 POSUB=
13699 if test -f ../intl/config.intl; then
13700 . ../intl/config.intl
13702 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13703 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13704 if test x"$USE_NLS" != xyes; then
13705 echo "$as_me:$LINENO: result: no" >&5
13706 echo "${ECHO_T}no" >&6
13707 else
13708 echo "$as_me:$LINENO: result: yes" >&5
13709 echo "${ECHO_T}yes" >&6
13711 cat >>confdefs.h <<\_ACEOF
13712 #define ENABLE_NLS 1
13713 _ACEOF
13716 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13717 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13718 # Look for .po and .gmo files in the source directory.
13719 CATALOGS=
13720 XLINGUAS=
13721 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13722 # If there aren't any .gmo files the shell will give us the
13723 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13724 # weeded out.
13725 case "$cat" in *\**)
13726 continue;;
13727 esac
13728 # The quadruple backslash is collapsed to a double backslash
13729 # by the backticks, then collapsed again by the double quotes,
13730 # leaving us with one backslash in the sed expression (right
13731 # before the dot that mustn't act as a wildcard).
13732 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13733 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13734 # The user is allowed to set LINGUAS to a list of languages to
13735 # install catalogs for. If it's empty that means "all of them."
13736 if test "x$LINGUAS" = x; then
13737 CATALOGS="$CATALOGS $cat"
13738 XLINGUAS="$XLINGUAS $lang"
13739 else
13740 case "$LINGUAS" in *$lang*)
13741 CATALOGS="$CATALOGS $cat"
13742 XLINGUAS="$XLINGUAS $lang"
13744 esac
13746 done
13747 LINGUAS="$XLINGUAS"
13748 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13749 echo "${ECHO_T}$LINGUAS" >&6
13752 DATADIRNAME=share
13754 INSTOBJEXT=.mo
13756 GENCAT=gencat
13758 CATOBJEXT=.gmo
13762 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13763 # -liconv on the link line twice.
13764 case "$LIBINTL" in *$LIBICONV*)
13765 LIBICONV= ;;
13766 esac
13768 # Check whether --enable-secureplt or --disable-secureplt was given.
13769 if test "${enable_secureplt+set}" = set; then
13770 enableval="$enable_secureplt"
13774 # Check whether --enable-cld or --disable-cld was given.
13775 if test "${enable_cld+set}" = set; then
13776 enableval="$enable_cld"
13778 else
13779 enable_cld=no
13782 # Windows32 Registry support for specifying GCC installation paths.
13783 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13784 if test "${enable_win32_registry+set}" = set; then
13785 enableval="$enable_win32_registry"
13789 case $host_os in
13790 win32 | pe | cygwin* | mingw32* | uwin*)
13791 if test "x$enable_win32_registry" != xno; then
13792 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13793 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13794 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797 ac_func_search_save_LIBS=$LIBS
13798 ac_cv_search_RegOpenKeyExA=no
13799 cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h. */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13806 /* Override any gcc2 internal prototype to avoid an error. */
13807 #ifdef __cplusplus
13808 extern "C"
13809 #endif
13810 /* We use char because int might match the return type of a gcc2
13811 builtin and then its argument prototype would still apply. */
13812 char RegOpenKeyExA ();
13814 main ()
13816 RegOpenKeyExA ();
13818 return 0;
13820 _ACEOF
13821 rm -f conftest.$ac_objext conftest$ac_exeext
13822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13823 (eval $ac_link) 2>conftest.er1
13824 ac_status=$?
13825 grep -v '^ *+' conftest.er1 >conftest.err
13826 rm -f conftest.er1
13827 cat conftest.err >&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } &&
13830 { ac_try='test -z "$ac_c_werror_flag"
13831 || test ! -s conftest.err'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; } &&
13837 { ac_try='test -s conftest$ac_exeext'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13843 ac_cv_search_RegOpenKeyExA="none required"
13844 else
13845 echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13849 rm -f conftest.err conftest.$ac_objext \
13850 conftest$ac_exeext conftest.$ac_ext
13851 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13852 for ac_lib in advapi32; do
13853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13854 cat >conftest.$ac_ext <<_ACEOF
13855 /* confdefs.h. */
13856 _ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13861 /* Override any gcc2 internal prototype to avoid an error. */
13862 #ifdef __cplusplus
13863 extern "C"
13864 #endif
13865 /* We use char because int might match the return type of a gcc2
13866 builtin and then its argument prototype would still apply. */
13867 char RegOpenKeyExA ();
13869 main ()
13871 RegOpenKeyExA ();
13873 return 0;
13875 _ACEOF
13876 rm -f conftest.$ac_objext conftest$ac_exeext
13877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13878 (eval $ac_link) 2>conftest.er1
13879 ac_status=$?
13880 grep -v '^ *+' conftest.er1 >conftest.err
13881 rm -f conftest.er1
13882 cat conftest.err >&5
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } &&
13885 { ac_try='test -z "$ac_c_werror_flag"
13886 || test ! -s conftest.err'
13887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888 (eval $ac_try) 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; } &&
13892 { ac_try='test -s conftest$ac_exeext'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13895 ac_status=$?
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13899 break
13900 else
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13905 rm -f conftest.err conftest.$ac_objext \
13906 conftest$ac_exeext conftest.$ac_ext
13907 done
13909 LIBS=$ac_func_search_save_LIBS
13911 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13912 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13913 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13914 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13916 else
13917 enable_win32_registry=no
13922 if test "x$enable_win32_registry" != xno; then
13924 cat >>confdefs.h <<\_ACEOF
13925 #define ENABLE_WIN32_REGISTRY 1
13926 _ACEOF
13929 if test "x$enable_win32_registry" != xyes \
13930 && test "x$enable_win32_registry" != x; then
13932 cat >>confdefs.h <<_ACEOF
13933 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13934 _ACEOF
13939 esac
13941 # Get an absolute path to the GCC top-level source directory
13942 holddir=`${PWDCMD-pwd}`
13943 cd $srcdir
13944 topdir=`${PWDCMD-pwd}`
13945 cd $holddir
13947 # Conditionalize the makefile for this host machine.
13948 xmake_file=
13949 for f in ${host_xmake_file}
13951 if test -f ${srcdir}/config/$f
13952 then
13953 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13955 done
13957 # Conditionalize the makefile for this target machine.
13958 tmake_file_=
13959 for f in ${tmake_file}
13961 if test -f ${srcdir}/config/$f
13962 then
13963 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13965 done
13966 tmake_file="${tmake_file_}"
13968 # This is a terrible hack which will go away some day.
13969 host_cc_for_libada=${CC}
13972 out_object_file=`basename $out_file .c`.o
13974 tm_file_list="options.h"
13975 tm_include_list="options.h"
13976 for f in $tm_file; do
13977 case $f in
13978 ./* )
13979 f=`echo $f | sed 's/^..//'`
13980 tm_file_list="${tm_file_list} $f"
13981 tm_include_list="${tm_include_list} $f"
13983 defaults.h )
13984 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13985 tm_include_list="${tm_include_list} $f"
13988 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13989 tm_include_list="${tm_include_list} config/$f"
13991 esac
13992 done
13994 tm_p_file_list=
13995 tm_p_include_list=
13996 for f in $tm_p_file; do
13997 case $f in
13998 tm-preds.h )
13999 tm_p_file_list="${tm_p_file_list} $f"
14000 tm_p_include_list="${tm_p_include_list} $f"
14003 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
14004 tm_p_include_list="${tm_p_include_list} config/$f"
14005 esac
14006 done
14008 xm_file_list=
14009 xm_include_list=
14010 for f in $xm_file; do
14011 case $f in
14012 ansidecl.h )
14013 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
14014 xm_include_list="${xm_include_list} $f"
14016 auto-host.h )
14017 xm_file_list="${xm_file_list} $f"
14018 xm_include_list="${xm_include_list} $f"
14021 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
14022 xm_include_list="${xm_include_list} config/$f"
14024 esac
14025 done
14027 host_xm_file_list=
14028 host_xm_include_list=
14029 for f in $host_xm_file; do
14030 case $f in
14031 ansidecl.h )
14032 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
14033 host_xm_include_list="${host_xm_include_list} $f"
14035 auto-host.h )
14036 host_xm_file_list="${host_xm_file_list} $f"
14037 host_xm_include_list="${host_xm_include_list} $f"
14040 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
14041 host_xm_include_list="${host_xm_include_list} config/$f"
14043 esac
14044 done
14046 build_xm_file_list=
14047 for f in $build_xm_file; do
14048 case $f in
14049 ansidecl.h )
14050 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
14051 build_xm_include_list="${build_xm_include_list} $f"
14053 auto-build.h | auto-host.h )
14054 build_xm_file_list="${build_xm_file_list} $f"
14055 build_xm_include_list="${build_xm_include_list} $f"
14058 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
14059 build_xm_include_list="${build_xm_include_list} config/$f"
14061 esac
14062 done
14064 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
14065 # cross-compiler which does not use the native headers and libraries.
14066 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
14067 CROSS=
14068 ALL=all.internal
14069 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14071 if test "x$with_build_sysroot" != x; then
14072 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
14073 else
14074 # This value is used, even on a native system, because
14075 # CROSS_SYSTEM_HEADER_DIR is just
14076 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
14077 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
14080 if test x$host != x$target
14081 then
14082 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
14083 ALL=all.cross
14084 SYSTEM_HEADER_DIR=$build_system_header_dir
14085 case "$host","$target" in
14086 # Darwin crosses can use the host system's libraries and headers,
14087 # because of the fat library support. Of course, it must be the
14088 # same version of Darwin on both sides. Allow the user to
14089 # just say --target=foo-darwin without a version number to mean
14090 # "the version on this system".
14091 *-*-darwin*,*-*-darwin*)
14092 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
14093 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
14094 if test $hostos = $targetos -o $targetos = darwin ; then
14095 CROSS=
14096 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14097 with_headers=yes
14101 i?86-*-*,x86_64-*-* \
14102 | powerpc*-*-*,powerpc64*-*-*)
14103 CROSS="$CROSS -DNATIVE_CROSS" ;;
14104 esac
14105 elif test "x$TARGET_SYSTEM_ROOT" != x; then
14106 SYSTEM_HEADER_DIR=$build_system_header_dir
14109 # If this is a cross-compiler that does not
14110 # have its own set of headers then define
14111 # inhibit_libc
14113 # If this is using newlib, without having the headers available now,
14114 # then define inhibit_libc in LIBGCC2_CFLAGS.
14115 # This prevents libgcc2 from containing any code which requires libc
14116 # support.
14117 : ${inhibit_libc=false}
14118 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
14119 test x$with_newlib = xyes ; } &&
14120 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
14121 inhibit_libc=true
14125 # When building gcc with a cross-compiler, we need to adjust things so
14126 # that the generator programs are still built with the native compiler.
14127 # Also, we cannot run fixincludes or fix-header.
14129 # These are the normal (build=host) settings:
14130 CC_FOR_BUILD='$(CC)'
14131 BUILD_CFLAGS='$(ALL_CFLAGS)'
14132 BUILD_LDFLAGS='$(LDFLAGS)'
14133 STMP_FIXINC=stmp-fixinc
14135 # Possibly disable fixproto, on a per-target basis.
14136 case ${use_fixproto} in
14138 STMP_FIXPROTO=
14140 yes)
14141 STMP_FIXPROTO=stmp-fixproto
14143 esac
14146 # And these apply if build != host, or we are generating coverage data
14147 if test x$build != x$host || test "x$coverage_flags" != x
14148 then
14149 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
14150 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
14152 if test "x$TARGET_SYSTEM_ROOT" = x; then
14153 if test "x$STMP_FIXPROTO" != x; then
14154 STMP_FIXPROTO=stmp-install-fixproto
14159 # Expand extra_headers to include complete path.
14160 # This substitutes for lots of t-* files.
14161 extra_headers_list=
14162 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
14163 for file in ${extra_headers} ; do
14164 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
14165 done
14167 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
14168 if test x"$use_gcc_tgmath" = xyes
14169 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
14172 # Define collect2 in Makefile.
14173 case $host_can_use_collect2 in
14174 no) collect2= ;;
14175 *) collect2='collect2$(exeext)' ;;
14176 esac
14179 # Add a definition of USE_COLLECT2 if system wants one.
14180 case $use_collect2 in
14181 no) use_collect2= ;;
14182 "") ;;
14184 host_xm_defines="${host_xm_defines} USE_COLLECT2"
14185 xm_defines="${xm_defines} USE_COLLECT2"
14186 case $host_can_use_collect2 in
14188 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
14189 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
14190 { (exit 1); exit 1; }; }
14192 esac
14194 esac
14196 # ---------------------------
14197 # Assembler & linker features
14198 # ---------------------------
14200 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
14201 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
14202 # However when ld-new is first executed from the build tree, libtool will
14203 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
14204 # to the build tree. While doing this we need to use the previous-stage
14205 # linker, or we have an infinite loop. The presence of a shell script as
14206 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
14207 # the gcc/collect-ld script. So we need to know how libtool works, or
14208 # exec-tool will fail.
14213 macro_version='2.1a'
14214 macro_revision='1.2435'
14227 ltmain="$ac_aux_dir/ltmain.sh"
14229 # Set options
14231 enable_dlopen=no
14234 enable_win32_dll=no
14237 # Check whether --enable-shared or --disable-shared was given.
14238 if test "${enable_shared+set}" = set; then
14239 enableval="$enable_shared"
14240 p=${PACKAGE-default}
14241 case $enableval in
14242 yes) enable_shared=yes ;;
14243 no) enable_shared=no ;;
14245 enable_shared=no
14246 # Look at the argument we got. We use all the common list separators.
14247 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14248 for pkg in $enableval; do
14249 IFS="$lt_save_ifs"
14250 if test "X$pkg" = "X$p"; then
14251 enable_shared=yes
14253 done
14254 IFS="$lt_save_ifs"
14256 esac
14257 else
14258 enable_shared=yes
14268 # Check whether --enable-static or --disable-static was given.
14269 if test "${enable_static+set}" = set; then
14270 enableval="$enable_static"
14271 p=${PACKAGE-default}
14272 case $enableval in
14273 yes) enable_static=yes ;;
14274 no) enable_static=no ;;
14276 enable_static=no
14277 # Look at the argument we got. We use all the common list separators.
14278 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14279 for pkg in $enableval; do
14280 IFS="$lt_save_ifs"
14281 if test "X$pkg" = "X$p"; then
14282 enable_static=yes
14284 done
14285 IFS="$lt_save_ifs"
14287 esac
14288 else
14289 enable_static=yes
14300 # Check whether --with-pic or --without-pic was given.
14301 if test "${with_pic+set}" = set; then
14302 withval="$with_pic"
14303 pic_mode="$withval"
14304 else
14305 pic_mode=default
14308 test -z "$pic_mode" && pic_mode=default
14316 # Check whether --enable-fast-install or --disable-fast-install was given.
14317 if test "${enable_fast_install+set}" = set; then
14318 enableval="$enable_fast_install"
14319 p=${PACKAGE-default}
14320 case $enableval in
14321 yes) enable_fast_install=yes ;;
14322 no) enable_fast_install=no ;;
14324 enable_fast_install=no
14325 # Look at the argument we got. We use all the common list separators.
14326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14327 for pkg in $enableval; do
14328 IFS="$lt_save_ifs"
14329 if test "X$pkg" = "X$p"; then
14330 enable_fast_install=yes
14332 done
14333 IFS="$lt_save_ifs"
14335 esac
14336 else
14337 enable_fast_install=yes
14347 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14348 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14349 if test "${lt_cv_path_SED+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352 # Loop through the user's path and test for sed and gsed.
14353 # Then use that list of sed's as ones to test for truncation.
14354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14355 for as_dir in $PATH
14357 IFS=$as_save_IFS
14358 test -z "$as_dir" && as_dir=.
14359 for lt_ac_prog in sed gsed; do
14360 for ac_exec_ext in '' $ac_executable_extensions; do
14361 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14362 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14364 done
14365 done
14366 done
14367 IFS=$as_save_IFS
14368 lt_ac_max=0
14369 lt_ac_count=0
14370 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14371 # along with /bin/sed that truncates output.
14372 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14373 test ! -f $lt_ac_sed && continue
14374 cat /dev/null > conftest.in
14375 lt_ac_count=0
14376 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14377 # Check for GNU sed and select it if it is found.
14378 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14379 lt_cv_path_SED=$lt_ac_sed
14380 break
14382 while true; do
14383 cat conftest.in conftest.in >conftest.tmp
14384 mv conftest.tmp conftest.in
14385 cp conftest.in conftest.nl
14386 echo >>conftest.nl
14387 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14388 cmp -s conftest.out conftest.nl || break
14389 # 10000 chars as input seems more than enough
14390 test $lt_ac_count -gt 10 && break
14391 lt_ac_count=`expr $lt_ac_count + 1`
14392 if test $lt_ac_count -gt $lt_ac_max; then
14393 lt_ac_max=$lt_ac_count
14394 lt_cv_path_SED=$lt_ac_sed
14396 done
14397 done
14401 SED=$lt_cv_path_SED
14403 echo "$as_me:$LINENO: result: $SED" >&5
14404 echo "${ECHO_T}$SED" >&6
14406 test -z "$SED" && SED=sed
14407 Xsed="$SED -e 1s/^X//"
14419 echo "$as_me:$LINENO: checking for fgrep" >&5
14420 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14421 if test "${ac_cv_prog_fgrep+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 else
14424 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14425 then ac_cv_prog_fgrep='grep -F'
14426 else ac_cv_prog_fgrep='fgrep'
14429 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14430 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14431 FGREP=$ac_cv_prog_fgrep
14434 test -z "$GREP" && GREP=grep
14454 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14455 if test "${with_gnu_ld+set}" = set; then
14456 withval="$with_gnu_ld"
14457 test "$withval" = no || with_gnu_ld=yes
14458 else
14459 with_gnu_ld=no
14461 ac_prog=ld
14462 if test "$GCC" = yes; then
14463 # Check if gcc -print-prog-name=ld gives a path.
14464 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14465 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14466 case $host in
14467 *-*-mingw*)
14468 # gcc leaves a trailing carriage return which upsets mingw
14469 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14471 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14472 esac
14473 case $ac_prog in
14474 # Accept absolute paths.
14475 [\\/]* | ?:[\\/]*)
14476 re_direlt='/[^/][^/]*/\.\./'
14477 # Canonicalize the pathname of ld
14478 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14479 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14480 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14481 done
14482 test -z "$LD" && LD="$ac_prog"
14485 # If it fails, then pretend we aren't using GCC.
14486 ac_prog=ld
14489 # If it is relative, then search for the first ld in PATH.
14490 with_gnu_ld=unknown
14492 esac
14493 elif test "$with_gnu_ld" = yes; then
14494 echo "$as_me:$LINENO: checking for GNU ld" >&5
14495 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14496 else
14497 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14498 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14500 if test "${lt_cv_path_LD+set}" = set; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 else
14503 if test -z "$LD"; then
14504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14505 for ac_dir in $PATH; do
14506 IFS="$lt_save_ifs"
14507 test -z "$ac_dir" && ac_dir=.
14508 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14509 lt_cv_path_LD="$ac_dir/$ac_prog"
14510 # Check to see if the program is GNU ld. I'd rather use --version,
14511 # but apparently some variants of GNU ld only accept -v.
14512 # Break only if it was the GNU/non-GNU ld that we prefer.
14513 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14514 *GNU* | *'with BFD'*)
14515 test "$with_gnu_ld" != no && break
14518 test "$with_gnu_ld" != yes && break
14520 esac
14522 done
14523 IFS="$lt_save_ifs"
14524 else
14525 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14529 LD="$lt_cv_path_LD"
14530 if test -n "$LD"; then
14531 echo "$as_me:$LINENO: result: $LD" >&5
14532 echo "${ECHO_T}$LD" >&6
14533 else
14534 echo "$as_me:$LINENO: result: no" >&5
14535 echo "${ECHO_T}no" >&6
14537 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14538 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14539 { (exit 1); exit 1; }; }
14540 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14541 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14542 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14543 echo $ECHO_N "(cached) $ECHO_C" >&6
14544 else
14545 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14546 case `$LD -v 2>&1 </dev/null` in
14547 *GNU* | *'with BFD'*)
14548 lt_cv_prog_gnu_ld=yes
14551 lt_cv_prog_gnu_ld=no
14553 esac
14555 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14556 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14557 with_gnu_ld=$lt_cv_prog_gnu_ld
14568 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14569 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14570 if test "${lt_cv_path_NM+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573 if test -n "$NM"; then
14574 # Let the user override the test.
14575 lt_cv_path_NM="$NM"
14576 else
14577 lt_nm_to_check="${ac_tool_prefix}nm"
14578 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14579 lt_nm_to_check="$lt_nm_to_check nm"
14581 for lt_tmp_nm in $lt_nm_to_check; do
14582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14583 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14584 IFS="$lt_save_ifs"
14585 test -z "$ac_dir" && ac_dir=.
14586 tmp_nm="$ac_dir/$lt_tmp_nm"
14587 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14588 # Check to see if the nm accepts a BSD-compat flag.
14589 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14590 # nm: unknown option "B" ignored
14591 # Tru64's nm complains that /dev/null is an invalid object file
14592 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14593 */dev/null* | *'Invalid file or object type'*)
14594 lt_cv_path_NM="$tmp_nm -B"
14595 break
14598 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14599 */dev/null*)
14600 lt_cv_path_NM="$tmp_nm -p"
14601 break
14604 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14605 continue # so that we can try to find one that supports BSD flags
14607 esac
14609 esac
14611 done
14612 IFS="$lt_save_ifs"
14613 done
14614 : ${lt_cv_path_NM=no}
14617 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14618 echo "${ECHO_T}$lt_cv_path_NM" >&6
14619 if test "$lt_cv_path_NM" != "no"; then
14620 NM="$lt_cv_path_NM"
14621 else
14622 # Didn't find any BSD compatible name lister, look for dumpbin.
14623 if test -n "$ac_tool_prefix"; then
14624 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14628 echo "$as_me:$LINENO: checking for $ac_word" >&5
14629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14630 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 else
14633 if test -n "$DUMPBIN"; then
14634 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14635 else
14636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637 for as_dir in $PATH
14639 IFS=$as_save_IFS
14640 test -z "$as_dir" && as_dir=.
14641 for ac_exec_ext in '' $ac_executable_extensions; do
14642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14643 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14645 break 2
14647 done
14648 done
14652 DUMPBIN=$ac_cv_prog_DUMPBIN
14653 if test -n "$DUMPBIN"; then
14654 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14655 echo "${ECHO_T}$DUMPBIN" >&6
14656 else
14657 echo "$as_me:$LINENO: result: no" >&5
14658 echo "${ECHO_T}no" >&6
14661 test -n "$DUMPBIN" && break
14662 done
14664 if test -z "$DUMPBIN"; then
14665 ac_ct_DUMPBIN=$DUMPBIN
14666 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14668 # Extract the first word of "$ac_prog", so it can be a program name with args.
14669 set dummy $ac_prog; ac_word=$2
14670 echo "$as_me:$LINENO: checking for $ac_word" >&5
14671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14672 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 else
14675 if test -n "$ac_ct_DUMPBIN"; then
14676 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14677 else
14678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14679 for as_dir in $PATH
14681 IFS=$as_save_IFS
14682 test -z "$as_dir" && as_dir=.
14683 for ac_exec_ext in '' $ac_executable_extensions; do
14684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14685 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14687 break 2
14689 done
14690 done
14694 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14695 if test -n "$ac_ct_DUMPBIN"; then
14696 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14697 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14698 else
14699 echo "$as_me:$LINENO: result: no" >&5
14700 echo "${ECHO_T}no" >&6
14703 test -n "$ac_ct_DUMPBIN" && break
14704 done
14705 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14707 DUMPBIN=$ac_ct_DUMPBIN
14711 if test "$DUMPBIN" != ":"; then
14712 NM="$DUMPBIN"
14715 test -z "$NM" && NM=nm
14722 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14723 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14724 if test "${lt_cv_nm_interface+set}" = set; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 else
14727 lt_cv_nm_interface="BSD nm"
14728 echo "int some_variable = 0;" > conftest.$ac_ext
14729 (eval echo "\"\$as_me:14729: $ac_compile\"" >&5)
14730 (eval "$ac_compile" 2>conftest.err)
14731 cat conftest.err >&5
14732 (eval echo "\"\$as_me:14732: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14733 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14734 cat conftest.err >&5
14735 (eval echo "\"\$as_me:14735: output\"" >&5)
14736 cat conftest.out >&5
14737 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14738 lt_cv_nm_interface="MS dumpbin"
14740 rm -f conftest*
14742 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14743 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14745 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14746 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14747 LN_S=$as_ln_s
14748 if test "$LN_S" = "ln -s"; then
14749 echo "$as_me:$LINENO: result: yes" >&5
14750 echo "${ECHO_T}yes" >&6
14751 else
14752 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14753 echo "${ECHO_T}no, using $LN_S" >&6
14756 # find the maximum length of command line arguments
14757 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14758 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14759 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14763 teststring="ABCD"
14765 case $build_os in
14766 msdosdjgpp*)
14767 # On DJGPP, this test can blow up pretty badly due to problems in libc
14768 # (any single argument exceeding 2000 bytes causes a buffer overrun
14769 # during glob expansion). Even if it were fixed, the result of this
14770 # check would be larger than it should be.
14771 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14774 gnu*)
14775 # Under GNU Hurd, this test is not required because there is
14776 # no limit to the length of command line arguments.
14777 # Libtool will interpret -1 as no limit whatsoever
14778 lt_cv_sys_max_cmd_len=-1;
14781 cygwin* | mingw*)
14782 # On Win9x/ME, this test blows up -- it succeeds, but takes
14783 # about 5 minutes as the teststring grows exponentially.
14784 # Worse, since 9x/ME are not pre-emptively multitasking,
14785 # you end up with a "frozen" computer, even though with patience
14786 # the test eventually succeeds (with a max line length of 256k).
14787 # Instead, let's just punt: use the minimum linelength reported by
14788 # all of the supported platforms: 8192 (on NT/2K/XP).
14789 lt_cv_sys_max_cmd_len=8192;
14792 amigaos*)
14793 # On AmigaOS with pdksh, this test takes hours, literally.
14794 # So we just punt and use a minimum line length of 8192.
14795 lt_cv_sys_max_cmd_len=8192;
14798 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14799 # This has been around since 386BSD, at least. Likely further.
14800 if test -x /sbin/sysctl; then
14801 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14802 elif test -x /usr/sbin/sysctl; then
14803 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14804 else
14805 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14807 # And add a safety zone
14808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14812 interix*)
14813 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14814 lt_cv_sys_max_cmd_len=196608
14817 osf*)
14818 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14819 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14820 # nice to cause kernel panics so lets avoid the loop below.
14821 # First set a reasonable default.
14822 lt_cv_sys_max_cmd_len=16384
14824 if test -x /sbin/sysconfig; then
14825 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14826 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14827 esac
14830 sco3.2v5*)
14831 lt_cv_sys_max_cmd_len=102400
14833 sysv5* | sco5v6* | sysv4.2uw2*)
14834 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14835 if test -n "$kargmax"; then
14836 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14837 else
14838 lt_cv_sys_max_cmd_len=32768
14842 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
14843 if test -n $lt_cv_sys_max_cmd_len; then
14844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14846 else
14847 # Make teststring a little bigger before we do anything with it.
14848 # a 1K string should be a reasonable start.
14849 for i in 1 2 3 4 5 6 7 8 ; do
14850 teststring=$teststring$teststring
14851 done
14852 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14853 # If test is not a shell built-in, we'll probably end up computing a
14854 # maximum length that is only half of the actual maximum length, but
14855 # we can't tell.
14856 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14857 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14858 test $i != 17 # 1/2 MB should be enough
14860 i=`expr $i + 1`
14861 teststring=$teststring$teststring
14862 done
14863 # Only check the string length outside the loop.
14864 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14865 teststring=
14866 # Add a significant safety factor because C++ compilers can tack on
14867 # massive amounts of additional arguments before passing them to the
14868 # linker. It appears as though 1/2 is a usable value.
14869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14872 esac
14876 if test -n $lt_cv_sys_max_cmd_len ; then
14877 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14878 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14879 else
14880 echo "$as_me:$LINENO: result: none" >&5
14881 echo "${ECHO_T}none" >&6
14883 max_cmd_len=$lt_cv_sys_max_cmd_len
14891 : ${CP="cp -f"}
14892 : ${MV="mv -f"}
14893 : ${RM="rm -f"}
14895 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14896 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14897 # Try some XSI features
14898 xsi_shell=no
14899 ( _lt_dummy="a/b/c"
14900 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14901 = c,a/b,, ) >/dev/null 2>&1 \
14902 && xsi_shell=yes
14903 echo "$as_me:$LINENO: result: $xsi_shell" >&5
14904 echo "${ECHO_T}$xsi_shell" >&6
14907 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14908 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14909 lt_shell_append=no
14910 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14911 >/dev/null 2>&1 \
14912 && lt_shell_append=yes
14913 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14914 echo "${ECHO_T}$lt_shell_append" >&6
14917 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14918 lt_unset=unset
14919 else
14920 lt_unset=false
14927 # test EBCDIC or ASCII
14928 case `echo X|tr X '\101'` in
14929 A) # ASCII based system
14930 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14931 lt_SP2NL='tr \040 \012'
14932 lt_NL2SP='tr \015\012 \040\040'
14934 *) # EBCDIC based system
14935 lt_SP2NL='tr \100 \n'
14936 lt_NL2SP='tr \r\n \100\100'
14938 esac
14948 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14949 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14950 if test "${lt_cv_ld_reload_flag+set}" = set; then
14951 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 else
14953 lt_cv_ld_reload_flag='-r'
14955 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14956 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14957 reload_flag=$lt_cv_ld_reload_flag
14958 case $reload_flag in
14959 "" | " "*) ;;
14960 *) reload_flag=" $reload_flag" ;;
14961 esac
14962 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14963 case $host_os in
14964 darwin*)
14965 if test "$GCC" = yes; then
14966 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14967 else
14968 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14971 esac
14982 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14983 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14984 if test "${lt_cv_deplibs_check_method+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14987 lt_cv_file_magic_cmd='$MAGIC_CMD'
14988 lt_cv_file_magic_test_file=
14989 lt_cv_deplibs_check_method='unknown'
14990 # Need to set the preceding variable on all platforms that support
14991 # interlibrary dependencies.
14992 # 'none' -- dependencies not supported.
14993 # `unknown' -- same as none, but documents that we really don't know.
14994 # 'pass_all' -- all dependencies passed with no checks.
14995 # 'test_compile' -- check by making test program.
14996 # 'file_magic [[regex]]' -- check by looking for files in library path
14997 # which responds to the $file_magic_cmd with a given extended regex.
14998 # If you have `file' or equivalent on your system and you're not sure
14999 # whether `pass_all' will *always* work, you probably want this one.
15001 case $host_os in
15002 aix[4-9]*)
15003 lt_cv_deplibs_check_method=pass_all
15006 beos*)
15007 lt_cv_deplibs_check_method=pass_all
15010 bsdi[45]*)
15011 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15012 lt_cv_file_magic_cmd='/usr/bin/file -L'
15013 lt_cv_file_magic_test_file=/shlib/libc.so
15016 cygwin*)
15017 # func_win32_libid is a shell function defined in ltmain.sh
15018 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15019 lt_cv_file_magic_cmd='func_win32_libid'
15022 mingw* | pw32*)
15023 # Base MSYS/MinGW do not provide the 'file' command needed by
15024 # func_win32_libid shell function, so use a weaker test based on 'objdump',
15025 # unless we find 'file', for example because we are cross-compiling.
15026 if ( file / ) >/dev/null 2>&1; then
15027 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15028 lt_cv_file_magic_cmd='func_win32_libid'
15029 else
15030 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
15031 lt_cv_file_magic_cmd='$OBJDUMP -f'
15035 darwin* | rhapsody*)
15036 lt_cv_deplibs_check_method=pass_all
15039 freebsd* | dragonfly*)
15040 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15041 case $host_cpu in
15042 i*86 )
15043 # Not sure whether the presence of OpenBSD here was a mistake.
15044 # Let's accept both of them until this is cleared up.
15045 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15046 lt_cv_file_magic_cmd=/usr/bin/file
15047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15049 esac
15050 else
15051 lt_cv_deplibs_check_method=pass_all
15055 gnu*)
15056 lt_cv_deplibs_check_method=pass_all
15059 hpux10.20* | hpux11*)
15060 lt_cv_file_magic_cmd=/usr/bin/file
15061 case $host_cpu in
15062 ia64*)
15063 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15064 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15066 hppa*64*)
15067 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]'
15068 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15071 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
15072 lt_cv_file_magic_test_file=/usr/lib/libc.sl
15074 esac
15077 interix[3-9]*)
15078 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15082 irix5* | irix6* | nonstopux*)
15083 case $LD in
15084 *-32|*"-32 ") libmagic=32-bit;;
15085 *-n32|*"-n32 ") libmagic=N32;;
15086 *-64|*"-64 ") libmagic=64-bit;;
15087 *) libmagic=never-match;;
15088 esac
15089 lt_cv_deplibs_check_method=pass_all
15092 # This must be Linux ELF.
15093 linux* | k*bsd*-gnu)
15094 lt_cv_deplibs_check_method=pass_all
15097 netbsd*)
15098 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15100 else
15101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15105 newos6*)
15106 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15107 lt_cv_file_magic_cmd=/usr/bin/file
15108 lt_cv_file_magic_test_file=/usr/lib/libnls.so
15111 *nto* | *qnx*)
15112 lt_cv_deplibs_check_method=pass_all
15115 openbsd*)
15116 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15118 else
15119 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15123 osf3* | osf4* | osf5*)
15124 lt_cv_deplibs_check_method=pass_all
15127 rdos*)
15128 lt_cv_deplibs_check_method=pass_all
15131 solaris*)
15132 lt_cv_deplibs_check_method=pass_all
15135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15136 lt_cv_deplibs_check_method=pass_all
15139 sysv4 | sysv4.3*)
15140 case $host_vendor in
15141 motorola)
15142 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]'
15143 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15145 ncr)
15146 lt_cv_deplibs_check_method=pass_all
15148 sequent)
15149 lt_cv_file_magic_cmd='/bin/file'
15150 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15152 sni)
15153 lt_cv_file_magic_cmd='/bin/file'
15154 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15155 lt_cv_file_magic_test_file=/lib/libc.so
15157 siemens)
15158 lt_cv_deplibs_check_method=pass_all
15161 lt_cv_deplibs_check_method=pass_all
15163 esac
15166 tpf*)
15167 lt_cv_deplibs_check_method=pass_all
15169 esac
15172 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
15173 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15174 file_magic_cmd=$lt_cv_file_magic_cmd
15175 deplibs_check_method=$lt_cv_deplibs_check_method
15176 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15189 if test -n "$ac_tool_prefix"; then
15190 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15191 set dummy ${ac_tool_prefix}ar; ac_word=$2
15192 echo "$as_me:$LINENO: checking for $ac_word" >&5
15193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15194 if test "${ac_cv_prog_AR+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197 if test -n "$AR"; then
15198 ac_cv_prog_AR="$AR" # Let the user override the test.
15199 else
15200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15201 for as_dir in $PATH
15203 IFS=$as_save_IFS
15204 test -z "$as_dir" && as_dir=.
15205 for ac_exec_ext in '' $ac_executable_extensions; do
15206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15207 ac_cv_prog_AR="${ac_tool_prefix}ar"
15208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15209 break 2
15211 done
15212 done
15216 AR=$ac_cv_prog_AR
15217 if test -n "$AR"; then
15218 echo "$as_me:$LINENO: result: $AR" >&5
15219 echo "${ECHO_T}$AR" >&6
15220 else
15221 echo "$as_me:$LINENO: result: no" >&5
15222 echo "${ECHO_T}no" >&6
15226 if test -z "$ac_cv_prog_AR"; then
15227 ac_ct_AR=$AR
15228 # Extract the first word of "ar", so it can be a program name with args.
15229 set dummy ar; ac_word=$2
15230 echo "$as_me:$LINENO: checking for $ac_word" >&5
15231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15232 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235 if test -n "$ac_ct_AR"; then
15236 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15237 else
15238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15239 for as_dir in $PATH
15241 IFS=$as_save_IFS
15242 test -z "$as_dir" && as_dir=.
15243 for ac_exec_ext in '' $ac_executable_extensions; do
15244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15245 ac_cv_prog_ac_ct_AR="ar"
15246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15247 break 2
15249 done
15250 done
15252 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
15255 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15256 if test -n "$ac_ct_AR"; then
15257 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15258 echo "${ECHO_T}$ac_ct_AR" >&6
15259 else
15260 echo "$as_me:$LINENO: result: no" >&5
15261 echo "${ECHO_T}no" >&6
15264 AR=$ac_ct_AR
15265 else
15266 AR="$ac_cv_prog_AR"
15269 test -z "$AR" && AR=ar
15270 test -z "$AR_FLAGS" && AR_FLAGS=cru
15282 if test -n "$ac_tool_prefix"; then
15283 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15284 set dummy ${ac_tool_prefix}strip; ac_word=$2
15285 echo "$as_me:$LINENO: checking for $ac_word" >&5
15286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15287 if test "${ac_cv_prog_STRIP+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290 if test -n "$STRIP"; then
15291 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15292 else
15293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15294 for as_dir in $PATH
15296 IFS=$as_save_IFS
15297 test -z "$as_dir" && as_dir=.
15298 for ac_exec_ext in '' $ac_executable_extensions; do
15299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15300 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15302 break 2
15304 done
15305 done
15309 STRIP=$ac_cv_prog_STRIP
15310 if test -n "$STRIP"; then
15311 echo "$as_me:$LINENO: result: $STRIP" >&5
15312 echo "${ECHO_T}$STRIP" >&6
15313 else
15314 echo "$as_me:$LINENO: result: no" >&5
15315 echo "${ECHO_T}no" >&6
15319 if test -z "$ac_cv_prog_STRIP"; then
15320 ac_ct_STRIP=$STRIP
15321 # Extract the first word of "strip", so it can be a program name with args.
15322 set dummy strip; ac_word=$2
15323 echo "$as_me:$LINENO: checking for $ac_word" >&5
15324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15325 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15326 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 else
15328 if test -n "$ac_ct_STRIP"; then
15329 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15330 else
15331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15332 for as_dir in $PATH
15334 IFS=$as_save_IFS
15335 test -z "$as_dir" && as_dir=.
15336 for ac_exec_ext in '' $ac_executable_extensions; do
15337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15338 ac_cv_prog_ac_ct_STRIP="strip"
15339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15340 break 2
15342 done
15343 done
15345 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15348 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15349 if test -n "$ac_ct_STRIP"; then
15350 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15351 echo "${ECHO_T}$ac_ct_STRIP" >&6
15352 else
15353 echo "$as_me:$LINENO: result: no" >&5
15354 echo "${ECHO_T}no" >&6
15357 STRIP=$ac_ct_STRIP
15358 else
15359 STRIP="$ac_cv_prog_STRIP"
15362 test -z "$STRIP" && STRIP=:
15369 if test -n "$ac_tool_prefix"; then
15370 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15371 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15372 echo "$as_me:$LINENO: checking for $ac_word" >&5
15373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15374 if test "${ac_cv_prog_RANLIB+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 else
15377 if test -n "$RANLIB"; then
15378 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15379 else
15380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15381 for as_dir in $PATH
15383 IFS=$as_save_IFS
15384 test -z "$as_dir" && as_dir=.
15385 for ac_exec_ext in '' $ac_executable_extensions; do
15386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15387 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15389 break 2
15391 done
15392 done
15396 RANLIB=$ac_cv_prog_RANLIB
15397 if test -n "$RANLIB"; then
15398 echo "$as_me:$LINENO: result: $RANLIB" >&5
15399 echo "${ECHO_T}$RANLIB" >&6
15400 else
15401 echo "$as_me:$LINENO: result: no" >&5
15402 echo "${ECHO_T}no" >&6
15406 if test -z "$ac_cv_prog_RANLIB"; then
15407 ac_ct_RANLIB=$RANLIB
15408 # Extract the first word of "ranlib", so it can be a program name with args.
15409 set dummy ranlib; ac_word=$2
15410 echo "$as_me:$LINENO: checking for $ac_word" >&5
15411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15412 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 else
15415 if test -n "$ac_ct_RANLIB"; then
15416 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15417 else
15418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15419 for as_dir in $PATH
15421 IFS=$as_save_IFS
15422 test -z "$as_dir" && as_dir=.
15423 for ac_exec_ext in '' $ac_executable_extensions; do
15424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15425 ac_cv_prog_ac_ct_RANLIB="ranlib"
15426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15427 break 2
15429 done
15430 done
15432 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15435 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15436 if test -n "$ac_ct_RANLIB"; then
15437 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15438 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15439 else
15440 echo "$as_me:$LINENO: result: no" >&5
15441 echo "${ECHO_T}no" >&6
15444 RANLIB=$ac_ct_RANLIB
15445 else
15446 RANLIB="$ac_cv_prog_RANLIB"
15449 test -z "$RANLIB" && RANLIB=:
15456 # Determine commands to create old-style static archives.
15457 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15458 old_postinstall_cmds='chmod 644 $oldlib'
15459 old_postuninstall_cmds=
15461 if test -n "$RANLIB"; then
15462 case $host_os in
15463 openbsd*)
15464 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15467 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15469 esac
15470 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15506 # If no C compiler was specified, use CC.
15507 LTCC=${LTCC-"$CC"}
15509 # If no C compiler flags were specified, use CFLAGS.
15510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15512 # Allow CC to be a program name with arguments.
15513 compiler=$CC
15516 # Check for command to grab the raw symbol name followed by C symbol from nm.
15517 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15518 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15519 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15521 else
15523 # These are sane defaults that work on at least a few old systems.
15524 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15526 # Character class describing NM global symbol codes.
15527 symcode='[BCDEGRST]'
15529 # Regexp to match symbols that can be accessed directly from C.
15530 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15532 # Define system-specific variables.
15533 case $host_os in
15534 aix*)
15535 symcode='[BCDT]'
15537 cygwin* | mingw* | pw32*)
15538 symcode='[ABCDGISTW]'
15540 hpux*)
15541 if test "$host_cpu" = ia64; then
15542 symcode='[ABCDEGRST]'
15545 irix* | nonstopux*)
15546 symcode='[BCDEGRST]'
15548 osf*)
15549 symcode='[BCDEGQRST]'
15551 solaris*)
15552 symcode='[BDRT]'
15554 sco3.2v5*)
15555 symcode='[DT]'
15557 sysv4.2uw2*)
15558 symcode='[DT]'
15560 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15561 symcode='[ABDT]'
15563 sysv4)
15564 symcode='[DFNSTU]'
15566 esac
15568 # If we're using GNU nm, then use its standard symbol codes.
15569 case `$NM -V 2>&1` in
15570 *GNU* | *'with BFD'*)
15571 symcode='[ABCDGIRSTW]' ;;
15572 esac
15574 # Transform an extracted symbol line into a proper C declaration.
15575 # Some systems (esp. on ia64) link data and code symbols differently,
15576 # so use this general approach.
15577 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15579 # Transform an extracted symbol line into symbol name and symbol address
15580 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15582 # Handle CRLF in mingw tool chain
15583 opt_cr=
15584 case $build_os in
15585 mingw*)
15586 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15588 esac
15590 # Try without a prefix underscore, then with it.
15591 for ac_symprfx in "" "_"; do
15593 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15594 symxfrm="\\1 $ac_symprfx\\2 \\2"
15596 # Write the raw and C identifiers.
15597 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15598 # Fake it for dumpbin and say T for any non-static function
15599 # and D for any global variable.
15600 # Also find C++ and __fastcall symbols from MSVC++,
15601 # which start with @ or ?.
15602 lt_cv_sys_global_symbol_pipe="$AWK '"\
15603 " {last_section=section; section=\$ 3};"\
15604 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15605 " \$ 0!~/External *\|/{next};"\
15606 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15607 " {if(hide[section]) next};"\
15608 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15609 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15610 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15611 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15612 " ' prfx=^$ac_symprfx"
15613 else
15614 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15617 # Check to see that the pipe works correctly.
15618 pipe_works=no
15620 rm -f conftest*
15621 cat > conftest.$ac_ext <<_LT_EOF
15622 #ifdef __cplusplus
15623 extern "C" {
15624 #endif
15625 char nm_test_var;
15626 void nm_test_func(void);
15627 void nm_test_func(void){}
15628 #ifdef __cplusplus
15630 #endif
15631 int main(){nm_test_var='a';nm_test_func();return(0);}
15632 _LT_EOF
15634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15635 (eval $ac_compile) 2>&5
15636 ac_status=$?
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; then
15639 # Now try to grab the symbols.
15640 nlist=conftest.nm
15641 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15642 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } && test -s "$nlist"; then
15646 # Try sorting and uniquifying the output.
15647 if sort "$nlist" | uniq > "$nlist"T; then
15648 mv -f "$nlist"T "$nlist"
15649 else
15650 rm -f "$nlist"T
15653 # Make sure that we snagged all the symbols we need.
15654 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15655 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15656 cat <<_LT_EOF > conftest.$ac_ext
15657 #ifdef __cplusplus
15658 extern "C" {
15659 #endif
15661 _LT_EOF
15662 # Now generate the symbol file.
15663 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15665 cat <<_LT_EOF >> conftest.$ac_ext
15667 /* The mapping between symbol names and symbols. */
15668 const struct {
15669 const char *name;
15670 void *address;
15672 lt__PROGRAM__LTX_preloaded_symbols[] =
15674 { "@PROGRAM@", (void *) 0 },
15675 _LT_EOF
15676 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15677 cat <<\_LT_EOF >> conftest.$ac_ext
15678 {0, (void *) 0}
15681 /* This works around a problem in FreeBSD linker */
15682 #ifdef FREEBSD_WORKAROUND
15683 static const void *lt_preloaded_setup() {
15684 return lt__PROGRAM__LTX_preloaded_symbols;
15686 #endif
15688 #ifdef __cplusplus
15690 #endif
15691 _LT_EOF
15692 # Now try linking the two files.
15693 mv conftest.$ac_objext conftstm.$ac_objext
15694 lt_save_LIBS="$LIBS"
15695 lt_save_CFLAGS="$CFLAGS"
15696 LIBS="conftstm.$ac_objext"
15697 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15699 (eval $ac_link) 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15703 pipe_works=yes
15705 LIBS="$lt_save_LIBS"
15706 CFLAGS="$lt_save_CFLAGS"
15707 else
15708 echo "cannot find nm_test_func in $nlist" >&5
15710 else
15711 echo "cannot find nm_test_var in $nlist" >&5
15713 else
15714 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15716 else
15717 echo "$progname: failed program was:" >&5
15718 cat conftest.$ac_ext >&5
15720 rm -f conftest* conftst*
15722 # Do not use the global_symbol_pipe unless it works.
15723 if test "$pipe_works" = yes; then
15724 break
15725 else
15726 lt_cv_sys_global_symbol_pipe=
15728 done
15732 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15733 lt_cv_sys_global_symbol_to_cdecl=
15735 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15736 echo "$as_me:$LINENO: result: failed" >&5
15737 echo "${ECHO_T}failed" >&6
15738 else
15739 echo "$as_me:$LINENO: result: ok" >&5
15740 echo "${ECHO_T}ok" >&6
15759 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15760 if test "${enable_libtool_lock+set}" = set; then
15761 enableval="$enable_libtool_lock"
15764 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15766 # Some flags need to be propagated to the compiler or linker for good
15767 # libtool support.
15768 case $host in
15769 ia64-*-hpux*)
15770 # Find out which ABI we are using.
15771 echo 'int i;' > conftest.$ac_ext
15772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15773 (eval $ac_compile) 2>&5
15774 ac_status=$?
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); }; then
15777 case `/usr/bin/file conftest.$ac_objext` in
15778 *ELF-32*)
15779 HPUX_IA64_MODE="32"
15781 *ELF-64*)
15782 HPUX_IA64_MODE="64"
15784 esac
15786 rm -rf conftest*
15788 *-*-irix6*)
15789 # Find out which ABI we are using.
15790 echo '#line 15790 "configure"' > conftest.$ac_ext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15792 (eval $ac_compile) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; then
15796 if test "$lt_cv_prog_gnu_ld" = yes; then
15797 case `/usr/bin/file conftest.$ac_objext` in
15798 *32-bit*)
15799 LD="${LD-ld} -melf32bsmip"
15801 *N32*)
15802 LD="${LD-ld} -melf32bmipn32"
15804 *64-bit*)
15805 LD="${LD-ld} -melf64bmip"
15807 esac
15808 else
15809 case `/usr/bin/file conftest.$ac_objext` in
15810 *32-bit*)
15811 LD="${LD-ld} -32"
15813 *N32*)
15814 LD="${LD-ld} -n32"
15816 *64-bit*)
15817 LD="${LD-ld} -64"
15819 esac
15822 rm -rf conftest*
15825 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15826 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15827 # Find out which ABI we are using.
15828 echo 'int i;' > conftest.$ac_ext
15829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15830 (eval $ac_compile) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; then
15834 case `/usr/bin/file conftest.o` in
15835 *32-bit*)
15836 case $host in
15837 x86_64-*kfreebsd*-gnu)
15838 LD="${LD-ld} -m elf_i386_fbsd"
15840 x86_64-*linux*)
15841 LD="${LD-ld} -m elf_i386"
15843 ppc64-*linux*|powerpc64-*linux*)
15844 LD="${LD-ld} -m elf32ppclinux"
15846 s390x-*linux*)
15847 LD="${LD-ld} -m elf_s390"
15849 sparc64-*linux*)
15850 LD="${LD-ld} -m elf32_sparc"
15852 esac
15854 *64-bit*)
15855 case $host in
15856 x86_64-*kfreebsd*-gnu)
15857 LD="${LD-ld} -m elf_x86_64_fbsd"
15859 x86_64-*linux*)
15860 LD="${LD-ld} -m elf_x86_64"
15862 ppc*-*linux*|powerpc*-*linux*)
15863 LD="${LD-ld} -m elf64ppc"
15865 s390*-*linux*|s390*-*tpf*)
15866 LD="${LD-ld} -m elf64_s390"
15868 sparc*-*linux*)
15869 LD="${LD-ld} -m elf64_sparc"
15871 esac
15873 esac
15875 rm -rf conftest*
15878 *-*-sco3.2v5*)
15879 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15880 SAVE_CFLAGS="$CFLAGS"
15881 CFLAGS="$CFLAGS -belf"
15882 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15883 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15884 if test "${lt_cv_cc_needs_belf+set}" = set; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 else
15887 ac_ext=c
15888 ac_cpp='$CPP $CPPFLAGS'
15889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15893 cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h. */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15901 main ()
15905 return 0;
15907 _ACEOF
15908 rm -f conftest.$ac_objext conftest$ac_exeext
15909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15910 (eval $ac_link) 2>conftest.er1
15911 ac_status=$?
15912 grep -v '^ *+' conftest.er1 >conftest.err
15913 rm -f conftest.er1
15914 cat conftest.err >&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); } &&
15917 { ac_try='test -z "$ac_c_werror_flag"
15918 || test ! -s conftest.err'
15919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920 (eval $ac_try) 2>&5
15921 ac_status=$?
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; } &&
15924 { ac_try='test -s conftest$ac_exeext'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }; then
15930 lt_cv_cc_needs_belf=yes
15931 else
15932 echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15935 lt_cv_cc_needs_belf=no
15937 rm -f conftest.err conftest.$ac_objext \
15938 conftest$ac_exeext conftest.$ac_ext
15939 ac_ext=c
15940 ac_cpp='$CPP $CPPFLAGS'
15941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15946 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15947 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15948 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15949 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15950 CFLAGS="$SAVE_CFLAGS"
15953 sparc*-*solaris*)
15954 # Find out which ABI we are using.
15955 echo 'int i;' > conftest.$ac_ext
15956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15957 (eval $ac_compile) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; then
15961 case `/usr/bin/file conftest.o` in
15962 *64-bit*)
15963 case $lt_cv_prog_gnu_ld in
15964 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15965 *) LD="${LD-ld} -64" ;;
15966 esac
15968 esac
15970 rm -rf conftest*
15972 esac
15974 need_locks="$enable_libtool_lock"
15977 for ac_header in dlfcn.h
15979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15980 echo "$as_me:$LINENO: checking for $ac_header" >&5
15981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15983 echo $ECHO_N "(cached) $ECHO_C" >&6
15984 else
15985 cat >conftest.$ac_ext <<_ACEOF
15986 /* confdefs.h. */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15991 #include <$ac_header>
15992 _ACEOF
15993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15995 ac_status=$?
15996 grep -v '^ *+' conftest.er1 >conftest.err
15997 rm -f conftest.er1
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } >/dev/null; then
16001 if test -s conftest.err; then
16002 ac_cpp_err=$ac_c_preproc_warn_flag
16003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16004 else
16005 ac_cpp_err=
16007 else
16008 ac_cpp_err=yes
16010 if test -z "$ac_cpp_err"; then
16011 eval "$as_ac_Header=yes"
16012 else
16013 echo "$as_me: failed program was:" >&5
16014 sed 's/^/| /' conftest.$ac_ext >&5
16016 eval "$as_ac_Header=no"
16018 rm -f conftest.err conftest.$ac_ext
16020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16023 cat >>confdefs.h <<_ACEOF
16024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16025 _ACEOF
16028 done
16032 # This can be used to rebuild libtool when needed
16033 LIBTOOL_DEPS="$ltmain"
16035 # Always use our own libtool.
16036 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16062 test -z "$LN_S" && LN_S="ln -s"
16077 if test -n "${ZSH_VERSION+set}" ; then
16078 setopt NO_GLOB_SUBST
16081 echo "$as_me:$LINENO: checking for objdir" >&5
16082 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16083 if test "${lt_cv_objdir+set}" = set; then
16084 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 else
16086 rm -f .libs 2>/dev/null
16087 mkdir .libs 2>/dev/null
16088 if test -d .libs; then
16089 lt_cv_objdir=.libs
16090 else
16091 # MS-DOS does not allow filenames that begin with a dot.
16092 lt_cv_objdir=_libs
16094 rmdir .libs 2>/dev/null
16096 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16097 echo "${ECHO_T}$lt_cv_objdir" >&6
16098 objdir=$lt_cv_objdir
16104 cat >>confdefs.h <<_ACEOF
16105 #define LT_OBJDIR "$lt_cv_objdir/"
16106 _ACEOF
16124 case $host_os in
16125 aix3*)
16126 # AIX sometimes has problems with the GCC collect2 program. For some
16127 # reason, if we set the COLLECT_NAMES environment variable, the problems
16128 # vanish in a puff of smoke.
16129 if test "X${COLLECT_NAMES+set}" != Xset; then
16130 COLLECT_NAMES=
16131 export COLLECT_NAMES
16134 esac
16136 # Sed substitution that helps us do robust quoting. It backslashifies
16137 # metacharacters that are still active within double-quoted strings.
16138 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16140 # Same as above, but do not quote variable references.
16141 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16143 # Sed substitution to delay expansion of an escaped shell variable in a
16144 # double_quote_subst'ed string.
16145 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16147 # Sed substitution to delay expansion of an escaped single quote.
16148 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16150 # Sed substitution to avoid accidental globbing in evaled expressions
16151 no_glob_subst='s/\*/\\\*/g'
16153 # Global variables:
16154 ofile=libtool
16155 can_build_shared=yes
16157 # All known linkers require a `.a' archive for static linking (except MSVC,
16158 # which needs '.lib').
16159 libext=a
16161 with_gnu_ld="$lt_cv_prog_gnu_ld"
16163 old_CC="$CC"
16164 old_CFLAGS="$CFLAGS"
16166 # Set sane defaults for various variables
16167 test -z "$CC" && CC=cc
16168 test -z "$LTCC" && LTCC=$CC
16169 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16170 test -z "$LD" && LD=ld
16171 test -z "$ac_objext" && ac_objext=o
16173 for cc_temp in $compiler""; do
16174 case $cc_temp in
16175 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16176 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16177 \-*) ;;
16178 *) break;;
16179 esac
16180 done
16181 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16184 # Only perform the check for file, if the check method requires it
16185 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16186 case $deplibs_check_method in
16187 file_magic*)
16188 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16189 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16190 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16191 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 else
16194 case $MAGIC_CMD in
16195 [\\/*] | ?:[\\/]*)
16196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16199 lt_save_MAGIC_CMD="$MAGIC_CMD"
16200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16201 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16202 for ac_dir in $ac_dummy; do
16203 IFS="$lt_save_ifs"
16204 test -z "$ac_dir" && ac_dir=.
16205 if test -f $ac_dir/${ac_tool_prefix}file; then
16206 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16207 if test -n "$file_magic_test_file"; then
16208 case $deplibs_check_method in
16209 "file_magic "*)
16210 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16213 $EGREP "$file_magic_regex" > /dev/null; then
16215 else
16216 cat <<_LT_EOF 1>&2
16218 *** Warning: the command libtool uses to detect shared libraries,
16219 *** $file_magic_cmd, produces output that libtool cannot recognize.
16220 *** The result is that libtool may fail to recognize shared libraries
16221 *** as such. This will affect the creation of libtool libraries that
16222 *** depend on shared libraries, but programs linked with such libtool
16223 *** libraries will work regardless of this problem. Nevertheless, you
16224 *** may want to report the problem to your system manager and/or to
16225 *** bug-libtool@gnu.org
16227 _LT_EOF
16228 fi ;;
16229 esac
16231 break
16233 done
16234 IFS="$lt_save_ifs"
16235 MAGIC_CMD="$lt_save_MAGIC_CMD"
16237 esac
16240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16241 if test -n "$MAGIC_CMD"; then
16242 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16243 echo "${ECHO_T}$MAGIC_CMD" >&6
16244 else
16245 echo "$as_me:$LINENO: result: no" >&5
16246 echo "${ECHO_T}no" >&6
16253 if test -z "$lt_cv_path_MAGIC_CMD"; then
16254 if test -n "$ac_tool_prefix"; then
16255 echo "$as_me:$LINENO: checking for file" >&5
16256 echo $ECHO_N "checking for file... $ECHO_C" >&6
16257 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16258 echo $ECHO_N "(cached) $ECHO_C" >&6
16259 else
16260 case $MAGIC_CMD in
16261 [\\/*] | ?:[\\/]*)
16262 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16265 lt_save_MAGIC_CMD="$MAGIC_CMD"
16266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16267 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16268 for ac_dir in $ac_dummy; do
16269 IFS="$lt_save_ifs"
16270 test -z "$ac_dir" && ac_dir=.
16271 if test -f $ac_dir/file; then
16272 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16273 if test -n "$file_magic_test_file"; then
16274 case $deplibs_check_method in
16275 "file_magic "*)
16276 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16278 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16279 $EGREP "$file_magic_regex" > /dev/null; then
16281 else
16282 cat <<_LT_EOF 1>&2
16284 *** Warning: the command libtool uses to detect shared libraries,
16285 *** $file_magic_cmd, produces output that libtool cannot recognize.
16286 *** The result is that libtool may fail to recognize shared libraries
16287 *** as such. This will affect the creation of libtool libraries that
16288 *** depend on shared libraries, but programs linked with such libtool
16289 *** libraries will work regardless of this problem. Nevertheless, you
16290 *** may want to report the problem to your system manager and/or to
16291 *** bug-libtool@gnu.org
16293 _LT_EOF
16294 fi ;;
16295 esac
16297 break
16299 done
16300 IFS="$lt_save_ifs"
16301 MAGIC_CMD="$lt_save_MAGIC_CMD"
16303 esac
16306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16307 if test -n "$MAGIC_CMD"; then
16308 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16309 echo "${ECHO_T}$MAGIC_CMD" >&6
16310 else
16311 echo "$as_me:$LINENO: result: no" >&5
16312 echo "${ECHO_T}no" >&6
16316 else
16317 MAGIC_CMD=:
16323 esac
16325 # Use C for the default configuration in the libtool script
16327 lt_save_CC="$CC"
16328 ac_ext=c
16329 ac_cpp='$CPP $CPPFLAGS'
16330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16335 # Source file extension for C test sources.
16336 ac_ext=c
16338 # Object file extension for compiled C test sources.
16339 objext=o
16340 objext=$objext
16342 # Code to be used in simple compile tests
16343 lt_simple_compile_test_code="int some_variable = 0;"
16345 # Code to be used in simple link tests
16346 lt_simple_link_test_code='int main(){return(0);}'
16354 # If no C compiler was specified, use CC.
16355 LTCC=${LTCC-"$CC"}
16357 # If no C compiler flags were specified, use CFLAGS.
16358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16360 # Allow CC to be a program name with arguments.
16361 compiler=$CC
16363 # Save the default compiler, since it gets overwritten when the other
16364 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16365 compiler_DEFAULT=$CC
16367 # save warnings/boilerplate of simple test code
16368 ac_outfile=conftest.$ac_objext
16369 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16370 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16371 _lt_compiler_boilerplate=`cat conftest.err`
16372 $RM conftest*
16374 ac_outfile=conftest.$ac_objext
16375 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16376 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16377 _lt_linker_boilerplate=`cat conftest.err`
16378 $RM conftest*
16381 ## CAVEAT EMPTOR:
16382 ## There is no encapsulation within the following macros, do not change
16383 ## the running order or otherwise move them around unless you know exactly
16384 ## what you are doing...
16385 if test -n "$compiler"; then
16387 lt_prog_compiler_no_builtin_flag=
16389 if test "$GCC" = yes; then
16390 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16392 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16393 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16394 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16395 echo $ECHO_N "(cached) $ECHO_C" >&6
16396 else
16397 lt_cv_prog_compiler_rtti_exceptions=no
16398 ac_outfile=conftest.$ac_objext
16399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16400 lt_compiler_flag="-fno-rtti -fno-exceptions"
16401 # Insert the option either (1) after the last *FLAGS variable, or
16402 # (2) before a word containing "conftest.", or (3) at the end.
16403 # Note that $ac_compile itself does not contain backslashes and begins
16404 # with a dollar sign (not a hyphen), so the echo should work correctly.
16405 # The option is referenced via a variable to avoid confusing sed.
16406 lt_compile=`echo "$ac_compile" | $SED \
16407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16409 -e 's:$: $lt_compiler_flag:'`
16410 (eval echo "\"\$as_me:16410: $lt_compile\"" >&5)
16411 (eval "$lt_compile" 2>conftest.err)
16412 ac_status=$?
16413 cat conftest.err >&5
16414 echo "$as_me:16414: \$? = $ac_status" >&5
16415 if (exit $ac_status) && test -s "$ac_outfile"; then
16416 # The compiler can only warn and ignore the option if not recognized
16417 # So say no if there are warnings other than the usual output.
16418 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16420 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16421 lt_cv_prog_compiler_rtti_exceptions=yes
16424 $RM conftest*
16427 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16428 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16430 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16431 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16432 else
16443 lt_prog_compiler_wl=
16444 lt_prog_compiler_pic=
16445 lt_prog_compiler_static=
16447 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16448 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16450 if test "$GCC" = yes; then
16451 lt_prog_compiler_wl='-Wl,'
16452 lt_prog_compiler_static='-static'
16454 case $host_os in
16455 aix*)
16456 # All AIX code is PIC.
16457 if test "$host_cpu" = ia64; then
16458 # AIX 5 now supports IA64 processor
16459 lt_prog_compiler_static='-Bstatic'
16463 amigaos*)
16464 if test "$host_cpu" = m68k; then
16465 # FIXME: we need at least 68020 code to build shared libraries, but
16466 # adding the `-m68020' flag to GCC prevents building anything better,
16467 # like `-m68040'.
16468 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16472 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16473 # PIC is the default for these OSes.
16476 mingw* | cygwin* | pw32* | os2*)
16477 # This hack is so that the source file can tell whether it is being
16478 # built for inclusion in a dll (and should export symbols for example).
16479 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16480 # (--disable-auto-import) libraries
16481 lt_prog_compiler_pic='-DDLL_EXPORT'
16484 darwin* | rhapsody*)
16485 # PIC is the default on this platform
16486 # Common symbols not allowed in MH_DYLIB files
16487 lt_prog_compiler_pic='-fno-common'
16490 hpux*)
16491 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16492 # not for PA HP-UX.
16493 case $host_cpu in
16494 hppa*64*|ia64*)
16495 # +Z the default
16498 lt_prog_compiler_pic='-fPIC'
16500 esac
16503 interix[3-9]*)
16504 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16505 # Instead, we relocate shared libraries at runtime.
16508 msdosdjgpp*)
16509 # Just because we use GCC doesn't mean we suddenly get shared libraries
16510 # on systems that don't support them.
16511 lt_prog_compiler_can_build_shared=no
16512 enable_shared=no
16515 *nto* | *qnx*)
16516 # QNX uses GNU C++, but need to define -shared option too, otherwise
16517 # it will coredump.
16518 lt_prog_compiler_pic='-fPIC -shared'
16521 sysv4*MP*)
16522 if test -d /usr/nec; then
16523 lt_prog_compiler_pic=-Kconform_pic
16528 lt_prog_compiler_pic='-fPIC'
16530 esac
16531 else
16532 # PORTME Check for flag to pass linker flags through the system compiler.
16533 case $host_os in
16534 aix*)
16535 lt_prog_compiler_wl='-Wl,'
16536 if test "$host_cpu" = ia64; then
16537 # AIX 5 now supports IA64 processor
16538 lt_prog_compiler_static='-Bstatic'
16539 else
16540 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16543 darwin*)
16544 # PIC is the default on this platform
16545 # Common symbols not allowed in MH_DYLIB files
16546 case $cc_basename in
16547 xlc*)
16548 lt_prog_compiler_pic='-qnocommon'
16549 lt_prog_compiler_wl='-Wl,'
16551 esac
16554 mingw* | cygwin* | pw32* | os2*)
16555 # This hack is so that the source file can tell whether it is being
16556 # built for inclusion in a dll (and should export symbols for example).
16557 lt_prog_compiler_pic='-DDLL_EXPORT'
16560 hpux9* | hpux10* | hpux11*)
16561 lt_prog_compiler_wl='-Wl,'
16562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16563 # not for PA HP-UX.
16564 case $host_cpu in
16565 hppa*64*|ia64*)
16566 # +Z the default
16569 lt_prog_compiler_pic='+Z'
16571 esac
16572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16573 lt_prog_compiler_static='${wl}-a ${wl}archive'
16576 irix5* | irix6* | nonstopux*)
16577 lt_prog_compiler_wl='-Wl,'
16578 # PIC (with -KPIC) is the default.
16579 lt_prog_compiler_static='-non_shared'
16582 linux* | k*bsd*-gnu)
16583 case $cc_basename in
16584 icc* | ecc*)
16585 lt_prog_compiler_wl='-Wl,'
16586 lt_prog_compiler_pic='-KPIC'
16587 lt_prog_compiler_static='-static'
16589 pgcc* | pgf77* | pgf90* | pgf95*)
16590 # Portland Group compilers (*not* the Pentium gcc compiler,
16591 # which looks to be a dead project)
16592 lt_prog_compiler_wl='-Wl,'
16593 lt_prog_compiler_pic='-fpic'
16594 lt_prog_compiler_static='-Bstatic'
16596 ccc*)
16597 lt_prog_compiler_wl='-Wl,'
16598 # All Alpha code is PIC.
16599 lt_prog_compiler_static='-non_shared'
16602 case `$CC -V 2>&1 | sed 5q` in
16603 *Sun\ C*)
16604 # Sun C 5.9
16605 lt_prog_compiler_pic='-KPIC'
16606 lt_prog_compiler_static='-Bstatic'
16607 lt_prog_compiler_wl='-Wl,'
16609 *Sun\ F*)
16610 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16611 lt_prog_compiler_pic='-KPIC'
16612 lt_prog_compiler_static='-Bstatic'
16613 lt_prog_compiler_wl=''
16615 esac
16617 esac
16620 newsos6)
16621 lt_prog_compiler_pic='-KPIC'
16622 lt_prog_compiler_static='-Bstatic'
16625 *nto* | *qnx*)
16626 # QNX uses GNU C++, but need to define -shared option too, otherwise
16627 # it will coredump.
16628 lt_prog_compiler_pic='-fPIC -shared'
16631 osf3* | osf4* | osf5*)
16632 lt_prog_compiler_wl='-Wl,'
16633 # All OSF/1 code is PIC.
16634 lt_prog_compiler_static='-non_shared'
16637 rdos*)
16638 lt_prog_compiler_static='-non_shared'
16641 solaris*)
16642 lt_prog_compiler_pic='-KPIC'
16643 lt_prog_compiler_static='-Bstatic'
16644 case $cc_basename in
16645 f77* | f90* | f95*)
16646 lt_prog_compiler_wl='-Qoption ld ';;
16648 lt_prog_compiler_wl='-Wl,';;
16649 esac
16652 sunos4*)
16653 lt_prog_compiler_wl='-Qoption ld '
16654 lt_prog_compiler_pic='-PIC'
16655 lt_prog_compiler_static='-Bstatic'
16658 sysv4 | sysv4.2uw2* | sysv4.3*)
16659 lt_prog_compiler_wl='-Wl,'
16660 lt_prog_compiler_pic='-KPIC'
16661 lt_prog_compiler_static='-Bstatic'
16664 sysv4*MP*)
16665 if test -d /usr/nec ;then
16666 lt_prog_compiler_pic='-Kconform_pic'
16667 lt_prog_compiler_static='-Bstatic'
16671 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16672 lt_prog_compiler_wl='-Wl,'
16673 lt_prog_compiler_pic='-KPIC'
16674 lt_prog_compiler_static='-Bstatic'
16677 unicos*)
16678 lt_prog_compiler_wl='-Wl,'
16679 lt_prog_compiler_can_build_shared=no
16682 uts4*)
16683 lt_prog_compiler_pic='-pic'
16684 lt_prog_compiler_static='-Bstatic'
16688 lt_prog_compiler_can_build_shared=no
16690 esac
16693 case $host_os in
16694 # For platforms which do not support PIC, -DPIC is meaningless:
16695 *djgpp*)
16696 lt_prog_compiler_pic=
16699 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16701 esac
16702 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16703 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16711 # Check to make sure the PIC flag actually works.
16713 if test -n "$lt_prog_compiler_pic"; then
16714 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16715 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16716 if test "${lt_prog_compiler_pic_works+set}" = set; then
16717 echo $ECHO_N "(cached) $ECHO_C" >&6
16718 else
16719 lt_prog_compiler_pic_works=no
16720 ac_outfile=conftest.$ac_objext
16721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16722 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16723 # Insert the option either (1) after the last *FLAGS variable, or
16724 # (2) before a word containing "conftest.", or (3) at the end.
16725 # Note that $ac_compile itself does not contain backslashes and begins
16726 # with a dollar sign (not a hyphen), so the echo should work correctly.
16727 # The option is referenced via a variable to avoid confusing sed.
16728 lt_compile=`echo "$ac_compile" | $SED \
16729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16731 -e 's:$: $lt_compiler_flag:'`
16732 (eval echo "\"\$as_me:16732: $lt_compile\"" >&5)
16733 (eval "$lt_compile" 2>conftest.err)
16734 ac_status=$?
16735 cat conftest.err >&5
16736 echo "$as_me:16736: \$? = $ac_status" >&5
16737 if (exit $ac_status) && test -s "$ac_outfile"; then
16738 # The compiler can only warn and ignore the option if not recognized
16739 # So say no if there are warnings other than the usual output.
16740 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16742 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16743 lt_prog_compiler_pic_works=yes
16746 $RM conftest*
16749 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16750 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16752 if test x"$lt_prog_compiler_pic_works" = xyes; then
16753 case $lt_prog_compiler_pic in
16754 "" | " "*) ;;
16755 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16756 esac
16757 else
16758 lt_prog_compiler_pic=
16759 lt_prog_compiler_can_build_shared=no
16770 # Check to make sure the static flag actually works.
16772 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16773 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16774 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16775 if test "${lt_prog_compiler_static_works+set}" = set; then
16776 echo $ECHO_N "(cached) $ECHO_C" >&6
16777 else
16778 lt_prog_compiler_static_works=no
16779 save_LDFLAGS="$LDFLAGS"
16780 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16781 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16783 # The linker can only warn and ignore the option if not recognized
16784 # So say no if there are warnings
16785 if test -s conftest.err; then
16786 # Append any errors to the config.log.
16787 cat conftest.err 1>&5
16788 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16790 if diff conftest.exp conftest.er2 >/dev/null; then
16791 lt_prog_compiler_static_works=yes
16793 else
16794 lt_prog_compiler_static_works=yes
16797 $RM conftest*
16798 LDFLAGS="$save_LDFLAGS"
16801 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16802 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16804 if test x"$lt_prog_compiler_static_works" = xyes; then
16806 else
16807 lt_prog_compiler_static=
16816 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16817 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16818 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 else
16821 lt_cv_prog_compiler_c_o=no
16822 $RM -r conftest 2>/dev/null
16823 mkdir conftest
16824 cd conftest
16825 mkdir out
16826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16828 lt_compiler_flag="-o out/conftest2.$ac_objext"
16829 # Insert the option either (1) after the last *FLAGS variable, or
16830 # (2) before a word containing "conftest.", or (3) at the end.
16831 # Note that $ac_compile itself does not contain backslashes and begins
16832 # with a dollar sign (not a hyphen), so the echo should work correctly.
16833 lt_compile=`echo "$ac_compile" | $SED \
16834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16836 -e 's:$: $lt_compiler_flag:'`
16837 (eval echo "\"\$as_me:16837: $lt_compile\"" >&5)
16838 (eval "$lt_compile" 2>out/conftest.err)
16839 ac_status=$?
16840 cat out/conftest.err >&5
16841 echo "$as_me:16841: \$? = $ac_status" >&5
16842 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16843 then
16844 # The compiler can only warn and ignore the option if not recognized
16845 # So say no if there are warnings
16846 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16847 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16848 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16849 lt_cv_prog_compiler_c_o=yes
16852 chmod u+w . 2>&5
16853 $RM conftest*
16854 # SGI C++ compiler will create directory out/ii_files/ for
16855 # template instantiation
16856 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16857 $RM out/* && rmdir out
16858 cd ..
16859 $RM -r conftest
16860 $RM conftest*
16863 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16864 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16871 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16872 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16873 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 else
16876 lt_cv_prog_compiler_c_o=no
16877 $RM -r conftest 2>/dev/null
16878 mkdir conftest
16879 cd conftest
16880 mkdir out
16881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16883 lt_compiler_flag="-o out/conftest2.$ac_objext"
16884 # Insert the option either (1) after the last *FLAGS variable, or
16885 # (2) before a word containing "conftest.", or (3) at the end.
16886 # Note that $ac_compile itself does not contain backslashes and begins
16887 # with a dollar sign (not a hyphen), so the echo should work correctly.
16888 lt_compile=`echo "$ac_compile" | $SED \
16889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16891 -e 's:$: $lt_compiler_flag:'`
16892 (eval echo "\"\$as_me:16892: $lt_compile\"" >&5)
16893 (eval "$lt_compile" 2>out/conftest.err)
16894 ac_status=$?
16895 cat out/conftest.err >&5
16896 echo "$as_me:16896: \$? = $ac_status" >&5
16897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16898 then
16899 # The compiler can only warn and ignore the option if not recognized
16900 # So say no if there are warnings
16901 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16904 lt_cv_prog_compiler_c_o=yes
16907 chmod u+w . 2>&5
16908 $RM conftest*
16909 # SGI C++ compiler will create directory out/ii_files/ for
16910 # template instantiation
16911 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16912 $RM out/* && rmdir out
16913 cd ..
16914 $RM -r conftest
16915 $RM conftest*
16918 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16919 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16924 hard_links="nottested"
16925 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16926 # do not overwrite the value of need_locks provided by the user
16927 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16928 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16929 hard_links=yes
16930 $RM conftest*
16931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16932 touch conftest.a
16933 ln conftest.a conftest.b 2>&5 || hard_links=no
16934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16935 echo "$as_me:$LINENO: result: $hard_links" >&5
16936 echo "${ECHO_T}$hard_links" >&6
16937 if test "$hard_links" = no; then
16938 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16939 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16940 need_locks=warn
16942 else
16943 need_locks=no
16951 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16952 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16954 runpath_var=
16955 allow_undefined_flag=
16956 always_export_symbols=no
16957 archive_cmds=
16958 archive_expsym_cmds=
16959 compiler_needs_object=no
16960 enable_shared_with_static_runtimes=no
16961 export_dynamic_flag_spec=
16962 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16963 hardcode_automatic=no
16964 hardcode_direct=no
16965 hardcode_direct_absolute=no
16966 hardcode_libdir_flag_spec=
16967 hardcode_libdir_flag_spec_ld=
16968 hardcode_libdir_separator=
16969 hardcode_minus_L=no
16970 hardcode_shlibpath_var=unsupported
16971 inherit_rpath=no
16972 link_all_deplibs=unknown
16973 module_cmds=
16974 module_expsym_cmds=
16975 old_archive_from_new_cmds=
16976 old_archive_from_expsyms_cmds=
16977 thread_safe_flag_spec=
16978 whole_archive_flag_spec=
16979 # include_expsyms should be a list of space-separated symbols to be *always*
16980 # included in the symbol list
16981 include_expsyms=
16982 # exclude_expsyms can be an extended regexp of symbols to exclude
16983 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16984 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16985 # as well as any symbol that contains `d'.
16986 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16987 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16988 # platforms (ab)use it in PIC code, but their linkers get confused if
16989 # the symbol is explicitly referenced. Since portable code cannot
16990 # rely on this symbol name, it's probably fine to never include it in
16991 # preloaded symbol tables.
16992 extract_expsyms_cmds=
16994 case $host_os in
16995 cygwin* | mingw* | pw32*)
16996 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16997 # When not using gcc, we currently assume that we are using
16998 # Microsoft Visual C++.
16999 if test "$GCC" != yes; then
17000 with_gnu_ld=no
17003 interix*)
17004 # we just hope/assume this is gcc and not c89 (= MSVC++)
17005 with_gnu_ld=yes
17007 openbsd*)
17008 with_gnu_ld=no
17010 esac
17012 ld_shlibs=yes
17013 if test "$with_gnu_ld" = yes; then
17014 # If archive_cmds runs LD, not CC, wlarc should be empty
17015 wlarc='${wl}'
17017 # Set some defaults for GNU ld with shared library support. These
17018 # are reset later if shared libraries are not supported. Putting them
17019 # here allows them to be overridden if necessary.
17020 runpath_var=LD_RUN_PATH
17021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17022 export_dynamic_flag_spec='${wl}--export-dynamic'
17023 # ancient GNU ld didn't support --whole-archive et. al.
17024 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17025 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17026 else
17027 whole_archive_flag_spec=
17029 supports_anon_versioning=no
17030 case `$LD -v 2>&1` in
17031 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17032 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17033 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17034 *\ 2.11.*) ;; # other 2.11 versions
17035 *) supports_anon_versioning=yes ;;
17036 esac
17038 # See if GNU ld supports shared libraries.
17039 case $host_os in
17040 aix[3-9]*)
17041 # On AIX/PPC, the GNU linker is very broken
17042 if test "$host_cpu" != ia64; then
17043 ld_shlibs=no
17044 cat <<_LT_EOF 1>&2
17046 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17047 *** to be unable to reliably create shared libraries on AIX.
17048 *** Therefore, libtool is disabling shared libraries support. If you
17049 *** really care for shared libraries, you may want to modify your PATH
17050 *** so that a non-GNU linker is found, and then restart.
17052 _LT_EOF
17056 amigaos*)
17057 if test "$host_cpu" = m68k; then
17058 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)'
17059 hardcode_libdir_flag_spec='-L$libdir'
17060 hardcode_minus_L=yes
17063 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17064 # that the semantics of dynamic libraries on AmigaOS, at least up
17065 # to version 4, is to share data among multiple programs linked
17066 # with the same dynamic library. Since this doesn't match the
17067 # behavior of shared libraries on other platforms, we can't use
17068 # them.
17069 ld_shlibs=no
17072 beos*)
17073 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17074 allow_undefined_flag=unsupported
17075 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17076 # support --undefined. This deserves some investigation. FIXME
17077 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17078 else
17079 ld_shlibs=no
17083 cygwin* | mingw* | pw32*)
17084 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17085 # as there is no search path for DLLs.
17086 hardcode_libdir_flag_spec='-L$libdir'
17087 allow_undefined_flag=unsupported
17088 always_export_symbols=no
17089 enable_shared_with_static_runtimes=yes
17090 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17092 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17094 # If the export-symbols file already is a .def file (1st line
17095 # is EXPORTS), use it as is; otherwise, prepend...
17096 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17097 cp $export_symbols $output_objdir/$soname.def;
17098 else
17099 echo EXPORTS > $output_objdir/$soname.def;
17100 cat $export_symbols >> $output_objdir/$soname.def;
17102 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17103 else
17104 ld_shlibs=no
17108 interix[3-9]*)
17109 hardcode_direct=no
17110 hardcode_shlibpath_var=no
17111 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17112 export_dynamic_flag_spec='${wl}-E'
17113 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17114 # Instead, shared libraries are loaded at an image base (0x10000000 by
17115 # default) and relocated if they conflict, which is a slow very memory
17116 # consuming and fragmenting process. To avoid this, we pick a random,
17117 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17118 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17119 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17120 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'
17123 gnu* | linux* | tpf* | k*bsd*-gnu)
17124 tmp_diet=no
17125 if test "$host_os" = linux-dietlibc; then
17126 case $cc_basename in
17127 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17128 esac
17130 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17131 && test "$tmp_diet" = no
17132 then
17133 tmp_addflag=
17134 case $cc_basename,$host_cpu in
17135 pgcc*) # Portland Group C compiler
17136 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'
17137 tmp_addflag=' $pic_flag'
17139 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17140 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'
17141 tmp_addflag=' $pic_flag -Mnomain' ;;
17142 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17143 tmp_addflag=' -i_dynamic' ;;
17144 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17145 tmp_addflag=' -i_dynamic -nofor_main' ;;
17146 ifc* | ifort*) # Intel Fortran compiler
17147 tmp_addflag=' -nofor_main' ;;
17148 esac
17149 case `$CC -V 2>&1 | sed 5q` in
17150 *Sun\ C*) # Sun C 5.9
17151 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'
17152 compiler_needs_object=yes
17153 tmp_sharedflag='-G' ;;
17154 *Sun\ F*) # Sun Fortran 8.3
17155 tmp_sharedflag='-G' ;;
17157 tmp_sharedflag='-shared' ;;
17158 esac
17159 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17161 if test "x$supports_anon_versioning" = xyes; then
17162 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17163 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17164 echo "local: *; };" >> $output_objdir/$libname.ver~
17165 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17167 else
17168 ld_shlibs=no
17172 netbsd*)
17173 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17174 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17175 wlarc=
17176 else
17177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17182 solaris*)
17183 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17184 ld_shlibs=no
17185 cat <<_LT_EOF 1>&2
17187 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17188 *** create shared libraries on Solaris systems. Therefore, libtool
17189 *** is disabling shared libraries support. We urge you to upgrade GNU
17190 *** binutils to release 2.9.1 or newer. Another option is to modify
17191 *** your PATH or compiler configuration so that the native linker is
17192 *** used, and then restart.
17194 _LT_EOF
17195 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17198 else
17199 ld_shlibs=no
17203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17204 case `$LD -v 2>&1` in
17205 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17206 ld_shlibs=no
17207 cat <<_LT_EOF 1>&2
17209 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17210 *** reliably create shared libraries on SCO systems. Therefore, libtool
17211 *** is disabling shared libraries support. We urge you to upgrade GNU
17212 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17213 *** your PATH or compiler configuration so that the native linker is
17214 *** used, and then restart.
17216 _LT_EOF
17219 # For security reasons, it is highly recommended that you always
17220 # use absolute paths for naming shared libraries, and exclude the
17221 # DT_RUNPATH tag from executables and libraries. But doing so
17222 # requires that you compile everything twice, which is a pain.
17223 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17226 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17227 else
17228 ld_shlibs=no
17231 esac
17234 sunos4*)
17235 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17236 wlarc=
17237 hardcode_direct=yes
17238 hardcode_shlibpath_var=no
17242 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17245 else
17246 ld_shlibs=no
17249 esac
17251 if test "$ld_shlibs" = no; then
17252 runpath_var=
17253 hardcode_libdir_flag_spec=
17254 export_dynamic_flag_spec=
17255 whole_archive_flag_spec=
17257 else
17258 # PORTME fill in a description of your system's linker (not GNU ld)
17259 case $host_os in
17260 aix3*)
17261 allow_undefined_flag=unsupported
17262 always_export_symbols=yes
17263 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'
17264 # Note: this linker hardcodes the directories in LIBPATH if there
17265 # are no directories specified by -L.
17266 hardcode_minus_L=yes
17267 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17268 # Neither direct hardcoding nor static linking is supported with a
17269 # broken collect2.
17270 hardcode_direct=unsupported
17274 aix[4-9]*)
17275 if test "$host_cpu" = ia64; then
17276 # On IA64, the linker does run time linking by default, so we don't
17277 # have to do anything special.
17278 aix_use_runtimelinking=no
17279 exp_sym_flag='-Bexport'
17280 no_entry_flag=""
17281 else
17282 # If we're using GNU nm, then we don't want the "-C" option.
17283 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17284 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17285 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'
17286 else
17287 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'
17289 aix_use_runtimelinking=no
17291 # Test if we are trying to use run time linking or normal
17292 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17293 # need to do runtime linking.
17294 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17295 for ld_flag in $LDFLAGS; do
17296 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17297 aix_use_runtimelinking=yes
17298 break
17300 done
17302 esac
17304 exp_sym_flag='-bexport'
17305 no_entry_flag='-bnoentry'
17308 # When large executables or shared objects are built, AIX ld can
17309 # have problems creating the table of contents. If linking a library
17310 # or program results in "error TOC overflow" add -mminimal-toc to
17311 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17312 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17314 archive_cmds=''
17315 hardcode_direct=yes
17316 hardcode_direct_absolute=yes
17317 hardcode_libdir_separator=':'
17318 link_all_deplibs=yes
17319 file_list_spec='${wl}-f,'
17321 if test "$GCC" = yes; then
17322 case $host_os in aix4.[012]|aix4.[012].*)
17323 # We only want to do this on AIX 4.2 and lower, the check
17324 # below for broken collect2 doesn't work under 4.3+
17325 collect2name=`${CC} -print-prog-name=collect2`
17326 if test -f "$collect2name" &&
17327 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17328 then
17329 # We have reworked collect2
17331 else
17332 # We have old collect2
17333 hardcode_direct=unsupported
17334 # It fails to find uninstalled libraries when the uninstalled
17335 # path is not listed in the libpath. Setting hardcode_minus_L
17336 # to unsupported forces relinking
17337 hardcode_minus_L=yes
17338 hardcode_libdir_flag_spec='-L$libdir'
17339 hardcode_libdir_separator=
17342 esac
17343 shared_flag='-shared'
17344 if test "$aix_use_runtimelinking" = yes; then
17345 shared_flag="$shared_flag "'${wl}-G'
17347 else
17348 # not using gcc
17349 if test "$host_cpu" = ia64; then
17350 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17351 # chokes on -Wl,-G. The following line is correct:
17352 shared_flag='-G'
17353 else
17354 if test "$aix_use_runtimelinking" = yes; then
17355 shared_flag='${wl}-G'
17356 else
17357 shared_flag='${wl}-bM:SRE'
17362 # It seems that -bexpall does not export symbols beginning with
17363 # underscore (_), so it is better to generate a list of symbols to export.
17364 always_export_symbols=yes
17365 if test "$aix_use_runtimelinking" = yes; then
17366 # Warning - without using the other runtime loading flags (-brtl),
17367 # -berok will link without error, but may produce a broken library.
17368 allow_undefined_flag='-berok'
17369 # Determine the default libpath from the value encoded in an
17370 # empty executable.
17371 cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h. */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17379 main ()
17383 return 0;
17385 _ACEOF
17386 rm -f conftest.$ac_objext conftest$ac_exeext
17387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17388 (eval $ac_link) 2>conftest.er1
17389 ac_status=$?
17390 grep -v '^ *+' conftest.er1 >conftest.err
17391 rm -f conftest.er1
17392 cat conftest.err >&5
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); } &&
17395 { ac_try='test -z "$ac_c_werror_flag"
17396 || test ! -s conftest.err'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; } &&
17402 { ac_try='test -s conftest$ac_exeext'
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17405 ac_status=$?
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; }; then
17409 lt_aix_libpath_sed='
17410 /Import File Strings/,/^$/ {
17411 /^0/ {
17412 s/^0 *\(.*\)$/\1/
17416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17417 # Check for a 64-bit object if we didn't find anything.
17418 if test -z "$aix_libpath"; then
17419 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17421 else
17422 echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17426 rm -f conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
17428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17430 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17431 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"
17432 else
17433 if test "$host_cpu" = ia64; then
17434 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17435 allow_undefined_flag="-z nodefs"
17436 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"
17437 else
17438 # Determine the default libpath from the value encoded in an
17439 # empty executable.
17440 cat >conftest.$ac_ext <<_ACEOF
17441 /* confdefs.h. */
17442 _ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17448 main ()
17452 return 0;
17454 _ACEOF
17455 rm -f conftest.$ac_objext conftest$ac_exeext
17456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17457 (eval $ac_link) 2>conftest.er1
17458 ac_status=$?
17459 grep -v '^ *+' conftest.er1 >conftest.err
17460 rm -f conftest.er1
17461 cat conftest.err >&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } &&
17464 { ac_try='test -z "$ac_c_werror_flag"
17465 || test ! -s conftest.err'
17466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17467 (eval $ac_try) 2>&5
17468 ac_status=$?
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); }; } &&
17471 { ac_try='test -s conftest$ac_exeext'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; }; then
17478 lt_aix_libpath_sed='
17479 /Import File Strings/,/^$/ {
17480 /^0/ {
17481 s/^0 *\(.*\)$/\1/
17485 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17486 # Check for a 64-bit object if we didn't find anything.
17487 if test -z "$aix_libpath"; then
17488 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17490 else
17491 echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17495 rm -f conftest.err conftest.$ac_objext \
17496 conftest$ac_exeext conftest.$ac_ext
17497 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17499 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17500 # Warning - without using the other run time loading flags,
17501 # -berok will link without error, but may produce a broken library.
17502 no_undefined_flag=' ${wl}-bernotok'
17503 allow_undefined_flag=' ${wl}-berok'
17504 # Exported symbols can be pulled into shared objects from archives
17505 whole_archive_flag_spec='$convenience'
17506 archive_cmds_need_lc=yes
17507 # This is similar to how AIX traditionally builds its shared libraries.
17508 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'
17513 amigaos*)
17514 if test "$host_cpu" = m68k; then
17515 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)'
17516 hardcode_libdir_flag_spec='-L$libdir'
17517 hardcode_minus_L=yes
17519 # see comment about different semantics on the GNU ld section
17520 ld_shlibs=no
17523 bsdi[45]*)
17524 export_dynamic_flag_spec=-rdynamic
17527 cygwin* | mingw* | pw32*)
17528 # When not using gcc, we currently assume that we are using
17529 # Microsoft Visual C++.
17530 # hardcode_libdir_flag_spec is actually meaningless, as there is
17531 # no search path for DLLs.
17532 hardcode_libdir_flag_spec=' '
17533 allow_undefined_flag=unsupported
17534 # Tell ltmain to make .lib files, not .a files.
17535 libext=lib
17536 # Tell ltmain to make .dll files, not .so files.
17537 shrext_cmds=".dll"
17538 # FIXME: Setting linknames here is a bad hack.
17539 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17540 # The linker will automatically build a .lib file if we build a DLL.
17541 old_archive_from_new_cmds='true'
17542 # FIXME: Should let the user specify the lib program.
17543 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17544 fix_srcfile_path='`cygpath -w "$srcfile"`'
17545 enable_shared_with_static_runtimes=yes
17548 darwin* | rhapsody*)
17549 case $host_os in
17550 rhapsody* | darwin1.[012])
17551 allow_undefined_flag='${wl}-undefined ${wl}suppress'
17553 *) # Darwin 1.3 on
17554 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
17555 10.[012])
17556 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17558 10.*)
17559 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
17561 esac
17563 esac
17564 archive_cmds_need_lc=no
17565 hardcode_direct=no
17566 hardcode_automatic=yes
17567 hardcode_shlibpath_var=unsupported
17568 whole_archive_flag_spec=''
17569 link_all_deplibs=yes
17570 if test "$GCC" = yes ; then
17571 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 else
17574 lt_cv_apple_cc_single_mod=no
17575 if test -z "${LT_MULTI_MODULE}"; then
17576 # By default we will add the -single_module flag. You can override
17577 # by either setting the environment variable LT_MULTI_MODULE
17578 # non-empty at configure time, or by adding -multi-module to the
17579 # link flags.
17580 echo "int foo(void){return 1;}" > conftest.c
17581 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17582 -dynamiclib ${wl}-single_module conftest.c
17583 if test -f libconftest.dylib; then
17584 lt_cv_apple_cc_single_mod=yes
17585 rm libconftest.dylib
17587 rm conftest.$ac_ext
17591 output_verbose_link_cmd=echo
17592 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
17593 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17594 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}'
17595 else
17596 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17597 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}'
17599 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17600 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}'
17601 else
17602 case $cc_basename in
17603 xlc*)
17604 output_verbose_link_cmd=echo
17605 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
17606 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17607 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17608 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}'
17609 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}'
17612 ld_shlibs=no
17614 esac
17618 dgux*)
17619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17620 hardcode_libdir_flag_spec='-L$libdir'
17621 hardcode_shlibpath_var=no
17624 freebsd1*)
17625 ld_shlibs=no
17628 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17629 # support. Future versions do this automatically, but an explicit c++rt0.o
17630 # does not break anything, and helps significantly (at the cost of a little
17631 # extra space).
17632 freebsd2.2*)
17633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17634 hardcode_libdir_flag_spec='-R$libdir'
17635 hardcode_direct=yes
17636 hardcode_shlibpath_var=no
17639 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17640 freebsd2*)
17641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17642 hardcode_direct=yes
17643 hardcode_minus_L=yes
17644 hardcode_shlibpath_var=no
17647 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17648 freebsd* | dragonfly*)
17649 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17650 hardcode_libdir_flag_spec='-R$libdir'
17651 hardcode_direct=yes
17652 hardcode_shlibpath_var=no
17655 hpux9*)
17656 if test "$GCC" = yes; then
17657 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'
17658 else
17659 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'
17661 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17662 hardcode_libdir_separator=:
17663 hardcode_direct=yes
17665 # hardcode_minus_L: Not really in the search PATH,
17666 # but as the default location of the library.
17667 hardcode_minus_L=yes
17668 export_dynamic_flag_spec='${wl}-E'
17671 hpux10*)
17672 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17673 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17674 else
17675 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17677 if test "$with_gnu_ld" = no; then
17678 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17679 hardcode_libdir_flag_spec_ld='+b $libdir'
17680 hardcode_libdir_separator=:
17681 hardcode_direct=yes
17682 hardcode_direct_absolute=yes
17683 export_dynamic_flag_spec='${wl}-E'
17684 # hardcode_minus_L: Not really in the search PATH,
17685 # but as the default location of the library.
17686 hardcode_minus_L=yes
17690 hpux11*)
17691 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17692 case $host_cpu in
17693 hppa*64*)
17694 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17696 ia64*)
17697 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17700 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17702 esac
17703 else
17704 case $host_cpu in
17705 hppa*64*)
17706 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17708 ia64*)
17709 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17712 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17714 esac
17716 if test "$with_gnu_ld" = no; then
17717 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17718 hardcode_libdir_separator=:
17720 case $host_cpu in
17721 hppa*64*|ia64*)
17722 hardcode_direct=no
17723 hardcode_shlibpath_var=no
17726 hardcode_direct=yes
17727 hardcode_direct_absolute=yes
17728 export_dynamic_flag_spec='${wl}-E'
17730 # hardcode_minus_L: Not really in the search PATH,
17731 # but as the default location of the library.
17732 hardcode_minus_L=yes
17734 esac
17738 irix5* | irix6* | nonstopux*)
17739 if test "$GCC" = yes; then
17740 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'
17741 # Try to use the -exported_symbol ld option, if it does not
17742 # work, assume that -exports_file does not work either and
17743 # implicitly export all symbols.
17744 save_LDFLAGS="$LDFLAGS"
17745 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17746 cat >conftest.$ac_ext <<_ACEOF
17747 int foo(void) {}
17748 _ACEOF
17749 rm -f conftest.$ac_objext conftest$ac_exeext
17750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17751 (eval $ac_link) 2>conftest.er1
17752 ac_status=$?
17753 grep -v '^ *+' conftest.er1 >conftest.err
17754 rm -f conftest.er1
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
17758 { ac_try='test -z "$ac_c_werror_flag"
17759 || test ! -s conftest.err'
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest$ac_exeext'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17768 ac_status=$?
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
17771 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'
17773 else
17774 echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17778 rm -f conftest.err conftest.$ac_objext \
17779 conftest$ac_exeext conftest.$ac_ext
17780 LDFLAGS="$save_LDFLAGS"
17781 else
17782 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'
17783 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'
17785 archive_cmds_need_lc='no'
17786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17787 hardcode_libdir_separator=:
17788 inherit_rpath=yes
17789 link_all_deplibs=yes
17792 netbsd*)
17793 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17795 else
17796 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17798 hardcode_libdir_flag_spec='-R$libdir'
17799 hardcode_direct=yes
17800 hardcode_shlibpath_var=no
17803 newsos6)
17804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17805 hardcode_direct=yes
17806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17807 hardcode_libdir_separator=:
17808 hardcode_shlibpath_var=no
17811 *nto* | *qnx*)
17814 openbsd*)
17815 hardcode_direct=yes
17816 hardcode_shlibpath_var=no
17817 hardcode_direct_absolute=yes
17818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17820 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17821 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17822 export_dynamic_flag_spec='${wl}-E'
17823 else
17824 case $host_os in
17825 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17827 hardcode_libdir_flag_spec='-R$libdir'
17830 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17831 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17833 esac
17837 os2*)
17838 hardcode_libdir_flag_spec='-L$libdir'
17839 hardcode_minus_L=yes
17840 allow_undefined_flag=unsupported
17841 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'
17842 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17845 osf3*)
17846 if test "$GCC" = yes; then
17847 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17848 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'
17849 else
17850 allow_undefined_flag=' -expect_unresolved \*'
17851 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'
17853 archive_cmds_need_lc='no'
17854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17855 hardcode_libdir_separator=:
17858 osf4* | osf5*) # as osf3* with the addition of -msym flag
17859 if test "$GCC" = yes; then
17860 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17861 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'
17862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17863 else
17864 allow_undefined_flag=' -expect_unresolved \*'
17865 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'
17866 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~
17867 $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'
17869 # Both c and cxx compiler support -rpath directly
17870 hardcode_libdir_flag_spec='-rpath $libdir'
17872 archive_cmds_need_lc='no'
17873 hardcode_libdir_separator=:
17876 solaris*)
17877 no_undefined_flag=' -z defs'
17878 if test "$GCC" = yes; then
17879 wlarc='${wl}'
17880 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17881 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17882 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17883 else
17884 case `$CC -V 2>&1` in
17885 *"Compilers 5.0"*)
17886 wlarc=''
17887 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17888 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17889 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17892 wlarc='${wl}'
17893 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17894 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17895 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17897 esac
17899 hardcode_libdir_flag_spec='-R$libdir'
17900 hardcode_shlibpath_var=no
17901 case $host_os in
17902 solaris2.[0-5] | solaris2.[0-5].*) ;;
17904 # The compiler driver will combine and reorder linker options,
17905 # but understands `-z linker_flag'. GCC discards it without `$wl',
17906 # but is careful enough not to reorder.
17907 # Supported since Solaris 2.6 (maybe 2.5.1?)
17908 if test "$GCC" = yes; then
17909 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17910 else
17911 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17914 esac
17915 link_all_deplibs=yes
17918 sunos4*)
17919 if test "x$host_vendor" = xsequent; then
17920 # Use $CC to link under sequent, because it throws in some extra .o
17921 # files that make .init and .fini sections work.
17922 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17923 else
17924 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17926 hardcode_libdir_flag_spec='-L$libdir'
17927 hardcode_direct=yes
17928 hardcode_minus_L=yes
17929 hardcode_shlibpath_var=no
17932 sysv4)
17933 case $host_vendor in
17934 sni)
17935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17936 hardcode_direct=yes # is this really true???
17938 siemens)
17939 ## LD is ld it makes a PLAMLIB
17940 ## CC just makes a GrossModule.
17941 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17942 reload_cmds='$CC -r -o $output$reload_objs'
17943 hardcode_direct=no
17945 motorola)
17946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17947 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17949 esac
17950 runpath_var='LD_RUN_PATH'
17951 hardcode_shlibpath_var=no
17954 sysv4.3*)
17955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17956 hardcode_shlibpath_var=no
17957 export_dynamic_flag_spec='-Bexport'
17960 sysv4*MP*)
17961 if test -d /usr/nec; then
17962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17963 hardcode_shlibpath_var=no
17964 runpath_var=LD_RUN_PATH
17965 hardcode_runpath_var=yes
17966 ld_shlibs=yes
17970 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17971 no_undefined_flag='${wl}-z,text'
17972 archive_cmds_need_lc=no
17973 hardcode_shlibpath_var=no
17974 runpath_var='LD_RUN_PATH'
17976 if test "$GCC" = yes; then
17977 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17978 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17979 else
17980 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17981 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17985 sysv5* | sco3.2v5* | sco5v6*)
17986 # Note: We can NOT use -z defs as we might desire, because we do not
17987 # link with -lc, and that would cause any symbols used from libc to
17988 # always be unresolved, which means just about no library would
17989 # ever link correctly. If we're not using GNU ld we use -z text
17990 # though, which does catch some bad symbols but isn't as heavy-handed
17991 # as -z defs.
17992 no_undefined_flag='${wl}-z,text'
17993 allow_undefined_flag='${wl}-z,nodefs'
17994 archive_cmds_need_lc=no
17995 hardcode_shlibpath_var=no
17996 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17997 hardcode_libdir_separator=':'
17998 link_all_deplibs=yes
17999 export_dynamic_flag_spec='${wl}-Bexport'
18000 runpath_var='LD_RUN_PATH'
18002 if test "$GCC" = yes; then
18003 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18004 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18005 else
18006 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18007 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18011 uts4*)
18012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18013 hardcode_libdir_flag_spec='-L$libdir'
18014 hardcode_shlibpath_var=no
18018 ld_shlibs=no
18020 esac
18022 if test x$host_vendor = xsni; then
18023 case $host in
18024 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18025 export_dynamic_flag_spec='${wl}-Blargedynsym'
18027 esac
18031 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18032 echo "${ECHO_T}$ld_shlibs" >&6
18033 test "$ld_shlibs" = no && can_build_shared=no
18035 with_gnu_ld=$with_gnu_ld
18052 # Do we need to explicitly link libc?
18054 case "x$archive_cmds_need_lc" in
18055 x|xyes)
18056 # Assume -lc should be added
18057 archive_cmds_need_lc=yes
18059 if test "$enable_shared" = yes && test "$GCC" = yes; then
18060 case $archive_cmds in
18061 *'~'*)
18062 # FIXME: we may have to deal with multi-command sequences.
18064 '$CC '*)
18065 # Test whether the compiler implicitly links with -lc since on some
18066 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18067 # to ld, don't add -lc before -lgcc.
18068 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18069 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18070 $RM conftest*
18071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18074 (eval $ac_compile) 2>&5
18075 ac_status=$?
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } 2>conftest.err; then
18078 soname=conftest
18079 lib=conftest
18080 libobjs=conftest.$ac_objext
18081 deplibs=
18082 wl=$lt_prog_compiler_wl
18083 pic_flag=$lt_prog_compiler_pic
18084 compiler_flags=-v
18085 linker_flags=-v
18086 verstring=
18087 output_objdir=.
18088 libname=conftest
18089 lt_save_allow_undefined_flag=$allow_undefined_flag
18090 allow_undefined_flag=
18091 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18092 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }
18096 then
18097 archive_cmds_need_lc=no
18098 else
18099 archive_cmds_need_lc=yes
18101 allow_undefined_flag=$lt_save_allow_undefined_flag
18102 else
18103 cat conftest.err 1>&5
18105 $RM conftest*
18106 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18107 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18109 esac
18112 esac
18270 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18271 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18272 withGCC=$GCC
18273 if test "$withGCC" = yes; then
18274 case $host_os in
18275 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18276 *) lt_awk_arg="/^libraries:/" ;;
18277 esac
18278 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18279 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18280 # if the path contains ";" then we assume it to be the separator
18281 # otherwise default to the standard path separator (i.e. ":") - it is
18282 # assumed that no part of a normal pathname contains ";" but that should
18283 # okay in the real world where ";" in dirpaths is itself problematic.
18284 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18285 else
18286 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18288 # Ok, now we have the path, separated by spaces, we can step through it
18289 # and add multilib dir if necessary.
18290 lt_tmp_lt_search_path_spec=
18291 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18292 for lt_sys_path in $lt_search_path_spec; do
18293 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18294 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18295 else
18296 test -d "$lt_sys_path" && \
18297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18299 done
18300 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18301 BEGIN {RS=" "; FS="/|\n";} {
18302 lt_foo="";
18303 lt_count=0;
18304 for (lt_i = NF; lt_i > 0; lt_i--) {
18305 if ($lt_i != "" && $lt_i != ".") {
18306 if ($lt_i == "..") {
18307 lt_count++;
18308 } else {
18309 if (lt_count == 0) {
18310 lt_foo="/" $lt_i lt_foo;
18311 } else {
18312 lt_count--;
18317 if (lt_foo != "") { lt_freq[lt_foo]++; }
18318 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18320 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18321 else
18322 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18324 library_names_spec=
18325 libname_spec='lib$name'
18326 soname_spec=
18327 shrext_cmds=".so"
18328 postinstall_cmds=
18329 postuninstall_cmds=
18330 finish_cmds=
18331 finish_eval=
18332 shlibpath_var=
18333 shlibpath_overrides_runpath=unknown
18334 version_type=none
18335 dynamic_linker="$host_os ld.so"
18336 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18337 need_lib_prefix=unknown
18338 hardcode_into_libs=no
18340 # when you set need_version to no, make sure it does not cause -set_version
18341 # flags to be left without arguments
18342 need_version=unknown
18344 case $host_os in
18345 aix3*)
18346 version_type=linux
18347 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18348 shlibpath_var=LIBPATH
18350 # AIX 3 has no versioning support, so we append a major version to the name.
18351 soname_spec='${libname}${release}${shared_ext}$major'
18354 aix[4-9]*)
18355 version_type=linux
18356 need_lib_prefix=no
18357 need_version=no
18358 hardcode_into_libs=yes
18359 if test "$host_cpu" = ia64; then
18360 # AIX 5 supports IA64
18361 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18362 shlibpath_var=LD_LIBRARY_PATH
18363 else
18364 # With GCC up to 2.95.x, collect2 would create an import file
18365 # for dependence libraries. The import file would start with
18366 # the line `#! .'. This would cause the generated library to
18367 # depend on `.', always an invalid library. This was fixed in
18368 # development snapshots of GCC prior to 3.0.
18369 case $host_os in
18370 aix4 | aix4.[01] | aix4.[01].*)
18371 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18372 echo ' yes '
18373 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18375 else
18376 can_build_shared=no
18379 esac
18380 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18381 # soname into executable. Probably we can add versioning support to
18382 # collect2, so additional links can be useful in future.
18383 if test "$aix_use_runtimelinking" = yes; then
18384 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18385 # instead of lib<name>.a to let people know that these are not
18386 # typical AIX shared libraries.
18387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18388 else
18389 # We preserve .a as extension for shared libraries through AIX4.2
18390 # and later when we are not doing run time linking.
18391 library_names_spec='${libname}${release}.a $libname.a'
18392 soname_spec='${libname}${release}${shared_ext}$major'
18394 shlibpath_var=LIBPATH
18398 amigaos*)
18399 if test "$host_cpu" = m68k; then
18400 library_names_spec='$libname.ixlibrary $libname.a'
18401 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18402 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'
18403 else
18404 dynamic_linker=no
18408 beos*)
18409 library_names_spec='${libname}${shared_ext}'
18410 dynamic_linker="$host_os ld.so"
18411 shlibpath_var=LIBRARY_PATH
18414 bsdi[45]*)
18415 version_type=linux
18416 need_version=no
18417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18418 soname_spec='${libname}${release}${shared_ext}$major'
18419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18420 shlibpath_var=LD_LIBRARY_PATH
18421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18423 # the default ld.so.conf also contains /usr/contrib/lib and
18424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18425 # libtool to hard-code these into programs
18428 cygwin* | mingw* | pw32*)
18429 version_type=windows
18430 shrext_cmds=".dll"
18431 need_version=no
18432 need_lib_prefix=no
18434 case $withGCC,$host_os in
18435 yes,cygwin* | yes,mingw* | yes,pw32*)
18436 library_names_spec='$libname.dll.a'
18437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18438 postinstall_cmds='base_file=`basename \${file}`~
18439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18440 dldir=$destdir/`dirname \$dlpath`~
18441 test -d \$dldir || mkdir -p \$dldir~
18442 $install_prog $dir/$dlname \$dldir/$dlname~
18443 chmod a+x \$dldir/$dlname~
18444 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18445 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18447 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18448 dlpath=$dir/\$dldll~
18449 $RM \$dlpath'
18450 shlibpath_overrides_runpath=yes
18452 case $host_os in
18453 cygwin*)
18454 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18455 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18456 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18458 mingw*)
18459 # MinGW DLLs use traditional 'lib' prefix
18460 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18461 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18462 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18463 # It is most probably a Windows format PATH printed by
18464 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18465 # path with ; separators, and with drive letters. We can handle the
18466 # drive letters (cygwin fileutils understands them), so leave them,
18467 # especially as we might pass files found there to a mingw objdump,
18468 # which wouldn't understand a cygwinified path. Ahh.
18469 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18470 else
18471 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18474 pw32*)
18475 # pw32 DLLs use 'pw' prefix rather than 'lib'
18476 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18478 esac
18482 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18484 esac
18485 dynamic_linker='Win32 ld.exe'
18486 # FIXME: first we should search . and the directory the executable is in
18487 shlibpath_var=PATH
18490 darwin* | rhapsody*)
18491 dynamic_linker="$host_os dyld"
18492 version_type=darwin
18493 need_lib_prefix=no
18494 need_version=no
18495 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18496 soname_spec='${libname}${release}${major}$shared_ext'
18497 shlibpath_overrides_runpath=yes
18498 shlibpath_var=DYLD_LIBRARY_PATH
18499 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18501 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18502 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18505 dgux*)
18506 version_type=linux
18507 need_lib_prefix=no
18508 need_version=no
18509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18510 soname_spec='${libname}${release}${shared_ext}$major'
18511 shlibpath_var=LD_LIBRARY_PATH
18514 freebsd1*)
18515 dynamic_linker=no
18518 freebsd* | dragonfly*)
18519 # DragonFly does not have aout. When/if they implement a new
18520 # versioning mechanism, adjust this.
18521 if test -x /usr/bin/objformat; then
18522 objformat=`/usr/bin/objformat`
18523 else
18524 case $host_os in
18525 freebsd[123]*) objformat=aout ;;
18526 *) objformat=elf ;;
18527 esac
18529 version_type=freebsd-$objformat
18530 case $version_type in
18531 freebsd-elf*)
18532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18533 need_version=no
18534 need_lib_prefix=no
18536 freebsd-*)
18537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18538 need_version=yes
18540 esac
18541 shlibpath_var=LD_LIBRARY_PATH
18542 case $host_os in
18543 freebsd2*)
18544 shlibpath_overrides_runpath=yes
18546 freebsd3.[01]* | freebsdelf3.[01]*)
18547 shlibpath_overrides_runpath=yes
18548 hardcode_into_libs=yes
18550 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18551 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18552 shlibpath_overrides_runpath=no
18553 hardcode_into_libs=yes
18555 *) # from 4.6 on, and DragonFly
18556 shlibpath_overrides_runpath=yes
18557 hardcode_into_libs=yes
18559 esac
18562 gnu*)
18563 version_type=linux
18564 need_lib_prefix=no
18565 need_version=no
18566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18567 soname_spec='${libname}${release}${shared_ext}$major'
18568 shlibpath_var=LD_LIBRARY_PATH
18569 hardcode_into_libs=yes
18572 hpux9* | hpux10* | hpux11*)
18573 # Give a soname corresponding to the major version so that dld.sl refuses to
18574 # link against other versions.
18575 version_type=sunos
18576 need_lib_prefix=no
18577 need_version=no
18578 case $host_cpu in
18579 ia64*)
18580 shrext_cmds='.so'
18581 hardcode_into_libs=yes
18582 dynamic_linker="$host_os dld.so"
18583 shlibpath_var=LD_LIBRARY_PATH
18584 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18586 soname_spec='${libname}${release}${shared_ext}$major'
18587 if test "X$HPUX_IA64_MODE" = X32; then
18588 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18589 else
18590 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18594 hppa*64*)
18595 shrext_cmds='.sl'
18596 hardcode_into_libs=yes
18597 dynamic_linker="$host_os dld.sl"
18598 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18601 soname_spec='${libname}${release}${shared_ext}$major'
18602 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18606 shrext_cmds='.sl'
18607 dynamic_linker="$host_os dld.sl"
18608 shlibpath_var=SHLIB_PATH
18609 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18611 soname_spec='${libname}${release}${shared_ext}$major'
18613 esac
18614 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18615 postinstall_cmds='chmod 555 $lib'
18618 interix[3-9]*)
18619 version_type=linux
18620 need_lib_prefix=no
18621 need_version=no
18622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18623 soname_spec='${libname}${release}${shared_ext}$major'
18624 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18625 shlibpath_var=LD_LIBRARY_PATH
18626 shlibpath_overrides_runpath=no
18627 hardcode_into_libs=yes
18630 irix5* | irix6* | nonstopux*)
18631 case $host_os in
18632 nonstopux*) version_type=nonstopux ;;
18634 if test "$lt_cv_prog_gnu_ld" = yes; then
18635 version_type=linux
18636 else
18637 version_type=irix
18638 fi ;;
18639 esac
18640 need_lib_prefix=no
18641 need_version=no
18642 soname_spec='${libname}${release}${shared_ext}$major'
18643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18644 case $host_os in
18645 irix5* | nonstopux*)
18646 libsuff= shlibsuff=
18649 case $LD in # libtool.m4 will add one of these switches to LD
18650 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18651 libsuff= shlibsuff= libmagic=32-bit;;
18652 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18653 libsuff=32 shlibsuff=N32 libmagic=N32;;
18654 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18655 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18656 *) libsuff= shlibsuff= libmagic=never-match;;
18657 esac
18659 esac
18660 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18661 shlibpath_overrides_runpath=no
18662 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18663 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18664 hardcode_into_libs=yes
18667 # No shared lib support for Linux oldld, aout, or coff.
18668 linux*oldld* | linux*aout* | linux*coff*)
18669 dynamic_linker=no
18672 # This must be Linux ELF.
18673 linux* | k*bsd*-gnu)
18674 version_type=linux
18675 need_lib_prefix=no
18676 need_version=no
18677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18678 soname_spec='${libname}${release}${shared_ext}$major'
18679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18680 shlibpath_var=LD_LIBRARY_PATH
18681 shlibpath_overrides_runpath=no
18682 # Some binutils ld are patched to set DT_RUNPATH
18683 save_LDFLAGS=$LDFLAGS
18684 save_libdir=$libdir
18685 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18686 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18687 cat >conftest.$ac_ext <<_ACEOF
18688 /* confdefs.h. */
18689 _ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18695 main ()
18699 return 0;
18701 _ACEOF
18702 rm -f conftest.$ac_objext conftest$ac_exeext
18703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18704 (eval $ac_link) 2>conftest.er1
18705 ac_status=$?
18706 grep -v '^ *+' conftest.er1 >conftest.err
18707 rm -f conftest.er1
18708 cat conftest.err >&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); } &&
18711 { ac_try='test -z "$ac_c_werror_flag"
18712 || test ! -s conftest.err'
18713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18714 (eval $ac_try) 2>&5
18715 ac_status=$?
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); }; } &&
18718 { ac_try='test -s conftest$ac_exeext'
18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720 (eval $ac_try) 2>&5
18721 ac_status=$?
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
18724 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
18725 shlibpath_overrides_runpath=yes
18728 else
18729 echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18733 rm -f conftest.err conftest.$ac_objext \
18734 conftest$ac_exeext conftest.$ac_ext
18735 LDFLAGS=$save_LDFLAGS
18736 libdir=$save_libdir
18738 # This implies no fast_install, which is unacceptable.
18739 # Some rework will be needed to allow for fast_install
18740 # before this can be enabled.
18741 hardcode_into_libs=yes
18743 # Append ld.so.conf contents to the search path
18744 if test -f /etc/ld.so.conf; then
18745 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' ' '`
18746 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18749 # We used to test for /lib/ld.so.1 and disable shared libraries on
18750 # powerpc, because MkLinux only supported shared libraries with the
18751 # GNU dynamic linker. Since this was broken with cross compilers,
18752 # most powerpc-linux boxes support dynamic linking these days and
18753 # people can always --disable-shared, the test was removed, and we
18754 # assume the GNU/Linux dynamic linker is in use.
18755 dynamic_linker='GNU/Linux ld.so'
18758 netbsd*)
18759 version_type=sunos
18760 need_lib_prefix=no
18761 need_version=no
18762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18765 dynamic_linker='NetBSD (a.out) ld.so'
18766 else
18767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18768 soname_spec='${libname}${release}${shared_ext}$major'
18769 dynamic_linker='NetBSD ld.elf_so'
18771 shlibpath_var=LD_LIBRARY_PATH
18772 shlibpath_overrides_runpath=yes
18773 hardcode_into_libs=yes
18776 newsos6)
18777 version_type=linux
18778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18779 shlibpath_var=LD_LIBRARY_PATH
18780 shlibpath_overrides_runpath=yes
18783 *nto* | *qnx*)
18784 version_type=qnx
18785 need_lib_prefix=no
18786 need_version=no
18787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18788 soname_spec='${libname}${release}${shared_ext}$major'
18789 shlibpath_var=LD_LIBRARY_PATH
18790 shlibpath_overrides_runpath=no
18791 hardcode_into_libs=yes
18792 dynamic_linker='ldqnx.so'
18795 openbsd*)
18796 version_type=sunos
18797 sys_lib_dlsearch_path_spec="/usr/lib"
18798 need_lib_prefix=no
18799 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18800 case $host_os in
18801 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18802 *) need_version=no ;;
18803 esac
18804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18806 shlibpath_var=LD_LIBRARY_PATH
18807 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18808 case $host_os in
18809 openbsd2.[89] | openbsd2.[89].*)
18810 shlibpath_overrides_runpath=no
18813 shlibpath_overrides_runpath=yes
18815 esac
18816 else
18817 shlibpath_overrides_runpath=yes
18821 os2*)
18822 libname_spec='$name'
18823 shrext_cmds=".dll"
18824 need_lib_prefix=no
18825 library_names_spec='$libname${shared_ext} $libname.a'
18826 dynamic_linker='OS/2 ld.exe'
18827 shlibpath_var=LIBPATH
18830 osf3* | osf4* | osf5*)
18831 version_type=osf
18832 need_lib_prefix=no
18833 need_version=no
18834 soname_spec='${libname}${release}${shared_ext}$major'
18835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18836 shlibpath_var=LD_LIBRARY_PATH
18837 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18838 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18841 rdos*)
18842 dynamic_linker=no
18845 solaris*)
18846 version_type=linux
18847 need_lib_prefix=no
18848 need_version=no
18849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18850 soname_spec='${libname}${release}${shared_ext}$major'
18851 shlibpath_var=LD_LIBRARY_PATH
18852 shlibpath_overrides_runpath=yes
18853 hardcode_into_libs=yes
18854 # ldd complains unless libraries are executable
18855 postinstall_cmds='chmod +x $lib'
18858 sunos4*)
18859 version_type=sunos
18860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18861 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18862 shlibpath_var=LD_LIBRARY_PATH
18863 shlibpath_overrides_runpath=yes
18864 if test "$with_gnu_ld" = yes; then
18865 need_lib_prefix=no
18867 need_version=yes
18870 sysv4 | sysv4.3*)
18871 version_type=linux
18872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18873 soname_spec='${libname}${release}${shared_ext}$major'
18874 shlibpath_var=LD_LIBRARY_PATH
18875 case $host_vendor in
18876 sni)
18877 shlibpath_overrides_runpath=no
18878 need_lib_prefix=no
18879 runpath_var=LD_RUN_PATH
18881 siemens)
18882 need_lib_prefix=no
18884 motorola)
18885 need_lib_prefix=no
18886 need_version=no
18887 shlibpath_overrides_runpath=no
18888 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18890 esac
18893 sysv4*MP*)
18894 if test -d /usr/nec ;then
18895 version_type=linux
18896 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18897 soname_spec='$libname${shared_ext}.$major'
18898 shlibpath_var=LD_LIBRARY_PATH
18902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18903 version_type=freebsd-elf
18904 need_lib_prefix=no
18905 need_version=no
18906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18907 soname_spec='${libname}${release}${shared_ext}$major'
18908 shlibpath_var=LD_LIBRARY_PATH
18909 shlibpath_overrides_runpath=yes
18910 hardcode_into_libs=yes
18911 if test "$with_gnu_ld" = yes; then
18912 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18913 else
18914 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18915 case $host_os in
18916 sco3.2v5*)
18917 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18919 esac
18921 sys_lib_dlsearch_path_spec='/usr/lib'
18924 tpf*)
18925 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18926 version_type=linux
18927 need_lib_prefix=no
18928 need_version=no
18929 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18930 shlibpath_var=LD_LIBRARY_PATH
18931 shlibpath_overrides_runpath=no
18932 hardcode_into_libs=yes
18935 uts4*)
18936 version_type=linux
18937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18938 soname_spec='${libname}${release}${shared_ext}$major'
18939 shlibpath_var=LD_LIBRARY_PATH
18943 dynamic_linker=no
18945 esac
18946 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18947 echo "${ECHO_T}$dynamic_linker" >&6
18948 test "$dynamic_linker" = no && can_build_shared=no
18950 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18951 if test "$GCC" = yes; then
18952 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19041 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19042 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19043 hardcode_action=
19044 if test -n "$hardcode_libdir_flag_spec" ||
19045 test -n "$runpath_var" ||
19046 test "X$hardcode_automatic" = "Xyes" ; then
19048 # We can hardcode non-existent directories.
19049 if test "$hardcode_direct" != no &&
19050 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19051 # have to relink, otherwise we might link with an installed library
19052 # when we should be linking with a yet-to-be-installed one
19053 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19054 test "$hardcode_minus_L" != no; then
19055 # Linking always hardcodes the temporary library directory.
19056 hardcode_action=relink
19057 else
19058 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19059 hardcode_action=immediate
19061 else
19062 # We cannot hardcode anything, or else we can only hardcode existing
19063 # directories.
19064 hardcode_action=unsupported
19066 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19067 echo "${ECHO_T}$hardcode_action" >&6
19069 if test "$hardcode_action" = relink ||
19070 test "$inherit_rpath" = yes; then
19071 # Fast installation is not supported
19072 enable_fast_install=no
19073 elif test "$shlibpath_overrides_runpath" = yes ||
19074 test "$enable_shared" = no; then
19075 # Fast installation is not necessary
19076 enable_fast_install=needless
19084 if test "x$enable_dlopen" != xyes; then
19085 enable_dlopen=unknown
19086 enable_dlopen_self=unknown
19087 enable_dlopen_self_static=unknown
19088 else
19089 lt_cv_dlopen=no
19090 lt_cv_dlopen_libs=
19092 case $host_os in
19093 beos*)
19094 lt_cv_dlopen="load_add_on"
19095 lt_cv_dlopen_libs=
19096 lt_cv_dlopen_self=yes
19099 mingw* | pw32*)
19100 lt_cv_dlopen="LoadLibrary"
19101 lt_cv_dlopen_libs=
19104 cygwin*)
19105 lt_cv_dlopen="dlopen"
19106 lt_cv_dlopen_libs=
19109 darwin*)
19110 # if libdl is installed we need to link against it
19111 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19112 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19113 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19114 echo $ECHO_N "(cached) $ECHO_C" >&6
19115 else
19116 ac_check_lib_save_LIBS=$LIBS
19117 LIBS="-ldl $LIBS"
19118 cat >conftest.$ac_ext <<_ACEOF
19119 /* confdefs.h. */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19125 /* Override any gcc2 internal prototype to avoid an error. */
19126 #ifdef __cplusplus
19127 extern "C"
19128 #endif
19129 /* We use char because int might match the return type of a gcc2
19130 builtin and then its argument prototype would still apply. */
19131 char dlopen ();
19133 main ()
19135 dlopen ();
19137 return 0;
19139 _ACEOF
19140 rm -f conftest.$ac_objext conftest$ac_exeext
19141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19142 (eval $ac_link) 2>conftest.er1
19143 ac_status=$?
19144 grep -v '^ *+' conftest.er1 >conftest.err
19145 rm -f conftest.er1
19146 cat conftest.err >&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); } &&
19149 { ac_try='test -z "$ac_c_werror_flag"
19150 || test ! -s conftest.err'
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; } &&
19156 { ac_try='test -s conftest$ac_exeext'
19157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158 (eval $ac_try) 2>&5
19159 ac_status=$?
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; }; then
19162 ac_cv_lib_dl_dlopen=yes
19163 else
19164 echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19167 ac_cv_lib_dl_dlopen=no
19169 rm -f conftest.err conftest.$ac_objext \
19170 conftest$ac_exeext conftest.$ac_ext
19171 LIBS=$ac_check_lib_save_LIBS
19173 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19174 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19175 if test $ac_cv_lib_dl_dlopen = yes; then
19176 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19177 else
19179 lt_cv_dlopen="dyld"
19180 lt_cv_dlopen_libs=
19181 lt_cv_dlopen_self=yes
19188 echo "$as_me:$LINENO: checking for shl_load" >&5
19189 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19190 if test "${ac_cv_func_shl_load+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19192 else
19193 cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h. */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19199 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19201 #define shl_load innocuous_shl_load
19203 /* System header to define __stub macros and hopefully few prototypes,
19204 which can conflict with char shl_load (); below.
19205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19206 <limits.h> exists even on freestanding compilers. */
19208 #ifdef __STDC__
19209 # include <limits.h>
19210 #else
19211 # include <assert.h>
19212 #endif
19214 #undef shl_load
19216 /* Override any gcc2 internal prototype to avoid an error. */
19217 #ifdef __cplusplus
19218 extern "C"
19220 #endif
19221 /* We use char because int might match the return type of a gcc2
19222 builtin and then its argument prototype would still apply. */
19223 char shl_load ();
19224 /* The GNU C library defines this for functions which it implements
19225 to always fail with ENOSYS. Some functions are actually named
19226 something starting with __ and the normal name is an alias. */
19227 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19228 choke me
19229 #else
19230 char (*f) () = shl_load;
19231 #endif
19232 #ifdef __cplusplus
19234 #endif
19237 main ()
19239 return f != shl_load;
19241 return 0;
19243 _ACEOF
19244 rm -f conftest.$ac_objext conftest$ac_exeext
19245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19246 (eval $ac_link) 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } &&
19253 { ac_try='test -z "$ac_c_werror_flag"
19254 || test ! -s conftest.err'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; } &&
19260 { ac_try='test -s conftest$ac_exeext'
19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262 (eval $ac_try) 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; }; then
19266 ac_cv_func_shl_load=yes
19267 else
19268 echo "$as_me: failed program was:" >&5
19269 sed 's/^/| /' conftest.$ac_ext >&5
19271 ac_cv_func_shl_load=no
19273 rm -f conftest.err conftest.$ac_objext \
19274 conftest$ac_exeext conftest.$ac_ext
19276 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19277 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19278 if test $ac_cv_func_shl_load = yes; then
19279 lt_cv_dlopen="shl_load"
19280 else
19281 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19282 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19283 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19285 else
19286 ac_check_lib_save_LIBS=$LIBS
19287 LIBS="-ldld $LIBS"
19288 cat >conftest.$ac_ext <<_ACEOF
19289 /* confdefs.h. */
19290 _ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h. */
19295 /* Override any gcc2 internal prototype to avoid an error. */
19296 #ifdef __cplusplus
19297 extern "C"
19298 #endif
19299 /* We use char because int might match the return type of a gcc2
19300 builtin and then its argument prototype would still apply. */
19301 char shl_load ();
19303 main ()
19305 shl_load ();
19307 return 0;
19309 _ACEOF
19310 rm -f conftest.$ac_objext conftest$ac_exeext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19312 (eval $ac_link) 2>conftest.er1
19313 ac_status=$?
19314 grep -v '^ *+' conftest.er1 >conftest.err
19315 rm -f conftest.er1
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
19319 { ac_try='test -z "$ac_c_werror_flag"
19320 || test ! -s conftest.err'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; } &&
19326 { ac_try='test -s conftest$ac_exeext'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19332 ac_cv_lib_dld_shl_load=yes
19333 else
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 ac_cv_lib_dld_shl_load=no
19339 rm -f conftest.err conftest.$ac_objext \
19340 conftest$ac_exeext conftest.$ac_ext
19341 LIBS=$ac_check_lib_save_LIBS
19343 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19344 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19345 if test $ac_cv_lib_dld_shl_load = yes; then
19346 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19347 else
19348 echo "$as_me:$LINENO: checking for dlopen" >&5
19349 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19350 if test "${ac_cv_func_dlopen+set}" = set; then
19351 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 else
19353 cat >conftest.$ac_ext <<_ACEOF
19354 /* confdefs.h. */
19355 _ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19359 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19361 #define dlopen innocuous_dlopen
19363 /* System header to define __stub macros and hopefully few prototypes,
19364 which can conflict with char dlopen (); below.
19365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19366 <limits.h> exists even on freestanding compilers. */
19368 #ifdef __STDC__
19369 # include <limits.h>
19370 #else
19371 # include <assert.h>
19372 #endif
19374 #undef dlopen
19376 /* Override any gcc2 internal prototype to avoid an error. */
19377 #ifdef __cplusplus
19378 extern "C"
19380 #endif
19381 /* We use char because int might match the return type of a gcc2
19382 builtin and then its argument prototype would still apply. */
19383 char dlopen ();
19384 /* The GNU C library defines this for functions which it implements
19385 to always fail with ENOSYS. Some functions are actually named
19386 something starting with __ and the normal name is an alias. */
19387 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19388 choke me
19389 #else
19390 char (*f) () = dlopen;
19391 #endif
19392 #ifdef __cplusplus
19394 #endif
19397 main ()
19399 return f != dlopen;
19401 return 0;
19403 _ACEOF
19404 rm -f conftest.$ac_objext conftest$ac_exeext
19405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19406 (eval $ac_link) 2>conftest.er1
19407 ac_status=$?
19408 grep -v '^ *+' conftest.er1 >conftest.err
19409 rm -f conftest.er1
19410 cat conftest.err >&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } &&
19413 { ac_try='test -z "$ac_c_werror_flag"
19414 || test ! -s conftest.err'
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19417 ac_status=$?
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; } &&
19420 { ac_try='test -s conftest$ac_exeext'
19421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422 (eval $ac_try) 2>&5
19423 ac_status=$?
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; }; then
19426 ac_cv_func_dlopen=yes
19427 else
19428 echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19431 ac_cv_func_dlopen=no
19433 rm -f conftest.err conftest.$ac_objext \
19434 conftest$ac_exeext conftest.$ac_ext
19436 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19437 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19438 if test $ac_cv_func_dlopen = yes; then
19439 lt_cv_dlopen="dlopen"
19440 else
19441 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19442 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19443 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 else
19446 ac_check_lib_save_LIBS=$LIBS
19447 LIBS="-ldl $LIBS"
19448 cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h. */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19455 /* Override any gcc2 internal prototype to avoid an error. */
19456 #ifdef __cplusplus
19457 extern "C"
19458 #endif
19459 /* We use char because int might match the return type of a gcc2
19460 builtin and then its argument prototype would still apply. */
19461 char dlopen ();
19463 main ()
19465 dlopen ();
19467 return 0;
19469 _ACEOF
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19472 (eval $ac_link) 2>conftest.er1
19473 ac_status=$?
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
19479 { ac_try='test -z "$ac_c_werror_flag"
19480 || test ! -s conftest.err'
19481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; } &&
19486 { ac_try='test -s conftest$ac_exeext'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; }; then
19492 ac_cv_lib_dl_dlopen=yes
19493 else
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 ac_cv_lib_dl_dlopen=no
19499 rm -f conftest.err conftest.$ac_objext \
19500 conftest$ac_exeext conftest.$ac_ext
19501 LIBS=$ac_check_lib_save_LIBS
19503 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19504 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19505 if test $ac_cv_lib_dl_dlopen = yes; then
19506 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19507 else
19508 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19509 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19510 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513 ac_check_lib_save_LIBS=$LIBS
19514 LIBS="-lsvld $LIBS"
19515 cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h. */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19522 /* Override any gcc2 internal prototype to avoid an error. */
19523 #ifdef __cplusplus
19524 extern "C"
19525 #endif
19526 /* We use char because int might match the return type of a gcc2
19527 builtin and then its argument prototype would still apply. */
19528 char dlopen ();
19530 main ()
19532 dlopen ();
19534 return 0;
19536 _ACEOF
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19539 (eval $ac_link) 2>conftest.er1
19540 ac_status=$?
19541 grep -v '^ *+' conftest.er1 >conftest.err
19542 rm -f conftest.er1
19543 cat conftest.err >&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
19546 { ac_try='test -z "$ac_c_werror_flag"
19547 || test ! -s conftest.err'
19548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549 (eval $ac_try) 2>&5
19550 ac_status=$?
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; } &&
19553 { ac_try='test -s conftest$ac_exeext'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; }; then
19559 ac_cv_lib_svld_dlopen=yes
19560 else
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19564 ac_cv_lib_svld_dlopen=no
19566 rm -f conftest.err conftest.$ac_objext \
19567 conftest$ac_exeext conftest.$ac_ext
19568 LIBS=$ac_check_lib_save_LIBS
19570 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19571 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19572 if test $ac_cv_lib_svld_dlopen = yes; then
19573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19574 else
19575 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19576 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19577 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19579 else
19580 ac_check_lib_save_LIBS=$LIBS
19581 LIBS="-ldld $LIBS"
19582 cat >conftest.$ac_ext <<_ACEOF
19583 /* confdefs.h. */
19584 _ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19589 /* Override any gcc2 internal prototype to avoid an error. */
19590 #ifdef __cplusplus
19591 extern "C"
19592 #endif
19593 /* We use char because int might match the return type of a gcc2
19594 builtin and then its argument prototype would still apply. */
19595 char dld_link ();
19597 main ()
19599 dld_link ();
19601 return 0;
19603 _ACEOF
19604 rm -f conftest.$ac_objext conftest$ac_exeext
19605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19606 (eval $ac_link) 2>conftest.er1
19607 ac_status=$?
19608 grep -v '^ *+' conftest.er1 >conftest.err
19609 rm -f conftest.er1
19610 cat conftest.err >&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); } &&
19613 { ac_try='test -z "$ac_c_werror_flag"
19614 || test ! -s conftest.err'
19615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616 (eval $ac_try) 2>&5
19617 ac_status=$?
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; } &&
19620 { ac_try='test -s conftest$ac_exeext'
19621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19622 (eval $ac_try) 2>&5
19623 ac_status=$?
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; }; then
19626 ac_cv_lib_dld_dld_link=yes
19627 else
19628 echo "$as_me: failed program was:" >&5
19629 sed 's/^/| /' conftest.$ac_ext >&5
19631 ac_cv_lib_dld_dld_link=no
19633 rm -f conftest.err conftest.$ac_objext \
19634 conftest$ac_exeext conftest.$ac_ext
19635 LIBS=$ac_check_lib_save_LIBS
19637 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19638 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19639 if test $ac_cv_lib_dld_dld_link = yes; then
19640 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19659 esac
19661 if test "x$lt_cv_dlopen" != xno; then
19662 enable_dlopen=yes
19663 else
19664 enable_dlopen=no
19667 case $lt_cv_dlopen in
19668 dlopen)
19669 save_CPPFLAGS="$CPPFLAGS"
19670 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19672 save_LDFLAGS="$LDFLAGS"
19673 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19675 save_LIBS="$LIBS"
19676 LIBS="$lt_cv_dlopen_libs $LIBS"
19678 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19679 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19680 if test "${lt_cv_dlopen_self+set}" = set; then
19681 echo $ECHO_N "(cached) $ECHO_C" >&6
19682 else
19683 if test "$cross_compiling" = yes; then :
19684 lt_cv_dlopen_self=cross
19685 else
19686 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19687 lt_status=$lt_dlunknown
19688 cat > conftest.$ac_ext <<_LT_EOF
19689 #line 19689 "configure"
19690 #include "confdefs.h"
19692 #if HAVE_DLFCN_H
19693 #include <dlfcn.h>
19694 #endif
19696 #include <stdio.h>
19698 #ifdef RTLD_GLOBAL
19699 # define LT_DLGLOBAL RTLD_GLOBAL
19700 #else
19701 # ifdef DL_GLOBAL
19702 # define LT_DLGLOBAL DL_GLOBAL
19703 # else
19704 # define LT_DLGLOBAL 0
19705 # endif
19706 #endif
19708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19709 find out it does not work in some platform. */
19710 #ifndef LT_DLLAZY_OR_NOW
19711 # ifdef RTLD_LAZY
19712 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19713 # else
19714 # ifdef DL_LAZY
19715 # define LT_DLLAZY_OR_NOW DL_LAZY
19716 # else
19717 # ifdef RTLD_NOW
19718 # define LT_DLLAZY_OR_NOW RTLD_NOW
19719 # else
19720 # ifdef DL_NOW
19721 # define LT_DLLAZY_OR_NOW DL_NOW
19722 # else
19723 # define LT_DLLAZY_OR_NOW 0
19724 # endif
19725 # endif
19726 # endif
19727 # endif
19728 #endif
19730 #ifdef __cplusplus
19731 extern "C" void exit (int);
19732 #endif
19734 void fnord() { int i=42;}
19735 int main ()
19737 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19738 int status = $lt_dlunknown;
19740 if (self)
19742 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19743 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19744 /* dlclose (self); */
19746 else
19747 puts (dlerror ());
19749 exit (status);
19751 _LT_EOF
19752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19753 (eval $ac_link) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19757 (./conftest; exit; ) >&5 2>/dev/null
19758 lt_status=$?
19759 case x$lt_status in
19760 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19761 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19762 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19763 esac
19764 else :
19765 # compilation failed
19766 lt_cv_dlopen_self=no
19769 rm -fr conftest*
19773 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19774 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19776 if test "x$lt_cv_dlopen_self" = xyes; then
19777 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19778 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19779 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19780 if test "${lt_cv_dlopen_self_static+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782 else
19783 if test "$cross_compiling" = yes; then :
19784 lt_cv_dlopen_self_static=cross
19785 else
19786 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19787 lt_status=$lt_dlunknown
19788 cat > conftest.$ac_ext <<_LT_EOF
19789 #line 19789 "configure"
19790 #include "confdefs.h"
19792 #if HAVE_DLFCN_H
19793 #include <dlfcn.h>
19794 #endif
19796 #include <stdio.h>
19798 #ifdef RTLD_GLOBAL
19799 # define LT_DLGLOBAL RTLD_GLOBAL
19800 #else
19801 # ifdef DL_GLOBAL
19802 # define LT_DLGLOBAL DL_GLOBAL
19803 # else
19804 # define LT_DLGLOBAL 0
19805 # endif
19806 #endif
19808 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19809 find out it does not work in some platform. */
19810 #ifndef LT_DLLAZY_OR_NOW
19811 # ifdef RTLD_LAZY
19812 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19813 # else
19814 # ifdef DL_LAZY
19815 # define LT_DLLAZY_OR_NOW DL_LAZY
19816 # else
19817 # ifdef RTLD_NOW
19818 # define LT_DLLAZY_OR_NOW RTLD_NOW
19819 # else
19820 # ifdef DL_NOW
19821 # define LT_DLLAZY_OR_NOW DL_NOW
19822 # else
19823 # define LT_DLLAZY_OR_NOW 0
19824 # endif
19825 # endif
19826 # endif
19827 # endif
19828 #endif
19830 #ifdef __cplusplus
19831 extern "C" void exit (int);
19832 #endif
19834 void fnord() { int i=42;}
19835 int main ()
19837 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19838 int status = $lt_dlunknown;
19840 if (self)
19842 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19843 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19844 /* dlclose (self); */
19846 else
19847 puts (dlerror ());
19849 exit (status);
19851 _LT_EOF
19852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19853 (eval $ac_link) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19857 (./conftest; exit; ) >&5 2>/dev/null
19858 lt_status=$?
19859 case x$lt_status in
19860 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19861 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19862 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19863 esac
19864 else :
19865 # compilation failed
19866 lt_cv_dlopen_self_static=no
19869 rm -fr conftest*
19873 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19874 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19877 CPPFLAGS="$save_CPPFLAGS"
19878 LDFLAGS="$save_LDFLAGS"
19879 LIBS="$save_LIBS"
19881 esac
19883 case $lt_cv_dlopen_self in
19884 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19885 *) enable_dlopen_self=unknown ;;
19886 esac
19888 case $lt_cv_dlopen_self_static in
19889 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19890 *) enable_dlopen_self_static=unknown ;;
19891 esac
19910 striplib=
19911 old_striplib=
19912 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19913 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19914 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19915 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19916 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19917 echo "$as_me:$LINENO: result: yes" >&5
19918 echo "${ECHO_T}yes" >&6
19919 else
19920 # FIXME - insert some real tests, host_os isn't really good enough
19921 case $host_os in
19922 darwin*)
19923 if test -n "$STRIP" ; then
19924 striplib="$STRIP -x"
19925 old_striplib="$STRIP -S"
19926 echo "$as_me:$LINENO: result: yes" >&5
19927 echo "${ECHO_T}yes" >&6
19928 else
19929 echo "$as_me:$LINENO: result: no" >&5
19930 echo "${ECHO_T}no" >&6
19934 echo "$as_me:$LINENO: result: no" >&5
19935 echo "${ECHO_T}no" >&6
19937 esac
19951 # Report which library types will actually be built
19952 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19953 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19954 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19955 echo "${ECHO_T}$can_build_shared" >&6
19957 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19958 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19959 test "$can_build_shared" = "no" && enable_shared=no
19961 # On AIX, shared libraries and static libraries use the same namespace, and
19962 # are all built from PIC.
19963 case $host_os in
19964 aix3*)
19965 test "$enable_shared" = yes && enable_static=no
19966 if test -n "$RANLIB"; then
19967 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19968 postinstall_cmds='$RANLIB $lib'
19972 aix[4-9]*)
19973 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19974 test "$enable_shared" = yes && enable_static=no
19977 esac
19978 echo "$as_me:$LINENO: result: $enable_shared" >&5
19979 echo "${ECHO_T}$enable_shared" >&6
19981 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19982 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19983 # Make sure either enable_shared or enable_static is yes.
19984 test "$enable_shared" = yes || enable_static=yes
19985 echo "$as_me:$LINENO: result: $enable_static" >&5
19986 echo "${ECHO_T}$enable_static" >&6
19992 ac_ext=c
19993 ac_cpp='$CPP $CPPFLAGS'
19994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19998 CC="$lt_save_CC"
20015 # Only expand once:
20021 # Identify the assembler which will work hand-in-glove with the newly
20022 # built GCC, so that we can examine its features. This is the assembler
20023 # which will be driven by the driver program.
20025 # If build != host, and we aren't building gas in-tree, we identify a
20026 # build->target assembler and hope that it will have the same features
20027 # as the host->target assembler we'll be using.
20028 gcc_cv_gas_major_version=
20029 gcc_cv_gas_minor_version=
20030 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20032 if test "${gcc_cv_as+set}" = set; then
20034 else
20036 if test -x "$DEFAULT_ASSEMBLER"; then
20037 gcc_cv_as="$DEFAULT_ASSEMBLER"
20038 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20039 && test -f ../gas/Makefile \
20040 && test x$build = x$host; then
20041 gcc_cv_as=../gas/as-new$build_exeext
20042 elif test -x as$build_exeext; then
20043 # Build using assembler in the current directory.
20044 gcc_cv_as=./as$build_exeext
20045 elif test -x $AS_FOR_TARGET; then
20046 gcc_cv_as="$AS_FOR_TARGET"
20047 else
20048 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20049 set dummy $AS_FOR_TARGET; ac_word=$2
20050 echo "$as_me:$LINENO: checking for $ac_word" >&5
20051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20052 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20054 else
20055 case $gcc_cv_as in
20056 [\\/]* | ?:[\\/]*)
20057 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20061 for as_dir in $PATH
20063 IFS=$as_save_IFS
20064 test -z "$as_dir" && as_dir=.
20065 for ac_exec_ext in '' $ac_executable_extensions; do
20066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20067 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20069 break 2
20071 done
20072 done
20075 esac
20077 gcc_cv_as=$ac_cv_path_gcc_cv_as
20079 if test -n "$gcc_cv_as"; then
20080 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20081 echo "${ECHO_T}$gcc_cv_as" >&6
20082 else
20083 echo "$as_me:$LINENO: result: no" >&5
20084 echo "${ECHO_T}no" >&6
20091 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20093 case "$ORIGINAL_AS_FOR_TARGET" in
20094 ./as | ./as$build_exeext) ;;
20095 *) ac_config_files="$ac_config_files as:exec-tool.in"
20097 esac
20099 echo "$as_me:$LINENO: checking what assembler to use" >&5
20100 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20101 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20102 # Single tree build which includes gas. We want to prefer it
20103 # over whatever linker top-level may have detected, since
20104 # we'll use what we're building after installation anyway.
20105 echo "$as_me:$LINENO: result: newly built gas" >&5
20106 echo "${ECHO_T}newly built gas" >&6
20107 in_tree_gas=yes
20108 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20109 for f in $gcc_cv_as_bfd_srcdir/configure \
20110 $gcc_cv_as_gas_srcdir/configure \
20111 $gcc_cv_as_gas_srcdir/configure.in \
20112 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20113 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20114 if test x$gcc_cv_gas_version != x; then
20115 break
20117 done
20118 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20119 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20120 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20121 case $gcc_cv_gas_patch_version in
20122 "") gcc_cv_gas_patch_version="0" ;;
20123 esac
20124 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20125 + $gcc_cv_gas_minor_version \) \* 1000 \
20126 + $gcc_cv_gas_patch_version`
20128 in_tree_gas_is_elf=no
20129 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20130 || (grep 'obj_format = multi' ../gas/Makefile \
20131 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20132 then
20133 in_tree_gas_is_elf=yes
20135 else
20136 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20137 echo "${ECHO_T}$gcc_cv_as" >&6
20138 in_tree_gas=no
20141 # Identify the linker which will work hand-in-glove with the newly
20142 # built GCC, so that we can examine its features. This is the linker
20143 # which will be driven by the driver program.
20145 # If build != host, and we aren't building gas in-tree, we identify a
20146 # build->target linker and hope that it will have the same features
20147 # as the host->target linker we'll be using.
20148 gcc_cv_gld_major_version=
20149 gcc_cv_gld_minor_version=
20150 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20151 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20153 if test "${gcc_cv_ld+set}" = set; then
20155 else
20157 if test -x "$DEFAULT_LINKER"; then
20158 gcc_cv_ld="$DEFAULT_LINKER"
20159 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20160 && test -f ../ld/Makefile \
20161 && test x$build = x$host; then
20162 gcc_cv_ld=../ld/ld-new$build_exeext
20163 elif test -x collect-ld$build_exeext; then
20164 # Build using linker in the current directory.
20165 gcc_cv_ld=./collect-ld$build_exeext
20166 elif test -x $LD_FOR_TARGET; then
20167 gcc_cv_ld="$LD_FOR_TARGET"
20168 else
20169 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20170 set dummy $LD_FOR_TARGET; ac_word=$2
20171 echo "$as_me:$LINENO: checking for $ac_word" >&5
20172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20173 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20174 echo $ECHO_N "(cached) $ECHO_C" >&6
20175 else
20176 case $gcc_cv_ld in
20177 [\\/]* | ?:[\\/]*)
20178 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20182 for as_dir in $PATH
20184 IFS=$as_save_IFS
20185 test -z "$as_dir" && as_dir=.
20186 for ac_exec_ext in '' $ac_executable_extensions; do
20187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20188 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20190 break 2
20192 done
20193 done
20196 esac
20198 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20200 if test -n "$gcc_cv_ld"; then
20201 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20202 echo "${ECHO_T}$gcc_cv_ld" >&6
20203 else
20204 echo "$as_me:$LINENO: result: no" >&5
20205 echo "${ECHO_T}no" >&6
20212 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20214 case "$ORIGINAL_LD_FOR_TARGET" in
20215 ./collect-ld | ./collect-ld$build_exeext) ;;
20216 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20218 esac
20220 echo "$as_me:$LINENO: checking what linker to use" >&5
20221 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20222 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20223 # Single tree build which includes ld. We want to prefer it
20224 # over whatever linker top-level may have detected, since
20225 # we'll use what we're building after installation anyway.
20226 echo "$as_me:$LINENO: result: newly built ld" >&5
20227 echo "${ECHO_T}newly built ld" >&6
20228 in_tree_ld=yes
20229 in_tree_ld_is_elf=no
20230 if (grep 'EMUL = .*elf' ../ld/Makefile \
20231 || grep 'EMUL = .*linux' ../ld/Makefile \
20232 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20233 in_tree_ld_is_elf=yes
20235 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
20237 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20238 if test x$gcc_cv_gld_version != x; then
20239 break
20241 done
20242 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20243 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20244 else
20245 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20246 echo "${ECHO_T}$gcc_cv_ld" >&6
20247 in_tree_ld=no
20250 # Figure out what nm we will be using.
20251 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20252 if test "${gcc_cv_nm+set}" = set; then
20254 else
20256 if test -f $gcc_cv_binutils_srcdir/configure.in \
20257 && test -f ../binutils/Makefile \
20258 && test x$build = x$host; then
20259 gcc_cv_nm=../binutils/nm-new$build_exeext
20260 elif test -x nm$build_exeext; then
20261 gcc_cv_nm=./nm$build_exeext
20262 elif test -x $NM_FOR_TARGET; then
20263 gcc_cv_nm="$NM_FOR_TARGET"
20264 else
20265 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20266 set dummy $NM_FOR_TARGET; ac_word=$2
20267 echo "$as_me:$LINENO: checking for $ac_word" >&5
20268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20269 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20271 else
20272 case $gcc_cv_nm in
20273 [\\/]* | ?:[\\/]*)
20274 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20278 for as_dir in $PATH
20280 IFS=$as_save_IFS
20281 test -z "$as_dir" && as_dir=.
20282 for ac_exec_ext in '' $ac_executable_extensions; do
20283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20284 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20286 break 2
20288 done
20289 done
20292 esac
20294 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20296 if test -n "$gcc_cv_nm"; then
20297 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20298 echo "${ECHO_T}$gcc_cv_nm" >&6
20299 else
20300 echo "$as_me:$LINENO: result: no" >&5
20301 echo "${ECHO_T}no" >&6
20308 echo "$as_me:$LINENO: checking what nm to use" >&5
20309 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20310 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20311 # Single tree build which includes binutils.
20312 echo "$as_me:$LINENO: result: newly built nm" >&5
20313 echo "${ECHO_T}newly built nm" >&6
20314 in_tree_nm=yes
20315 else
20316 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20317 echo "${ECHO_T}$gcc_cv_nm" >&6
20318 in_tree_nm=no
20321 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20323 case "$ORIGINAL_NM_FOR_TARGET" in
20324 ./nm | ./nm$build_exeext) ;;
20325 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20327 esac
20330 # Figure out what objdump we will be using.
20331 if test "${gcc_cv_objdump+set}" = set; then
20333 else
20335 if test -f $gcc_cv_binutils_srcdir/configure.in \
20336 && test -f ../binutils/Makefile \
20337 && test x$build = x$host; then
20338 # Single tree build which includes binutils.
20339 gcc_cv_objdump=../binutils/objdump$build_exeext
20340 elif test -x objdump$build_exeext; then
20341 gcc_cv_objdump=./objdump$build_exeext
20342 elif test -x $OBJDUMP_FOR_TARGET; then
20343 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20344 else
20345 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20346 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20347 echo "$as_me:$LINENO: checking for $ac_word" >&5
20348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20349 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 else
20352 case $gcc_cv_objdump in
20353 [\\/]* | ?:[\\/]*)
20354 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20358 for as_dir in $PATH
20360 IFS=$as_save_IFS
20361 test -z "$as_dir" && as_dir=.
20362 for ac_exec_ext in '' $ac_executable_extensions; do
20363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20364 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20366 break 2
20368 done
20369 done
20372 esac
20374 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20376 if test -n "$gcc_cv_objdump"; then
20377 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20378 echo "${ECHO_T}$gcc_cv_objdump" >&6
20379 else
20380 echo "$as_me:$LINENO: result: no" >&5
20381 echo "${ECHO_T}no" >&6
20388 echo "$as_me:$LINENO: checking what objdump to use" >&5
20389 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20390 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20391 # Single tree build which includes binutils.
20392 echo "$as_me:$LINENO: result: newly built objdump" >&5
20393 echo "${ECHO_T}newly built objdump" >&6
20394 elif test x$gcc_cv_objdump = x; then
20395 echo "$as_me:$LINENO: result: not found" >&5
20396 echo "${ECHO_T}not found" >&6
20397 else
20398 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20399 echo "${ECHO_T}$gcc_cv_objdump" >&6
20402 # Figure out what assembler alignment features are present.
20403 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20404 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20405 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20407 else
20408 gcc_cv_as_balign_and_p2align=no
20409 if test $in_tree_gas = yes; then
20410 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20411 then gcc_cv_as_balign_and_p2align=yes
20413 elif test x$gcc_cv_as != x; then
20414 echo '.balign 4
20415 .p2align 2' > conftest.s
20416 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20419 ac_status=$?
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; }
20422 then
20423 gcc_cv_as_balign_and_p2align=yes
20424 else
20425 echo "configure: failed program was" >&5
20426 cat conftest.s >&5
20428 rm -f conftest.o conftest.s
20431 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20432 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20433 if test $gcc_cv_as_balign_and_p2align = yes; then
20435 cat >>confdefs.h <<\_ACEOF
20436 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20437 _ACEOF
20441 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20442 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20443 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20444 echo $ECHO_N "(cached) $ECHO_C" >&6
20445 else
20446 gcc_cv_as_max_skip_p2align=no
20447 if test $in_tree_gas = yes; then
20448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20449 then gcc_cv_as_max_skip_p2align=yes
20451 elif test x$gcc_cv_as != x; then
20452 echo '.p2align 4,,7' > conftest.s
20453 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455 (eval $ac_try) 2>&5
20456 ac_status=$?
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; }
20459 then
20460 gcc_cv_as_max_skip_p2align=yes
20461 else
20462 echo "configure: failed program was" >&5
20463 cat conftest.s >&5
20465 rm -f conftest.o conftest.s
20468 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20469 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20470 if test $gcc_cv_as_max_skip_p2align = yes; then
20472 cat >>confdefs.h <<\_ACEOF
20473 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20474 _ACEOF
20478 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20479 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20480 if test "${gcc_cv_as_literal16+set}" = set; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 else
20483 gcc_cv_as_literal16=no
20484 if test $in_tree_gas = yes; then
20485 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20486 then gcc_cv_as_literal16=yes
20488 elif test x$gcc_cv_as != x; then
20489 echo '.literal16' > conftest.s
20490 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20493 ac_status=$?
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; }
20496 then
20497 gcc_cv_as_literal16=yes
20498 else
20499 echo "configure: failed program was" >&5
20500 cat conftest.s >&5
20502 rm -f conftest.o conftest.s
20505 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
20506 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
20507 if test $gcc_cv_as_literal16 = yes; then
20509 cat >>confdefs.h <<\_ACEOF
20510 #define HAVE_GAS_LITERAL16 1
20511 _ACEOF
20515 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
20516 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
20517 if test "${gcc_cv_as_subsection_m1+set}" = set; then
20518 echo $ECHO_N "(cached) $ECHO_C" >&6
20519 else
20520 gcc_cv_as_subsection_m1=no
20521 if test $in_tree_gas = yes; then
20522 if test $in_tree_gas_is_elf = yes \
20523 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20524 then gcc_cv_as_subsection_m1=yes
20526 elif test x$gcc_cv_as != x; then
20527 echo 'conftest_label1: .word 0
20528 .subsection -1
20529 conftest_label2: .word 0
20530 .previous' > conftest.s
20531 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20534 ac_status=$?
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; }
20537 then
20538 if test x$gcc_cv_nm != x; then
20539 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
20540 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
20541 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
20542 then :
20543 else gcc_cv_as_subsection_m1=yes
20545 rm -f conftest.nm1 conftest.nm2
20547 else
20548 echo "configure: failed program was" >&5
20549 cat conftest.s >&5
20551 rm -f conftest.o conftest.s
20554 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
20555 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
20556 if test $gcc_cv_as_subsection_m1 = yes; then
20558 cat >>confdefs.h <<\_ACEOF
20559 #define HAVE_GAS_SUBSECTION_ORDERING 1
20560 _ACEOF
20564 echo "$as_me:$LINENO: checking assembler for .weak" >&5
20565 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
20566 if test "${gcc_cv_as_weak+set}" = set; then
20567 echo $ECHO_N "(cached) $ECHO_C" >&6
20568 else
20569 gcc_cv_as_weak=no
20570 if test $in_tree_gas = yes; then
20571 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20572 then gcc_cv_as_weak=yes
20574 elif test x$gcc_cv_as != x; then
20575 echo ' .weak foobar' > conftest.s
20576 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20579 ac_status=$?
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; }
20582 then
20583 gcc_cv_as_weak=yes
20584 else
20585 echo "configure: failed program was" >&5
20586 cat conftest.s >&5
20588 rm -f conftest.o conftest.s
20591 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
20592 echo "${ECHO_T}$gcc_cv_as_weak" >&6
20593 if test $gcc_cv_as_weak = yes; then
20595 cat >>confdefs.h <<\_ACEOF
20596 #define HAVE_GAS_WEAK 1
20597 _ACEOF
20601 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
20602 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
20603 if test "${gcc_cv_as_weakref+set}" = set; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20605 else
20606 gcc_cv_as_weakref=no
20607 if test $in_tree_gas = yes; then
20608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20609 then gcc_cv_as_weakref=yes
20611 elif test x$gcc_cv_as != x; then
20612 echo ' .weakref foobar, barfnot' > conftest.s
20613 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615 (eval $ac_try) 2>&5
20616 ac_status=$?
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); }; }
20619 then
20620 gcc_cv_as_weakref=yes
20621 else
20622 echo "configure: failed program was" >&5
20623 cat conftest.s >&5
20625 rm -f conftest.o conftest.s
20628 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
20629 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
20630 if test $gcc_cv_as_weakref = yes; then
20632 cat >>confdefs.h <<\_ACEOF
20633 #define HAVE_GAS_WEAKREF 1
20634 _ACEOF
20638 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
20639 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
20640 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
20641 echo $ECHO_N "(cached) $ECHO_C" >&6
20642 else
20643 gcc_cv_as_nsubspa_comdat=no
20644 if test $in_tree_gas = yes; then
20645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20646 then gcc_cv_as_nsubspa_comdat=yes
20648 elif test x$gcc_cv_as != x; then
20649 echo ' .SPACE $TEXT$
20650 .NSUBSPA $CODE$,COMDAT' > conftest.s
20651 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653 (eval $ac_try) 2>&5
20654 ac_status=$?
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }; }
20657 then
20658 gcc_cv_as_nsubspa_comdat=yes
20659 else
20660 echo "configure: failed program was" >&5
20661 cat conftest.s >&5
20663 rm -f conftest.o conftest.s
20666 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
20667 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
20668 if test $gcc_cv_as_nsubspa_comdat = yes; then
20670 cat >>confdefs.h <<\_ACEOF
20671 #define HAVE_GAS_NSUBSPA_COMDAT 1
20672 _ACEOF
20676 # .hidden needs to be supported in both the assembler and the linker,
20677 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20678 # This is irritatingly difficult to feature test for; we have to check the
20679 # date string after the version number. If we've got an in-tree
20680 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20681 # to be safe.
20682 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20683 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
20684 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
20685 if test "${gcc_cv_as_hidden+set}" = set; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20687 else
20688 gcc_cv_as_hidden=no
20689 if test $in_tree_gas = yes; then
20690 if test $in_tree_gas_is_elf = yes \
20691 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20692 then gcc_cv_as_hidden=yes
20694 elif test x$gcc_cv_as != x; then
20695 echo ' .hidden foobar
20696 foobar:' > conftest.s
20697 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699 (eval $ac_try) 2>&5
20700 ac_status=$?
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; }
20703 then
20704 gcc_cv_as_hidden=yes
20705 else
20706 echo "configure: failed program was" >&5
20707 cat conftest.s >&5
20709 rm -f conftest.o conftest.s
20712 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
20713 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
20716 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
20717 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
20718 if test "${gcc_cv_ld_hidden+set}" = set; then
20719 echo $ECHO_N "(cached) $ECHO_C" >&6
20720 else
20721 if test $in_tree_ld = yes ; then
20722 gcc_cv_ld_hidden=no
20723 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 \
20724 && test $in_tree_ld_is_elf = yes; then
20725 gcc_cv_ld_hidden=yes
20727 else
20728 gcc_cv_ld_hidden=yes
20729 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20730 if echo "$ld_ver" | grep GNU > /dev/null; then
20731 ld_vers=`echo $ld_ver | sed -n \
20732 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20733 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'`
20734 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
20735 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20736 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20737 if test 0"$ld_date" -lt 20020404; then
20738 if test -n "$ld_date"; then
20739 # If there was date string, but was earlier than 2002-04-04, fail
20740 gcc_cv_ld_hidden=no
20741 elif test -z "$ld_vers"; then
20742 # If there was no date string nor ld version number, something is wrong
20743 gcc_cv_ld_hidden=no
20744 else
20745 test -z "$ld_vers_patch" && ld_vers_patch=0
20746 if test "$ld_vers_major" -lt 2; then
20747 gcc_cv_ld_hidden=no
20748 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20749 gcc_cv_ld_hidden="no"
20750 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20751 gcc_cv_ld_hidden=no
20755 else
20756 case "${target}" in
20757 hppa64*-*-hpux* | ia64*-*-hpux*)
20758 gcc_cv_ld_hidden=yes
20761 gcc_cv_ld_hidden=no
20763 esac
20767 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
20768 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
20769 libgcc_visibility=no
20772 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20773 libgcc_visibility=yes
20775 cat >>confdefs.h <<\_ACEOF
20776 #define HAVE_GAS_HIDDEN 1
20777 _ACEOF
20781 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20782 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
20783 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
20784 if test "${gcc_cv_as_leb128+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20786 else
20787 gcc_cv_as_leb128=no
20788 if test $in_tree_gas = yes; then
20789 if test $in_tree_gas_is_elf = yes \
20790 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20791 then gcc_cv_as_leb128=yes
20793 elif test x$gcc_cv_as != x; then
20794 echo ' .data
20795 .uleb128 L2 - L1
20797 .uleb128 1280
20798 .sleb128 -1010
20799 L2:' > conftest.s
20800 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20802 (eval $ac_try) 2>&5
20803 ac_status=$?
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; }
20806 then
20807 # GAS versions before 2.11 do not support uleb128,
20808 # despite appearing to.
20809 # ??? There exists an elf-specific test that will crash
20810 # the assembler. Perhaps it's better to figure out whether
20811 # arbitrary sections are supported and try the test.
20812 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20813 if echo "$as_ver" | grep GNU > /dev/null; then
20814 as_vers=`echo $as_ver | sed -n \
20815 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20816 as_major=`expr "$as_vers" : '\([0-9]*\)'`
20817 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20818 if test $as_major -eq 2 && test $as_minor -lt 11
20819 then :
20820 else gcc_cv_as_leb128=yes
20823 else
20824 echo "configure: failed program was" >&5
20825 cat conftest.s >&5
20827 rm -f conftest.o conftest.s
20830 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
20831 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
20832 if test $gcc_cv_as_leb128 = yes; then
20834 cat >>confdefs.h <<\_ACEOF
20835 #define HAVE_AS_LEB128 1
20836 _ACEOF
20840 # GAS versions up to and including 2.11.0 may mis-optimize
20841 # .eh_frame data.
20842 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
20843 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
20844 if test "${gcc_cv_as_eh_frame+set}" = set; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20846 else
20847 gcc_cv_as_eh_frame=no
20848 if test $in_tree_gas = yes; then
20849 if test $in_tree_gas_is_elf = yes \
20850 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20851 then gcc_cv_as_eh_frame=yes
20853 elif test x$gcc_cv_as != x; then
20854 echo ' .text
20855 .LFB1:
20856 .4byte 0
20857 .L1:
20858 .4byte 0
20859 .LFE1:
20860 .section .eh_frame,"aw",@progbits
20861 __FRAME_BEGIN__:
20862 .4byte .LECIE1-.LSCIE1
20863 .LSCIE1:
20864 .4byte 0x0
20865 .byte 0x1
20866 .ascii "z\0"
20867 .byte 0x1
20868 .byte 0x78
20869 .byte 0x1a
20870 .byte 0x0
20871 .byte 0x4
20872 .4byte 1
20873 .p2align 1
20874 .LECIE1:
20875 .LSFDE1:
20876 .4byte .LEFDE1-.LASFDE1
20877 .LASFDE1:
20878 .4byte .LASFDE1-__FRAME_BEGIN__
20879 .4byte .LFB1
20880 .4byte .LFE1-.LFB1
20881 .byte 0x4
20882 .4byte .LFE1-.LFB1
20883 .byte 0x4
20884 .4byte .L1-.LFB1
20885 .LEFDE1:' > conftest.s
20886 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20889 ac_status=$?
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; }
20892 then
20893 cat > conftest.lit <<EOF
20894 0000 10000000 00000000 017a0001 781a0004 .........z..x...
20895 0010 01000000 12000000 18000000 00000000 ................
20896 0020 08000000 04080000 0044 .........D
20898 cat > conftest.big <<EOF
20899 0000 00000010 00000000 017a0001 781a0004 .........z..x...
20900 0010 00000001 00000012 00000018 00000000 ................
20901 0020 00000008 04000000 0844 .........D
20903 # If the assembler didn't choke, and we can objdump,
20904 # and we got the correct data, then succeed.
20905 # The text in the here-document typically retains its unix-style line
20906 # endings, while the output of objdump will use host line endings.
20907 # Therefore, use diff -b for the comparisons.
20908 if test x$gcc_cv_objdump != x \
20909 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
20910 | tail -3 > conftest.got \
20911 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
20912 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
20913 then
20914 gcc_cv_as_eh_frame=yes
20915 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
20916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20917 (eval $ac_try) 2>&5
20918 ac_status=$?
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; }; then
20921 gcc_cv_as_eh_frame=buggy
20922 else
20923 # Uh oh, what do we do now?
20924 gcc_cv_as_eh_frame=no
20926 else
20927 echo "configure: failed program was" >&5
20928 cat conftest.s >&5
20930 rm -f conftest.o conftest.s
20933 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
20934 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
20937 if test $gcc_cv_as_eh_frame = buggy; then
20939 cat >>confdefs.h <<\_ACEOF
20940 #define USE_AS_TRADITIONAL_FORMAT 1
20941 _ACEOF
20945 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20946 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20947 if test "${gcc_cv_as_shf_merge+set}" = set; then
20948 echo $ECHO_N "(cached) $ECHO_C" >&6
20949 else
20950 gcc_cv_as_shf_merge=no
20951 if test $in_tree_gas = yes; then
20952 if test $in_tree_gas_is_elf = yes \
20953 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20954 then gcc_cv_as_shf_merge=yes
20956 elif test x$gcc_cv_as != x; then
20957 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
20958 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; }
20964 then
20965 gcc_cv_as_shf_merge=yes
20966 else
20967 echo "configure: failed program was" >&5
20968 cat conftest.s >&5
20970 rm -f conftest.o conftest.s
20973 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20974 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20976 if test $gcc_cv_as_shf_merge = no; then
20977 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20978 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20979 if test "${gcc_cv_as_shf_merge+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 else
20982 gcc_cv_as_shf_merge=no
20983 if test $in_tree_gas = yes; then
20984 if test $in_tree_gas_is_elf = yes \
20985 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20986 then gcc_cv_as_shf_merge=yes
20988 elif test x$gcc_cv_as != x; then
20989 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
20990 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992 (eval $ac_try) 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; }
20996 then
20997 gcc_cv_as_shf_merge=yes
20998 else
20999 echo "configure: failed program was" >&5
21000 cat conftest.s >&5
21002 rm -f conftest.o conftest.s
21005 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21006 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21010 cat >>confdefs.h <<_ACEOF
21011 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21012 _ACEOF
21015 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21016 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21017 if test "${gcc_cv_as_comdat_group+set}" = set; then
21018 echo $ECHO_N "(cached) $ECHO_C" >&6
21019 else
21020 gcc_cv_as_comdat_group=no
21021 if test $in_tree_gas = yes; then
21022 if test $in_tree_gas_is_elf = yes \
21023 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21024 then gcc_cv_as_comdat_group=yes
21026 elif test x$gcc_cv_as != x; then
21027 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21028 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030 (eval $ac_try) 2>&5
21031 ac_status=$?
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; }
21034 then
21035 gcc_cv_as_comdat_group=yes
21036 else
21037 echo "configure: failed program was" >&5
21038 cat conftest.s >&5
21040 rm -f conftest.o conftest.s
21043 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21044 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
21046 if test $gcc_cv_as_comdat_group = yes; then
21047 gcc_cv_as_comdat_group_percent=no
21048 else
21049 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21050 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21051 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21052 echo $ECHO_N "(cached) $ECHO_C" >&6
21053 else
21054 gcc_cv_as_comdat_group_percent=no
21055 if test $in_tree_gas = yes; then
21056 if test $in_tree_gas_is_elf = yes \
21057 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21058 then gcc_cv_as_comdat_group_percent=yes
21060 elif test x$gcc_cv_as != x; then
21061 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21062 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21064 (eval $ac_try) 2>&5
21065 ac_status=$?
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); }; }
21068 then
21069 gcc_cv_as_comdat_group_percent=yes
21070 else
21071 echo "configure: failed program was" >&5
21072 cat conftest.s >&5
21074 rm -f conftest.o conftest.s
21077 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21078 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21081 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21082 comdat_group=yes
21083 if test 0"$ld_date" -lt 20050308; then
21084 if test -n "$ld_date"; then
21085 # If there was date string, but was earlier than 2005-03-08, fail
21086 comdat_group=no
21087 elif test "$ld_vers_major" -lt 2; then
21088 comdat_group=no
21089 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21090 comdat_group=no
21093 else
21094 # assume linkers other than GNU ld don't support COMDAT group
21095 comdat_group=no
21097 if test $comdat_group = no; then
21098 gcc_cv_as_comdat_group=no
21099 gcc_cv_as_comdat_group_percent=no
21102 cat >>confdefs.h <<_ACEOF
21103 #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`
21104 _ACEOF
21107 # Thread-local storage - the check is heavily parametrized.
21108 conftest_s=
21109 tls_first_major=
21110 tls_first_minor=
21111 tls_as_opt=
21112 case "$target" in
21113 alpha*-*-*)
21114 conftest_s='
21115 .section ".tdata","awT",@progbits
21116 foo: .long 25
21117 .text
21118 ldq $27,__tls_get_addr($29) !literal!1
21119 lda $16,foo($29) !tlsgd!1
21120 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21121 ldq $27,__tls_get_addr($29) !literal!2
21122 lda $16,foo($29) !tlsldm!2
21123 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21124 ldq $1,foo($29) !gotdtprel
21125 ldah $2,foo($29) !dtprelhi
21126 lda $3,foo($2) !dtprello
21127 lda $4,foo($29) !dtprel
21128 ldq $1,foo($29) !gottprel
21129 ldah $2,foo($29) !tprelhi
21130 lda $3,foo($2) !tprello
21131 lda $4,foo($29) !tprel'
21132 tls_first_major=2
21133 tls_first_minor=13
21134 tls_as_opt=--fatal-warnings
21136 frv*-*-*)
21137 conftest_s='
21138 .section ".tdata","awT",@progbits
21139 x: .long 25
21140 .text
21141 call #gettlsoff(x)'
21142 tls_first_major=2
21143 tls_first_minor=14
21145 hppa*-*-linux*)
21146 conftest_s='
21147 t1: .reg %r20
21148 t2: .reg %r21
21149 gp: .reg %r19
21150 .section ".tdata","awT",@progbits
21151 foo: .long 25
21152 .text
21153 .align 4
21154 addil LT%foo-$tls_gdidx$,gp
21155 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21156 b __tls_get_addr
21158 addil LT%foo-$tls_ldidx$,gp
21159 b __tls_get_addr
21160 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21161 addil LR%foo-$tls_dtpoff$,%ret0
21162 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21163 mfctl %cr27,%t1
21164 addil LT%foo-$tls_ieoff$,gp
21165 ldw RT%foo-$tls_ieoff$(%r1),%t2
21166 add %t1,%t2,%t3
21167 mfctl %cr27,%t1
21168 addil LR%foo-$tls_leoff$,%t1
21169 ldo RR%foo-$tls_leoff$(%r1),%t2'
21170 tls_first_major=2
21171 tls_first_minor=15
21172 tls_as_opt=--fatal-warnings
21174 arm*-*-*)
21175 conftest_s='
21176 .section ".tdata","awT",%progbits
21177 foo: .long 25
21178 .text
21179 .word foo(gottpoff)
21180 .word foo(tpoff)
21181 .word foo(tlsgd)
21182 .word foo(tlsldm)
21183 .word foo(tlsldo)'
21184 tls_first_major=2
21185 tls_first_minor=17
21187 i[34567]86-*-*)
21188 conftest_s='
21189 .section ".tdata","awT",@progbits
21190 foo: .long 25
21191 .text
21192 movl %gs:0, %eax
21193 leal foo@TLSGD(,%ebx,1), %eax
21194 leal foo@TLSLDM(%ebx), %eax
21195 leal foo@DTPOFF(%eax), %edx
21196 movl foo@GOTTPOFF(%ebx), %eax
21197 subl foo@GOTTPOFF(%ebx), %eax
21198 addl foo@GOTNTPOFF(%ebx), %eax
21199 movl foo@INDNTPOFF, %eax
21200 movl $foo@TPOFF, %eax
21201 subl $foo@TPOFF, %eax
21202 leal foo@NTPOFF(%ecx), %eax'
21203 tls_first_major=2
21204 tls_first_minor=14
21205 tls_as_opt=--fatal-warnings
21207 x86_64-*-*)
21208 conftest_s='
21209 .section ".tdata","awT",@progbits
21210 foo: .long 25
21211 .text
21212 movq %fs:0, %rax
21213 leaq foo@TLSGD(%rip), %rdi
21214 leaq foo@TLSLD(%rip), %rdi
21215 leaq foo@DTPOFF(%rax), %rdx
21216 movq foo@GOTTPOFF(%rip), %rax
21217 movq $foo@TPOFF, %rax'
21218 tls_first_major=2
21219 tls_first_minor=14
21220 tls_as_opt=--fatal-warnings
21222 ia64-*-*)
21223 conftest_s='
21224 .section ".tdata","awT",@progbits
21225 foo: data8 25
21226 .text
21227 addl r16 = @ltoff(@dtpmod(foo#)), gp
21228 addl r17 = @ltoff(@dtprel(foo#)), gp
21229 addl r18 = @ltoff(@tprel(foo#)), gp
21230 addl r19 = @dtprel(foo#), gp
21231 adds r21 = @dtprel(foo#), r13
21232 movl r23 = @dtprel(foo#)
21233 addl r20 = @tprel(foo#), gp
21234 adds r22 = @tprel(foo#), r13
21235 movl r24 = @tprel(foo#)'
21236 tls_first_major=2
21237 tls_first_minor=13
21238 tls_as_opt=--fatal-warnings
21240 mips*-*-*)
21241 conftest_s='
21242 .section .tdata,"awT",@progbits
21244 .word 2
21245 .text
21246 addiu $4, $28, %tlsgd(x)
21247 addiu $4, $28, %tlsldm(x)
21248 lui $4, %dtprel_hi(x)
21249 addiu $4, $4, %dtprel_lo(x)
21250 lw $4, %gottprel(x)($28)
21251 lui $4, %tprel_hi(x)
21252 addiu $4, $4, %tprel_lo(x)'
21253 tls_first_major=2
21254 tls_first_minor=16
21255 tls_as_opt='-32 --fatal-warnings'
21257 powerpc-*-*)
21258 conftest_s='
21259 .section ".tdata","awT",@progbits
21260 .align 2
21261 ld0: .space 4
21262 ld1: .space 4
21263 x1: .space 4
21264 x2: .space 4
21265 x3: .space 4
21266 .text
21267 addi 3,31,ld0@got@tlsgd
21268 bl __tls_get_addr
21269 addi 3,31,x1@got@tlsld
21270 bl __tls_get_addr
21271 addi 9,3,x1@dtprel
21272 addis 9,3,x2@dtprel@ha
21273 addi 9,9,x2@dtprel@l
21274 lwz 9,x3@got@tprel(31)
21275 add 9,9,x@tls
21276 addi 9,2,x1@tprel
21277 addis 9,2,x2@tprel@ha
21278 addi 9,9,x2@tprel@l'
21279 tls_first_major=2
21280 tls_first_minor=14
21281 tls_as_opt="-a32 --fatal-warnings"
21283 powerpc64-*-*)
21284 conftest_s='
21285 .section ".tdata","awT",@progbits
21286 .align 3
21287 ld0: .space 8
21288 ld1: .space 8
21289 x1: .space 8
21290 x2: .space 8
21291 x3: .space 8
21292 .text
21293 addi 3,2,ld0@got@tlsgd
21294 bl .__tls_get_addr
21296 addi 3,2,ld1@toc
21297 bl .__tls_get_addr
21299 addi 3,2,x1@got@tlsld
21300 bl .__tls_get_addr
21302 addi 9,3,x1@dtprel
21303 bl .__tls_get_addr
21305 addis 9,3,x2@dtprel@ha
21306 addi 9,9,x2@dtprel@l
21307 bl .__tls_get_addr
21309 ld 9,x3@got@dtprel(2)
21310 add 9,9,3
21311 bl .__tls_get_addr
21312 nop'
21313 tls_first_major=2
21314 tls_first_minor=14
21315 tls_as_opt="-a64 --fatal-warnings"
21317 s390-*-*)
21318 conftest_s='
21319 .section ".tdata","awT",@progbits
21320 foo: .long 25
21321 .text
21322 .long foo@TLSGD
21323 .long foo@TLSLDM
21324 .long foo@DTPOFF
21325 .long foo@NTPOFF
21326 .long foo@GOTNTPOFF
21327 .long foo@INDNTPOFF
21328 l %r1,foo@GOTNTPOFF(%r12)
21329 l %r1,0(%r1):tls_load:foo
21330 bas %r14,0(%r1,%r13):tls_gdcall:foo
21331 bas %r14,0(%r1,%r13):tls_ldcall:foo'
21332 tls_first_major=2
21333 tls_first_minor=14
21334 tls_as_opt="-m31 --fatal-warnings"
21336 s390x-*-*)
21337 conftest_s='
21338 .section ".tdata","awT",@progbits
21339 foo: .long 25
21340 .text
21341 .quad foo@TLSGD
21342 .quad foo@TLSLDM
21343 .quad foo@DTPOFF
21344 .quad foo@NTPOFF
21345 .quad foo@GOTNTPOFF
21346 lg %r1,foo@GOTNTPOFF(%r12)
21347 larl %r1,foo@INDNTPOFF
21348 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
21349 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21350 tls_first_major=2
21351 tls_first_minor=14
21352 tls_as_opt="-m64 -Aesame --fatal-warnings"
21354 sh-*-* | sh[34]-*-*)
21355 conftest_s='
21356 .section ".tdata","awT",@progbits
21357 foo: .long 25
21358 .text
21359 .long foo@TLSGD
21360 .long foo@TLSLDM
21361 .long foo@DTPOFF
21362 .long foo@GOTTPOFF
21363 .long foo@TPOFF'
21364 tls_first_major=2
21365 tls_first_minor=13
21366 tls_as_opt=--fatal-warnings
21368 sparc*-*-*)
21369 case "$target" in
21370 sparc*-sun-solaris2.[56789]*)
21371 # TLS was introduced in the Solaris 9 4/04 release but
21372 # we do not enable it by default on Solaris 9 either.
21373 if test "x$enable_tls" = xyes ; then
21374 on_solaris=yes
21375 else
21376 enable_tls=no;
21379 sparc*-sun-solaris2.*)
21380 on_solaris=yes
21383 on_solaris=no
21385 esac
21386 if test x$on_solaris = xyes && test x$gas_flag = xno; then
21387 conftest_s='
21388 .section ".tdata",#alloc,#write,#tls
21389 foo: .long 25
21390 .text
21391 sethi %tgd_hi22(foo), %o0
21392 add %o0, %tgd_lo10(foo), %o1
21393 add %l7, %o1, %o0, %tgd_add(foo)
21394 call __tls_get_addr, %tgd_call(foo)
21395 sethi %tldm_hi22(foo), %l1
21396 add %l1, %tldm_lo10(foo), %l2
21397 add %l7, %l2, %o0, %tldm_add(foo)
21398 call __tls_get_addr, %tldm_call(foo)
21399 sethi %tldo_hix22(foo), %l3
21400 xor %l3, %tldo_lox10(foo), %l4
21401 add %o0, %l4, %l5, %tldo_add(foo)
21402 sethi %tie_hi22(foo), %o3
21403 add %o3, %tie_lo10(foo), %o3
21404 ld [%l7 + %o3], %o2, %tie_ld(foo)
21405 add %g7, %o2, %o4, %tie_add(foo)
21406 sethi %tle_hix22(foo), %l1
21407 xor %l1, %tle_lox10(foo), %o5
21408 ld [%g7 + %o5], %o1'
21409 tls_first_major=0
21410 tls_first_minor=0
21411 else
21412 conftest_s='
21413 .section ".tdata","awT",@progbits
21414 foo: .long 25
21415 .text
21416 sethi %tgd_hi22(foo), %o0
21417 add %o0, %tgd_lo10(foo), %o1
21418 add %l7, %o1, %o0, %tgd_add(foo)
21419 call __tls_get_addr, %tgd_call(foo)
21420 sethi %tldm_hi22(foo), %l1
21421 add %l1, %tldm_lo10(foo), %l2
21422 add %l7, %l2, %o0, %tldm_add(foo)
21423 call __tls_get_addr, %tldm_call(foo)
21424 sethi %tldo_hix22(foo), %l3
21425 xor %l3, %tldo_lox10(foo), %l4
21426 add %o0, %l4, %l5, %tldo_add(foo)
21427 sethi %tie_hi22(foo), %o3
21428 add %o3, %tie_lo10(foo), %o3
21429 ld [%l7 + %o3], %o2, %tie_ld(foo)
21430 add %g7, %o2, %o4, %tie_add(foo)
21431 sethi %tle_hix22(foo), %l1
21432 xor %l1, %tle_lox10(foo), %o5
21433 ld [%g7 + %o5], %o1'
21434 tls_first_major=2
21435 tls_first_minor=14
21436 tls_as_opt="-32 --fatal-warnings"
21439 esac
21440 set_have_as_tls=no
21441 if test "x$enable_tls" = xno ; then
21442 : # TLS explicitly disabled.
21443 elif test "x$enable_tls" = xyes ; then
21444 set_have_as_tls=yes # TLS explicitly enabled.
21445 elif test -z "$tls_first_major"; then
21446 : # If we don't have a check, assume no support.
21447 else
21448 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
21449 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
21450 if test "${gcc_cv_as_tls+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21452 else
21453 gcc_cv_as_tls=no
21454 if test $in_tree_gas = yes; then
21455 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21456 then gcc_cv_as_tls=yes
21458 elif test x$gcc_cv_as != x; then
21459 echo "$conftest_s" > conftest.s
21460 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21462 (eval $ac_try) 2>&5
21463 ac_status=$?
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); }; }
21466 then
21467 gcc_cv_as_tls=yes
21468 else
21469 echo "configure: failed program was" >&5
21470 cat conftest.s >&5
21472 rm -f conftest.o conftest.s
21475 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
21476 echo "${ECHO_T}$gcc_cv_as_tls" >&6
21477 if test $gcc_cv_as_tls = yes; then
21478 set_have_as_tls=yes
21481 if test $set_have_as_tls = yes ; then
21483 cat >>confdefs.h <<\_ACEOF
21484 #define HAVE_AS_TLS 1
21485 _ACEOF
21489 # Target-specific assembler checks.
21491 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
21492 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
21493 gcc_cv_ld_static_dynamic=no
21494 if test $in_tree_ld = yes ; then
21495 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
21496 gcc_cv_ld_static_dynamic=yes
21498 elif test x$gcc_cv_ld != x; then
21499 # Check if linker supports -Bstatic/-Bdynamic option
21500 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
21501 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
21502 gcc_cv_ld_static_dynamic=yes
21505 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
21507 cat >>confdefs.h <<\_ACEOF
21508 #define HAVE_LD_STATIC_DYNAMIC 1
21509 _ACEOF
21512 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
21513 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
21515 if test x"$demangler_in_ld" = xyes; then
21516 echo "$as_me:$LINENO: checking linker --demangle support" >&5
21517 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
21518 gcc_cv_ld_demangle=no
21519 if test $in_tree_ld = yes; then
21520 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 \
21521 gcc_cv_ld_demangle=yes
21523 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
21524 # Check if the GNU linker supports --demangle option
21525 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
21526 gcc_cv_ld_demangle=yes
21529 if test x"$gcc_cv_ld_demangle" = xyes; then
21531 cat >>confdefs.h <<\_ACEOF
21532 #define HAVE_LD_DEMANGLE 1
21533 _ACEOF
21536 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
21537 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
21540 case "$target" in
21541 # All TARGET_ABI_OSF targets.
21542 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
21543 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
21544 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
21545 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21547 else
21548 gcc_cv_as_alpha_explicit_relocs=no
21549 if test $in_tree_gas = yes; then
21550 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21551 then gcc_cv_as_alpha_explicit_relocs=yes
21553 elif test x$gcc_cv_as != x; then
21554 echo ' .set nomacro
21555 .text
21556 extbl $3, $2, $3 !lituse_bytoff!1
21557 ldq $2, a($29) !literal!1
21558 ldq $4, b($29) !literal!2
21559 ldq_u $3, 0($2) !lituse_base!1
21560 ldq $27, f($29) !literal!5
21561 jsr $26, ($27), f !lituse_jsr!5
21562 ldah $29, 0($26) !gpdisp!3
21563 lda $0, c($29) !gprel
21564 ldah $1, d($29) !gprelhigh
21565 lda $1, d($1) !gprellow
21566 lda $29, 0($29) !gpdisp!3' > conftest.s
21567 if { ac_try='$gcc_cv_as -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 gcc_cv_as_alpha_explicit_relocs=yes
21575 else
21576 echo "configure: failed program was" >&5
21577 cat conftest.s >&5
21579 rm -f conftest.o conftest.s
21582 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21583 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
21584 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21586 cat >>confdefs.h <<\_ACEOF
21587 #define HAVE_AS_EXPLICIT_RELOCS 1
21588 _ACEOF
21591 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
21592 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
21593 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
21594 echo $ECHO_N "(cached) $ECHO_C" >&6
21595 else
21596 gcc_cv_as_alpha_jsrdirect_relocs=no
21597 if test $in_tree_gas = yes; then
21598 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21599 then gcc_cv_as_alpha_jsrdirect_relocs=yes
21601 elif test x$gcc_cv_as != x; then
21602 echo ' .set nomacro
21603 .text
21604 ldq $27, a($29) !literal!1
21605 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
21606 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; }
21612 then
21613 gcc_cv_as_alpha_jsrdirect_relocs=yes
21614 else
21615 echo "configure: failed program was" >&5
21616 cat conftest.s >&5
21618 rm -f conftest.o conftest.s
21621 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21622 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
21623 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21625 cat >>confdefs.h <<\_ACEOF
21626 #define HAVE_AS_JSRDIRECT_RELOCS 1
21627 _ACEOF
21632 cris-*-*)
21633 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
21634 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
21635 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
21636 echo $ECHO_N "(cached) $ECHO_C" >&6
21637 else
21638 gcc_cv_as_cris_no_mul_bug=no
21639 if test $in_tree_gas = yes; then
21640 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21641 then gcc_cv_as_cris_no_mul_bug=yes
21643 elif test x$gcc_cv_as != x; then
21644 echo '.text' > conftest.s
21645 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647 (eval $ac_try) 2>&5
21648 ac_status=$?
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); }; }
21651 then
21652 gcc_cv_as_cris_no_mul_bug=yes
21653 else
21654 echo "configure: failed program was" >&5
21655 cat conftest.s >&5
21657 rm -f conftest.o conftest.s
21660 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
21661 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
21662 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21664 cat >>confdefs.h <<\_ACEOF
21665 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
21666 _ACEOF
21671 sparc*-*-*)
21672 echo "$as_me:$LINENO: checking assembler for .register" >&5
21673 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
21674 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
21675 echo $ECHO_N "(cached) $ECHO_C" >&6
21676 else
21677 gcc_cv_as_sparc_register_op=no
21678 if test x$gcc_cv_as != x; then
21679 echo '.register %g2, #scratch' > conftest.s
21680 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682 (eval $ac_try) 2>&5
21683 ac_status=$?
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; }
21686 then
21687 gcc_cv_as_sparc_register_op=yes
21688 else
21689 echo "configure: failed program was" >&5
21690 cat conftest.s >&5
21692 rm -f conftest.o conftest.s
21695 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
21696 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
21697 if test $gcc_cv_as_sparc_register_op = yes; then
21699 cat >>confdefs.h <<\_ACEOF
21700 #define HAVE_AS_REGISTER_PSEUDO_OP 1
21701 _ACEOF
21705 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
21706 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
21707 if test "${gcc_cv_as_sparc_relax+set}" = set; then
21708 echo $ECHO_N "(cached) $ECHO_C" >&6
21709 else
21710 gcc_cv_as_sparc_relax=no
21711 if test x$gcc_cv_as != x; then
21712 echo '.text' > conftest.s
21713 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21716 ac_status=$?
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; }
21719 then
21720 gcc_cv_as_sparc_relax=yes
21721 else
21722 echo "configure: failed program was" >&5
21723 cat conftest.s >&5
21725 rm -f conftest.o conftest.s
21728 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
21729 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
21730 if test $gcc_cv_as_sparc_relax = yes; then
21732 cat >>confdefs.h <<\_ACEOF
21733 #define HAVE_AS_RELAX_OPTION 1
21734 _ACEOF
21738 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
21739 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
21740 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21742 else
21743 gcc_cv_as_sparc_ua_pcrel=no
21744 if test x$gcc_cv_as != x; then
21745 echo '.text
21746 foo:
21748 .data
21749 .align 4
21750 .byte 0
21751 .uaword %r_disp32(foo)' > conftest.s
21752 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21755 ac_status=$?
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; }
21758 then
21759 if test x$gcc_cv_ld != x \
21760 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
21761 gcc_cv_as_sparc_ua_pcrel=yes
21763 rm -f conftest
21764 else
21765 echo "configure: failed program was" >&5
21766 cat conftest.s >&5
21768 rm -f conftest.o conftest.s
21771 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
21772 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
21773 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
21775 cat >>confdefs.h <<\_ACEOF
21776 #define HAVE_AS_SPARC_UA_PCREL 1
21777 _ACEOF
21780 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
21781 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
21782 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
21783 echo $ECHO_N "(cached) $ECHO_C" >&6
21784 else
21785 gcc_cv_as_sparc_ua_pcrel_hidden=no
21786 if test x$gcc_cv_as != x; then
21787 echo '.data
21788 .align 4
21789 .byte 0x31
21790 .uaword %r_disp32(foo)
21791 .byte 0x32, 0x33, 0x34
21792 .global foo
21793 .hidden foo
21794 foo:
21795 .skip 4' > conftest.s
21796 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21798 (eval $ac_try) 2>&5
21799 ac_status=$?
21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801 (exit $ac_status); }; }
21802 then
21803 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
21804 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
21805 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
21806 | grep ' 31000000 07323334' > /dev/null 2>&1; then
21807 if $gcc_cv_objdump -R conftest 2> /dev/null \
21808 | grep 'DISP32' > /dev/null 2>&1; then
21810 else
21811 gcc_cv_as_sparc_ua_pcrel_hidden=yes
21814 rm -f conftest
21815 else
21816 echo "configure: failed program was" >&5
21817 cat conftest.s >&5
21819 rm -f conftest.o conftest.s
21822 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
21823 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
21824 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
21826 cat >>confdefs.h <<\_ACEOF
21827 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
21828 _ACEOF
21832 fi # unaligned pcrel relocs
21834 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
21835 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
21836 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
21837 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 else
21839 gcc_cv_as_sparc_offsetable_lo10=no
21840 if test x$gcc_cv_as != x; then
21841 echo '.text
21842 or %g1, %lo(ab) + 12, %g1
21843 or %g1, %lo(ab + 12), %g1' > conftest.s
21844 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }
21850 then
21851 if test x$gcc_cv_objdump != x \
21852 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
21853 | grep ' 82106000 82106000' > /dev/null 2>&1; then
21854 gcc_cv_as_sparc_offsetable_lo10=yes
21856 else
21857 echo "configure: failed program was" >&5
21858 cat conftest.s >&5
21860 rm -f conftest.o conftest.s
21863 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
21864 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
21865 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
21867 cat >>confdefs.h <<\_ACEOF
21868 #define HAVE_AS_OFFSETABLE_LO10 1
21869 _ACEOF
21874 i[34567]86-*-* | x86_64-*-*)
21875 case $target_os in
21876 cygwin* | pe | mingw32*)
21877 # Used for DWARF 2 in PE
21878 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
21879 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
21880 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 else
21883 gcc_cv_as_ix86_pe_secrel32=no
21884 if test $in_tree_gas = yes; then
21885 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21886 then gcc_cv_as_ix86_pe_secrel32=yes
21888 elif test x$gcc_cv_as != x; then
21889 echo '.text
21890 foo: nop
21891 .data
21892 .secrel32 foo' > conftest.s
21893 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }
21899 then
21900 if test x$gcc_cv_ld != x \
21901 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
21902 gcc_cv_as_ix86_pe_secrel32=yes
21904 rm -f conftest
21905 else
21906 echo "configure: failed program was" >&5
21907 cat conftest.s >&5
21909 rm -f conftest.o conftest.s
21912 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
21913 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
21914 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
21916 cat >>confdefs.h <<\_ACEOF
21917 #define HAVE_GAS_PE_SECREL32_RELOC 1
21918 _ACEOF
21922 esac
21924 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
21925 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
21926 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21928 else
21929 gcc_cv_as_ix86_filds_fists=no
21930 if test $in_tree_gas = yes; then
21931 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21932 then gcc_cv_as_ix86_filds_fists=yes
21934 elif test x$gcc_cv_as != x; then
21935 echo 'filds mem; fists mem' > conftest.s
21936 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938 (eval $ac_try) 2>&5
21939 ac_status=$?
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; }
21942 then
21943 gcc_cv_as_ix86_filds_fists=yes
21944 else
21945 echo "configure: failed program was" >&5
21946 cat conftest.s >&5
21948 rm -f conftest.o conftest.s
21951 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
21952 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
21953 if test $gcc_cv_as_ix86_filds_fists = yes; then
21955 cat >>confdefs.h <<\_ACEOF
21956 #define HAVE_GAS_FILDS_FISTS 1
21957 _ACEOF
21961 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
21962 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
21963 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21965 else
21966 gcc_cv_as_ix86_cmov_sun_syntax=no
21967 if test x$gcc_cv_as != x; then
21968 echo 'cmovl.l %edx, %eax' > conftest.s
21969 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21971 (eval $ac_try) 2>&5
21972 ac_status=$?
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); }; }
21975 then
21976 gcc_cv_as_ix86_cmov_sun_syntax=yes
21977 else
21978 echo "configure: failed program was" >&5
21979 cat conftest.s >&5
21981 rm -f conftest.o conftest.s
21984 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
21985 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
21986 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
21988 cat >>confdefs.h <<\_ACEOF
21989 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
21990 _ACEOF
21994 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
21995 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
21996 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
21997 echo $ECHO_N "(cached) $ECHO_C" >&6
21998 else
21999 gcc_cv_as_ix86_ffreep=no
22000 if test x$gcc_cv_as != x; then
22001 echo 'ffreep %st(1)' > conftest.s
22002 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004 (eval $ac_try) 2>&5
22005 ac_status=$?
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; }
22008 then
22009 gcc_cv_as_ix86_ffreep=yes
22010 else
22011 echo "configure: failed program was" >&5
22012 cat conftest.s >&5
22014 rm -f conftest.o conftest.s
22017 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22018 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
22019 if test $gcc_cv_as_ix86_ffreep = yes; then
22021 cat >>confdefs.h <<\_ACEOF
22022 #define HAVE_AS_IX86_FFREEP 1
22023 _ACEOF
22027 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22028 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
22029 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22030 echo $ECHO_N "(cached) $ECHO_C" >&6
22031 else
22032 gcc_cv_as_ix86_sahf=no
22033 if test x$gcc_cv_as != x; then
22034 echo 'sahf' > conftest.s
22035 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037 (eval $ac_try) 2>&5
22038 ac_status=$?
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; }
22041 then
22042 gcc_cv_as_ix86_sahf=yes
22043 else
22044 echo "configure: failed program was" >&5
22045 cat conftest.s >&5
22047 rm -f conftest.o conftest.s
22050 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22051 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
22052 if test $gcc_cv_as_ix86_sahf = yes; then
22054 cat >>confdefs.h <<\_ACEOF
22055 #define HAVE_AS_IX86_SAHF 1
22056 _ACEOF
22060 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22061 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22062 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22063 echo $ECHO_N "(cached) $ECHO_C" >&6
22064 else
22065 gcc_cv_as_ix86_diff_sect_delta=no
22066 if test x$gcc_cv_as != x; then
22067 echo '.section .rodata
22068 .L1:
22069 .long .L2-.L1
22070 .long .L3-.L1
22071 .text
22072 .L3: nop
22073 .L2: nop' > conftest.s
22074 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22077 ac_status=$?
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; }
22080 then
22081 gcc_cv_as_ix86_diff_sect_delta=yes
22082 else
22083 echo "configure: failed program was" >&5
22084 cat conftest.s >&5
22086 rm -f conftest.o conftest.s
22089 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22090 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22091 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22093 cat >>confdefs.h <<\_ACEOF
22094 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22095 _ACEOF
22099 # This one is used unconditionally by i386.[ch]; it is to be defined
22100 # to 1 if the feature is present, 0 otherwise.
22101 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22102 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22103 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22104 echo $ECHO_N "(cached) $ECHO_C" >&6
22105 else
22106 gcc_cv_as_ix86_gotoff_in_data=no
22107 if test $in_tree_gas = yes; then
22108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22109 then gcc_cv_as_ix86_gotoff_in_data=yes
22111 elif test x$gcc_cv_as != x; then
22112 echo ' .text
22113 .L0:
22115 .data
22116 .long .L0@GOTOFF' > conftest.s
22117 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; }
22123 then
22124 gcc_cv_as_ix86_gotoff_in_data=yes
22125 else
22126 echo "configure: failed program was" >&5
22127 cat conftest.s >&5
22129 rm -f conftest.o conftest.s
22132 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22133 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22136 cat >>confdefs.h <<_ACEOF
22137 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22138 _ACEOF
22142 ia64*-*-*)
22143 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22144 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22145 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22146 echo $ECHO_N "(cached) $ECHO_C" >&6
22147 else
22148 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22149 if test $in_tree_gas = yes; then
22150 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22151 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22153 elif test x$gcc_cv_as != x; then
22154 echo ' .text
22155 addl r15 = @ltoffx(x#), gp
22157 ld8.mov r16 = [r15], x#' > conftest.s
22158 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160 (eval $ac_try) 2>&5
22161 ac_status=$?
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); }; }
22164 then
22165 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22166 else
22167 echo "configure: failed program was" >&5
22168 cat conftest.s >&5
22170 rm -f conftest.o conftest.s
22173 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22174 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22175 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22177 cat >>confdefs.h <<\_ACEOF
22178 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22179 _ACEOF
22185 powerpc*-*-*)
22186 case $target in
22187 *-*-aix*) conftest_s=' .machine "pwr5"
22188 .csect .text[PR]
22189 mfcr 3,128';;
22190 *-*-darwin*)
22191 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22192 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22193 if test "${gcc_cv_as_machine_directive+set}" = set; then
22194 echo $ECHO_N "(cached) $ECHO_C" >&6
22195 else
22196 gcc_cv_as_machine_directive=no
22197 if test x$gcc_cv_as != x; then
22198 echo ' .machine ppc7400' > conftest.s
22199 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201 (eval $ac_try) 2>&5
22202 ac_status=$?
22203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204 (exit $ac_status); }; }
22205 then
22206 gcc_cv_as_machine_directive=yes
22207 else
22208 echo "configure: failed program was" >&5
22209 cat conftest.s >&5
22211 rm -f conftest.o conftest.s
22214 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22215 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22217 if test x$gcc_cv_as_machine_directive != xyes; then
22218 echo "*** This target requires an assembler supporting \".machine\"" >&2
22219 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22220 test x$build = x$target && exit 1
22222 conftest_s=' .text
22223 mfcr r3,128';;
22224 *) conftest_s=' .machine power4
22225 .text
22226 mfcr 3,128';;
22227 esac
22229 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22230 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22231 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
22232 echo $ECHO_N "(cached) $ECHO_C" >&6
22233 else
22234 gcc_cv_as_powerpc_mfcrf=no
22235 if test $in_tree_gas = yes; then
22236 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22237 then gcc_cv_as_powerpc_mfcrf=yes
22239 elif test x$gcc_cv_as != x; then
22240 echo "$conftest_s" > conftest.s
22241 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243 (eval $ac_try) 2>&5
22244 ac_status=$?
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); }; }
22247 then
22248 gcc_cv_as_powerpc_mfcrf=yes
22249 else
22250 echo "configure: failed program was" >&5
22251 cat conftest.s >&5
22253 rm -f conftest.o conftest.s
22256 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
22257 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
22258 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22260 cat >>confdefs.h <<\_ACEOF
22261 #define HAVE_AS_MFCRF 1
22262 _ACEOF
22266 case $target in
22267 *-*-aix*) conftest_s=' .machine "pwr5"
22268 .csect .text[PR]
22269 popcntb 3,3';;
22270 *) conftest_s=' .machine power5
22271 .text
22272 popcntb 3,3';;
22273 esac
22275 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22276 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22277 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22278 echo $ECHO_N "(cached) $ECHO_C" >&6
22279 else
22280 gcc_cv_as_powerpc_popcntb=no
22281 if test $in_tree_gas = yes; then
22282 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22283 then gcc_cv_as_powerpc_popcntb=yes
22285 elif test x$gcc_cv_as != x; then
22286 echo "$conftest_s" > conftest.s
22287 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289 (eval $ac_try) 2>&5
22290 ac_status=$?
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; }
22293 then
22294 gcc_cv_as_powerpc_popcntb=yes
22295 else
22296 echo "configure: failed program was" >&5
22297 cat conftest.s >&5
22299 rm -f conftest.o conftest.s
22302 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
22303 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
22304 if test $gcc_cv_as_powerpc_popcntb = yes; then
22306 cat >>confdefs.h <<\_ACEOF
22307 #define HAVE_AS_POPCNTB 1
22308 _ACEOF
22312 case $target in
22313 *-*-aix*) conftest_s=' .machine "pwr5x"
22314 .csect .text[PR]
22315 frin 1,1';;
22316 *) conftest_s=' .machine power5
22317 .text
22318 frin 1,1';;
22319 esac
22321 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
22322 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
22323 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22325 else
22326 gcc_cv_as_powerpc_fprnd=no
22327 if test $in_tree_gas = yes; then
22328 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22329 then gcc_cv_as_powerpc_fprnd=yes
22331 elif test x$gcc_cv_as != x; then
22332 echo "$conftest_s" > conftest.s
22333 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22336 ac_status=$?
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }
22339 then
22340 gcc_cv_as_powerpc_fprnd=yes
22341 else
22342 echo "configure: failed program was" >&5
22343 cat conftest.s >&5
22345 rm -f conftest.o conftest.s
22348 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
22349 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
22350 if test $gcc_cv_as_powerpc_fprnd = yes; then
22352 cat >>confdefs.h <<\_ACEOF
22353 #define HAVE_AS_FPRND 1
22354 _ACEOF
22358 case $target in
22359 *-*-aix*) conftest_s=' .machine "pwr6"
22360 .csect .text[PR]
22361 mffgpr 1,3';;
22362 *) conftest_s=' .machine power6
22363 .text
22364 mffgpr 1,3';;
22365 esac
22367 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
22368 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
22369 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
22370 echo $ECHO_N "(cached) $ECHO_C" >&6
22371 else
22372 gcc_cv_as_powerpc_mfpgpr=no
22373 if test $in_tree_gas = yes; then
22374 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22375 then gcc_cv_as_powerpc_mfpgpr=yes
22377 elif test x$gcc_cv_as != x; then
22378 echo "$conftest_s" > conftest.s
22379 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381 (eval $ac_try) 2>&5
22382 ac_status=$?
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); }; }
22385 then
22386 gcc_cv_as_powerpc_mfpgpr=yes
22387 else
22388 echo "configure: failed program was" >&5
22389 cat conftest.s >&5
22391 rm -f conftest.o conftest.s
22394 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22395 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
22396 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22398 cat >>confdefs.h <<\_ACEOF
22399 #define HAVE_AS_MFPGPR 1
22400 _ACEOF
22404 case $target in
22405 *-*-aix*) conftest_s=' .csect .text[PR]
22406 LCF..0:
22407 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22408 *-*-darwin*)
22409 conftest_s=' .text
22410 LCF0:
22411 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22412 *) conftest_s=' .text
22413 .LCF0:
22414 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22415 esac
22417 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
22418 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
22419 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
22420 echo $ECHO_N "(cached) $ECHO_C" >&6
22421 else
22422 gcc_cv_as_powerpc_rel16=no
22423 if test $in_tree_gas = yes; then
22424 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22425 then gcc_cv_as_powerpc_rel16=yes
22427 elif test x$gcc_cv_as != x; then
22428 echo "$conftest_s" > conftest.s
22429 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431 (eval $ac_try) 2>&5
22432 ac_status=$?
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); }; }
22435 then
22436 gcc_cv_as_powerpc_rel16=yes
22437 else
22438 echo "configure: failed program was" >&5
22439 cat conftest.s >&5
22441 rm -f conftest.o conftest.s
22444 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
22445 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
22446 if test $gcc_cv_as_powerpc_rel16 = yes; then
22448 cat >>confdefs.h <<\_ACEOF
22449 #define HAVE_AS_REL16 1
22450 _ACEOF
22454 case $target in
22455 *-*-aix*) conftest_s=' .machine "pwr6"
22456 .csect .text[PR]
22457 cmpb 3,4,5';;
22458 *) conftest_s=' .machine power6
22459 .text
22460 cmpb 3,4,5';;
22461 esac
22463 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
22464 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
22465 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
22466 echo $ECHO_N "(cached) $ECHO_C" >&6
22467 else
22468 gcc_cv_as_powerpc_cmpb=no
22469 if test $in_tree_gas = yes; then
22470 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22471 then gcc_cv_as_powerpc_cmpb=yes
22473 elif test x$gcc_cv_as != x; then
22474 echo "$conftest_s" > conftest.s
22475 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477 (eval $ac_try) 2>&5
22478 ac_status=$?
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); }; }
22481 then
22482 gcc_cv_as_powerpc_cmpb=yes
22483 else
22484 echo "configure: failed program was" >&5
22485 cat conftest.s >&5
22487 rm -f conftest.o conftest.s
22490 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
22491 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
22492 if test $gcc_cv_as_powerpc_cmpb = yes; then
22494 cat >>confdefs.h <<\_ACEOF
22495 #define HAVE_AS_CMPB 1
22496 _ACEOF
22500 case $target in
22501 *-*-aix*) conftest_s=' .machine "pwr6"
22502 .csect .text[PR]
22503 dadd 1,2,3';;
22504 *) conftest_s=' .machine power6
22505 .text
22506 dadd 1,2,3';;
22507 esac
22509 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
22510 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
22511 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
22512 echo $ECHO_N "(cached) $ECHO_C" >&6
22513 else
22514 gcc_cv_as_powerpc_dfp=no
22515 if test $in_tree_gas = yes; then
22516 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22517 then gcc_cv_as_powerpc_dfp=yes
22519 elif test x$gcc_cv_as != x; then
22520 echo "$conftest_s" > conftest.s
22521 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22523 (eval $ac_try) 2>&5
22524 ac_status=$?
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); }; }
22527 then
22528 gcc_cv_as_powerpc_dfp=yes
22529 else
22530 echo "configure: failed program was" >&5
22531 cat conftest.s >&5
22533 rm -f conftest.o conftest.s
22536 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
22537 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
22538 if test $gcc_cv_as_powerpc_dfp = yes; then
22540 cat >>confdefs.h <<\_ACEOF
22541 #define HAVE_AS_DFP 1
22542 _ACEOF
22546 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22547 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22548 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
22549 echo $ECHO_N "(cached) $ECHO_C" >&6
22550 else
22551 gcc_cv_as_powerpc_gnu_attribute=no
22552 if test $in_tree_gas = yes; then
22553 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22554 then gcc_cv_as_powerpc_gnu_attribute=yes
22556 elif test x$gcc_cv_as != x; then
22557 echo '.gnu_attribute 4,1' > conftest.s
22558 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; }
22564 then
22565 gcc_cv_as_powerpc_gnu_attribute=yes
22566 else
22567 echo "configure: failed program was" >&5
22568 cat conftest.s >&5
22570 rm -f conftest.o conftest.s
22573 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
22574 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
22575 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
22577 cat >>confdefs.h <<\_ACEOF
22578 #define HAVE_AS_GNU_ATTRIBUTE 1
22579 _ACEOF
22584 mips*-*-*)
22585 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22586 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22587 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
22588 echo $ECHO_N "(cached) $ECHO_C" >&6
22589 else
22590 gcc_cv_as_mips_explicit_relocs=no
22591 if test $in_tree_gas = yes; then
22592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22593 then gcc_cv_as_mips_explicit_relocs=yes
22595 elif test x$gcc_cv_as != x; then
22596 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
22597 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599 (eval $ac_try) 2>&5
22600 ac_status=$?
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); }; }
22603 then
22604 gcc_cv_as_mips_explicit_relocs=yes
22605 else
22606 echo "configure: failed program was" >&5
22607 cat conftest.s >&5
22609 rm -f conftest.o conftest.s
22612 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
22613 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
22614 if test $gcc_cv_as_mips_explicit_relocs = yes; then
22615 if test x$target_cpu_default = x
22616 then target_cpu_default=MASK_EXPLICIT_RELOCS
22617 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
22620 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
22621 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
22622 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
22623 echo $ECHO_N "(cached) $ECHO_C" >&6
22624 else
22625 gcc_cv_as_mips_no_shared=no
22626 if test $in_tree_gas = yes; then
22627 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22628 then gcc_cv_as_mips_no_shared=yes
22630 elif test x$gcc_cv_as != x; then
22631 echo 'nop' > conftest.s
22632 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
22633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22635 ac_status=$?
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; }
22638 then
22639 gcc_cv_as_mips_no_shared=yes
22640 else
22641 echo "configure: failed program was" >&5
22642 cat conftest.s >&5
22644 rm -f conftest.o conftest.s
22647 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
22648 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
22649 if test $gcc_cv_as_mips_no_shared = yes; then
22651 cat >>confdefs.h <<\_ACEOF
22652 #define HAVE_AS_NO_SHARED 1
22653 _ACEOF
22657 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22658 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22659 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
22660 echo $ECHO_N "(cached) $ECHO_C" >&6
22661 else
22662 gcc_cv_as_mips_gnu_attribute=no
22663 if test $in_tree_gas = yes; then
22664 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22665 then gcc_cv_as_mips_gnu_attribute=yes
22667 elif test x$gcc_cv_as != x; then
22668 echo '.gnu_attribute 4,1' > conftest.s
22669 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22671 (eval $ac_try) 2>&5
22672 ac_status=$?
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); }; }
22675 then
22676 gcc_cv_as_mips_gnu_attribute=yes
22677 else
22678 echo "configure: failed program was" >&5
22679 cat conftest.s >&5
22681 rm -f conftest.o conftest.s
22684 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
22685 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
22686 if test $gcc_cv_as_mips_gnu_attribute = yes; then
22688 cat >>confdefs.h <<\_ACEOF
22689 #define HAVE_AS_GNU_ATTRIBUTE 1
22690 _ACEOF
22694 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
22695 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
22696 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
22697 echo $ECHO_N "(cached) $ECHO_C" >&6
22698 else
22699 gcc_cv_as_mips_dtprelword=no
22700 if test $in_tree_gas = yes; then
22701 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22702 then gcc_cv_as_mips_dtprelword=yes
22704 elif test x$gcc_cv_as != x; then
22705 echo '.section .tdata,"awT",@progbits
22707 .word 2
22708 .text
22709 .dtprelword x+0x8000' > conftest.s
22710 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22712 (eval $ac_try) 2>&5
22713 ac_status=$?
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); }; }
22716 then
22717 gcc_cv_as_mips_dtprelword=yes
22718 else
22719 echo "configure: failed program was" >&5
22720 cat conftest.s >&5
22722 rm -f conftest.o conftest.s
22725 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
22726 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
22727 if test $gcc_cv_as_mips_dtprelword = yes; then
22729 cat >>confdefs.h <<\_ACEOF
22730 #define HAVE_AS_DTPRELWORD 1
22731 _ACEOF
22735 esac
22737 # Mips and HP-UX need the GNU assembler.
22738 # Linux on IA64 might be able to use the Intel assembler.
22740 case "$target" in
22741 mips*-*-* | *-*-hpux* )
22742 if test x$gas_flag = xyes \
22743 || test x"$host" != x"$build" \
22744 || test ! -x "$gcc_cv_as" \
22745 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
22747 else
22748 echo "*** This configuration requires the GNU assembler" >&2
22749 exit 1
22752 esac
22754 # ??? Not all targets support dwarf2 debug_line, even within a version
22755 # of gas. Moreover, we need to emit a valid instruction to trigger any
22756 # info to the output file. So, as supported targets are added to gas 2.11,
22757 # add some instruction here to (also) show we expect this might work.
22758 # ??? Once 2.11 is released, probably need to add first known working
22759 # version to the per-target configury.
22760 case "$target" in
22761 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
22762 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
22763 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* \
22764 | spu-*-* | fido*-*-*)
22765 insn="nop"
22767 ia64*-*-* | s390*-*-*)
22768 insn="nop 0"
22770 mmix-*-*)
22771 insn="swym 0"
22773 esac
22774 if test x"$insn" != x; then
22775 conftest_s="\
22776 .file 1 \"conftest.s\"
22777 .loc 1 3 0
22778 $insn"
22779 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
22780 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
22781 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
22782 echo $ECHO_N "(cached) $ECHO_C" >&6
22783 else
22784 gcc_cv_as_dwarf2_debug_line=no
22785 if test $in_tree_gas = yes; then
22786 if test $in_tree_gas_is_elf = yes \
22787 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22788 then gcc_cv_as_dwarf2_debug_line=yes
22790 elif test x$gcc_cv_as != x; then
22791 echo "$conftest_s" > conftest.s
22792 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22795 ac_status=$?
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; }
22798 then
22799 if test x$gcc_cv_objdump != x \
22800 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
22801 | grep debug_line > /dev/null 2>&1; then
22802 gcc_cv_as_dwarf2_debug_line=yes
22804 else
22805 echo "configure: failed program was" >&5
22806 cat conftest.s >&5
22808 rm -f conftest.o conftest.s
22811 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
22812 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
22815 # The .debug_line file table must be in the exact order that
22816 # we specified the files, since these indices are also used
22817 # by DW_AT_decl_file. Approximate this test by testing if
22818 # the assembler bitches if the same index is assigned twice.
22819 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
22820 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
22821 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
22822 echo $ECHO_N "(cached) $ECHO_C" >&6
22823 else
22824 gcc_cv_as_dwarf2_file_buggy=no
22825 if test x$gcc_cv_as != x; then
22826 echo ' .file 1 "foo.s"
22827 .file 1 "bar.s"' > conftest.s
22828 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830 (eval $ac_try) 2>&5
22831 ac_status=$?
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); }; }
22834 then
22835 gcc_cv_as_dwarf2_file_buggy=yes
22836 else
22837 echo "configure: failed program was" >&5
22838 cat conftest.s >&5
22840 rm -f conftest.o conftest.s
22843 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
22844 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
22847 if test $gcc_cv_as_dwarf2_debug_line = yes \
22848 && test $gcc_cv_as_dwarf2_file_buggy = no; then
22850 cat >>confdefs.h <<\_ACEOF
22851 #define HAVE_AS_DWARF2_DEBUG_LINE 1
22852 _ACEOF
22856 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
22857 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
22858 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
22859 echo $ECHO_N "(cached) $ECHO_C" >&6
22860 else
22861 gcc_cv_as_gdwarf2_flag=no
22862 if test $in_tree_gas = yes; then
22863 if test $in_tree_gas_is_elf = yes \
22864 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22865 then gcc_cv_as_gdwarf2_flag=yes
22867 elif test x$gcc_cv_as != x; then
22868 echo "$insn" > conftest.s
22869 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
22870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871 (eval $ac_try) 2>&5
22872 ac_status=$?
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); }; }
22875 then
22876 gcc_cv_as_gdwarf2_flag=yes
22877 else
22878 echo "configure: failed program was" >&5
22879 cat conftest.s >&5
22881 rm -f conftest.o conftest.s
22884 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
22885 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
22886 if test $gcc_cv_as_gdwarf2_flag = yes; then
22888 cat >>confdefs.h <<\_ACEOF
22889 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
22890 _ACEOF
22894 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
22895 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
22896 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
22897 echo $ECHO_N "(cached) $ECHO_C" >&6
22898 else
22899 gcc_cv_as_gstabs_flag=no
22900 if test $in_tree_gas = yes; then
22901 if test $in_tree_gas_is_elf = yes \
22902 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22903 then gcc_cv_as_gstabs_flag=yes
22905 elif test x$gcc_cv_as != x; then
22906 echo "$insn" > conftest.s
22907 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
22908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909 (eval $ac_try) 2>&5
22910 ac_status=$?
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); }; }
22913 then
22914 # The native Solaris 9/Intel assembler doesn't understand --gstabs
22915 # and warns about it, but still exits successfully. So check for
22916 # this.
22917 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
22918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919 (eval $ac_try) 2>&5
22920 ac_status=$?
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; }
22923 then :
22924 else gcc_cv_as_gstabs_flag=yes
22926 else
22927 echo "configure: failed program was" >&5
22928 cat conftest.s >&5
22930 rm -f conftest.o conftest.s
22933 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
22934 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
22935 if test $gcc_cv_as_gstabs_flag = yes; then
22937 cat >>confdefs.h <<\_ACEOF
22938 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
22939 _ACEOF
22943 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
22944 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
22945 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
22946 echo $ECHO_N "(cached) $ECHO_C" >&6
22947 else
22948 gcc_cv_as_debug_prefix_map_flag=no
22949 if test $in_tree_gas = yes; then
22950 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22951 then gcc_cv_as_debug_prefix_map_flag=yes
22953 elif test x$gcc_cv_as != x; then
22954 echo "$insn" > conftest.s
22955 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
22956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957 (eval $ac_try) 2>&5
22958 ac_status=$?
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); }; }
22961 then
22962 gcc_cv_as_debug_prefix_map_flag=yes
22963 else
22964 echo "configure: failed program was" >&5
22965 cat conftest.s >&5
22967 rm -f conftest.o conftest.s
22970 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
22971 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
22972 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
22974 cat >>confdefs.h <<\_ACEOF
22975 #define HAVE_AS_DEBUG_PREFIX_MAP 1
22976 _ACEOF
22981 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
22982 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
22983 if test "${gcc_cv_as_line_zero+set}" = set; then
22984 echo $ECHO_N "(cached) $ECHO_C" >&6
22985 else
22986 gcc_cv_as_line_zero=no
22987 if test $in_tree_gas = yes; then
22988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
22989 then gcc_cv_as_line_zero=yes
22991 elif test "x$gcc_cv_as" != x; then
22992 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
22993 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
22994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22995 (eval $ac_try) 2>&5
22996 ac_status=$?
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); }; } &&
22999 test "x`cat conftest.out`" = x
23000 then
23001 gcc_cv_as_line_zero=yes
23002 else
23003 echo "configure: failed program was" >&5
23004 cat conftest.s >&5
23005 echo "configure: error output was" >&5
23006 cat conftest.out >&5
23008 rm -f conftest.o conftest.s conftest.out
23011 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23012 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
23013 if test "x$gcc_cv_as_line_zero" = xyes; then
23015 cat >>confdefs.h <<\_ACEOF
23016 #define HAVE_AS_LINE_ZERO 1
23017 _ACEOF
23021 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
23022 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
23023 gcc_cv_ld_ro_rw_mix=unknown
23024 if test $in_tree_ld = yes ; then
23025 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 \
23026 && test $in_tree_ld_is_elf = yes; then
23027 gcc_cv_ld_ro_rw_mix=read-write
23029 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23030 echo '.section myfoosect, "a"' > conftest1.s
23031 echo '.section myfoosect, "aw"' > conftest2.s
23032 echo '.byte 1' >> conftest2.s
23033 echo '.section myfoosect, "a"' > conftest3.s
23034 echo '.byte 0' >> conftest3.s
23035 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23036 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23037 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23038 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23039 conftest2.o conftest3.o > /dev/null 2>&1; then
23040 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23041 | sed -e '/myfoosect/!d' -e N`
23042 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23043 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23044 gcc_cv_ld_ro_rw_mix=read-only
23045 else
23046 gcc_cv_ld_ro_rw_mix=read-write
23050 rm -f conftest.* conftest[123].*
23052 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23054 cat >>confdefs.h <<\_ACEOF
23055 #define HAVE_LD_RO_RW_SECTION_MIXING 1
23056 _ACEOF
23059 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
23060 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
23062 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23063 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23064 gcc_cv_ld_eh_frame_hdr=no
23065 if test $in_tree_ld = yes ; then
23066 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 \
23067 && test $in_tree_ld_is_elf = yes; then
23068 gcc_cv_ld_eh_frame_hdr=yes
23070 elif test x$gcc_cv_ld != x; then
23071 # Check if linker supports --eh-frame-hdr option
23072 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23073 gcc_cv_ld_eh_frame_hdr=yes
23077 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23079 cat >>confdefs.h <<\_ACEOF
23080 #define HAVE_LD_EH_FRAME_HDR 1
23081 _ACEOF
23084 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23085 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23087 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23088 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23089 gcc_cv_ld_pie=no
23090 if test $in_tree_ld = yes ; then
23091 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 \
23092 && test $in_tree_ld_is_elf = yes; then
23093 gcc_cv_ld_pie=yes
23095 elif test x$gcc_cv_ld != x; then
23096 # Check if linker supports -pie option
23097 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23098 gcc_cv_ld_pie=yes
23101 if test x"$gcc_cv_ld_pie" = xyes; then
23103 cat >>confdefs.h <<\_ACEOF
23104 #define HAVE_LD_PIE 1
23105 _ACEOF
23108 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23109 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23111 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23112 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23113 gcc_cv_ld_eh_gc_sections=no
23114 if test $in_tree_ld = yes ; then
23115 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 \
23116 && test $in_tree_ld_is_elf = yes; then
23117 gcc_cv_ld_eh_gc_sections=yes
23119 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23120 cat > conftest.s <<EOF
23121 .section .text
23122 .globl _start
23123 .type _start, @function
23124 _start:
23125 .long foo
23126 .size _start, .-_start
23127 .section .text.foo,"ax",@progbits
23128 .type foo, @function
23129 foo:
23130 .long 0
23131 .size foo, .-foo
23132 .section .gcc_except_table.foo,"a",@progbits
23133 .L0:
23134 .long 0
23135 .section .eh_frame,"a",@progbits
23136 .long .L0
23138 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23139 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23140 | grep "gc-sections option ignored" > /dev/null; then
23141 gcc_cv_ld_eh_gc_sections=no
23142 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23143 gcc_cv_ld_eh_gc_sections=yes
23144 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23145 if test x$gcc_cv_as_comdat_group != xyes; then
23146 gcc_cv_ld_eh_gc_sections=no
23147 cat > conftest.s <<EOF
23148 .section .text
23149 .globl _start
23150 .type _start, @function
23151 _start:
23152 .long foo
23153 .size _start, .-_start
23154 .section .gnu.linkonce.t.foo,"ax",@progbits
23155 .type foo, @function
23156 foo:
23157 .long 0
23158 .size foo, .-foo
23159 .section .gcc_except_table.foo,"a",@progbits
23160 .L0:
23161 .long 0
23162 .section .eh_frame,"a",@progbits
23163 .long .L0
23165 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23166 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23167 | grep "gc-sections option ignored" > /dev/null; then
23168 gcc_cv_ld_eh_gc_sections=no
23169 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23170 gcc_cv_ld_eh_gc_sections=yes
23176 rm -f conftest.s conftest.o conftest
23178 case "$target" in
23179 hppa*-*-linux*)
23180 # ??? This apparently exposes a binutils bug with PC-relative relocations.
23181 gcc_cv_ld_eh_gc_sections=no
23183 esac
23184 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
23186 cat >>confdefs.h <<\_ACEOF
23187 #define HAVE_LD_EH_GC_SECTIONS 1
23188 _ACEOF
23191 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
23192 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
23194 # --------
23195 # UNSORTED
23196 # --------
23198 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
23199 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
23200 if test "${gcc_cv_ld_as_needed+set}" = set; then
23201 echo $ECHO_N "(cached) $ECHO_C" >&6
23202 else
23203 gcc_cv_ld_as_needed=no
23204 if test $in_tree_ld = yes ; then
23205 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 \
23206 && test $in_tree_ld_is_elf = yes; then
23207 gcc_cv_ld_as_needed=yes
23209 elif test x$gcc_cv_ld != x; then
23210 # Check if linker supports --as-needed and --no-as-needed options
23211 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
23212 gcc_cv_ld_as_needed=yes
23217 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
23218 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
23219 if test x"$gcc_cv_ld_as_needed" = xyes; then
23221 cat >>confdefs.h <<\_ACEOF
23222 #define HAVE_LD_AS_NEEDED 1
23223 _ACEOF
23227 case "$target:$tm_file" in
23228 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
23229 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
23230 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
23231 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
23232 echo $ECHO_N "(cached) $ECHO_C" >&6
23233 else
23234 gcc_cv_ld_no_dot_syms=no
23235 if test $in_tree_ld = yes ; then
23236 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
23237 gcc_cv_ld_no_dot_syms=yes
23239 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
23240 cat > conftest1.s <<EOF
23241 .text
23242 bl .foo
23244 cat > conftest2.s <<EOF
23245 .section ".opd","aw"
23246 .align 3
23247 .globl foo
23248 .type foo,@function
23249 foo:
23250 .quad .LEfoo,.TOC.@tocbase,0
23251 .text
23252 .LEfoo:
23254 .size foo,.-.LEfoo
23256 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
23257 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
23258 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
23259 gcc_cv_ld_no_dot_syms=yes
23261 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23265 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
23266 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
23267 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
23269 cat >>confdefs.h <<\_ACEOF
23270 #define HAVE_LD_NO_DOT_SYMS 1
23271 _ACEOF
23275 esac
23277 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
23278 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
23279 if test "${gcc_cv_ld_sysroot+set}" = set; then
23280 echo $ECHO_N "(cached) $ECHO_C" >&6
23281 else
23282 gcc_cv_ld_sysroot=no
23283 if test $in_tree_ld = yes ; then
23284 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
23285 gcc_cv_ld_sysroot=yes
23287 elif test x$gcc_cv_ld != x; then
23288 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
23289 gcc_cv_ld_sysroot=yes
23293 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
23294 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
23295 if test x"$gcc_cv_ld_sysroot" = xyes; then
23297 cat >>confdefs.h <<\_ACEOF
23298 #define HAVE_LD_SYSROOT 1
23299 _ACEOF
23303 if test x$with_sysroot = x && test x$host = x$target \
23304 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23305 && test "$prefix" != "NONE"; then
23307 cat >>confdefs.h <<_ACEOF
23308 #define PREFIX_INCLUDE_DIR "$prefix/include"
23309 _ACEOF
23313 # Test for stack protector support in target C library.
23314 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
23315 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
23316 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
23317 echo $ECHO_N "(cached) $ECHO_C" >&6
23318 else
23319 gcc_cv_libc_provides_ssp=no
23320 case "$target" in
23321 *-*-linux*)
23322 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23323 if test "x$with_sysroot" = x; then
23324 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23325 elif test "x$with_build_sysroot" != "x"; then
23326 glibc_header_dir="${with_build_sysroot}/usr/include"
23327 elif test "x$with_sysroot" = xyes; then
23328 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23329 else
23330 glibc_header_dir="${with_sysroot}/usr/include"
23332 else
23333 glibc_header_dir=/usr/include
23335 # glibc 2.4 and later provides __stack_chk_fail and
23336 # either __stack_chk_guard, or TLS access to stack guard canary.
23337 if test -f $glibc_header_dir/features.h \
23338 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
23339 $glibc_header_dir/features.h > /dev/null; then
23340 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
23341 $glibc_header_dir/features.h > /dev/null; then
23342 gcc_cv_libc_provides_ssp=yes
23343 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
23344 $glibc_header_dir/features.h > /dev/null \
23345 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
23346 $glibc_header_dir/features.h > /dev/null; then
23347 gcc_cv_libc_provides_ssp=yes
23348 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
23349 $glibc_header_dir/features.h > /dev/null && \
23350 test -f $glibc_header_dir/bits/uClibc_config.h && \
23351 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
23352 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
23353 gcc_cv_libc_provides_ssp=yes
23357 *-*-darwin*)
23358 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
23359 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
23360 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
23361 echo $ECHO_N "(cached) $ECHO_C" >&6
23362 else
23363 cat >conftest.$ac_ext <<_ACEOF
23364 /* confdefs.h. */
23365 _ACEOF
23366 cat confdefs.h >>conftest.$ac_ext
23367 cat >>conftest.$ac_ext <<_ACEOF
23368 /* end confdefs.h. */
23369 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
23370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23371 #define __stack_chk_fail innocuous___stack_chk_fail
23373 /* System header to define __stub macros and hopefully few prototypes,
23374 which can conflict with char __stack_chk_fail (); below.
23375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23376 <limits.h> exists even on freestanding compilers. */
23378 #ifdef __STDC__
23379 # include <limits.h>
23380 #else
23381 # include <assert.h>
23382 #endif
23384 #undef __stack_chk_fail
23386 /* Override any gcc2 internal prototype to avoid an error. */
23387 #ifdef __cplusplus
23388 extern "C"
23390 #endif
23391 /* We use char because int might match the return type of a gcc2
23392 builtin and then its argument prototype would still apply. */
23393 char __stack_chk_fail ();
23394 /* The GNU C library defines this for functions which it implements
23395 to always fail with ENOSYS. Some functions are actually named
23396 something starting with __ and the normal name is an alias. */
23397 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
23398 choke me
23399 #else
23400 char (*f) () = __stack_chk_fail;
23401 #endif
23402 #ifdef __cplusplus
23404 #endif
23407 main ()
23409 return f != __stack_chk_fail;
23411 return 0;
23413 _ACEOF
23414 rm -f conftest.$ac_objext conftest$ac_exeext
23415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23416 (eval $ac_link) 2>conftest.er1
23417 ac_status=$?
23418 grep -v '^ *+' conftest.er1 >conftest.err
23419 rm -f conftest.er1
23420 cat conftest.err >&5
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); } &&
23423 { ac_try='test -z "$ac_c_werror_flag"
23424 || test ! -s conftest.err'
23425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426 (eval $ac_try) 2>&5
23427 ac_status=$?
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); }; } &&
23430 { ac_try='test -s conftest$ac_exeext'
23431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23432 (eval $ac_try) 2>&5
23433 ac_status=$?
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); }; }; then
23436 ac_cv_func___stack_chk_fail=yes
23437 else
23438 echo "$as_me: failed program was:" >&5
23439 sed 's/^/| /' conftest.$ac_ext >&5
23441 ac_cv_func___stack_chk_fail=no
23443 rm -f conftest.err conftest.$ac_objext \
23444 conftest$ac_exeext conftest.$ac_ext
23446 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
23447 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
23448 if test $ac_cv_func___stack_chk_fail = yes; then
23449 gcc_cv_libc_provides_ssp=yes
23450 else
23451 echo "no __stack_chk_fail on this target"
23455 *) gcc_cv_libc_provides_ssp=no ;;
23456 esac
23458 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
23459 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
23461 if test x$gcc_cv_libc_provides_ssp = xyes; then
23463 cat >>confdefs.h <<\_ACEOF
23464 #define TARGET_LIBC_PROVIDES_SSP 1
23465 _ACEOF
23469 # Check if TFmode long double should be used by default or not.
23470 # Some glibc targets used DFmode long double, but with glibc 2.4
23471 # and later they can use TFmode.
23472 case "$target" in
23473 powerpc*-*-linux* | \
23474 powerpc*-*-gnu* | \
23475 sparc*-*-linux* | \
23476 s390*-*-linux* | \
23477 alpha*-*-linux*)
23479 # Check whether --with-long-double-128 or --without-long-double-128 was given.
23480 if test "${with_long_double_128+set}" = set; then
23481 withval="$with_long_double_128"
23482 gcc_cv_target_ldbl128="$with_long_double_128"
23483 else
23484 gcc_cv_target_ldbl128=no
23485 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23486 if test "x$with_sysroot" = x; then
23487 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23488 elif test "x$with_build_sysroot" != "x"; then
23489 glibc_header_dir="${with_build_sysroot}/usr/include"
23490 elif test "x$with_sysroot" = xyes; then
23491 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23492 else
23493 glibc_header_dir="${with_sysroot}/usr/include"
23495 else
23496 glibc_header_dir=/usr/include
23498 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23499 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
23500 && gcc_cv_target_ldbl128=yes
23504 esac
23505 if test x$gcc_cv_target_ldbl128 = xyes; then
23507 cat >>confdefs.h <<\_ACEOF
23508 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
23509 _ACEOF
23513 # Find out what GC implementation we want, or may, use.
23515 # Check whether --with-gc or --without-gc was given.
23516 if test "${with_gc+set}" = set; then
23517 withval="$with_gc"
23518 case "$withval" in
23519 page)
23520 GGC=ggc-$withval
23522 zone)
23523 GGC=ggc-$withval
23525 cat >>confdefs.h <<\_ACEOF
23526 #define GGC_ZONE 1
23527 _ACEOF
23531 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
23532 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
23533 { (exit 1); exit 1; }; }
23535 esac
23536 else
23537 GGC=ggc-page
23540 echo "Using $GGC for garbage collection."
23542 # Use the system's zlib library.
23543 zlibdir=-L../zlib
23544 zlibinc="-I\$(srcdir)/../zlib"
23546 # Check whether --with-system-zlib or --without-system-zlib was given.
23547 if test "${with_system_zlib+set}" = set; then
23548 withval="$with_system_zlib"
23549 zlibdir=
23550 zlibinc=
23557 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23558 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23559 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23560 if test "${enable_maintainer_mode+set}" = set; then
23561 enableval="$enable_maintainer_mode"
23562 maintainer_mode=$enableval
23563 else
23564 maintainer_mode=no
23567 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
23568 echo "${ECHO_T}$maintainer_mode" >&6
23570 if test "$maintainer_mode" = "yes"; then
23571 MAINT=''
23572 else
23573 MAINT='#'
23576 # --------------
23577 # Language hooks
23578 # --------------
23580 # Make empty files to contain the specs and options for each language.
23581 # Then add #include lines to for a compiler that has specs and/or options.
23583 subdirs=
23584 lang_opt_files=
23585 lang_specs_files=
23586 lang_tree_files=
23587 # These (without "all_") are set in each config-lang.in.
23588 # `language' must be a single word so is spelled singularly.
23589 all_languages=
23590 all_compilers=
23591 all_outputs='Makefile gccbug libada-mk'
23592 # List of language makefile fragments.
23593 all_lang_makefrags=
23594 # List of language subdirectory makefiles. Deprecated.
23595 all_lang_makefiles=
23596 # Additional files for gengtype
23597 all_gtfiles="$target_gtfiles"
23599 # These are the languages that are set in --enable-languages,
23600 # and are available in the GCC tree.
23601 all_selected_languages=
23603 # Add the language fragments.
23604 # Languages are added via two mechanisms. Some information must be
23605 # recorded in makefile variables, these are defined in config-lang.in.
23606 # We accumulate them and plug them into the main Makefile.
23607 # The other mechanism is a set of hooks for each of the main targets
23608 # like `clean', `install', etc.
23610 language_hooks="Make-hooks"
23612 for lang in ${srcdir}/*/config-lang.in
23614 test "$lang" = "${srcdir}/*/config-lang.in" && continue
23616 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
23617 if test "x$lang_alias" = x
23618 then
23619 echo "$lang doesn't set \$language." 1>&2
23620 exit 1
23622 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
23623 subdirs="$subdirs $subdir"
23625 # $gcc_subdir is where the gcc integration files are to be found
23626 # for a language, both for internal compiler purposes (compiler
23627 # sources implementing front-end to GCC tree converters), and for
23628 # build infrastructure purposes (Make-lang.in, etc.)
23630 # This will be <subdir> (relative to $srcdir) if a line like
23631 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
23632 # is found in <langdir>/config-lang.in, and will remain <langdir>
23633 # otherwise.
23635 # Except for the language alias (fetched above), the regular
23636 # "config-lang.in" contents are always retrieved from $gcc_subdir,
23637 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
23638 # only this and the language alias.
23640 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
23641 if [ "$gcc_subdir" = "" ]; then
23642 gcc_subdir="$subdir"
23645 case ",$enable_languages," in
23646 *,$lang_alias,*)
23647 all_selected_languages="$all_selected_languages $lang_alias"
23648 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
23649 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
23652 esac
23654 language=
23655 boot_language=
23656 compilers=
23657 outputs=
23658 gtfiles=
23659 subdir_requires=
23660 . ${srcdir}/$gcc_subdir/config-lang.in
23661 if test "x$language" = x
23662 then
23663 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
23664 exit 1
23667 ok=:
23668 case ",$enable_languages," in
23669 *,$lang_alias,*) ;;
23671 for i in $subdir_requires; do
23672 test -f "${srcdir}/$i/config-lang.in" && continue
23673 ok=false
23674 break
23675 done
23677 esac
23678 $ok || continue
23680 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
23681 if test -f $srcdir/$gcc_subdir/lang.opt; then
23682 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
23684 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
23685 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
23687 if test -f ${srcdir}/$gcc_subdir/Makefile.in
23688 then all_lang_makefiles="$gcc_subdir/Makefile"
23690 all_languages="$all_languages $language"
23691 all_compilers="$all_compilers $compilers"
23692 all_outputs="$all_outputs $outputs"
23693 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
23694 done
23696 # Pick up gtfiles for c
23697 gtfiles=
23698 . ${srcdir}/c-config-lang.in
23699 all_gtfiles="$all_gtfiles [c] $gtfiles"
23701 check_languages=
23702 for language in $all_selected_languages
23704 check_languages="$check_languages check-$language"
23705 done
23707 # We link each language in with a set of hooks, reached indirectly via
23708 # lang.${target}. Only do so for selected languages.
23710 rm -f Make-hooks
23711 touch Make-hooks
23712 target_list="all.cross start.encap rest.encap tags \
23713 install-common install-man install-info install-pdf dvi pdf \
23714 html uninstall info man srcextra srcman srcinfo \
23715 mostlyclean clean distclean maintainer-clean"
23717 for t in $target_list
23720 for lang in $all_selected_languages
23722 x="$x $lang.$t"
23723 done
23724 echo "lang.$t: $x" >> Make-hooks
23725 done
23727 # --------
23728 # UNSORTED
23729 # --------
23731 # Create .gdbinit.
23733 echo "dir ." > .gdbinit
23734 echo "dir ${srcdir}" >> .gdbinit
23735 if test x$gdb_needs_out_file_path = xyes
23736 then
23737 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
23739 if test "x$subdirs" != x; then
23740 for s in $subdirs
23742 echo "dir ${srcdir}/$s" >> .gdbinit
23743 done
23745 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
23747 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
23751 # Find a directory in which to install a shared libgcc.
23753 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23754 if test "${enable_version_specific_runtime_libs+set}" = set; then
23755 enableval="$enable_version_specific_runtime_libs"
23760 # Check whether --with-slibdir or --without-slibdir was given.
23761 if test "${with_slibdir+set}" = set; then
23762 withval="$with_slibdir"
23763 slibdir="$with_slibdir"
23764 else
23765 if test "${enable_version_specific_runtime_libs+set}" = set; then
23766 slibdir='$(libsubdir)'
23767 elif test "$host" != "$target"; then
23768 slibdir='$(build_tooldir)/lib'
23769 else
23770 slibdir='$(libdir)'
23776 # Check whether --with-datarootdir or --without-datarootdir was given.
23777 if test "${with_datarootdir+set}" = set; then
23778 withval="$with_datarootdir"
23779 datarootdir="\${prefix}/$with_datarootdir"
23780 else
23781 datarootdir='$(prefix)/share'
23786 # Check whether --with-docdir or --without-docdir was given.
23787 if test "${with_docdir+set}" = set; then
23788 withval="$with_docdir"
23789 docdir="\${prefix}/$with_docdir"
23790 else
23791 docdir='$(datarootdir)'
23796 # Check whether --with-htmldir or --without-htmldir was given.
23797 if test "${with_htmldir+set}" = set; then
23798 withval="$with_htmldir"
23799 htmldir="\${prefix}/$with_htmldir"
23800 else
23801 htmldir='$(docdir)'
23805 # Substitute configuration variables
23863 # Echo link setup.
23864 if test x${build} = x${host} ; then
23865 if test x${host} = x${target} ; then
23866 echo "Links are now set up to build a native compiler for ${target}." 1>&2
23867 else
23868 echo "Links are now set up to build a cross-compiler" 1>&2
23869 echo " from ${host} to ${target}." 1>&2
23871 else
23872 if test x${host} = x${target} ; then
23873 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
23874 echo " for ${target}." 1>&2
23875 else
23876 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
23877 echo " from ${host} to ${target}." 1>&2
23884 # Configure the subdirectories
23885 # AC_CONFIG_SUBDIRS($subdirs)
23887 # Create the Makefile
23888 # and configure language subdirectories
23889 ac_config_files="$ac_config_files $all_outputs"
23892 ac_config_commands="$ac_config_commands default"
23894 cat >confcache <<\_ACEOF
23895 # This file is a shell script that caches the results of configure
23896 # tests run on this system so they can be shared between configure
23897 # scripts and configure runs, see configure's option --config-cache.
23898 # It is not useful on other systems. If it contains results you don't
23899 # want to keep, you may remove or edit it.
23901 # config.status only pays attention to the cache file if you give it
23902 # the --recheck option to rerun configure.
23904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23906 # following values.
23908 _ACEOF
23910 # The following way of writing the cache mishandles newlines in values,
23911 # but we know of no workaround that is simple, portable, and efficient.
23912 # So, don't put newlines in cache variables' values.
23913 # Ultrix sh set writes to stderr and can't be redirected directly,
23914 # and sets the high bit in the cache file unless we assign to the vars.
23916 (set) 2>&1 |
23917 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23918 *ac_space=\ *)
23919 # `set' does not quote correctly, so add quotes (double-quote
23920 # substitution turns \\\\ into \\, and sed turns \\ into \).
23921 sed -n \
23922 "s/'/'\\\\''/g;
23923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23926 # `set' quotes correctly as required by POSIX, so do not add quotes.
23927 sed -n \
23928 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23930 esac;
23932 sed '
23933 t clear
23934 : clear
23935 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23936 t end
23937 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23938 : end' >>confcache
23939 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23940 if test -w $cache_file; then
23941 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23942 cat confcache >$cache_file
23943 else
23944 echo "not updating unwritable cache $cache_file"
23947 rm -f confcache
23949 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23950 # Let make expand exec_prefix.
23951 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23953 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23954 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23955 # trailing colons and then remove the whole line if VPATH becomes empty
23956 # (actually we leave an empty line to preserve line numbers).
23957 if test "x$srcdir" = x.; then
23958 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23959 s/:*\$(srcdir):*/:/;
23960 s/:*\${srcdir}:*/:/;
23961 s/:*@srcdir@:*/:/;
23962 s/^\([^=]*=[ ]*\):*/\1/;
23963 s/:*$//;
23964 s/^[^=]*=[ ]*$//;
23968 DEFS=-DHAVE_CONFIG_H
23970 ac_libobjs=
23971 ac_ltlibobjs=
23972 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23973 # 1. Remove the extension, and $U if already installed.
23974 ac_i=`echo "$ac_i" |
23975 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23976 # 2. Add them.
23977 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23978 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23979 done
23980 LIBOBJS=$ac_libobjs
23982 LTLIBOBJS=$ac_ltlibobjs
23986 : ${CONFIG_STATUS=./config.status}
23987 ac_clean_files_save=$ac_clean_files
23988 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23989 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23990 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23991 cat >$CONFIG_STATUS <<_ACEOF
23992 #! $SHELL
23993 # Generated by $as_me.
23994 # Run this file to recreate the current configuration.
23995 # Compiler output produced by configure, useful for debugging
23996 # configure, is in config.log if it exists.
23998 debug=false
23999 ac_cs_recheck=false
24000 ac_cs_silent=false
24001 SHELL=\${CONFIG_SHELL-$SHELL}
24002 _ACEOF
24004 cat >>$CONFIG_STATUS <<\_ACEOF
24005 ## --------------------- ##
24006 ## M4sh Initialization. ##
24007 ## --------------------- ##
24009 # Be Bourne compatible
24010 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24011 emulate sh
24012 NULLCMD=:
24013 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24014 # is contrary to our usage. Disable this feature.
24015 alias -g '${1+"$@"}'='"$@"'
24016 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24017 set -o posix
24019 DUALCASE=1; export DUALCASE # for MKS sh
24021 # Support unset when possible.
24022 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24023 as_unset=unset
24024 else
24025 as_unset=false
24029 # Work around bugs in pre-3.0 UWIN ksh.
24030 $as_unset ENV MAIL MAILPATH
24031 PS1='$ '
24032 PS2='> '
24033 PS4='+ '
24035 # NLS nuisances.
24036 for as_var in \
24037 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24038 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24039 LC_TELEPHONE LC_TIME
24041 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24042 eval $as_var=C; export $as_var
24043 else
24044 $as_unset $as_var
24046 done
24048 # Required to use basename.
24049 if expr a : '\(a\)' >/dev/null 2>&1; then
24050 as_expr=expr
24051 else
24052 as_expr=false
24055 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24056 as_basename=basename
24057 else
24058 as_basename=false
24062 # Name of the executable.
24063 as_me=`$as_basename "$0" ||
24064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24065 X"$0" : 'X\(//\)$' \| \
24066 X"$0" : 'X\(/\)$' \| \
24067 . : '\(.\)' 2>/dev/null ||
24068 echo X/"$0" |
24069 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24070 /^X\/\(\/\/\)$/{ s//\1/; q; }
24071 /^X\/\(\/\).*/{ s//\1/; q; }
24072 s/.*/./; q'`
24075 # PATH needs CR, and LINENO needs CR and PATH.
24076 # Avoid depending upon Character Ranges.
24077 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24078 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24079 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24080 as_cr_digits='0123456789'
24081 as_cr_alnum=$as_cr_Letters$as_cr_digits
24083 # The user is always right.
24084 if test "${PATH_SEPARATOR+set}" != set; then
24085 echo "#! /bin/sh" >conf$$.sh
24086 echo "exit 0" >>conf$$.sh
24087 chmod +x conf$$.sh
24088 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24089 PATH_SEPARATOR=';'
24090 else
24091 PATH_SEPARATOR=:
24093 rm -f conf$$.sh
24097 as_lineno_1=$LINENO
24098 as_lineno_2=$LINENO
24099 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24100 test "x$as_lineno_1" != "x$as_lineno_2" &&
24101 test "x$as_lineno_3" = "x$as_lineno_2" || {
24102 # Find who we are. Look in the path if we contain no path at all
24103 # relative or not.
24104 case $0 in
24105 *[\\/]* ) as_myself=$0 ;;
24106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24107 for as_dir in $PATH
24109 IFS=$as_save_IFS
24110 test -z "$as_dir" && as_dir=.
24111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24112 done
24115 esac
24116 # We did not find ourselves, most probably we were run as `sh COMMAND'
24117 # in which case we are not to be found in the path.
24118 if test "x$as_myself" = x; then
24119 as_myself=$0
24121 if test ! -f "$as_myself"; then
24122 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24123 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24124 { (exit 1); exit 1; }; }
24126 case $CONFIG_SHELL in
24128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24129 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24131 IFS=$as_save_IFS
24132 test -z "$as_dir" && as_dir=.
24133 for as_base in sh bash ksh sh5; do
24134 case $as_dir in
24136 if ("$as_dir/$as_base" -c '
24137 as_lineno_1=$LINENO
24138 as_lineno_2=$LINENO
24139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24140 test "x$as_lineno_1" != "x$as_lineno_2" &&
24141 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24142 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24143 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24144 CONFIG_SHELL=$as_dir/$as_base
24145 export CONFIG_SHELL
24146 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24147 fi;;
24148 esac
24149 done
24150 done
24152 esac
24154 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24155 # uniformly replaced by the line number. The first 'sed' inserts a
24156 # line-number line before each line; the second 'sed' does the real
24157 # work. The second script uses 'N' to pair each line-number line
24158 # with the numbered line, and appends trailing '-' during
24159 # substitution so that $LINENO is not a special case at line end.
24160 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24161 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24162 sed '=' <$as_myself |
24163 sed '
24165 s,$,-,
24166 : loop
24167 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24168 t loop
24169 s,-$,,
24170 s,^['$as_cr_digits']*\n,,
24171 ' >$as_me.lineno &&
24172 chmod +x $as_me.lineno ||
24173 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24174 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24175 { (exit 1); exit 1; }; }
24177 # Don't try to exec as it changes $[0], causing all sort of problems
24178 # (the dirname of $[0] is not the place where we might find the
24179 # original and so on. Autoconf is especially sensible to this).
24180 . ./$as_me.lineno
24181 # Exit status is that of the last command.
24182 exit
24186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24187 *c*,-n*) ECHO_N= ECHO_C='
24188 ' ECHO_T=' ' ;;
24189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24191 esac
24193 if expr a : '\(a\)' >/dev/null 2>&1; then
24194 as_expr=expr
24195 else
24196 as_expr=false
24199 rm -f conf$$ conf$$.exe conf$$.file
24200 echo >conf$$.file
24201 if ln -s conf$$.file conf$$ 2>/dev/null; then
24202 # We could just check for DJGPP; but this test a) works b) is more generic
24203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24204 if test -f conf$$.exe; then
24205 # Don't use ln at all; we don't have any links
24206 as_ln_s='cp -p'
24207 else
24208 as_ln_s='ln -s'
24210 elif ln conf$$.file conf$$ 2>/dev/null; then
24211 as_ln_s=ln
24212 else
24213 as_ln_s='cp -p'
24215 rm -f conf$$ conf$$.exe conf$$.file
24217 if mkdir -p . 2>/dev/null; then
24218 as_mkdir_p=:
24219 else
24220 test -d ./-p && rmdir ./-p
24221 as_mkdir_p=false
24224 as_executable_p="test -f"
24226 # Sed expression to map a string onto a valid CPP name.
24227 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24229 # Sed expression to map a string onto a valid variable name.
24230 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24233 # IFS
24234 # We need space, tab and new line, in precisely that order.
24235 as_nl='
24237 IFS=" $as_nl"
24239 # CDPATH.
24240 $as_unset CDPATH
24242 exec 6>&1
24244 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24245 # report actual input values of CONFIG_FILES etc. instead of their
24246 # values after options handling. Logging --version etc. is OK.
24247 exec 5>>config.log
24249 echo
24250 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24251 ## Running $as_me. ##
24252 _ASBOX
24253 } >&5
24254 cat >&5 <<_CSEOF
24256 This file was extended by $as_me, which was
24257 generated by GNU Autoconf 2.59. Invocation command line was
24259 CONFIG_FILES = $CONFIG_FILES
24260 CONFIG_HEADERS = $CONFIG_HEADERS
24261 CONFIG_LINKS = $CONFIG_LINKS
24262 CONFIG_COMMANDS = $CONFIG_COMMANDS
24263 $ $0 $@
24265 _CSEOF
24266 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24267 echo >&5
24268 _ACEOF
24270 # Files that config.status was made for.
24271 if test -n "$ac_config_files"; then
24272 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24275 if test -n "$ac_config_headers"; then
24276 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24279 if test -n "$ac_config_links"; then
24280 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24283 if test -n "$ac_config_commands"; then
24284 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24287 cat >>$CONFIG_STATUS <<\_ACEOF
24289 ac_cs_usage="\
24290 \`$as_me' instantiates files from templates according to the
24291 current configuration.
24293 Usage: $0 [OPTIONS] [FILE]...
24295 -h, --help print this help, then exit
24296 -V, --version print version number, then exit
24297 -q, --quiet do not print progress messages
24298 -d, --debug don't remove temporary files
24299 --recheck update $as_me by reconfiguring in the same conditions
24300 --file=FILE[:TEMPLATE]
24301 instantiate the configuration file FILE
24302 --header=FILE[:TEMPLATE]
24303 instantiate the configuration header FILE
24305 Configuration files:
24306 $config_files
24308 Configuration headers:
24309 $config_headers
24311 Configuration commands:
24312 $config_commands
24314 Report bugs to <bug-autoconf@gnu.org>."
24315 _ACEOF
24317 cat >>$CONFIG_STATUS <<_ACEOF
24318 ac_cs_version="\\
24319 config.status
24320 configured by $0, generated by GNU Autoconf 2.59,
24321 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24323 Copyright (C) 2003 Free Software Foundation, Inc.
24324 This config.status script is free software; the Free Software Foundation
24325 gives unlimited permission to copy, distribute and modify it."
24326 srcdir=$srcdir
24327 _ACEOF
24329 cat >>$CONFIG_STATUS <<\_ACEOF
24330 # If no file are specified by the user, then we need to provide default
24331 # value. By we need to know if files were specified by the user.
24332 ac_need_defaults=:
24333 while test $# != 0
24335 case $1 in
24336 --*=*)
24337 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24338 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24339 ac_shift=:
24342 ac_option=$1
24343 ac_optarg=$2
24344 ac_shift=shift
24346 *) # This is not an option, so the user has probably given explicit
24347 # arguments.
24348 ac_option=$1
24349 ac_need_defaults=false;;
24350 esac
24352 case $ac_option in
24353 # Handling of the options.
24354 _ACEOF
24355 cat >>$CONFIG_STATUS <<\_ACEOF
24356 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24357 ac_cs_recheck=: ;;
24358 --version | --vers* | -V )
24359 echo "$ac_cs_version"; exit 0 ;;
24360 --he | --h)
24361 # Conflict between --help and --header
24362 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24363 Try \`$0 --help' for more information." >&5
24364 echo "$as_me: error: ambiguous option: $1
24365 Try \`$0 --help' for more information." >&2;}
24366 { (exit 1); exit 1; }; };;
24367 --help | --hel | -h )
24368 echo "$ac_cs_usage"; exit 0 ;;
24369 --debug | --d* | -d )
24370 debug=: ;;
24371 --file | --fil | --fi | --f )
24372 $ac_shift
24373 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24374 ac_need_defaults=false;;
24375 --header | --heade | --head | --hea )
24376 $ac_shift
24377 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24378 ac_need_defaults=false;;
24379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24380 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24381 ac_cs_silent=: ;;
24383 # This is an error.
24384 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24385 Try \`$0 --help' for more information." >&5
24386 echo "$as_me: error: unrecognized option: $1
24387 Try \`$0 --help' for more information." >&2;}
24388 { (exit 1); exit 1; }; } ;;
24390 *) ac_config_targets="$ac_config_targets $1" ;;
24392 esac
24393 shift
24394 done
24396 ac_configure_extra_args=
24398 if $ac_cs_silent; then
24399 exec 6>/dev/null
24400 ac_configure_extra_args="$ac_configure_extra_args --silent"
24403 _ACEOF
24404 cat >>$CONFIG_STATUS <<_ACEOF
24405 if \$ac_cs_recheck; then
24406 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24407 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24410 _ACEOF
24412 cat >>$CONFIG_STATUS <<_ACEOF
24414 # INIT-COMMANDS section.
24417 subdirs='$subdirs'
24419 _ACEOF
24423 cat >>$CONFIG_STATUS <<\_ACEOF
24424 for ac_config_target in $ac_config_targets
24426 case "$ac_config_target" in
24427 # Handling of arguments.
24428 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
24429 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
24430 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
24431 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
24432 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24433 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
24434 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24435 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24436 { (exit 1); exit 1; }; };;
24437 esac
24438 done
24440 # If the user did not use the arguments to specify the items to instantiate,
24441 # then the envvar interface is used. Set only those that are not.
24442 # We use the long form for the default assignment because of an extremely
24443 # bizarre bug on SunOS 4.1.3.
24444 if $ac_need_defaults; then
24445 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24446 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24447 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24450 # Have a temporary directory for convenience. Make it in the build tree
24451 # simply because there is no reason to put it here, and in addition,
24452 # creating and moving files from /tmp can sometimes cause problems.
24453 # Create a temporary directory, and hook for its removal unless debugging.
24454 $debug ||
24456 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24457 trap '{ (exit 1); exit 1; }' 1 2 13 15
24460 # Create a (secure) tmp directory for tmp files.
24463 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24464 test -n "$tmp" && test -d "$tmp"
24465 } ||
24467 tmp=./confstat$$-$RANDOM
24468 (umask 077 && mkdir $tmp)
24469 } ||
24471 echo "$me: cannot create a temporary directory in ." >&2
24472 { (exit 1); exit 1; }
24475 _ACEOF
24477 cat >>$CONFIG_STATUS <<_ACEOF
24480 # CONFIG_FILES section.
24483 # No need to generate the scripts if there are no CONFIG_FILES.
24484 # This happens for instance when ./config.status config.h
24485 if test -n "\$CONFIG_FILES"; then
24486 # Protect against being on the right side of a sed subst in config.status.
24487 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24488 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24489 s,@SHELL@,$SHELL,;t t
24490 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24491 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24492 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24493 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24494 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24495 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24496 s,@exec_prefix@,$exec_prefix,;t t
24497 s,@prefix@,$prefix,;t t
24498 s,@program_transform_name@,$program_transform_name,;t t
24499 s,@bindir@,$bindir,;t t
24500 s,@sbindir@,$sbindir,;t t
24501 s,@libexecdir@,$libexecdir,;t t
24502 s,@datadir@,$datadir,;t t
24503 s,@sysconfdir@,$sysconfdir,;t t
24504 s,@sharedstatedir@,$sharedstatedir,;t t
24505 s,@localstatedir@,$localstatedir,;t t
24506 s,@libdir@,$libdir,;t t
24507 s,@includedir@,$includedir,;t t
24508 s,@oldincludedir@,$oldincludedir,;t t
24509 s,@infodir@,$infodir,;t t
24510 s,@mandir@,$mandir,;t t
24511 s,@build_alias@,$build_alias,;t t
24512 s,@host_alias@,$host_alias,;t t
24513 s,@target_alias@,$target_alias,;t t
24514 s,@DEFS@,$DEFS,;t t
24515 s,@ECHO_C@,$ECHO_C,;t t
24516 s,@ECHO_N@,$ECHO_N,;t t
24517 s,@ECHO_T@,$ECHO_T,;t t
24518 s,@LIBS@,$LIBS,;t t
24519 s,@build@,$build,;t t
24520 s,@build_cpu@,$build_cpu,;t t
24521 s,@build_vendor@,$build_vendor,;t t
24522 s,@build_os@,$build_os,;t t
24523 s,@host@,$host,;t t
24524 s,@host_cpu@,$host_cpu,;t t
24525 s,@host_vendor@,$host_vendor,;t t
24526 s,@host_os@,$host_os,;t t
24527 s,@target@,$target,;t t
24528 s,@target_cpu@,$target_cpu,;t t
24529 s,@target_vendor@,$target_vendor,;t t
24530 s,@target_os@,$target_os,;t t
24531 s,@target_noncanonical@,$target_noncanonical,;t t
24532 s,@build_libsubdir@,$build_libsubdir,;t t
24533 s,@build_subdir@,$build_subdir,;t t
24534 s,@host_subdir@,$host_subdir,;t t
24535 s,@target_subdir@,$target_subdir,;t t
24536 s,@GENINSRC@,$GENINSRC,;t t
24537 s,@CC@,$CC,;t t
24538 s,@CFLAGS@,$CFLAGS,;t t
24539 s,@LDFLAGS@,$LDFLAGS,;t t
24540 s,@CPPFLAGS@,$CPPFLAGS,;t t
24541 s,@ac_ct_CC@,$ac_ct_CC,;t t
24542 s,@EXEEXT@,$EXEEXT,;t t
24543 s,@OBJEXT@,$OBJEXT,;t t
24544 s,@GNATBIND@,$GNATBIND,;t t
24545 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
24546 s,@GNATMAKE@,$GNATMAKE,;t t
24547 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
24548 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
24549 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
24550 s,@CPP@,$CPP,;t t
24551 s,@EGREP@,$EGREP,;t t
24552 s,@loose_warn@,$loose_warn,;t t
24553 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
24554 s,@strict_warn@,$strict_warn,;t t
24555 s,@warn_cflags@,$warn_cflags,;t t
24556 s,@nocommon_flag@,$nocommon_flag,;t t
24557 s,@TREEBROWSER@,$TREEBROWSER,;t t
24558 s,@valgrind_path@,$valgrind_path,;t t
24559 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
24560 s,@valgrind_command@,$valgrind_command,;t t
24561 s,@coverage_flags@,$coverage_flags,;t t
24562 s,@enable_multilib@,$enable_multilib,;t t
24563 s,@enable_decimal_float@,$enable_decimal_float,;t t
24564 s,@enable_fixed_point@,$enable_fixed_point,;t t
24565 s,@enable_shared@,$enable_shared,;t t
24566 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24567 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24568 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
24569 s,@onestep@,$onestep,;t t
24570 s,@PKGVERSION@,$PKGVERSION,;t t
24571 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
24572 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
24573 s,@datarootdir@,$datarootdir,;t t
24574 s,@docdir@,$docdir,;t t
24575 s,@htmldir@,$htmldir,;t t
24576 s,@SET_MAKE@,$SET_MAKE,;t t
24577 s,@AWK@,$AWK,;t t
24578 s,@LN_S@,$LN_S,;t t
24579 s,@LN@,$LN,;t t
24580 s,@RANLIB@,$RANLIB,;t t
24581 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24582 s,@ranlib_flags@,$ranlib_flags,;t t
24583 s,@INSTALL@,$INSTALL,;t t
24584 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24585 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24586 s,@make_compare_target@,$make_compare_target,;t t
24587 s,@have_mktemp_command@,$have_mktemp_command,;t t
24588 s,@MAKEINFO@,$MAKEINFO,;t t
24589 s,@BUILD_INFO@,$BUILD_INFO,;t t
24590 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
24591 s,@FLEX@,$FLEX,;t t
24592 s,@BISON@,$BISON,;t t
24593 s,@NM@,$NM,;t t
24594 s,@AR@,$AR,;t t
24595 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
24596 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
24597 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
24598 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
24599 s,@LIBICONV@,$LIBICONV,;t t
24600 s,@LTLIBICONV@,$LTLIBICONV,;t t
24601 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
24602 s,@manext@,$manext,;t t
24603 s,@objext@,$objext,;t t
24604 s,@gthread_flags@,$gthread_flags,;t t
24605 s,@extra_modes_file@,$extra_modes_file,;t t
24606 s,@extra_opt_files@,$extra_opt_files,;t t
24607 s,@USE_NLS@,$USE_NLS,;t t
24608 s,@LIBINTL@,$LIBINTL,;t t
24609 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24610 s,@INCINTL@,$INCINTL,;t t
24611 s,@XGETTEXT@,$XGETTEXT,;t t
24612 s,@GMSGFMT@,$GMSGFMT,;t t
24613 s,@POSUB@,$POSUB,;t t
24614 s,@CATALOGS@,$CATALOGS,;t t
24615 s,@DATADIRNAME@,$DATADIRNAME,;t t
24616 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24617 s,@GENCAT@,$GENCAT,;t t
24618 s,@CATOBJEXT@,$CATOBJEXT,;t t
24619 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
24620 s,@CROSS@,$CROSS,;t t
24621 s,@ALL@,$ALL,;t t
24622 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
24623 s,@inhibit_libc@,$inhibit_libc,;t t
24624 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24625 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
24626 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
24627 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
24628 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
24629 s,@collect2@,$collect2,;t t
24630 s,@LIBTOOL@,$LIBTOOL,;t t
24631 s,@SED@,$SED,;t t
24632 s,@FGREP@,$FGREP,;t t
24633 s,@GREP@,$GREP,;t t
24634 s,@LD@,$LD,;t t
24635 s,@DUMPBIN@,$DUMPBIN,;t t
24636 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
24637 s,@ac_ct_AR@,$ac_ct_AR,;t t
24638 s,@STRIP@,$STRIP,;t t
24639 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24640 s,@lt_ECHO@,$lt_ECHO,;t t
24641 s,@objdir@,$objdir,;t t
24642 s,@enable_fast_install@,$enable_fast_install,;t t
24643 s,@gcc_cv_as@,$gcc_cv_as,;t t
24644 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
24645 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
24646 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
24647 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
24648 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
24649 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
24650 s,@libgcc_visibility@,$libgcc_visibility,;t t
24651 s,@GGC@,$GGC,;t t
24652 s,@zlibdir@,$zlibdir,;t t
24653 s,@zlibinc@,$zlibinc,;t t
24654 s,@MAINT@,$MAINT,;t t
24655 s,@gcc_tooldir@,$gcc_tooldir,;t t
24656 s,@dollar@,$dollar,;t t
24657 s,@slibdir@,$slibdir,;t t
24658 s,@subdirs@,$subdirs,;t t
24659 s,@srcdir@,$srcdir,;t t
24660 s,@all_compilers@,$all_compilers,;t t
24661 s,@all_gtfiles@,$all_gtfiles,;t t
24662 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
24663 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
24664 s,@all_languages@,$all_languages,;t t
24665 s,@all_selected_languages@,$all_selected_languages,;t t
24666 s,@build_exeext@,$build_exeext,;t t
24667 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
24668 s,@build_xm_file_list@,$build_xm_file_list,;t t
24669 s,@build_xm_include_list@,$build_xm_include_list,;t t
24670 s,@build_xm_defines@,$build_xm_defines,;t t
24671 s,@build_file_translate@,$build_file_translate,;t t
24672 s,@check_languages@,$check_languages,;t t
24673 s,@cpp_install_dir@,$cpp_install_dir,;t t
24674 s,@xmake_file@,$xmake_file,;t t
24675 s,@tmake_file@,$tmake_file,;t t
24676 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
24677 s,@extra_headers_list@,$extra_headers_list,;t t
24678 s,@extra_objs@,$extra_objs,;t t
24679 s,@extra_parts@,$extra_parts,;t t
24680 s,@extra_passes@,$extra_passes,;t t
24681 s,@extra_programs@,$extra_programs,;t t
24682 s,@float_h_file@,$float_h_file,;t t
24683 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
24684 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
24685 s,@host_exeext@,$host_exeext,;t t
24686 s,@host_xm_file_list@,$host_xm_file_list,;t t
24687 s,@host_xm_include_list@,$host_xm_include_list,;t t
24688 s,@host_xm_defines@,$host_xm_defines,;t t
24689 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
24690 s,@install@,$install,;t t
24691 s,@lang_opt_files@,$lang_opt_files,;t t
24692 s,@lang_specs_files@,$lang_specs_files,;t t
24693 s,@lang_tree_files@,$lang_tree_files,;t t
24694 s,@local_prefix@,$local_prefix,;t t
24695 s,@md_file@,$md_file,;t t
24696 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
24697 s,@out_file@,$out_file,;t t
24698 s,@out_object_file@,$out_object_file,;t t
24699 s,@thread_file@,$thread_file,;t t
24700 s,@tm_file_list@,$tm_file_list,;t t
24701 s,@tm_include_list@,$tm_include_list,;t t
24702 s,@tm_defines@,$tm_defines,;t t
24703 s,@tm_p_file_list@,$tm_p_file_list,;t t
24704 s,@tm_p_include_list@,$tm_p_include_list,;t t
24705 s,@xm_file_list@,$xm_file_list,;t t
24706 s,@xm_include_list@,$xm_include_list,;t t
24707 s,@xm_defines@,$xm_defines,;t t
24708 s,@c_target_objs@,$c_target_objs,;t t
24709 s,@cxx_target_objs@,$cxx_target_objs,;t t
24710 s,@fortran_target_objs@,$fortran_target_objs,;t t
24711 s,@target_cpu_default@,$target_cpu_default,;t t
24712 s,@GMPLIBS@,$GMPLIBS,;t t
24713 s,@GMPINC@,$GMPINC,;t t
24714 s,@LIBOBJS@,$LIBOBJS,;t t
24715 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24716 /@language_hooks@/r $language_hooks
24717 s,@language_hooks@,,;t t
24718 CEOF
24720 _ACEOF
24722 cat >>$CONFIG_STATUS <<\_ACEOF
24723 # Split the substitutions into bite-sized pieces for seds with
24724 # small command number limits, like on Digital OSF/1 and HP-UX.
24725 ac_max_sed_lines=48
24726 ac_sed_frag=1 # Number of current file.
24727 ac_beg=1 # First line for current file.
24728 ac_end=$ac_max_sed_lines # Line after last line for current file.
24729 ac_more_lines=:
24730 ac_sed_cmds=
24731 while $ac_more_lines; do
24732 if test $ac_beg -gt 1; then
24733 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24734 else
24735 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24737 if test ! -s $tmp/subs.frag; then
24738 ac_more_lines=false
24739 else
24740 # The purpose of the label and of the branching condition is to
24741 # speed up the sed processing (if there are no `@' at all, there
24742 # is no need to browse any of the substitutions).
24743 # These are the two extra sed commands mentioned above.
24744 (echo ':t
24745 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24746 if test -z "$ac_sed_cmds"; then
24747 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24748 else
24749 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24751 ac_sed_frag=`expr $ac_sed_frag + 1`
24752 ac_beg=$ac_end
24753 ac_end=`expr $ac_end + $ac_max_sed_lines`
24755 done
24756 if test -z "$ac_sed_cmds"; then
24757 ac_sed_cmds=cat
24759 fi # test -n "$CONFIG_FILES"
24761 _ACEOF
24762 cat >>$CONFIG_STATUS <<\_ACEOF
24763 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24764 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24765 case $ac_file in
24766 - | *:- | *:-:* ) # input from stdin
24767 cat >$tmp/stdin
24768 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24769 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24770 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24771 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24772 * ) ac_file_in=$ac_file.in ;;
24773 esac
24775 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24776 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24777 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24778 X"$ac_file" : 'X\(//\)[^/]' \| \
24779 X"$ac_file" : 'X\(//\)$' \| \
24780 X"$ac_file" : 'X\(/\)' \| \
24781 . : '\(.\)' 2>/dev/null ||
24782 echo X"$ac_file" |
24783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24784 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24785 /^X\(\/\/\)$/{ s//\1/; q; }
24786 /^X\(\/\).*/{ s//\1/; q; }
24787 s/.*/./; q'`
24788 { if $as_mkdir_p; then
24789 mkdir -p "$ac_dir"
24790 else
24791 as_dir="$ac_dir"
24792 as_dirs=
24793 while test ! -d "$as_dir"; do
24794 as_dirs="$as_dir $as_dirs"
24795 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24796 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24797 X"$as_dir" : 'X\(//\)[^/]' \| \
24798 X"$as_dir" : 'X\(//\)$' \| \
24799 X"$as_dir" : 'X\(/\)' \| \
24800 . : '\(.\)' 2>/dev/null ||
24801 echo X"$as_dir" |
24802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24803 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24804 /^X\(\/\/\)$/{ s//\1/; q; }
24805 /^X\(\/\).*/{ s//\1/; q; }
24806 s/.*/./; q'`
24807 done
24808 test ! -n "$as_dirs" || mkdir $as_dirs
24809 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24810 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24811 { (exit 1); exit 1; }; }; }
24813 ac_builddir=.
24815 if test "$ac_dir" != .; then
24816 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24817 # A "../" for each directory in $ac_dir_suffix.
24818 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24819 else
24820 ac_dir_suffix= ac_top_builddir=
24823 case $srcdir in
24824 .) # No --srcdir option. We are building in place.
24825 ac_srcdir=.
24826 if test -z "$ac_top_builddir"; then
24827 ac_top_srcdir=.
24828 else
24829 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24830 fi ;;
24831 [\\/]* | ?:[\\/]* ) # Absolute path.
24832 ac_srcdir=$srcdir$ac_dir_suffix;
24833 ac_top_srcdir=$srcdir ;;
24834 *) # Relative path.
24835 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24836 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24837 esac
24839 # Do not use `cd foo && pwd` to compute absolute paths, because
24840 # the directories may not exist.
24841 case `pwd` in
24842 .) ac_abs_builddir="$ac_dir";;
24844 case "$ac_dir" in
24845 .) ac_abs_builddir=`pwd`;;
24846 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24847 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24848 esac;;
24849 esac
24850 case $ac_abs_builddir in
24851 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24853 case ${ac_top_builddir}. in
24854 .) ac_abs_top_builddir=$ac_abs_builddir;;
24855 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24856 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24857 esac;;
24858 esac
24859 case $ac_abs_builddir in
24860 .) ac_abs_srcdir=$ac_srcdir;;
24862 case $ac_srcdir in
24863 .) ac_abs_srcdir=$ac_abs_builddir;;
24864 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24865 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24866 esac;;
24867 esac
24868 case $ac_abs_builddir in
24869 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24871 case $ac_top_srcdir in
24872 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24873 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24874 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24875 esac;;
24876 esac
24880 if test x"$ac_file" != x-; then
24881 { echo "$as_me:$LINENO: creating $ac_file" >&5
24882 echo "$as_me: creating $ac_file" >&6;}
24883 rm -f "$ac_file"
24885 # Let's still pretend it is `configure' which instantiates (i.e., don't
24886 # use $as_me), people would be surprised to read:
24887 # /* config.h. Generated by config.status. */
24888 if test x"$ac_file" = x-; then
24889 configure_input=
24890 else
24891 configure_input="$ac_file. "
24893 configure_input=$configure_input"Generated from `echo $ac_file_in |
24894 sed 's,.*/,,'` by configure."
24896 # First look for the input files in the build tree, otherwise in the
24897 # src tree.
24898 ac_file_inputs=`IFS=:
24899 for f in $ac_file_in; do
24900 case $f in
24901 -) echo $tmp/stdin ;;
24902 [\\/$]*)
24903 # Absolute (can't be DOS-style, as IFS=:)
24904 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24905 echo "$as_me: error: cannot find input file: $f" >&2;}
24906 { (exit 1); exit 1; }; }
24907 echo "$f";;
24908 *) # Relative
24909 if test -f "$f"; then
24910 # Build tree
24911 echo "$f"
24912 elif test -f "$srcdir/$f"; then
24913 # Source tree
24914 echo "$srcdir/$f"
24915 else
24916 # /dev/null tree
24917 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24918 echo "$as_me: error: cannot find input file: $f" >&2;}
24919 { (exit 1); exit 1; }; }
24920 fi;;
24921 esac
24922 done` || { (exit 1); exit 1; }
24923 _ACEOF
24924 cat >>$CONFIG_STATUS <<_ACEOF
24925 sed "$ac_vpsub
24926 $extrasub
24927 _ACEOF
24928 cat >>$CONFIG_STATUS <<\_ACEOF
24930 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24931 s,@configure_input@,$configure_input,;t t
24932 s,@srcdir@,$ac_srcdir,;t t
24933 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24934 s,@top_srcdir@,$ac_top_srcdir,;t t
24935 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24936 s,@builddir@,$ac_builddir,;t t
24937 s,@abs_builddir@,$ac_abs_builddir,;t t
24938 s,@top_builddir@,$ac_top_builddir,;t t
24939 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24940 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24941 rm -f $tmp/stdin
24942 if test x"$ac_file" != x-; then
24943 mv $tmp/out $ac_file
24944 else
24945 cat $tmp/out
24946 rm -f $tmp/out
24949 # Run the commands associated with the file.
24950 case $ac_file in
24951 as ) chmod +x as ;;
24952 collect-ld ) chmod +x collect-ld ;;
24953 nm ) chmod +x nm ;;
24954 esac
24955 done
24956 _ACEOF
24957 cat >>$CONFIG_STATUS <<\_ACEOF
24960 # CONFIG_HEADER section.
24963 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24964 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24966 # ac_d sets the value in "#define NAME VALUE" lines.
24967 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24968 ac_dB='[ ].*$,\1#\2'
24969 ac_dC=' '
24970 ac_dD=',;t'
24971 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24972 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24973 ac_uB='$,\1#\2define\3'
24974 ac_uC=' '
24975 ac_uD=',;t'
24977 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24979 case $ac_file in
24980 - | *:- | *:-:* ) # input from stdin
24981 cat >$tmp/stdin
24982 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24983 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24984 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24986 * ) ac_file_in=$ac_file.in ;;
24987 esac
24989 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24990 echo "$as_me: creating $ac_file" >&6;}
24992 # First look for the input files in the build tree, otherwise in the
24993 # src tree.
24994 ac_file_inputs=`IFS=:
24995 for f in $ac_file_in; do
24996 case $f in
24997 -) echo $tmp/stdin ;;
24998 [\\/$]*)
24999 # Absolute (can't be DOS-style, as IFS=:)
25000 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25001 echo "$as_me: error: cannot find input file: $f" >&2;}
25002 { (exit 1); exit 1; }; }
25003 # Do quote $f, to prevent DOS paths from being IFS'd.
25004 echo "$f";;
25005 *) # Relative
25006 if test -f "$f"; then
25007 # Build tree
25008 echo "$f"
25009 elif test -f "$srcdir/$f"; then
25010 # Source tree
25011 echo "$srcdir/$f"
25012 else
25013 # /dev/null tree
25014 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25015 echo "$as_me: error: cannot find input file: $f" >&2;}
25016 { (exit 1); exit 1; }; }
25017 fi;;
25018 esac
25019 done` || { (exit 1); exit 1; }
25020 # Remove the trailing spaces.
25021 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25023 _ACEOF
25025 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25026 # `conftest.undefs', that substitutes the proper values into
25027 # config.h.in to produce config.h. The first handles `#define'
25028 # templates, and the second `#undef' templates.
25029 # And first: Protect against being on the right side of a sed subst in
25030 # config.status. Protect against being in an unquoted here document
25031 # in config.status.
25032 rm -f conftest.defines conftest.undefs
25033 # Using a here document instead of a string reduces the quoting nightmare.
25034 # Putting comments in sed scripts is not portable.
25036 # `end' is used to avoid that the second main sed command (meant for
25037 # 0-ary CPP macros) applies to n-ary macro definitions.
25038 # See the Autoconf documentation for `clear'.
25039 cat >confdef2sed.sed <<\_ACEOF
25040 s/[\\&,]/\\&/g
25041 s,[\\$`],\\&,g
25042 t clear
25043 : clear
25044 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25045 t end
25046 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25047 : end
25048 _ACEOF
25049 # If some macros were called several times there might be several times
25050 # the same #defines, which is useless. Nevertheless, we may not want to
25051 # sort them, since we want the *last* AC-DEFINE to be honored.
25052 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25053 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25054 rm -f confdef2sed.sed
25056 # This sed command replaces #undef with comments. This is necessary, for
25057 # example, in the case of _POSIX_SOURCE, which is predefined and required
25058 # on some systems where configure will not decide to define it.
25059 cat >>conftest.undefs <<\_ACEOF
25060 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25061 _ACEOF
25063 # Break up conftest.defines because some shells have a limit on the size
25064 # of here documents, and old seds have small limits too (100 cmds).
25065 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25066 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25067 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25068 echo ' :' >>$CONFIG_STATUS
25069 rm -f conftest.tail
25070 while grep . conftest.defines >/dev/null
25072 # Write a limited-size here document to $tmp/defines.sed.
25073 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25074 # Speed up: don't consider the non `#define' lines.
25075 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25076 # Work around the forget-to-reset-the-flag bug.
25077 echo 't clr' >>$CONFIG_STATUS
25078 echo ': clr' >>$CONFIG_STATUS
25079 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25080 echo 'CEOF
25081 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25082 rm -f $tmp/in
25083 mv $tmp/out $tmp/in
25084 ' >>$CONFIG_STATUS
25085 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25086 rm -f conftest.defines
25087 mv conftest.tail conftest.defines
25088 done
25089 rm -f conftest.defines
25090 echo ' fi # grep' >>$CONFIG_STATUS
25091 echo >>$CONFIG_STATUS
25093 # Break up conftest.undefs because some shells have a limit on the size
25094 # of here documents, and old seds have small limits too (100 cmds).
25095 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25096 rm -f conftest.tail
25097 while grep . conftest.undefs >/dev/null
25099 # Write a limited-size here document to $tmp/undefs.sed.
25100 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25101 # Speed up: don't consider the non `#undef'
25102 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25103 # Work around the forget-to-reset-the-flag bug.
25104 echo 't clr' >>$CONFIG_STATUS
25105 echo ': clr' >>$CONFIG_STATUS
25106 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25107 echo 'CEOF
25108 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25109 rm -f $tmp/in
25110 mv $tmp/out $tmp/in
25111 ' >>$CONFIG_STATUS
25112 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25113 rm -f conftest.undefs
25114 mv conftest.tail conftest.undefs
25115 done
25116 rm -f conftest.undefs
25118 cat >>$CONFIG_STATUS <<\_ACEOF
25119 # Let's still pretend it is `configure' which instantiates (i.e., don't
25120 # use $as_me), people would be surprised to read:
25121 # /* config.h. Generated by config.status. */
25122 if test x"$ac_file" = x-; then
25123 echo "/* Generated by configure. */" >$tmp/config.h
25124 else
25125 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25127 cat $tmp/in >>$tmp/config.h
25128 rm -f $tmp/in
25129 if test x"$ac_file" != x-; then
25130 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25131 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25132 echo "$as_me: $ac_file is unchanged" >&6;}
25133 else
25134 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25136 X"$ac_file" : 'X\(//\)[^/]' \| \
25137 X"$ac_file" : 'X\(//\)$' \| \
25138 X"$ac_file" : 'X\(/\)' \| \
25139 . : '\(.\)' 2>/dev/null ||
25140 echo X"$ac_file" |
25141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25143 /^X\(\/\/\)$/{ s//\1/; q; }
25144 /^X\(\/\).*/{ s//\1/; q; }
25145 s/.*/./; q'`
25146 { if $as_mkdir_p; then
25147 mkdir -p "$ac_dir"
25148 else
25149 as_dir="$ac_dir"
25150 as_dirs=
25151 while test ! -d "$as_dir"; do
25152 as_dirs="$as_dir $as_dirs"
25153 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25155 X"$as_dir" : 'X\(//\)[^/]' \| \
25156 X"$as_dir" : 'X\(//\)$' \| \
25157 X"$as_dir" : 'X\(/\)' \| \
25158 . : '\(.\)' 2>/dev/null ||
25159 echo X"$as_dir" |
25160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25162 /^X\(\/\/\)$/{ s//\1/; q; }
25163 /^X\(\/\).*/{ s//\1/; q; }
25164 s/.*/./; q'`
25165 done
25166 test ! -n "$as_dirs" || mkdir $as_dirs
25167 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25168 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25169 { (exit 1); exit 1; }; }; }
25171 rm -f $ac_file
25172 mv $tmp/config.h $ac_file
25174 else
25175 cat $tmp/config.h
25176 rm -f $tmp/config.h
25178 done
25179 _ACEOF
25180 cat >>$CONFIG_STATUS <<\_ACEOF
25183 # CONFIG_COMMANDS section.
25185 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25186 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25187 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25188 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25189 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25190 X"$ac_dest" : 'X\(//\)[^/]' \| \
25191 X"$ac_dest" : 'X\(//\)$' \| \
25192 X"$ac_dest" : 'X\(/\)' \| \
25193 . : '\(.\)' 2>/dev/null ||
25194 echo X"$ac_dest" |
25195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25197 /^X\(\/\/\)$/{ s//\1/; q; }
25198 /^X\(\/\).*/{ s//\1/; q; }
25199 s/.*/./; q'`
25200 { if $as_mkdir_p; then
25201 mkdir -p "$ac_dir"
25202 else
25203 as_dir="$ac_dir"
25204 as_dirs=
25205 while test ! -d "$as_dir"; do
25206 as_dirs="$as_dir $as_dirs"
25207 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25209 X"$as_dir" : 'X\(//\)[^/]' \| \
25210 X"$as_dir" : 'X\(//\)$' \| \
25211 X"$as_dir" : 'X\(/\)' \| \
25212 . : '\(.\)' 2>/dev/null ||
25213 echo X"$as_dir" |
25214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25216 /^X\(\/\/\)$/{ s//\1/; q; }
25217 /^X\(\/\).*/{ s//\1/; q; }
25218 s/.*/./; q'`
25219 done
25220 test ! -n "$as_dirs" || mkdir $as_dirs
25221 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25222 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25223 { (exit 1); exit 1; }; }; }
25225 ac_builddir=.
25227 if test "$ac_dir" != .; then
25228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25229 # A "../" for each directory in $ac_dir_suffix.
25230 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25231 else
25232 ac_dir_suffix= ac_top_builddir=
25235 case $srcdir in
25236 .) # No --srcdir option. We are building in place.
25237 ac_srcdir=.
25238 if test -z "$ac_top_builddir"; then
25239 ac_top_srcdir=.
25240 else
25241 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25242 fi ;;
25243 [\\/]* | ?:[\\/]* ) # Absolute path.
25244 ac_srcdir=$srcdir$ac_dir_suffix;
25245 ac_top_srcdir=$srcdir ;;
25246 *) # Relative path.
25247 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25248 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25249 esac
25251 # Do not use `cd foo && pwd` to compute absolute paths, because
25252 # the directories may not exist.
25253 case `pwd` in
25254 .) ac_abs_builddir="$ac_dir";;
25256 case "$ac_dir" in
25257 .) ac_abs_builddir=`pwd`;;
25258 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25259 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25260 esac;;
25261 esac
25262 case $ac_abs_builddir in
25263 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25265 case ${ac_top_builddir}. in
25266 .) ac_abs_top_builddir=$ac_abs_builddir;;
25267 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25268 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25269 esac;;
25270 esac
25271 case $ac_abs_builddir in
25272 .) ac_abs_srcdir=$ac_srcdir;;
25274 case $ac_srcdir in
25275 .) ac_abs_srcdir=$ac_abs_builddir;;
25276 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25277 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25278 esac;;
25279 esac
25280 case $ac_abs_builddir in
25281 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25283 case $ac_top_srcdir in
25284 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25285 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25286 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25287 esac;;
25288 esac
25291 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25292 echo "$as_me: executing $ac_dest commands" >&6;}
25293 case $ac_dest in
25294 default )
25295 case ${CONFIG_HEADERS} in
25296 *auto-host.h:config.in*)
25297 echo > cstamp-h ;;
25298 esac
25299 # Make sure all the subdirs exist.
25300 for d in $subdirs doc build
25302 test -d $d || mkdir $d
25303 done
25305 esac
25306 done
25307 _ACEOF
25309 cat >>$CONFIG_STATUS <<\_ACEOF
25311 { (exit 0); exit 0; }
25312 _ACEOF
25313 chmod +x $CONFIG_STATUS
25314 ac_clean_files=$ac_clean_files_save
25317 # configure is writing to config.log, and then calls config.status.
25318 # config.status does its own redirection, appending to config.log.
25319 # Unfortunately, on DOS this fails, as config.log is still kept open
25320 # by configure, so config.status won't be able to write to it; its
25321 # output is simply discarded. So we exec the FD to /dev/null,
25322 # effectively closing config.log, so it can be properly (re)opened and
25323 # appended to by config.status. When coming back to configure, we
25324 # need to make the FD available again.
25325 if test "$no_create" != yes; then
25326 ac_cs_success=:
25327 ac_config_status_args=
25328 test "$silent" = yes &&
25329 ac_config_status_args="$ac_config_status_args --quiet"
25330 exec 5>/dev/null
25331 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25332 exec 5>>config.log
25333 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25334 # would make configure fail if this is the last instruction.
25335 $ac_cs_success || { (exit 1); exit 1; }