2013-06-20 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / configure
blob8c221078102381412fb42da6dc4b81abb4695288
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 DO_LINK_MUTEX
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
700 FGREP
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CXXFLAGS
707 BUILD_CFLAGS
708 CXX_FOR_BUILD
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 NATIVE_SYSTEM_HEADER_DIR
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 EXTRA_GCC_LIBS
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CXXCPP
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
754 LN_S
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 SYSROOT_CFLAGS_FOR_TARGET
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 with_float
769 with_cpu
770 enable_multiarch
771 enable_multilib
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREECHECKING
777 TREEBROWSER
778 nocommon_flag
779 noexception_flags
780 warn_cxxflags
781 warn_cflags
782 c_strict_warn
783 strict_warn
784 c_loose_warn
785 loose_warn
786 EGREP
787 GREP
789 PICFLAG_FOR_TARGET
790 OUTPUT_OPTION
791 NO_MINUS_C_MINUS_O
792 GNATMAKE
793 GNATBIND
794 ac_ct_CXX
795 CXXFLAGS
797 OBJEXT
798 EXEEXT
799 ac_ct_CC
800 CPPFLAGS
801 LDFLAGS
802 CFLAGS
804 GENINSRC
805 target_subdir
806 host_subdir
807 build_subdir
808 build_libsubdir
809 target_noncanonical
810 target_os
811 target_vendor
812 target_cpu
813 target
814 host_os
815 host_vendor
816 host_cpu
817 host
818 build_os
819 build_vendor
820 build_cpu
821 build
822 target_alias
823 host_alias
824 build_alias
825 LIBS
826 ECHO_T
827 ECHO_N
828 ECHO_C
829 DEFS
830 mandir
831 localedir
832 libdir
833 psdir
834 pdfdir
835 dvidir
836 htmldir
837 infodir
838 docdir
839 oldincludedir
840 includedir
841 localstatedir
842 sharedstatedir
843 sysconfdir
844 datadir
845 datarootdir
846 libexecdir
847 sbindir
848 bindir
849 program_transform_name
850 prefix
851 exec_prefix
852 PACKAGE_URL
853 PACKAGE_BUGREPORT
854 PACKAGE_STRING
855 PACKAGE_VERSION
856 PACKAGE_TARNAME
857 PACKAGE_NAME
858 PATH_SEPARATOR
859 SHELL'
860 ac_subst_files='option_includes
861 language_hooks'
862 ac_user_opts='
863 enable_option_checking
864 with_build_libsubdir
865 with_local_prefix
866 with_gxx_include_dir
867 with_cpp_install_dir
868 enable_generated_files_in_srcdir
869 with_gnu_ld
870 with_ld
871 with_demangler_in_ld
872 with_gnu_as
873 with_as
874 enable_largefile
875 enable_werror_always
876 enable_checking
877 enable_coverage
878 enable_gather_detailed_mem_stats
879 with_stabs
880 enable_multilib
881 enable_multiarch
882 enable___cxa_atexit
883 enable_decimal_float
884 enable_fixed_point
885 enable_threads
886 enable_tls
887 enable_objc_gc
888 with_dwarf2
889 enable_shared
890 with_native_system_header_dir
891 with_build_sysroot
892 with_sysroot
893 with_specs
894 with_pkgversion
895 with_bugurl
896 enable_languages
897 with_multilib_list
898 enable_rpath
899 with_libiconv_prefix
900 enable_sjlj_exceptions
901 enable_secureplt
902 enable_leading_mingw64_underscores
903 enable_cld
904 enable_frame_pointer
905 enable_win32_registry
906 enable_static
907 with_pic
908 enable_fast_install
909 enable_libtool_lock
910 with_plugin_ld
911 enable_gnu_indirect_function
912 enable_initfini_array
913 enable_comdat
914 enable_gnu_unique_object
915 enable_linker_build_id
916 with_long_double_128
917 with_gc
918 with_system_zlib
919 enable_maintainer_mode
920 enable_link_mutex
921 enable_version_specific_runtime_libs
922 enable_plugin
923 enable_libquadmath_support
924 with_linker_hash_style
926 ac_precious_vars='build_alias
927 host_alias
928 target_alias
930 CFLAGS
931 LDFLAGS
932 LIBS
933 CPPFLAGS
935 CXXFLAGS
938 CXXCPP
939 GMPLIBS
940 GMPINC
941 ISLLIBS
942 ISLINC
943 CLOOGLIBS
944 CLOOGINC'
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
995 ac_prev=
996 ac_dashdash=
997 for ac_option
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1002 ac_prev=
1003 continue
1006 case $ac_option in
1007 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 *) ac_optarg=yes ;;
1009 esac
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1013 case $ac_dashdash$ac_option in
1015 ac_dashdash=yes ;;
1017 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 ac_prev=bindir ;;
1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020 bindir=$ac_optarg ;;
1022 -build | --build | --buil | --bui | --bu)
1023 ac_prev=build_alias ;;
1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025 build_alias=$ac_optarg ;;
1027 -cache-file | --cache-file | --cache-fil | --cache-fi \
1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029 ac_prev=cache_file ;;
1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032 cache_file=$ac_optarg ;;
1034 --config-cache | -C)
1035 cache_file=config.cache ;;
1037 -datadir | --datadir | --datadi | --datad)
1038 ac_prev=datadir ;;
1039 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040 datadir=$ac_optarg ;;
1042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043 | --dataroo | --dataro | --datar)
1044 ac_prev=datarootdir ;;
1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047 datarootdir=$ac_optarg ;;
1049 -disable-* | --disable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=no ;;
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1075 -enable-* | --enable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1279 -with-* | --with-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=\$ac_optarg ;;
1295 -without-* | --without-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1304 "with_$ac_useropt"
1305 "*) ;;
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1308 esac
1309 eval with_$ac_useropt=no ;;
1311 --x)
1312 # Obsolete; use --with-x.
1313 with_x=yes ;;
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1329 -*) as_fn_error "unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information."
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' | [0-9]* | *[!_$as_cr_alnum]* )
1338 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1339 esac
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 esac
1352 done
1354 if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error "missing argument to $ac_option"
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1361 no) ;;
1362 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 esac
1367 # Check all directory arguments for consistency.
1368 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1373 eval ac_val=\$$ac_var
1374 # Remove trailing slashes.
1375 case $ac_val in
1376 */ )
1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\$ac_val;;
1379 esac
1380 # Be sure to have absolute directory names.
1381 case $ac_val in
1382 [\\/$]* | ?:[\\/]* ) continue;;
1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 esac
1385 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1386 done
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1391 build=$build_alias
1392 host=$host_alias
1393 target=$target_alias
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1406 ac_tool_prefix=
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409 test "$silent" = yes && exec 6>/dev/null
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error "pwd does not report name of working directory"
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 s//\1/
1434 /^X\(\/\/\)[^/].*/{
1435 s//\1/
1438 /^X\(\/\/\)$/{
1439 s//\1/
1442 /^X\(\/\).*/{
1443 s//\1/
1446 s/.*/./; q'`
1447 srcdir=$ac_confdir
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 srcdir=..
1451 else
1452 ac_srcdir_defaulted=no
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 ac_abs_confdir=`(
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1461 pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1480 # Report the --help message.
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486 \`configure' configures this package to adapt to many kinds of systems.
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1493 Defaults for the options are specified in brackets.
1495 Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1517 For better control, use the options below.
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1539 _ACEOF
1541 cat <<\_ACEOF
1543 Program names:
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1548 System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 --target=TARGET configure for building compilers for TARGET [HOST]
1552 _ACEOF
1555 if test -n "$ac_init_help"; then
1557 cat <<\_ACEOF
1559 Optional Features:
1560 --disable-option-checking ignore unrecognized --enable/--with options
1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1563 --enable-generated-files-in-srcdir
1564 put copies of generated files in source dir intended
1565 for creating source tarballs for users without
1566 texinfo bison or flex
1567 --disable-largefile omit support for large files
1568 --enable-werror-always enable -Werror despite compiler version
1569 --enable-checking[=LIST]
1570 enable expensive run-time checks. With LIST, enable
1571 only specific categories of checks. Categories are:
1572 yes,no,all,none,release. Flags are:
1573 assert,df,fold,gc,gcac,gimple,misc,
1574 rtlflag,rtl,runtime,tree,valgrind,types
1575 --enable-coverage[=LEVEL]
1576 enable compiler's code coverage collection. Use to
1577 measure compiler performance and locate unused parts
1578 of the compiler. With LEVEL, specify optimization.
1579 Values are opt, noopt, default is noopt
1580 --enable-gather-detailed-mem-stats
1581 enable detailed memory allocation stats gathering
1582 --enable-multilib enable library support for multiple ABIs
1583 --enable-multiarch enable support for multiarch paths
1584 --enable-__cxa_atexit enable __cxa_atexit for C++
1585 --enable-decimal-float={no,yes,bid,dpd}
1586 enable decimal float extension to C. Selecting 'bid'
1587 or 'dpd' choses which decimal floating point format
1588 to use
1589 --enable-fixed-point enable fixed-point arithmetic extension to C
1590 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1591 package
1592 --enable-tls enable or disable generation of tls code overriding
1593 the assembler check for tls support
1594 --enable-objc-gc enable the use of Boehm's garbage collector with the
1595 GNU Objective-C runtime
1596 --disable-shared don't provide a shared libgcc
1597 --enable-languages=LIST specify which front-ends to build
1598 --disable-rpath do not hardcode runtime library paths
1599 --enable-sjlj-exceptions
1600 arrange to use setjmp/longjmp exception handling
1601 --enable-secureplt enable -msecure-plt by default for PowerPC
1602 --enable-leading-mingw64-underscores
1603 enable leading underscores on 64 bit mingw targets
1604 --enable-cld enable -mcld by default for 32bit x86
1605 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1607 --disable-win32-registry
1608 disable lookup of installation paths in the Registry
1609 on Windows hosts
1610 --enable-win32-registry enable registry lookup (default)
1611 --enable-win32-registry=KEY
1612 use KEY instead of GCC version as the last portion
1613 of the registry key
1614 --enable-shared[=PKGS] build shared libraries [default=yes]
1615 --enable-static[=PKGS] build static libraries [default=yes]
1616 --enable-fast-install[=PKGS]
1617 optimize for fast installation [default=yes]
1618 --disable-libtool-lock avoid locking (might break parallel builds)
1619 --enable-gnu-indirect-function
1620 enable the use of the @gnu_indirect_function to
1621 glibc systems
1622 --enable-initfini-array use .init_array/.fini_array sections
1623 --enable-comdat enable COMDAT group support
1624 --enable-gnu-unique-object
1625 enable the use of the @gnu_unique_object ELF
1626 extension on glibc systems
1627 --enable-linker-build-id
1628 compiler will always pass --build-id to linker
1629 --enable-maintainer-mode
1630 enable make rules and dependencies not useful (and
1631 sometimes confusing) to the casual installer
1632 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1633 thrashing on the build machine
1634 --enable-version-specific-runtime-libs
1635 specify that runtime libraries should be installed
1636 in a compiler-specific directory
1637 --enable-plugin enable plugin support
1638 --disable-libquadmath-support
1639 disable libquadmath support for Fortran
1641 Optional Packages:
1642 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1643 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1644 --with-build-libsubdir=DIR Directory where to find libraries for build system
1645 --with-local-prefix=DIR specifies directory to put local include
1646 --with-gxx-include-dir=DIR
1647 specifies directory to put g++ header files
1648 --with-cpp-install-dir=DIR
1649 install the user visible C preprocessor in DIR
1650 (relative to PREFIX) as well as PREFIX/bin
1651 --with-gnu-ld arrange to work with GNU ld
1652 --with-ld arrange to use the specified ld (full pathname)
1653 --with-demangler-in-ld try to use demangler in GNU ld
1654 --with-gnu-as arrange to work with GNU as
1655 --with-as arrange to use the specified as (full pathname)
1656 --with-stabs arrange to use stabs instead of host debug format
1657 --with-dwarf2 force the default debug format to be DWARF 2
1658 --with-native-system-header-dir=dir
1659 use dir as the directory to look for standard
1660 system header files in. Defaults to /usr/include.
1661 --with-build-sysroot=sysroot
1662 use sysroot as the system root during the build
1663 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1664 --with-specs=SPECS add SPECS to driver command-line processing
1665 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1666 --with-bugurl=URL Direct users to URL to report a bug
1667 --with-multilib-list select multilibs (SH and x86-64 only)
1668 --with-gnu-ld assume the C compiler uses GNU ld default=no
1669 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1670 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1671 --with-pic try to use only PIC/non-PIC objects [default=use
1672 both]
1673 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1674 --with-plugin-ld=[ARG] specify the plugin linker
1675 --with-long-double-128 use 128-bit long double by default
1676 --with-gc={page,zone} this option is not supported anymore. It used to
1677 choose the garbage collection mechanism to use with
1678 the compiler
1679 --with-system-zlib use installed libz
1680 --with-linker-hash-style={sysv,gnu,both}
1681 specify the linker hash style
1683 Some influential environment variables:
1684 CC C compiler command
1685 CFLAGS C compiler flags
1686 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1687 nonstandard directory <lib dir>
1688 LIBS libraries to pass to the linker, e.g. -l<library>
1689 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1690 you have headers in a nonstandard directory <include dir>
1691 CXX C++ compiler command
1692 CXXFLAGS C++ compiler flags
1693 CPP C preprocessor
1694 CXXCPP C++ preprocessor
1695 GMPLIBS How to link GMP
1696 GMPINC How to find GMP include files
1697 ISLLIBS How to link ISL
1698 ISLINC How to find ISL include files
1699 CLOOGLIBS How to link CLOOG
1700 CLOOGINC How to find CLOOG include files
1702 Use these variables to override the choices made by `configure' or to help
1703 it to find libraries and programs with nonstandard names/locations.
1705 Report bugs to the package provider.
1706 _ACEOF
1707 ac_status=$?
1710 if test "$ac_init_help" = "recursive"; then
1711 # If there are subdirs, report their specific --help.
1712 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1713 test -d "$ac_dir" ||
1714 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1715 continue
1716 ac_builddir=.
1718 case "$ac_dir" in
1719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1722 # A ".." for each directory in $ac_dir_suffix.
1723 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1724 case $ac_top_builddir_sub in
1725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1727 esac ;;
1728 esac
1729 ac_abs_top_builddir=$ac_pwd
1730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1731 # for backward compatibility:
1732 ac_top_builddir=$ac_top_build_prefix
1734 case $srcdir in
1735 .) # We are building in place.
1736 ac_srcdir=.
1737 ac_top_srcdir=$ac_top_builddir_sub
1738 ac_abs_top_srcdir=$ac_pwd ;;
1739 [\\/]* | ?:[\\/]* ) # Absolute name.
1740 ac_srcdir=$srcdir$ac_dir_suffix;
1741 ac_top_srcdir=$srcdir
1742 ac_abs_top_srcdir=$srcdir ;;
1743 *) # Relative name.
1744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1745 ac_top_srcdir=$ac_top_build_prefix$srcdir
1746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1747 esac
1748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1750 cd "$ac_dir" || { ac_status=$?; continue; }
1751 # Check for guested configure.
1752 if test -f "$ac_srcdir/configure.gnu"; then
1753 echo &&
1754 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1755 elif test -f "$ac_srcdir/configure"; then
1756 echo &&
1757 $SHELL "$ac_srcdir/configure" --help=recursive
1758 else
1759 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1760 fi || ac_status=$?
1761 cd "$ac_pwd" || { ac_status=$?; break; }
1762 done
1765 test -n "$ac_init_help" && exit $ac_status
1766 if $ac_init_version; then
1767 cat <<\_ACEOF
1768 configure
1769 generated by GNU Autoconf 2.64
1771 Copyright (C) 2009 Free Software Foundation, Inc.
1772 This configure script is free software; the Free Software Foundation
1773 gives unlimited permission to copy, distribute and modify it.
1774 _ACEOF
1775 exit
1778 ## ------------------------ ##
1779 ## Autoconf initialization. ##
1780 ## ------------------------ ##
1782 # ac_fn_c_try_compile LINENO
1783 # --------------------------
1784 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_compile ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext
1789 if { { ac_try="$ac_compile"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_compile") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest.$ac_objext; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1813 ac_retval=1
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 return $ac_retval
1818 } # ac_fn_c_try_compile
1820 # ac_fn_cxx_try_compile LINENO
1821 # ----------------------------
1822 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_cxx_try_compile ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 rm -f conftest.$ac_objext
1827 if { { ac_try="$ac_compile"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_compile") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_cxx_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest.$ac_objext; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1851 ac_retval=1
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 return $ac_retval
1856 } # ac_fn_cxx_try_compile
1858 # ac_fn_c_try_cpp LINENO
1859 # ----------------------
1860 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_c_try_cpp ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { { ac_try="$ac_cpp conftest.$ac_ext"
1865 case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1872 ac_status=$?
1873 if test -s conftest.err; then
1874 grep -v '^ *+' conftest.err >conftest.er1
1875 cat conftest.er1 >&5
1876 mv -f conftest.er1 conftest.err
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } >/dev/null && {
1880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1881 test ! -s conftest.err
1882 }; then :
1883 ac_retval=0
1884 else
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1888 ac_retval=1
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891 return $ac_retval
1893 } # ac_fn_c_try_cpp
1895 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1896 # -------------------------------------------------------
1897 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1898 # the include files in INCLUDES and setting the cache variable VAR
1899 # accordingly.
1900 ac_fn_c_check_header_mongrel ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907 $as_echo_n "(cached) " >&6
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 else
1913 # Is the header compilable?
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1915 $as_echo_n "checking $2 usability... " >&6; }
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 ac_header_compiler=yes
1923 else
1924 ac_header_compiler=no
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1928 $as_echo "$ac_header_compiler" >&6; }
1930 # Is the header present?
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1932 $as_echo_n "checking $2 presence... " >&6; }
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1935 #include <$2>
1936 _ACEOF
1937 if ac_fn_c_try_cpp "$LINENO"; then :
1938 ac_header_preproc=yes
1939 else
1940 ac_header_preproc=no
1942 rm -f conftest.err conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1944 $as_echo "$ac_header_preproc" >&6; }
1946 # So? What about this header?
1947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1948 yes:no: )
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1950 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1952 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1954 no:yes:* )
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1956 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1958 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1960 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1962 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966 esac
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1971 else
1972 eval "$3=\$ac_header_compiler"
1974 eval ac_res=\$$3
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980 } # ac_fn_c_check_header_mongrel
1982 # ac_fn_c_try_run LINENO
1983 # ----------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1985 # that executables *can* be run.
1986 ac_fn_c_try_run ()
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 if { { ac_try="$ac_link"
1990 case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>&5
1997 ac_status=$?
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2000 { { case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003 esac
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_try") 2>&5
2007 ac_status=$?
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; }; }; then :
2010 ac_retval=0
2011 else
2012 $as_echo "$as_me: program exited with status $ac_status" >&5
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2016 ac_retval=$ac_status
2018 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2019 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2020 return $ac_retval
2022 } # ac_fn_c_try_run
2024 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2025 # -------------------------------------------------------
2026 # Tests whether HEADER exists and can be compiled using the include files in
2027 # INCLUDES, setting the cache variable VAR accordingly.
2028 ac_fn_c_check_header_compile ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2034 $as_echo_n "(cached) " >&6
2035 else
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2039 #include <$2>
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 eval "$3=yes"
2043 else
2044 eval "$3=no"
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 eval ac_res=\$$3
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053 } # ac_fn_c_check_header_compile
2055 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2056 # --------------------------------------------
2057 # Tries to find the compile-time value of EXPR in a program that includes
2058 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2059 # computed
2060 ac_fn_c_compute_int ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 if test "$cross_compiling" = yes; then
2064 # Depending upon the size, compute the lo and hi bounds.
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 static int test_array [1 - 2 * !(($2) >= 0)];
2072 test_array [0] = 0
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_lo=0 ac_mid=0
2080 while :; do
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2085 main ()
2087 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2088 test_array [0] = 0
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_hi=$ac_mid; break
2096 else
2097 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2098 if test $ac_lo -le $ac_mid; then
2099 ac_lo= ac_hi=
2100 break
2102 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 done
2106 else
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2111 main ()
2113 static int test_array [1 - 2 * !(($2) < 0)];
2114 test_array [0] = 0
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_hi=-1 ac_mid=-1
2122 while :; do
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2127 main ()
2129 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2130 test_array [0] = 0
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_lo=$ac_mid; break
2138 else
2139 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2140 if test $ac_mid -le $ac_hi; then
2141 ac_lo= ac_hi=
2142 break
2144 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 done
2148 else
2149 ac_lo= ac_hi=
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 # Binary search between lo and hi bounds.
2155 while test "x$ac_lo" != "x$ac_hi"; do
2156 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2161 main ()
2163 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164 test_array [0] = 0
2167 return 0;
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 ac_hi=$ac_mid
2172 else
2173 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 done
2177 case $ac_lo in #((
2178 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2179 '') ac_retval=1 ;;
2180 esac
2181 else
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2185 static long int longval () { return $2; }
2186 static unsigned long int ulongval () { return $2; }
2187 #include <stdio.h>
2188 #include <stdlib.h>
2190 main ()
2193 FILE *f = fopen ("conftest.val", "w");
2194 if (! f)
2195 return 1;
2196 if (($2) < 0)
2198 long int i = longval ();
2199 if (i != ($2))
2200 return 1;
2201 fprintf (f, "%ld", i);
2203 else
2205 unsigned long int i = ulongval ();
2206 if (i != ($2))
2207 return 1;
2208 fprintf (f, "%lu", i);
2210 /* Do not output a trailing newline, as this causes \r\n confusion
2211 on some platforms. */
2212 return ferror (f) || fclose (f) != 0;
2215 return 0;
2217 _ACEOF
2218 if ac_fn_c_try_run "$LINENO"; then :
2219 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2220 else
2221 ac_retval=1
2223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2224 conftest.$ac_objext conftest.beam conftest.$ac_ext
2225 rm -f conftest.val
2228 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2229 return $ac_retval
2231 } # ac_fn_c_compute_int
2233 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2234 # -------------------------------------------
2235 # Tests whether TYPE exists after having included INCLUDES, setting cache
2236 # variable VAR accordingly.
2237 ac_fn_c_check_type ()
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243 $as_echo_n "(cached) " >&6
2244 else
2245 eval "$3=no"
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2250 main ()
2252 if (sizeof ($2))
2253 return 0;
2255 return 0;
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2263 main ()
2265 if (sizeof (($2)))
2266 return 0;
2268 return 0;
2270 _ACEOF
2271 if ac_fn_c_try_compile "$LINENO"; then :
2273 else
2274 eval "$3=yes"
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 eval ac_res=\$$3
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285 } # ac_fn_c_check_type
2287 # ac_fn_c_find_intX_t LINENO BITS VAR
2288 # -----------------------------------
2289 # Finds a signed integer type with width BITS, setting cache variable VAR
2290 # accordingly.
2291 ac_fn_c_find_intX_t ()
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2295 $as_echo_n "checking for int$2_t... " >&6; }
2296 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2297 $as_echo_n "(cached) " >&6
2298 else
2299 eval "$3=no"
2300 for ac_type in int$2_t 'int' 'long int' \
2301 'long long int' 'short int' 'signed char'; do
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2304 $ac_includes_default
2306 main ()
2308 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2309 test_array [0] = 0
2312 return 0;
2314 _ACEOF
2315 if ac_fn_c_try_compile "$LINENO"; then :
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2318 $ac_includes_default
2320 main ()
2322 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2323 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2324 test_array [0] = 0
2327 return 0;
2329 _ACEOF
2330 if ac_fn_c_try_compile "$LINENO"; then :
2332 else
2333 case $ac_type in #(
2334 int$2_t) :
2335 eval "$3=yes" ;; #(
2336 *) :
2337 eval "$3=\$ac_type" ;;
2338 esac
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 eval as_val=\$$3
2344 if test "x$as_val" = x""no; then :
2346 else
2347 break
2349 done
2351 eval ac_res=\$$3
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2356 } # ac_fn_c_find_intX_t
2358 # ac_fn_c_try_link LINENO
2359 # -----------------------
2360 # Try to link conftest.$ac_ext, and return whether this succeeded.
2361 ac_fn_c_try_link ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 rm -f conftest.$ac_objext conftest$ac_exeext
2365 if { { ac_try="$ac_link"
2366 case "(($ac_try" in
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2369 esac
2370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2371 $as_echo "$ac_try_echo"; } >&5
2372 (eval "$ac_link") 2>conftest.err
2373 ac_status=$?
2374 if test -s conftest.err; then
2375 grep -v '^ *+' conftest.err >conftest.er1
2376 cat conftest.er1 >&5
2377 mv -f conftest.er1 conftest.err
2379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2380 test $ac_status = 0; } && {
2381 test -z "$ac_c_werror_flag" ||
2382 test ! -s conftest.err
2383 } && test -s conftest$ac_exeext && {
2384 test "$cross_compiling" = yes ||
2385 $as_test_x conftest$ac_exeext
2386 }; then :
2387 ac_retval=0
2388 else
2389 $as_echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2392 ac_retval=1
2394 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2395 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2396 # interfere with the next link command; also delete a directory that is
2397 # left behind by Apple's compiler. We do this before executing the actions.
2398 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2399 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2400 return $ac_retval
2402 } # ac_fn_c_try_link
2404 # ac_fn_c_find_uintX_t LINENO BITS VAR
2405 # ------------------------------------
2406 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2407 # accordingly.
2408 ac_fn_c_find_uintX_t ()
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2412 $as_echo_n "checking for uint$2_t... " >&6; }
2413 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 eval "$3=no"
2417 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2418 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 $ac_includes_default
2423 main ()
2425 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2426 test_array [0] = 0
2429 return 0;
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433 case $ac_type in #(
2434 uint$2_t) :
2435 eval "$3=yes" ;; #(
2436 *) :
2437 eval "$3=\$ac_type" ;;
2438 esac
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 eval as_val=\$$3
2442 if test "x$as_val" = x""no; then :
2444 else
2445 break
2447 done
2449 eval ac_res=\$$3
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2454 } # ac_fn_c_find_uintX_t
2456 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2457 # ----------------------------------------------
2458 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2459 ac_fn_c_check_header_preproc ()
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463 $as_echo_n "checking for $2... " >&6; }
2464 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2469 #include <$2>
2470 _ACEOF
2471 if ac_fn_c_try_cpp "$LINENO"; then :
2472 eval "$3=yes"
2473 else
2474 eval "$3=no"
2476 rm -f conftest.err conftest.$ac_ext
2478 eval ac_res=\$$3
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483 } # ac_fn_c_check_header_preproc
2485 # ac_fn_cxx_try_cpp LINENO
2486 # ------------------------
2487 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2488 ac_fn_cxx_try_cpp ()
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 if { { ac_try="$ac_cpp conftest.$ac_ext"
2492 case "(($ac_try" in
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2495 esac
2496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497 $as_echo "$ac_try_echo"; } >&5
2498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2499 ac_status=$?
2500 if test -s conftest.err; then
2501 grep -v '^ *+' conftest.err >conftest.er1
2502 cat conftest.er1 >&5
2503 mv -f conftest.er1 conftest.err
2505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 test $ac_status = 0; } >/dev/null && {
2507 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2508 test ! -s conftest.err
2509 }; then :
2510 ac_retval=0
2511 else
2512 $as_echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2515 ac_retval=1
2517 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518 return $ac_retval
2520 } # ac_fn_cxx_try_cpp
2522 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2523 # ------------------------------------------------
2524 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2525 ac_fn_cxx_check_header_preproc ()
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2529 $as_echo_n "checking for $2... " >&6; }
2530 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2535 #include <$2>
2536 _ACEOF
2537 if ac_fn_cxx_try_cpp "$LINENO"; then :
2538 eval "$3=yes"
2539 else
2540 eval "$3=no"
2542 rm -f conftest.err conftest.$ac_ext
2544 eval ac_res=\$$3
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2549 } # ac_fn_cxx_check_header_preproc
2551 # ac_fn_c_check_func LINENO FUNC VAR
2552 # ----------------------------------
2553 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2554 ac_fn_c_check_func ()
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2564 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2566 #define $2 innocuous_$2
2568 /* System header to define __stub macros and hopefully few prototypes,
2569 which can conflict with char $2 (); below.
2570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2571 <limits.h> exists even on freestanding compilers. */
2573 #ifdef __STDC__
2574 # include <limits.h>
2575 #else
2576 # include <assert.h>
2577 #endif
2579 #undef $2
2581 /* Override any GCC internal prototype to avoid an error.
2582 Use char because int might match the return type of a GCC
2583 builtin and then its argument prototype would still apply. */
2584 #ifdef __cplusplus
2585 extern "C"
2586 #endif
2587 char $2 ();
2588 /* The GNU C library defines this for functions which it implements
2589 to always fail with ENOSYS. Some functions are actually named
2590 something starting with __ and the normal name is an alias. */
2591 #if defined __stub_$2 || defined __stub___$2
2592 choke me
2593 #endif
2596 main ()
2598 return $2 ();
2600 return 0;
2602 _ACEOF
2603 if ac_fn_c_try_link "$LINENO"; then :
2604 eval "$3=yes"
2605 else
2606 eval "$3=no"
2608 rm -f core conftest.err conftest.$ac_objext \
2609 conftest$ac_exeext conftest.$ac_ext
2611 eval ac_res=\$$3
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 $as_echo "$ac_res" >&6; }
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2616 } # ac_fn_c_check_func
2618 # ac_fn_cxx_try_link LINENO
2619 # -------------------------
2620 # Try to link conftest.$ac_ext, and return whether this succeeded.
2621 ac_fn_cxx_try_link ()
2623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624 rm -f conftest.$ac_objext conftest$ac_exeext
2625 if { { ac_try="$ac_link"
2626 case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2629 esac
2630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631 $as_echo "$ac_try_echo"; } >&5
2632 (eval "$ac_link") 2>conftest.err
2633 ac_status=$?
2634 if test -s conftest.err; then
2635 grep -v '^ *+' conftest.err >conftest.er1
2636 cat conftest.er1 >&5
2637 mv -f conftest.er1 conftest.err
2639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2640 test $ac_status = 0; } && {
2641 test -z "$ac_cxx_werror_flag" ||
2642 test ! -s conftest.err
2643 } && test -s conftest$ac_exeext && {
2644 test "$cross_compiling" = yes ||
2645 $as_test_x conftest$ac_exeext
2646 }; then :
2647 ac_retval=0
2648 else
2649 $as_echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2652 ac_retval=1
2654 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2655 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2656 # interfere with the next link command; also delete a directory that is
2657 # left behind by Apple's compiler. We do this before executing the actions.
2658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2660 return $ac_retval
2662 } # ac_fn_cxx_try_link
2663 cat >config.log <<_ACEOF
2664 This file contains any messages produced by compilers while
2665 running configure, to aid debugging if configure makes a mistake.
2667 It was created by $as_me, which was
2668 generated by GNU Autoconf 2.64. Invocation command line was
2670 $ $0 $@
2672 _ACEOF
2673 exec 5>>config.log
2675 cat <<_ASUNAME
2676 ## --------- ##
2677 ## Platform. ##
2678 ## --------- ##
2680 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2681 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2682 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2683 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2684 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2686 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2687 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2689 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2690 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2691 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2692 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2693 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2694 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2695 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2697 _ASUNAME
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 $as_echo "PATH: $as_dir"
2705 done
2706 IFS=$as_save_IFS
2708 } >&5
2710 cat >&5 <<_ACEOF
2713 ## ----------- ##
2714 ## Core tests. ##
2715 ## ----------- ##
2717 _ACEOF
2720 # Keep a trace of the command line.
2721 # Strip out --no-create and --no-recursion so they do not pile up.
2722 # Strip out --silent because we don't want to record it for future runs.
2723 # Also quote any args containing shell meta-characters.
2724 # Make two passes to allow for proper duplicate-argument suppression.
2725 ac_configure_args=
2726 ac_configure_args0=
2727 ac_configure_args1=
2728 ac_must_keep_next=false
2729 for ac_pass in 1 2
2731 for ac_arg
2733 case $ac_arg in
2734 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2736 | -silent | --silent | --silen | --sile | --sil)
2737 continue ;;
2738 *\'*)
2739 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2740 esac
2741 case $ac_pass in
2742 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2744 as_fn_append ac_configure_args1 " '$ac_arg'"
2745 if test $ac_must_keep_next = true; then
2746 ac_must_keep_next=false # Got value, back to normal.
2747 else
2748 case $ac_arg in
2749 *=* | --config-cache | -C | -disable-* | --disable-* \
2750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2752 | -with-* | --with-* | -without-* | --without-* | --x)
2753 case "$ac_configure_args0 " in
2754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2755 esac
2757 -* ) ac_must_keep_next=true ;;
2758 esac
2760 as_fn_append ac_configure_args " '$ac_arg'"
2762 esac
2763 done
2764 done
2765 { ac_configure_args0=; unset ac_configure_args0;}
2766 { ac_configure_args1=; unset ac_configure_args1;}
2768 # When interrupted or exit'd, cleanup temporary files, and complete
2769 # config.log. We remove comments because anyway the quotes in there
2770 # would cause problems or look ugly.
2771 # WARNING: Use '\'' to represent an apostrophe within the trap.
2772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2773 trap 'exit_status=$?
2774 # Save into config.log some information that might help in debugging.
2776 echo
2778 cat <<\_ASBOX
2779 ## ---------------- ##
2780 ## Cache variables. ##
2781 ## ---------------- ##
2782 _ASBOX
2783 echo
2784 # The following way of writing the cache mishandles newlines in values,
2786 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2787 eval ac_val=\$$ac_var
2788 case $ac_val in #(
2789 *${as_nl}*)
2790 case $ac_var in #(
2791 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2792 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2793 esac
2794 case $ac_var in #(
2795 _ | IFS | as_nl) ;; #(
2796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2797 *) { eval $ac_var=; unset $ac_var;} ;;
2798 esac ;;
2799 esac
2800 done
2801 (set) 2>&1 |
2802 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2803 *${as_nl}ac_space=\ *)
2804 sed -n \
2805 "s/'\''/'\''\\\\'\'''\''/g;
2806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2807 ;; #(
2809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2811 esac |
2812 sort
2814 echo
2816 cat <<\_ASBOX
2817 ## ----------------- ##
2818 ## Output variables. ##
2819 ## ----------------- ##
2820 _ASBOX
2821 echo
2822 for ac_var in $ac_subst_vars
2824 eval ac_val=\$$ac_var
2825 case $ac_val in
2826 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2827 esac
2828 $as_echo "$ac_var='\''$ac_val'\''"
2829 done | sort
2830 echo
2832 if test -n "$ac_subst_files"; then
2833 cat <<\_ASBOX
2834 ## ------------------- ##
2835 ## File substitutions. ##
2836 ## ------------------- ##
2837 _ASBOX
2838 echo
2839 for ac_var in $ac_subst_files
2841 eval ac_val=\$$ac_var
2842 case $ac_val in
2843 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2844 esac
2845 $as_echo "$ac_var='\''$ac_val'\''"
2846 done | sort
2847 echo
2850 if test -s confdefs.h; then
2851 cat <<\_ASBOX
2852 ## ----------- ##
2853 ## confdefs.h. ##
2854 ## ----------- ##
2855 _ASBOX
2856 echo
2857 cat confdefs.h
2858 echo
2860 test "$ac_signal" != 0 &&
2861 $as_echo "$as_me: caught signal $ac_signal"
2862 $as_echo "$as_me: exit $exit_status"
2863 } >&5
2864 rm -f core *.core core.conftest.* &&
2865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2866 exit $exit_status
2868 for ac_signal in 1 2 13 15; do
2869 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2870 done
2871 ac_signal=0
2873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2874 rm -f -r conftest* confdefs.h
2876 $as_echo "/* confdefs.h */" > confdefs.h
2878 # Predefined preprocessor variables.
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_NAME "$PACKAGE_NAME"
2882 _ACEOF
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2886 _ACEOF
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2890 _ACEOF
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_STRING "$PACKAGE_STRING"
2894 _ACEOF
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2898 _ACEOF
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_URL "$PACKAGE_URL"
2902 _ACEOF
2905 # Let the site file select an alternate cache file if it wants to.
2906 # Prefer an explicitly selected file to automatically selected ones.
2907 ac_site_file1=NONE
2908 ac_site_file2=NONE
2909 if test -n "$CONFIG_SITE"; then
2910 ac_site_file1=$CONFIG_SITE
2911 elif test "x$prefix" != xNONE; then
2912 ac_site_file1=$prefix/share/config.site
2913 ac_site_file2=$prefix/etc/config.site
2914 else
2915 ac_site_file1=$ac_default_prefix/share/config.site
2916 ac_site_file2=$ac_default_prefix/etc/config.site
2918 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2920 test "x$ac_site_file" = xNONE && continue
2921 if test -r "$ac_site_file"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2923 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2924 sed 's/^/| /' "$ac_site_file" >&5
2925 . "$ac_site_file"
2927 done
2929 if test -r "$cache_file"; then
2930 # Some versions of bash will fail to source /dev/null (special
2931 # files actually), so we avoid doing that.
2932 if test -f "$cache_file"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2934 $as_echo "$as_me: loading cache $cache_file" >&6;}
2935 case $cache_file in
2936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2937 *) . "./$cache_file";;
2938 esac
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2942 $as_echo "$as_me: creating cache $cache_file" >&6;}
2943 >$cache_file
2946 # Check that the precious variables saved in the cache have kept the same
2947 # value.
2948 ac_cache_corrupted=false
2949 for ac_var in $ac_precious_vars; do
2950 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2951 eval ac_new_set=\$ac_env_${ac_var}_set
2952 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2953 eval ac_new_val=\$ac_env_${ac_var}_value
2954 case $ac_old_set,$ac_new_set in
2955 set,)
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2957 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2958 ac_cache_corrupted=: ;;
2959 ,set)
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2961 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2962 ac_cache_corrupted=: ;;
2963 ,);;
2965 if test "x$ac_old_val" != "x$ac_new_val"; then
2966 # differences in whitespace do not lead to failure.
2967 ac_old_val_w=`echo x $ac_old_val`
2968 ac_new_val_w=`echo x $ac_new_val`
2969 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2971 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2972 ac_cache_corrupted=:
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2975 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2976 eval $ac_var=\$ac_old_val
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2979 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2981 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2982 fi;;
2983 esac
2984 # Pass precious variables to config.status.
2985 if test "$ac_new_set" = set; then
2986 case $ac_new_val in
2987 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2988 *) ac_arg=$ac_var=$ac_new_val ;;
2989 esac
2990 case " $ac_configure_args " in
2991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2992 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2993 esac
2995 done
2996 if $ac_cache_corrupted; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3000 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3001 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3003 ## -------------------- ##
3004 ## Main body of script. ##
3005 ## -------------------- ##
3007 ac_ext=c
3008 ac_cpp='$CPP $CPPFLAGS'
3009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3021 gcc_version=`cat $srcdir/BASE-VER`
3023 # Determine the host, build, and target systems
3024 ac_aux_dir=
3025 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3026 for ac_t in install-sh install.sh shtool; do
3027 if test -f "$ac_dir/$ac_t"; then
3028 ac_aux_dir=$ac_dir
3029 ac_install_sh="$ac_aux_dir/$ac_t -c"
3030 break 2
3032 done
3033 done
3034 if test -z "$ac_aux_dir"; then
3035 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3038 # These three variables are undocumented and unsupported,
3039 # and are intended to be withdrawn in a future Autoconf release.
3040 # They can cause serious problems if a builder's source tree is in a directory
3041 # whose full name contains unusual characters.
3042 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3043 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3044 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3047 # Make sure we can run config.sub.
3048 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3049 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3052 $as_echo_n "checking build system type... " >&6; }
3053 if test "${ac_cv_build+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 ac_build_alias=$build_alias
3057 test "x$ac_build_alias" = x &&
3058 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3059 test "x$ac_build_alias" = x &&
3060 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3061 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3062 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3066 $as_echo "$ac_cv_build" >&6; }
3067 case $ac_cv_build in
3068 *-*-*) ;;
3069 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3070 esac
3071 build=$ac_cv_build
3072 ac_save_IFS=$IFS; IFS='-'
3073 set x $ac_cv_build
3074 shift
3075 build_cpu=$1
3076 build_vendor=$2
3077 shift; shift
3078 # Remember, the first character of IFS is used to create $*,
3079 # except with old shells:
3080 build_os=$*
3081 IFS=$ac_save_IFS
3082 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3086 $as_echo_n "checking host system type... " >&6; }
3087 if test "${ac_cv_host+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
3089 else
3090 if test "x$host_alias" = x; then
3091 ac_cv_host=$ac_cv_build
3092 else
3093 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3094 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3099 $as_echo "$ac_cv_host" >&6; }
3100 case $ac_cv_host in
3101 *-*-*) ;;
3102 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3103 esac
3104 host=$ac_cv_host
3105 ac_save_IFS=$IFS; IFS='-'
3106 set x $ac_cv_host
3107 shift
3108 host_cpu=$1
3109 host_vendor=$2
3110 shift; shift
3111 # Remember, the first character of IFS is used to create $*,
3112 # except with old shells:
3113 host_os=$*
3114 IFS=$ac_save_IFS
3115 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3119 $as_echo_n "checking target system type... " >&6; }
3120 if test "${ac_cv_target+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test "x$target_alias" = x; then
3124 ac_cv_target=$ac_cv_host
3125 else
3126 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3127 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3132 $as_echo "$ac_cv_target" >&6; }
3133 case $ac_cv_target in
3134 *-*-*) ;;
3135 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3136 esac
3137 target=$ac_cv_target
3138 ac_save_IFS=$IFS; IFS='-'
3139 set x $ac_cv_target
3140 shift
3141 target_cpu=$1
3142 target_vendor=$2
3143 shift; shift
3144 # Remember, the first character of IFS is used to create $*,
3145 # except with old shells:
3146 target_os=$*
3147 IFS=$ac_save_IFS
3148 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3151 # The aliases save the names the user supplied, while $host etc.
3152 # will get canonicalized.
3153 test -n "$target_alias" &&
3154 test "$program_prefix$program_suffix$program_transform_name" = \
3155 NONENONEs,x,x, &&
3156 program_prefix=${target_alias}-
3158 # Determine the noncanonical target name, for directory use.
3159 case ${build_alias} in
3160 "") build_noncanonical=${build} ;;
3161 *) build_noncanonical=${build_alias} ;;
3162 esac
3164 case ${host_alias} in
3165 "") host_noncanonical=${build_noncanonical} ;;
3166 *) host_noncanonical=${host_alias} ;;
3167 esac
3169 case ${target_alias} in
3170 "") target_noncanonical=${host_noncanonical} ;;
3171 *) target_noncanonical=${target_alias} ;;
3172 esac
3177 # Determine the target- and build-specific subdirectories
3179 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3180 # have matching libraries, they should use host libraries: Makefile.tpl
3181 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3182 # However, they still use the build modules, because the corresponding
3183 # host modules (e.g. bison) are only built for the host when bootstrap
3184 # finishes. So:
3185 # - build_subdir is where we find build modules, and never changes.
3186 # - build_libsubdir is where we find build libraries, and can be overridden.
3188 # Prefix 'build-' so this never conflicts with target_subdir.
3189 build_subdir="build-${build_noncanonical}"
3191 # Check whether --with-build-libsubdir was given.
3192 if test "${with_build_libsubdir+set}" = set; then :
3193 withval=$with_build_libsubdir; build_libsubdir="$withval"
3194 else
3195 build_libsubdir="$build_subdir"
3198 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3199 if ( test $srcdir = . && test -d gcc ) \
3200 || test -d $srcdir/../host-${host_noncanonical}; then
3201 host_subdir="host-${host_noncanonical}"
3202 else
3203 host_subdir=.
3205 # No prefix.
3206 target_subdir=${target_noncanonical}
3209 # Set program_transform_name
3210 test "$program_prefix" != NONE &&
3211 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3212 # Use a double $ so make ignores it.
3213 test "$program_suffix" != NONE &&
3214 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3215 # Double any \ or $.
3216 # By default was `s,x,x', remove it if useless.
3217 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3218 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3221 # Check for bogus environment variables.
3222 # Test if LIBRARY_PATH contains the notation for the current directory
3223 # since this would lead to problems installing/building glibc.
3224 # LIBRARY_PATH contains the current directory if one of the following
3225 # is true:
3226 # - one of the terminals (":" and ";") is the first or last sign
3227 # - two terminals occur directly after each other
3228 # - the path contains an element with a dot in it
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3230 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3231 case ${LIBRARY_PATH} in
3232 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3233 library_path_setting="contains current directory"
3236 library_path_setting="ok"
3238 esac
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3240 $as_echo "$library_path_setting" >&6; }
3241 if test "$library_path_setting" != "ok"; then
3242 as_fn_error "
3243 *** LIBRARY_PATH shouldn't contain the current directory when
3244 *** building gcc. Please change the environment variable
3245 *** and run configure again." "$LINENO" 5
3248 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3249 # since this would lead to problems installing/building glibc.
3250 # GCC_EXEC_PREFIX contains the current directory if one of the following
3251 # is true:
3252 # - one of the terminals (":" and ";") is the first or last sign
3253 # - two terminals occur directly after each other
3254 # - the path contains an element with a dot in it
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3256 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3257 case ${GCC_EXEC_PREFIX} in
3258 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3259 gcc_exec_prefix_setting="contains current directory"
3262 gcc_exec_prefix_setting="ok"
3264 esac
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3266 $as_echo "$gcc_exec_prefix_setting" >&6; }
3267 if test "$gcc_exec_prefix_setting" != "ok"; then
3268 as_fn_error "
3269 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3270 *** building gcc. Please change the environment variable
3271 *** and run configure again." "$LINENO" 5
3274 # -----------
3275 # Directories
3276 # -----------
3278 # Specify the local prefix
3279 local_prefix=
3281 # Check whether --with-local-prefix was given.
3282 if test "${with_local_prefix+set}" = set; then :
3283 withval=$with_local_prefix; case "${withval}" in
3284 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3285 no) ;;
3286 *) local_prefix=$with_local_prefix ;;
3287 esac
3291 # Default local prefix if it is empty
3292 if test x$local_prefix = x; then
3293 local_prefix=/usr/local
3296 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3297 # passed in by the toplevel make and thus we'd get different behavior
3298 # depending on where we built the sources.
3299 gcc_gxx_include_dir=
3300 # Specify the g++ header file directory
3302 # Check whether --with-gxx-include-dir was given.
3303 if test "${with_gxx_include_dir+set}" = set; then :
3304 withval=$with_gxx_include_dir; case "${withval}" in
3305 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3306 no) ;;
3307 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3308 esac
3312 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3313 if test x${gcc_gxx_include_dir} = x; then
3314 if test x${enable_version_specific_runtime_libs} = xyes; then
3315 gcc_gxx_include_dir='${libsubdir}/include/c++'
3316 else
3317 libstdcxx_incdir='include/c++/$(version)'
3318 if test x$host != x$target; then
3319 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3321 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3325 gcc_gxx_include_dir_add_sysroot=0
3326 if test "${with_sysroot+set}" = set; then
3327 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3328 if test "${gcc_gxx_without_sysroot}"; then
3329 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3330 gcc_gxx_include_dir_add_sysroot=1
3335 # Check whether --with-cpp_install_dir was given.
3336 if test "${with_cpp_install_dir+set}" = set; then :
3337 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3338 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3339 elif test x$withval != xno; then
3340 cpp_install_dir=$withval
3345 # We would like to our source tree to be readonly. However when releases or
3346 # pre-releases are generated, the flex/bison generated files as well as the
3347 # various formats of manuals need to be included along with the rest of the
3348 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3349 # just that.
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3352 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3353 # Check whether --enable-generated-files-in-srcdir was given.
3354 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3355 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3356 else
3357 generated_files_in_srcdir=no
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3362 $as_echo "$generated_files_in_srcdir" >&6; }
3364 if test "$generated_files_in_srcdir" = "yes"; then
3365 GENINSRC=''
3366 else
3367 GENINSRC='#'
3371 # -------------------
3372 # Find default linker
3373 # -------------------
3375 # With GNU ld
3377 # Check whether --with-gnu-ld was given.
3378 if test "${with_gnu_ld+set}" = set; then :
3379 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3380 else
3381 gnu_ld_flag=no
3385 # With pre-defined ld
3387 # Check whether --with-ld was given.
3388 if test "${with_ld+set}" = set; then :
3389 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3392 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3393 if test ! -x "$DEFAULT_LINKER"; then
3394 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3395 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3396 gnu_ld_flag=yes
3399 cat >>confdefs.h <<_ACEOF
3400 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3401 _ACEOF
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3406 $as_echo_n "checking whether a default linker was specified... " >&6; }
3407 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3408 if test x"$gnu_ld_flag" = x"no"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3410 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3411 else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3413 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3415 else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3420 # With demangler in GNU ld
3422 # Check whether --with-demangler-in-ld was given.
3423 if test "${with_demangler_in_ld+set}" = set; then :
3424 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3425 else
3426 demangler_in_ld=yes
3430 # ----------------------
3431 # Find default assembler
3432 # ----------------------
3434 # With GNU as
3436 # Check whether --with-gnu-as was given.
3437 if test "${with_gnu_as+set}" = set; then :
3438 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3439 else
3440 gas_flag=no
3445 # Check whether --with-as was given.
3446 if test "${with_as+set}" = set; then :
3447 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3450 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3451 if test ! -x "$DEFAULT_ASSEMBLER"; then
3452 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3453 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3454 gas_flag=yes
3457 cat >>confdefs.h <<_ACEOF
3458 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3459 _ACEOF
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3464 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3465 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3466 if test x"$gas_flag" = x"no"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3471 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3473 else
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3478 # ---------------
3479 # Find C compiler
3480 # ---------------
3482 # If a non-executable a.out is present (e.g. created by GNU as above even if
3483 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3484 # file, even when creating an executable, so an execution test fails.
3485 # Remove possible default executable files to avoid this.
3487 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3488 # Autoconf includes it.
3489 rm -f a.out a.exe b.out
3491 # Find the native compiler
3492 ac_ext=c
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497 if test -n "$ac_tool_prefix"; then
3498 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3499 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_CC+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC="$CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3511 IFS=$as_save_IFS
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 break 2
3519 done
3520 done
3521 IFS=$as_save_IFS
3525 CC=$ac_cv_prog_CC
3526 if test -n "$CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 $as_echo "$CC" >&6; }
3529 else
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3536 if test -z "$ac_cv_prog_CC"; then
3537 ac_ct_CC=$CC
3538 # Extract the first word of "gcc", so it can be a program name with args.
3539 set dummy gcc; ac_word=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 if test -n "$ac_ct_CC"; then
3546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3555 ac_cv_prog_ac_ct_CC="gcc"
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 break 2
3559 done
3560 done
3561 IFS=$as_save_IFS
3565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3566 if test -n "$ac_ct_CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3568 $as_echo "$ac_ct_CC" >&6; }
3569 else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3574 if test "x$ac_ct_CC" = x; then
3575 CC=""
3576 else
3577 case $cross_compiling:$ac_tool_warned in
3578 yes:)
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3582 esac
3583 CC=$ac_ct_CC
3585 else
3586 CC="$ac_cv_prog_CC"
3589 if test -z "$CC"; then
3590 if test -n "$ac_tool_prefix"; then
3591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3592 set dummy ${ac_tool_prefix}cc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC="$CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3608 ac_cv_prog_CC="${ac_tool_prefix}cc"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3612 done
3613 done
3614 IFS=$as_save_IFS
3618 CC=$ac_cv_prog_CC
3619 if test -n "$CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621 $as_echo "$CC" >&6; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3630 if test -z "$CC"; then
3631 # Extract the first word of "cc", so it can be a program name with args.
3632 set dummy cc; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if test "${ac_cv_prog_CC+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640 else
3641 ac_prog_rejected=no
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3650 ac_prog_rejected=yes
3651 continue
3653 ac_cv_prog_CC="cc"
3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 break 2
3657 done
3658 done
3659 IFS=$as_save_IFS
3661 if test $ac_prog_rejected = yes; then
3662 # We found a bogon in the path, so make sure we never use it.
3663 set dummy $ac_cv_prog_CC
3664 shift
3665 if test $# != 0; then
3666 # We chose a different compiler from the bogus one.
3667 # However, it has the same basename, so the bogon will be chosen
3668 # first if we set CC to just the basename; use the full file name.
3669 shift
3670 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3675 CC=$ac_cv_prog_CC
3676 if test -n "$CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 $as_echo "$CC" >&6; }
3679 else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3686 if test -z "$CC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 for ac_prog in cl.exe
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_CC+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3711 done
3712 done
3713 IFS=$as_save_IFS
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3727 test -n "$CC" && break
3728 done
3730 if test -z "$CC"; then
3731 ac_ct_CC=$CC
3732 for ac_prog in cl.exe
3734 # Extract the first word of "$ac_prog", so it can be a program name with args.
3735 set dummy $ac_prog; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 if test -n "$ac_ct_CC"; then
3742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751 ac_cv_prog_ac_ct_CC="$ac_prog"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3755 done
3756 done
3757 IFS=$as_save_IFS
3761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3762 if test -n "$ac_ct_CC"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3764 $as_echo "$ac_ct_CC" >&6; }
3765 else
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3771 test -n "$ac_ct_CC" && break
3772 done
3774 if test "x$ac_ct_CC" = x; then
3775 CC=""
3776 else
3777 case $cross_compiling:$ac_tool_warned in
3778 yes:)
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3781 ac_tool_warned=yes ;;
3782 esac
3783 CC=$ac_ct_CC
3790 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792 as_fn_error "no acceptable C compiler found in \$PATH
3793 See \`config.log' for more details." "$LINENO" 5; }
3795 # Provide some information about the compiler.
3796 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3797 set X $ac_compile
3798 ac_compiler=$2
3799 for ac_option in --version -v -V -qversion; do
3800 { { ac_try="$ac_compiler $ac_option >&5"
3801 case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804 esac
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3808 ac_status=$?
3809 if test -s conftest.err; then
3810 sed '10a\
3811 ... rest of stderr output deleted ...
3812 10q' conftest.err >conftest.er1
3813 cat conftest.er1 >&5
3814 rm -f conftest.er1 conftest.err
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }
3818 done
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3824 main ()
3828 return 0;
3830 _ACEOF
3831 ac_clean_files_save=$ac_clean_files
3832 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3833 # Try to create an executable without -o first, disregard a.out.
3834 # It will help us diagnose broken compilers, and finding out an intuition
3835 # of exeext.
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3837 $as_echo_n "checking for C compiler default output file name... " >&6; }
3838 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3840 # The possible output files:
3841 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3843 ac_rmfiles=
3844 for ac_file in $ac_files
3846 case $ac_file in
3847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3848 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3849 esac
3850 done
3851 rm -f $ac_rmfiles
3853 if { { ac_try="$ac_link_default"
3854 case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_link_default") 2>&5
3861 ac_status=$?
3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863 test $ac_status = 0; }; then :
3864 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3865 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3866 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3867 # so that the user can short-circuit this test for compilers unknown to
3868 # Autoconf.
3869 for ac_file in $ac_files ''
3871 test -f "$ac_file" || continue
3872 case $ac_file in
3873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3875 [ab].out )
3876 # We found the default executable, but exeext='' is most
3877 # certainly right.
3878 break;;
3879 *.* )
3880 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3881 then :; else
3882 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3884 # We set ac_cv_exeext here because the later test for it is not
3885 # safe: cross compilers may not add the suffix if given an `-o'
3886 # argument, so we may need to know it at that point already.
3887 # Even if this section looks crufty: it has the advantage of
3888 # actually working.
3889 break;;
3891 break;;
3892 esac
3893 done
3894 test "$ac_cv_exeext" = no && ac_cv_exeext=
3896 else
3897 ac_file=''
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3900 $as_echo "$ac_file" >&6; }
3901 if test -z "$ac_file"; then :
3902 $as_echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907 { as_fn_set_status 77
3908 as_fn_error "C compiler cannot create executables
3909 See \`config.log' for more details." "$LINENO" 5; }; }
3911 ac_exeext=$ac_cv_exeext
3913 # Check that the compiler produces executables we can run. If not, either
3914 # the compiler is broken, or we cross compile.
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3916 $as_echo_n "checking whether the C compiler works... " >&6; }
3917 # If not cross compiling, check that we can run a simple program.
3918 if test "$cross_compiling" != yes; then
3919 if { ac_try='./$ac_file'
3920 { { case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_try") 2>&5
3927 ac_status=$?
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }; }; then
3930 cross_compiling=no
3931 else
3932 if test "$cross_compiling" = maybe; then
3933 cross_compiling=yes
3934 else
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 as_fn_error "cannot run C compiled programs.
3938 If you meant to cross compile, use \`--host'.
3939 See \`config.log' for more details." "$LINENO" 5; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3944 $as_echo "yes" >&6; }
3946 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3947 ac_clean_files=$ac_clean_files_save
3948 # Check that the compiler produces executables we can run. If not, either
3949 # the compiler is broken, or we cross compile.
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3951 $as_echo_n "checking whether we are cross compiling... " >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3953 $as_echo "$cross_compiling" >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3956 $as_echo_n "checking for suffix of executables... " >&6; }
3957 if { { ac_try="$ac_link"
3958 case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961 esac
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_link") 2>&5
3965 ac_status=$?
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; then :
3968 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3969 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3970 # work properly (i.e., refer to `conftest.exe'), while it won't with
3971 # `rm'.
3972 for ac_file in conftest.exe conftest conftest.*; do
3973 test -f "$ac_file" || continue
3974 case $ac_file in
3975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3976 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3977 break;;
3978 * ) break;;
3979 esac
3980 done
3981 else
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 as_fn_error "cannot compute suffix of executables: cannot compile and link
3985 See \`config.log' for more details." "$LINENO" 5; }
3987 rm -f conftest$ac_cv_exeext
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3989 $as_echo "$ac_cv_exeext" >&6; }
3991 rm -f conftest.$ac_ext
3992 EXEEXT=$ac_cv_exeext
3993 ac_exeext=$EXEEXT
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3995 $as_echo_n "checking for suffix of object files... " >&6; }
3996 if test "${ac_cv_objext+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4003 main ()
4007 return 0;
4009 _ACEOF
4010 rm -f conftest.o conftest.obj
4011 if { { ac_try="$ac_compile"
4012 case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_compile") 2>&5
4019 ac_status=$?
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; then :
4022 for ac_file in conftest.o conftest.obj conftest.*; do
4023 test -f "$ac_file" || continue;
4024 case $ac_file in
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4027 break;;
4028 esac
4029 done
4030 else
4031 $as_echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error "cannot compute suffix of object files: cannot compile
4037 See \`config.log' for more details." "$LINENO" 5; }
4039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4042 $as_echo "$ac_cv_objext" >&6; }
4043 OBJEXT=$ac_cv_objext
4044 ac_objext=$OBJEXT
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4047 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4054 main ()
4056 #ifndef __GNUC__
4057 choke me
4058 #endif
4061 return 0;
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065 ac_compiler_gnu=yes
4066 else
4067 ac_compiler_gnu=no
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4075 if test $ac_compiler_gnu = yes; then
4076 GCC=yes
4077 else
4078 GCC=
4080 ac_test_CFLAGS=${CFLAGS+set}
4081 ac_save_CFLAGS=$CFLAGS
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4084 if test "${ac_cv_prog_cc_g+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 ac_save_c_werror_flag=$ac_c_werror_flag
4088 ac_c_werror_flag=yes
4089 ac_cv_prog_cc_g=no
4090 CFLAGS="-g"
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4095 main ()
4099 return 0;
4101 _ACEOF
4102 if ac_fn_c_try_compile "$LINENO"; then :
4103 ac_cv_prog_cc_g=yes
4104 else
4105 CFLAGS=""
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4110 main ()
4114 return 0;
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"; then :
4119 else
4120 ac_c_werror_flag=$ac_save_c_werror_flag
4121 CFLAGS="-g"
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4126 main ()
4130 return 0;
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_cv_prog_cc_g=yes
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 ac_c_werror_flag=$ac_save_c_werror_flag
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4144 $as_echo "$ac_cv_prog_cc_g" >&6; }
4145 if test "$ac_test_CFLAGS" = set; then
4146 CFLAGS=$ac_save_CFLAGS
4147 elif test $ac_cv_prog_cc_g = yes; then
4148 if test "$GCC" = yes; then
4149 CFLAGS="-g -O2"
4150 else
4151 CFLAGS="-g"
4153 else
4154 if test "$GCC" = yes; then
4155 CFLAGS="-O2"
4156 else
4157 CFLAGS=
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4161 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4162 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 ac_cv_prog_cc_c89=no
4166 ac_save_CC=$CC
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <stdarg.h>
4170 #include <stdio.h>
4171 #include <sys/types.h>
4172 #include <sys/stat.h>
4173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4174 struct buf { int x; };
4175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4176 static char *e (p, i)
4177 char **p;
4178 int i;
4180 return p[i];
4182 static char *f (char * (*g) (char **, int), char **p, ...)
4184 char *s;
4185 va_list v;
4186 va_start (v,p);
4187 s = g (p, va_arg (v,int));
4188 va_end (v);
4189 return s;
4192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4193 function prototypes and stuff, but not '\xHH' hex character constants.
4194 These don't provoke an error unfortunately, instead are silently treated
4195 as 'x'. The following induces an error, until -std is added to get
4196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4197 array size at least. It's necessary to write '\x00'==0 to get something
4198 that's true only with -std. */
4199 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4202 inside strings and character constants. */
4203 #define FOO(x) 'x'
4204 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4206 int test (int i, double x);
4207 struct s1 {int (*f) (int a);};
4208 struct s2 {int (*f) (double a);};
4209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4210 int argc;
4211 char **argv;
4213 main ()
4215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4217 return 0;
4219 _ACEOF
4220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4223 CC="$ac_save_CC $ac_arg"
4224 if ac_fn_c_try_compile "$LINENO"; then :
4225 ac_cv_prog_cc_c89=$ac_arg
4227 rm -f core conftest.err conftest.$ac_objext
4228 test "x$ac_cv_prog_cc_c89" != "xno" && break
4229 done
4230 rm -f conftest.$ac_ext
4231 CC=$ac_save_CC
4234 # AC_CACHE_VAL
4235 case "x$ac_cv_prog_cc_c89" in
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4238 $as_echo "none needed" >&6; } ;;
4239 xno)
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4241 $as_echo "unsupported" >&6; } ;;
4243 CC="$CC $ac_cv_prog_cc_c89"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4245 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4246 esac
4247 if test "x$ac_cv_prog_cc_c89" != xno; then :
4251 ac_ext=c
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257 if test "x$CC" != xcc; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4259 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4260 else
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4262 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4264 set dummy $CC; ac_cc=`$as_echo "$2" |
4265 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4266 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4273 main ()
4277 return 0;
4279 _ACEOF
4280 # Make sure it works both with $CC and with simple cc.
4281 # We do the test twice because some compilers refuse to overwrite an
4282 # existing .o file with -o, though they will create one.
4283 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4284 rm -f conftest2.*
4285 if { { case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_try") 2>&5
4292 ac_status=$?
4293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; } &&
4295 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 $as_echo "$ac_try_echo"; } >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4304 test $ac_status = 0; };
4305 then
4306 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4307 if test "x$CC" != xcc; then
4308 # Test first that cc exists at all.
4309 if { ac_try='cc -c conftest.$ac_ext >&5'
4310 { { case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_try") 2>&5
4317 ac_status=$?
4318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }; }; then
4320 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4321 rm -f conftest2.*
4322 if { { case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325 esac
4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328 (eval "$ac_try") 2>&5
4329 ac_status=$?
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; } &&
4332 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335 esac
4336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337 $as_echo "$ac_try_echo"; } >&5
4338 (eval "$ac_try") 2>&5
4339 ac_status=$?
4340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 test $ac_status = 0; };
4342 then
4343 # cc works too.
4345 else
4346 # cc exists but doesn't like -o.
4347 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4351 else
4352 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4354 rm -f core conftest*
4357 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4359 $as_echo "yes" >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4364 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4368 # expand $ac_aux_dir to an absolute path
4369 am_aux_dir=`cd $ac_aux_dir && pwd`
4371 # FIXME: we rely on the cache variable name because
4372 # there is no other way.
4373 set dummy $CC
4374 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4375 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4376 if test "$am_t" != yes; then
4377 # Losing compiler, so override with the script.
4378 # FIXME: It is wrong to rewrite CC.
4379 # But if we don't then we get into trouble of one sort or another.
4380 # A longer-term fix would be to have automake use am__CC in this case,
4381 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4382 CC="$am_aux_dir/compile $CC"
4386 ac_ext=cpp
4387 ac_cpp='$CXXCPP $CPPFLAGS'
4388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4391 if test -z "$CXX"; then
4392 if test -n "$CCC"; then
4393 CXX=$CCC
4394 else
4395 if test -n "$ac_tool_prefix"; then
4396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if test "${ac_cv_prog_CXX+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if test -n "$CXX"; then
4406 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4419 done
4420 done
4421 IFS=$as_save_IFS
4425 CXX=$ac_cv_prog_CXX
4426 if test -n "$CXX"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4428 $as_echo "$CXX" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4435 test -n "$CXX" && break
4436 done
4438 if test -z "$CXX"; then
4439 ac_ct_CXX=$CXX
4440 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4442 # Extract the first word of "$ac_prog", so it can be a program name with args.
4443 set dummy $ac_prog; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 if test -n "$ac_ct_CXX"; then
4450 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_ac_ct_CXX="$ac_prog"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4469 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4470 if test -n "$ac_ct_CXX"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4472 $as_echo "$ac_ct_CXX" >&6; }
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4479 test -n "$ac_ct_CXX" && break
4480 done
4482 if test "x$ac_ct_CXX" = x; then
4483 CXX="g++"
4484 else
4485 case $cross_compiling:$ac_tool_warned in
4486 yes:)
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4489 ac_tool_warned=yes ;;
4490 esac
4491 CXX=$ac_ct_CXX
4497 # Provide some information about the compiler.
4498 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4499 set X $ac_compile
4500 ac_compiler=$2
4501 for ac_option in --version -v -V -qversion; do
4502 { { ac_try="$ac_compiler $ac_option >&5"
4503 case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4506 esac
4507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4508 $as_echo "$ac_try_echo"; } >&5
4509 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4510 ac_status=$?
4511 if test -s conftest.err; then
4512 sed '10a\
4513 ... rest of stderr output deleted ...
4514 10q' conftest.err >conftest.er1
4515 cat conftest.er1 >&5
4516 rm -f conftest.er1 conftest.err
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }
4520 done
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4523 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4524 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4531 main ()
4533 #ifndef __GNUC__
4534 choke me
4535 #endif
4538 return 0;
4540 _ACEOF
4541 if ac_fn_cxx_try_compile "$LINENO"; then :
4542 ac_compiler_gnu=yes
4543 else
4544 ac_compiler_gnu=no
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4551 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4552 if test $ac_compiler_gnu = yes; then
4553 GXX=yes
4554 else
4555 GXX=
4557 ac_test_CXXFLAGS=${CXXFLAGS+set}
4558 ac_save_CXXFLAGS=$CXXFLAGS
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4560 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4561 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4565 ac_cxx_werror_flag=yes
4566 ac_cv_prog_cxx_g=no
4567 CXXFLAGS="-g"
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4572 main ()
4576 return 0;
4578 _ACEOF
4579 if ac_fn_cxx_try_compile "$LINENO"; then :
4580 ac_cv_prog_cxx_g=yes
4581 else
4582 CXXFLAGS=""
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4587 main ()
4591 return 0;
4593 _ACEOF
4594 if ac_fn_cxx_try_compile "$LINENO"; then :
4596 else
4597 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4598 CXXFLAGS="-g"
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4603 main ()
4607 return 0;
4609 _ACEOF
4610 if ac_fn_cxx_try_compile "$LINENO"; then :
4611 ac_cv_prog_cxx_g=yes
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4621 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4622 if test "$ac_test_CXXFLAGS" = set; then
4623 CXXFLAGS=$ac_save_CXXFLAGS
4624 elif test $ac_cv_prog_cxx_g = yes; then
4625 if test "$GXX" = yes; then
4626 CXXFLAGS="-g -O2"
4627 else
4628 CXXFLAGS="-g"
4630 else
4631 if test "$GXX" = yes; then
4632 CXXFLAGS="-O2"
4633 else
4634 CXXFLAGS=
4637 ac_ext=c
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$GNATBIND"; then
4655 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4668 done
4669 done
4670 IFS=$as_save_IFS
4674 GNATBIND=$ac_cv_prog_GNATBIND
4675 if test -n "$GNATBIND"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4677 $as_echo "$GNATBIND" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4685 if test -z "$ac_cv_prog_GNATBIND"; then
4686 ac_ct_GNATBIND=$GNATBIND
4687 # Extract the first word of "gnatbind", so it can be a program name with args.
4688 set dummy gnatbind; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$ac_ct_GNATBIND"; then
4695 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4708 done
4709 done
4710 IFS=$as_save_IFS
4714 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4715 if test -n "$ac_ct_GNATBIND"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4717 $as_echo "$ac_ct_GNATBIND" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4723 if test "x$ac_ct_GNATBIND" = x; then
4724 GNATBIND="no"
4725 else
4726 case $cross_compiling:$ac_tool_warned in
4727 yes:)
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4731 esac
4732 GNATBIND=$ac_ct_GNATBIND
4734 else
4735 GNATBIND="$ac_cv_prog_GNATBIND"
4738 if test -n "$ac_tool_prefix"; then
4739 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 if test -n "$GNATMAKE"; then
4747 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4760 done
4761 done
4762 IFS=$as_save_IFS
4766 GNATMAKE=$ac_cv_prog_GNATMAKE
4767 if test -n "$GNATMAKE"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4769 $as_echo "$GNATMAKE" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4777 if test -z "$ac_cv_prog_GNATMAKE"; then
4778 ac_ct_GNATMAKE=$GNATMAKE
4779 # Extract the first word of "gnatmake", so it can be a program name with args.
4780 set dummy gnatmake; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 if test -n "$ac_ct_GNATMAKE"; then
4787 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4800 done
4801 done
4802 IFS=$as_save_IFS
4806 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4807 if test -n "$ac_ct_GNATMAKE"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4809 $as_echo "$ac_ct_GNATMAKE" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4815 if test "x$ac_ct_GNATMAKE" = x; then
4816 GNATMAKE="no"
4817 else
4818 case $cross_compiling:$ac_tool_warned in
4819 yes:)
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4822 ac_tool_warned=yes ;;
4823 esac
4824 GNATMAKE=$ac_ct_GNATMAKE
4826 else
4827 GNATMAKE="$ac_cv_prog_GNATMAKE"
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4831 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4832 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 cat >conftest.adb <<EOF
4836 procedure conftest is begin null; end conftest;
4838 acx_cv_cc_gcc_supports_ada=no
4839 # There is a bug in old released versions of GCC which causes the
4840 # driver to exit successfully when the appropriate language module
4841 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4842 # Therefore we must check for the error message as well as an
4843 # unsuccessful exit.
4844 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4845 # given a .adb file, but produce no object file. So we must check
4846 # if an object file was really produced to guard against this.
4847 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4848 if test x"$errors" = x && test -f conftest.$ac_objext; then
4849 acx_cv_cc_gcc_supports_ada=yes
4851 rm -f conftest.*
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4854 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4856 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4857 have_gnat=yes
4858 else
4859 have_gnat=no
4863 # autoconf is lame and doesn't give us any substitution variable for this.
4864 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4865 NO_MINUS_C_MINUS_O=yes
4866 else
4867 OUTPUT_OPTION='-o $@'
4872 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4873 # optimizations to be activated explicitly by the toplevel.
4874 case "$CC" in
4875 */prev-gcc/xgcc*) ;;
4876 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4877 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4878 esac
4882 # Determine PICFLAG for target gnatlib.
4887 case "${target}" in
4888 # PIC is the default on some targets or must not be used.
4889 *-*-darwin*)
4890 # PIC is the default on this platform
4891 # Common symbols not allowed in MH_DYLIB files
4892 PICFLAG_FOR_TARGET=-fno-common
4894 alpha*-dec-osf5*)
4895 # PIC is the default.
4897 hppa*64*-*-hpux*)
4898 # PIC is the default for 64-bit PA HP-UX.
4900 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4902 i[34567]86-*-mingw* | x86_64-*-mingw*)
4904 i[34567]86-*-interix[3-9]*)
4905 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4906 # Instead, we relocate shared libraries at runtime.
4908 i[34567]86-*-nto-qnx*)
4909 # QNX uses GNU C++, but need to define -shared option too, otherwise
4910 # it will coredump.
4911 PICFLAG_FOR_TARGET='-fPIC -shared'
4913 i[34567]86-pc-msdosdjgpp*)
4914 # DJGPP does not support shared libraries at all.
4916 ia64*-*-hpux*)
4917 # On IA64 HP-UX, PIC is the default but the pic flag
4918 # sets the default TLS model and affects inlining.
4919 PICFLAG_FOR_TARGET=-fPIC
4921 mips-sgi-irix6*)
4922 # PIC is the default.
4924 rs6000-ibm-aix* | powerpc-ibm-aix*)
4925 # All AIX code is PIC.
4928 # Some targets support both -fPIC and -fpic, but prefer the latter.
4929 # FIXME: Why?
4930 i[34567]86-*-* | x86_64-*-*)
4931 PICFLAG_FOR_TARGET=-fpic
4933 m68k-*-*)
4934 PICFLAG_FOR_TARGET=-fpic
4936 # FIXME: Override -fPIC default in libgcc only?
4937 sh-*-linux* | sh[2346lbe]*-*-linux*)
4938 PICFLAG_FOR_TARGET=-fpic
4940 # FIXME: Simplify to sh*-*-netbsd*?
4941 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4942 sh64-*-netbsd* | sh64l*-*-netbsd*)
4943 PICFLAG_FOR_TARGET=-fpic
4945 # Default to -fPIC unless specified otherwise.
4947 PICFLAG_FOR_TARGET=-fPIC
4949 esac
4951 # If the user explicitly uses -fpic/-fPIC, keep that.
4952 case "${CFLAGS_FOR_TARGET}" in
4953 *-fpic*)
4954 PICFLAG_FOR_TARGET=-fpic
4956 *-fPIC*)
4957 PICFLAG_FOR_TARGET=-fPIC
4959 esac
4963 # -------------------------
4964 # Check C compiler features
4965 # -------------------------
4968 ac_ext=c
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4974 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4975 # On Suns, sometimes $CPP names a directory.
4976 if test -n "$CPP" && test -d "$CPP"; then
4977 CPP=
4979 if test -z "$CPP"; then
4980 if test "${ac_cv_prog_CPP+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 # Double quotes because CPP needs to be expanded
4984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4986 ac_preproc_ok=false
4987 for ac_c_preproc_warn_flag in '' yes
4989 # Use a header file that comes with gcc, so configuring glibc
4990 # with a fresh cross-compiler works.
4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 # <limits.h> exists even on freestanding compilers.
4993 # On the NeXT, cc -E runs the code through the compiler's parser,
4994 # not just through cpp. "Syntax error" is here to catch this case.
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997 #ifdef __STDC__
4998 # include <limits.h>
4999 #else
5000 # include <assert.h>
5001 #endif
5002 Syntax error
5003 _ACEOF
5004 if ac_fn_c_try_cpp "$LINENO"; then :
5006 else
5007 # Broken: fails on valid input.
5008 continue
5010 rm -f conftest.err conftest.$ac_ext
5012 # OK, works on sane cases. Now check whether nonexistent headers
5013 # can be detected and how.
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5016 #include <ac_nonexistent.h>
5017 _ACEOF
5018 if ac_fn_c_try_cpp "$LINENO"; then :
5019 # Broken: success on invalid input.
5020 continue
5021 else
5022 # Passes both tests.
5023 ac_preproc_ok=:
5024 break
5026 rm -f conftest.err conftest.$ac_ext
5028 done
5029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030 rm -f conftest.err conftest.$ac_ext
5031 if $ac_preproc_ok; then :
5032 break
5035 done
5036 ac_cv_prog_CPP=$CPP
5039 CPP=$ac_cv_prog_CPP
5040 else
5041 ac_cv_prog_CPP=$CPP
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5044 $as_echo "$CPP" >&6; }
5045 ac_preproc_ok=false
5046 for ac_c_preproc_warn_flag in '' yes
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5056 #ifdef __STDC__
5057 # include <limits.h>
5058 #else
5059 # include <assert.h>
5060 #endif
5061 Syntax error
5062 _ACEOF
5063 if ac_fn_c_try_cpp "$LINENO"; then :
5065 else
5066 # Broken: fails on valid input.
5067 continue
5069 rm -f conftest.err conftest.$ac_ext
5071 # OK, works on sane cases. Now check whether nonexistent headers
5072 # can be detected and how.
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075 #include <ac_nonexistent.h>
5076 _ACEOF
5077 if ac_fn_c_try_cpp "$LINENO"; then :
5078 # Broken: success on invalid input.
5079 continue
5080 else
5081 # Passes both tests.
5082 ac_preproc_ok=:
5083 break
5085 rm -f conftest.err conftest.$ac_ext
5087 done
5088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089 rm -f conftest.err conftest.$ac_ext
5090 if $ac_preproc_ok; then :
5092 else
5093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5095 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5096 See \`config.log' for more details." "$LINENO" 5; }
5099 ac_ext=c
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5107 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5108 if test "${ac_cv_path_GREP+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -z "$GREP"; then
5112 ac_path_GREP_found=false
5113 # Loop through the user's path and test for each of PROGNAME-LIST
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_prog in grep ggrep; do
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5122 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5123 # Check for GNU ac_path_GREP and select it if it is found.
5124 # Check for GNU $ac_path_GREP
5125 case `"$ac_path_GREP" --version 2>&1` in
5126 *GNU*)
5127 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5129 ac_count=0
5130 $as_echo_n 0123456789 >"conftest.in"
5131 while :
5133 cat "conftest.in" "conftest.in" >"conftest.tmp"
5134 mv "conftest.tmp" "conftest.in"
5135 cp "conftest.in" "conftest.nl"
5136 $as_echo 'GREP' >> "conftest.nl"
5137 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5139 as_fn_arith $ac_count + 1 && ac_count=$as_val
5140 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5141 # Best one so far, save it but keep looking for a better one
5142 ac_cv_path_GREP="$ac_path_GREP"
5143 ac_path_GREP_max=$ac_count
5145 # 10*(2^10) chars as input seems more than enough
5146 test $ac_count -gt 10 && break
5147 done
5148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5149 esac
5151 $ac_path_GREP_found && break 3
5152 done
5153 done
5154 done
5155 IFS=$as_save_IFS
5156 if test -z "$ac_cv_path_GREP"; then
5157 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5159 else
5160 ac_cv_path_GREP=$GREP
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5165 $as_echo "$ac_cv_path_GREP" >&6; }
5166 GREP="$ac_cv_path_GREP"
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5170 $as_echo_n "checking for egrep... " >&6; }
5171 if test "${ac_cv_path_EGREP+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5175 then ac_cv_path_EGREP="$GREP -E"
5176 else
5177 if test -z "$EGREP"; then
5178 ac_path_EGREP_found=false
5179 # Loop through the user's path and test for each of PROGNAME-LIST
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_prog in egrep; do
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5188 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5189 # Check for GNU ac_path_EGREP and select it if it is found.
5190 # Check for GNU $ac_path_EGREP
5191 case `"$ac_path_EGREP" --version 2>&1` in
5192 *GNU*)
5193 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5195 ac_count=0
5196 $as_echo_n 0123456789 >"conftest.in"
5197 while :
5199 cat "conftest.in" "conftest.in" >"conftest.tmp"
5200 mv "conftest.tmp" "conftest.in"
5201 cp "conftest.in" "conftest.nl"
5202 $as_echo 'EGREP' >> "conftest.nl"
5203 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5205 as_fn_arith $ac_count + 1 && ac_count=$as_val
5206 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5207 # Best one so far, save it but keep looking for a better one
5208 ac_cv_path_EGREP="$ac_path_EGREP"
5209 ac_path_EGREP_max=$ac_count
5211 # 10*(2^10) chars as input seems more than enough
5212 test $ac_count -gt 10 && break
5213 done
5214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5215 esac
5217 $ac_path_EGREP_found && break 3
5218 done
5219 done
5220 done
5221 IFS=$as_save_IFS
5222 if test -z "$ac_cv_path_EGREP"; then
5223 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5225 else
5226 ac_cv_path_EGREP=$EGREP
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5232 $as_echo "$ac_cv_path_EGREP" >&6; }
5233 EGREP="$ac_cv_path_EGREP"
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5237 $as_echo_n "checking for ANSI C header files... " >&6; }
5238 if test "${ac_cv_header_stdc+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5243 #include <stdlib.h>
5244 #include <stdarg.h>
5245 #include <string.h>
5246 #include <float.h>
5249 main ()
5253 return 0;
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"; then :
5257 ac_cv_header_stdc=yes
5258 else
5259 ac_cv_header_stdc=no
5261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 if test $ac_cv_header_stdc = yes; then
5264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5267 #include <string.h>
5269 _ACEOF
5270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 $EGREP "memchr" >/dev/null 2>&1; then :
5273 else
5274 ac_cv_header_stdc=no
5276 rm -f conftest*
5280 if test $ac_cv_header_stdc = yes; then
5281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 #include <stdlib.h>
5286 _ACEOF
5287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5288 $EGREP "free" >/dev/null 2>&1; then :
5290 else
5291 ac_cv_header_stdc=no
5293 rm -f conftest*
5297 if test $ac_cv_header_stdc = yes; then
5298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5299 if test "$cross_compiling" = yes; then :
5301 else
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304 #include <ctype.h>
5305 #include <stdlib.h>
5306 #if ((' ' & 0x0FF) == 0x020)
5307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5309 #else
5310 # define ISLOWER(c) \
5311 (('a' <= (c) && (c) <= 'i') \
5312 || ('j' <= (c) && (c) <= 'r') \
5313 || ('s' <= (c) && (c) <= 'z'))
5314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5315 #endif
5317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5319 main ()
5321 int i;
5322 for (i = 0; i < 256; i++)
5323 if (XOR (islower (i), ISLOWER (i))
5324 || toupper (i) != TOUPPER (i))
5325 return 2;
5326 return 0;
5328 _ACEOF
5329 if ac_fn_c_try_run "$LINENO"; then :
5331 else
5332 ac_cv_header_stdc=no
5334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5335 conftest.$ac_objext conftest.beam conftest.$ac_ext
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5341 $as_echo "$ac_cv_header_stdc" >&6; }
5342 if test $ac_cv_header_stdc = yes; then
5344 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5349 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5350 inttypes.h stdint.h unistd.h
5351 do :
5352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5353 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5355 eval as_val=\$$as_ac_Header
5356 if test "x$as_val" = x""yes; then :
5357 cat >>confdefs.h <<_ACEOF
5358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5359 _ACEOF
5363 done
5367 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5368 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5369 MINIX=yes
5370 else
5371 MINIX=
5375 if test "$MINIX" = yes; then
5377 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5380 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5383 $as_echo "#define _MINIX 1" >>confdefs.h
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5389 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5390 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5396 # define __EXTENSIONS__ 1
5397 $ac_includes_default
5399 main ()
5403 return 0;
5405 _ACEOF
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407 ac_cv_safe_to_define___extensions__=yes
5408 else
5409 ac_cv_safe_to_define___extensions__=no
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5414 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5415 test $ac_cv_safe_to_define___extensions__ = yes &&
5416 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5418 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5420 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5422 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5424 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5427 ac_ext=c
5428 ac_cpp='$CPP $CPPFLAGS'
5429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5433 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5434 # On Suns, sometimes $CPP names a directory.
5435 if test -n "$CPP" && test -d "$CPP"; then
5436 CPP=
5438 if test -z "$CPP"; then
5439 if test "${ac_cv_prog_CPP+set}" = set; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 # Double quotes because CPP needs to be expanded
5443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5445 ac_preproc_ok=false
5446 for ac_c_preproc_warn_flag in '' yes
5448 # Use a header file that comes with gcc, so configuring glibc
5449 # with a fresh cross-compiler works.
5450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5451 # <limits.h> exists even on freestanding compilers.
5452 # On the NeXT, cc -E runs the code through the compiler's parser,
5453 # not just through cpp. "Syntax error" is here to catch this case.
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456 #ifdef __STDC__
5457 # include <limits.h>
5458 #else
5459 # include <assert.h>
5460 #endif
5461 Syntax error
5462 _ACEOF
5463 if ac_fn_c_try_cpp "$LINENO"; then :
5465 else
5466 # Broken: fails on valid input.
5467 continue
5469 rm -f conftest.err conftest.$ac_ext
5471 # OK, works on sane cases. Now check whether nonexistent headers
5472 # can be detected and how.
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 #include <ac_nonexistent.h>
5476 _ACEOF
5477 if ac_fn_c_try_cpp "$LINENO"; then :
5478 # Broken: success on invalid input.
5479 continue
5480 else
5481 # Passes both tests.
5482 ac_preproc_ok=:
5483 break
5485 rm -f conftest.err conftest.$ac_ext
5487 done
5488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5489 rm -f conftest.err conftest.$ac_ext
5490 if $ac_preproc_ok; then :
5491 break
5494 done
5495 ac_cv_prog_CPP=$CPP
5498 CPP=$ac_cv_prog_CPP
5499 else
5500 ac_cv_prog_CPP=$CPP
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5503 $as_echo "$CPP" >&6; }
5504 ac_preproc_ok=false
5505 for ac_c_preproc_warn_flag in '' yes
5507 # Use a header file that comes with gcc, so configuring glibc
5508 # with a fresh cross-compiler works.
5509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5510 # <limits.h> exists even on freestanding compilers.
5511 # On the NeXT, cc -E runs the code through the compiler's parser,
5512 # not just through cpp. "Syntax error" is here to catch this case.
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 #ifdef __STDC__
5516 # include <limits.h>
5517 #else
5518 # include <assert.h>
5519 #endif
5520 Syntax error
5521 _ACEOF
5522 if ac_fn_c_try_cpp "$LINENO"; then :
5524 else
5525 # Broken: fails on valid input.
5526 continue
5528 rm -f conftest.err conftest.$ac_ext
5530 # OK, works on sane cases. Now check whether nonexistent headers
5531 # can be detected and how.
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #include <ac_nonexistent.h>
5535 _ACEOF
5536 if ac_fn_c_try_cpp "$LINENO"; then :
5537 # Broken: success on invalid input.
5538 continue
5539 else
5540 # Passes both tests.
5541 ac_preproc_ok=:
5542 break
5544 rm -f conftest.err conftest.$ac_ext
5546 done
5547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5548 rm -f conftest.err conftest.$ac_ext
5549 if $ac_preproc_ok; then :
5551 else
5552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5554 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5555 See \`config.log' for more details." "$LINENO" 5; }
5558 ac_ext=c
5559 ac_cpp='$CPP $CPPFLAGS'
5560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5565 $as_echo_n "checking for inline... " >&6; }
5566 if test "${ac_cv_c_inline+set}" = set; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 ac_cv_c_inline=no
5570 for ac_kw in inline __inline__ __inline; do
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 #ifndef __cplusplus
5574 typedef int foo_t;
5575 static $ac_kw foo_t static_foo () {return 0; }
5576 $ac_kw foo_t foo () {return 0; }
5577 #endif
5579 _ACEOF
5580 if ac_fn_c_try_compile "$LINENO"; then :
5581 ac_cv_c_inline=$ac_kw
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 test "$ac_cv_c_inline" != no && break
5585 done
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5589 $as_echo "$ac_cv_c_inline" >&6; }
5591 case $ac_cv_c_inline in
5592 inline | yes) ;;
5594 case $ac_cv_c_inline in
5595 no) ac_val=;;
5596 *) ac_val=$ac_cv_c_inline;;
5597 esac
5598 cat >>confdefs.h <<_ACEOF
5599 #ifndef __cplusplus
5600 #define inline $ac_val
5601 #endif
5602 _ACEOF
5604 esac
5607 # Check whether --enable-largefile was given.
5608 if test "${enable_largefile+set}" = set; then :
5609 enableval=$enable_largefile;
5612 if test "$enable_largefile" != no; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5615 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5616 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 ac_cv_sys_largefile_CC=no
5620 if test "$GCC" != yes; then
5621 ac_save_CC=$CC
5622 while :; do
5623 # IRIX 6.2 and later do not support large files by default,
5624 # so use the C compiler's -n32 option if that helps.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 #include <sys/types.h>
5628 /* Check that off_t can represent 2**63 - 1 correctly.
5629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5630 since some C++ compilers masquerading as C compilers
5631 incorrectly reject 9223372036854775807. */
5632 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5634 && LARGE_OFF_T % 2147483647 == 1)
5635 ? 1 : -1];
5637 main ()
5641 return 0;
5643 _ACEOF
5644 if ac_fn_c_try_compile "$LINENO"; then :
5645 break
5647 rm -f core conftest.err conftest.$ac_objext
5648 CC="$CC -n32"
5649 if ac_fn_c_try_compile "$LINENO"; then :
5650 ac_cv_sys_largefile_CC=' -n32'; break
5652 rm -f core conftest.err conftest.$ac_objext
5653 break
5654 done
5655 CC=$ac_save_CC
5656 rm -f conftest.$ac_ext
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5660 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5661 if test "$ac_cv_sys_largefile_CC" != no; then
5662 CC=$CC$ac_cv_sys_largefile_CC
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5666 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5667 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 while :; do
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <sys/types.h>
5674 /* Check that off_t can represent 2**63 - 1 correctly.
5675 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5676 since some C++ compilers masquerading as C compilers
5677 incorrectly reject 9223372036854775807. */
5678 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5679 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5680 && LARGE_OFF_T % 2147483647 == 1)
5681 ? 1 : -1];
5683 main ()
5687 return 0;
5689 _ACEOF
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691 ac_cv_sys_file_offset_bits=no; break
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #define _FILE_OFFSET_BITS 64
5697 #include <sys/types.h>
5698 /* Check that off_t can represent 2**63 - 1 correctly.
5699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5700 since some C++ compilers masquerading as C compilers
5701 incorrectly reject 9223372036854775807. */
5702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5704 && LARGE_OFF_T % 2147483647 == 1)
5705 ? 1 : -1];
5707 main ()
5711 return 0;
5713 _ACEOF
5714 if ac_fn_c_try_compile "$LINENO"; then :
5715 ac_cv_sys_file_offset_bits=64; break
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718 ac_cv_sys_file_offset_bits=unknown
5719 break
5720 done
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5723 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5724 case $ac_cv_sys_file_offset_bits in #(
5725 no | unknown) ;;
5727 cat >>confdefs.h <<_ACEOF
5728 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5729 _ACEOF
5731 esac
5732 rm -rf conftest*
5733 if test $ac_cv_sys_file_offset_bits = unknown; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5735 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5736 if test "${ac_cv_sys_large_files+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 while :; do
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include <sys/types.h>
5743 /* Check that off_t can represent 2**63 - 1 correctly.
5744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5745 since some C++ compilers masquerading as C compilers
5746 incorrectly reject 9223372036854775807. */
5747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5749 && LARGE_OFF_T % 2147483647 == 1)
5750 ? 1 : -1];
5752 main ()
5756 return 0;
5758 _ACEOF
5759 if ac_fn_c_try_compile "$LINENO"; then :
5760 ac_cv_sys_large_files=no; break
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #define _LARGE_FILES 1
5766 #include <sys/types.h>
5767 /* Check that off_t can represent 2**63 - 1 correctly.
5768 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5769 since some C++ compilers masquerading as C compilers
5770 incorrectly reject 9223372036854775807. */
5771 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5772 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5773 && LARGE_OFF_T % 2147483647 == 1)
5774 ? 1 : -1];
5776 main ()
5780 return 0;
5782 _ACEOF
5783 if ac_fn_c_try_compile "$LINENO"; then :
5784 ac_cv_sys_large_files=1; break
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 ac_cv_sys_large_files=unknown
5788 break
5789 done
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5792 $as_echo "$ac_cv_sys_large_files" >&6; }
5793 case $ac_cv_sys_large_files in #(
5794 no | unknown) ;;
5796 cat >>confdefs.h <<_ACEOF
5797 #define _LARGE_FILES $ac_cv_sys_large_files
5798 _ACEOF
5800 esac
5801 rm -rf conftest*
5806 # sizeof(char) is 1 by definition.
5807 # The cast to long int works around a bug in the HP C Compiler
5808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5810 # This bug is HP SR number 8606223364.
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5812 $as_echo_n "checking size of void *... " >&6; }
5813 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5818 else
5819 if test "$ac_cv_type_void_p" = yes; then
5820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5822 { as_fn_set_status 77
5823 as_fn_error "cannot compute sizeof (void *)
5824 See \`config.log' for more details." "$LINENO" 5; }; }
5825 else
5826 ac_cv_sizeof_void_p=0
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5832 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5836 cat >>confdefs.h <<_ACEOF
5837 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5838 _ACEOF
5841 # The cast to long int works around a bug in the HP C Compiler
5842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5844 # This bug is HP SR number 8606223364.
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5846 $as_echo_n "checking size of short... " >&6; }
5847 if test "${ac_cv_sizeof_short+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5852 else
5853 if test "$ac_cv_type_short" = yes; then
5854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5856 { as_fn_set_status 77
5857 as_fn_error "cannot compute sizeof (short)
5858 See \`config.log' for more details." "$LINENO" 5; }; }
5859 else
5860 ac_cv_sizeof_short=0
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5866 $as_echo "$ac_cv_sizeof_short" >&6; }
5870 cat >>confdefs.h <<_ACEOF
5871 #define SIZEOF_SHORT $ac_cv_sizeof_short
5872 _ACEOF
5875 # The cast to long int works around a bug in the HP C Compiler
5876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5878 # This bug is HP SR number 8606223364.
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5880 $as_echo_n "checking size of int... " >&6; }
5881 if test "${ac_cv_sizeof_int+set}" = set; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5886 else
5887 if test "$ac_cv_type_int" = yes; then
5888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5890 { as_fn_set_status 77
5891 as_fn_error "cannot compute sizeof (int)
5892 See \`config.log' for more details." "$LINENO" 5; }; }
5893 else
5894 ac_cv_sizeof_int=0
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5900 $as_echo "$ac_cv_sizeof_int" >&6; }
5904 cat >>confdefs.h <<_ACEOF
5905 #define SIZEOF_INT $ac_cv_sizeof_int
5906 _ACEOF
5909 # The cast to long int works around a bug in the HP C Compiler
5910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5912 # This bug is HP SR number 8606223364.
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5914 $as_echo_n "checking size of long... " >&6; }
5915 if test "${ac_cv_sizeof_long+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5920 else
5921 if test "$ac_cv_type_long" = yes; then
5922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5924 { as_fn_set_status 77
5925 as_fn_error "cannot compute sizeof (long)
5926 See \`config.log' for more details." "$LINENO" 5; }; }
5927 else
5928 ac_cv_sizeof_long=0
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5934 $as_echo "$ac_cv_sizeof_long" >&6; }
5938 cat >>confdefs.h <<_ACEOF
5939 #define SIZEOF_LONG $ac_cv_sizeof_long
5940 _ACEOF
5943 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5944 if test "x$ac_cv_type_long_long" = x""yes; then :
5946 cat >>confdefs.h <<_ACEOF
5947 #define HAVE_LONG_LONG 1
5948 _ACEOF
5950 # The cast to long int works around a bug in the HP C Compiler
5951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5952 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5953 # This bug is HP SR number 8606223364.
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5955 $as_echo_n "checking size of long long... " >&6; }
5956 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5961 else
5962 if test "$ac_cv_type_long_long" = yes; then
5963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5965 { as_fn_set_status 77
5966 as_fn_error "cannot compute sizeof (long long)
5967 See \`config.log' for more details." "$LINENO" 5; }; }
5968 else
5969 ac_cv_sizeof_long_long=0
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5975 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5979 cat >>confdefs.h <<_ACEOF
5980 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5981 _ACEOF
5986 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5987 if test "x$ac_cv_type___int64" = x""yes; then :
5989 cat >>confdefs.h <<_ACEOF
5990 #define HAVE___INT64 1
5991 _ACEOF
5993 # The cast to long int works around a bug in the HP C Compiler
5994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5996 # This bug is HP SR number 8606223364.
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5998 $as_echo_n "checking size of __int64... " >&6; }
5999 if test "${ac_cv_sizeof___int64+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6004 else
6005 if test "$ac_cv_type___int64" = yes; then
6006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008 { as_fn_set_status 77
6009 as_fn_error "cannot compute sizeof (__int64)
6010 See \`config.log' for more details." "$LINENO" 5; }; }
6011 else
6012 ac_cv_sizeof___int64=0
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6018 $as_echo "$ac_cv_sizeof___int64" >&6; }
6022 cat >>confdefs.h <<_ACEOF
6023 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6024 _ACEOF
6029 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6030 case $ac_cv_c_int8_t in #(
6031 no|yes) ;; #(
6034 cat >>confdefs.h <<_ACEOF
6035 #define int8_t $ac_cv_c_int8_t
6036 _ACEOF
6038 esac
6040 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6041 case $ac_cv_c_int16_t in #(
6042 no|yes) ;; #(
6045 cat >>confdefs.h <<_ACEOF
6046 #define int16_t $ac_cv_c_int16_t
6047 _ACEOF
6049 esac
6051 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6052 case $ac_cv_c_int32_t in #(
6053 no|yes) ;; #(
6056 cat >>confdefs.h <<_ACEOF
6057 #define int32_t $ac_cv_c_int32_t
6058 _ACEOF
6060 esac
6062 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6063 case $ac_cv_c_int64_t in #(
6064 no|yes) ;; #(
6067 cat >>confdefs.h <<_ACEOF
6068 #define int64_t $ac_cv_c_int64_t
6069 _ACEOF
6071 esac
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6075 $as_echo_n "checking for long long int... " >&6; }
6076 if test "${ac_cv_type_long_long_int+set}" = set; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6082 /* For now, do not test the preprocessor; as of 2007 there are too many
6083 implementations with broken preprocessors. Perhaps this can
6084 be revisited in 2012. In the meantime, code should not expect
6085 #if to work with literals wider than 32 bits. */
6086 /* Test literals. */
6087 long long int ll = 9223372036854775807ll;
6088 long long int nll = -9223372036854775807LL;
6089 unsigned long long int ull = 18446744073709551615ULL;
6090 /* Test constant expressions. */
6091 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6092 ? 1 : -1)];
6093 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6094 ? 1 : -1)];
6095 int i = 63;
6097 main ()
6099 /* Test availability of runtime routines for shift and division. */
6100 long long int llmax = 9223372036854775807ll;
6101 unsigned long long int ullmax = 18446744073709551615ull;
6102 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6103 | (llmax / ll) | (llmax % ll)
6104 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6105 | (ullmax / ull) | (ullmax % ull));
6107 return 0;
6110 _ACEOF
6111 if ac_fn_c_try_link "$LINENO"; then :
6112 if test "$cross_compiling" = yes; then :
6113 ac_cv_type_long_long_int=yes
6114 else
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117 #include <limits.h>
6118 #ifndef LLONG_MAX
6119 # define HALF \
6120 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6121 # define LLONG_MAX (HALF - 1 + HALF)
6122 #endif
6124 main ()
6126 long long int n = 1;
6127 int i;
6128 for (i = 0; ; i++)
6130 long long int m = n << i;
6131 if (m >> i != n)
6132 return 1;
6133 if (LLONG_MAX / 2 < m)
6134 break;
6136 return 0;
6138 return 0;
6140 _ACEOF
6141 if ac_fn_c_try_run "$LINENO"; then :
6142 ac_cv_type_long_long_int=yes
6143 else
6144 ac_cv_type_long_long_int=no
6146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6147 conftest.$ac_objext conftest.beam conftest.$ac_ext
6150 else
6151 ac_cv_type_long_long_int=no
6153 rm -f core conftest.err conftest.$ac_objext \
6154 conftest$ac_exeext conftest.$ac_ext
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6157 $as_echo "$ac_cv_type_long_long_int" >&6; }
6158 if test $ac_cv_type_long_long_int = yes; then
6160 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6166 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6167 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6169 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6171 else
6172 test $ac_cv_type_long_long_int = yes \
6173 && ac_type='long long int' \
6174 || ac_type='long int'
6176 cat >>confdefs.h <<_ACEOF
6177 #define intmax_t $ac_type
6178 _ACEOF
6184 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6185 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6187 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6189 else
6190 for ac_type in 'int' 'long int' 'long long int'; do
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 $ac_includes_default
6195 main ()
6197 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6198 test_array [0] = 0
6201 return 0;
6203 _ACEOF
6204 if ac_fn_c_try_compile "$LINENO"; then :
6206 cat >>confdefs.h <<_ACEOF
6207 #define intptr_t $ac_type
6208 _ACEOF
6210 ac_type=
6212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213 test -z "$ac_type" && break
6214 done
6218 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6219 case $ac_cv_c_uint8_t in #(
6220 no|yes) ;; #(
6223 $as_echo "#define _UINT8_T 1" >>confdefs.h
6226 cat >>confdefs.h <<_ACEOF
6227 #define uint8_t $ac_cv_c_uint8_t
6228 _ACEOF
6230 esac
6232 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6233 case $ac_cv_c_uint16_t in #(
6234 no|yes) ;; #(
6238 cat >>confdefs.h <<_ACEOF
6239 #define uint16_t $ac_cv_c_uint16_t
6240 _ACEOF
6242 esac
6244 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6245 case $ac_cv_c_uint32_t in #(
6246 no|yes) ;; #(
6249 $as_echo "#define _UINT32_T 1" >>confdefs.h
6252 cat >>confdefs.h <<_ACEOF
6253 #define uint32_t $ac_cv_c_uint32_t
6254 _ACEOF
6256 esac
6258 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6259 case $ac_cv_c_uint64_t in #(
6260 no|yes) ;; #(
6263 $as_echo "#define _UINT64_T 1" >>confdefs.h
6266 cat >>confdefs.h <<_ACEOF
6267 #define uint64_t $ac_cv_c_uint64_t
6268 _ACEOF
6270 esac
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6274 $as_echo_n "checking for unsigned long long int... " >&6; }
6275 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6281 /* For now, do not test the preprocessor; as of 2007 there are too many
6282 implementations with broken preprocessors. Perhaps this can
6283 be revisited in 2012. In the meantime, code should not expect
6284 #if to work with literals wider than 32 bits. */
6285 /* Test literals. */
6286 long long int ll = 9223372036854775807ll;
6287 long long int nll = -9223372036854775807LL;
6288 unsigned long long int ull = 18446744073709551615ULL;
6289 /* Test constant expressions. */
6290 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6291 ? 1 : -1)];
6292 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6293 ? 1 : -1)];
6294 int i = 63;
6296 main ()
6298 /* Test availability of runtime routines for shift and division. */
6299 long long int llmax = 9223372036854775807ll;
6300 unsigned long long int ullmax = 18446744073709551615ull;
6301 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6302 | (llmax / ll) | (llmax % ll)
6303 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6304 | (ullmax / ull) | (ullmax % ull));
6306 return 0;
6309 _ACEOF
6310 if ac_fn_c_try_link "$LINENO"; then :
6311 ac_cv_type_unsigned_long_long_int=yes
6312 else
6313 ac_cv_type_unsigned_long_long_int=no
6315 rm -f core conftest.err conftest.$ac_objext \
6316 conftest$ac_exeext conftest.$ac_ext
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6319 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6320 if test $ac_cv_type_unsigned_long_long_int = yes; then
6322 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6328 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6329 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6331 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6333 else
6334 test $ac_cv_type_unsigned_long_long_int = yes \
6335 && ac_type='unsigned long long int' \
6336 || ac_type='unsigned long int'
6338 cat >>confdefs.h <<_ACEOF
6339 #define uintmax_t $ac_type
6340 _ACEOF
6346 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6347 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6349 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6351 else
6352 for ac_type in 'unsigned int' 'unsigned long int' \
6353 'unsigned long long int'; do
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 $ac_includes_default
6358 main ()
6360 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6361 test_array [0] = 0
6364 return 0;
6366 _ACEOF
6367 if ac_fn_c_try_compile "$LINENO"; then :
6369 cat >>confdefs.h <<_ACEOF
6370 #define uintptr_t $ac_type
6371 _ACEOF
6373 ac_type=
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 test -z "$ac_type" && break
6377 done
6394 # ---------------------
6395 # Warnings and checking
6396 # ---------------------
6398 # Check $CC warning features (if it's GCC).
6399 # We want to use -pedantic, but we don't want warnings about
6400 # * 'long long'
6401 # * variadic macros
6402 # * overlong strings
6403 # * C++11 narrowing conversions in { }
6404 # So, we only use -pedantic if we can disable those warnings.
6406 loose_warn=
6407 save_CFLAGS="$CFLAGS"
6408 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6409 # Do the check with the no- prefix removed since gcc silently
6410 # accepts any -Wno-* option on purpose
6411 case $real_option in
6412 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6413 *) option=$real_option ;;
6414 esac
6415 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6418 $as_echo_n "checking whether $CC supports $option... " >&6; }
6419 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 CFLAGS="$option"
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6427 main ()
6431 return 0;
6433 _ACEOF
6434 if ac_fn_c_try_compile "$LINENO"; then :
6435 eval "$as_acx_Woption=yes"
6436 else
6437 eval "$as_acx_Woption=no"
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 eval ac_res=\$$as_acx_Woption
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6444 $as_echo "$ac_res" >&6; }
6445 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6446 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6448 done
6449 CFLAGS="$save_CFLAGS"
6451 c_loose_warn=
6452 save_CFLAGS="$CFLAGS"
6453 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6454 # Do the check with the no- prefix removed since gcc silently
6455 # accepts any -Wno-* option on purpose
6456 case $real_option in
6457 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6458 *) option=$real_option ;;
6459 esac
6460 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6463 $as_echo_n "checking whether $CC supports $option... " >&6; }
6464 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 CFLAGS="$option"
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6472 main ()
6476 return 0;
6478 _ACEOF
6479 if ac_fn_c_try_compile "$LINENO"; then :
6480 eval "$as_acx_Woption=yes"
6481 else
6482 eval "$as_acx_Woption=no"
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 eval ac_res=\$$as_acx_Woption
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6489 $as_echo "$ac_res" >&6; }
6490 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6491 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6493 done
6494 CFLAGS="$save_CFLAGS"
6496 strict_warn=
6497 save_CFLAGS="$CFLAGS"
6498 for real_option in -Wmissing-format-attribute; do
6499 # Do the check with the no- prefix removed since gcc silently
6500 # accepts any -Wno-* option on purpose
6501 case $real_option in
6502 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6503 *) option=$real_option ;;
6504 esac
6505 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6508 $as_echo_n "checking whether $CC supports $option... " >&6; }
6509 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 CFLAGS="$option"
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6517 main ()
6521 return 0;
6523 _ACEOF
6524 if ac_fn_c_try_compile "$LINENO"; then :
6525 eval "$as_acx_Woption=yes"
6526 else
6527 eval "$as_acx_Woption=no"
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 eval ac_res=\$$as_acx_Woption
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6534 $as_echo "$ac_res" >&6; }
6535 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6536 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6538 done
6539 CFLAGS="$save_CFLAGS"
6541 c_strict_warn=
6542 save_CFLAGS="$CFLAGS"
6543 for real_option in -Wold-style-definition -Wc++-compat; do
6544 # Do the check with the no- prefix removed since gcc silently
6545 # accepts any -Wno-* option on purpose
6546 case $real_option in
6547 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6548 *) option=$real_option ;;
6549 esac
6550 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6553 $as_echo_n "checking whether $CC supports $option... " >&6; }
6554 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 CFLAGS="$option"
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6562 main ()
6566 return 0;
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 eval "$as_acx_Woption=yes"
6571 else
6572 eval "$as_acx_Woption=no"
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 eval ac_res=\$$as_acx_Woption
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6579 $as_echo "$ac_res" >&6; }
6580 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6581 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6583 done
6584 CFLAGS="$save_CFLAGS"
6586 # Do the check with the no- prefix removed from the warning options
6587 # since gcc silently accepts any -Wno-* option on purpose
6588 if test "$GCC" = yes; then :
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6590 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6591 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 save_CFLAGS="$CFLAGS"
6595 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6600 main ()
6604 return 0;
6606 _ACEOF
6607 if ac_fn_c_try_compile "$LINENO"; then :
6608 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6609 else
6610 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 CFLAGS="$save_CFLAGS"
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6616 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6617 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6618 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6623 # Check whether --enable-werror-always was given.
6624 if test "${enable_werror_always+set}" = set; then :
6625 enableval=$enable_werror_always;
6626 else
6627 enable_werror_always=no
6630 if test $enable_werror_always = yes; then :
6631 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6636 # The above macros do nothing if the compiler is not GCC. However, the
6637 # Makefile has more goo to add other flags, so these variables are used
6638 # to enable warnings only for GCC.
6639 warn_cflags=
6640 warn_cxxflags=
6641 if test "x$GCC" = "xyes"; then
6642 warn_cflags='$(GCC_WARN_CFLAGS)'
6643 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6648 # Disable exceptions and RTTI if building with g++
6649 noexception_flags=
6650 save_CFLAGS="$CFLAGS"
6651 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6652 # Do the check with the no- prefix removed since gcc silently
6653 # accepts any -Wno-* option on purpose
6654 case $real_option in
6655 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6656 *) option=$real_option ;;
6657 esac
6658 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6661 $as_echo_n "checking whether $CC supports $option... " >&6; }
6662 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6663 $as_echo_n "(cached) " >&6
6664 else
6665 CFLAGS="$option"
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6670 main ()
6674 return 0;
6676 _ACEOF
6677 if ac_fn_c_try_compile "$LINENO"; then :
6678 eval "$as_acx_Woption=yes"
6679 else
6680 eval "$as_acx_Woption=no"
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 eval ac_res=\$$as_acx_Woption
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6687 $as_echo "$ac_res" >&6; }
6688 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6689 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6691 done
6692 CFLAGS="$save_CFLAGS"
6695 # Enable expensive internal checks
6696 is_release=
6697 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6698 is_release=yes
6701 # Check whether --enable-checking was given.
6702 if test "${enable_checking+set}" = set; then :
6703 enableval=$enable_checking; ac_checking_flags="${enableval}"
6704 else
6706 # Determine the default checks.
6707 if test x$is_release = x ; then
6708 ac_checking_flags=yes
6709 else
6710 ac_checking_flags=release
6714 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6715 for check in release $ac_checking_flags
6717 case $check in
6718 # these set all the flags to specific states
6719 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6720 ac_fold_checking= ; ac_gc_checking=1 ;
6721 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6722 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6723 ac_tree_checking=1 ; ac_valgrind_checking= ;
6724 ac_types_checking=1 ;;
6725 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6726 ac_fold_checking= ; ac_gc_checking= ;
6727 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6728 ac_rtlflag_checking= ; ac_runtime_checking= ;
6729 ac_tree_checking= ; ac_valgrind_checking= ;
6730 ac_types_checking= ;;
6731 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6732 ac_fold_checking=1 ; ac_gc_checking=1 ;
6733 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6734 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6735 ac_tree_checking=1 ; ac_valgrind_checking= ;
6736 ac_types_checking=1 ;;
6737 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6738 ac_fold_checking= ; ac_gc_checking= ;
6739 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6740 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6741 ac_tree_checking= ; ac_valgrind_checking= ;
6742 ac_types_checking= ;;
6743 # these enable particular checks
6744 assert) ac_assert_checking=1 ;;
6745 df) ac_df_checking=1 ;;
6746 fold) ac_fold_checking=1 ;;
6747 gc) ac_gc_checking=1 ;;
6748 gcac) ac_gc_always_collect=1 ;;
6749 gimple) ac_gimple_checking=1 ;;
6750 misc) ac_checking=1 ;;
6751 rtl) ac_rtl_checking=1 ;;
6752 rtlflag) ac_rtlflag_checking=1 ;;
6753 runtime) ac_runtime_checking=1 ;;
6754 tree) ac_tree_checking=1 ;;
6755 types) ac_types_checking=1 ;;
6756 valgrind) ac_valgrind_checking=1 ;;
6757 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6758 esac
6759 done
6760 IFS="$ac_save_IFS"
6762 nocommon_flag=""
6763 if test x$ac_checking != x ; then
6765 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6767 nocommon_flag=-fno-common
6770 if test x$ac_df_checking != x ; then
6772 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6775 if test x$ac_assert_checking != x ; then
6777 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6780 if test x$ac_gimple_checking != x ; then
6782 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6786 if test x$ac_runtime_checking != x ; then
6788 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6791 if test x$ac_tree_checking != x ; then
6793 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6795 TREEBROWSER=tree-browser.o
6796 TREECHECKING=yes
6798 if test x$ac_types_checking != x ; then
6800 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6805 if test x$ac_rtl_checking != x ; then
6807 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6810 if test x$ac_rtlflag_checking != x ; then
6812 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6815 if test x$ac_gc_checking != x ; then
6817 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6820 if test x$ac_gc_always_collect != x ; then
6822 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6825 if test x$ac_fold_checking != x ; then
6827 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6830 valgrind_path_defines=
6831 valgrind_command=
6833 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6834 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6835 have_valgrind_h=yes
6836 else
6837 have_valgrind_h=no
6842 if test x$ac_valgrind_checking != x ; then
6843 # It is certainly possible that there's valgrind but no valgrind.h.
6844 # GCC relies on making annotations so we must have both.
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6846 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849 #include <valgrind/memcheck.h>
6850 #ifndef VALGRIND_DISCARD
6851 #error VALGRIND_DISCARD not defined
6852 #endif
6853 _ACEOF
6854 if ac_fn_c_try_cpp "$LINENO"; then :
6855 gcc_cv_header_valgrind_memcheck_h=yes
6856 else
6857 gcc_cv_header_valgrind_memcheck_h=no
6859 rm -f conftest.err conftest.$ac_ext
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6861 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6863 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 #include <memcheck.h>
6867 #ifndef VALGRIND_DISCARD
6868 #error VALGRIND_DISCARD not defined
6869 #endif
6870 _ACEOF
6871 if ac_fn_c_try_cpp "$LINENO"; then :
6872 gcc_cv_header_memcheck_h=yes
6873 else
6874 gcc_cv_header_memcheck_h=no
6876 rm -f conftest.err conftest.$ac_ext
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6878 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6880 # Prepare PATH_SEPARATOR.
6881 # The user is always right.
6882 if test "${PATH_SEPARATOR+set}" != set; then
6883 echo "#! /bin/sh" >conf$$.sh
6884 echo "exit 0" >>conf$$.sh
6885 chmod +x conf$$.sh
6886 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6887 PATH_SEPARATOR=';'
6888 else
6889 PATH_SEPARATOR=:
6891 rm -f conf$$.sh
6894 # Find out how to test for executable files. Don't use a zero-byte file,
6895 # as systems may use methods other than mode bits to determine executability.
6896 cat >conf$$.file <<_ASEOF
6897 #! /bin/sh
6898 exit 0
6899 _ASEOF
6900 chmod +x conf$$.file
6901 if test -x conf$$.file >/dev/null 2>&1; then
6902 ac_executable_p="test -x"
6903 else
6904 ac_executable_p="test -f"
6906 rm -f conf$$.file
6908 # Extract the first word of "valgrind", so it can be a program name with args.
6909 set dummy valgrind; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 case "$valgrind_path" in
6916 [\\/]* | ?:[\\/]*)
6917 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6920 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6921 for ac_dir in $PATH; do
6922 IFS="$ac_save_IFS"
6923 test -z "$ac_dir" && ac_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6926 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6927 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6928 break 2
6931 done
6932 done
6933 IFS="$ac_save_IFS"
6935 esac
6937 valgrind_path="$ac_cv_path_valgrind_path"
6938 if test -n "$valgrind_path"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6940 $as_echo "$valgrind_path" >&6; }
6941 else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6946 if test "x$valgrind_path" = "x" \
6947 || (test $have_valgrind_h = no \
6948 && test $gcc_cv_header_memcheck_h = no \
6949 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6950 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6952 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6953 valgrind_command="$valgrind_path -q"
6955 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6957 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6959 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6962 if test $gcc_cv_header_memcheck_h = yes; then
6964 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6971 # Enable code coverage collection
6972 # Check whether --enable-coverage was given.
6973 if test "${enable_coverage+set}" = set; then :
6974 enableval=$enable_coverage; case "${enableval}" in
6975 yes|noopt)
6976 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6978 opt)
6979 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6982 # a.k.a. --disable-coverage
6983 coverage_flags=""
6986 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6988 esac
6989 else
6990 coverage_flags=""
6995 # Check whether --enable-gather-detailed-mem-stats was given.
6996 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6997 enableval=$enable_gather_detailed_mem_stats;
6998 else
6999 enable_gather_detailed_mem_stats=no
7002 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7004 cat >>confdefs.h <<_ACEOF
7005 #define GATHER_STATISTICS $gather_stats
7006 _ACEOF
7009 # -------------------------------
7010 # Miscenalleous configure options
7011 # -------------------------------
7013 # With stabs
7015 # Check whether --with-stabs was given.
7016 if test "${with_stabs+set}" = set; then :
7017 withval=$with_stabs; stabs="$with_stabs"
7018 else
7019 stabs=no
7023 # Determine whether or not multilibs are enabled.
7024 # Check whether --enable-multilib was given.
7025 if test "${enable_multilib+set}" = set; then :
7026 enableval=$enable_multilib;
7027 else
7028 enable_multilib=yes
7033 # Determine whether or not multiarch is enabled.
7034 # Check whether --enable-multiarch was given.
7035 if test "${enable_multiarch+set}" = set; then :
7036 enableval=$enable_multiarch; case "${enableval}" in
7037 yes|no|auto) enable_multiarch=$enableval;;
7038 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7039 esac
7040 else
7041 enable_multiarch=auto
7044 if test x${enable_multiarch} = xauto; then
7045 if test x${with_native_system_header_dir} != x; then
7046 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7047 enable_multiarch=no
7049 if test x$host != x$target && test "x$with_sysroot" = x; then
7050 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7051 enable_multiarch=no
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7055 $as_echo_n "checking for multiarch configuration... " >&6; }
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7058 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7060 # needed for setting the multiarch name for soft-float/hard-float ABIs
7064 # Enable __cxa_atexit for C++.
7065 # Check whether --enable-__cxa_atexit was given.
7066 if test "${enable___cxa_atexit+set}" = set; then :
7067 enableval=$enable___cxa_atexit;
7071 # Enable C extension for decimal float if target supports it.
7073 # Check whether --enable-decimal-float was given.
7074 if test "${enable_decimal_float+set}" = set; then :
7075 enableval=$enable_decimal_float;
7076 case $enable_decimal_float in
7077 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7078 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7079 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7080 esac
7082 else
7084 case $target in
7085 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7086 i?86*-*-gnu* | \
7087 i?86*-*-mingw* | x86_64*-*-mingw* | \
7088 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7089 enable_decimal_float=yes
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7093 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7094 enable_decimal_float=no
7096 esac
7101 # x86's use BID format instead of DPD
7102 case x$enable_decimal_float in
7103 xyes)
7104 case $target in
7105 i?86*-*-* | x86_64*-*-*)
7106 enable_decimal_float=bid
7109 enable_decimal_float=dpd
7111 esac
7112 default_decimal_float=$enable_decimal_float
7114 xno)
7115 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7116 # dependency on libdecnumber.
7117 default_decimal_float=dpd
7119 esac
7124 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7126 cat >>confdefs.h <<_ACEOF
7127 #define ENABLE_DECIMAL_FLOAT $dfp
7128 _ACEOF
7131 # Use default_decimal_float for dependency.
7132 enable_decimal_float=$default_decimal_float
7134 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7136 cat >>confdefs.h <<_ACEOF
7137 #define ENABLE_DECIMAL_BID_FORMAT $bid
7138 _ACEOF
7141 # Enable C extension for fixed-point arithmetic.
7142 # Check whether --enable-fixed-point was given.
7143 if test "${enable_fixed_point+set}" = set; then :
7144 enableval=$enable_fixed_point;
7145 else
7147 case $target in
7148 arm*)
7149 enable_fixed_point=yes
7152 mips*-*-*)
7153 enable_fixed_point=yes
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7157 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7158 enable_fixed_point=no
7160 esac
7166 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7168 cat >>confdefs.h <<_ACEOF
7169 #define ENABLE_FIXED_POINT $fixedpoint
7170 _ACEOF
7173 # Enable threads
7174 # Pass with no value to take the default
7175 # Pass with a value to specify a thread package
7176 # Check whether --enable-threads was given.
7177 if test "${enable_threads+set}" = set; then :
7178 enableval=$enable_threads;
7179 else
7180 enable_threads=''
7184 # Check whether --enable-tls was given.
7185 if test "${enable_tls+set}" = set; then :
7186 enableval=$enable_tls;
7187 case $enable_tls in
7188 yes | no) ;;
7189 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7190 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7191 esac
7193 else
7194 enable_tls=''
7198 # Check whether --enable-objc-gc was given.
7199 if test "${enable_objc_gc+set}" = set; then :
7200 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7201 objc_boehm_gc=''
7202 else
7203 objc_boehm_gc=1
7205 else
7206 objc_boehm_gc=''
7211 # Check whether --with-dwarf2 was given.
7212 if test "${with_dwarf2+set}" = set; then :
7213 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7214 else
7215 dwarf2=no
7219 # Check whether --enable-shared was given.
7220 if test "${enable_shared+set}" = set; then :
7221 enableval=$enable_shared;
7222 case $enable_shared in
7223 yes | no) ;;
7225 enable_shared=no
7226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7227 for pkg in $enableval; do
7228 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7229 enable_shared=yes
7231 done
7232 IFS="$ac_save_ifs"
7234 esac
7236 else
7237 enable_shared=yes
7243 # Check whether --with-native-system-header-dir was given.
7244 if test "${with_native_system_header_dir+set}" = set; then :
7245 withval=$with_native_system_header_dir;
7246 case ${with_native_system_header_dir} in
7247 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7248 /* | [A-Za-z]:[\\/]*) ;;
7249 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7250 esac
7251 configured_native_system_header_dir="${withval}"
7253 else
7254 configured_native_system_header_dir=
7259 # Check whether --with-build-sysroot was given.
7260 if test "${with_build_sysroot+set}" = set; then :
7261 withval=$with_build_sysroot; if test x"$withval" != x ; then
7262 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7264 else
7265 SYSROOT_CFLAGS_FOR_TARGET=
7270 if test "x$prefix" = xNONE; then
7271 test_prefix=/usr/local
7272 else
7273 test_prefix=$prefix
7275 if test "x$exec_prefix" = xNONE; then
7276 test_exec_prefix=$test_prefix
7277 else
7278 test_exec_prefix=$exec_prefix
7282 # Check whether --with-sysroot was given.
7283 if test "${with_sysroot+set}" = set; then :
7284 withval=$with_sysroot;
7285 case ${with_sysroot} in
7286 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7287 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7288 esac
7290 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7291 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7293 case ${TARGET_SYSTEM_ROOT} in
7294 "${test_prefix}"|"${test_prefix}/"*|\
7295 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7296 '${prefix}'|'${prefix}/'*|\
7297 '${exec_prefix}'|'${exec_prefix}/'*)
7298 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7299 TARGET_SYSTEM_ROOT_DEFINE="$t"
7301 esac
7303 else
7305 TARGET_SYSTEM_ROOT=
7306 TARGET_SYSTEM_ROOT_DEFINE=
7307 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7316 # Check whether --with-specs was given.
7317 if test "${with_specs+set}" = set; then :
7318 withval=$with_specs; CONFIGURE_SPECS=$withval
7319 else
7320 CONFIGURE_SPECS=
7328 # Check whether --with-pkgversion was given.
7329 if test "${with_pkgversion+set}" = set; then :
7330 withval=$with_pkgversion; case "$withval" in
7331 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7332 no) PKGVERSION= ;;
7333 *) PKGVERSION="($withval) " ;;
7334 esac
7335 else
7336 PKGVERSION="(GCC) "
7344 # Check whether --with-bugurl was given.
7345 if test "${with_bugurl+set}" = set; then :
7346 withval=$with_bugurl; case "$withval" in
7347 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7348 no) BUGURL=
7350 *) BUGURL="$withval"
7352 esac
7353 else
7354 BUGURL="http://gcc.gnu.org/bugs.html"
7358 case ${BUGURL} in
7360 REPORT_BUGS_TO=
7361 REPORT_BUGS_TEXI=
7364 REPORT_BUGS_TO="<$BUGURL>"
7365 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7367 esac;
7372 # Sanity check enable_languages in case someone does not run the toplevel
7373 # configure # script.
7374 # Check whether --enable-languages was given.
7375 if test "${enable_languages+set}" = set; then :
7376 enableval=$enable_languages; case ,${enable_languages}, in
7377 ,,|,yes,)
7378 # go safe -- we cannot be much sure without the toplevel
7379 # configure's
7380 # analysis of which target libs are present and usable
7381 enable_languages=c
7383 *,all,*)
7384 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7386 *,c,*)
7389 enable_languages=c,${enable_languages}
7391 esac
7392 else
7393 enable_languages=c
7398 # Check whether --with-multilib-list was given.
7399 if test "${with_multilib_list+set}" = set; then :
7400 withval=$with_multilib_list; :
7401 else
7402 with_multilib_list=default
7406 # -------------------------
7407 # Checks for other programs
7408 # -------------------------
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7411 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7412 set x ${MAKE-make}
7413 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7414 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 cat >conftest.make <<\_ACEOF
7418 SHELL = /bin/sh
7419 all:
7420 @echo '@@@%%%=$(MAKE)=@@@%%%'
7421 _ACEOF
7422 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7423 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7424 *@@@%%%=?*=@@@%%%*)
7425 eval ac_cv_prog_make_${ac_make}_set=yes;;
7427 eval ac_cv_prog_make_${ac_make}_set=no;;
7428 esac
7429 rm -f conftest.make
7431 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7433 $as_echo "yes" >&6; }
7434 SET_MAKE=
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 SET_MAKE="MAKE=${MAKE-make}"
7442 # Find some useful tools
7443 for ac_prog in gawk mawk nawk awk
7445 # Extract the first word of "$ac_prog", so it can be a program name with args.
7446 set dummy $ac_prog; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if test "${ac_cv_prog_AWK+set}" = set; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 if test -n "$AWK"; then
7453 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462 ac_cv_prog_AWK="$ac_prog"
7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7466 done
7467 done
7468 IFS=$as_save_IFS
7472 AWK=$ac_cv_prog_AWK
7473 if test -n "$AWK"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7475 $as_echo "$AWK" >&6; }
7476 else
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7482 test -n "$AWK" && break
7483 done
7485 # We need awk to create options.c and options.h.
7486 # Bail out if it's missing.
7487 case ${AWK} in
7488 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7489 esac
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7492 $as_echo_n "checking whether ln -s works... " >&6; }
7493 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496 rm -f conftestdata_t
7497 echo >conftestdata_f
7498 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7499 then
7500 gcc_cv_prog_LN_S="ln -s"
7501 else
7502 if ln conftestdata_f conftestdata_t 2>/dev/null
7503 then
7504 gcc_cv_prog_LN_S=ln
7505 else
7506 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7507 then
7508 gcc_cv_prog_LN_S="cp -p"
7509 else
7510 gcc_cv_prog_LN_S=cp
7514 rm -f conftestdata_f conftestdata_t
7517 LN_S="$gcc_cv_prog_LN_S"
7518 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7520 $as_echo "yes" >&6; }
7521 else
7522 if test "$gcc_cv_prog_LN_S" = "ln"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7524 $as_echo "no, using ln" >&6; }
7525 else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7527 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7532 $as_echo_n "checking whether ln works... " >&6; }
7533 if test "${acx_cv_prog_LN+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 rm -f conftestdata_t
7537 echo >conftestdata_f
7538 if ln conftestdata_f conftestdata_t 2>/dev/null
7539 then
7540 acx_cv_prog_LN=ln
7541 else
7542 acx_cv_prog_LN=no
7544 rm -f conftestdata_f conftestdata_t
7547 if test $acx_cv_prog_LN = no; then
7548 LN="$LN_S"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7550 $as_echo "no, using $LN" >&6; }
7551 else
7552 LN="$acx_cv_prog_LN"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7554 $as_echo "yes" >&6; }
7557 if test -n "$ac_tool_prefix"; then
7558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7559 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 if test -n "$RANLIB"; then
7566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7579 done
7580 done
7581 IFS=$as_save_IFS
7585 RANLIB=$ac_cv_prog_RANLIB
7586 if test -n "$RANLIB"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7588 $as_echo "$RANLIB" >&6; }
7589 else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7596 if test -z "$ac_cv_prog_RANLIB"; then
7597 ac_ct_RANLIB=$RANLIB
7598 # Extract the first word of "ranlib", so it can be a program name with args.
7599 set dummy ranlib; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 if test -n "$ac_ct_RANLIB"; then
7606 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7607 else
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7611 IFS=$as_save_IFS
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_prog_ac_ct_RANLIB="ranlib"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 break 2
7619 done
7620 done
7621 IFS=$as_save_IFS
7625 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7626 if test -n "$ac_ct_RANLIB"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7628 $as_echo "$ac_ct_RANLIB" >&6; }
7629 else
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7634 if test "x$ac_ct_RANLIB" = x; then
7635 RANLIB=":"
7636 else
7637 case $cross_compiling:$ac_tool_warned in
7638 yes:)
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641 ac_tool_warned=yes ;;
7642 esac
7643 RANLIB=$ac_ct_RANLIB
7645 else
7646 RANLIB="$ac_cv_prog_RANLIB"
7649 ranlib_flags=""
7652 # Find a good install program. We prefer a C program (faster),
7653 # so one script is as good as another. But avoid the broken or
7654 # incompatible versions:
7655 # SysV /etc/install, /usr/sbin/install
7656 # SunOS /usr/etc/install
7657 # IRIX /sbin/install
7658 # AIX /bin/install
7659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7661 # ./install, which can be erroneously created by make from ./install.sh.
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7663 $as_echo_n "checking for a BSD compatible install... " >&6; }
7664 if test -z "$INSTALL"; then
7665 if test "${ac_cv_path_install+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
7667 else
7668 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7669 for ac_dir in $PATH; do
7670 # Account for people who put trailing slashes in PATH elements.
7671 case "$ac_dir/" in
7672 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7674 # OSF1 and SCO ODT 3.0 have their own names for install.
7675 for ac_prog in ginstall scoinst install; do
7676 if test -f $ac_dir/$ac_prog; then
7677 if test $ac_prog = install &&
7678 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7679 # AIX install. It has an incompatible calling convention.
7680 # OSF/1 installbsd also uses dspmsg, but is usable.
7682 else
7683 ac_cv_path_install="$ac_dir/$ac_prog -c"
7684 break 2
7687 done
7689 esac
7690 done
7691 IFS="$ac_save_IFS"
7694 if test "${ac_cv_path_install+set}" = set; then
7695 INSTALL="$ac_cv_path_install"
7696 else
7697 # As a last resort, use the slow shell script. We don't cache a
7698 # path for INSTALL within a source directory, because that will
7699 # break other packages using the cache if that directory is
7700 # removed, or if the path is relative.
7701 INSTALL="$ac_install_sh"
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7705 $as_echo "$INSTALL" >&6; }
7707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7708 # It thinks the first close brace ends the variable substitution.
7709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7711 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7714 # See if cmp has --ignore-initial.
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7716 $as_echo_n "checking for cmp's capabilities... " >&6; }
7717 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 echo abfoo >t1
7721 echo cdfoo >t2
7722 gcc_cv_prog_cmp_skip=slowcompare
7723 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7724 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7726 else
7727 gcc_cv_prog_cmp_skip=gnucompare
7730 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7731 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7732 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7734 else
7735 gcc_cv_prog_cmp_skip=fastcompare
7739 rm t1 t2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7743 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7744 make_compare_target=$gcc_cv_prog_cmp_skip
7748 # See if we have the mktemp command.
7749 # Extract the first word of "mktemp", so it can be a program name with args.
7750 set dummy mktemp; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 if test -n "$have_mktemp_command"; then
7757 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7758 else
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7766 ac_cv_prog_have_mktemp_command="yes"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7770 done
7771 done
7772 IFS=$as_save_IFS
7774 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7777 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7778 if test -n "$have_mktemp_command"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7780 $as_echo "$have_mktemp_command" >&6; }
7781 else
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7788 # See if makeinfo has been installed and is modern enough
7789 # that we can use it.
7791 # Extract the first word of "makeinfo", so it can be a program name with args.
7792 set dummy makeinfo; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 if test -n "$MAKEINFO"; then
7799 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_MAKEINFO="makeinfo"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7812 done
7813 done
7814 IFS=$as_save_IFS
7818 MAKEINFO=$ac_cv_prog_MAKEINFO
7819 if test -n "$MAKEINFO"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7821 $as_echo "$MAKEINFO" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7828 if test -n "$MAKEINFO"; then
7829 # Found it, now check the version.
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7831 $as_echo_n "checking for modern makeinfo... " >&6; }
7832 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7836 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7838 case $ac_prog_version in
7839 '') gcc_cv_prog_makeinfo_modern=no;;
7840 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7841 *) gcc_cv_prog_makeinfo_modern=no;;
7842 esac
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7846 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7847 else
7848 gcc_cv_prog_makeinfo_modern=no
7850 if test $gcc_cv_prog_makeinfo_modern = no; then
7851 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7854 if test $gcc_cv_prog_makeinfo_modern = no; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7856 *** Makeinfo is missing or too old.
7857 *** Info documentation will not be built." >&5
7858 $as_echo "$as_me: WARNING:
7859 *** Makeinfo is missing or too old.
7860 *** Info documentation will not be built." >&2;}
7861 BUILD_INFO=
7862 else
7863 BUILD_INFO=info
7867 # Is pod2man recent enough to regenerate manpages?
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7869 $as_echo_n "checking for recent Pod::Man... " >&6; }
7870 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7872 $as_echo "yes" >&6; }
7873 GENERATED_MANPAGES=generated-manpages
7874 else
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7877 GENERATED_MANPAGES=
7881 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7883 # How about lex?
7884 for ac_prog in flex
7886 # Extract the first word of "$ac_prog", so it can be a program name with args.
7887 set dummy $ac_prog; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if test "${ac_cv_prog_FLEX+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 if test -n "$FLEX"; then
7894 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_prog_FLEX="$ac_prog"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7907 done
7908 done
7909 IFS=$as_save_IFS
7913 FLEX=$ac_cv_prog_FLEX
7914 if test -n "$FLEX"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7916 $as_echo "$FLEX" >&6; }
7917 else
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7923 test -n "$FLEX" && break
7924 done
7925 test -n "$FLEX" || FLEX="$MISSING flex"
7928 # Bison?
7929 for ac_prog in bison
7931 # Extract the first word of "$ac_prog", so it can be a program name with args.
7932 set dummy $ac_prog; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if test "${ac_cv_prog_BISON+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938 if test -n "$BISON"; then
7939 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948 ac_cv_prog_BISON="$ac_prog"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 break 2
7952 done
7953 done
7954 IFS=$as_save_IFS
7958 BISON=$ac_cv_prog_BISON
7959 if test -n "$BISON"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7961 $as_echo "$BISON" >&6; }
7962 else
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7968 test -n "$BISON" && break
7969 done
7970 test -n "$BISON" || BISON="$MISSING bison"
7973 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7974 # check for build == host before using them.
7976 # NM
7977 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7978 && test -d ../binutils ; then
7979 NM='${objdir}/../binutils/nm-new'
7980 else
7981 # Extract the first word of "nm", so it can be a program name with args.
7982 set dummy nm; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if test "${ac_cv_prog_NM+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 if test -n "$NM"; then
7989 ac_cv_prog_NM="$NM" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7998 ac_cv_prog_NM="nm"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8002 done
8003 done
8004 IFS=$as_save_IFS
8006 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8009 NM=$ac_cv_prog_NM
8010 if test -n "$NM"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8012 $as_echo "$NM" >&6; }
8013 else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8021 # AR
8022 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8023 && test -d ../binutils ; then
8024 AR='${objdir}/../binutils/ar'
8025 else
8026 # Extract the first word of "ar", so it can be a program name with args.
8027 set dummy ar; ac_word=$2
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 $as_echo_n "checking for $ac_word... " >&6; }
8030 if test "${ac_cv_prog_AR+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 if test -n "$AR"; then
8034 ac_cv_prog_AR="$AR" # Let the user override the test.
8035 else
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 for as_dir in $PATH
8039 IFS=$as_save_IFS
8040 test -z "$as_dir" && as_dir=.
8041 for ac_exec_ext in '' $ac_executable_extensions; do
8042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8043 ac_cv_prog_AR="ar"
8044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 break 2
8047 done
8048 done
8049 IFS=$as_save_IFS
8051 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8054 AR=$ac_cv_prog_AR
8055 if test -n "$AR"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8057 $as_echo "$AR" >&6; }
8058 else
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8067 # --------------------
8068 # Checks for C headers
8069 # --------------------
8071 # Need to reject headers which give warnings, so that the -Werror bootstrap
8072 # works later. *sigh* This needs to come before all header checks.
8074 ac_c_preproc_warn_flag=yes
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8077 $as_echo_n "checking for ANSI C header files... " >&6; }
8078 if test "${ac_cv_header_stdc+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 #include <stdlib.h>
8084 #include <stdarg.h>
8085 #include <string.h>
8086 #include <float.h>
8089 main ()
8093 return 0;
8095 _ACEOF
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097 ac_cv_header_stdc=yes
8098 else
8099 ac_cv_header_stdc=no
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 if test $ac_cv_header_stdc = yes; then
8104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 #include <string.h>
8109 _ACEOF
8110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8111 $EGREP "memchr" >/dev/null 2>&1; then :
8113 else
8114 ac_cv_header_stdc=no
8116 rm -f conftest*
8120 if test $ac_cv_header_stdc = yes; then
8121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8124 #include <stdlib.h>
8126 _ACEOF
8127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8128 $EGREP "free" >/dev/null 2>&1; then :
8130 else
8131 ac_cv_header_stdc=no
8133 rm -f conftest*
8137 if test $ac_cv_header_stdc = yes; then
8138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8139 if test "$cross_compiling" = yes; then :
8141 else
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8144 #include <ctype.h>
8145 #include <stdlib.h>
8146 #if ((' ' & 0x0FF) == 0x020)
8147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8149 #else
8150 # define ISLOWER(c) \
8151 (('a' <= (c) && (c) <= 'i') \
8152 || ('j' <= (c) && (c) <= 'r') \
8153 || ('s' <= (c) && (c) <= 'z'))
8154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8155 #endif
8157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8159 main ()
8161 int i;
8162 for (i = 0; i < 256; i++)
8163 if (XOR (islower (i), ISLOWER (i))
8164 || toupper (i) != TOUPPER (i))
8165 return 2;
8166 return 0;
8168 _ACEOF
8169 if ac_fn_c_try_run "$LINENO"; then :
8171 else
8172 ac_cv_header_stdc=no
8174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8175 conftest.$ac_objext conftest.beam conftest.$ac_ext
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8181 $as_echo "$ac_cv_header_stdc" >&6; }
8182 if test $ac_cv_header_stdc = yes; then
8184 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8189 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8190 if test "${ac_cv_header_time+set}" = set; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 #include <sys/types.h>
8196 #include <sys/time.h>
8197 #include <time.h>
8200 main ()
8202 if ((struct tm *) 0)
8203 return 0;
8205 return 0;
8207 _ACEOF
8208 if ac_fn_c_try_compile "$LINENO"; then :
8209 ac_cv_header_time=yes
8210 else
8211 ac_cv_header_time=no
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8216 $as_echo "$ac_cv_header_time" >&6; }
8217 if test $ac_cv_header_time = yes; then
8219 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8224 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8225 if test "${gcc_cv_header_string+set}" = set; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8230 #include <string.h>
8231 #include <strings.h>
8233 main ()
8237 return 0;
8239 _ACEOF
8240 if ac_fn_c_try_compile "$LINENO"; then :
8241 gcc_cv_header_string=yes
8242 else
8243 gcc_cv_header_string=no
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8248 $as_echo "$gcc_cv_header_string" >&6; }
8249 if test $gcc_cv_header_string = yes; then
8251 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8256 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8257 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8262 #include <sys/types.h>
8263 #include <sys/wait.h>
8264 #ifndef WEXITSTATUS
8265 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8266 #endif
8267 #ifndef WIFEXITED
8268 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8269 #endif
8272 main ()
8274 int s;
8275 wait (&s);
8276 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8278 return 0;
8280 _ACEOF
8281 if ac_fn_c_try_compile "$LINENO"; then :
8282 ac_cv_header_sys_wait_h=yes
8283 else
8284 ac_cv_header_sys_wait_h=no
8286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8289 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8290 if test $ac_cv_header_sys_wait_h = yes; then
8292 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8297 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8298 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 #include <sys/types.h>
8304 #include <termios.h>
8305 #ifdef TIOCGWINSZ
8307 #endif
8309 _ACEOF
8310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8311 $EGREP "yes" >/dev/null 2>&1; then :
8312 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8313 else
8314 ac_cv_sys_tiocgwinsz_in_termios_h=no
8316 rm -f conftest*
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8320 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8322 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8324 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8325 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 #include <sys/types.h>
8331 #include <sys/ioctl.h>
8332 #ifdef TIOCGWINSZ
8334 #endif
8336 _ACEOF
8337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8338 $EGREP "yes" >/dev/null 2>&1; then :
8339 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8340 else
8341 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8343 rm -f conftest*
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8347 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8349 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8351 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8356 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8357 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8358 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8359 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8360 do :
8361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8362 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8363 eval as_val=\$$as_ac_Header
8364 if test "x$as_val" = x""yes; then :
8365 cat >>confdefs.h <<_ACEOF
8366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8367 _ACEOF
8370 done
8373 # Check for thread headers.
8374 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8375 if test "x$ac_cv_header_thread_h" = x""yes; then :
8376 have_thread_h=yes
8377 else
8378 have_thread_h=
8381 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8382 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8383 have_pthread_h=yes
8384 else
8385 have_pthread_h=
8389 # These tests can't be done till we know if we have limits.h.
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8391 $as_echo_n "checking for CHAR_BIT... " >&6; }
8392 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #ifdef HAVE_LIMITS_H
8398 #include <limits.h>
8399 #endif
8400 #ifdef CHAR_BIT
8401 found
8402 #endif
8403 _ACEOF
8404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8405 $EGREP "found" >/dev/null 2>&1; then :
8406 gcc_cv_decl_char_bit=yes
8407 else
8408 gcc_cv_decl_char_bit=no
8410 rm -f conftest*
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8415 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8416 if test $gcc_cv_decl_char_bit = no; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8418 $as_echo_n "checking number of bits in a byte... " >&6; }
8419 if test "${gcc_cv_c_nbby+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
8421 else
8423 gcc_cv_c_nbby=
8424 while test $i -lt 65; do
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8429 main ()
8431 switch(0) {
8432 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8433 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8436 return 0;
8438 _ACEOF
8439 if ac_fn_c_try_compile "$LINENO"; then :
8440 gcc_cv_c_nbby=$i; break
8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 i=`expr $i + 1`
8444 done
8445 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8449 $as_echo "$gcc_cv_c_nbby" >&6; }
8450 if test $gcc_cv_c_nbby = failed; then
8451 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8452 else
8454 cat >>confdefs.h <<_ACEOF
8455 #define CHAR_BIT $gcc_cv_c_nbby
8456 _ACEOF
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8461 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8462 if test "${ac_cv_c_bigendian+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 ac_cv_c_bigendian=unknown
8466 # See if we're dealing with a universal compiler.
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469 #ifndef __APPLE_CC__
8470 not a universal capable compiler
8471 #endif
8472 typedef int dummy;
8474 _ACEOF
8475 if ac_fn_c_try_compile "$LINENO"; then :
8477 # Check for potential -arch flags. It is not universal unless
8478 # there are at least two -arch flags with different values.
8479 ac_arch=
8480 ac_prev=
8481 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8482 if test -n "$ac_prev"; then
8483 case $ac_word in
8484 i?86 | x86_64 | ppc | ppc64)
8485 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8486 ac_arch=$ac_word
8487 else
8488 ac_cv_c_bigendian=universal
8489 break
8492 esac
8493 ac_prev=
8494 elif test "x$ac_word" = "x-arch"; then
8495 ac_prev=arch
8497 done
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 if test $ac_cv_c_bigendian = unknown; then
8501 # See if sys/param.h defines the BYTE_ORDER macro.
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 #include <sys/types.h>
8505 #include <sys/param.h>
8508 main ()
8510 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8511 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8512 && LITTLE_ENDIAN)
8513 bogus endian macros
8514 #endif
8517 return 0;
8519 _ACEOF
8520 if ac_fn_c_try_compile "$LINENO"; then :
8521 # It does; now see whether it defined to BIG_ENDIAN or not.
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 #include <sys/types.h>
8525 #include <sys/param.h>
8528 main ()
8530 #if BYTE_ORDER != BIG_ENDIAN
8531 not big endian
8532 #endif
8535 return 0;
8537 _ACEOF
8538 if ac_fn_c_try_compile "$LINENO"; then :
8539 ac_cv_c_bigendian=yes
8540 else
8541 ac_cv_c_bigendian=no
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 if test $ac_cv_c_bigendian = unknown; then
8548 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 #include <limits.h>
8554 main ()
8556 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8557 bogus endian macros
8558 #endif
8561 return 0;
8563 _ACEOF
8564 if ac_fn_c_try_compile "$LINENO"; then :
8565 # It does; now see whether it defined to _BIG_ENDIAN or not.
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 #include <limits.h>
8571 main ()
8573 #ifndef _BIG_ENDIAN
8574 not big endian
8575 #endif
8578 return 0;
8580 _ACEOF
8581 if ac_fn_c_try_compile "$LINENO"; then :
8582 ac_cv_c_bigendian=yes
8583 else
8584 ac_cv_c_bigendian=no
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590 if test $ac_cv_c_bigendian = unknown; then
8591 # Compile a test program.
8592 if test "$cross_compiling" = yes; then :
8593 # Try to guess by grepping values from an object file.
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 short int ascii_mm[] =
8597 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8598 short int ascii_ii[] =
8599 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8600 int use_ascii (int i) {
8601 return ascii_mm[i] + ascii_ii[i];
8603 short int ebcdic_ii[] =
8604 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8605 short int ebcdic_mm[] =
8606 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8607 int use_ebcdic (int i) {
8608 return ebcdic_mm[i] + ebcdic_ii[i];
8610 extern int foo;
8613 main ()
8615 return use_ascii (foo) == use_ebcdic (foo);
8617 return 0;
8619 _ACEOF
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8622 ac_cv_c_bigendian=yes
8624 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8625 if test "$ac_cv_c_bigendian" = unknown; then
8626 ac_cv_c_bigendian=no
8627 else
8628 # finding both strings is unlikely to happen, but who knows?
8629 ac_cv_c_bigendian=unknown
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634 else
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 $ac_includes_default
8639 main ()
8642 /* Are we little or big endian? From Harbison&Steele. */
8643 union
8645 long int l;
8646 char c[sizeof (long int)];
8647 } u;
8648 u.l = 1;
8649 return u.c[sizeof (long int) - 1] == 1;
8652 return 0;
8654 _ACEOF
8655 if ac_fn_c_try_run "$LINENO"; then :
8656 ac_cv_c_bigendian=no
8657 else
8658 ac_cv_c_bigendian=yes
8660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8661 conftest.$ac_objext conftest.beam conftest.$ac_ext
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8667 $as_echo "$ac_cv_c_bigendian" >&6; }
8668 case $ac_cv_c_bigendian in #(
8669 yes)
8670 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8671 ;; #(
8673 ;; #(
8674 universal)
8676 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8678 ;; #(
8680 as_fn_error "unknown endianness
8681 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8682 esac
8685 # ----------------------
8686 # Checks for C++ headers
8687 # ----------------------
8689 ac_ext=cpp
8690 ac_cpp='$CXXCPP $CPPFLAGS'
8691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8695 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8696 if test -z "$CXXCPP"; then
8697 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 # Double quotes because CXXCPP needs to be expanded
8701 for CXXCPP in "$CXX -E" "/lib/cpp"
8703 ac_preproc_ok=false
8704 for ac_cxx_preproc_warn_flag in '' yes
8706 # Use a header file that comes with gcc, so configuring glibc
8707 # with a fresh cross-compiler works.
8708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8709 # <limits.h> exists even on freestanding compilers.
8710 # On the NeXT, cc -E runs the code through the compiler's parser,
8711 # not just through cpp. "Syntax error" is here to catch this case.
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #ifdef __STDC__
8715 # include <limits.h>
8716 #else
8717 # include <assert.h>
8718 #endif
8719 Syntax error
8720 _ACEOF
8721 if ac_fn_cxx_try_cpp "$LINENO"; then :
8723 else
8724 # Broken: fails on valid input.
8725 continue
8727 rm -f conftest.err conftest.$ac_ext
8729 # OK, works on sane cases. Now check whether nonexistent headers
8730 # can be detected and how.
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 #include <ac_nonexistent.h>
8734 _ACEOF
8735 if ac_fn_cxx_try_cpp "$LINENO"; then :
8736 # Broken: success on invalid input.
8737 continue
8738 else
8739 # Passes both tests.
8740 ac_preproc_ok=:
8741 break
8743 rm -f conftest.err conftest.$ac_ext
8745 done
8746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8747 rm -f conftest.err conftest.$ac_ext
8748 if $ac_preproc_ok; then :
8749 break
8752 done
8753 ac_cv_prog_CXXCPP=$CXXCPP
8756 CXXCPP=$ac_cv_prog_CXXCPP
8757 else
8758 ac_cv_prog_CXXCPP=$CXXCPP
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8761 $as_echo "$CXXCPP" >&6; }
8762 ac_preproc_ok=false
8763 for ac_cxx_preproc_warn_flag in '' yes
8765 # Use a header file that comes with gcc, so configuring glibc
8766 # with a fresh cross-compiler works.
8767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8768 # <limits.h> exists even on freestanding compilers.
8769 # On the NeXT, cc -E runs the code through the compiler's parser,
8770 # not just through cpp. "Syntax error" is here to catch this case.
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8773 #ifdef __STDC__
8774 # include <limits.h>
8775 #else
8776 # include <assert.h>
8777 #endif
8778 Syntax error
8779 _ACEOF
8780 if ac_fn_cxx_try_cpp "$LINENO"; then :
8782 else
8783 # Broken: fails on valid input.
8784 continue
8786 rm -f conftest.err conftest.$ac_ext
8788 # OK, works on sane cases. Now check whether nonexistent headers
8789 # can be detected and how.
8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8792 #include <ac_nonexistent.h>
8793 _ACEOF
8794 if ac_fn_cxx_try_cpp "$LINENO"; then :
8795 # Broken: success on invalid input.
8796 continue
8797 else
8798 # Passes both tests.
8799 ac_preproc_ok=:
8800 break
8802 rm -f conftest.err conftest.$ac_ext
8804 done
8805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8806 rm -f conftest.err conftest.$ac_ext
8807 if $ac_preproc_ok; then :
8809 else
8810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8813 See \`config.log' for more details." >&5
8814 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8815 See \`config.log' for more details." >&2;}; }
8818 ac_ext=c
8819 ac_cpp='$CPP $CPPFLAGS'
8820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8825 ac_ext=cpp
8826 ac_cpp='$CXXCPP $CPPFLAGS'
8827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8834 for ac_header in unordered_map
8835 do :
8836 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8837 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8838 cat >>confdefs.h <<_ACEOF
8839 #define HAVE_UNORDERED_MAP 1
8840 _ACEOF
8843 done
8845 for ac_header in tr1/unordered_map
8846 do :
8847 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8848 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8849 cat >>confdefs.h <<_ACEOF
8850 #define HAVE_TR1_UNORDERED_MAP 1
8851 _ACEOF
8854 done
8856 for ac_header in ext/hash_map
8857 do :
8858 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8859 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8860 cat >>confdefs.h <<_ACEOF
8861 #define HAVE_EXT_HASH_MAP 1
8862 _ACEOF
8865 done
8868 ac_ext=c
8869 ac_cpp='$CPP $CPPFLAGS'
8870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8875 # --------
8876 # UNSORTED
8877 # --------
8880 # These libraries may be used by collect2.
8881 # We may need a special search path to get them linked.
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8883 $as_echo_n "checking for collect2 libraries... " >&6; }
8884 if test "${gcc_cv_collect2_libs+set}" = set; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 save_LIBS="$LIBS"
8888 for libs in '' -lld -lmld \
8889 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8890 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8892 LIBS="$libs"
8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8896 /* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
8899 #ifdef __cplusplus
8900 extern "C"
8901 #endif
8902 char ldopen ();
8904 main ()
8906 return ldopen ();
8908 return 0;
8910 _ACEOF
8911 if ac_fn_c_try_link "$LINENO"; then :
8912 gcc_cv_collect2_libs="$libs"; break
8914 rm -f core conftest.err conftest.$ac_objext \
8915 conftest$ac_exeext conftest.$ac_ext
8916 done
8917 LIBS="$save_LIBS"
8918 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8921 $as_echo "$gcc_cv_collect2_libs" >&6; }
8922 case $gcc_cv_collect2_libs in
8923 "none required") ;;
8924 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8925 esac
8928 # When building Ada code on Alpha, we need exc_resume which is usually in
8929 # -lexc. So test for it.
8930 save_LIBS="$LIBS"
8931 LIBS=
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8933 $as_echo_n "checking for library containing exc_resume... " >&6; }
8934 if test "${ac_cv_search_exc_resume+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937 ac_func_search_save_LIBS=$LIBS
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8941 /* Override any GCC internal prototype to avoid an error.
8942 Use char because int might match the return type of a GCC
8943 builtin and then its argument prototype would still apply. */
8944 #ifdef __cplusplus
8945 extern "C"
8946 #endif
8947 char exc_resume ();
8949 main ()
8951 return exc_resume ();
8953 return 0;
8955 _ACEOF
8956 for ac_lib in '' exc; do
8957 if test -z "$ac_lib"; then
8958 ac_res="none required"
8959 else
8960 ac_res=-l$ac_lib
8961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8963 if ac_fn_c_try_link "$LINENO"; then :
8964 ac_cv_search_exc_resume=$ac_res
8966 rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext
8968 if test "${ac_cv_search_exc_resume+set}" = set; then :
8969 break
8971 done
8972 if test "${ac_cv_search_exc_resume+set}" = set; then :
8974 else
8975 ac_cv_search_exc_resume=no
8977 rm conftest.$ac_ext
8978 LIBS=$ac_func_search_save_LIBS
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8981 $as_echo "$ac_cv_search_exc_resume" >&6; }
8982 ac_res=$ac_cv_search_exc_resume
8983 if test "$ac_res" != no; then :
8984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8988 GNAT_LIBEXC="$LIBS"
8989 LIBS="$save_LIBS"
8992 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8993 save_LIBS="$LIBS"
8994 LIBS=
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8996 $as_echo_n "checking for library containing kstat_open... " >&6; }
8997 if test "${ac_cv_search_kstat_open+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 ac_func_search_save_LIBS=$LIBS
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9004 /* Override any GCC internal prototype to avoid an error.
9005 Use char because int might match the return type of a GCC
9006 builtin and then its argument prototype would still apply. */
9007 #ifdef __cplusplus
9008 extern "C"
9009 #endif
9010 char kstat_open ();
9012 main ()
9014 return kstat_open ();
9016 return 0;
9018 _ACEOF
9019 for ac_lib in '' kstat; do
9020 if test -z "$ac_lib"; then
9021 ac_res="none required"
9022 else
9023 ac_res=-l$ac_lib
9024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9026 if ac_fn_c_try_link "$LINENO"; then :
9027 ac_cv_search_kstat_open=$ac_res
9029 rm -f core conftest.err conftest.$ac_objext \
9030 conftest$ac_exeext
9031 if test "${ac_cv_search_kstat_open+set}" = set; then :
9032 break
9034 done
9035 if test "${ac_cv_search_kstat_open+set}" = set; then :
9037 else
9038 ac_cv_search_kstat_open=no
9040 rm conftest.$ac_ext
9041 LIBS=$ac_func_search_save_LIBS
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9044 $as_echo "$ac_cv_search_kstat_open" >&6; }
9045 ac_res=$ac_cv_search_kstat_open
9046 if test "$ac_res" != no; then :
9047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9051 EXTRA_GCC_LIBS="$LIBS"
9052 LIBS="$save_LIBS"
9055 # Some systems put ldexp and frexp in libm instead of libc; assume
9056 # they're both in the same place. jcf-dump needs them.
9057 save_LIBS="$LIBS"
9058 LIBS=
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9060 $as_echo_n "checking for library containing ldexp... " >&6; }
9061 if test "${ac_cv_search_ldexp+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
9063 else
9064 ac_func_search_save_LIBS=$LIBS
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9068 /* Override any GCC internal prototype to avoid an error.
9069 Use char because int might match the return type of a GCC
9070 builtin and then its argument prototype would still apply. */
9071 #ifdef __cplusplus
9072 extern "C"
9073 #endif
9074 char ldexp ();
9076 main ()
9078 return ldexp ();
9080 return 0;
9082 _ACEOF
9083 for ac_lib in '' m; do
9084 if test -z "$ac_lib"; then
9085 ac_res="none required"
9086 else
9087 ac_res=-l$ac_lib
9088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9090 if ac_fn_c_try_link "$LINENO"; then :
9091 ac_cv_search_ldexp=$ac_res
9093 rm -f core conftest.err conftest.$ac_objext \
9094 conftest$ac_exeext
9095 if test "${ac_cv_search_ldexp+set}" = set; then :
9096 break
9098 done
9099 if test "${ac_cv_search_ldexp+set}" = set; then :
9101 else
9102 ac_cv_search_ldexp=no
9104 rm conftest.$ac_ext
9105 LIBS=$ac_func_search_save_LIBS
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9108 $as_echo "$ac_cv_search_ldexp" >&6; }
9109 ac_res=$ac_cv_search_ldexp
9110 if test "$ac_res" != no; then :
9111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9115 LDEXP_LIB="$LIBS"
9116 LIBS="$save_LIBS"
9119 # Use <inttypes.h> only if it exists,
9120 # doesn't clash with <sys/types.h>, and declares intmax_t.
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9122 $as_echo_n "checking for inttypes.h... " >&6; }
9123 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9128 #include <sys/types.h>
9129 #include <inttypes.h>
9131 main ()
9133 intmax_t i = -1;
9135 return 0;
9137 _ACEOF
9138 if ac_fn_c_try_compile "$LINENO"; then :
9139 gcc_cv_header_inttypes_h=yes
9140 else
9141 gcc_cv_header_inttypes_h=no
9143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9147 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9148 if test $gcc_cv_header_inttypes_h = yes; then
9150 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9156 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9157 sysconf strsignal getrusage nl_langinfo \
9158 gettimeofday mbstowcs wcswidth mmap setlocale \
9159 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 madvise
9160 do :
9161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9162 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9163 eval as_val=\$$as_ac_var
9164 if test "x$as_val" = x""yes; then :
9165 cat >>confdefs.h <<_ACEOF
9166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9167 _ACEOF
9170 done
9173 if test x$ac_cv_func_mbstowcs = xyes; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9175 $as_echo_n "checking whether mbstowcs works... " >&6; }
9176 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 if test "$cross_compiling" = yes; then :
9180 gcc_cv_func_mbstowcs_works=yes
9181 else
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 #include <stdlib.h>
9185 int main()
9187 mbstowcs(0, "", 0);
9188 return 0;
9190 _ACEOF
9191 if ac_fn_c_try_run "$LINENO"; then :
9192 gcc_cv_func_mbstowcs_works=yes
9193 else
9194 gcc_cv_func_mbstowcs_works=no
9196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9197 conftest.$ac_objext conftest.beam conftest.$ac_ext
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9202 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9203 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9205 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9210 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9211 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9213 else
9215 cat >>confdefs.h <<_ACEOF
9216 #define ssize_t int
9217 _ACEOF
9221 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9222 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9224 else
9226 cat >>confdefs.h <<_ACEOF
9227 #define caddr_t char *
9228 _ACEOF
9234 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9235 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9236 gcc_header_sys_mman_h=yes
9237 else
9238 gcc_header_sys_mman_h=no
9241 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9242 if test "x$ac_cv_func_mmap" = x""yes; then :
9243 gcc_func_mmap=yes
9244 else
9245 gcc_func_mmap=no
9248 if test "$gcc_header_sys_mman_h" != yes \
9249 || test "$gcc_func_mmap" != yes; then
9250 gcc_cv_func_mmap_file=no
9251 gcc_cv_func_mmap_dev_zero=no
9252 gcc_cv_func_mmap_anon=no
9253 else
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9255 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9256 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9257 $as_echo_n "(cached) " >&6
9258 else
9259 # Add a system to this blacklist if
9260 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9261 # memory area containing the same data that you'd get if you applied
9262 # read() to the same fd. The only system known to have a problem here
9263 # is VMS, where text files have record structure.
9264 case "$host_os" in
9265 *vms* | ultrix*)
9266 gcc_cv_func_mmap_file=no ;;
9268 gcc_cv_func_mmap_file=yes;;
9269 esac
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9272 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9274 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9275 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 # Add a system to this blacklist if it has mmap() but /dev/zero
9279 # does not exist, or if mmapping /dev/zero does not give anonymous
9280 # zeroed pages with both the following properties:
9281 # 1. If you map N consecutive pages in with one call, and then
9282 # unmap any subset of those pages, the pages that were not
9283 # explicitly unmapped remain accessible.
9284 # 2. If you map two adjacent blocks of memory and then unmap them
9285 # both at once, they must both go away.
9286 # Systems known to be in this category are Windows (all variants),
9287 # VMS, and Darwin.
9288 case "$host_os" in
9289 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9290 gcc_cv_func_mmap_dev_zero=no ;;
9292 gcc_cv_func_mmap_dev_zero=yes;;
9293 esac
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9296 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9298 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9300 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9301 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9302 $as_echo_n "(cached) " >&6
9303 else
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9306 #include <sys/types.h>
9307 #include <sys/mman.h>
9308 #include <unistd.h>
9310 #ifndef MAP_ANONYMOUS
9311 #define MAP_ANONYMOUS MAP_ANON
9312 #endif
9315 main ()
9317 int n = MAP_ANONYMOUS;
9319 return 0;
9321 _ACEOF
9322 if ac_fn_c_try_compile "$LINENO"; then :
9323 gcc_cv_decl_map_anon=yes
9324 else
9325 gcc_cv_decl_map_anon=no
9327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9330 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9332 if test $gcc_cv_decl_map_anon = no; then
9333 gcc_cv_func_mmap_anon=no
9334 else
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9336 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9337 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9341 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9342 # doesn't give anonymous zeroed pages with the same properties listed
9343 # above for use of /dev/zero.
9344 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9345 case "$host_os" in
9346 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9347 gcc_cv_func_mmap_anon=no ;;
9349 gcc_cv_func_mmap_anon=yes;;
9350 esac
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9353 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9357 if test $gcc_cv_func_mmap_file = yes; then
9359 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9362 if test $gcc_cv_func_mmap_dev_zero = yes; then
9364 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9367 if test $gcc_cv_func_mmap_anon = yes; then
9369 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9374 case "${host}" in
9375 *-*-*vms*)
9376 # Under VMS, vfork works very differently than on Unix. The standard test
9377 # won't work, and it isn't easily adaptable. It makes more sense to
9378 # just force it.
9379 ac_cv_func_vfork_works=yes
9381 esac
9382 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9383 if test "x$ac_cv_type_pid_t" = x""yes; then :
9385 else
9387 cat >>confdefs.h <<_ACEOF
9388 #define pid_t int
9389 _ACEOF
9393 for ac_header in vfork.h
9394 do :
9395 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9396 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9397 cat >>confdefs.h <<_ACEOF
9398 #define HAVE_VFORK_H 1
9399 _ACEOF
9402 done
9404 for ac_func in fork vfork
9405 do :
9406 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9407 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9408 eval as_val=\$$as_ac_var
9409 if test "x$as_val" = x""yes; then :
9410 cat >>confdefs.h <<_ACEOF
9411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9412 _ACEOF
9415 done
9417 if test "x$ac_cv_func_fork" = xyes; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9419 $as_echo_n "checking for working fork... " >&6; }
9420 if test "${ac_cv_func_fork_works+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 if test "$cross_compiling" = yes; then :
9424 ac_cv_func_fork_works=cross
9425 else
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9428 $ac_includes_default
9430 main ()
9433 /* By Ruediger Kuhlmann. */
9434 return fork () < 0;
9437 return 0;
9439 _ACEOF
9440 if ac_fn_c_try_run "$LINENO"; then :
9441 ac_cv_func_fork_works=yes
9442 else
9443 ac_cv_func_fork_works=no
9445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9446 conftest.$ac_objext conftest.beam conftest.$ac_ext
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9451 $as_echo "$ac_cv_func_fork_works" >&6; }
9453 else
9454 ac_cv_func_fork_works=$ac_cv_func_fork
9456 if test "x$ac_cv_func_fork_works" = xcross; then
9457 case $host in
9458 *-*-amigaos* | *-*-msdosdjgpp*)
9459 # Override, as these systems have only a dummy fork() stub
9460 ac_cv_func_fork_works=no
9463 ac_cv_func_fork_works=yes
9465 esac
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9467 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9469 ac_cv_func_vfork_works=$ac_cv_func_vfork
9470 if test "x$ac_cv_func_vfork" = xyes; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9472 $as_echo_n "checking for working vfork... " >&6; }
9473 if test "${ac_cv_func_vfork_works+set}" = set; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 if test "$cross_compiling" = yes; then :
9477 ac_cv_func_vfork_works=cross
9478 else
9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9481 /* Thanks to Paul Eggert for this test. */
9482 $ac_includes_default
9483 #include <sys/wait.h>
9484 #ifdef HAVE_VFORK_H
9485 # include <vfork.h>
9486 #endif
9487 /* On some sparc systems, changes by the child to local and incoming
9488 argument registers are propagated back to the parent. The compiler
9489 is told about this with #include <vfork.h>, but some compilers
9490 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9491 static variable whose address is put into a register that is
9492 clobbered by the vfork. */
9493 static void
9494 #ifdef __cplusplus
9495 sparc_address_test (int arg)
9496 # else
9497 sparc_address_test (arg) int arg;
9498 #endif
9500 static pid_t child;
9501 if (!child) {
9502 child = vfork ();
9503 if (child < 0) {
9504 perror ("vfork");
9505 _exit(2);
9507 if (!child) {
9508 arg = getpid();
9509 write(-1, "", 0);
9510 _exit (arg);
9516 main ()
9518 pid_t parent = getpid ();
9519 pid_t child;
9521 sparc_address_test (0);
9523 child = vfork ();
9525 if (child == 0) {
9526 /* Here is another test for sparc vfork register problems. This
9527 test uses lots of local variables, at least as many local
9528 variables as main has allocated so far including compiler
9529 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9530 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9531 reuse the register of parent for one of the local variables,
9532 since it will think that parent can't possibly be used any more
9533 in this routine. Assigning to the local variable will thus
9534 munge parent in the parent process. */
9535 pid_t
9536 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9537 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9538 /* Convince the compiler that p..p7 are live; otherwise, it might
9539 use the same hardware register for all 8 local variables. */
9540 if (p != p1 || p != p2 || p != p3 || p != p4
9541 || p != p5 || p != p6 || p != p7)
9542 _exit(1);
9544 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9545 from child file descriptors. If the child closes a descriptor
9546 before it execs or exits, this munges the parent's descriptor
9547 as well. Test for this by closing stdout in the child. */
9548 _exit(close(fileno(stdout)) != 0);
9549 } else {
9550 int status;
9551 struct stat st;
9553 while (wait(&status) != child)
9555 return (
9556 /* Was there some problem with vforking? */
9557 child < 0
9559 /* Did the child fail? (This shouldn't happen.) */
9560 || status
9562 /* Did the vfork/compiler bug occur? */
9563 || parent != getpid()
9565 /* Did the file descriptor bug occur? */
9566 || fstat(fileno(stdout), &st) != 0
9570 _ACEOF
9571 if ac_fn_c_try_run "$LINENO"; then :
9572 ac_cv_func_vfork_works=yes
9573 else
9574 ac_cv_func_vfork_works=no
9576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9577 conftest.$ac_objext conftest.beam conftest.$ac_ext
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9582 $as_echo "$ac_cv_func_vfork_works" >&6; }
9585 if test "x$ac_cv_func_fork_works" = xcross; then
9586 ac_cv_func_vfork_works=$ac_cv_func_vfork
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9588 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9591 if test "x$ac_cv_func_vfork_works" = xyes; then
9593 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9595 else
9597 $as_echo "#define vfork fork" >>confdefs.h
9600 if test "x$ac_cv_func_fork_works" = xyes; then
9602 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9607 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9608 # iconv() prototype.
9609 ac_ext=cpp
9610 ac_cpp='$CXXCPP $CPPFLAGS'
9611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9616 if test "X$prefix" = "XNONE"; then
9617 acl_final_prefix="$ac_default_prefix"
9618 else
9619 acl_final_prefix="$prefix"
9621 if test "X$exec_prefix" = "XNONE"; then
9622 acl_final_exec_prefix='${prefix}'
9623 else
9624 acl_final_exec_prefix="$exec_prefix"
9626 acl_save_prefix="$prefix"
9627 prefix="$acl_final_prefix"
9628 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9629 prefix="$acl_save_prefix"
9632 # Check whether --with-gnu-ld was given.
9633 if test "${with_gnu_ld+set}" = set; then :
9634 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9635 else
9636 with_gnu_ld=no
9639 # Prepare PATH_SEPARATOR.
9640 # The user is always right.
9641 if test "${PATH_SEPARATOR+set}" != set; then
9642 echo "#! /bin/sh" >conf$$.sh
9643 echo "exit 0" >>conf$$.sh
9644 chmod +x conf$$.sh
9645 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9646 PATH_SEPARATOR=';'
9647 else
9648 PATH_SEPARATOR=:
9650 rm -f conf$$.sh
9652 ac_prog=ld
9653 if test "$GCC" = yes; then
9654 # Check if gcc -print-prog-name=ld gives a path.
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9656 $as_echo_n "checking for ld used by GCC... " >&6; }
9657 case $host in
9658 *-*-mingw*)
9659 # gcc leaves a trailing carriage return which upsets mingw
9660 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9662 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9663 esac
9664 case $ac_prog in
9665 # Accept absolute paths.
9666 [\\/]* | [A-Za-z]:[\\/]*)
9667 re_direlt='/[^/][^/]*/\.\./'
9668 # Canonicalize the path of ld
9669 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9670 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9671 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9672 done
9673 test -z "$LD" && LD="$ac_prog"
9676 # If it fails, then pretend we aren't using GCC.
9677 ac_prog=ld
9680 # If it is relative, then search for the first ld in PATH.
9681 with_gnu_ld=unknown
9683 esac
9684 elif test "$with_gnu_ld" = yes; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9686 $as_echo_n "checking for GNU ld... " >&6; }
9687 else
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9689 $as_echo_n "checking for non-GNU ld... " >&6; }
9691 if test "${acl_cv_path_LD+set}" = set; then :
9692 $as_echo_n "(cached) " >&6
9693 else
9694 if test -z "$LD"; then
9695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9696 for ac_dir in $PATH; do
9697 test -z "$ac_dir" && ac_dir=.
9698 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9699 acl_cv_path_LD="$ac_dir/$ac_prog"
9700 # Check to see if the program is GNU ld. I'd rather use --version,
9701 # but apparently some GNU ld's only accept -v.
9702 # Break only if it was the GNU/non-GNU ld that we prefer.
9703 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9704 test "$with_gnu_ld" != no && break
9705 else
9706 test "$with_gnu_ld" != yes && break
9709 done
9710 IFS="$ac_save_ifs"
9711 else
9712 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9716 LD="$acl_cv_path_LD"
9717 if test -n "$LD"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9719 $as_echo "$LD" >&6; }
9720 else
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9724 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9726 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9727 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9728 $as_echo_n "(cached) " >&6
9729 else
9730 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9731 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9732 acl_cv_prog_gnu_ld=yes
9733 else
9734 acl_cv_prog_gnu_ld=no
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9738 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9739 with_gnu_ld=$acl_cv_prog_gnu_ld
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9744 $as_echo_n "checking for shared library run path origin... " >&6; }
9745 if test "${acl_cv_rpath+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9749 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9750 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9751 . ./conftest.sh
9752 rm -f ./conftest.sh
9753 acl_cv_rpath=done
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9757 $as_echo "$acl_cv_rpath" >&6; }
9758 wl="$acl_cv_wl"
9759 libext="$acl_cv_libext"
9760 shlibext="$acl_cv_shlibext"
9761 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9762 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9763 hardcode_direct="$acl_cv_hardcode_direct"
9764 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9765 # Check whether --enable-rpath was given.
9766 if test "${enable_rpath+set}" = set; then :
9767 enableval=$enable_rpath; :
9768 else
9769 enable_rpath=yes
9779 use_additional=yes
9781 acl_save_prefix="$prefix"
9782 prefix="$acl_final_prefix"
9783 acl_save_exec_prefix="$exec_prefix"
9784 exec_prefix="$acl_final_exec_prefix"
9786 eval additional_includedir=\"$includedir\"
9787 eval additional_libdir=\"$libdir\"
9789 exec_prefix="$acl_save_exec_prefix"
9790 prefix="$acl_save_prefix"
9793 # Check whether --with-libiconv-prefix was given.
9794 if test "${with_libiconv_prefix+set}" = set; then :
9795 withval=$with_libiconv_prefix;
9796 if test "X$withval" = "Xno"; then
9797 use_additional=no
9798 else
9799 if test "X$withval" = "X"; then
9801 acl_save_prefix="$prefix"
9802 prefix="$acl_final_prefix"
9803 acl_save_exec_prefix="$exec_prefix"
9804 exec_prefix="$acl_final_exec_prefix"
9806 eval additional_includedir=\"$includedir\"
9807 eval additional_libdir=\"$libdir\"
9809 exec_prefix="$acl_save_exec_prefix"
9810 prefix="$acl_save_prefix"
9812 else
9813 additional_includedir="$withval/include"
9814 additional_libdir="$withval/lib"
9820 LIBICONV=
9821 LTLIBICONV=
9822 INCICONV=
9823 rpathdirs=
9824 ltrpathdirs=
9825 names_already_handled=
9826 names_next_round='iconv '
9827 while test -n "$names_next_round"; do
9828 names_this_round="$names_next_round"
9829 names_next_round=
9830 for name in $names_this_round; do
9831 already_handled=
9832 for n in $names_already_handled; do
9833 if test "$n" = "$name"; then
9834 already_handled=yes
9835 break
9837 done
9838 if test -z "$already_handled"; then
9839 names_already_handled="$names_already_handled $name"
9840 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9841 eval value=\"\$HAVE_LIB$uppername\"
9842 if test -n "$value"; then
9843 if test "$value" = yes; then
9844 eval value=\"\$LIB$uppername\"
9845 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9846 eval value=\"\$LTLIB$uppername\"
9847 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9848 else
9851 else
9852 found_dir=
9853 found_la=
9854 found_so=
9855 found_a=
9856 if test $use_additional = yes; then
9857 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9858 found_dir="$additional_libdir"
9859 found_so="$additional_libdir/lib$name.$shlibext"
9860 if test -f "$additional_libdir/lib$name.la"; then
9861 found_la="$additional_libdir/lib$name.la"
9863 else
9864 if test -f "$additional_libdir/lib$name.$libext"; then
9865 found_dir="$additional_libdir"
9866 found_a="$additional_libdir/lib$name.$libext"
9867 if test -f "$additional_libdir/lib$name.la"; then
9868 found_la="$additional_libdir/lib$name.la"
9873 if test "X$found_dir" = "X"; then
9874 for x in $LDFLAGS $LTLIBICONV; do
9876 acl_save_prefix="$prefix"
9877 prefix="$acl_final_prefix"
9878 acl_save_exec_prefix="$exec_prefix"
9879 exec_prefix="$acl_final_exec_prefix"
9880 eval x=\"$x\"
9881 exec_prefix="$acl_save_exec_prefix"
9882 prefix="$acl_save_prefix"
9884 case "$x" in
9885 -L*)
9886 dir=`echo "X$x" | sed -e 's/^X-L//'`
9887 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9888 found_dir="$dir"
9889 found_so="$dir/lib$name.$shlibext"
9890 if test -f "$dir/lib$name.la"; then
9891 found_la="$dir/lib$name.la"
9893 else
9894 if test -f "$dir/lib$name.$libext"; then
9895 found_dir="$dir"
9896 found_a="$dir/lib$name.$libext"
9897 if test -f "$dir/lib$name.la"; then
9898 found_la="$dir/lib$name.la"
9903 esac
9904 if test "X$found_dir" != "X"; then
9905 break
9907 done
9909 if test "X$found_dir" != "X"; then
9910 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9911 if test "X$found_so" != "X"; then
9912 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9913 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9914 else
9915 haveit=
9916 for x in $ltrpathdirs; do
9917 if test "X$x" = "X$found_dir"; then
9918 haveit=yes
9919 break
9921 done
9922 if test -z "$haveit"; then
9923 ltrpathdirs="$ltrpathdirs $found_dir"
9925 if test "$hardcode_direct" = yes; then
9926 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9927 else
9928 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9929 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9930 haveit=
9931 for x in $rpathdirs; do
9932 if test "X$x" = "X$found_dir"; then
9933 haveit=yes
9934 break
9936 done
9937 if test -z "$haveit"; then
9938 rpathdirs="$rpathdirs $found_dir"
9940 else
9941 haveit=
9942 for x in $LDFLAGS $LIBICONV; do
9944 acl_save_prefix="$prefix"
9945 prefix="$acl_final_prefix"
9946 acl_save_exec_prefix="$exec_prefix"
9947 exec_prefix="$acl_final_exec_prefix"
9948 eval x=\"$x\"
9949 exec_prefix="$acl_save_exec_prefix"
9950 prefix="$acl_save_prefix"
9952 if test "X$x" = "X-L$found_dir"; then
9953 haveit=yes
9954 break
9956 done
9957 if test -z "$haveit"; then
9958 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9960 if test "$hardcode_minus_L" != no; then
9961 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9962 else
9963 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9968 else
9969 if test "X$found_a" != "X"; then
9970 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9971 else
9972 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9975 additional_includedir=
9976 case "$found_dir" in
9977 */lib | */lib/)
9978 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9979 additional_includedir="$basedir/include"
9981 esac
9982 if test "X$additional_includedir" != "X"; then
9983 if test "X$additional_includedir" != "X/usr/include"; then
9984 haveit=
9985 if test "X$additional_includedir" = "X/usr/local/include"; then
9986 if test -n "$GCC"; then
9987 case $host_os in
9988 linux*) haveit=yes;;
9989 esac
9992 if test -z "$haveit"; then
9993 for x in $CPPFLAGS $INCICONV; do
9995 acl_save_prefix="$prefix"
9996 prefix="$acl_final_prefix"
9997 acl_save_exec_prefix="$exec_prefix"
9998 exec_prefix="$acl_final_exec_prefix"
9999 eval x=\"$x\"
10000 exec_prefix="$acl_save_exec_prefix"
10001 prefix="$acl_save_prefix"
10003 if test "X$x" = "X-I$additional_includedir"; then
10004 haveit=yes
10005 break
10007 done
10008 if test -z "$haveit"; then
10009 if test -d "$additional_includedir"; then
10010 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10016 if test -n "$found_la"; then
10017 save_libdir="$libdir"
10018 case "$found_la" in
10019 */* | *\\*) . "$found_la" ;;
10020 *) . "./$found_la" ;;
10021 esac
10022 libdir="$save_libdir"
10023 for dep in $dependency_libs; do
10024 case "$dep" in
10025 -L*)
10026 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10027 if test "X$additional_libdir" != "X/usr/lib"; then
10028 haveit=
10029 if test "X$additional_libdir" = "X/usr/local/lib"; then
10030 if test -n "$GCC"; then
10031 case $host_os in
10032 linux*) haveit=yes;;
10033 esac
10036 if test -z "$haveit"; then
10037 haveit=
10038 for x in $LDFLAGS $LIBICONV; do
10040 acl_save_prefix="$prefix"
10041 prefix="$acl_final_prefix"
10042 acl_save_exec_prefix="$exec_prefix"
10043 exec_prefix="$acl_final_exec_prefix"
10044 eval x=\"$x\"
10045 exec_prefix="$acl_save_exec_prefix"
10046 prefix="$acl_save_prefix"
10048 if test "X$x" = "X-L$additional_libdir"; then
10049 haveit=yes
10050 break
10052 done
10053 if test -z "$haveit"; then
10054 if test -d "$additional_libdir"; then
10055 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10058 haveit=
10059 for x in $LDFLAGS $LTLIBICONV; do
10061 acl_save_prefix="$prefix"
10062 prefix="$acl_final_prefix"
10063 acl_save_exec_prefix="$exec_prefix"
10064 exec_prefix="$acl_final_exec_prefix"
10065 eval x=\"$x\"
10066 exec_prefix="$acl_save_exec_prefix"
10067 prefix="$acl_save_prefix"
10069 if test "X$x" = "X-L$additional_libdir"; then
10070 haveit=yes
10071 break
10073 done
10074 if test -z "$haveit"; then
10075 if test -d "$additional_libdir"; then
10076 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10082 -R*)
10083 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10084 if test "$enable_rpath" != no; then
10085 haveit=
10086 for x in $rpathdirs; do
10087 if test "X$x" = "X$dir"; then
10088 haveit=yes
10089 break
10091 done
10092 if test -z "$haveit"; then
10093 rpathdirs="$rpathdirs $dir"
10095 haveit=
10096 for x in $ltrpathdirs; do
10097 if test "X$x" = "X$dir"; then
10098 haveit=yes
10099 break
10101 done
10102 if test -z "$haveit"; then
10103 ltrpathdirs="$ltrpathdirs $dir"
10107 -l*)
10108 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10110 *.la)
10111 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10114 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10117 esac
10118 done
10120 else
10121 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10122 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10126 done
10127 done
10128 if test "X$rpathdirs" != "X"; then
10129 if test -n "$hardcode_libdir_separator"; then
10130 alldirs=
10131 for found_dir in $rpathdirs; do
10132 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10133 done
10134 acl_save_libdir="$libdir"
10135 libdir="$alldirs"
10136 eval flag=\"$hardcode_libdir_flag_spec\"
10137 libdir="$acl_save_libdir"
10138 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10139 else
10140 for found_dir in $rpathdirs; do
10141 acl_save_libdir="$libdir"
10142 libdir="$found_dir"
10143 eval flag=\"$hardcode_libdir_flag_spec\"
10144 libdir="$acl_save_libdir"
10145 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10146 done
10149 if test "X$ltrpathdirs" != "X"; then
10150 for found_dir in $ltrpathdirs; do
10151 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10152 done
10161 am_save_CPPFLAGS="$CPPFLAGS"
10163 for element in $INCICONV; do
10164 haveit=
10165 for x in $CPPFLAGS; do
10167 acl_save_prefix="$prefix"
10168 prefix="$acl_final_prefix"
10169 acl_save_exec_prefix="$exec_prefix"
10170 exec_prefix="$acl_final_exec_prefix"
10171 eval x=\"$x\"
10172 exec_prefix="$acl_save_exec_prefix"
10173 prefix="$acl_save_prefix"
10175 if test "X$x" = "X$element"; then
10176 haveit=yes
10177 break
10179 done
10180 if test -z "$haveit"; then
10181 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10183 done
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10187 $as_echo_n "checking for iconv... " >&6; }
10188 if test "${am_cv_func_iconv+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10192 am_cv_func_iconv="no, consider installing GNU libiconv"
10193 am_cv_lib_iconv=no
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10196 #include <stdlib.h>
10197 #include <iconv.h>
10199 main ()
10201 iconv_t cd = iconv_open("","");
10202 iconv(cd,NULL,NULL,NULL,NULL);
10203 iconv_close(cd);
10205 return 0;
10207 _ACEOF
10208 if ac_fn_cxx_try_link "$LINENO"; then :
10209 am_cv_func_iconv=yes
10211 rm -f core conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213 if test "$am_cv_func_iconv" != yes; then
10214 am_save_LIBS="$LIBS"
10215 LIBS="$LIBS $LIBICONV"
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 #include <stdlib.h>
10219 #include <iconv.h>
10221 main ()
10223 iconv_t cd = iconv_open("","");
10224 iconv(cd,NULL,NULL,NULL,NULL);
10225 iconv_close(cd);
10227 return 0;
10229 _ACEOF
10230 if ac_fn_cxx_try_link "$LINENO"; then :
10231 am_cv_lib_iconv=yes
10232 am_cv_func_iconv=yes
10234 rm -f core conftest.err conftest.$ac_objext \
10235 conftest$ac_exeext conftest.$ac_ext
10236 LIBS="$am_save_LIBS"
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10241 $as_echo "$am_cv_func_iconv" >&6; }
10242 if test "$am_cv_func_iconv" = yes; then
10244 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10247 if test "$am_cv_lib_iconv" = yes; then
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10249 $as_echo_n "checking how to link with libiconv... " >&6; }
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10251 $as_echo "$LIBICONV" >&6; }
10252 else
10253 CPPFLAGS="$am_save_CPPFLAGS"
10254 LIBICONV=
10255 LTLIBICONV=
10260 if test "$am_cv_func_iconv" = yes; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10262 $as_echo_n "checking for iconv declaration... " >&6; }
10263 if test "${am_cv_proto_iconv+set}" = set; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10270 #include <stdlib.h>
10271 #include <iconv.h>
10272 extern
10273 #ifdef __cplusplus
10275 #endif
10276 #if defined(__STDC__) || defined(__cplusplus)
10277 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10278 #else
10279 size_t iconv();
10280 #endif
10283 main ()
10287 return 0;
10289 _ACEOF
10290 if ac_fn_cxx_try_compile "$LINENO"; then :
10291 am_cv_proto_iconv_arg1=""
10292 else
10293 am_cv_proto_iconv_arg1="const"
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 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);"
10299 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10301 }$am_cv_proto_iconv" >&5
10302 $as_echo "${ac_t:-
10303 }$am_cv_proto_iconv" >&6; }
10305 cat >>confdefs.h <<_ACEOF
10306 #define ICONV_CONST $am_cv_proto_iconv_arg1
10307 _ACEOF
10311 ac_ext=c
10312 ac_cpp='$CPP $CPPFLAGS'
10313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10318 # Until we have in-tree GNU iconv:
10319 LIBICONV_DEP=
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10324 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10325 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330 #include <locale.h>
10332 main ()
10334 return LC_MESSAGES
10336 return 0;
10338 _ACEOF
10339 if ac_fn_c_try_link "$LINENO"; then :
10340 am_cv_val_LC_MESSAGES=yes
10341 else
10342 am_cv_val_LC_MESSAGES=no
10344 rm -f core conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10348 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10349 if test $am_cv_val_LC_MESSAGES = yes; then
10351 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10358 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10359 if test "${am_cv_langinfo_codeset+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10364 #include <langinfo.h>
10366 main ()
10368 char* cs = nl_langinfo(CODESET);
10370 return 0;
10372 _ACEOF
10373 if ac_fn_c_try_link "$LINENO"; then :
10374 am_cv_langinfo_codeset=yes
10375 else
10376 am_cv_langinfo_codeset=no
10378 rm -f core conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10383 $as_echo "$am_cv_langinfo_codeset" >&6; }
10384 if test $am_cv_langinfo_codeset = yes; then
10386 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10391 # We will need to find libiberty.h and ansidecl.h
10392 saved_CFLAGS="$CFLAGS"
10393 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10394 saved_CXXFLAGS="$CXXFLAGS"
10395 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10396 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10397 strsignal strstr stpcpy strverscmp \
10398 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10399 free basename getopt clock getpagesize ffs 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
10401 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10403 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10404 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10409 #undef $ac_tr_decl
10410 #define $ac_tr_decl 1
10412 #include "ansidecl.h"
10413 #include "system.h"
10416 main ()
10418 #ifndef $ac_func
10419 char *(*pfn) = (char *(*)) $ac_func ;
10420 #endif
10422 return 0;
10424 _ACEOF
10425 if ac_fn_c_try_compile "$LINENO"; then :
10426 eval "gcc_cv_have_decl_$ac_func=yes"
10427 else
10428 eval "gcc_cv_have_decl_$ac_func=no"
10430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10433 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10435 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10436 #define $ac_tr_decl 1
10437 _ACEOF
10439 else
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10442 #define $ac_tr_decl 0
10443 _ACEOF
10447 done
10450 for ac_func in getrlimit setrlimit getrusage
10452 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10454 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10455 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10456 $as_echo_n "(cached) " >&6
10457 else
10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10460 #undef $ac_tr_decl
10461 #define $ac_tr_decl 1
10463 #include "ansidecl.h"
10464 #include "system.h"
10465 #ifdef HAVE_SYS_RESOURCE_H
10466 #include <sys/resource.h>
10467 #endif
10471 main ()
10473 #ifndef $ac_func
10474 char *(*pfn) = (char *(*)) $ac_func ;
10475 #endif
10477 return 0;
10479 _ACEOF
10480 if ac_fn_c_try_compile "$LINENO"; then :
10481 eval "gcc_cv_have_decl_$ac_func=yes"
10482 else
10483 eval "gcc_cv_have_decl_$ac_func=no"
10485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10488 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10490 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10491 #define $ac_tr_decl 1
10492 _ACEOF
10494 else
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10497 #define $ac_tr_decl 0
10498 _ACEOF
10502 done
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10508 #include "ansidecl.h"
10509 #include "system.h"
10510 #ifdef HAVE_SYS_RESOURCE_H
10511 #include <sys/resource.h>
10512 #endif
10515 main ()
10517 rlim_t l = 0;
10519 return 0;
10521 _ACEOF
10522 if ac_fn_c_try_compile "$LINENO"; then :
10524 else
10526 $as_echo "#define rlim_t long" >>confdefs.h
10529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10531 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10532 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10533 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10534 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10535 for ac_func in ldgetname
10537 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10539 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10540 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10545 #undef $ac_tr_decl
10546 #define $ac_tr_decl 1
10548 #include "ansidecl.h"
10549 #include "system.h"
10550 #ifdef HAVE_LDFCN_H
10551 #undef FREAD
10552 #undef FWRITE
10553 #include <ldfcn.h>
10554 #endif
10558 main ()
10560 #ifndef $ac_func
10561 char *(*pfn) = (char *(*)) $ac_func ;
10562 #endif
10564 return 0;
10566 _ACEOF
10567 if ac_fn_c_try_compile "$LINENO"; then :
10568 eval "gcc_cv_have_decl_$ac_func=yes"
10569 else
10570 eval "gcc_cv_have_decl_$ac_func=no"
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10575 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10577 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10578 #define $ac_tr_decl 1
10579 _ACEOF
10581 else
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10584 #define $ac_tr_decl 0
10585 _ACEOF
10589 done
10592 for ac_func in times
10594 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10596 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10597 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10598 $as_echo_n "(cached) " >&6
10599 else
10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10602 #undef $ac_tr_decl
10603 #define $ac_tr_decl 1
10605 #include "ansidecl.h"
10606 #include "system.h"
10607 #ifdef HAVE_SYS_TIMES_H
10608 #include <sys/times.h>
10609 #endif
10613 main ()
10615 #ifndef $ac_func
10616 char *(*pfn) = (char *(*)) $ac_func ;
10617 #endif
10619 return 0;
10621 _ACEOF
10622 if ac_fn_c_try_compile "$LINENO"; then :
10623 eval "gcc_cv_have_decl_$ac_func=yes"
10624 else
10625 eval "gcc_cv_have_decl_$ac_func=no"
10627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10630 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10632 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10633 #define $ac_tr_decl 1
10634 _ACEOF
10636 else
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10639 #define $ac_tr_decl 0
10640 _ACEOF
10644 done
10647 for ac_func in sigaltstack
10649 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10651 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10652 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657 #undef $ac_tr_decl
10658 #define $ac_tr_decl 1
10660 #include "ansidecl.h"
10661 #include "system.h"
10662 #include <signal.h>
10666 main ()
10668 #ifndef $ac_func
10669 char *(*pfn) = (char *(*)) $ac_func ;
10670 #endif
10672 return 0;
10674 _ACEOF
10675 if ac_fn_c_try_compile "$LINENO"; then :
10676 eval "gcc_cv_have_decl_$ac_func=yes"
10677 else
10678 eval "gcc_cv_have_decl_$ac_func=no"
10680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10685 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10686 #define $ac_tr_decl 1
10687 _ACEOF
10689 else
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10692 #define $ac_tr_decl 0
10693 _ACEOF
10697 done
10700 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10701 # prototype.
10702 ac_ext=cpp
10703 ac_cpp='$CXXCPP $CPPFLAGS'
10704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10708 for ac_func in madvise
10710 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10712 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10713 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718 #undef $ac_tr_decl
10719 #define $ac_tr_decl 1
10721 #include "ansidecl.h"
10722 #include "system.h"
10726 main ()
10728 #ifndef $ac_func
10729 char *(*pfn) = (char *(*)) $ac_func ;
10730 #endif
10732 return 0;
10734 _ACEOF
10735 if ac_fn_cxx_try_compile "$LINENO"; then :
10736 eval "gcc_cv_have_decl_$ac_func=yes"
10737 else
10738 eval "gcc_cv_have_decl_$ac_func=no"
10740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10745 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10746 #define $ac_tr_decl 1
10747 _ACEOF
10749 else
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10752 #define $ac_tr_decl 0
10753 _ACEOF
10757 done
10759 ac_ext=c
10760 ac_cpp='$CPP $CPPFLAGS'
10761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10766 # More time-related stuff.
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10768 $as_echo_n "checking for struct tms... " >&6; }
10769 if test "${ac_cv_struct_tms+set}" = set; then :
10770 $as_echo_n "(cached) " >&6
10771 else
10773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10776 #include "ansidecl.h"
10777 #include "system.h"
10778 #ifdef HAVE_SYS_TIMES_H
10779 #include <sys/times.h>
10780 #endif
10783 main ()
10785 struct tms tms;
10787 return 0;
10789 _ACEOF
10790 if ac_fn_c_try_compile "$LINENO"; then :
10791 ac_cv_struct_tms=yes
10792 else
10793 ac_cv_struct_tms=no
10795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10798 $as_echo "$ac_cv_struct_tms" >&6; }
10799 if test $ac_cv_struct_tms = yes; then
10801 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10805 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10806 # revisit after autoconf 2.50.
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10808 $as_echo_n "checking for clock_t... " >&6; }
10809 if test "${gcc_cv_type_clock_t+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10816 #include "ansidecl.h"
10817 #include "system.h"
10820 main ()
10822 clock_t x;
10824 return 0;
10826 _ACEOF
10827 if ac_fn_c_try_compile "$LINENO"; then :
10828 gcc_cv_type_clock_t=yes
10829 else
10830 gcc_cv_type_clock_t=no
10832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10835 $as_echo "$gcc_cv_type_clock_t" >&6; }
10836 if test $gcc_cv_type_clock_t = yes; then
10838 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10842 # Check if F_SETLKW is supported by fcntl.
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10844 $as_echo_n "checking for F_SETLKW... " >&6; }
10845 if test "${ac_cv_f_setlkw+set}" = set; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10852 #include <fcntl.h>
10854 main ()
10857 struct flock fl;
10858 fl.l_whence = 0;
10859 fl.l_start = 0;
10860 fl.l_len = 0;
10861 fl.l_pid = 0;
10862 return fcntl (1, F_SETLKW, &fl);
10864 return 0;
10866 _ACEOF
10867 if ac_fn_c_try_compile "$LINENO"; then :
10868 ac_cv_f_setlkw=yes
10869 else
10870 ac_cv_f_setlkw=no
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10875 $as_echo "$ac_cv_f_setlkw" >&6; }
10876 if test $ac_cv_f_setlkw = yes; then
10878 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10882 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10883 CFLAGS="$saved_CFLAGS"
10884 CXXFLAGS="$saved_CXXFLAGS"
10886 # mkdir takes a single argument on some systems.
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10888 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10889 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10890 $as_echo_n "(cached) " >&6
10891 else
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10895 #include <sys/types.h>
10896 #ifdef HAVE_SYS_STAT_H
10897 # include <sys/stat.h>
10898 #endif
10899 #ifdef HAVE_UNISTD_H
10900 # include <unistd.h>
10901 #endif
10902 #ifdef HAVE_DIRECT_H
10903 # include <direct.h>
10904 #endif
10906 main ()
10908 mkdir ("foo", 0);
10910 return 0;
10912 _ACEOF
10913 if ac_fn_c_try_compile "$LINENO"; then :
10914 gcc_cv_mkdir_takes_one_arg=no
10915 else
10916 gcc_cv_mkdir_takes_one_arg=yes
10918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10921 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10922 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10924 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10929 # File extensions
10930 manext='.1'
10931 objext='.o'
10935 # With Setjmp/Longjmp based exception handling.
10936 # Check whether --enable-sjlj-exceptions was given.
10937 if test "${enable_sjlj_exceptions+set}" = set; then :
10938 enableval=$enable_sjlj_exceptions; case $target in
10939 *-*-hpux10*)
10940 if test $enableval != yes; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10942 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10943 enableval=yes
10946 esac
10947 force_sjlj_exceptions=yes
10948 else
10949 case $target in
10950 *-*-hpux10*)
10951 force_sjlj_exceptions=yes
10952 enableval=yes
10955 force_sjlj_exceptions=no
10957 esac
10960 if test $force_sjlj_exceptions = yes; then
10961 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10963 cat >>confdefs.h <<_ACEOF
10964 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10965 _ACEOF
10969 # --------------------------------------------------------
10970 # Build, host, and target specific configuration fragments
10971 # --------------------------------------------------------
10973 # Collect build-machine-specific information.
10974 . ${srcdir}/config.build
10976 # Collect host-machine-specific information.
10977 . ${srcdir}/config.host
10979 target_gtfiles=
10981 # Collect target-machine-specific information.
10982 . ${srcdir}/config.gcc
10984 extra_objs="${host_extra_objs} ${extra_objs}"
10985 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10987 # Default the target-machine variables that were not explicitly set.
10988 if test x"$tm_file" = x
10989 then tm_file=$cpu_type/$cpu_type.h; fi
10991 if test x"$extra_headers" = x
10992 then extra_headers=; fi
10994 if test x$md_file = x
10995 then md_file=$cpu_type/$cpu_type.md; fi
10997 if test x$out_file = x
10998 then out_file=$cpu_type/$cpu_type.c; fi
11000 if test x"$tmake_file" = x
11001 then tmake_file=$cpu_type/t-$cpu_type
11004 # Support --enable-initfini-array.
11005 if test x$enable_initfini_array != xno; then
11006 tm_file="${tm_file} initfini-array.h"
11009 if test x"$dwarf2" = xyes
11010 then tm_file="$tm_file tm-dwarf2.h"
11013 # Say what files are being used for the output code and MD file.
11014 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11015 echo "Using \`$srcdir/config/$md_file' as machine description file."
11017 # If any of the xm_file variables contain nonexistent files, warn
11018 # about them and drop them.
11021 for x in $build_xm_file; do
11022 if test -f $srcdir/config/$x
11023 then bx="$bx $x"
11024 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11025 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11027 done
11028 build_xm_file="$bx"
11031 for x in $host_xm_file; do
11032 if test -f $srcdir/config/$x
11033 then hx="$hx $x"
11034 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11035 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11037 done
11038 host_xm_file="$hx"
11041 for x in $xm_file; do
11042 if test -f $srcdir/config/$x
11043 then tx="$tx $x"
11044 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11045 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11047 done
11048 xm_file="$tx"
11050 count=a
11051 for f in $tm_file; do
11052 count=${count}x
11053 done
11054 if test $count = ax; then
11055 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11056 else
11057 echo "Using the following target machine macro files:"
11058 for f in $tm_file; do
11059 echo " $srcdir/config/$f"
11060 done
11063 if test x$need_64bit_hwint = xyes; then
11065 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11069 if test x$use_long_long_for_widest_fast_int = xyes; then
11071 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11075 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11077 cat >>confdefs.h <<_ACEOF
11078 #define HAVE_GNU_LD $gnu_ld_bool
11079 _ACEOF
11082 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11084 cat >>confdefs.h <<_ACEOF
11085 #define HAVE_GNU_AS $gnu_as_bool
11086 _ACEOF
11089 count=a
11090 for f in $host_xm_file; do
11091 count=${count}x
11092 done
11093 if test $count = a; then
11095 elif test $count = ax; then
11096 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11097 else
11098 echo "Using the following host machine macro files:"
11099 for f in $host_xm_file; do
11100 echo " $srcdir/config/$f"
11101 done
11103 echo "Using ${out_host_hook_obj} for host machine hooks."
11105 if test "$host_xm_file" != "$build_xm_file"; then
11106 count=a
11107 for f in $build_xm_file; do
11108 count=${count}x
11109 done
11110 if test $count = a; then
11112 elif test $count = ax; then
11113 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11114 else
11115 echo "Using the following build machine macro files:"
11116 for f in $build_xm_file; do
11117 echo " $srcdir/config/$f"
11118 done
11122 if test -n "$configured_native_system_header_dir"; then
11123 native_system_header_dir=$configured_native_system_header_dir
11125 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11128 case ${host} in
11129 powerpc*-*-darwin*)
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11131 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11132 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
11134 else
11135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h. */
11138 #include <sys/cdefs.h>
11139 #include <sys/signal.h>
11140 #include <ucontext.h>
11141 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11143 _ACEOF
11144 if ac_fn_c_try_compile "$LINENO"; then :
11145 gcc_cv_mcontext_underscores=no
11146 else
11147 gcc_cv_mcontext_underscores=yes
11149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11152 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11153 if test $gcc_cv_mcontext_underscores = yes; then
11155 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11159 esac
11161 # ---------
11162 # Threading
11163 # ---------
11165 # Check if a valid thread package
11166 case ${enable_threads} in
11167 "" | no)
11168 # No threads
11169 target_thread_file='single'
11171 yes)
11172 # default
11173 target_thread_file='single'
11175 aix | dce | lynx | mipssde | posix | rtems | \
11176 single | tpf | vxworks | win32)
11177 target_thread_file=${enable_threads}
11180 echo "${enable_threads} is an unknown thread package" 1>&2
11181 exit 1
11183 esac
11185 if test x${thread_file} = x; then
11186 # No thread file set by target-specific clauses in config.gcc,
11187 # so use file chosen by default logic above
11188 thread_file=${target_thread_file}
11191 # --------
11192 # UNSORTED
11193 # --------
11195 use_cxa_atexit=no
11196 if test x$enable___cxa_atexit = xyes || \
11197 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11198 if test x$host = x$target; then
11199 case $host in
11200 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11201 # keyed to flag_use_cxa_atexit
11202 *-*-mingw32*)
11203 use_cxa_atexit=yes
11205 powerpc-ibm-aix*)
11206 use_cxa_atexit=yes
11209 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11210 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11211 use_cxa_atexit=yes
11212 else
11213 echo "__cxa_atexit can't be enabled on this target"
11217 esac
11218 else
11219 # We can't check for __cxa_atexit when building a cross, so assume
11220 # it is available
11221 use_cxa_atexit=yes
11223 if test x$use_cxa_atexit = xyes; then
11225 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11230 # Look for a file containing extra machine modes.
11231 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11232 extra_modes_file='$(srcdir)'/config/${extra_modes}
11235 cat >>confdefs.h <<_ACEOF
11236 #define EXTRA_MODES_FILE "config/$extra_modes"
11237 _ACEOF
11241 # Convert extra_options into a form suitable for Makefile use.
11242 extra_opt_files=
11243 all_opt_files=
11244 for f in $extra_options; do
11245 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11246 all_opt_files="$all_opt_files $srcdir/config/$f"
11247 done
11250 # auto-host.h is the file containing items generated by autoconf and is
11251 # the first file included by config.h.
11252 # If host=build, it is correct to have bconfig include auto-host.h
11253 # as well. If host!=build, we are in error and need to do more
11254 # work to find out the build config parameters.
11255 if test x$host = x$build
11256 then
11257 build_auto=auto-host.h
11258 else
11259 # We create a subdir, then run autoconf in the subdir.
11260 # To prevent recursion we set host and build for the new
11261 # invocation of configure to the build for this invocation
11262 # of configure.
11263 tempdir=build.$$
11264 rm -rf $tempdir
11265 mkdir $tempdir
11266 cd $tempdir
11267 case ${srcdir} in
11268 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11269 *) realsrcdir=../${srcdir};;
11270 esac
11271 saved_CFLAGS="${CFLAGS}"
11272 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11273 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11274 ${realsrcdir}/configure \
11275 --enable-languages=${enable_languages-all} \
11276 --target=$target_alias --host=$build_alias --build=$build_alias
11277 CFLAGS="${saved_CFLAGS}"
11279 # We just finished tests for the build machine, so rename
11280 # the file auto-build.h in the gcc directory.
11281 mv auto-host.h ../auto-build.h
11282 cd ..
11283 rm -rf $tempdir
11284 build_auto=auto-build.h
11288 tm_file="${tm_file} defaults.h"
11289 tm_p_file="${tm_p_file} tm-preds.h"
11290 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11291 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11292 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11293 # put this back in temporarily.
11294 xm_file="auto-host.h ansidecl.h ${xm_file}"
11296 # --------
11297 # UNSORTED
11298 # --------
11300 # Compile in configure arguments.
11301 if test -f configargs.h ; then
11302 # Being re-configured.
11303 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11304 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11305 else
11306 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11309 # Double all backslashes and backslash all quotes to turn
11310 # gcc_config_arguments into a C string.
11311 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11312 $gcc_config_arguments
11314 gcc_config_arguments_str=`cat conftest.out`
11315 rm -f conftest.out
11317 cat > configargs.h <<EOF
11318 /* Generated automatically. */
11319 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11320 static const char thread_model[] = "$thread_file";
11322 static const struct {
11323 const char *name, *value;
11324 } configure_default_options[] = $configure_default_options;
11327 gcc_BASEVER=`cat $srcdir/BASE-VER`
11328 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11329 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11330 if test -f $srcdir/REVISION ; then
11331 gcc_REVISION=`cat $srcdir/REVISION`
11332 else
11333 gcc_REVISION=""
11335 cat > plugin-version.h <<EOF
11336 #include "configargs.h"
11338 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11339 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11340 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11341 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11343 static char basever[] = "$gcc_BASEVER";
11344 static char datestamp[] = "$gcc_DATESTAMP";
11345 static char devphase[] = "$gcc_DEVPHASE";
11346 static char revision[] = "$gcc_REVISION";
11348 /* FIXME plugins: We should make the version information more precise.
11349 One way to do is to add a checksum. */
11351 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11352 devphase, revision,
11353 configuration_arguments};
11356 # Internationalization
11357 # If we haven't got the data from the intl directory,
11358 # assume NLS is disabled.
11359 USE_NLS=no
11360 LIBINTL=
11361 LIBINTL_DEP=
11362 INCINTL=
11363 XGETTEXT=
11364 GMSGFMT=
11365 POSUB=
11367 if test -f ../intl/config.intl; then
11368 . ../intl/config.intl
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11371 $as_echo_n "checking whether NLS is requested... " >&6; }
11372 if test x"$USE_NLS" != xyes; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11375 else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11377 $as_echo "yes" >&6; }
11379 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11383 $as_echo_n "checking for catalogs to be installed... " >&6; }
11384 # Look for .po and .gmo files in the source directory.
11385 CATALOGS=
11386 XLINGUAS=
11387 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11388 # If there aren't any .gmo files the shell will give us the
11389 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11390 # weeded out.
11391 case "$cat" in *\**)
11392 continue;;
11393 esac
11394 # The quadruple backslash is collapsed to a double backslash
11395 # by the backticks, then collapsed again by the double quotes,
11396 # leaving us with one backslash in the sed expression (right
11397 # before the dot that mustn't act as a wildcard).
11398 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11399 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11400 # The user is allowed to set LINGUAS to a list of languages to
11401 # install catalogs for. If it's empty that means "all of them."
11402 if test "x$LINGUAS" = x; then
11403 CATALOGS="$CATALOGS $cat"
11404 XLINGUAS="$XLINGUAS $lang"
11405 else
11406 case "$LINGUAS" in *$lang*)
11407 CATALOGS="$CATALOGS $cat"
11408 XLINGUAS="$XLINGUAS $lang"
11410 esac
11412 done
11413 LINGUAS="$XLINGUAS"
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11415 $as_echo "$LINGUAS" >&6; }
11418 DATADIRNAME=share
11420 INSTOBJEXT=.mo
11422 GENCAT=gencat
11424 CATOBJEXT=.gmo
11428 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11429 # -liconv on the link line twice.
11430 case "$LIBINTL" in *$LIBICONV*)
11431 LIBICONV= ;;
11432 esac
11434 # Check whether --enable-secureplt was given.
11435 if test "${enable_secureplt+set}" = set; then :
11436 enableval=$enable_secureplt;
11440 # Check whether --enable-leading-mingw64-underscores was given.
11441 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11442 enableval=$enable_leading_mingw64_underscores;
11445 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11447 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11451 # Check whether --enable-cld was given.
11452 if test "${enable_cld+set}" = set; then :
11453 enableval=$enable_cld;
11454 else
11455 enable_cld=no
11459 # Check whether --enable-frame-pointer was given.
11460 if test "${enable_frame_pointer+set}" = set; then :
11461 enableval=$enable_frame_pointer;
11462 else
11464 case $target_os in
11465 linux* | darwin[8912]*)
11466 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11467 # DWARF2.
11468 enable_frame_pointer=no
11471 enable_frame_pointer=yes
11473 esac
11478 # Windows32 Registry support for specifying GCC installation paths.
11479 # Check whether --enable-win32-registry was given.
11480 if test "${enable_win32_registry+set}" = set; then :
11481 enableval=$enable_win32_registry;
11485 case $host_os in
11486 win32 | pe | cygwin* | mingw32* | uwin*)
11487 if test "x$enable_win32_registry" != xno; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11489 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11490 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11491 $as_echo_n "(cached) " >&6
11492 else
11493 ac_func_search_save_LIBS=$LIBS
11494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h. */
11497 /* Override any GCC internal prototype to avoid an error.
11498 Use char because int might match the return type of a GCC
11499 builtin and then its argument prototype would still apply. */
11500 #ifdef __cplusplus
11501 extern "C"
11502 #endif
11503 char RegOpenKeyExA ();
11505 main ()
11507 return RegOpenKeyExA ();
11509 return 0;
11511 _ACEOF
11512 for ac_lib in '' advapi32; do
11513 if test -z "$ac_lib"; then
11514 ac_res="none required"
11515 else
11516 ac_res=-l$ac_lib
11517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11519 if ac_fn_c_try_link "$LINENO"; then :
11520 ac_cv_search_RegOpenKeyExA=$ac_res
11522 rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext
11524 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11525 break
11527 done
11528 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11530 else
11531 ac_cv_search_RegOpenKeyExA=no
11533 rm conftest.$ac_ext
11534 LIBS=$ac_func_search_save_LIBS
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11537 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11538 ac_res=$ac_cv_search_RegOpenKeyExA
11539 if test "$ac_res" != no; then :
11540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11542 else
11543 enable_win32_registry=no
11548 if test "x$enable_win32_registry" != xno; then
11550 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11553 if test "x$enable_win32_registry" != xyes \
11554 && test "x$enable_win32_registry" != x; then
11556 cat >>confdefs.h <<_ACEOF
11557 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11558 _ACEOF
11563 esac
11565 # Get an absolute path to the GCC top-level source directory
11566 holddir=`${PWDCMD-pwd}`
11567 cd $srcdir
11568 topdir=`${PWDCMD-pwd}`
11569 cd $holddir
11571 # Conditionalize the makefile for this host machine.
11572 xmake_file=
11573 for f in ${host_xmake_file}
11575 if test -f ${srcdir}/config/$f
11576 then
11577 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11579 done
11581 # Conditionalize the makefile for this target machine.
11582 tmake_file_=
11583 for f in ${tmake_file}
11585 if test -f ${srcdir}/config/$f
11586 then
11587 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11589 done
11590 tmake_file="${tmake_file_}"
11592 out_object_file=`basename $out_file .c`.o
11593 common_out_object_file=`basename $common_out_file .c`.o
11595 tm_file_list="options.h"
11596 tm_include_list="options.h insn-constants.h"
11597 for f in $tm_file; do
11598 case $f in
11599 ./* )
11600 f=`echo $f | sed 's/^..//'`
11601 tm_file_list="${tm_file_list} $f"
11602 tm_include_list="${tm_include_list} $f"
11604 defaults.h )
11605 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11606 tm_include_list="${tm_include_list} $f"
11609 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11610 tm_include_list="${tm_include_list} config/$f"
11612 esac
11613 done
11615 tm_p_file_list=
11616 tm_p_include_list=
11617 for f in $tm_p_file; do
11618 case $f in
11619 tm-preds.h )
11620 tm_p_file_list="${tm_p_file_list} $f"
11621 tm_p_include_list="${tm_p_include_list} $f"
11624 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11625 tm_p_include_list="${tm_p_include_list} config/$f"
11626 esac
11627 done
11629 xm_file_list=
11630 xm_include_list=
11631 for f in $xm_file; do
11632 case $f in
11633 ansidecl.h )
11634 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11635 xm_include_list="${xm_include_list} $f"
11637 auto-host.h )
11638 xm_file_list="${xm_file_list} $f"
11639 xm_include_list="${xm_include_list} $f"
11642 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11643 xm_include_list="${xm_include_list} config/$f"
11645 esac
11646 done
11648 host_xm_file_list=
11649 host_xm_include_list=
11650 for f in $host_xm_file; do
11651 case $f in
11652 ansidecl.h )
11653 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11654 host_xm_include_list="${host_xm_include_list} $f"
11656 auto-host.h )
11657 host_xm_file_list="${host_xm_file_list} $f"
11658 host_xm_include_list="${host_xm_include_list} $f"
11661 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11662 host_xm_include_list="${host_xm_include_list} config/$f"
11664 esac
11665 done
11667 build_xm_file_list=
11668 for f in $build_xm_file; do
11669 case $f in
11670 ansidecl.h )
11671 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11672 build_xm_include_list="${build_xm_include_list} $f"
11674 auto-build.h | auto-host.h )
11675 build_xm_file_list="${build_xm_file_list} $f"
11676 build_xm_include_list="${build_xm_include_list} $f"
11679 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11680 build_xm_include_list="${build_xm_include_list} config/$f"
11682 esac
11683 done
11685 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11686 # cross-compiler which does not use the native headers and libraries.
11687 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11688 CROSS=
11689 ALL=all.internal
11690 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11692 if test "x$with_build_sysroot" != x; then
11693 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11694 else
11695 # This value is used, even on a native system, because
11696 # CROSS_SYSTEM_HEADER_DIR is just
11697 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11698 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11701 if test x$host != x$target
11702 then
11703 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11704 ALL=all.cross
11705 SYSTEM_HEADER_DIR=$build_system_header_dir
11706 case "$host","$target" in
11707 # Darwin crosses can use the host system's libraries and headers,
11708 # because of the fat library support. Of course, it must be the
11709 # same version of Darwin on both sides. Allow the user to
11710 # just say --target=foo-darwin without a version number to mean
11711 # "the version on this system".
11712 *-*-darwin*,*-*-darwin*)
11713 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11714 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11715 if test $hostos = $targetos -o $targetos = darwin ; then
11716 CROSS=
11717 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11718 with_headers=yes
11722 i?86-*-*,x86_64-*-* \
11723 | powerpc*-*-*,powerpc64*-*-*)
11724 CROSS="$CROSS -DNATIVE_CROSS" ;;
11725 esac
11727 case $target in
11728 *-*-mingw*)
11729 if test "x$with_headers" = x; then
11730 with_headers=yes
11735 esac
11736 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11737 SYSTEM_HEADER_DIR=$build_system_header_dir
11740 # If this is a cross-compiler that does not
11741 # have its own set of headers then define
11742 # inhibit_libc
11744 # If this is using newlib, without having the headers available now,
11745 # then define inhibit_libc in LIBGCC2_CFLAGS.
11746 # This prevents libgcc2 from containing any code which requires libc
11747 # support.
11748 : ${inhibit_libc=false}
11749 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11750 test x$with_newlib = xyes ; } &&
11751 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11752 inhibit_libc=true
11756 # When building gcc with a cross-compiler, we need to adjust things so
11757 # that the generator programs are still built with the native compiler.
11758 # Also, we cannot run fixincludes.
11760 # These are the normal (build=host) settings:
11761 CC_FOR_BUILD='$(CC)'
11762 CXX_FOR_BUILD='$(CXX)'
11763 BUILD_CFLAGS='$(ALL_CFLAGS)'
11764 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11765 BUILD_LDFLAGS='$(LDFLAGS)'
11766 STMP_FIXINC=stmp-fixinc
11768 # And these apply if build != host, or we are generating coverage data
11769 if test x$build != x$host || test "x$coverage_flags" != x
11770 then
11771 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11772 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11775 # Expand extra_headers to include complete path.
11776 # This substitutes for lots of t-* files.
11777 extra_headers_list=
11778 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11779 for file in ${extra_headers} ; do
11780 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11781 done
11783 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11784 if test x"$use_gcc_tgmath" = xyes
11785 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11788 # Define collect2 in Makefile.
11789 case $host_can_use_collect2 in
11790 no) collect2= ;;
11791 *) collect2='collect2$(exeext)' ;;
11792 esac
11795 # Add a definition of USE_COLLECT2 if system wants one.
11796 case $use_collect2 in
11797 no) use_collect2= ;;
11798 "") ;;
11800 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11801 xm_defines="${xm_defines} USE_COLLECT2"
11802 case $host_can_use_collect2 in
11804 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11806 esac
11808 esac
11811 cat >>confdefs.h <<_ACEOF
11812 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11813 _ACEOF
11816 # ---------------------------
11817 # Assembler & linker features
11818 # ---------------------------
11820 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11821 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11822 # However when ld-new is first executed from the build tree, libtool will
11823 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11824 # to the build tree. While doing this we need to use the previous-stage
11825 # linker, or we have an infinite loop. The presence of a shell script as
11826 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11827 # the gcc/collect-ld script. So we need to know how libtool works, or
11828 # exec-tool will fail.
11831 case `pwd` in
11832 *\ * | *\ *)
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11834 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11835 esac
11839 macro_version='2.2.7a'
11840 macro_revision='1.3134'
11854 ltmain="$ac_aux_dir/ltmain.sh"
11856 # Backslashify metacharacters that are still active within
11857 # double-quoted strings.
11858 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11860 # Same as above, but do not quote variable references.
11861 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11863 # Sed substitution to delay expansion of an escaped shell variable in a
11864 # double_quote_subst'ed string.
11865 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11867 # Sed substitution to delay expansion of an escaped single quote.
11868 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11870 # Sed substitution to avoid accidental globbing in evaled expressions
11871 no_glob_subst='s/\*/\\\*/g'
11873 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11874 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11875 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11878 $as_echo_n "checking how to print strings... " >&6; }
11879 # Test print first, because it will be a builtin if present.
11880 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11881 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11882 ECHO='print -r --'
11883 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11884 ECHO='printf %s\n'
11885 else
11886 # Use this function as a fallback that always works.
11887 func_fallback_echo ()
11889 eval 'cat <<_LTECHO_EOF
11891 _LTECHO_EOF'
11893 ECHO='func_fallback_echo'
11896 # func_echo_all arg...
11897 # Invoke $ECHO with all args, space-separated.
11898 func_echo_all ()
11900 $ECHO ""
11903 case "$ECHO" in
11904 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11905 $as_echo "printf" >&6; } ;;
11906 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11907 $as_echo "print -r" >&6; } ;;
11908 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11909 $as_echo "cat" >&6; } ;;
11910 esac
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11926 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11927 if test "${ac_cv_path_SED+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11931 for ac_i in 1 2 3 4 5 6 7; do
11932 ac_script="$ac_script$as_nl$ac_script"
11933 done
11934 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11935 { ac_script=; unset ac_script;}
11936 if test -z "$SED"; then
11937 ac_path_SED_found=false
11938 # Loop through the user's path and test for each of PROGNAME-LIST
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11942 IFS=$as_save_IFS
11943 test -z "$as_dir" && as_dir=.
11944 for ac_prog in sed gsed; do
11945 for ac_exec_ext in '' $ac_executable_extensions; do
11946 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11947 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11948 # Check for GNU ac_path_SED and select it if it is found.
11949 # Check for GNU $ac_path_SED
11950 case `"$ac_path_SED" --version 2>&1` in
11951 *GNU*)
11952 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11954 ac_count=0
11955 $as_echo_n 0123456789 >"conftest.in"
11956 while :
11958 cat "conftest.in" "conftest.in" >"conftest.tmp"
11959 mv "conftest.tmp" "conftest.in"
11960 cp "conftest.in" "conftest.nl"
11961 $as_echo '' >> "conftest.nl"
11962 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11964 as_fn_arith $ac_count + 1 && ac_count=$as_val
11965 if test $ac_count -gt ${ac_path_SED_max-0}; then
11966 # Best one so far, save it but keep looking for a better one
11967 ac_cv_path_SED="$ac_path_SED"
11968 ac_path_SED_max=$ac_count
11970 # 10*(2^10) chars as input seems more than enough
11971 test $ac_count -gt 10 && break
11972 done
11973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11974 esac
11976 $ac_path_SED_found && break 3
11977 done
11978 done
11979 done
11980 IFS=$as_save_IFS
11981 if test -z "$ac_cv_path_SED"; then
11982 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11984 else
11985 ac_cv_path_SED=$SED
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11990 $as_echo "$ac_cv_path_SED" >&6; }
11991 SED="$ac_cv_path_SED"
11992 rm -f conftest.sed
11994 test -z "$SED" && SED=sed
11995 Xsed="$SED -e 1s/^X//"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12008 $as_echo_n "checking for fgrep... " >&6; }
12009 if test "${ac_cv_path_FGREP+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12013 then ac_cv_path_FGREP="$GREP -F"
12014 else
12015 if test -z "$FGREP"; then
12016 ac_path_FGREP_found=false
12017 # Loop through the user's path and test for each of PROGNAME-LIST
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 for ac_prog in fgrep; do
12024 for ac_exec_ext in '' $ac_executable_extensions; do
12025 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12026 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12027 # Check for GNU ac_path_FGREP and select it if it is found.
12028 # Check for GNU $ac_path_FGREP
12029 case `"$ac_path_FGREP" --version 2>&1` in
12030 *GNU*)
12031 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12033 ac_count=0
12034 $as_echo_n 0123456789 >"conftest.in"
12035 while :
12037 cat "conftest.in" "conftest.in" >"conftest.tmp"
12038 mv "conftest.tmp" "conftest.in"
12039 cp "conftest.in" "conftest.nl"
12040 $as_echo 'FGREP' >> "conftest.nl"
12041 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12043 as_fn_arith $ac_count + 1 && ac_count=$as_val
12044 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12045 # Best one so far, save it but keep looking for a better one
12046 ac_cv_path_FGREP="$ac_path_FGREP"
12047 ac_path_FGREP_max=$ac_count
12049 # 10*(2^10) chars as input seems more than enough
12050 test $ac_count -gt 10 && break
12051 done
12052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12053 esac
12055 $ac_path_FGREP_found && break 3
12056 done
12057 done
12058 done
12059 IFS=$as_save_IFS
12060 if test -z "$ac_cv_path_FGREP"; then
12061 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12063 else
12064 ac_cv_path_FGREP=$FGREP
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12070 $as_echo "$ac_cv_path_FGREP" >&6; }
12071 FGREP="$ac_cv_path_FGREP"
12074 test -z "$GREP" && GREP=grep
12094 # Check whether --with-gnu-ld was given.
12095 if test "${with_gnu_ld+set}" = set; then :
12096 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12097 else
12098 with_gnu_ld=no
12101 ac_prog=ld
12102 if test "$GCC" = yes; then
12103 # Check if gcc -print-prog-name=ld gives a path.
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12105 $as_echo_n "checking for ld used by $CC... " >&6; }
12106 case $host in
12107 *-*-mingw*)
12108 # gcc leaves a trailing carriage return which upsets mingw
12109 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12111 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12112 esac
12113 case $ac_prog in
12114 # Accept absolute paths.
12115 [\\/]* | ?:[\\/]*)
12116 re_direlt='/[^/][^/]*/\.\./'
12117 # Canonicalize the pathname of ld
12118 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12119 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12120 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12121 done
12122 test -z "$LD" && LD="$ac_prog"
12125 # If it fails, then pretend we aren't using GCC.
12126 ac_prog=ld
12129 # If it is relative, then search for the first ld in PATH.
12130 with_gnu_ld=unknown
12132 esac
12133 elif test "$with_gnu_ld" = yes; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12135 $as_echo_n "checking for GNU ld... " >&6; }
12136 else
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12138 $as_echo_n "checking for non-GNU ld... " >&6; }
12140 if test "${lt_cv_path_LD+set}" = set; then :
12141 $as_echo_n "(cached) " >&6
12142 else
12143 if test -z "$LD"; then
12144 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12145 for ac_dir in $PATH; do
12146 IFS="$lt_save_ifs"
12147 test -z "$ac_dir" && ac_dir=.
12148 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12149 lt_cv_path_LD="$ac_dir/$ac_prog"
12150 # Check to see if the program is GNU ld. I'd rather use --version,
12151 # but apparently some variants of GNU ld only accept -v.
12152 # Break only if it was the GNU/non-GNU ld that we prefer.
12153 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12154 *GNU* | *'with BFD'*)
12155 test "$with_gnu_ld" != no && break
12158 test "$with_gnu_ld" != yes && break
12160 esac
12162 done
12163 IFS="$lt_save_ifs"
12164 else
12165 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12169 LD="$lt_cv_path_LD"
12170 if test -n "$LD"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12172 $as_echo "$LD" >&6; }
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12177 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12179 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12180 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12184 case `$LD -v 2>&1 </dev/null` in
12185 *GNU* | *'with BFD'*)
12186 lt_cv_prog_gnu_ld=yes
12189 lt_cv_prog_gnu_ld=no
12191 esac
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12194 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12195 with_gnu_ld=$lt_cv_prog_gnu_ld
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12206 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12207 if test "${lt_cv_path_NM+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 if test -n "$NM"; then
12211 # Let the user override the test.
12212 lt_cv_path_NM="$NM"
12213 else
12214 lt_nm_to_check="${ac_tool_prefix}nm"
12215 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12216 lt_nm_to_check="$lt_nm_to_check nm"
12218 for lt_tmp_nm in $lt_nm_to_check; do
12219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12220 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12221 IFS="$lt_save_ifs"
12222 test -z "$ac_dir" && ac_dir=.
12223 tmp_nm="$ac_dir/$lt_tmp_nm"
12224 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12225 # Check to see if the nm accepts a BSD-compat flag.
12226 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12227 # nm: unknown option "B" ignored
12228 # Tru64's nm complains that /dev/null is an invalid object file
12229 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12230 */dev/null* | *'Invalid file or object type'*)
12231 lt_cv_path_NM="$tmp_nm -B"
12232 break
12235 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12236 */dev/null*)
12237 lt_cv_path_NM="$tmp_nm -p"
12238 break
12241 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12242 continue # so that we can try to find one that supports BSD flags
12244 esac
12246 esac
12248 done
12249 IFS="$lt_save_ifs"
12250 done
12251 : ${lt_cv_path_NM=no}
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12255 $as_echo "$lt_cv_path_NM" >&6; }
12256 if test "$lt_cv_path_NM" != "no"; then
12257 NM="$lt_cv_path_NM"
12258 else
12259 # Didn't find any BSD compatible name lister, look for dumpbin.
12260 if test -n "$DUMPBIN"; then :
12261 # Let the user override the test.
12262 else
12263 if test -n "$ac_tool_prefix"; then
12264 for ac_prog in dumpbin "link -dump"
12266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269 $as_echo_n "checking for $ac_word... " >&6; }
12270 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12271 $as_echo_n "(cached) " >&6
12272 else
12273 if test -n "$DUMPBIN"; then
12274 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12275 else
12276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277 for as_dir in $PATH
12279 IFS=$as_save_IFS
12280 test -z "$as_dir" && as_dir=.
12281 for ac_exec_ext in '' $ac_executable_extensions; do
12282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12283 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12285 break 2
12287 done
12288 done
12289 IFS=$as_save_IFS
12293 DUMPBIN=$ac_cv_prog_DUMPBIN
12294 if test -n "$DUMPBIN"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12296 $as_echo "$DUMPBIN" >&6; }
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12303 test -n "$DUMPBIN" && break
12304 done
12306 if test -z "$DUMPBIN"; then
12307 ac_ct_DUMPBIN=$DUMPBIN
12308 for ac_prog in dumpbin "link -dump"
12310 # Extract the first word of "$ac_prog", so it can be a program name with args.
12311 set dummy $ac_prog; ac_word=$2
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12313 $as_echo_n "checking for $ac_word... " >&6; }
12314 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317 if test -n "$ac_ct_DUMPBIN"; then
12318 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12319 else
12320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12321 for as_dir in $PATH
12323 IFS=$as_save_IFS
12324 test -z "$as_dir" && as_dir=.
12325 for ac_exec_ext in '' $ac_executable_extensions; do
12326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12327 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 break 2
12331 done
12332 done
12333 IFS=$as_save_IFS
12337 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12338 if test -n "$ac_ct_DUMPBIN"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12340 $as_echo "$ac_ct_DUMPBIN" >&6; }
12341 else
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12347 test -n "$ac_ct_DUMPBIN" && break
12348 done
12350 if test "x$ac_ct_DUMPBIN" = x; then
12351 DUMPBIN=":"
12352 else
12353 case $cross_compiling:$ac_tool_warned in
12354 yes:)
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12357 ac_tool_warned=yes ;;
12358 esac
12359 DUMPBIN=$ac_ct_DUMPBIN
12363 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12364 *COFF*)
12365 DUMPBIN="$DUMPBIN -symbols"
12368 DUMPBIN=:
12370 esac
12373 if test "$DUMPBIN" != ":"; then
12374 NM="$DUMPBIN"
12377 test -z "$NM" && NM=nm
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12385 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12386 if test "${lt_cv_nm_interface+set}" = set; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 lt_cv_nm_interface="BSD nm"
12390 echo "int some_variable = 0;" > conftest.$ac_ext
12391 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12392 (eval "$ac_compile" 2>conftest.err)
12393 cat conftest.err >&5
12394 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12395 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12396 cat conftest.err >&5
12397 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12398 cat conftest.out >&5
12399 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12400 lt_cv_nm_interface="MS dumpbin"
12402 rm -f conftest*
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12405 $as_echo "$lt_cv_nm_interface" >&6; }
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12408 $as_echo_n "checking whether ln -s works... " >&6; }
12409 LN_S=$as_ln_s
12410 if test "$LN_S" = "ln -s"; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12412 $as_echo "yes" >&6; }
12413 else
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12415 $as_echo "no, using $LN_S" >&6; }
12418 # find the maximum length of command line arguments
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12420 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12421 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12422 $as_echo_n "(cached) " >&6
12423 else
12425 teststring="ABCD"
12427 case $build_os in
12428 msdosdjgpp*)
12429 # On DJGPP, this test can blow up pretty badly due to problems in libc
12430 # (any single argument exceeding 2000 bytes causes a buffer overrun
12431 # during glob expansion). Even if it were fixed, the result of this
12432 # check would be larger than it should be.
12433 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12436 gnu*)
12437 # Under GNU Hurd, this test is not required because there is
12438 # no limit to the length of command line arguments.
12439 # Libtool will interpret -1 as no limit whatsoever
12440 lt_cv_sys_max_cmd_len=-1;
12443 cygwin* | mingw* | cegcc*)
12444 # On Win9x/ME, this test blows up -- it succeeds, but takes
12445 # about 5 minutes as the teststring grows exponentially.
12446 # Worse, since 9x/ME are not pre-emptively multitasking,
12447 # you end up with a "frozen" computer, even though with patience
12448 # the test eventually succeeds (with a max line length of 256k).
12449 # Instead, let's just punt: use the minimum linelength reported by
12450 # all of the supported platforms: 8192 (on NT/2K/XP).
12451 lt_cv_sys_max_cmd_len=8192;
12454 mint*)
12455 # On MiNT this can take a long time and run out of memory.
12456 lt_cv_sys_max_cmd_len=8192;
12459 amigaos*)
12460 # On AmigaOS with pdksh, this test takes hours, literally.
12461 # So we just punt and use a minimum line length of 8192.
12462 lt_cv_sys_max_cmd_len=8192;
12465 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12466 # This has been around since 386BSD, at least. Likely further.
12467 if test -x /sbin/sysctl; then
12468 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12469 elif test -x /usr/sbin/sysctl; then
12470 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12471 else
12472 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12474 # And add a safety zone
12475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12479 interix*)
12480 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12481 lt_cv_sys_max_cmd_len=196608
12484 osf*)
12485 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12486 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12487 # nice to cause kernel panics so lets avoid the loop below.
12488 # First set a reasonable default.
12489 lt_cv_sys_max_cmd_len=16384
12491 if test -x /sbin/sysconfig; then
12492 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12493 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12494 esac
12497 sco3.2v5*)
12498 lt_cv_sys_max_cmd_len=102400
12500 sysv5* | sco5v6* | sysv4.2uw2*)
12501 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12502 if test -n "$kargmax"; then
12503 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12504 else
12505 lt_cv_sys_max_cmd_len=32768
12509 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12510 if test -n "$lt_cv_sys_max_cmd_len"; then
12511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12513 else
12514 # Make teststring a little bigger before we do anything with it.
12515 # a 1K string should be a reasonable start.
12516 for i in 1 2 3 4 5 6 7 8 ; do
12517 teststring=$teststring$teststring
12518 done
12519 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12520 # If test is not a shell built-in, we'll probably end up computing a
12521 # maximum length that is only half of the actual maximum length, but
12522 # we can't tell.
12523 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12524 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12525 test $i != 17 # 1/2 MB should be enough
12527 i=`expr $i + 1`
12528 teststring=$teststring$teststring
12529 done
12530 # Only check the string length outside the loop.
12531 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12532 teststring=
12533 # Add a significant safety factor because C++ compilers can tack on
12534 # massive amounts of additional arguments before passing them to the
12535 # linker. It appears as though 1/2 is a usable value.
12536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12539 esac
12543 if test -n $lt_cv_sys_max_cmd_len ; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12545 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12546 else
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12548 $as_echo "none" >&6; }
12550 max_cmd_len=$lt_cv_sys_max_cmd_len
12557 : ${CP="cp -f"}
12558 : ${MV="mv -f"}
12559 : ${RM="rm -f"}
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12562 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12563 # Try some XSI features
12564 xsi_shell=no
12565 ( _lt_dummy="a/b/c"
12566 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12567 = c,a/b,, \
12568 && eval 'test $(( 1 + 1 )) -eq 2 \
12569 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12570 && xsi_shell=yes
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12572 $as_echo "$xsi_shell" >&6; }
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12576 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12577 lt_shell_append=no
12578 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12579 >/dev/null 2>&1 \
12580 && lt_shell_append=yes
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12582 $as_echo "$lt_shell_append" >&6; }
12585 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12586 lt_unset=unset
12587 else
12588 lt_unset=false
12595 # test EBCDIC or ASCII
12596 case `echo X|tr X '\101'` in
12597 A) # ASCII based system
12598 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12599 lt_SP2NL='tr \040 \012'
12600 lt_NL2SP='tr \015\012 \040\040'
12602 *) # EBCDIC based system
12603 lt_SP2NL='tr \100 \n'
12604 lt_NL2SP='tr \r\n \100\100'
12606 esac
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12617 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12618 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 lt_cv_ld_reload_flag='-r'
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12624 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12625 reload_flag=$lt_cv_ld_reload_flag
12626 case $reload_flag in
12627 "" | " "*) ;;
12628 *) reload_flag=" $reload_flag" ;;
12629 esac
12630 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12631 case $host_os in
12632 darwin*)
12633 if test "$GCC" = yes; then
12634 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12635 else
12636 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12639 esac
12649 if test -n "$ac_tool_prefix"; then
12650 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12651 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653 $as_echo_n "checking for $ac_word... " >&6; }
12654 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12655 $as_echo_n "(cached) " >&6
12656 else
12657 if test -n "$OBJDUMP"; then
12658 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12659 else
12660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12661 for as_dir in $PATH
12663 IFS=$as_save_IFS
12664 test -z "$as_dir" && as_dir=.
12665 for ac_exec_ext in '' $ac_executable_extensions; do
12666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12667 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12669 break 2
12671 done
12672 done
12673 IFS=$as_save_IFS
12677 OBJDUMP=$ac_cv_prog_OBJDUMP
12678 if test -n "$OBJDUMP"; then
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12680 $as_echo "$OBJDUMP" >&6; }
12681 else
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683 $as_echo "no" >&6; }
12688 if test -z "$ac_cv_prog_OBJDUMP"; then
12689 ac_ct_OBJDUMP=$OBJDUMP
12690 # Extract the first word of "objdump", so it can be a program name with args.
12691 set dummy objdump; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693 $as_echo_n "checking for $ac_word... " >&6; }
12694 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12695 $as_echo_n "(cached) " >&6
12696 else
12697 if test -n "$ac_ct_OBJDUMP"; then
12698 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12699 else
12700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701 for as_dir in $PATH
12703 IFS=$as_save_IFS
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
12706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12707 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709 break 2
12711 done
12712 done
12713 IFS=$as_save_IFS
12717 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12718 if test -n "$ac_ct_OBJDUMP"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12720 $as_echo "$ac_ct_OBJDUMP" >&6; }
12721 else
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 $as_echo "no" >&6; }
12726 if test "x$ac_ct_OBJDUMP" = x; then
12727 OBJDUMP="false"
12728 else
12729 case $cross_compiling:$ac_tool_warned in
12730 yes:)
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12733 ac_tool_warned=yes ;;
12734 esac
12735 OBJDUMP=$ac_ct_OBJDUMP
12737 else
12738 OBJDUMP="$ac_cv_prog_OBJDUMP"
12741 test -z "$OBJDUMP" && OBJDUMP=objdump
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12752 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12753 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12754 $as_echo_n "(cached) " >&6
12755 else
12756 lt_cv_file_magic_cmd='$MAGIC_CMD'
12757 lt_cv_file_magic_test_file=
12758 lt_cv_deplibs_check_method='unknown'
12759 # Need to set the preceding variable on all platforms that support
12760 # interlibrary dependencies.
12761 # 'none' -- dependencies not supported.
12762 # `unknown' -- same as none, but documents that we really don't know.
12763 # 'pass_all' -- all dependencies passed with no checks.
12764 # 'test_compile' -- check by making test program.
12765 # 'file_magic [[regex]]' -- check by looking for files in library path
12766 # which responds to the $file_magic_cmd with a given extended regex.
12767 # If you have `file' or equivalent on your system and you're not sure
12768 # whether `pass_all' will *always* work, you probably want this one.
12770 case $host_os in
12771 aix[4-9]*)
12772 lt_cv_deplibs_check_method=pass_all
12775 beos*)
12776 lt_cv_deplibs_check_method=pass_all
12779 bsdi[45]*)
12780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12781 lt_cv_file_magic_cmd='/usr/bin/file -L'
12782 lt_cv_file_magic_test_file=/shlib/libc.so
12785 cygwin*)
12786 # func_win32_libid is a shell function defined in ltmain.sh
12787 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12788 lt_cv_file_magic_cmd='func_win32_libid'
12791 mingw* | pw32*)
12792 # Base MSYS/MinGW do not provide the 'file' command needed by
12793 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12794 # unless we find 'file', for example because we are cross-compiling.
12795 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12796 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12797 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12798 lt_cv_file_magic_cmd='func_win32_libid'
12799 else
12800 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12801 lt_cv_file_magic_cmd='$OBJDUMP -f'
12805 cegcc*)
12806 # use the weaker test based on 'objdump'. See mingw*.
12807 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12808 lt_cv_file_magic_cmd='$OBJDUMP -f'
12811 darwin* | rhapsody*)
12812 lt_cv_deplibs_check_method=pass_all
12815 freebsd* | dragonfly*)
12816 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12817 case $host_cpu in
12818 i*86 )
12819 # Not sure whether the presence of OpenBSD here was a mistake.
12820 # Let's accept both of them until this is cleared up.
12821 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12822 lt_cv_file_magic_cmd=/usr/bin/file
12823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12825 esac
12826 else
12827 lt_cv_deplibs_check_method=pass_all
12831 gnu*)
12832 lt_cv_deplibs_check_method=pass_all
12835 haiku*)
12836 lt_cv_deplibs_check_method=pass_all
12839 hpux10.20* | hpux11*)
12840 lt_cv_file_magic_cmd=/usr/bin/file
12841 case $host_cpu in
12842 ia64*)
12843 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12844 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12846 hppa*64*)
12847 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
12848 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12851 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12852 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12854 esac
12857 interix[3-9]*)
12858 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12862 irix5* | irix6* | nonstopux*)
12863 case $LD in
12864 *-32|*"-32 ") libmagic=32-bit;;
12865 *-n32|*"-n32 ") libmagic=N32;;
12866 *-64|*"-64 ") libmagic=64-bit;;
12867 *) libmagic=never-match;;
12868 esac
12869 lt_cv_deplibs_check_method=pass_all
12872 # This must be Linux ELF.
12873 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12874 lt_cv_deplibs_check_method=pass_all
12877 netbsd*)
12878 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12880 else
12881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12885 newos6*)
12886 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12887 lt_cv_file_magic_cmd=/usr/bin/file
12888 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12891 *nto* | *qnx*)
12892 lt_cv_deplibs_check_method=pass_all
12895 openbsd*)
12896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12898 else
12899 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12903 osf3* | osf4* | osf5*)
12904 lt_cv_deplibs_check_method=pass_all
12907 rdos*)
12908 lt_cv_deplibs_check_method=pass_all
12911 solaris*)
12912 lt_cv_deplibs_check_method=pass_all
12915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12916 lt_cv_deplibs_check_method=pass_all
12919 sysv4 | sysv4.3*)
12920 case $host_vendor in
12921 motorola)
12922 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]'
12923 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12925 ncr)
12926 lt_cv_deplibs_check_method=pass_all
12928 sequent)
12929 lt_cv_file_magic_cmd='/bin/file'
12930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12932 sni)
12933 lt_cv_file_magic_cmd='/bin/file'
12934 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12935 lt_cv_file_magic_test_file=/lib/libc.so
12937 siemens)
12938 lt_cv_deplibs_check_method=pass_all
12941 lt_cv_deplibs_check_method=pass_all
12943 esac
12946 tpf*)
12947 lt_cv_deplibs_check_method=pass_all
12949 esac
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12953 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12954 file_magic_cmd=$lt_cv_file_magic_cmd
12955 deplibs_check_method=$lt_cv_deplibs_check_method
12956 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12969 if test -n "$ac_tool_prefix"; then
12970 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12971 set dummy ${ac_tool_prefix}ar; ac_word=$2
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12973 $as_echo_n "checking for $ac_word... " >&6; }
12974 if test "${ac_cv_prog_AR+set}" = set; then :
12975 $as_echo_n "(cached) " >&6
12976 else
12977 if test -n "$AR"; then
12978 ac_cv_prog_AR="$AR" # Let the user override the test.
12979 else
12980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981 for as_dir in $PATH
12983 IFS=$as_save_IFS
12984 test -z "$as_dir" && as_dir=.
12985 for ac_exec_ext in '' $ac_executable_extensions; do
12986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12987 ac_cv_prog_AR="${ac_tool_prefix}ar"
12988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12989 break 2
12991 done
12992 done
12993 IFS=$as_save_IFS
12997 AR=$ac_cv_prog_AR
12998 if test -n "$AR"; then
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13000 $as_echo "$AR" >&6; }
13001 else
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003 $as_echo "no" >&6; }
13008 if test -z "$ac_cv_prog_AR"; then
13009 ac_ct_AR=$AR
13010 # Extract the first word of "ar", so it can be a program name with args.
13011 set dummy ar; ac_word=$2
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013 $as_echo_n "checking for $ac_word... " >&6; }
13014 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13015 $as_echo_n "(cached) " >&6
13016 else
13017 if test -n "$ac_ct_AR"; then
13018 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13019 else
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH
13023 IFS=$as_save_IFS
13024 test -z "$as_dir" && as_dir=.
13025 for ac_exec_ext in '' $ac_executable_extensions; do
13026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13027 ac_cv_prog_ac_ct_AR="ar"
13028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13029 break 2
13031 done
13032 done
13033 IFS=$as_save_IFS
13037 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13038 if test -n "$ac_ct_AR"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13040 $as_echo "$ac_ct_AR" >&6; }
13041 else
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13046 if test "x$ac_ct_AR" = x; then
13047 AR="false"
13048 else
13049 case $cross_compiling:$ac_tool_warned in
13050 yes:)
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13053 ac_tool_warned=yes ;;
13054 esac
13055 AR=$ac_ct_AR
13057 else
13058 AR="$ac_cv_prog_AR"
13061 test -z "$AR" && AR=ar
13062 test -z "$AR_FLAGS" && AR_FLAGS=cru
13074 if test -n "$ac_tool_prefix"; then
13075 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13076 set dummy ${ac_tool_prefix}strip; ac_word=$2
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13078 $as_echo_n "checking for $ac_word... " >&6; }
13079 if test "${ac_cv_prog_STRIP+set}" = set; then :
13080 $as_echo_n "(cached) " >&6
13081 else
13082 if test -n "$STRIP"; then
13083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13084 else
13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086 for as_dir in $PATH
13088 IFS=$as_save_IFS
13089 test -z "$as_dir" && as_dir=.
13090 for ac_exec_ext in '' $ac_executable_extensions; do
13091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13092 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13094 break 2
13096 done
13097 done
13098 IFS=$as_save_IFS
13102 STRIP=$ac_cv_prog_STRIP
13103 if test -n "$STRIP"; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13105 $as_echo "$STRIP" >&6; }
13106 else
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108 $as_echo "no" >&6; }
13113 if test -z "$ac_cv_prog_STRIP"; then
13114 ac_ct_STRIP=$STRIP
13115 # Extract the first word of "strip", so it can be a program name with args.
13116 set dummy strip; ac_word=$2
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13118 $as_echo_n "checking for $ac_word... " >&6; }
13119 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 if test -n "$ac_ct_STRIP"; then
13123 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13124 else
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 for as_dir in $PATH
13128 IFS=$as_save_IFS
13129 test -z "$as_dir" && as_dir=.
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13132 ac_cv_prog_ac_ct_STRIP="strip"
13133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13134 break 2
13136 done
13137 done
13138 IFS=$as_save_IFS
13142 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13143 if test -n "$ac_ct_STRIP"; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13145 $as_echo "$ac_ct_STRIP" >&6; }
13146 else
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13151 if test "x$ac_ct_STRIP" = x; then
13152 STRIP=":"
13153 else
13154 case $cross_compiling:$ac_tool_warned in
13155 yes:)
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13158 ac_tool_warned=yes ;;
13159 esac
13160 STRIP=$ac_ct_STRIP
13162 else
13163 STRIP="$ac_cv_prog_STRIP"
13166 test -z "$STRIP" && STRIP=:
13173 if test -n "$ac_tool_prefix"; then
13174 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13175 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177 $as_echo_n "checking for $ac_word... " >&6; }
13178 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13179 $as_echo_n "(cached) " >&6
13180 else
13181 if test -n "$RANLIB"; then
13182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13183 else
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13187 IFS=$as_save_IFS
13188 test -z "$as_dir" && as_dir=.
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13191 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13193 break 2
13195 done
13196 done
13197 IFS=$as_save_IFS
13201 RANLIB=$ac_cv_prog_RANLIB
13202 if test -n "$RANLIB"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13204 $as_echo "$RANLIB" >&6; }
13205 else
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13212 if test -z "$ac_cv_prog_RANLIB"; then
13213 ac_ct_RANLIB=$RANLIB
13214 # Extract the first word of "ranlib", so it can be a program name with args.
13215 set dummy ranlib; ac_word=$2
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13217 $as_echo_n "checking for $ac_word... " >&6; }
13218 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13219 $as_echo_n "(cached) " >&6
13220 else
13221 if test -n "$ac_ct_RANLIB"; then
13222 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13223 else
13224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13225 for as_dir in $PATH
13227 IFS=$as_save_IFS
13228 test -z "$as_dir" && as_dir=.
13229 for ac_exec_ext in '' $ac_executable_extensions; do
13230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13231 ac_cv_prog_ac_ct_RANLIB="ranlib"
13232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13233 break 2
13235 done
13236 done
13237 IFS=$as_save_IFS
13241 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13242 if test -n "$ac_ct_RANLIB"; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13244 $as_echo "$ac_ct_RANLIB" >&6; }
13245 else
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13247 $as_echo "no" >&6; }
13250 if test "x$ac_ct_RANLIB" = x; then
13251 RANLIB=":"
13252 else
13253 case $cross_compiling:$ac_tool_warned in
13254 yes:)
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13257 ac_tool_warned=yes ;;
13258 esac
13259 RANLIB=$ac_ct_RANLIB
13261 else
13262 RANLIB="$ac_cv_prog_RANLIB"
13265 test -z "$RANLIB" && RANLIB=:
13272 # Determine commands to create old-style static archives.
13273 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13274 old_postinstall_cmds='chmod 644 $oldlib'
13275 old_postuninstall_cmds=
13277 if test -n "$RANLIB"; then
13278 case $host_os in
13279 openbsd*)
13280 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13283 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13285 esac
13286 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13289 case $host_os in
13290 darwin*)
13291 lock_old_archive_extraction=yes ;;
13293 lock_old_archive_extraction=no ;;
13294 esac
13334 # If no C compiler was specified, use CC.
13335 LTCC=${LTCC-"$CC"}
13337 # If no C compiler flags were specified, use CFLAGS.
13338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13340 # Allow CC to be a program name with arguments.
13341 compiler=$CC
13344 # Check for command to grab the raw symbol name followed by C symbol from nm.
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13346 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13347 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13348 $as_echo_n "(cached) " >&6
13349 else
13351 # These are sane defaults that work on at least a few old systems.
13352 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13354 # Character class describing NM global symbol codes.
13355 symcode='[BCDEGRST]'
13357 # Regexp to match symbols that can be accessed directly from C.
13358 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13360 # Define system-specific variables.
13361 case $host_os in
13362 aix*)
13363 symcode='[BCDT]'
13365 cygwin* | mingw* | pw32* | cegcc*)
13366 symcode='[ABCDGISTW]'
13368 hpux*)
13369 if test "$host_cpu" = ia64; then
13370 symcode='[ABCDEGRST]'
13373 irix* | nonstopux*)
13374 symcode='[BCDEGRST]'
13376 osf*)
13377 symcode='[BCDEGQRST]'
13379 solaris*)
13380 symcode='[BDRT]'
13382 sco3.2v5*)
13383 symcode='[DT]'
13385 sysv4.2uw2*)
13386 symcode='[DT]'
13388 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13389 symcode='[ABDT]'
13391 sysv4)
13392 symcode='[DFNSTU]'
13394 esac
13396 # If we're using GNU nm, then use its standard symbol codes.
13397 case `$NM -V 2>&1` in
13398 *GNU* | *'with BFD'*)
13399 symcode='[ABCDGIRSTW]' ;;
13400 esac
13402 # Transform an extracted symbol line into a proper C declaration.
13403 # Some systems (esp. on ia64) link data and code symbols differently,
13404 # so use this general approach.
13405 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13407 # Transform an extracted symbol line into symbol name and symbol address
13408 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13409 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
13411 # Handle CRLF in mingw tool chain
13412 opt_cr=
13413 case $build_os in
13414 mingw*)
13415 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13417 esac
13419 # Try without a prefix underscore, then with it.
13420 for ac_symprfx in "" "_"; do
13422 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13423 symxfrm="\\1 $ac_symprfx\\2 \\2"
13425 # Write the raw and C identifiers.
13426 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13427 # Fake it for dumpbin and say T for any non-static function
13428 # and D for any global variable.
13429 # Also find C++ and __fastcall symbols from MSVC++,
13430 # which start with @ or ?.
13431 lt_cv_sys_global_symbol_pipe="$AWK '"\
13432 " {last_section=section; section=\$ 3};"\
13433 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13434 " \$ 0!~/External *\|/{next};"\
13435 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13436 " {if(hide[section]) next};"\
13437 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13438 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13439 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13440 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13441 " ' prfx=^$ac_symprfx"
13442 else
13443 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13446 # Check to see that the pipe works correctly.
13447 pipe_works=no
13449 rm -f conftest*
13450 cat > conftest.$ac_ext <<_LT_EOF
13451 #ifdef __cplusplus
13452 extern "C" {
13453 #endif
13454 char nm_test_var;
13455 void nm_test_func(void);
13456 void nm_test_func(void){}
13457 #ifdef __cplusplus
13459 #endif
13460 int main(){nm_test_var='a';nm_test_func();return(0);}
13461 _LT_EOF
13463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13464 (eval $ac_compile) 2>&5
13465 ac_status=$?
13466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13467 test $ac_status = 0; }; then
13468 # Now try to grab the symbols.
13469 nlist=conftest.nm
13470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13471 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13472 ac_status=$?
13473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13474 test $ac_status = 0; } && test -s "$nlist"; then
13475 # Try sorting and uniquifying the output.
13476 if sort "$nlist" | uniq > "$nlist"T; then
13477 mv -f "$nlist"T "$nlist"
13478 else
13479 rm -f "$nlist"T
13482 # Make sure that we snagged all the symbols we need.
13483 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13484 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13485 cat <<_LT_EOF > conftest.$ac_ext
13486 #ifdef __cplusplus
13487 extern "C" {
13488 #endif
13490 _LT_EOF
13491 # Now generate the symbol file.
13492 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13494 cat <<_LT_EOF >> conftest.$ac_ext
13496 /* The mapping between symbol names and symbols. */
13497 const struct {
13498 const char *name;
13499 void *address;
13501 lt__PROGRAM__LTX_preloaded_symbols[] =
13503 { "@PROGRAM@", (void *) 0 },
13504 _LT_EOF
13505 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13506 cat <<\_LT_EOF >> conftest.$ac_ext
13507 {0, (void *) 0}
13510 /* This works around a problem in FreeBSD linker */
13511 #ifdef FREEBSD_WORKAROUND
13512 static const void *lt_preloaded_setup() {
13513 return lt__PROGRAM__LTX_preloaded_symbols;
13515 #endif
13517 #ifdef __cplusplus
13519 #endif
13520 _LT_EOF
13521 # Now try linking the two files.
13522 mv conftest.$ac_objext conftstm.$ac_objext
13523 lt_save_LIBS="$LIBS"
13524 lt_save_CFLAGS="$CFLAGS"
13525 LIBS="conftstm.$ac_objext"
13526 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13528 (eval $ac_link) 2>&5
13529 ac_status=$?
13530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13531 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13532 pipe_works=yes
13534 LIBS="$lt_save_LIBS"
13535 CFLAGS="$lt_save_CFLAGS"
13536 else
13537 echo "cannot find nm_test_func in $nlist" >&5
13539 else
13540 echo "cannot find nm_test_var in $nlist" >&5
13542 else
13543 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13545 else
13546 echo "$progname: failed program was:" >&5
13547 cat conftest.$ac_ext >&5
13549 rm -rf conftest* conftst*
13551 # Do not use the global_symbol_pipe unless it works.
13552 if test "$pipe_works" = yes; then
13553 break
13554 else
13555 lt_cv_sys_global_symbol_pipe=
13557 done
13561 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13562 lt_cv_sys_global_symbol_to_cdecl=
13564 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13566 $as_echo "failed" >&6; }
13567 else
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13569 $as_echo "ok" >&6; }
13593 # Check whether --enable-libtool-lock was given.
13594 if test "${enable_libtool_lock+set}" = set; then :
13595 enableval=$enable_libtool_lock;
13598 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13600 # Some flags need to be propagated to the compiler or linker for good
13601 # libtool support.
13602 case $host in
13603 ia64-*-hpux*)
13604 # Find out which ABI we are using.
13605 echo 'int i;' > conftest.$ac_ext
13606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13607 (eval $ac_compile) 2>&5
13608 ac_status=$?
13609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13610 test $ac_status = 0; }; then
13611 case `/usr/bin/file conftest.$ac_objext` in
13612 *ELF-32*)
13613 HPUX_IA64_MODE="32"
13615 *ELF-64*)
13616 HPUX_IA64_MODE="64"
13618 esac
13620 rm -rf conftest*
13622 *-*-irix6*)
13623 # Find out which ABI we are using.
13624 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13626 (eval $ac_compile) 2>&5
13627 ac_status=$?
13628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13629 test $ac_status = 0; }; then
13630 if test "$lt_cv_prog_gnu_ld" = yes; then
13631 case `/usr/bin/file conftest.$ac_objext` in
13632 *32-bit*)
13633 LD="${LD-ld} -melf32bsmip"
13635 *N32*)
13636 LD="${LD-ld} -melf32bmipn32"
13638 *64-bit*)
13639 LD="${LD-ld} -melf64bmip"
13641 esac
13642 else
13643 case `/usr/bin/file conftest.$ac_objext` in
13644 *32-bit*)
13645 LD="${LD-ld} -32"
13647 *N32*)
13648 LD="${LD-ld} -n32"
13650 *64-bit*)
13651 LD="${LD-ld} -64"
13653 esac
13656 rm -rf conftest*
13659 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13660 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13661 # Find out which ABI we are using.
13662 echo 'int i;' > conftest.$ac_ext
13663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13664 (eval $ac_compile) 2>&5
13665 ac_status=$?
13666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13667 test $ac_status = 0; }; then
13668 case `/usr/bin/file conftest.o` in
13669 *32-bit*)
13670 case $host in
13671 x86_64-*kfreebsd*-gnu)
13672 LD="${LD-ld} -m elf_i386_fbsd"
13674 x86_64-*linux*)
13675 case `/usr/bin/file conftest.o` in
13676 *x86-64*)
13677 LD="${LD-ld} -m elf32_x86_64"
13680 LD="${LD-ld} -m elf_i386"
13682 esac
13684 ppc64-*linux*|powerpc64-*linux*)
13685 LD="${LD-ld} -m elf32ppclinux"
13687 s390x-*linux*)
13688 LD="${LD-ld} -m elf_s390"
13690 sparc64-*linux*)
13691 LD="${LD-ld} -m elf32_sparc"
13693 esac
13695 *64-bit*)
13696 case $host in
13697 x86_64-*kfreebsd*-gnu)
13698 LD="${LD-ld} -m elf_x86_64_fbsd"
13700 x86_64-*linux*)
13701 LD="${LD-ld} -m elf_x86_64"
13703 ppc*-*linux*|powerpc*-*linux*)
13704 LD="${LD-ld} -m elf64ppc"
13706 s390*-*linux*|s390*-*tpf*)
13707 LD="${LD-ld} -m elf64_s390"
13709 sparc*-*linux*)
13710 LD="${LD-ld} -m elf64_sparc"
13712 esac
13714 esac
13716 rm -rf conftest*
13719 *-*-sco3.2v5*)
13720 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13721 SAVE_CFLAGS="$CFLAGS"
13722 CFLAGS="$CFLAGS -belf"
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13724 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13725 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13726 $as_echo_n "(cached) " >&6
13727 else
13728 ac_ext=c
13729 ac_cpp='$CPP $CPPFLAGS'
13730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13735 /* end confdefs.h. */
13738 main ()
13742 return 0;
13744 _ACEOF
13745 if ac_fn_c_try_link "$LINENO"; then :
13746 lt_cv_cc_needs_belf=yes
13747 else
13748 lt_cv_cc_needs_belf=no
13750 rm -f core conftest.err conftest.$ac_objext \
13751 conftest$ac_exeext conftest.$ac_ext
13752 ac_ext=c
13753 ac_cpp='$CPP $CPPFLAGS'
13754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13760 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13761 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13762 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13763 CFLAGS="$SAVE_CFLAGS"
13766 sparc*-*solaris*)
13767 # Find out which ABI we are using.
13768 echo 'int i;' > conftest.$ac_ext
13769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13770 (eval $ac_compile) 2>&5
13771 ac_status=$?
13772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13773 test $ac_status = 0; }; then
13774 case `/usr/bin/file conftest.o` in
13775 *64-bit*)
13776 case $lt_cv_prog_gnu_ld in
13777 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13779 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13780 LD="${LD-ld} -64"
13783 esac
13785 esac
13787 rm -rf conftest*
13789 esac
13791 need_locks="$enable_libtool_lock"
13794 case $host_os in
13795 rhapsody* | darwin*)
13796 if test -n "$ac_tool_prefix"; then
13797 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13798 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13800 $as_echo_n "checking for $ac_word... " >&6; }
13801 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13802 $as_echo_n "(cached) " >&6
13803 else
13804 if test -n "$DSYMUTIL"; then
13805 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13806 else
13807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808 for as_dir in $PATH
13810 IFS=$as_save_IFS
13811 test -z "$as_dir" && as_dir=.
13812 for ac_exec_ext in '' $ac_executable_extensions; do
13813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13814 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13816 break 2
13818 done
13819 done
13820 IFS=$as_save_IFS
13824 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13825 if test -n "$DSYMUTIL"; then
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13827 $as_echo "$DSYMUTIL" >&6; }
13828 else
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13830 $as_echo "no" >&6; }
13835 if test -z "$ac_cv_prog_DSYMUTIL"; then
13836 ac_ct_DSYMUTIL=$DSYMUTIL
13837 # Extract the first word of "dsymutil", so it can be a program name with args.
13838 set dummy dsymutil; ac_word=$2
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13840 $as_echo_n "checking for $ac_word... " >&6; }
13841 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13842 $as_echo_n "(cached) " >&6
13843 else
13844 if test -n "$ac_ct_DSYMUTIL"; then
13845 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13846 else
13847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848 for as_dir in $PATH
13850 IFS=$as_save_IFS
13851 test -z "$as_dir" && as_dir=.
13852 for ac_exec_ext in '' $ac_executable_extensions; do
13853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13854 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13856 break 2
13858 done
13859 done
13860 IFS=$as_save_IFS
13864 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13865 if test -n "$ac_ct_DSYMUTIL"; then
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13867 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13868 else
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870 $as_echo "no" >&6; }
13873 if test "x$ac_ct_DSYMUTIL" = x; then
13874 DSYMUTIL=":"
13875 else
13876 case $cross_compiling:$ac_tool_warned in
13877 yes:)
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13880 ac_tool_warned=yes ;;
13881 esac
13882 DSYMUTIL=$ac_ct_DSYMUTIL
13884 else
13885 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13888 if test -n "$ac_tool_prefix"; then
13889 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13890 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13892 $as_echo_n "checking for $ac_word... " >&6; }
13893 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13894 $as_echo_n "(cached) " >&6
13895 else
13896 if test -n "$NMEDIT"; then
13897 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13898 else
13899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13900 for as_dir in $PATH
13902 IFS=$as_save_IFS
13903 test -z "$as_dir" && as_dir=.
13904 for ac_exec_ext in '' $ac_executable_extensions; do
13905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13906 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13908 break 2
13910 done
13911 done
13912 IFS=$as_save_IFS
13916 NMEDIT=$ac_cv_prog_NMEDIT
13917 if test -n "$NMEDIT"; then
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13919 $as_echo "$NMEDIT" >&6; }
13920 else
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13922 $as_echo "no" >&6; }
13927 if test -z "$ac_cv_prog_NMEDIT"; then
13928 ac_ct_NMEDIT=$NMEDIT
13929 # Extract the first word of "nmedit", so it can be a program name with args.
13930 set dummy nmedit; ac_word=$2
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13932 $as_echo_n "checking for $ac_word... " >&6; }
13933 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13934 $as_echo_n "(cached) " >&6
13935 else
13936 if test -n "$ac_ct_NMEDIT"; then
13937 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13938 else
13939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13940 for as_dir in $PATH
13942 IFS=$as_save_IFS
13943 test -z "$as_dir" && as_dir=.
13944 for ac_exec_ext in '' $ac_executable_extensions; do
13945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13946 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13948 break 2
13950 done
13951 done
13952 IFS=$as_save_IFS
13956 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13957 if test -n "$ac_ct_NMEDIT"; then
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13959 $as_echo "$ac_ct_NMEDIT" >&6; }
13960 else
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13962 $as_echo "no" >&6; }
13965 if test "x$ac_ct_NMEDIT" = x; then
13966 NMEDIT=":"
13967 else
13968 case $cross_compiling:$ac_tool_warned in
13969 yes:)
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13972 ac_tool_warned=yes ;;
13973 esac
13974 NMEDIT=$ac_ct_NMEDIT
13976 else
13977 NMEDIT="$ac_cv_prog_NMEDIT"
13980 if test -n "$ac_tool_prefix"; then
13981 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13982 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13984 $as_echo_n "checking for $ac_word... " >&6; }
13985 if test "${ac_cv_prog_LIPO+set}" = set; then :
13986 $as_echo_n "(cached) " >&6
13987 else
13988 if test -n "$LIPO"; then
13989 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13990 else
13991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992 for as_dir in $PATH
13994 IFS=$as_save_IFS
13995 test -z "$as_dir" && as_dir=.
13996 for ac_exec_ext in '' $ac_executable_extensions; do
13997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13998 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14000 break 2
14002 done
14003 done
14004 IFS=$as_save_IFS
14008 LIPO=$ac_cv_prog_LIPO
14009 if test -n "$LIPO"; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14011 $as_echo "$LIPO" >&6; }
14012 else
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014 $as_echo "no" >&6; }
14019 if test -z "$ac_cv_prog_LIPO"; then
14020 ac_ct_LIPO=$LIPO
14021 # Extract the first word of "lipo", so it can be a program name with args.
14022 set dummy lipo; ac_word=$2
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14024 $as_echo_n "checking for $ac_word... " >&6; }
14025 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14026 $as_echo_n "(cached) " >&6
14027 else
14028 if test -n "$ac_ct_LIPO"; then
14029 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14030 else
14031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14032 for as_dir in $PATH
14034 IFS=$as_save_IFS
14035 test -z "$as_dir" && as_dir=.
14036 for ac_exec_ext in '' $ac_executable_extensions; do
14037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14038 ac_cv_prog_ac_ct_LIPO="lipo"
14039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14040 break 2
14042 done
14043 done
14044 IFS=$as_save_IFS
14048 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14049 if test -n "$ac_ct_LIPO"; then
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14051 $as_echo "$ac_ct_LIPO" >&6; }
14052 else
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14054 $as_echo "no" >&6; }
14057 if test "x$ac_ct_LIPO" = x; then
14058 LIPO=":"
14059 else
14060 case $cross_compiling:$ac_tool_warned in
14061 yes:)
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14064 ac_tool_warned=yes ;;
14065 esac
14066 LIPO=$ac_ct_LIPO
14068 else
14069 LIPO="$ac_cv_prog_LIPO"
14072 if test -n "$ac_tool_prefix"; then
14073 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14074 set dummy ${ac_tool_prefix}otool; ac_word=$2
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14076 $as_echo_n "checking for $ac_word... " >&6; }
14077 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 if test -n "$OTOOL"; then
14081 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14082 else
14083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14084 for as_dir in $PATH
14086 IFS=$as_save_IFS
14087 test -z "$as_dir" && as_dir=.
14088 for ac_exec_ext in '' $ac_executable_extensions; do
14089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14090 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14092 break 2
14094 done
14095 done
14096 IFS=$as_save_IFS
14100 OTOOL=$ac_cv_prog_OTOOL
14101 if test -n "$OTOOL"; then
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14103 $as_echo "$OTOOL" >&6; }
14104 else
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14106 $as_echo "no" >&6; }
14111 if test -z "$ac_cv_prog_OTOOL"; then
14112 ac_ct_OTOOL=$OTOOL
14113 # Extract the first word of "otool", so it can be a program name with args.
14114 set dummy otool; ac_word=$2
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14116 $as_echo_n "checking for $ac_word... " >&6; }
14117 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14118 $as_echo_n "(cached) " >&6
14119 else
14120 if test -n "$ac_ct_OTOOL"; then
14121 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14122 else
14123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14124 for as_dir in $PATH
14126 IFS=$as_save_IFS
14127 test -z "$as_dir" && as_dir=.
14128 for ac_exec_ext in '' $ac_executable_extensions; do
14129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14130 ac_cv_prog_ac_ct_OTOOL="otool"
14131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14132 break 2
14134 done
14135 done
14136 IFS=$as_save_IFS
14140 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14141 if test -n "$ac_ct_OTOOL"; then
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14143 $as_echo "$ac_ct_OTOOL" >&6; }
14144 else
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14146 $as_echo "no" >&6; }
14149 if test "x$ac_ct_OTOOL" = x; then
14150 OTOOL=":"
14151 else
14152 case $cross_compiling:$ac_tool_warned in
14153 yes:)
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14156 ac_tool_warned=yes ;;
14157 esac
14158 OTOOL=$ac_ct_OTOOL
14160 else
14161 OTOOL="$ac_cv_prog_OTOOL"
14164 if test -n "$ac_tool_prefix"; then
14165 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14166 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14168 $as_echo_n "checking for $ac_word... " >&6; }
14169 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14170 $as_echo_n "(cached) " >&6
14171 else
14172 if test -n "$OTOOL64"; then
14173 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14174 else
14175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14178 IFS=$as_save_IFS
14179 test -z "$as_dir" && as_dir=.
14180 for ac_exec_ext in '' $ac_executable_extensions; do
14181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14182 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14184 break 2
14186 done
14187 done
14188 IFS=$as_save_IFS
14192 OTOOL64=$ac_cv_prog_OTOOL64
14193 if test -n "$OTOOL64"; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14195 $as_echo "$OTOOL64" >&6; }
14196 else
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198 $as_echo "no" >&6; }
14203 if test -z "$ac_cv_prog_OTOOL64"; then
14204 ac_ct_OTOOL64=$OTOOL64
14205 # Extract the first word of "otool64", so it can be a program name with args.
14206 set dummy otool64; ac_word=$2
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14208 $as_echo_n "checking for $ac_word... " >&6; }
14209 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 if test -n "$ac_ct_OTOOL64"; then
14213 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14214 else
14215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14216 for as_dir in $PATH
14218 IFS=$as_save_IFS
14219 test -z "$as_dir" && as_dir=.
14220 for ac_exec_ext in '' $ac_executable_extensions; do
14221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14222 ac_cv_prog_ac_ct_OTOOL64="otool64"
14223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14224 break 2
14226 done
14227 done
14228 IFS=$as_save_IFS
14232 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14233 if test -n "$ac_ct_OTOOL64"; then
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14235 $as_echo "$ac_ct_OTOOL64" >&6; }
14236 else
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238 $as_echo "no" >&6; }
14241 if test "x$ac_ct_OTOOL64" = x; then
14242 OTOOL64=":"
14243 else
14244 case $cross_compiling:$ac_tool_warned in
14245 yes:)
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14248 ac_tool_warned=yes ;;
14249 esac
14250 OTOOL64=$ac_ct_OTOOL64
14252 else
14253 OTOOL64="$ac_cv_prog_OTOOL64"
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14283 $as_echo_n "checking for -single_module linker flag... " >&6; }
14284 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14285 $as_echo_n "(cached) " >&6
14286 else
14287 lt_cv_apple_cc_single_mod=no
14288 if test -z "${LT_MULTI_MODULE}"; then
14289 # By default we will add the -single_module flag. You can override
14290 # by either setting the environment variable LT_MULTI_MODULE
14291 # non-empty at configure time, or by adding -multi_module to the
14292 # link flags.
14293 rm -rf libconftest.dylib*
14294 echo "int foo(void){return 1;}" > conftest.c
14295 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14296 -dynamiclib -Wl,-single_module conftest.c" >&5
14297 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14298 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14299 _lt_result=$?
14300 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14301 lt_cv_apple_cc_single_mod=yes
14302 else
14303 cat conftest.err >&5
14305 rm -rf libconftest.dylib*
14306 rm -f conftest.*
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14310 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14312 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14313 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316 lt_cv_ld_exported_symbols_list=no
14317 save_LDFLAGS=$LDFLAGS
14318 echo "_main" > conftest.sym
14319 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h. */
14324 main ()
14328 return 0;
14330 _ACEOF
14331 if ac_fn_c_try_link "$LINENO"; then :
14332 lt_cv_ld_exported_symbols_list=yes
14333 else
14334 lt_cv_ld_exported_symbols_list=no
14336 rm -f core conftest.err conftest.$ac_objext \
14337 conftest$ac_exeext conftest.$ac_ext
14338 LDFLAGS="$save_LDFLAGS"
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14342 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14344 $as_echo_n "checking for -force_load linker flag... " >&6; }
14345 if test "${lt_cv_ld_force_load+set}" = set; then :
14346 $as_echo_n "(cached) " >&6
14347 else
14348 lt_cv_ld_force_load=no
14349 cat > conftest.c << _LT_EOF
14350 int forced_loaded() { return 2;}
14351 _LT_EOF
14352 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14353 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14354 echo "$AR cru libconftest.a conftest.o" >&5
14355 $AR cru libconftest.a conftest.o 2>&5
14356 cat > conftest.c << _LT_EOF
14357 int main() { return 0;}
14358 _LT_EOF
14359 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14360 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14361 _lt_result=$?
14362 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14363 lt_cv_ld_force_load=yes
14364 else
14365 cat conftest.err >&5
14367 rm -f conftest.err libconftest.a conftest conftest.c
14368 rm -rf conftest.dSYM
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14372 $as_echo "$lt_cv_ld_force_load" >&6; }
14373 case $host_os in
14374 rhapsody* | darwin1.[012])
14375 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14376 darwin1.*)
14377 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14378 darwin*) # darwin 5.x on
14379 # if running on 10.5 or later, the deployment target defaults
14380 # to the OS version, if on x86, and 10.4, the deployment
14381 # target defaults to 10.4. Don't you love it?
14382 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14383 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14384 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14385 10.[012]*)
14386 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14387 10.*)
14388 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14389 esac
14391 esac
14392 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14393 _lt_dar_single_mod='$single_module'
14395 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14396 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14397 else
14398 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14400 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14401 _lt_dsymutil='~$DSYMUTIL $lib || :'
14402 else
14403 _lt_dsymutil=
14406 esac
14408 for ac_header in dlfcn.h
14409 do :
14410 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14411 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14412 cat >>confdefs.h <<_ACEOF
14413 #define HAVE_DLFCN_H 1
14414 _ACEOF
14417 done
14423 # Set options
14427 enable_dlopen=no
14430 enable_win32_dll=no
14433 # Check whether --enable-shared was given.
14434 if test "${enable_shared+set}" = set; then :
14435 enableval=$enable_shared; p=${PACKAGE-default}
14436 case $enableval in
14437 yes) enable_shared=yes ;;
14438 no) enable_shared=no ;;
14440 enable_shared=no
14441 # Look at the argument we got. We use all the common list separators.
14442 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14443 for pkg in $enableval; do
14444 IFS="$lt_save_ifs"
14445 if test "X$pkg" = "X$p"; then
14446 enable_shared=yes
14448 done
14449 IFS="$lt_save_ifs"
14451 esac
14452 else
14453 enable_shared=yes
14464 # Check whether --enable-static was given.
14465 if test "${enable_static+set}" = set; then :
14466 enableval=$enable_static; p=${PACKAGE-default}
14467 case $enableval in
14468 yes) enable_static=yes ;;
14469 no) enable_static=no ;;
14471 enable_static=no
14472 # Look at the argument we got. We use all the common list separators.
14473 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14474 for pkg in $enableval; do
14475 IFS="$lt_save_ifs"
14476 if test "X$pkg" = "X$p"; then
14477 enable_static=yes
14479 done
14480 IFS="$lt_save_ifs"
14482 esac
14483 else
14484 enable_static=yes
14496 # Check whether --with-pic was given.
14497 if test "${with_pic+set}" = set; then :
14498 withval=$with_pic; pic_mode="$withval"
14499 else
14500 pic_mode=default
14504 test -z "$pic_mode" && pic_mode=default
14512 # Check whether --enable-fast-install was given.
14513 if test "${enable_fast_install+set}" = set; then :
14514 enableval=$enable_fast_install; p=${PACKAGE-default}
14515 case $enableval in
14516 yes) enable_fast_install=yes ;;
14517 no) enable_fast_install=no ;;
14519 enable_fast_install=no
14520 # Look at the argument we got. We use all the common list separators.
14521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14522 for pkg in $enableval; do
14523 IFS="$lt_save_ifs"
14524 if test "X$pkg" = "X$p"; then
14525 enable_fast_install=yes
14527 done
14528 IFS="$lt_save_ifs"
14530 esac
14531 else
14532 enable_fast_install=yes
14545 # This can be used to rebuild libtool when needed
14546 LIBTOOL_DEPS="$ltmain"
14548 # Always use our own libtool.
14549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14576 test -z "$LN_S" && LN_S="ln -s"
14591 if test -n "${ZSH_VERSION+set}" ; then
14592 setopt NO_GLOB_SUBST
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14596 $as_echo_n "checking for objdir... " >&6; }
14597 if test "${lt_cv_objdir+set}" = set; then :
14598 $as_echo_n "(cached) " >&6
14599 else
14600 rm -f .libs 2>/dev/null
14601 mkdir .libs 2>/dev/null
14602 if test -d .libs; then
14603 lt_cv_objdir=.libs
14604 else
14605 # MS-DOS does not allow filenames that begin with a dot.
14606 lt_cv_objdir=_libs
14608 rmdir .libs 2>/dev/null
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14611 $as_echo "$lt_cv_objdir" >&6; }
14612 objdir=$lt_cv_objdir
14618 cat >>confdefs.h <<_ACEOF
14619 #define LT_OBJDIR "$lt_cv_objdir/"
14620 _ACEOF
14625 case $host_os in
14626 aix3*)
14627 # AIX sometimes has problems with the GCC collect2 program. For some
14628 # reason, if we set the COLLECT_NAMES environment variable, the problems
14629 # vanish in a puff of smoke.
14630 if test "X${COLLECT_NAMES+set}" != Xset; then
14631 COLLECT_NAMES=
14632 export COLLECT_NAMES
14635 esac
14637 # Global variables:
14638 ofile=libtool
14639 can_build_shared=yes
14641 # All known linkers require a `.a' archive for static linking (except MSVC,
14642 # which needs '.lib').
14643 libext=a
14645 with_gnu_ld="$lt_cv_prog_gnu_ld"
14647 old_CC="$CC"
14648 old_CFLAGS="$CFLAGS"
14650 # Set sane defaults for various variables
14651 test -z "$CC" && CC=cc
14652 test -z "$LTCC" && LTCC=$CC
14653 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14654 test -z "$LD" && LD=ld
14655 test -z "$ac_objext" && ac_objext=o
14657 for cc_temp in $compiler""; do
14658 case $cc_temp in
14659 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14660 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14661 \-*) ;;
14662 *) break;;
14663 esac
14664 done
14665 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14668 # Only perform the check for file, if the check method requires it
14669 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14670 case $deplibs_check_method in
14671 file_magic*)
14672 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14674 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14675 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14676 $as_echo_n "(cached) " >&6
14677 else
14678 case $MAGIC_CMD in
14679 [\\/*] | ?:[\\/]*)
14680 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14683 lt_save_MAGIC_CMD="$MAGIC_CMD"
14684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14686 for ac_dir in $ac_dummy; do
14687 IFS="$lt_save_ifs"
14688 test -z "$ac_dir" && ac_dir=.
14689 if test -f $ac_dir/${ac_tool_prefix}file; then
14690 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14691 if test -n "$file_magic_test_file"; then
14692 case $deplibs_check_method in
14693 "file_magic "*)
14694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14697 $EGREP "$file_magic_regex" > /dev/null; then
14699 else
14700 cat <<_LT_EOF 1>&2
14702 *** Warning: the command libtool uses to detect shared libraries,
14703 *** $file_magic_cmd, produces output that libtool cannot recognize.
14704 *** The result is that libtool may fail to recognize shared libraries
14705 *** as such. This will affect the creation of libtool libraries that
14706 *** depend on shared libraries, but programs linked with such libtool
14707 *** libraries will work regardless of this problem. Nevertheless, you
14708 *** may want to report the problem to your system manager and/or to
14709 *** bug-libtool@gnu.org
14711 _LT_EOF
14712 fi ;;
14713 esac
14715 break
14717 done
14718 IFS="$lt_save_ifs"
14719 MAGIC_CMD="$lt_save_MAGIC_CMD"
14721 esac
14724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14725 if test -n "$MAGIC_CMD"; then
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14727 $as_echo "$MAGIC_CMD" >&6; }
14728 else
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14730 $as_echo "no" >&6; }
14737 if test -z "$lt_cv_path_MAGIC_CMD"; then
14738 if test -n "$ac_tool_prefix"; then
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14740 $as_echo_n "checking for file... " >&6; }
14741 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14742 $as_echo_n "(cached) " >&6
14743 else
14744 case $MAGIC_CMD in
14745 [\\/*] | ?:[\\/]*)
14746 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14749 lt_save_MAGIC_CMD="$MAGIC_CMD"
14750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14751 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14752 for ac_dir in $ac_dummy; do
14753 IFS="$lt_save_ifs"
14754 test -z "$ac_dir" && ac_dir=.
14755 if test -f $ac_dir/file; then
14756 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14757 if test -n "$file_magic_test_file"; then
14758 case $deplibs_check_method in
14759 "file_magic "*)
14760 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14761 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14762 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14763 $EGREP "$file_magic_regex" > /dev/null; then
14765 else
14766 cat <<_LT_EOF 1>&2
14768 *** Warning: the command libtool uses to detect shared libraries,
14769 *** $file_magic_cmd, produces output that libtool cannot recognize.
14770 *** The result is that libtool may fail to recognize shared libraries
14771 *** as such. This will affect the creation of libtool libraries that
14772 *** depend on shared libraries, but programs linked with such libtool
14773 *** libraries will work regardless of this problem. Nevertheless, you
14774 *** may want to report the problem to your system manager and/or to
14775 *** bug-libtool@gnu.org
14777 _LT_EOF
14778 fi ;;
14779 esac
14781 break
14783 done
14784 IFS="$lt_save_ifs"
14785 MAGIC_CMD="$lt_save_MAGIC_CMD"
14787 esac
14790 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14791 if test -n "$MAGIC_CMD"; then
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14793 $as_echo "$MAGIC_CMD" >&6; }
14794 else
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14796 $as_echo "no" >&6; }
14800 else
14801 MAGIC_CMD=:
14807 esac
14809 # Use C for the default configuration in the libtool script
14811 lt_save_CC="$CC"
14812 ac_ext=c
14813 ac_cpp='$CPP $CPPFLAGS'
14814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14819 # Source file extension for C test sources.
14820 ac_ext=c
14822 # Object file extension for compiled C test sources.
14823 objext=o
14824 objext=$objext
14826 # Code to be used in simple compile tests
14827 lt_simple_compile_test_code="int some_variable = 0;"
14829 # Code to be used in simple link tests
14830 lt_simple_link_test_code='int main(){return(0);}'
14838 # If no C compiler was specified, use CC.
14839 LTCC=${LTCC-"$CC"}
14841 # If no C compiler flags were specified, use CFLAGS.
14842 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14844 # Allow CC to be a program name with arguments.
14845 compiler=$CC
14847 # Save the default compiler, since it gets overwritten when the other
14848 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14849 compiler_DEFAULT=$CC
14851 # save warnings/boilerplate of simple test code
14852 ac_outfile=conftest.$ac_objext
14853 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14854 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14855 _lt_compiler_boilerplate=`cat conftest.err`
14856 $RM conftest*
14858 ac_outfile=conftest.$ac_objext
14859 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14860 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14861 _lt_linker_boilerplate=`cat conftest.err`
14862 $RM -r conftest*
14865 ## CAVEAT EMPTOR:
14866 ## There is no encapsulation within the following macros, do not change
14867 ## the running order or otherwise move them around unless you know exactly
14868 ## what you are doing...
14869 if test -n "$compiler"; then
14871 lt_prog_compiler_no_builtin_flag=
14873 if test "$GCC" = yes; then
14874 case $cc_basename in
14875 nvcc*)
14876 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14878 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14879 esac
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14882 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14883 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14884 $as_echo_n "(cached) " >&6
14885 else
14886 lt_cv_prog_compiler_rtti_exceptions=no
14887 ac_outfile=conftest.$ac_objext
14888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14889 lt_compiler_flag="-fno-rtti -fno-exceptions"
14890 # Insert the option either (1) after the last *FLAGS variable, or
14891 # (2) before a word containing "conftest.", or (3) at the end.
14892 # Note that $ac_compile itself does not contain backslashes and begins
14893 # with a dollar sign (not a hyphen), so the echo should work correctly.
14894 # The option is referenced via a variable to avoid confusing sed.
14895 lt_compile=`echo "$ac_compile" | $SED \
14896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14898 -e 's:$: $lt_compiler_flag:'`
14899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14900 (eval "$lt_compile" 2>conftest.err)
14901 ac_status=$?
14902 cat conftest.err >&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 if (exit $ac_status) && test -s "$ac_outfile"; then
14905 # The compiler can only warn and ignore the option if not recognized
14906 # So say no if there are warnings other than the usual output.
14907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14910 lt_cv_prog_compiler_rtti_exceptions=yes
14913 $RM conftest*
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14917 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14919 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14920 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14921 else
14932 lt_prog_compiler_wl=
14933 lt_prog_compiler_pic=
14934 lt_prog_compiler_static=
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14937 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14939 if test "$GCC" = yes; then
14940 lt_prog_compiler_wl='-Wl,'
14941 lt_prog_compiler_static='-static'
14943 case $host_os in
14944 aix*)
14945 # All AIX code is PIC.
14946 if test "$host_cpu" = ia64; then
14947 # AIX 5 now supports IA64 processor
14948 lt_prog_compiler_static='-Bstatic'
14950 lt_prog_compiler_pic='-fPIC'
14953 amigaos*)
14954 case $host_cpu in
14955 powerpc)
14956 # see comment about AmigaOS4 .so support
14957 lt_prog_compiler_pic='-fPIC'
14959 m68k)
14960 # FIXME: we need at least 68020 code to build shared libraries, but
14961 # adding the `-m68020' flag to GCC prevents building anything better,
14962 # like `-m68040'.
14963 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14965 esac
14968 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14969 # PIC is the default for these OSes.
14972 mingw* | cygwin* | pw32* | os2* | cegcc*)
14973 # This hack is so that the source file can tell whether it is being
14974 # built for inclusion in a dll (and should export symbols for example).
14975 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14976 # (--disable-auto-import) libraries
14977 lt_prog_compiler_pic='-DDLL_EXPORT'
14980 darwin* | rhapsody*)
14981 # PIC is the default on this platform
14982 # Common symbols not allowed in MH_DYLIB files
14983 lt_prog_compiler_pic='-fno-common'
14986 haiku*)
14987 # PIC is the default for Haiku.
14988 # The "-static" flag exists, but is broken.
14989 lt_prog_compiler_static=
14992 hpux*)
14993 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14994 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14995 # sets the default TLS model and affects inlining.
14996 case $host_cpu in
14997 hppa*64*)
14998 # +Z the default
15001 lt_prog_compiler_pic='-fPIC'
15003 esac
15006 interix[3-9]*)
15007 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15008 # Instead, we relocate shared libraries at runtime.
15011 msdosdjgpp*)
15012 # Just because we use GCC doesn't mean we suddenly get shared libraries
15013 # on systems that don't support them.
15014 lt_prog_compiler_can_build_shared=no
15015 enable_shared=no
15018 *nto* | *qnx*)
15019 # QNX uses GNU C++, but need to define -shared option too, otherwise
15020 # it will coredump.
15021 lt_prog_compiler_pic='-fPIC -shared'
15024 sysv4*MP*)
15025 if test -d /usr/nec; then
15026 lt_prog_compiler_pic=-Kconform_pic
15031 lt_prog_compiler_pic='-fPIC'
15033 esac
15035 case $cc_basename in
15036 nvcc*) # Cuda Compiler Driver 2.2
15037 lt_prog_compiler_wl='-Xlinker '
15038 lt_prog_compiler_pic='-Xcompiler -fPIC'
15040 esac
15041 else
15042 # PORTME Check for flag to pass linker flags through the system compiler.
15043 case $host_os in
15044 aix*)
15045 lt_prog_compiler_wl='-Wl,'
15046 if test "$host_cpu" = ia64; then
15047 # AIX 5 now supports IA64 processor
15048 lt_prog_compiler_static='-Bstatic'
15049 else
15050 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15054 mingw* | cygwin* | pw32* | os2* | cegcc*)
15055 # This hack is so that the source file can tell whether it is being
15056 # built for inclusion in a dll (and should export symbols for example).
15057 lt_prog_compiler_pic='-DDLL_EXPORT'
15060 hpux9* | hpux10* | hpux11*)
15061 lt_prog_compiler_wl='-Wl,'
15062 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15063 # not for PA HP-UX.
15064 case $host_cpu in
15065 hppa*64*|ia64*)
15066 # +Z the default
15069 lt_prog_compiler_pic='+Z'
15071 esac
15072 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15073 lt_prog_compiler_static='${wl}-a ${wl}archive'
15076 irix5* | irix6* | nonstopux*)
15077 lt_prog_compiler_wl='-Wl,'
15078 # PIC (with -KPIC) is the default.
15079 lt_prog_compiler_static='-non_shared'
15082 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15083 case $cc_basename in
15084 # old Intel for x86_64 which still supported -KPIC.
15085 ecc*)
15086 lt_prog_compiler_wl='-Wl,'
15087 lt_prog_compiler_pic='-KPIC'
15088 lt_prog_compiler_static='-static'
15090 # icc used to be incompatible with GCC.
15091 # ICC 10 doesn't accept -KPIC any more.
15092 icc* | ifort*)
15093 lt_prog_compiler_wl='-Wl,'
15094 lt_prog_compiler_pic='-fPIC'
15095 lt_prog_compiler_static='-static'
15097 # Lahey Fortran 8.1.
15098 lf95*)
15099 lt_prog_compiler_wl='-Wl,'
15100 lt_prog_compiler_pic='--shared'
15101 lt_prog_compiler_static='--static'
15103 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15104 # Portland Group compilers (*not* the Pentium gcc compiler,
15105 # which looks to be a dead project)
15106 lt_prog_compiler_wl='-Wl,'
15107 lt_prog_compiler_pic='-fpic'
15108 lt_prog_compiler_static='-Bstatic'
15110 ccc*)
15111 lt_prog_compiler_wl='-Wl,'
15112 # All Alpha code is PIC.
15113 lt_prog_compiler_static='-non_shared'
15115 xl* | bgxl* | bgf* | mpixl*)
15116 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15117 lt_prog_compiler_wl='-Wl,'
15118 lt_prog_compiler_pic='-qpic'
15119 lt_prog_compiler_static='-qstaticlink'
15122 case `$CC -V 2>&1 | sed 5q` in
15123 *Sun\ F* | *Sun*Fortran*)
15124 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15125 lt_prog_compiler_pic='-KPIC'
15126 lt_prog_compiler_static='-Bstatic'
15127 lt_prog_compiler_wl=''
15129 *Sun\ C*)
15130 # Sun C 5.9
15131 lt_prog_compiler_pic='-KPIC'
15132 lt_prog_compiler_static='-Bstatic'
15133 lt_prog_compiler_wl='-Wl,'
15135 esac
15137 esac
15140 newsos6)
15141 lt_prog_compiler_pic='-KPIC'
15142 lt_prog_compiler_static='-Bstatic'
15145 *nto* | *qnx*)
15146 # QNX uses GNU C++, but need to define -shared option too, otherwise
15147 # it will coredump.
15148 lt_prog_compiler_pic='-fPIC -shared'
15151 osf3* | osf4* | osf5*)
15152 lt_prog_compiler_wl='-Wl,'
15153 # All OSF/1 code is PIC.
15154 lt_prog_compiler_static='-non_shared'
15157 rdos*)
15158 lt_prog_compiler_static='-non_shared'
15161 solaris*)
15162 lt_prog_compiler_pic='-KPIC'
15163 lt_prog_compiler_static='-Bstatic'
15164 case $cc_basename in
15165 f77* | f90* | f95*)
15166 lt_prog_compiler_wl='-Qoption ld ';;
15168 lt_prog_compiler_wl='-Wl,';;
15169 esac
15172 sunos4*)
15173 lt_prog_compiler_wl='-Qoption ld '
15174 lt_prog_compiler_pic='-PIC'
15175 lt_prog_compiler_static='-Bstatic'
15178 sysv4 | sysv4.2uw2* | sysv4.3*)
15179 lt_prog_compiler_wl='-Wl,'
15180 lt_prog_compiler_pic='-KPIC'
15181 lt_prog_compiler_static='-Bstatic'
15184 sysv4*MP*)
15185 if test -d /usr/nec ;then
15186 lt_prog_compiler_pic='-Kconform_pic'
15187 lt_prog_compiler_static='-Bstatic'
15191 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15192 lt_prog_compiler_wl='-Wl,'
15193 lt_prog_compiler_pic='-KPIC'
15194 lt_prog_compiler_static='-Bstatic'
15197 unicos*)
15198 lt_prog_compiler_wl='-Wl,'
15199 lt_prog_compiler_can_build_shared=no
15202 uts4*)
15203 lt_prog_compiler_pic='-pic'
15204 lt_prog_compiler_static='-Bstatic'
15208 lt_prog_compiler_can_build_shared=no
15210 esac
15213 case $host_os in
15214 # For platforms which do not support PIC, -DPIC is meaningless:
15215 *djgpp*)
15216 lt_prog_compiler_pic=
15219 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15221 esac
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15223 $as_echo "$lt_prog_compiler_pic" >&6; }
15231 # Check to make sure the PIC flag actually works.
15233 if test -n "$lt_prog_compiler_pic"; then
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15235 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15236 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15237 $as_echo_n "(cached) " >&6
15238 else
15239 lt_cv_prog_compiler_pic_works=no
15240 ac_outfile=conftest.$ac_objext
15241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15242 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15243 # Insert the option either (1) after the last *FLAGS variable, or
15244 # (2) before a word containing "conftest.", or (3) at the end.
15245 # Note that $ac_compile itself does not contain backslashes and begins
15246 # with a dollar sign (not a hyphen), so the echo should work correctly.
15247 # The option is referenced via a variable to avoid confusing sed.
15248 lt_compile=`echo "$ac_compile" | $SED \
15249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15251 -e 's:$: $lt_compiler_flag:'`
15252 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15253 (eval "$lt_compile" 2>conftest.err)
15254 ac_status=$?
15255 cat conftest.err >&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 if (exit $ac_status) && test -s "$ac_outfile"; then
15258 # The compiler can only warn and ignore the option if not recognized
15259 # So say no if there are warnings other than the usual output.
15260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15262 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15263 lt_cv_prog_compiler_pic_works=yes
15266 $RM conftest*
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15270 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15272 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15273 case $lt_prog_compiler_pic in
15274 "" | " "*) ;;
15275 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15276 esac
15277 else
15278 lt_prog_compiler_pic=
15279 lt_prog_compiler_can_build_shared=no
15290 # Check to make sure the static flag actually works.
15292 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15294 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15295 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15296 $as_echo_n "(cached) " >&6
15297 else
15298 lt_cv_prog_compiler_static_works=no
15299 save_LDFLAGS="$LDFLAGS"
15300 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15301 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15302 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15303 # The linker can only warn and ignore the option if not recognized
15304 # So say no if there are warnings
15305 if test -s conftest.err; then
15306 # Append any errors to the config.log.
15307 cat conftest.err 1>&5
15308 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15310 if diff conftest.exp conftest.er2 >/dev/null; then
15311 lt_cv_prog_compiler_static_works=yes
15313 else
15314 lt_cv_prog_compiler_static_works=yes
15317 $RM -r conftest*
15318 LDFLAGS="$save_LDFLAGS"
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15322 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15324 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15326 else
15327 lt_prog_compiler_static=
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15337 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15338 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15339 $as_echo_n "(cached) " >&6
15340 else
15341 lt_cv_prog_compiler_c_o=no
15342 $RM -r conftest 2>/dev/null
15343 mkdir conftest
15344 cd conftest
15345 mkdir out
15346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15348 lt_compiler_flag="-o out/conftest2.$ac_objext"
15349 # Insert the option either (1) after the last *FLAGS variable, or
15350 # (2) before a word containing "conftest.", or (3) at the end.
15351 # Note that $ac_compile itself does not contain backslashes and begins
15352 # with a dollar sign (not a hyphen), so the echo should work correctly.
15353 lt_compile=`echo "$ac_compile" | $SED \
15354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15356 -e 's:$: $lt_compiler_flag:'`
15357 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15358 (eval "$lt_compile" 2>out/conftest.err)
15359 ac_status=$?
15360 cat out/conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15363 then
15364 # The compiler can only warn and ignore the option if not recognized
15365 # So say no if there are warnings
15366 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15367 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15368 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15369 lt_cv_prog_compiler_c_o=yes
15372 chmod u+w . 2>&5
15373 $RM conftest*
15374 # SGI C++ compiler will create directory out/ii_files/ for
15375 # template instantiation
15376 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15377 $RM out/* && rmdir out
15378 cd ..
15379 $RM -r conftest
15380 $RM conftest*
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15384 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15392 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15393 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15394 $as_echo_n "(cached) " >&6
15395 else
15396 lt_cv_prog_compiler_c_o=no
15397 $RM -r conftest 2>/dev/null
15398 mkdir conftest
15399 cd conftest
15400 mkdir out
15401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15403 lt_compiler_flag="-o out/conftest2.$ac_objext"
15404 # Insert the option either (1) after the last *FLAGS variable, or
15405 # (2) before a word containing "conftest.", or (3) at the end.
15406 # Note that $ac_compile itself does not contain backslashes and begins
15407 # with a dollar sign (not a hyphen), so the echo should work correctly.
15408 lt_compile=`echo "$ac_compile" | $SED \
15409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15411 -e 's:$: $lt_compiler_flag:'`
15412 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15413 (eval "$lt_compile" 2>out/conftest.err)
15414 ac_status=$?
15415 cat out/conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15418 then
15419 # The compiler can only warn and ignore the option if not recognized
15420 # So say no if there are warnings
15421 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15422 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15423 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15424 lt_cv_prog_compiler_c_o=yes
15427 chmod u+w . 2>&5
15428 $RM conftest*
15429 # SGI C++ compiler will create directory out/ii_files/ for
15430 # template instantiation
15431 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15432 $RM out/* && rmdir out
15433 cd ..
15434 $RM -r conftest
15435 $RM conftest*
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15439 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15444 hard_links="nottested"
15445 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15446 # do not overwrite the value of need_locks provided by the user
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15448 $as_echo_n "checking if we can lock with hard links... " >&6; }
15449 hard_links=yes
15450 $RM conftest*
15451 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15452 touch conftest.a
15453 ln conftest.a conftest.b 2>&5 || hard_links=no
15454 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15456 $as_echo "$hard_links" >&6; }
15457 if test "$hard_links" = no; then
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15459 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15460 need_locks=warn
15462 else
15463 need_locks=no
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15472 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15474 runpath_var=
15475 allow_undefined_flag=
15476 always_export_symbols=no
15477 archive_cmds=
15478 archive_expsym_cmds=
15479 compiler_needs_object=no
15480 enable_shared_with_static_runtimes=no
15481 export_dynamic_flag_spec=
15482 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15483 hardcode_automatic=no
15484 hardcode_direct=no
15485 hardcode_direct_absolute=no
15486 hardcode_libdir_flag_spec=
15487 hardcode_libdir_flag_spec_ld=
15488 hardcode_libdir_separator=
15489 hardcode_minus_L=no
15490 hardcode_shlibpath_var=unsupported
15491 inherit_rpath=no
15492 link_all_deplibs=unknown
15493 module_cmds=
15494 module_expsym_cmds=
15495 old_archive_from_new_cmds=
15496 old_archive_from_expsyms_cmds=
15497 thread_safe_flag_spec=
15498 whole_archive_flag_spec=
15499 # include_expsyms should be a list of space-separated symbols to be *always*
15500 # included in the symbol list
15501 include_expsyms=
15502 # exclude_expsyms can be an extended regexp of symbols to exclude
15503 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15504 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15505 # as well as any symbol that contains `d'.
15506 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15507 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15508 # platforms (ab)use it in PIC code, but their linkers get confused if
15509 # the symbol is explicitly referenced. Since portable code cannot
15510 # rely on this symbol name, it's probably fine to never include it in
15511 # preloaded symbol tables.
15512 # Exclude shared library initialization/finalization symbols.
15513 extract_expsyms_cmds=
15515 case $host_os in
15516 cygwin* | mingw* | pw32* | cegcc*)
15517 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15518 # When not using gcc, we currently assume that we are using
15519 # Microsoft Visual C++.
15520 if test "$GCC" != yes; then
15521 with_gnu_ld=no
15524 interix*)
15525 # we just hope/assume this is gcc and not c89 (= MSVC++)
15526 with_gnu_ld=yes
15528 openbsd*)
15529 with_gnu_ld=no
15531 esac
15533 ld_shlibs=yes
15535 # On some targets, GNU ld is compatible enough with the native linker
15536 # that we're better off using the native interface for both.
15537 lt_use_gnu_ld_interface=no
15538 if test "$with_gnu_ld" = yes; then
15539 case $host_os in
15540 aix*)
15541 # The AIX port of GNU ld has always aspired to compatibility
15542 # with the native linker. However, as the warning in the GNU ld
15543 # block says, versions before 2.19.5* couldn't really create working
15544 # shared libraries, regardless of the interface used.
15545 case `$LD -v 2>&1` in
15546 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15547 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15548 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15550 lt_use_gnu_ld_interface=yes
15552 esac
15555 lt_use_gnu_ld_interface=yes
15557 esac
15560 if test "$lt_use_gnu_ld_interface" = yes; then
15561 # If archive_cmds runs LD, not CC, wlarc should be empty
15562 wlarc='${wl}'
15564 # Set some defaults for GNU ld with shared library support. These
15565 # are reset later if shared libraries are not supported. Putting them
15566 # here allows them to be overridden if necessary.
15567 runpath_var=LD_RUN_PATH
15568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15569 export_dynamic_flag_spec='${wl}--export-dynamic'
15570 # ancient GNU ld didn't support --whole-archive et. al.
15571 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15572 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15573 else
15574 whole_archive_flag_spec=
15576 supports_anon_versioning=no
15577 case `$LD -v 2>&1` in
15578 *GNU\ gold*) supports_anon_versioning=yes ;;
15579 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15580 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15581 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15582 *\ 2.11.*) ;; # other 2.11 versions
15583 *) supports_anon_versioning=yes ;;
15584 esac
15586 # See if GNU ld supports shared libraries.
15587 case $host_os in
15588 aix[3-9]*)
15589 # On AIX/PPC, the GNU linker is very broken
15590 if test "$host_cpu" != ia64; then
15591 ld_shlibs=no
15592 cat <<_LT_EOF 1>&2
15594 *** Warning: the GNU linker, at least up to release 2.19, is reported
15595 *** to be unable to reliably create shared libraries on AIX.
15596 *** Therefore, libtool is disabling shared libraries support. If you
15597 *** really care for shared libraries, you may want to install binutils
15598 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15599 *** You will then need to restart the configuration process.
15601 _LT_EOF
15605 amigaos*)
15606 case $host_cpu in
15607 powerpc)
15608 # see comment about AmigaOS4 .so support
15609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15610 archive_expsym_cmds=''
15612 m68k)
15613 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)'
15614 hardcode_libdir_flag_spec='-L$libdir'
15615 hardcode_minus_L=yes
15617 esac
15620 beos*)
15621 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15622 allow_undefined_flag=unsupported
15623 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15624 # support --undefined. This deserves some investigation. FIXME
15625 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15626 else
15627 ld_shlibs=no
15631 cygwin* | mingw* | pw32* | cegcc*)
15632 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15633 # as there is no search path for DLLs.
15634 hardcode_libdir_flag_spec='-L$libdir'
15635 export_dynamic_flag_spec='${wl}--export-all-symbols'
15636 allow_undefined_flag=unsupported
15637 always_export_symbols=no
15638 enable_shared_with_static_runtimes=yes
15639 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15641 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15643 # If the export-symbols file already is a .def file (1st line
15644 # is EXPORTS), use it as is; otherwise, prepend...
15645 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15646 cp $export_symbols $output_objdir/$soname.def;
15647 else
15648 echo EXPORTS > $output_objdir/$soname.def;
15649 cat $export_symbols >> $output_objdir/$soname.def;
15651 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15652 else
15653 ld_shlibs=no
15657 haiku*)
15658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15659 link_all_deplibs=yes
15662 interix[3-9]*)
15663 hardcode_direct=no
15664 hardcode_shlibpath_var=no
15665 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15666 export_dynamic_flag_spec='${wl}-E'
15667 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15668 # Instead, shared libraries are loaded at an image base (0x10000000 by
15669 # default) and relocated if they conflict, which is a slow very memory
15670 # consuming and fragmenting process. To avoid this, we pick a random,
15671 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15672 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15673 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15674 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'
15677 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15678 tmp_diet=no
15679 if test "$host_os" = linux-dietlibc; then
15680 case $cc_basename in
15681 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15682 esac
15684 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15685 && test "$tmp_diet" = no
15686 then
15687 tmp_addflag=
15688 tmp_sharedflag='-shared'
15689 case $cc_basename,$host_cpu in
15690 pgcc*) # Portland Group C compiler
15691 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15692 tmp_addflag=' $pic_flag'
15694 pgf77* | pgf90* | pgf95* | pgfortran*)
15695 # Portland Group f77 and f90 compilers
15696 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15697 tmp_addflag=' $pic_flag -Mnomain' ;;
15698 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15699 tmp_addflag=' -i_dynamic' ;;
15700 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15701 tmp_addflag=' -i_dynamic -nofor_main' ;;
15702 ifc* | ifort*) # Intel Fortran compiler
15703 tmp_addflag=' -nofor_main' ;;
15704 lf95*) # Lahey Fortran 8.1
15705 whole_archive_flag_spec=
15706 tmp_sharedflag='--shared' ;;
15707 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15708 tmp_sharedflag='-qmkshrobj'
15709 tmp_addflag= ;;
15710 nvcc*) # Cuda Compiler Driver 2.2
15711 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15712 compiler_needs_object=yes
15714 esac
15715 case `$CC -V 2>&1 | sed 5q` in
15716 *Sun\ C*) # Sun C 5.9
15717 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15718 compiler_needs_object=yes
15719 tmp_sharedflag='-G' ;;
15720 *Sun\ F*) # Sun Fortran 8.3
15721 tmp_sharedflag='-G' ;;
15722 esac
15723 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15725 if test "x$supports_anon_versioning" = xyes; then
15726 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15727 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15728 echo "local: *; };" >> $output_objdir/$libname.ver~
15729 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15732 case $cc_basename in
15733 xlf* | bgf* | bgxlf* | mpixlf*)
15734 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15735 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15736 hardcode_libdir_flag_spec=
15737 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15738 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15739 if test "x$supports_anon_versioning" = xyes; then
15740 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15741 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15742 echo "local: *; };" >> $output_objdir/$libname.ver~
15743 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15746 esac
15747 else
15748 ld_shlibs=no
15752 netbsd*)
15753 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15754 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15755 wlarc=
15756 else
15757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15762 solaris*)
15763 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15764 ld_shlibs=no
15765 cat <<_LT_EOF 1>&2
15767 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15768 *** create shared libraries on Solaris systems. Therefore, libtool
15769 *** is disabling shared libraries support. We urge you to upgrade GNU
15770 *** binutils to release 2.9.1 or newer. Another option is to modify
15771 *** your PATH or compiler configuration so that the native linker is
15772 *** used, and then restart.
15774 _LT_EOF
15775 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15778 else
15779 ld_shlibs=no
15783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15784 case `$LD -v 2>&1` in
15785 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15786 ld_shlibs=no
15787 cat <<_LT_EOF 1>&2
15789 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15790 *** reliably create shared libraries on SCO systems. Therefore, libtool
15791 *** is disabling shared libraries support. We urge you to upgrade GNU
15792 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15793 *** your PATH or compiler configuration so that the native linker is
15794 *** used, and then restart.
15796 _LT_EOF
15799 # For security reasons, it is highly recommended that you always
15800 # use absolute paths for naming shared libraries, and exclude the
15801 # DT_RUNPATH tag from executables and libraries. But doing so
15802 # requires that you compile everything twice, which is a pain.
15803 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15807 else
15808 ld_shlibs=no
15811 esac
15814 sunos4*)
15815 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15816 wlarc=
15817 hardcode_direct=yes
15818 hardcode_shlibpath_var=no
15822 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15824 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15825 else
15826 ld_shlibs=no
15829 esac
15831 if test "$ld_shlibs" = no; then
15832 runpath_var=
15833 hardcode_libdir_flag_spec=
15834 export_dynamic_flag_spec=
15835 whole_archive_flag_spec=
15837 else
15838 # PORTME fill in a description of your system's linker (not GNU ld)
15839 case $host_os in
15840 aix3*)
15841 allow_undefined_flag=unsupported
15842 always_export_symbols=yes
15843 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'
15844 # Note: this linker hardcodes the directories in LIBPATH if there
15845 # are no directories specified by -L.
15846 hardcode_minus_L=yes
15847 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15848 # Neither direct hardcoding nor static linking is supported with a
15849 # broken collect2.
15850 hardcode_direct=unsupported
15854 aix[4-9]*)
15855 if test "$host_cpu" = ia64; then
15856 # On IA64, the linker does run time linking by default, so we don't
15857 # have to do anything special.
15858 aix_use_runtimelinking=no
15859 exp_sym_flag='-Bexport'
15860 no_entry_flag=""
15861 else
15862 # If we're using GNU nm, then we don't want the "-C" option.
15863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15864 # Also, AIX nm treats weak defined symbols like other global
15865 # defined symbols, whereas GNU nm marks them as "W".
15866 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15867 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15868 else
15869 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'
15871 aix_use_runtimelinking=no
15873 # Test if we are trying to use run time linking or normal
15874 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15875 # need to do runtime linking.
15876 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15877 for ld_flag in $LDFLAGS; do
15878 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15879 aix_use_runtimelinking=yes
15880 break
15882 done
15884 esac
15886 exp_sym_flag='-bexport'
15887 no_entry_flag='-bnoentry'
15890 # When large executables or shared objects are built, AIX ld can
15891 # have problems creating the table of contents. If linking a library
15892 # or program results in "error TOC overflow" add -mminimal-toc to
15893 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15894 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15896 archive_cmds=''
15897 hardcode_direct=yes
15898 hardcode_direct_absolute=yes
15899 hardcode_libdir_separator=':'
15900 link_all_deplibs=yes
15901 file_list_spec='${wl}-f,'
15903 if test "$GCC" = yes; then
15904 case $host_os in aix4.[012]|aix4.[012].*)
15905 # We only want to do this on AIX 4.2 and lower, the check
15906 # below for broken collect2 doesn't work under 4.3+
15907 collect2name=`${CC} -print-prog-name=collect2`
15908 if test -f "$collect2name" &&
15909 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15910 then
15911 # We have reworked collect2
15913 else
15914 # We have old collect2
15915 hardcode_direct=unsupported
15916 # It fails to find uninstalled libraries when the uninstalled
15917 # path is not listed in the libpath. Setting hardcode_minus_L
15918 # to unsupported forces relinking
15919 hardcode_minus_L=yes
15920 hardcode_libdir_flag_spec='-L$libdir'
15921 hardcode_libdir_separator=
15924 esac
15925 shared_flag='-shared'
15926 if test "$aix_use_runtimelinking" = yes; then
15927 shared_flag="$shared_flag "'${wl}-G'
15929 else
15930 # not using gcc
15931 if test "$host_cpu" = ia64; then
15932 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15933 # chokes on -Wl,-G. The following line is correct:
15934 shared_flag='-G'
15935 else
15936 if test "$aix_use_runtimelinking" = yes; then
15937 shared_flag='${wl}-G'
15938 else
15939 shared_flag='${wl}-bM:SRE'
15944 export_dynamic_flag_spec='${wl}-bexpall'
15945 # It seems that -bexpall does not export symbols beginning with
15946 # underscore (_), so it is better to generate a list of symbols to export.
15947 always_export_symbols=yes
15948 if test "$aix_use_runtimelinking" = yes; then
15949 # Warning - without using the other runtime loading flags (-brtl),
15950 # -berok will link without error, but may produce a broken library.
15951 allow_undefined_flag='-berok'
15952 # Determine the default libpath from the value encoded in an
15953 # empty executable.
15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15958 main ()
15962 return 0;
15964 _ACEOF
15965 if ac_fn_c_try_link "$LINENO"; then :
15967 lt_aix_libpath_sed='
15968 /Import File Strings/,/^$/ {
15969 /^0/ {
15970 s/^0 *\(.*\)$/\1/
15974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15975 # Check for a 64-bit object if we didn't find anything.
15976 if test -z "$aix_libpath"; then
15977 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15980 rm -f core conftest.err conftest.$ac_objext \
15981 conftest$ac_exeext conftest.$ac_ext
15982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15984 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15985 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15986 else
15987 if test "$host_cpu" = ia64; then
15988 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15989 allow_undefined_flag="-z nodefs"
15990 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"
15991 else
15992 # Determine the default libpath from the value encoded in an
15993 # empty executable.
15994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
15998 main ()
16002 return 0;
16004 _ACEOF
16005 if ac_fn_c_try_link "$LINENO"; then :
16007 lt_aix_libpath_sed='
16008 /Import File Strings/,/^$/ {
16009 /^0/ {
16010 s/^0 *\(.*\)$/\1/
16014 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16015 # Check for a 64-bit object if we didn't find anything.
16016 if test -z "$aix_libpath"; then
16017 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16020 rm -f core conftest.err conftest.$ac_objext \
16021 conftest$ac_exeext conftest.$ac_ext
16022 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16024 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16025 # Warning - without using the other run time loading flags,
16026 # -berok will link without error, but may produce a broken library.
16027 no_undefined_flag=' ${wl}-bernotok'
16028 allow_undefined_flag=' ${wl}-berok'
16029 if test "$with_gnu_ld" = yes; then
16030 # We only use this code for GNU lds that support --whole-archive.
16031 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16032 else
16033 # Exported symbols can be pulled into shared objects from archives
16034 whole_archive_flag_spec='$convenience'
16036 archive_cmds_need_lc=yes
16037 # This is similar to how AIX traditionally builds its shared libraries.
16038 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'
16043 amigaos*)
16044 case $host_cpu in
16045 powerpc)
16046 # see comment about AmigaOS4 .so support
16047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16048 archive_expsym_cmds=''
16050 m68k)
16051 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)'
16052 hardcode_libdir_flag_spec='-L$libdir'
16053 hardcode_minus_L=yes
16055 esac
16058 bsdi[45]*)
16059 export_dynamic_flag_spec=-rdynamic
16062 cygwin* | mingw* | pw32* | cegcc*)
16063 # When not using gcc, we currently assume that we are using
16064 # Microsoft Visual C++.
16065 # hardcode_libdir_flag_spec is actually meaningless, as there is
16066 # no search path for DLLs.
16067 hardcode_libdir_flag_spec=' '
16068 allow_undefined_flag=unsupported
16069 # Tell ltmain to make .lib files, not .a files.
16070 libext=lib
16071 # Tell ltmain to make .dll files, not .so files.
16072 shrext_cmds=".dll"
16073 # FIXME: Setting linknames here is a bad hack.
16074 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16075 # The linker will automatically build a .lib file if we build a DLL.
16076 old_archive_from_new_cmds='true'
16077 # FIXME: Should let the user specify the lib program.
16078 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16079 fix_srcfile_path='`cygpath -w "$srcfile"`'
16080 enable_shared_with_static_runtimes=yes
16083 darwin* | rhapsody*)
16086 archive_cmds_need_lc=no
16087 hardcode_direct=no
16088 hardcode_automatic=yes
16089 hardcode_shlibpath_var=unsupported
16090 if test "$lt_cv_ld_force_load" = "yes"; then
16091 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16092 else
16093 whole_archive_flag_spec=''
16095 link_all_deplibs=yes
16096 allow_undefined_flag="$_lt_dar_allow_undefined"
16097 case $cc_basename in
16098 ifort*) _lt_dar_can_shared=yes ;;
16099 *) _lt_dar_can_shared=$GCC ;;
16100 esac
16101 if test "$_lt_dar_can_shared" = "yes"; then
16102 output_verbose_link_cmd=func_echo_all
16103 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16104 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16105 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16106 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16108 else
16109 ld_shlibs=no
16114 dgux*)
16115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16116 hardcode_libdir_flag_spec='-L$libdir'
16117 hardcode_shlibpath_var=no
16120 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16121 # support. Future versions do this automatically, but an explicit c++rt0.o
16122 # does not break anything, and helps significantly (at the cost of a little
16123 # extra space).
16124 freebsd2.2*)
16125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16126 hardcode_libdir_flag_spec='-R$libdir'
16127 hardcode_direct=yes
16128 hardcode_shlibpath_var=no
16131 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16132 freebsd2.*)
16133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16134 hardcode_direct=yes
16135 hardcode_minus_L=yes
16136 hardcode_shlibpath_var=no
16139 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16140 freebsd* | dragonfly*)
16141 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16142 hardcode_libdir_flag_spec='-R$libdir'
16143 hardcode_direct=yes
16144 hardcode_shlibpath_var=no
16147 hpux9*)
16148 if test "$GCC" = yes; then
16149 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'
16150 else
16151 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'
16153 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16154 hardcode_libdir_separator=:
16155 hardcode_direct=yes
16157 # hardcode_minus_L: Not really in the search PATH,
16158 # but as the default location of the library.
16159 hardcode_minus_L=yes
16160 export_dynamic_flag_spec='${wl}-E'
16163 hpux10*)
16164 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16165 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16166 else
16167 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16169 if test "$with_gnu_ld" = no; then
16170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16171 hardcode_libdir_flag_spec_ld='+b $libdir'
16172 hardcode_libdir_separator=:
16173 hardcode_direct=yes
16174 hardcode_direct_absolute=yes
16175 export_dynamic_flag_spec='${wl}-E'
16176 # hardcode_minus_L: Not really in the search PATH,
16177 # but as the default location of the library.
16178 hardcode_minus_L=yes
16182 hpux11*)
16183 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16184 case $host_cpu in
16185 hppa*64*)
16186 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16188 ia64*)
16189 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16192 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16194 esac
16195 else
16196 case $host_cpu in
16197 hppa*64*)
16198 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16200 ia64*)
16201 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16205 # Older versions of the 11.00 compiler do not understand -b yet
16206 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16208 $as_echo_n "checking if $CC understands -b... " >&6; }
16209 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16210 $as_echo_n "(cached) " >&6
16211 else
16212 lt_cv_prog_compiler__b=no
16213 save_LDFLAGS="$LDFLAGS"
16214 LDFLAGS="$LDFLAGS -b"
16215 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16216 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16217 # The linker can only warn and ignore the option if not recognized
16218 # So say no if there are warnings
16219 if test -s conftest.err; then
16220 # Append any errors to the config.log.
16221 cat conftest.err 1>&5
16222 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16224 if diff conftest.exp conftest.er2 >/dev/null; then
16225 lt_cv_prog_compiler__b=yes
16227 else
16228 lt_cv_prog_compiler__b=yes
16231 $RM -r conftest*
16232 LDFLAGS="$save_LDFLAGS"
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16236 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16238 if test x"$lt_cv_prog_compiler__b" = xyes; then
16239 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16240 else
16241 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16245 esac
16247 if test "$with_gnu_ld" = no; then
16248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16249 hardcode_libdir_separator=:
16251 case $host_cpu in
16252 hppa*64*|ia64*)
16253 hardcode_direct=no
16254 hardcode_shlibpath_var=no
16257 hardcode_direct=yes
16258 hardcode_direct_absolute=yes
16259 export_dynamic_flag_spec='${wl}-E'
16261 # hardcode_minus_L: Not really in the search PATH,
16262 # but as the default location of the library.
16263 hardcode_minus_L=yes
16265 esac
16269 irix5* | irix6* | nonstopux*)
16270 if test "$GCC" = yes; then
16271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16272 # Try to use the -exported_symbol ld option, if it does not
16273 # work, assume that -exports_file does not work either and
16274 # implicitly export all symbols.
16275 save_LDFLAGS="$LDFLAGS"
16276 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h. */
16279 int foo(void) {}
16280 _ACEOF
16281 if ac_fn_c_try_link "$LINENO"; then :
16282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
16285 rm -f core conftest.err conftest.$ac_objext \
16286 conftest$ac_exeext conftest.$ac_ext
16287 LDFLAGS="$save_LDFLAGS"
16288 else
16289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
16292 archive_cmds_need_lc='no'
16293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16294 hardcode_libdir_separator=:
16295 inherit_rpath=yes
16296 link_all_deplibs=yes
16299 netbsd*)
16300 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16302 else
16303 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16305 hardcode_libdir_flag_spec='-R$libdir'
16306 hardcode_direct=yes
16307 hardcode_shlibpath_var=no
16310 newsos6)
16311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16312 hardcode_direct=yes
16313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16314 hardcode_libdir_separator=:
16315 hardcode_shlibpath_var=no
16318 *nto* | *qnx*)
16321 openbsd*)
16322 if test -f /usr/libexec/ld.so; then
16323 hardcode_direct=yes
16324 hardcode_shlibpath_var=no
16325 hardcode_direct_absolute=yes
16326 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16327 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16328 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16329 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16330 export_dynamic_flag_spec='${wl}-E'
16331 else
16332 case $host_os in
16333 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16335 hardcode_libdir_flag_spec='-R$libdir'
16338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16339 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16341 esac
16343 else
16344 ld_shlibs=no
16348 os2*)
16349 hardcode_libdir_flag_spec='-L$libdir'
16350 hardcode_minus_L=yes
16351 allow_undefined_flag=unsupported
16352 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'
16353 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16356 osf3*)
16357 if test "$GCC" = yes; then
16358 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16359 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16360 else
16361 allow_undefined_flag=' -expect_unresolved \*'
16362 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16364 archive_cmds_need_lc='no'
16365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16366 hardcode_libdir_separator=:
16369 osf4* | osf5*) # as osf3* with the addition of -msym flag
16370 if test "$GCC" = yes; then
16371 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16372 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16374 else
16375 allow_undefined_flag=' -expect_unresolved \*'
16376 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16377 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~
16378 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
16380 # Both c and cxx compiler support -rpath directly
16381 hardcode_libdir_flag_spec='-rpath $libdir'
16383 archive_cmds_need_lc='no'
16384 hardcode_libdir_separator=:
16387 solaris*)
16388 no_undefined_flag=' -z defs'
16389 if test "$GCC" = yes; then
16390 wlarc='${wl}'
16391 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16393 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16394 else
16395 case `$CC -V 2>&1` in
16396 *"Compilers 5.0"*)
16397 wlarc=''
16398 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16399 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16400 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16403 wlarc='${wl}'
16404 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16405 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16406 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16408 esac
16410 hardcode_libdir_flag_spec='-R$libdir'
16411 hardcode_shlibpath_var=no
16412 case $host_os in
16413 solaris2.[0-5] | solaris2.[0-5].*) ;;
16415 # The compiler driver will combine and reorder linker options,
16416 # but understands `-z linker_flag'. GCC discards it without `$wl',
16417 # but is careful enough not to reorder.
16418 # Supported since Solaris 2.6 (maybe 2.5.1?)
16419 if test "$GCC" = yes; then
16420 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16421 else
16422 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16425 esac
16426 link_all_deplibs=yes
16429 sunos4*)
16430 if test "x$host_vendor" = xsequent; then
16431 # Use $CC to link under sequent, because it throws in some extra .o
16432 # files that make .init and .fini sections work.
16433 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16434 else
16435 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16437 hardcode_libdir_flag_spec='-L$libdir'
16438 hardcode_direct=yes
16439 hardcode_minus_L=yes
16440 hardcode_shlibpath_var=no
16443 sysv4)
16444 case $host_vendor in
16445 sni)
16446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16447 hardcode_direct=yes # is this really true???
16449 siemens)
16450 ## LD is ld it makes a PLAMLIB
16451 ## CC just makes a GrossModule.
16452 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16453 reload_cmds='$CC -r -o $output$reload_objs'
16454 hardcode_direct=no
16456 motorola)
16457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16460 esac
16461 runpath_var='LD_RUN_PATH'
16462 hardcode_shlibpath_var=no
16465 sysv4.3*)
16466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16467 hardcode_shlibpath_var=no
16468 export_dynamic_flag_spec='-Bexport'
16471 sysv4*MP*)
16472 if test -d /usr/nec; then
16473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16474 hardcode_shlibpath_var=no
16475 runpath_var=LD_RUN_PATH
16476 hardcode_runpath_var=yes
16477 ld_shlibs=yes
16481 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16482 no_undefined_flag='${wl}-z,text'
16483 archive_cmds_need_lc=no
16484 hardcode_shlibpath_var=no
16485 runpath_var='LD_RUN_PATH'
16487 if test "$GCC" = yes; then
16488 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16489 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16490 else
16491 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16492 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16496 sysv5* | sco3.2v5* | sco5v6*)
16497 # Note: We can NOT use -z defs as we might desire, because we do not
16498 # link with -lc, and that would cause any symbols used from libc to
16499 # always be unresolved, which means just about no library would
16500 # ever link correctly. If we're not using GNU ld we use -z text
16501 # though, which does catch some bad symbols but isn't as heavy-handed
16502 # as -z defs.
16503 no_undefined_flag='${wl}-z,text'
16504 allow_undefined_flag='${wl}-z,nodefs'
16505 archive_cmds_need_lc=no
16506 hardcode_shlibpath_var=no
16507 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16508 hardcode_libdir_separator=':'
16509 link_all_deplibs=yes
16510 export_dynamic_flag_spec='${wl}-Bexport'
16511 runpath_var='LD_RUN_PATH'
16513 if test "$GCC" = yes; then
16514 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16515 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16516 else
16517 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16518 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16522 uts4*)
16523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16524 hardcode_libdir_flag_spec='-L$libdir'
16525 hardcode_shlibpath_var=no
16529 ld_shlibs=no
16531 esac
16533 if test x$host_vendor = xsni; then
16534 case $host in
16535 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16536 export_dynamic_flag_spec='${wl}-Blargedynsym'
16538 esac
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16543 $as_echo "$ld_shlibs" >&6; }
16544 test "$ld_shlibs" = no && can_build_shared=no
16546 with_gnu_ld=$with_gnu_ld
16563 # Do we need to explicitly link libc?
16565 case "x$archive_cmds_need_lc" in
16566 x|xyes)
16567 # Assume -lc should be added
16568 archive_cmds_need_lc=yes
16570 if test "$enable_shared" = yes && test "$GCC" = yes; then
16571 case $archive_cmds in
16572 *'~'*)
16573 # FIXME: we may have to deal with multi-command sequences.
16575 '$CC '*)
16576 # Test whether the compiler implicitly links with -lc since on some
16577 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16578 # to ld, don't add -lc before -lgcc.
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16580 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16581 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16582 $as_echo_n "(cached) " >&6
16583 else
16584 $RM conftest*
16585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16588 (eval $ac_compile) 2>&5
16589 ac_status=$?
16590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16591 test $ac_status = 0; } 2>conftest.err; then
16592 soname=conftest
16593 lib=conftest
16594 libobjs=conftest.$ac_objext
16595 deplibs=
16596 wl=$lt_prog_compiler_wl
16597 pic_flag=$lt_prog_compiler_pic
16598 compiler_flags=-v
16599 linker_flags=-v
16600 verstring=
16601 output_objdir=.
16602 libname=conftest
16603 lt_save_allow_undefined_flag=$allow_undefined_flag
16604 allow_undefined_flag=
16605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16606 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16607 ac_status=$?
16608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16609 test $ac_status = 0; }
16610 then
16611 lt_cv_archive_cmds_need_lc=no
16612 else
16613 lt_cv_archive_cmds_need_lc=yes
16615 allow_undefined_flag=$lt_save_allow_undefined_flag
16616 else
16617 cat conftest.err 1>&5
16619 $RM conftest*
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16623 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16624 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16626 esac
16629 esac
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16788 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16790 if test "$GCC" = yes; then
16791 case $host_os in
16792 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16793 *) lt_awk_arg="/^libraries:/" ;;
16794 esac
16795 case $host_os in
16796 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16797 *) lt_sed_strip_eq="s,=/,/,g" ;;
16798 esac
16799 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16800 case $lt_search_path_spec in
16801 *\;*)
16802 # if the path contains ";" then we assume it to be the separator
16803 # otherwise default to the standard path separator (i.e. ":") - it is
16804 # assumed that no part of a normal pathname contains ";" but that should
16805 # okay in the real world where ";" in dirpaths is itself problematic.
16806 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16809 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16811 esac
16812 # Ok, now we have the path, separated by spaces, we can step through it
16813 # and add multilib dir if necessary.
16814 lt_tmp_lt_search_path_spec=
16815 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16816 for lt_sys_path in $lt_search_path_spec; do
16817 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16818 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16819 else
16820 test -d "$lt_sys_path" && \
16821 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16823 done
16824 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16825 BEGIN {RS=" "; FS="/|\n";} {
16826 lt_foo="";
16827 lt_count=0;
16828 for (lt_i = NF; lt_i > 0; lt_i--) {
16829 if ($lt_i != "" && $lt_i != ".") {
16830 if ($lt_i == "..") {
16831 lt_count++;
16832 } else {
16833 if (lt_count == 0) {
16834 lt_foo="/" $lt_i lt_foo;
16835 } else {
16836 lt_count--;
16841 if (lt_foo != "") { lt_freq[lt_foo]++; }
16842 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16844 # AWK program above erroneously prepends '/' to C:/dos/paths
16845 # for these hosts.
16846 case $host_os in
16847 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16848 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16849 esac
16850 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16851 else
16852 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16854 library_names_spec=
16855 libname_spec='lib$name'
16856 soname_spec=
16857 shrext_cmds=".so"
16858 postinstall_cmds=
16859 postuninstall_cmds=
16860 finish_cmds=
16861 finish_eval=
16862 shlibpath_var=
16863 shlibpath_overrides_runpath=unknown
16864 version_type=none
16865 dynamic_linker="$host_os ld.so"
16866 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16867 need_lib_prefix=unknown
16868 hardcode_into_libs=no
16870 # when you set need_version to no, make sure it does not cause -set_version
16871 # flags to be left without arguments
16872 need_version=unknown
16874 case $host_os in
16875 aix3*)
16876 version_type=linux
16877 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16878 shlibpath_var=LIBPATH
16880 # AIX 3 has no versioning support, so we append a major version to the name.
16881 soname_spec='${libname}${release}${shared_ext}$major'
16884 aix[4-9]*)
16885 version_type=linux
16886 need_lib_prefix=no
16887 need_version=no
16888 hardcode_into_libs=yes
16889 if test "$host_cpu" = ia64; then
16890 # AIX 5 supports IA64
16891 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16892 shlibpath_var=LD_LIBRARY_PATH
16893 else
16894 # With GCC up to 2.95.x, collect2 would create an import file
16895 # for dependence libraries. The import file would start with
16896 # the line `#! .'. This would cause the generated library to
16897 # depend on `.', always an invalid library. This was fixed in
16898 # development snapshots of GCC prior to 3.0.
16899 case $host_os in
16900 aix4 | aix4.[01] | aix4.[01].*)
16901 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16902 echo ' yes '
16903 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16905 else
16906 can_build_shared=no
16909 esac
16910 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16911 # soname into executable. Probably we can add versioning support to
16912 # collect2, so additional links can be useful in future.
16913 if test "$aix_use_runtimelinking" = yes; then
16914 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16915 # instead of lib<name>.a to let people know that these are not
16916 # typical AIX shared libraries.
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 else
16919 # We preserve .a as extension for shared libraries through AIX4.2
16920 # and later when we are not doing run time linking.
16921 library_names_spec='${libname}${release}.a $libname.a'
16922 soname_spec='${libname}${release}${shared_ext}$major'
16924 shlibpath_var=LIBPATH
16928 amigaos*)
16929 case $host_cpu in
16930 powerpc)
16931 # Since July 2007 AmigaOS4 officially supports .so libraries.
16932 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16935 m68k)
16936 library_names_spec='$libname.ixlibrary $libname.a'
16937 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16938 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
16940 esac
16943 beos*)
16944 library_names_spec='${libname}${shared_ext}'
16945 dynamic_linker="$host_os ld.so"
16946 shlibpath_var=LIBRARY_PATH
16949 bsdi[45]*)
16950 version_type=linux
16951 need_version=no
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953 soname_spec='${libname}${release}${shared_ext}$major'
16954 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16955 shlibpath_var=LD_LIBRARY_PATH
16956 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16957 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16958 # the default ld.so.conf also contains /usr/contrib/lib and
16959 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16960 # libtool to hard-code these into programs
16963 cygwin* | mingw* | pw32* | cegcc*)
16964 version_type=windows
16965 shrext_cmds=".dll"
16966 need_version=no
16967 need_lib_prefix=no
16969 case $GCC,$host_os in
16970 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16971 library_names_spec='$libname.dll.a'
16972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16973 postinstall_cmds='base_file=`basename \${file}`~
16974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16975 dldir=$destdir/`dirname \$dlpath`~
16976 test -d \$dldir || mkdir -p \$dldir~
16977 $install_prog $dir/$dlname \$dldir/$dlname~
16978 chmod a+x \$dldir/$dlname~
16979 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16980 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16982 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16983 dlpath=$dir/\$dldll~
16984 $RM \$dlpath'
16985 shlibpath_overrides_runpath=yes
16987 case $host_os in
16988 cygwin*)
16989 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16990 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16992 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16994 mingw* | cegcc*)
16995 # MinGW DLLs use traditional 'lib' prefix
16996 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16998 pw32*)
16999 # pw32 DLLs use 'pw' prefix rather than 'lib'
17000 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17002 esac
17006 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17008 esac
17009 dynamic_linker='Win32 ld.exe'
17010 # FIXME: first we should search . and the directory the executable is in
17011 shlibpath_var=PATH
17014 darwin* | rhapsody*)
17015 dynamic_linker="$host_os dyld"
17016 version_type=darwin
17017 need_lib_prefix=no
17018 need_version=no
17019 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17020 soname_spec='${libname}${release}${major}$shared_ext'
17021 shlibpath_overrides_runpath=yes
17022 shlibpath_var=DYLD_LIBRARY_PATH
17023 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17025 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17026 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17029 dgux*)
17030 version_type=linux
17031 need_lib_prefix=no
17032 need_version=no
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17034 soname_spec='${libname}${release}${shared_ext}$major'
17035 shlibpath_var=LD_LIBRARY_PATH
17038 freebsd* | dragonfly*)
17039 # DragonFly does not have aout. When/if they implement a new
17040 # versioning mechanism, adjust this.
17041 if test -x /usr/bin/objformat; then
17042 objformat=`/usr/bin/objformat`
17043 else
17044 case $host_os in
17045 freebsd[23].*) objformat=aout ;;
17046 *) objformat=elf ;;
17047 esac
17049 version_type=freebsd-$objformat
17050 case $version_type in
17051 freebsd-elf*)
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17053 need_version=no
17054 need_lib_prefix=no
17056 freebsd-*)
17057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17058 need_version=yes
17060 esac
17061 shlibpath_var=LD_LIBRARY_PATH
17062 case $host_os in
17063 freebsd2.*)
17064 shlibpath_overrides_runpath=yes
17066 freebsd3.[01]* | freebsdelf3.[01]*)
17067 shlibpath_overrides_runpath=yes
17068 hardcode_into_libs=yes
17070 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17071 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17072 shlibpath_overrides_runpath=no
17073 hardcode_into_libs=yes
17075 *) # from 4.6 on, and DragonFly
17076 shlibpath_overrides_runpath=yes
17077 hardcode_into_libs=yes
17079 esac
17082 gnu*)
17083 version_type=linux
17084 need_lib_prefix=no
17085 need_version=no
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 shlibpath_var=LD_LIBRARY_PATH
17089 hardcode_into_libs=yes
17092 haiku*)
17093 version_type=linux
17094 need_lib_prefix=no
17095 need_version=no
17096 dynamic_linker="$host_os runtime_loader"
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17098 soname_spec='${libname}${release}${shared_ext}$major'
17099 shlibpath_var=LIBRARY_PATH
17100 shlibpath_overrides_runpath=yes
17101 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17102 hardcode_into_libs=yes
17105 hpux9* | hpux10* | hpux11*)
17106 # Give a soname corresponding to the major version so that dld.sl refuses to
17107 # link against other versions.
17108 version_type=sunos
17109 need_lib_prefix=no
17110 need_version=no
17111 case $host_cpu in
17112 ia64*)
17113 shrext_cmds='.so'
17114 hardcode_into_libs=yes
17115 dynamic_linker="$host_os dld.so"
17116 shlibpath_var=LD_LIBRARY_PATH
17117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17119 soname_spec='${libname}${release}${shared_ext}$major'
17120 if test "X$HPUX_IA64_MODE" = X32; then
17121 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17122 else
17123 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17127 hppa*64*)
17128 shrext_cmds='.sl'
17129 hardcode_into_libs=yes
17130 dynamic_linker="$host_os dld.sl"
17131 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134 soname_spec='${libname}${release}${shared_ext}$major'
17135 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17139 shrext_cmds='.sl'
17140 dynamic_linker="$host_os dld.sl"
17141 shlibpath_var=SHLIB_PATH
17142 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144 soname_spec='${libname}${release}${shared_ext}$major'
17146 esac
17147 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17148 postinstall_cmds='chmod 555 $lib'
17149 # or fails outright, so override atomically:
17150 install_override_mode=555
17153 interix[3-9]*)
17154 version_type=linux
17155 need_lib_prefix=no
17156 need_version=no
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17158 soname_spec='${libname}${release}${shared_ext}$major'
17159 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17160 shlibpath_var=LD_LIBRARY_PATH
17161 shlibpath_overrides_runpath=no
17162 hardcode_into_libs=yes
17165 irix5* | irix6* | nonstopux*)
17166 case $host_os in
17167 nonstopux*) version_type=nonstopux ;;
17169 if test "$lt_cv_prog_gnu_ld" = yes; then
17170 version_type=linux
17171 else
17172 version_type=irix
17173 fi ;;
17174 esac
17175 need_lib_prefix=no
17176 need_version=no
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17179 case $host_os in
17180 irix5* | nonstopux*)
17181 libsuff= shlibsuff=
17184 case $LD in # libtool.m4 will add one of these switches to LD
17185 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17186 libsuff= shlibsuff= libmagic=32-bit;;
17187 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17188 libsuff=32 shlibsuff=N32 libmagic=N32;;
17189 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17190 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17191 *) libsuff= shlibsuff= libmagic=never-match;;
17192 esac
17194 esac
17195 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17196 shlibpath_overrides_runpath=no
17197 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17198 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17199 hardcode_into_libs=yes
17202 # No shared lib support for Linux oldld, aout, or coff.
17203 linux*oldld* | linux*aout* | linux*coff*)
17204 dynamic_linker=no
17207 # This must be Linux ELF.
17208 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17209 version_type=linux
17210 need_lib_prefix=no
17211 need_version=no
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17215 shlibpath_var=LD_LIBRARY_PATH
17216 shlibpath_overrides_runpath=no
17218 # Some binutils ld are patched to set DT_RUNPATH
17219 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17220 $as_echo_n "(cached) " >&6
17221 else
17222 lt_cv_shlibpath_overrides_runpath=no
17223 save_LDFLAGS=$LDFLAGS
17224 save_libdir=$libdir
17225 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17226 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228 /* end confdefs.h. */
17231 main ()
17235 return 0;
17237 _ACEOF
17238 if ac_fn_c_try_link "$LINENO"; then :
17239 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17240 lt_cv_shlibpath_overrides_runpath=yes
17243 rm -f core conftest.err conftest.$ac_objext \
17244 conftest$ac_exeext conftest.$ac_ext
17245 LDFLAGS=$save_LDFLAGS
17246 libdir=$save_libdir
17250 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17252 # This implies no fast_install, which is unacceptable.
17253 # Some rework will be needed to allow for fast_install
17254 # before this can be enabled.
17255 hardcode_into_libs=yes
17257 # Append ld.so.conf contents to the search path
17258 if test -f /etc/ld.so.conf; then
17259 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17260 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17263 # We used to test for /lib/ld.so.1 and disable shared libraries on
17264 # powerpc, because MkLinux only supported shared libraries with the
17265 # GNU dynamic linker. Since this was broken with cross compilers,
17266 # most powerpc-linux boxes support dynamic linking these days and
17267 # people can always --disable-shared, the test was removed, and we
17268 # assume the GNU/Linux dynamic linker is in use.
17269 dynamic_linker='GNU/Linux ld.so'
17272 netbsd*)
17273 version_type=sunos
17274 need_lib_prefix=no
17275 need_version=no
17276 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17279 dynamic_linker='NetBSD (a.out) ld.so'
17280 else
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17282 soname_spec='${libname}${release}${shared_ext}$major'
17283 dynamic_linker='NetBSD ld.elf_so'
17285 shlibpath_var=LD_LIBRARY_PATH
17286 shlibpath_overrides_runpath=yes
17287 hardcode_into_libs=yes
17290 newsos6)
17291 version_type=linux
17292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293 shlibpath_var=LD_LIBRARY_PATH
17294 shlibpath_overrides_runpath=yes
17297 *nto* | *qnx*)
17298 version_type=qnx
17299 need_lib_prefix=no
17300 need_version=no
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17302 soname_spec='${libname}${release}${shared_ext}$major'
17303 shlibpath_var=LD_LIBRARY_PATH
17304 shlibpath_overrides_runpath=no
17305 hardcode_into_libs=yes
17306 dynamic_linker='ldqnx.so'
17309 openbsd*)
17310 version_type=sunos
17311 sys_lib_dlsearch_path_spec="/usr/lib"
17312 need_lib_prefix=no
17313 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17314 case $host_os in
17315 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17316 *) need_version=no ;;
17317 esac
17318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17320 shlibpath_var=LD_LIBRARY_PATH
17321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17322 case $host_os in
17323 openbsd2.[89] | openbsd2.[89].*)
17324 shlibpath_overrides_runpath=no
17327 shlibpath_overrides_runpath=yes
17329 esac
17330 else
17331 shlibpath_overrides_runpath=yes
17335 os2*)
17336 libname_spec='$name'
17337 shrext_cmds=".dll"
17338 need_lib_prefix=no
17339 library_names_spec='$libname${shared_ext} $libname.a'
17340 dynamic_linker='OS/2 ld.exe'
17341 shlibpath_var=LIBPATH
17344 osf3* | osf4* | osf5*)
17345 version_type=osf
17346 need_lib_prefix=no
17347 need_version=no
17348 soname_spec='${libname}${release}${shared_ext}$major'
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17350 shlibpath_var=LD_LIBRARY_PATH
17351 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17352 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17355 rdos*)
17356 dynamic_linker=no
17359 solaris*)
17360 version_type=linux
17361 need_lib_prefix=no
17362 need_version=no
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17364 soname_spec='${libname}${release}${shared_ext}$major'
17365 shlibpath_var=LD_LIBRARY_PATH
17366 shlibpath_overrides_runpath=yes
17367 hardcode_into_libs=yes
17368 # ldd complains unless libraries are executable
17369 postinstall_cmds='chmod +x $lib'
17372 sunos4*)
17373 version_type=sunos
17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17375 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17376 shlibpath_var=LD_LIBRARY_PATH
17377 shlibpath_overrides_runpath=yes
17378 if test "$with_gnu_ld" = yes; then
17379 need_lib_prefix=no
17381 need_version=yes
17384 sysv4 | sysv4.3*)
17385 version_type=linux
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 shlibpath_var=LD_LIBRARY_PATH
17389 case $host_vendor in
17390 sni)
17391 shlibpath_overrides_runpath=no
17392 need_lib_prefix=no
17393 runpath_var=LD_RUN_PATH
17395 siemens)
17396 need_lib_prefix=no
17398 motorola)
17399 need_lib_prefix=no
17400 need_version=no
17401 shlibpath_overrides_runpath=no
17402 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17404 esac
17407 sysv4*MP*)
17408 if test -d /usr/nec ;then
17409 version_type=linux
17410 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17411 soname_spec='$libname${shared_ext}.$major'
17412 shlibpath_var=LD_LIBRARY_PATH
17416 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17417 version_type=freebsd-elf
17418 need_lib_prefix=no
17419 need_version=no
17420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17421 soname_spec='${libname}${release}${shared_ext}$major'
17422 shlibpath_var=LD_LIBRARY_PATH
17423 shlibpath_overrides_runpath=yes
17424 hardcode_into_libs=yes
17425 if test "$with_gnu_ld" = yes; then
17426 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17427 else
17428 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17429 case $host_os in
17430 sco3.2v5*)
17431 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17433 esac
17435 sys_lib_dlsearch_path_spec='/usr/lib'
17438 tpf*)
17439 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17440 version_type=linux
17441 need_lib_prefix=no
17442 need_version=no
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 shlibpath_overrides_runpath=no
17446 hardcode_into_libs=yes
17449 uts4*)
17450 version_type=linux
17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17452 soname_spec='${libname}${release}${shared_ext}$major'
17453 shlibpath_var=LD_LIBRARY_PATH
17457 dynamic_linker=no
17459 esac
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17461 $as_echo "$dynamic_linker" >&6; }
17462 test "$dynamic_linker" = no && can_build_shared=no
17464 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17465 if test "$GCC" = yes; then
17466 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17469 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17470 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17472 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17473 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17568 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17569 hardcode_action=
17570 if test -n "$hardcode_libdir_flag_spec" ||
17571 test -n "$runpath_var" ||
17572 test "X$hardcode_automatic" = "Xyes" ; then
17574 # We can hardcode non-existent directories.
17575 if test "$hardcode_direct" != no &&
17576 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17577 # have to relink, otherwise we might link with an installed library
17578 # when we should be linking with a yet-to-be-installed one
17579 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17580 test "$hardcode_minus_L" != no; then
17581 # Linking always hardcodes the temporary library directory.
17582 hardcode_action=relink
17583 else
17584 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17585 hardcode_action=immediate
17587 else
17588 # We cannot hardcode anything, or else we can only hardcode existing
17589 # directories.
17590 hardcode_action=unsupported
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17593 $as_echo "$hardcode_action" >&6; }
17595 if test "$hardcode_action" = relink ||
17596 test "$inherit_rpath" = yes; then
17597 # Fast installation is not supported
17598 enable_fast_install=no
17599 elif test "$shlibpath_overrides_runpath" = yes ||
17600 test "$enable_shared" = no; then
17601 # Fast installation is not necessary
17602 enable_fast_install=needless
17610 if test "x$enable_dlopen" != xyes; then
17611 enable_dlopen=unknown
17612 enable_dlopen_self=unknown
17613 enable_dlopen_self_static=unknown
17614 else
17615 lt_cv_dlopen=no
17616 lt_cv_dlopen_libs=
17618 case $host_os in
17619 beos*)
17620 lt_cv_dlopen="load_add_on"
17621 lt_cv_dlopen_libs=
17622 lt_cv_dlopen_self=yes
17625 mingw* | pw32* | cegcc*)
17626 lt_cv_dlopen="LoadLibrary"
17627 lt_cv_dlopen_libs=
17630 cygwin*)
17631 lt_cv_dlopen="dlopen"
17632 lt_cv_dlopen_libs=
17635 darwin*)
17636 # if libdl is installed we need to link against it
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17638 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17639 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17640 $as_echo_n "(cached) " >&6
17641 else
17642 ac_check_lib_save_LIBS=$LIBS
17643 LIBS="-ldl $LIBS"
17644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h. */
17647 /* Override any GCC internal prototype to avoid an error.
17648 Use char because int might match the return type of a GCC
17649 builtin and then its argument prototype would still apply. */
17650 #ifdef __cplusplus
17651 extern "C"
17652 #endif
17653 char dlopen ();
17655 main ()
17657 return dlopen ();
17659 return 0;
17661 _ACEOF
17662 if ac_fn_c_try_link "$LINENO"; then :
17663 ac_cv_lib_dl_dlopen=yes
17664 else
17665 ac_cv_lib_dl_dlopen=no
17667 rm -f core conftest.err conftest.$ac_objext \
17668 conftest$ac_exeext conftest.$ac_ext
17669 LIBS=$ac_check_lib_save_LIBS
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17672 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17673 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17674 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17675 else
17677 lt_cv_dlopen="dyld"
17678 lt_cv_dlopen_libs=
17679 lt_cv_dlopen_self=yes
17686 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17687 if test "x$ac_cv_func_shl_load" = x""yes; then :
17688 lt_cv_dlopen="shl_load"
17689 else
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17691 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17692 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17693 $as_echo_n "(cached) " >&6
17694 else
17695 ac_check_lib_save_LIBS=$LIBS
17696 LIBS="-ldld $LIBS"
17697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698 /* end confdefs.h. */
17700 /* Override any GCC internal prototype to avoid an error.
17701 Use char because int might match the return type of a GCC
17702 builtin and then its argument prototype would still apply. */
17703 #ifdef __cplusplus
17704 extern "C"
17705 #endif
17706 char shl_load ();
17708 main ()
17710 return shl_load ();
17712 return 0;
17714 _ACEOF
17715 if ac_fn_c_try_link "$LINENO"; then :
17716 ac_cv_lib_dld_shl_load=yes
17717 else
17718 ac_cv_lib_dld_shl_load=no
17720 rm -f core conftest.err conftest.$ac_objext \
17721 conftest$ac_exeext conftest.$ac_ext
17722 LIBS=$ac_check_lib_save_LIBS
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17725 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17726 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17727 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17728 else
17729 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17730 if test "x$ac_cv_func_dlopen" = x""yes; then :
17731 lt_cv_dlopen="dlopen"
17732 else
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17734 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17735 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17736 $as_echo_n "(cached) " >&6
17737 else
17738 ac_check_lib_save_LIBS=$LIBS
17739 LIBS="-ldl $LIBS"
17740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17741 /* end confdefs.h. */
17743 /* Override any GCC internal prototype to avoid an error.
17744 Use char because int might match the return type of a GCC
17745 builtin and then its argument prototype would still apply. */
17746 #ifdef __cplusplus
17747 extern "C"
17748 #endif
17749 char dlopen ();
17751 main ()
17753 return dlopen ();
17755 return 0;
17757 _ACEOF
17758 if ac_fn_c_try_link "$LINENO"; then :
17759 ac_cv_lib_dl_dlopen=yes
17760 else
17761 ac_cv_lib_dl_dlopen=no
17763 rm -f core conftest.err conftest.$ac_objext \
17764 conftest$ac_exeext conftest.$ac_ext
17765 LIBS=$ac_check_lib_save_LIBS
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17768 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17769 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17771 else
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17773 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17774 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17775 $as_echo_n "(cached) " >&6
17776 else
17777 ac_check_lib_save_LIBS=$LIBS
17778 LIBS="-lsvld $LIBS"
17779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780 /* end confdefs.h. */
17782 /* Override any GCC internal prototype to avoid an error.
17783 Use char because int might match the return type of a GCC
17784 builtin and then its argument prototype would still apply. */
17785 #ifdef __cplusplus
17786 extern "C"
17787 #endif
17788 char dlopen ();
17790 main ()
17792 return dlopen ();
17794 return 0;
17796 _ACEOF
17797 if ac_fn_c_try_link "$LINENO"; then :
17798 ac_cv_lib_svld_dlopen=yes
17799 else
17800 ac_cv_lib_svld_dlopen=no
17802 rm -f core conftest.err conftest.$ac_objext \
17803 conftest$ac_exeext conftest.$ac_ext
17804 LIBS=$ac_check_lib_save_LIBS
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17807 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17808 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17809 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17810 else
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17812 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17813 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17814 $as_echo_n "(cached) " >&6
17815 else
17816 ac_check_lib_save_LIBS=$LIBS
17817 LIBS="-ldld $LIBS"
17818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17819 /* end confdefs.h. */
17821 /* Override any GCC internal prototype to avoid an error.
17822 Use char because int might match the return type of a GCC
17823 builtin and then its argument prototype would still apply. */
17824 #ifdef __cplusplus
17825 extern "C"
17826 #endif
17827 char dld_link ();
17829 main ()
17831 return dld_link ();
17833 return 0;
17835 _ACEOF
17836 if ac_fn_c_try_link "$LINENO"; then :
17837 ac_cv_lib_dld_dld_link=yes
17838 else
17839 ac_cv_lib_dld_dld_link=no
17841 rm -f core conftest.err conftest.$ac_objext \
17842 conftest$ac_exeext conftest.$ac_ext
17843 LIBS=$ac_check_lib_save_LIBS
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17846 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17847 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17848 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17867 esac
17869 if test "x$lt_cv_dlopen" != xno; then
17870 enable_dlopen=yes
17871 else
17872 enable_dlopen=no
17875 case $lt_cv_dlopen in
17876 dlopen)
17877 save_CPPFLAGS="$CPPFLAGS"
17878 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17880 save_LDFLAGS="$LDFLAGS"
17881 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17883 save_LIBS="$LIBS"
17884 LIBS="$lt_cv_dlopen_libs $LIBS"
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17887 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17888 if test "${lt_cv_dlopen_self+set}" = set; then :
17889 $as_echo_n "(cached) " >&6
17890 else
17891 if test "$cross_compiling" = yes; then :
17892 lt_cv_dlopen_self=cross
17893 else
17894 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17895 lt_status=$lt_dlunknown
17896 cat > conftest.$ac_ext <<_LT_EOF
17897 #line 17897 "configure"
17898 #include "confdefs.h"
17900 #if HAVE_DLFCN_H
17901 #include <dlfcn.h>
17902 #endif
17904 #include <stdio.h>
17906 #ifdef RTLD_GLOBAL
17907 # define LT_DLGLOBAL RTLD_GLOBAL
17908 #else
17909 # ifdef DL_GLOBAL
17910 # define LT_DLGLOBAL DL_GLOBAL
17911 # else
17912 # define LT_DLGLOBAL 0
17913 # endif
17914 #endif
17916 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17917 find out it does not work in some platform. */
17918 #ifndef LT_DLLAZY_OR_NOW
17919 # ifdef RTLD_LAZY
17920 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17921 # else
17922 # ifdef DL_LAZY
17923 # define LT_DLLAZY_OR_NOW DL_LAZY
17924 # else
17925 # ifdef RTLD_NOW
17926 # define LT_DLLAZY_OR_NOW RTLD_NOW
17927 # else
17928 # ifdef DL_NOW
17929 # define LT_DLLAZY_OR_NOW DL_NOW
17930 # else
17931 # define LT_DLLAZY_OR_NOW 0
17932 # endif
17933 # endif
17934 # endif
17935 # endif
17936 #endif
17938 /* When -fvisbility=hidden is used, assume the code has been annotated
17939 correspondingly for the symbols needed. */
17940 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17941 void fnord () __attribute__((visibility("default")));
17942 #endif
17944 void fnord () { int i=42; }
17945 int main ()
17947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17948 int status = $lt_dlunknown;
17950 if (self)
17952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17953 else
17955 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17956 else puts (dlerror ());
17958 /* dlclose (self); */
17960 else
17961 puts (dlerror ());
17963 return status;
17965 _LT_EOF
17966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17967 (eval $ac_link) 2>&5
17968 ac_status=$?
17969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17970 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17971 (./conftest; exit; ) >&5 2>/dev/null
17972 lt_status=$?
17973 case x$lt_status in
17974 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17975 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17976 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17977 esac
17978 else :
17979 # compilation failed
17980 lt_cv_dlopen_self=no
17983 rm -fr conftest*
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17988 $as_echo "$lt_cv_dlopen_self" >&6; }
17990 if test "x$lt_cv_dlopen_self" = xyes; then
17991 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17993 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17994 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17995 $as_echo_n "(cached) " >&6
17996 else
17997 if test "$cross_compiling" = yes; then :
17998 lt_cv_dlopen_self_static=cross
17999 else
18000 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18001 lt_status=$lt_dlunknown
18002 cat > conftest.$ac_ext <<_LT_EOF
18003 #line 18003 "configure"
18004 #include "confdefs.h"
18006 #if HAVE_DLFCN_H
18007 #include <dlfcn.h>
18008 #endif
18010 #include <stdio.h>
18012 #ifdef RTLD_GLOBAL
18013 # define LT_DLGLOBAL RTLD_GLOBAL
18014 #else
18015 # ifdef DL_GLOBAL
18016 # define LT_DLGLOBAL DL_GLOBAL
18017 # else
18018 # define LT_DLGLOBAL 0
18019 # endif
18020 #endif
18022 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18023 find out it does not work in some platform. */
18024 #ifndef LT_DLLAZY_OR_NOW
18025 # ifdef RTLD_LAZY
18026 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18027 # else
18028 # ifdef DL_LAZY
18029 # define LT_DLLAZY_OR_NOW DL_LAZY
18030 # else
18031 # ifdef RTLD_NOW
18032 # define LT_DLLAZY_OR_NOW RTLD_NOW
18033 # else
18034 # ifdef DL_NOW
18035 # define LT_DLLAZY_OR_NOW DL_NOW
18036 # else
18037 # define LT_DLLAZY_OR_NOW 0
18038 # endif
18039 # endif
18040 # endif
18041 # endif
18042 #endif
18044 /* When -fvisbility=hidden is used, assume the code has been annotated
18045 correspondingly for the symbols needed. */
18046 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18047 void fnord () __attribute__((visibility("default")));
18048 #endif
18050 void fnord () { int i=42; }
18051 int main ()
18053 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18054 int status = $lt_dlunknown;
18056 if (self)
18058 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18059 else
18061 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18062 else puts (dlerror ());
18064 /* dlclose (self); */
18066 else
18067 puts (dlerror ());
18069 return status;
18071 _LT_EOF
18072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18073 (eval $ac_link) 2>&5
18074 ac_status=$?
18075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18076 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18077 (./conftest; exit; ) >&5 2>/dev/null
18078 lt_status=$?
18079 case x$lt_status in
18080 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18081 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18082 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18083 esac
18084 else :
18085 # compilation failed
18086 lt_cv_dlopen_self_static=no
18089 rm -fr conftest*
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18094 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18097 CPPFLAGS="$save_CPPFLAGS"
18098 LDFLAGS="$save_LDFLAGS"
18099 LIBS="$save_LIBS"
18101 esac
18103 case $lt_cv_dlopen_self in
18104 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18105 *) enable_dlopen_self=unknown ;;
18106 esac
18108 case $lt_cv_dlopen_self_static in
18109 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18110 *) enable_dlopen_self_static=unknown ;;
18111 esac
18130 striplib=
18131 old_striplib=
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18133 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18134 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18135 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18136 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18138 $as_echo "yes" >&6; }
18139 else
18140 # FIXME - insert some real tests, host_os isn't really good enough
18141 case $host_os in
18142 darwin*)
18143 if test -n "$STRIP" ; then
18144 striplib="$STRIP -x"
18145 old_striplib="$STRIP -S"
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18147 $as_echo "yes" >&6; }
18148 else
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18150 $as_echo "no" >&6; }
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18155 $as_echo "no" >&6; }
18157 esac
18171 # Report which library types will actually be built
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18173 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18175 $as_echo "$can_build_shared" >&6; }
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18178 $as_echo_n "checking whether to build shared libraries... " >&6; }
18179 test "$can_build_shared" = "no" && enable_shared=no
18181 # On AIX, shared libraries and static libraries use the same namespace, and
18182 # are all built from PIC.
18183 case $host_os in
18184 aix3*)
18185 test "$enable_shared" = yes && enable_static=no
18186 if test -n "$RANLIB"; then
18187 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18188 postinstall_cmds='$RANLIB $lib'
18192 aix[4-9]*)
18193 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18194 test "$enable_shared" = yes && enable_static=no
18197 esac
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18199 $as_echo "$enable_shared" >&6; }
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18202 $as_echo_n "checking whether to build static libraries... " >&6; }
18203 # Make sure either enable_shared or enable_static is yes.
18204 test "$enable_shared" = yes || enable_static=yes
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18206 $as_echo "$enable_static" >&6; }
18212 ac_ext=c
18213 ac_cpp='$CPP $CPPFLAGS'
18214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18218 CC="$lt_save_CC"
18220 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18221 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18222 (test "X$CXX" != "Xg++"))) ; then
18223 ac_ext=cpp
18224 ac_cpp='$CXXCPP $CPPFLAGS'
18225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18229 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18230 if test -z "$CXXCPP"; then
18231 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18232 $as_echo_n "(cached) " >&6
18233 else
18234 # Double quotes because CXXCPP needs to be expanded
18235 for CXXCPP in "$CXX -E" "/lib/cpp"
18237 ac_preproc_ok=false
18238 for ac_cxx_preproc_warn_flag in '' yes
18240 # Use a header file that comes with gcc, so configuring glibc
18241 # with a fresh cross-compiler works.
18242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18243 # <limits.h> exists even on freestanding compilers.
18244 # On the NeXT, cc -E runs the code through the compiler's parser,
18245 # not just through cpp. "Syntax error" is here to catch this case.
18246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h. */
18248 #ifdef __STDC__
18249 # include <limits.h>
18250 #else
18251 # include <assert.h>
18252 #endif
18253 Syntax error
18254 _ACEOF
18255 if ac_fn_cxx_try_cpp "$LINENO"; then :
18257 else
18258 # Broken: fails on valid input.
18259 continue
18261 rm -f conftest.err conftest.$ac_ext
18263 # OK, works on sane cases. Now check whether nonexistent headers
18264 # can be detected and how.
18265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h. */
18267 #include <ac_nonexistent.h>
18268 _ACEOF
18269 if ac_fn_cxx_try_cpp "$LINENO"; then :
18270 # Broken: success on invalid input.
18271 continue
18272 else
18273 # Passes both tests.
18274 ac_preproc_ok=:
18275 break
18277 rm -f conftest.err conftest.$ac_ext
18279 done
18280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18281 rm -f conftest.err conftest.$ac_ext
18282 if $ac_preproc_ok; then :
18283 break
18286 done
18287 ac_cv_prog_CXXCPP=$CXXCPP
18290 CXXCPP=$ac_cv_prog_CXXCPP
18291 else
18292 ac_cv_prog_CXXCPP=$CXXCPP
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18295 $as_echo "$CXXCPP" >&6; }
18296 ac_preproc_ok=false
18297 for ac_cxx_preproc_warn_flag in '' yes
18299 # Use a header file that comes with gcc, so configuring glibc
18300 # with a fresh cross-compiler works.
18301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18302 # <limits.h> exists even on freestanding compilers.
18303 # On the NeXT, cc -E runs the code through the compiler's parser,
18304 # not just through cpp. "Syntax error" is here to catch this case.
18305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18306 /* end confdefs.h. */
18307 #ifdef __STDC__
18308 # include <limits.h>
18309 #else
18310 # include <assert.h>
18311 #endif
18312 Syntax error
18313 _ACEOF
18314 if ac_fn_cxx_try_cpp "$LINENO"; then :
18316 else
18317 # Broken: fails on valid input.
18318 continue
18320 rm -f conftest.err conftest.$ac_ext
18322 # OK, works on sane cases. Now check whether nonexistent headers
18323 # can be detected and how.
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18326 #include <ac_nonexistent.h>
18327 _ACEOF
18328 if ac_fn_cxx_try_cpp "$LINENO"; then :
18329 # Broken: success on invalid input.
18330 continue
18331 else
18332 # Passes both tests.
18333 ac_preproc_ok=:
18334 break
18336 rm -f conftest.err conftest.$ac_ext
18338 done
18339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18340 rm -f conftest.err conftest.$ac_ext
18341 if $ac_preproc_ok; then :
18343 else
18344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18346 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18347 See \`config.log' for more details." "$LINENO" 5; }
18350 ac_ext=c
18351 ac_cpp='$CPP $CPPFLAGS'
18352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18356 else
18357 _lt_caught_CXX_error=yes
18360 ac_ext=cpp
18361 ac_cpp='$CXXCPP $CPPFLAGS'
18362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18366 archive_cmds_need_lc_CXX=no
18367 allow_undefined_flag_CXX=
18368 always_export_symbols_CXX=no
18369 archive_expsym_cmds_CXX=
18370 compiler_needs_object_CXX=no
18371 export_dynamic_flag_spec_CXX=
18372 hardcode_direct_CXX=no
18373 hardcode_direct_absolute_CXX=no
18374 hardcode_libdir_flag_spec_CXX=
18375 hardcode_libdir_flag_spec_ld_CXX=
18376 hardcode_libdir_separator_CXX=
18377 hardcode_minus_L_CXX=no
18378 hardcode_shlibpath_var_CXX=unsupported
18379 hardcode_automatic_CXX=no
18380 inherit_rpath_CXX=no
18381 module_cmds_CXX=
18382 module_expsym_cmds_CXX=
18383 link_all_deplibs_CXX=unknown
18384 old_archive_cmds_CXX=$old_archive_cmds
18385 reload_flag_CXX=$reload_flag
18386 reload_cmds_CXX=$reload_cmds
18387 no_undefined_flag_CXX=
18388 whole_archive_flag_spec_CXX=
18389 enable_shared_with_static_runtimes_CXX=no
18391 # Source file extension for C++ test sources.
18392 ac_ext=cpp
18394 # Object file extension for compiled C++ test sources.
18395 objext=o
18396 objext_CXX=$objext
18398 # No sense in running all these tests if we already determined that
18399 # the CXX compiler isn't working. Some variables (like enable_shared)
18400 # are currently assumed to apply to all compilers on this platform,
18401 # and will be corrupted by setting them based on a non-working compiler.
18402 if test "$_lt_caught_CXX_error" != yes; then
18403 # Code to be used in simple compile tests
18404 lt_simple_compile_test_code="int some_variable = 0;"
18406 # Code to be used in simple link tests
18407 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18409 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18416 # If no C compiler was specified, use CC.
18417 LTCC=${LTCC-"$CC"}
18419 # If no C compiler flags were specified, use CFLAGS.
18420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18422 # Allow CC to be a program name with arguments.
18423 compiler=$CC
18426 # save warnings/boilerplate of simple test code
18427 ac_outfile=conftest.$ac_objext
18428 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18429 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18430 _lt_compiler_boilerplate=`cat conftest.err`
18431 $RM conftest*
18433 ac_outfile=conftest.$ac_objext
18434 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18435 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18436 _lt_linker_boilerplate=`cat conftest.err`
18437 $RM -r conftest*
18440 # Allow CC to be a program name with arguments.
18441 lt_save_CC=$CC
18442 lt_save_LD=$LD
18443 lt_save_GCC=$GCC
18444 GCC=$GXX
18445 lt_save_with_gnu_ld=$with_gnu_ld
18446 lt_save_path_LD=$lt_cv_path_LD
18447 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18448 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18449 else
18450 $as_unset lt_cv_prog_gnu_ld
18452 if test -n "${lt_cv_path_LDCXX+set}"; then
18453 lt_cv_path_LD=$lt_cv_path_LDCXX
18454 else
18455 $as_unset lt_cv_path_LD
18457 test -z "${LDCXX+set}" || LD=$LDCXX
18458 CC=${CXX-"c++"}
18459 compiler=$CC
18460 compiler_CXX=$CC
18461 for cc_temp in $compiler""; do
18462 case $cc_temp in
18463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18465 \-*) ;;
18466 *) break;;
18467 esac
18468 done
18469 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18472 if test -n "$compiler"; then
18473 # We don't want -fno-exception when compiling C++ code, so set the
18474 # no_builtin_flag separately
18475 if test "$GXX" = yes; then
18476 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18477 else
18478 lt_prog_compiler_no_builtin_flag_CXX=
18481 if test "$GXX" = yes; then
18482 # Set up default GNU C++ configuration
18486 # Check whether --with-gnu-ld was given.
18487 if test "${with_gnu_ld+set}" = set; then :
18488 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18489 else
18490 with_gnu_ld=no
18493 ac_prog=ld
18494 if test "$GCC" = yes; then
18495 # Check if gcc -print-prog-name=ld gives a path.
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18497 $as_echo_n "checking for ld used by $CC... " >&6; }
18498 case $host in
18499 *-*-mingw*)
18500 # gcc leaves a trailing carriage return which upsets mingw
18501 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18503 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18504 esac
18505 case $ac_prog in
18506 # Accept absolute paths.
18507 [\\/]* | ?:[\\/]*)
18508 re_direlt='/[^/][^/]*/\.\./'
18509 # Canonicalize the pathname of ld
18510 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18511 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18512 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18513 done
18514 test -z "$LD" && LD="$ac_prog"
18517 # If it fails, then pretend we aren't using GCC.
18518 ac_prog=ld
18521 # If it is relative, then search for the first ld in PATH.
18522 with_gnu_ld=unknown
18524 esac
18525 elif test "$with_gnu_ld" = yes; then
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18527 $as_echo_n "checking for GNU ld... " >&6; }
18528 else
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18530 $as_echo_n "checking for non-GNU ld... " >&6; }
18532 if test "${lt_cv_path_LD+set}" = set; then :
18533 $as_echo_n "(cached) " >&6
18534 else
18535 if test -z "$LD"; then
18536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18537 for ac_dir in $PATH; do
18538 IFS="$lt_save_ifs"
18539 test -z "$ac_dir" && ac_dir=.
18540 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18541 lt_cv_path_LD="$ac_dir/$ac_prog"
18542 # Check to see if the program is GNU ld. I'd rather use --version,
18543 # but apparently some variants of GNU ld only accept -v.
18544 # Break only if it was the GNU/non-GNU ld that we prefer.
18545 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18546 *GNU* | *'with BFD'*)
18547 test "$with_gnu_ld" != no && break
18550 test "$with_gnu_ld" != yes && break
18552 esac
18554 done
18555 IFS="$lt_save_ifs"
18556 else
18557 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18561 LD="$lt_cv_path_LD"
18562 if test -n "$LD"; then
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18564 $as_echo "$LD" >&6; }
18565 else
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18567 $as_echo "no" >&6; }
18569 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18571 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18572 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18573 $as_echo_n "(cached) " >&6
18574 else
18575 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18576 case `$LD -v 2>&1 </dev/null` in
18577 *GNU* | *'with BFD'*)
18578 lt_cv_prog_gnu_ld=yes
18581 lt_cv_prog_gnu_ld=no
18583 esac
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18586 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18587 with_gnu_ld=$lt_cv_prog_gnu_ld
18595 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18596 # archiving commands below assume that GNU ld is being used.
18597 if test "$with_gnu_ld" = yes; then
18598 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18599 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18601 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18602 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18604 # If archive_cmds runs LD, not CC, wlarc should be empty
18605 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18606 # investigate it a little bit more. (MM)
18607 wlarc='${wl}'
18609 # ancient GNU ld didn't support --whole-archive et. al.
18610 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18611 $GREP 'no-whole-archive' > /dev/null; then
18612 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18613 else
18614 whole_archive_flag_spec_CXX=
18616 else
18617 with_gnu_ld=no
18618 wlarc=
18620 # A generic and very simple default shared library creation
18621 # command for GNU C++ for the case where it uses the native
18622 # linker, instead of GNU ld. If possible, this setting should
18623 # overridden to take advantage of the native linker features on
18624 # the platform it is being used on.
18625 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18628 # Commands to make compiler produce verbose output that lists
18629 # what "hidden" libraries, object files and flags are used when
18630 # linking a shared library.
18631 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18633 else
18634 GXX=no
18635 with_gnu_ld=no
18636 wlarc=
18639 # PORTME: fill in a description of your system's C++ link characteristics
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18641 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18642 ld_shlibs_CXX=yes
18643 case $host_os in
18644 aix3*)
18645 # FIXME: insert proper C++ library support
18646 ld_shlibs_CXX=no
18648 aix[4-9]*)
18649 if test "$host_cpu" = ia64; then
18650 # On IA64, the linker does run time linking by default, so we don't
18651 # have to do anything special.
18652 aix_use_runtimelinking=no
18653 exp_sym_flag='-Bexport'
18654 no_entry_flag=""
18655 else
18656 aix_use_runtimelinking=no
18658 # Test if we are trying to use run time linking or normal
18659 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18660 # need to do runtime linking.
18661 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18662 for ld_flag in $LDFLAGS; do
18663 case $ld_flag in
18664 *-brtl*)
18665 aix_use_runtimelinking=yes
18666 break
18668 esac
18669 done
18671 esac
18673 exp_sym_flag='-bexport'
18674 no_entry_flag='-bnoentry'
18677 # When large executables or shared objects are built, AIX ld can
18678 # have problems creating the table of contents. If linking a library
18679 # or program results in "error TOC overflow" add -mminimal-toc to
18680 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18681 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18683 archive_cmds_CXX=''
18684 hardcode_direct_CXX=yes
18685 hardcode_direct_absolute_CXX=yes
18686 hardcode_libdir_separator_CXX=':'
18687 link_all_deplibs_CXX=yes
18688 file_list_spec_CXX='${wl}-f,'
18690 if test "$GXX" = yes; then
18691 case $host_os in aix4.[012]|aix4.[012].*)
18692 # We only want to do this on AIX 4.2 and lower, the check
18693 # below for broken collect2 doesn't work under 4.3+
18694 collect2name=`${CC} -print-prog-name=collect2`
18695 if test -f "$collect2name" &&
18696 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18697 then
18698 # We have reworked collect2
18700 else
18701 # We have old collect2
18702 hardcode_direct_CXX=unsupported
18703 # It fails to find uninstalled libraries when the uninstalled
18704 # path is not listed in the libpath. Setting hardcode_minus_L
18705 # to unsupported forces relinking
18706 hardcode_minus_L_CXX=yes
18707 hardcode_libdir_flag_spec_CXX='-L$libdir'
18708 hardcode_libdir_separator_CXX=
18710 esac
18711 shared_flag='-shared'
18712 if test "$aix_use_runtimelinking" = yes; then
18713 shared_flag="$shared_flag "'${wl}-G'
18715 else
18716 # not using gcc
18717 if test "$host_cpu" = ia64; then
18718 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18719 # chokes on -Wl,-G. The following line is correct:
18720 shared_flag='-G'
18721 else
18722 if test "$aix_use_runtimelinking" = yes; then
18723 shared_flag='${wl}-G'
18724 else
18725 shared_flag='${wl}-bM:SRE'
18730 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18731 # It seems that -bexpall does not export symbols beginning with
18732 # underscore (_), so it is better to generate a list of symbols to
18733 # export.
18734 always_export_symbols_CXX=yes
18735 if test "$aix_use_runtimelinking" = yes; then
18736 # Warning - without using the other runtime loading flags (-brtl),
18737 # -berok will link without error, but may produce a broken library.
18738 allow_undefined_flag_CXX='-berok'
18739 # Determine the default libpath from the value encoded in an empty
18740 # executable.
18741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h. */
18745 main ()
18749 return 0;
18751 _ACEOF
18752 if ac_fn_cxx_try_link "$LINENO"; then :
18754 lt_aix_libpath_sed='
18755 /Import File Strings/,/^$/ {
18756 /^0/ {
18757 s/^0 *\(.*\)$/\1/
18761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18762 # Check for a 64-bit object if we didn't find anything.
18763 if test -z "$aix_libpath"; then
18764 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18767 rm -f core conftest.err conftest.$ac_objext \
18768 conftest$ac_exeext conftest.$ac_ext
18769 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18771 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18773 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18774 else
18775 if test "$host_cpu" = ia64; then
18776 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18777 allow_undefined_flag_CXX="-z nodefs"
18778 archive_expsym_cmds_CXX="\$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"
18779 else
18780 # Determine the default libpath from the value encoded in an
18781 # empty executable.
18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18786 main ()
18790 return 0;
18792 _ACEOF
18793 if ac_fn_cxx_try_link "$LINENO"; then :
18795 lt_aix_libpath_sed='
18796 /Import File Strings/,/^$/ {
18797 /^0/ {
18798 s/^0 *\(.*\)$/\1/
18802 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18803 # Check for a 64-bit object if we didn't find anything.
18804 if test -z "$aix_libpath"; then
18805 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18808 rm -f core conftest.err conftest.$ac_objext \
18809 conftest$ac_exeext conftest.$ac_ext
18810 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18812 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18813 # Warning - without using the other run time loading flags,
18814 # -berok will link without error, but may produce a broken library.
18815 no_undefined_flag_CXX=' ${wl}-bernotok'
18816 allow_undefined_flag_CXX=' ${wl}-berok'
18817 if test "$with_gnu_ld" = yes; then
18818 # We only use this code for GNU lds that support --whole-archive.
18819 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18820 else
18821 # Exported symbols can be pulled into shared objects from archives
18822 whole_archive_flag_spec_CXX='$convenience'
18824 archive_cmds_need_lc_CXX=yes
18825 # This is similar to how AIX traditionally builds its shared
18826 # libraries.
18827 archive_expsym_cmds_CXX="\$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'
18832 beos*)
18833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18834 allow_undefined_flag_CXX=unsupported
18835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18836 # support --undefined. This deserves some investigation. FIXME
18837 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18838 else
18839 ld_shlibs_CXX=no
18843 chorus*)
18844 case $cc_basename in
18846 # FIXME: insert proper C++ library support
18847 ld_shlibs_CXX=no
18849 esac
18852 cygwin* | mingw* | pw32* | cegcc*)
18853 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18854 # as there is no search path for DLLs.
18855 hardcode_libdir_flag_spec_CXX='-L$libdir'
18856 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18857 allow_undefined_flag_CXX=unsupported
18858 always_export_symbols_CXX=no
18859 enable_shared_with_static_runtimes_CXX=yes
18861 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18862 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18863 # If the export-symbols file already is a .def file (1st line
18864 # is EXPORTS), use it as is; otherwise, prepend...
18865 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18866 cp $export_symbols $output_objdir/$soname.def;
18867 else
18868 echo EXPORTS > $output_objdir/$soname.def;
18869 cat $export_symbols >> $output_objdir/$soname.def;
18871 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18872 else
18873 ld_shlibs_CXX=no
18876 darwin* | rhapsody*)
18879 archive_cmds_need_lc_CXX=no
18880 hardcode_direct_CXX=no
18881 hardcode_automatic_CXX=yes
18882 hardcode_shlibpath_var_CXX=unsupported
18883 if test "$lt_cv_ld_force_load" = "yes"; then
18884 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
18885 else
18886 whole_archive_flag_spec_CXX=''
18888 link_all_deplibs_CXX=yes
18889 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18890 case $cc_basename in
18891 ifort*) _lt_dar_can_shared=yes ;;
18892 *) _lt_dar_can_shared=$GCC ;;
18893 esac
18894 if test "$_lt_dar_can_shared" = "yes"; then
18895 output_verbose_link_cmd=func_echo_all
18896 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18897 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18898 archive_expsym_cmds_CXX="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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18899 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18900 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18901 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
18902 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
18905 else
18906 ld_shlibs_CXX=no
18911 dgux*)
18912 case $cc_basename in
18913 ec++*)
18914 # FIXME: insert proper C++ library support
18915 ld_shlibs_CXX=no
18917 ghcx*)
18918 # Green Hills C++ Compiler
18919 # FIXME: insert proper C++ library support
18920 ld_shlibs_CXX=no
18923 # FIXME: insert proper C++ library support
18924 ld_shlibs_CXX=no
18926 esac
18929 freebsd2.*)
18930 # C++ shared libraries reported to be fairly broken before
18931 # switch to ELF
18932 ld_shlibs_CXX=no
18935 freebsd-elf*)
18936 archive_cmds_need_lc_CXX=no
18939 freebsd* | dragonfly*)
18940 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18941 # conventions
18942 ld_shlibs_CXX=yes
18945 gnu*)
18948 haiku*)
18949 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18950 link_all_deplibs_CXX=yes
18953 hpux9*)
18954 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18955 hardcode_libdir_separator_CXX=:
18956 export_dynamic_flag_spec_CXX='${wl}-E'
18957 hardcode_direct_CXX=yes
18958 hardcode_minus_L_CXX=yes # Not in the search PATH,
18959 # but as the default
18960 # location of the library.
18962 case $cc_basename in
18963 CC*)
18964 # FIXME: insert proper C++ library support
18965 ld_shlibs_CXX=no
18967 aCC*)
18968 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18969 # Commands to make compiler produce verbose output that lists
18970 # what "hidden" libraries, object files and flags are used when
18971 # linking a shared library.
18973 # There doesn't appear to be a way to prevent this compiler from
18974 # explicitly linking system object files so we need to strip them
18975 # from the output so that they don't get included in the library
18976 # dependencies.
18977 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18980 if test "$GXX" = yes; then
18981 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18982 else
18983 # FIXME: insert proper C++ library support
18984 ld_shlibs_CXX=no
18987 esac
18990 hpux10*|hpux11*)
18991 if test $with_gnu_ld = no; then
18992 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18993 hardcode_libdir_separator_CXX=:
18995 case $host_cpu in
18996 hppa*64*|ia64*)
18999 export_dynamic_flag_spec_CXX='${wl}-E'
19001 esac
19003 case $host_cpu in
19004 hppa*64*|ia64*)
19005 hardcode_direct_CXX=no
19006 hardcode_shlibpath_var_CXX=no
19009 hardcode_direct_CXX=yes
19010 hardcode_direct_absolute_CXX=yes
19011 hardcode_minus_L_CXX=yes # Not in the search PATH,
19012 # but as the default
19013 # location of the library.
19015 esac
19017 case $cc_basename in
19018 CC*)
19019 # FIXME: insert proper C++ library support
19020 ld_shlibs_CXX=no
19022 aCC*)
19023 case $host_cpu in
19024 hppa*64*)
19025 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19027 ia64*)
19028 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19031 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19033 esac
19034 # Commands to make compiler produce verbose output that lists
19035 # what "hidden" libraries, object files and flags are used when
19036 # linking a shared library.
19038 # There doesn't appear to be a way to prevent this compiler from
19039 # explicitly linking system object files so we need to strip them
19040 # from the output so that they don't get included in the library
19041 # dependencies.
19042 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19045 if test "$GXX" = yes; then
19046 if test $with_gnu_ld = no; then
19047 case $host_cpu in
19048 hppa*64*)
19049 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19051 ia64*)
19052 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19055 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19057 esac
19059 else
19060 # FIXME: insert proper C++ library support
19061 ld_shlibs_CXX=no
19064 esac
19067 interix[3-9]*)
19068 hardcode_direct_CXX=no
19069 hardcode_shlibpath_var_CXX=no
19070 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19071 export_dynamic_flag_spec_CXX='${wl}-E'
19072 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19073 # Instead, shared libraries are loaded at an image base (0x10000000 by
19074 # default) and relocated if they conflict, which is a slow very memory
19075 # consuming and fragmenting process. To avoid this, we pick a random,
19076 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19077 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19078 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19079 archive_expsym_cmds_CXX='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'
19081 irix5* | irix6*)
19082 case $cc_basename in
19083 CC*)
19084 # SGI C++
19085 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19087 # Archives containing C++ object files must be created using
19088 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19089 # necessary to make sure instantiated templates are included
19090 # in the archive.
19091 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19094 if test "$GXX" = yes; then
19095 if test "$with_gnu_ld" = no; then
19096 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19097 else
19098 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
19101 link_all_deplibs_CXX=yes
19103 esac
19104 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19105 hardcode_libdir_separator_CXX=:
19106 inherit_rpath_CXX=yes
19109 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19110 case $cc_basename in
19111 KCC*)
19112 # Kuck and Associates, Inc. (KAI) C++ Compiler
19114 # KCC will only create a shared library if the output file
19115 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19116 # to its proper name (with version) after linking.
19117 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19118 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19119 # Commands to make compiler produce verbose output that lists
19120 # what "hidden" libraries, object files and flags are used when
19121 # linking a shared library.
19123 # There doesn't appear to be a way to prevent this compiler from
19124 # explicitly linking system object files so we need to strip them
19125 # from the output so that they don't get included in the library
19126 # dependencies.
19127 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19129 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19130 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19132 # Archives containing C++ object files must be created using
19133 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19134 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19136 icpc* | ecpc* )
19137 # Intel C++
19138 with_gnu_ld=yes
19139 # version 8.0 and above of icpc choke on multiply defined symbols
19140 # if we add $predep_objects and $postdep_objects, however 7.1 and
19141 # earlier do not add the objects themselves.
19142 case `$CC -V 2>&1` in
19143 *"Version 7."*)
19144 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19145 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19147 *) # Version 8.0 or newer
19148 tmp_idyn=
19149 case $host_cpu in
19150 ia64*) tmp_idyn=' -i_dynamic';;
19151 esac
19152 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19153 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19155 esac
19156 archive_cmds_need_lc_CXX=no
19157 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19158 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19159 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19161 pgCC* | pgcpp*)
19162 # Portland Group C++ compiler
19163 case `$CC -V` in
19164 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19165 prelink_cmds_CXX='tpldir=Template.dir~
19166 rm -rf $tpldir~
19167 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19168 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19169 old_archive_cmds_CXX='tpldir=Template.dir~
19170 rm -rf $tpldir~
19171 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19172 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19173 $RANLIB $oldlib'
19174 archive_cmds_CXX='tpldir=Template.dir~
19175 rm -rf $tpldir~
19176 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19177 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19178 archive_expsym_cmds_CXX='tpldir=Template.dir~
19179 rm -rf $tpldir~
19180 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19181 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19183 *) # Version 6 and above use weak symbols
19184 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19185 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19187 esac
19189 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19190 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19191 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19193 cxx*)
19194 # Compaq C++
19195 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19196 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19198 runpath_var=LD_RUN_PATH
19199 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19200 hardcode_libdir_separator_CXX=:
19202 # Commands to make compiler produce verbose output that lists
19203 # what "hidden" libraries, object files and flags are used when
19204 # linking a shared library.
19206 # There doesn't appear to be a way to prevent this compiler from
19207 # explicitly linking system object files so we need to strip them
19208 # from the output so that they don't get included in the library
19209 # dependencies.
19210 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
19212 xl* | mpixl* | bgxl*)
19213 # IBM XL 8.0 on PPC, with GNU ld
19214 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19215 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19216 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19217 if test "x$supports_anon_versioning" = xyes; then
19218 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19219 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19220 echo "local: *; };" >> $output_objdir/$libname.ver~
19221 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19225 case `$CC -V 2>&1 | sed 5q` in
19226 *Sun\ C*)
19227 # Sun C++ 5.9
19228 no_undefined_flag_CXX=' -zdefs'
19229 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19230 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19231 hardcode_libdir_flag_spec_CXX='-R$libdir'
19232 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19233 compiler_needs_object_CXX=yes
19235 # Not sure whether something based on
19236 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19237 # would be better.
19238 output_verbose_link_cmd='func_echo_all'
19240 # Archives containing C++ object files must be created using
19241 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19242 # necessary to make sure instantiated templates are included
19243 # in the archive.
19244 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19246 esac
19248 esac
19251 lynxos*)
19252 # FIXME: insert proper C++ library support
19253 ld_shlibs_CXX=no
19256 m88k*)
19257 # FIXME: insert proper C++ library support
19258 ld_shlibs_CXX=no
19261 mvs*)
19262 case $cc_basename in
19263 cxx*)
19264 # FIXME: insert proper C++ library support
19265 ld_shlibs_CXX=no
19268 # FIXME: insert proper C++ library support
19269 ld_shlibs_CXX=no
19271 esac
19274 netbsd*)
19275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19276 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19277 wlarc=
19278 hardcode_libdir_flag_spec_CXX='-R$libdir'
19279 hardcode_direct_CXX=yes
19280 hardcode_shlibpath_var_CXX=no
19282 # Workaround some broken pre-1.5 toolchains
19283 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19286 *nto* | *qnx*)
19287 ld_shlibs_CXX=yes
19290 openbsd2*)
19291 # C++ shared libraries are fairly broken
19292 ld_shlibs_CXX=no
19295 openbsd*)
19296 if test -f /usr/libexec/ld.so; then
19297 hardcode_direct_CXX=yes
19298 hardcode_shlibpath_var_CXX=no
19299 hardcode_direct_absolute_CXX=yes
19300 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19301 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19302 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19303 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19304 export_dynamic_flag_spec_CXX='${wl}-E'
19305 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19307 output_verbose_link_cmd=func_echo_all
19308 else
19309 ld_shlibs_CXX=no
19313 osf3* | osf4* | osf5*)
19314 case $cc_basename in
19315 KCC*)
19316 # Kuck and Associates, Inc. (KAI) C++ Compiler
19318 # KCC will only create a shared library if the output file
19319 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19320 # to its proper name (with version) after linking.
19321 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19324 hardcode_libdir_separator_CXX=:
19326 # Archives containing C++ object files must be created using
19327 # the KAI C++ compiler.
19328 case $host in
19329 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19330 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19331 esac
19333 RCC*)
19334 # Rational C++ 2.4.1
19335 # FIXME: insert proper C++ library support
19336 ld_shlibs_CXX=no
19338 cxx*)
19339 case $host in
19340 osf3*)
19341 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19342 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19343 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19346 allow_undefined_flag_CXX=' -expect_unresolved \*'
19347 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19348 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19349 echo "-hidden">> $lib.exp~
19350 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
19351 $RM $lib.exp'
19352 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19354 esac
19356 hardcode_libdir_separator_CXX=:
19358 # Commands to make compiler produce verbose output that lists
19359 # what "hidden" libraries, object files and flags are used when
19360 # linking a shared library.
19362 # There doesn't appear to be a way to prevent this compiler from
19363 # explicitly linking system object files so we need to strip them
19364 # from the output so that they don't get included in the library
19365 # dependencies.
19366 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19369 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19370 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19371 case $host in
19372 osf3*)
19373 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19376 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19378 esac
19380 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19381 hardcode_libdir_separator_CXX=:
19383 # Commands to make compiler produce verbose output that lists
19384 # what "hidden" libraries, object files and flags are used when
19385 # linking a shared library.
19386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19388 else
19389 # FIXME: insert proper C++ library support
19390 ld_shlibs_CXX=no
19393 esac
19396 psos*)
19397 # FIXME: insert proper C++ library support
19398 ld_shlibs_CXX=no
19401 sunos4*)
19402 case $cc_basename in
19403 CC*)
19404 # Sun C++ 4.x
19405 # FIXME: insert proper C++ library support
19406 ld_shlibs_CXX=no
19408 lcc*)
19409 # Lucid
19410 # FIXME: insert proper C++ library support
19411 ld_shlibs_CXX=no
19414 # FIXME: insert proper C++ library support
19415 ld_shlibs_CXX=no
19417 esac
19420 solaris*)
19421 case $cc_basename in
19422 CC*)
19423 # Sun C++ 4.2, 5.x and Centerline C++
19424 archive_cmds_need_lc_CXX=yes
19425 no_undefined_flag_CXX=' -zdefs'
19426 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19427 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19428 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19430 hardcode_libdir_flag_spec_CXX='-R$libdir'
19431 hardcode_shlibpath_var_CXX=no
19432 case $host_os in
19433 solaris2.[0-5] | solaris2.[0-5].*) ;;
19435 # The compiler driver will combine and reorder linker options,
19436 # but understands `-z linker_flag'.
19437 # Supported since Solaris 2.6 (maybe 2.5.1?)
19438 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19440 esac
19441 link_all_deplibs_CXX=yes
19443 output_verbose_link_cmd='func_echo_all'
19445 # Archives containing C++ object files must be created using
19446 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19447 # necessary to make sure instantiated templates are included
19448 # in the archive.
19449 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19451 gcx*)
19452 # Green Hills C++ Compiler
19453 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19455 # The C++ compiler must be used to create the archive.
19456 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19459 # GNU C++ compiler with Solaris linker
19460 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19461 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19462 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19463 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19464 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19465 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19467 # Commands to make compiler produce verbose output that lists
19468 # what "hidden" libraries, object files and flags are used when
19469 # linking a shared library.
19470 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19471 else
19472 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19473 # platform.
19474 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19475 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19476 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19478 # Commands to make compiler produce verbose output that lists
19479 # what "hidden" libraries, object files and flags are used when
19480 # linking a shared library.
19481 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19484 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19485 case $host_os in
19486 solaris2.[0-5] | solaris2.[0-5].*) ;;
19488 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19490 esac
19493 esac
19496 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19497 no_undefined_flag_CXX='${wl}-z,text'
19498 archive_cmds_need_lc_CXX=no
19499 hardcode_shlibpath_var_CXX=no
19500 runpath_var='LD_RUN_PATH'
19502 case $cc_basename in
19503 CC*)
19504 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19505 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19508 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19509 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19511 esac
19514 sysv5* | sco3.2v5* | sco5v6*)
19515 # Note: We can NOT use -z defs as we might desire, because we do not
19516 # link with -lc, and that would cause any symbols used from libc to
19517 # always be unresolved, which means just about no library would
19518 # ever link correctly. If we're not using GNU ld we use -z text
19519 # though, which does catch some bad symbols but isn't as heavy-handed
19520 # as -z defs.
19521 no_undefined_flag_CXX='${wl}-z,text'
19522 allow_undefined_flag_CXX='${wl}-z,nodefs'
19523 archive_cmds_need_lc_CXX=no
19524 hardcode_shlibpath_var_CXX=no
19525 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19526 hardcode_libdir_separator_CXX=':'
19527 link_all_deplibs_CXX=yes
19528 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19529 runpath_var='LD_RUN_PATH'
19531 case $cc_basename in
19532 CC*)
19533 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19534 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19535 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19536 '"$old_archive_cmds_CXX"
19537 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19538 '"$reload_cmds_CXX"
19541 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19542 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19544 esac
19547 tandem*)
19548 case $cc_basename in
19549 NCC*)
19550 # NonStop-UX NCC 3.20
19551 # FIXME: insert proper C++ library support
19552 ld_shlibs_CXX=no
19555 # FIXME: insert proper C++ library support
19556 ld_shlibs_CXX=no
19558 esac
19561 vxworks*)
19562 # FIXME: insert proper C++ library support
19563 ld_shlibs_CXX=no
19567 # FIXME: insert proper C++ library support
19568 ld_shlibs_CXX=no
19570 esac
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19573 $as_echo "$ld_shlibs_CXX" >&6; }
19574 test "$ld_shlibs_CXX" = no && can_build_shared=no
19576 GCC_CXX="$GXX"
19577 LD_CXX="$LD"
19579 ## CAVEAT EMPTOR:
19580 ## There is no encapsulation within the following macros, do not change
19581 ## the running order or otherwise move them around unless you know exactly
19582 ## what you are doing...
19583 # Dependencies to place before and after the object being linked:
19584 predep_objects_CXX=
19585 postdep_objects_CXX=
19586 predeps_CXX=
19587 postdeps_CXX=
19588 compiler_lib_search_path_CXX=
19590 cat > conftest.$ac_ext <<_LT_EOF
19591 class Foo
19593 public:
19594 Foo (void) { a = 0; }
19595 private:
19596 int a;
19598 _LT_EOF
19600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19601 (eval $ac_compile) 2>&5
19602 ac_status=$?
19603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19604 test $ac_status = 0; }; then
19605 # Parse the compiler output and extract the necessary
19606 # objects, libraries and library flags.
19608 # Sentinel used to keep track of whether or not we are before
19609 # the conftest object file.
19610 pre_test_object_deps_done=no
19612 for p in `eval "$output_verbose_link_cmd"`; do
19613 case $p in
19615 -L* | -R* | -l*)
19616 # Some compilers place space between "-{L,R}" and the path.
19617 # Remove the space.
19618 if test $p = "-L" ||
19619 test $p = "-R"; then
19620 prev=$p
19621 continue
19622 else
19623 prev=
19626 if test "$pre_test_object_deps_done" = no; then
19627 case $p in
19628 -L* | -R*)
19629 # Internal compiler library paths should come after those
19630 # provided the user. The postdeps already come after the
19631 # user supplied libs so there is no need to process them.
19632 if test -z "$compiler_lib_search_path_CXX"; then
19633 compiler_lib_search_path_CXX="${prev}${p}"
19634 else
19635 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19638 # The "-l" case would never come before the object being
19639 # linked, so don't bother handling this case.
19640 esac
19641 else
19642 if test -z "$postdeps_CXX"; then
19643 postdeps_CXX="${prev}${p}"
19644 else
19645 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19650 *.$objext)
19651 # This assumes that the test object file only shows up
19652 # once in the compiler output.
19653 if test "$p" = "conftest.$objext"; then
19654 pre_test_object_deps_done=yes
19655 continue
19658 if test "$pre_test_object_deps_done" = no; then
19659 if test -z "$predep_objects_CXX"; then
19660 predep_objects_CXX="$p"
19661 else
19662 predep_objects_CXX="$predep_objects_CXX $p"
19664 else
19665 if test -z "$postdep_objects_CXX"; then
19666 postdep_objects_CXX="$p"
19667 else
19668 postdep_objects_CXX="$postdep_objects_CXX $p"
19673 *) ;; # Ignore the rest.
19675 esac
19676 done
19678 # Clean up.
19679 rm -f a.out a.exe
19680 else
19681 echo "libtool.m4: error: problem compiling CXX test program"
19684 $RM -f confest.$objext
19686 # PORTME: override above test on systems where it is broken
19687 case $host_os in
19688 interix[3-9]*)
19689 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19690 # hack all around it, let's just trust "g++" to DTRT.
19691 predep_objects_CXX=
19692 postdep_objects_CXX=
19693 postdeps_CXX=
19696 linux*)
19697 case `$CC -V 2>&1 | sed 5q` in
19698 *Sun\ C*)
19699 # Sun C++ 5.9
19701 # The more standards-conforming stlport4 library is
19702 # incompatible with the Cstd library. Avoid specifying
19703 # it if it's in CXXFLAGS. Ignore libCrun as
19704 # -library=stlport4 depends on it.
19705 case " $CXX $CXXFLAGS " in
19706 *" -library=stlport4 "*)
19707 solaris_use_stlport4=yes
19709 esac
19711 if test "$solaris_use_stlport4" != yes; then
19712 postdeps_CXX='-library=Cstd -library=Crun'
19715 esac
19718 solaris*)
19719 case $cc_basename in
19720 CC*)
19721 # The more standards-conforming stlport4 library is
19722 # incompatible with the Cstd library. Avoid specifying
19723 # it if it's in CXXFLAGS. Ignore libCrun as
19724 # -library=stlport4 depends on it.
19725 case " $CXX $CXXFLAGS " in
19726 *" -library=stlport4 "*)
19727 solaris_use_stlport4=yes
19729 esac
19731 # Adding this requires a known-good setup of shared libraries for
19732 # Sun compiler versions before 5.6, else PIC objects from an old
19733 # archive will be linked into the output, leading to subtle bugs.
19734 if test "$solaris_use_stlport4" != yes; then
19735 postdeps_CXX='-library=Cstd -library=Crun'
19738 esac
19740 esac
19743 case " $postdeps_CXX " in
19744 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19745 esac
19746 compiler_lib_search_dirs_CXX=
19747 if test -n "${compiler_lib_search_path_CXX}"; then
19748 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19781 lt_prog_compiler_wl_CXX=
19782 lt_prog_compiler_pic_CXX=
19783 lt_prog_compiler_static_CXX=
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19786 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19788 # C++ specific cases for pic, static, wl, etc.
19789 if test "$GXX" = yes; then
19790 lt_prog_compiler_wl_CXX='-Wl,'
19791 lt_prog_compiler_static_CXX='-static'
19793 case $host_os in
19794 aix*)
19795 # All AIX code is PIC.
19796 if test "$host_cpu" = ia64; then
19797 # AIX 5 now supports IA64 processor
19798 lt_prog_compiler_static_CXX='-Bstatic'
19800 lt_prog_compiler_pic_CXX='-fPIC'
19803 amigaos*)
19804 case $host_cpu in
19805 powerpc)
19806 # see comment about AmigaOS4 .so support
19807 lt_prog_compiler_pic_CXX='-fPIC'
19809 m68k)
19810 # FIXME: we need at least 68020 code to build shared libraries, but
19811 # adding the `-m68020' flag to GCC prevents building anything better,
19812 # like `-m68040'.
19813 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19815 esac
19818 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19819 # PIC is the default for these OSes.
19821 mingw* | cygwin* | os2* | pw32* | cegcc*)
19822 # This hack is so that the source file can tell whether it is being
19823 # built for inclusion in a dll (and should export symbols for example).
19824 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19825 # (--disable-auto-import) libraries
19826 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19828 darwin* | rhapsody*)
19829 # PIC is the default on this platform
19830 # Common symbols not allowed in MH_DYLIB files
19831 lt_prog_compiler_pic_CXX='-fno-common'
19833 *djgpp*)
19834 # DJGPP does not support shared libraries at all
19835 lt_prog_compiler_pic_CXX=
19837 haiku*)
19838 # PIC is the default for Haiku.
19839 # The "-static" flag exists, but is broken.
19840 lt_prog_compiler_static_CXX=
19842 interix[3-9]*)
19843 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19844 # Instead, we relocate shared libraries at runtime.
19846 sysv4*MP*)
19847 if test -d /usr/nec; then
19848 lt_prog_compiler_pic_CXX=-Kconform_pic
19851 hpux*)
19852 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19853 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19854 # sets the default TLS model and affects inlining.
19855 case $host_cpu in
19856 hppa*64*)
19859 lt_prog_compiler_pic_CXX='-fPIC'
19861 esac
19863 *qnx* | *nto*)
19864 # QNX uses GNU C++, but need to define -shared option too, otherwise
19865 # it will coredump.
19866 lt_prog_compiler_pic_CXX='-fPIC -shared'
19869 lt_prog_compiler_pic_CXX='-fPIC'
19871 esac
19872 else
19873 case $host_os in
19874 aix[4-9]*)
19875 # All AIX code is PIC.
19876 if test "$host_cpu" = ia64; then
19877 # AIX 5 now supports IA64 processor
19878 lt_prog_compiler_static_CXX='-Bstatic'
19879 else
19880 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19883 chorus*)
19884 case $cc_basename in
19885 cxch68*)
19886 # Green Hills C++ Compiler
19887 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19889 esac
19891 dgux*)
19892 case $cc_basename in
19893 ec++*)
19894 lt_prog_compiler_pic_CXX='-KPIC'
19896 ghcx*)
19897 # Green Hills C++ Compiler
19898 lt_prog_compiler_pic_CXX='-pic'
19902 esac
19904 freebsd* | dragonfly*)
19905 # FreeBSD uses GNU C++
19907 hpux9* | hpux10* | hpux11*)
19908 case $cc_basename in
19909 CC*)
19910 lt_prog_compiler_wl_CXX='-Wl,'
19911 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19912 if test "$host_cpu" != ia64; then
19913 lt_prog_compiler_pic_CXX='+Z'
19916 aCC*)
19917 lt_prog_compiler_wl_CXX='-Wl,'
19918 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19919 case $host_cpu in
19920 hppa*64*|ia64*)
19921 # +Z the default
19924 lt_prog_compiler_pic_CXX='+Z'
19926 esac
19930 esac
19932 interix*)
19933 # This is c89, which is MS Visual C++ (no shared libs)
19934 # Anyone wants to do a port?
19936 irix5* | irix6* | nonstopux*)
19937 case $cc_basename in
19938 CC*)
19939 lt_prog_compiler_wl_CXX='-Wl,'
19940 lt_prog_compiler_static_CXX='-non_shared'
19941 # CC pic flag -KPIC is the default.
19945 esac
19947 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19948 case $cc_basename in
19949 KCC*)
19950 # KAI C++ Compiler
19951 lt_prog_compiler_wl_CXX='--backend -Wl,'
19952 lt_prog_compiler_pic_CXX='-fPIC'
19954 ecpc* )
19955 # old Intel C++ for x86_64 which still supported -KPIC.
19956 lt_prog_compiler_wl_CXX='-Wl,'
19957 lt_prog_compiler_pic_CXX='-KPIC'
19958 lt_prog_compiler_static_CXX='-static'
19960 icpc* )
19961 # Intel C++, used to be incompatible with GCC.
19962 # ICC 10 doesn't accept -KPIC any more.
19963 lt_prog_compiler_wl_CXX='-Wl,'
19964 lt_prog_compiler_pic_CXX='-fPIC'
19965 lt_prog_compiler_static_CXX='-static'
19967 pgCC* | pgcpp*)
19968 # Portland Group C++ compiler
19969 lt_prog_compiler_wl_CXX='-Wl,'
19970 lt_prog_compiler_pic_CXX='-fpic'
19971 lt_prog_compiler_static_CXX='-Bstatic'
19973 cxx*)
19974 # Compaq C++
19975 # Make sure the PIC flag is empty. It appears that all Alpha
19976 # Linux and Compaq Tru64 Unix objects are PIC.
19977 lt_prog_compiler_pic_CXX=
19978 lt_prog_compiler_static_CXX='-non_shared'
19980 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19981 # IBM XL 8.0, 9.0 on PPC and BlueGene
19982 lt_prog_compiler_wl_CXX='-Wl,'
19983 lt_prog_compiler_pic_CXX='-qpic'
19984 lt_prog_compiler_static_CXX='-qstaticlink'
19987 case `$CC -V 2>&1 | sed 5q` in
19988 *Sun\ C*)
19989 # Sun C++ 5.9
19990 lt_prog_compiler_pic_CXX='-KPIC'
19991 lt_prog_compiler_static_CXX='-Bstatic'
19992 lt_prog_compiler_wl_CXX='-Qoption ld '
19994 esac
19996 esac
19998 lynxos*)
20000 m88k*)
20002 mvs*)
20003 case $cc_basename in
20004 cxx*)
20005 lt_prog_compiler_pic_CXX='-W c,exportall'
20009 esac
20011 netbsd*)
20013 *qnx* | *nto*)
20014 # QNX uses GNU C++, but need to define -shared option too, otherwise
20015 # it will coredump.
20016 lt_prog_compiler_pic_CXX='-fPIC -shared'
20018 osf3* | osf4* | osf5*)
20019 case $cc_basename in
20020 KCC*)
20021 lt_prog_compiler_wl_CXX='--backend -Wl,'
20023 RCC*)
20024 # Rational C++ 2.4.1
20025 lt_prog_compiler_pic_CXX='-pic'
20027 cxx*)
20028 # Digital/Compaq C++
20029 lt_prog_compiler_wl_CXX='-Wl,'
20030 # Make sure the PIC flag is empty. It appears that all Alpha
20031 # Linux and Compaq Tru64 Unix objects are PIC.
20032 lt_prog_compiler_pic_CXX=
20033 lt_prog_compiler_static_CXX='-non_shared'
20037 esac
20039 psos*)
20041 solaris*)
20042 case $cc_basename in
20043 CC*)
20044 # Sun C++ 4.2, 5.x and Centerline C++
20045 lt_prog_compiler_pic_CXX='-KPIC'
20046 lt_prog_compiler_static_CXX='-Bstatic'
20047 lt_prog_compiler_wl_CXX='-Qoption ld '
20049 gcx*)
20050 # Green Hills C++ Compiler
20051 lt_prog_compiler_pic_CXX='-PIC'
20055 esac
20057 sunos4*)
20058 case $cc_basename in
20059 CC*)
20060 # Sun C++ 4.x
20061 lt_prog_compiler_pic_CXX='-pic'
20062 lt_prog_compiler_static_CXX='-Bstatic'
20064 lcc*)
20065 # Lucid
20066 lt_prog_compiler_pic_CXX='-pic'
20070 esac
20072 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20073 case $cc_basename in
20074 CC*)
20075 lt_prog_compiler_wl_CXX='-Wl,'
20076 lt_prog_compiler_pic_CXX='-KPIC'
20077 lt_prog_compiler_static_CXX='-Bstatic'
20079 esac
20081 tandem*)
20082 case $cc_basename in
20083 NCC*)
20084 # NonStop-UX NCC 3.20
20085 lt_prog_compiler_pic_CXX='-KPIC'
20089 esac
20091 vxworks*)
20094 lt_prog_compiler_can_build_shared_CXX=no
20096 esac
20099 case $host_os in
20100 # For platforms which do not support PIC, -DPIC is meaningless:
20101 *djgpp*)
20102 lt_prog_compiler_pic_CXX=
20105 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20107 esac
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20109 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20114 # Check to make sure the PIC flag actually works.
20116 if test -n "$lt_prog_compiler_pic_CXX"; then
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20118 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20119 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20120 $as_echo_n "(cached) " >&6
20121 else
20122 lt_cv_prog_compiler_pic_works_CXX=no
20123 ac_outfile=conftest.$ac_objext
20124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20125 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20126 # Insert the option either (1) after the last *FLAGS variable, or
20127 # (2) before a word containing "conftest.", or (3) at the end.
20128 # Note that $ac_compile itself does not contain backslashes and begins
20129 # with a dollar sign (not a hyphen), so the echo should work correctly.
20130 # The option is referenced via a variable to avoid confusing sed.
20131 lt_compile=`echo "$ac_compile" | $SED \
20132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20134 -e 's:$: $lt_compiler_flag:'`
20135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20136 (eval "$lt_compile" 2>conftest.err)
20137 ac_status=$?
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 if (exit $ac_status) && test -s "$ac_outfile"; then
20141 # The compiler can only warn and ignore the option if not recognized
20142 # So say no if there are warnings other than the usual output.
20143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20146 lt_cv_prog_compiler_pic_works_CXX=yes
20149 $RM conftest*
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20153 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20155 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20156 case $lt_prog_compiler_pic_CXX in
20157 "" | " "*) ;;
20158 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20159 esac
20160 else
20161 lt_prog_compiler_pic_CXX=
20162 lt_prog_compiler_can_build_shared_CXX=no
20170 # Check to make sure the static flag actually works.
20172 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20174 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20175 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20176 $as_echo_n "(cached) " >&6
20177 else
20178 lt_cv_prog_compiler_static_works_CXX=no
20179 save_LDFLAGS="$LDFLAGS"
20180 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20181 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20182 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20183 # The linker can only warn and ignore the option if not recognized
20184 # So say no if there are warnings
20185 if test -s conftest.err; then
20186 # Append any errors to the config.log.
20187 cat conftest.err 1>&5
20188 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20190 if diff conftest.exp conftest.er2 >/dev/null; then
20191 lt_cv_prog_compiler_static_works_CXX=yes
20193 else
20194 lt_cv_prog_compiler_static_works_CXX=yes
20197 $RM -r conftest*
20198 LDFLAGS="$save_LDFLAGS"
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20202 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20204 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20206 else
20207 lt_prog_compiler_static_CXX=
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20214 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20215 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20216 $as_echo_n "(cached) " >&6
20217 else
20218 lt_cv_prog_compiler_c_o_CXX=no
20219 $RM -r conftest 2>/dev/null
20220 mkdir conftest
20221 cd conftest
20222 mkdir out
20223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20225 lt_compiler_flag="-o out/conftest2.$ac_objext"
20226 # Insert the option either (1) after the last *FLAGS variable, or
20227 # (2) before a word containing "conftest.", or (3) at the end.
20228 # Note that $ac_compile itself does not contain backslashes and begins
20229 # with a dollar sign (not a hyphen), so the echo should work correctly.
20230 lt_compile=`echo "$ac_compile" | $SED \
20231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20233 -e 's:$: $lt_compiler_flag:'`
20234 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20235 (eval "$lt_compile" 2>out/conftest.err)
20236 ac_status=$?
20237 cat out/conftest.err >&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20240 then
20241 # The compiler can only warn and ignore the option if not recognized
20242 # So say no if there are warnings
20243 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20244 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20245 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20246 lt_cv_prog_compiler_c_o_CXX=yes
20249 chmod u+w . 2>&5
20250 $RM conftest*
20251 # SGI C++ compiler will create directory out/ii_files/ for
20252 # template instantiation
20253 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20254 $RM out/* && rmdir out
20255 cd ..
20256 $RM -r conftest
20257 $RM conftest*
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20261 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20266 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20267 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20268 $as_echo_n "(cached) " >&6
20269 else
20270 lt_cv_prog_compiler_c_o_CXX=no
20271 $RM -r conftest 2>/dev/null
20272 mkdir conftest
20273 cd conftest
20274 mkdir out
20275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20277 lt_compiler_flag="-o out/conftest2.$ac_objext"
20278 # Insert the option either (1) after the last *FLAGS variable, or
20279 # (2) before a word containing "conftest.", or (3) at the end.
20280 # Note that $ac_compile itself does not contain backslashes and begins
20281 # with a dollar sign (not a hyphen), so the echo should work correctly.
20282 lt_compile=`echo "$ac_compile" | $SED \
20283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20285 -e 's:$: $lt_compiler_flag:'`
20286 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20287 (eval "$lt_compile" 2>out/conftest.err)
20288 ac_status=$?
20289 cat out/conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20292 then
20293 # The compiler can only warn and ignore the option if not recognized
20294 # So say no if there are warnings
20295 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20296 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20297 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20298 lt_cv_prog_compiler_c_o_CXX=yes
20301 chmod u+w . 2>&5
20302 $RM conftest*
20303 # SGI C++ compiler will create directory out/ii_files/ for
20304 # template instantiation
20305 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20306 $RM out/* && rmdir out
20307 cd ..
20308 $RM -r conftest
20309 $RM conftest*
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20313 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20318 hard_links="nottested"
20319 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20320 # do not overwrite the value of need_locks provided by the user
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20322 $as_echo_n "checking if we can lock with hard links... " >&6; }
20323 hard_links=yes
20324 $RM conftest*
20325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20326 touch conftest.a
20327 ln conftest.a conftest.b 2>&5 || hard_links=no
20328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20330 $as_echo "$hard_links" >&6; }
20331 if test "$hard_links" = no; then
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20333 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20334 need_locks=warn
20336 else
20337 need_locks=no
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20343 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20345 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20346 case $host_os in
20347 aix[4-9]*)
20348 # If we're using GNU nm, then we don't want the "-C" option.
20349 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20350 # Also, AIX nm treats weak defined symbols like other global defined
20351 # symbols, whereas GNU nm marks them as "W".
20352 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20353 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20354 else
20355 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20358 pw32*)
20359 export_symbols_cmds_CXX="$ltdll_cmds"
20361 cygwin* | mingw* | cegcc*)
20362 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20365 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20367 esac
20368 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20371 $as_echo "$ld_shlibs_CXX" >&6; }
20372 test "$ld_shlibs_CXX" = no && can_build_shared=no
20374 with_gnu_ld_CXX=$with_gnu_ld
20382 # Do we need to explicitly link libc?
20384 case "x$archive_cmds_need_lc_CXX" in
20385 x|xyes)
20386 # Assume -lc should be added
20387 archive_cmds_need_lc_CXX=yes
20389 if test "$enable_shared" = yes && test "$GCC" = yes; then
20390 case $archive_cmds_CXX in
20391 *'~'*)
20392 # FIXME: we may have to deal with multi-command sequences.
20394 '$CC '*)
20395 # Test whether the compiler implicitly links with -lc since on some
20396 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20397 # to ld, don't add -lc before -lgcc.
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20399 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20400 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20401 $as_echo_n "(cached) " >&6
20402 else
20403 $RM conftest*
20404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20407 (eval $ac_compile) 2>&5
20408 ac_status=$?
20409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20410 test $ac_status = 0; } 2>conftest.err; then
20411 soname=conftest
20412 lib=conftest
20413 libobjs=conftest.$ac_objext
20414 deplibs=
20415 wl=$lt_prog_compiler_wl_CXX
20416 pic_flag=$lt_prog_compiler_pic_CXX
20417 compiler_flags=-v
20418 linker_flags=-v
20419 verstring=
20420 output_objdir=.
20421 libname=conftest
20422 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20423 allow_undefined_flag_CXX=
20424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20425 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20426 ac_status=$?
20427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20428 test $ac_status = 0; }
20429 then
20430 lt_cv_archive_cmds_need_lc_CXX=no
20431 else
20432 lt_cv_archive_cmds_need_lc_CXX=yes
20434 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20435 else
20436 cat conftest.err 1>&5
20438 $RM conftest*
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20442 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20443 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20445 esac
20448 esac
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20514 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20516 library_names_spec=
20517 libname_spec='lib$name'
20518 soname_spec=
20519 shrext_cmds=".so"
20520 postinstall_cmds=
20521 postuninstall_cmds=
20522 finish_cmds=
20523 finish_eval=
20524 shlibpath_var=
20525 shlibpath_overrides_runpath=unknown
20526 version_type=none
20527 dynamic_linker="$host_os ld.so"
20528 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20529 need_lib_prefix=unknown
20530 hardcode_into_libs=no
20532 # when you set need_version to no, make sure it does not cause -set_version
20533 # flags to be left without arguments
20534 need_version=unknown
20536 case $host_os in
20537 aix3*)
20538 version_type=linux
20539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20540 shlibpath_var=LIBPATH
20542 # AIX 3 has no versioning support, so we append a major version to the name.
20543 soname_spec='${libname}${release}${shared_ext}$major'
20546 aix[4-9]*)
20547 version_type=linux
20548 need_lib_prefix=no
20549 need_version=no
20550 hardcode_into_libs=yes
20551 if test "$host_cpu" = ia64; then
20552 # AIX 5 supports IA64
20553 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20554 shlibpath_var=LD_LIBRARY_PATH
20555 else
20556 # With GCC up to 2.95.x, collect2 would create an import file
20557 # for dependence libraries. The import file would start with
20558 # the line `#! .'. This would cause the generated library to
20559 # depend on `.', always an invalid library. This was fixed in
20560 # development snapshots of GCC prior to 3.0.
20561 case $host_os in
20562 aix4 | aix4.[01] | aix4.[01].*)
20563 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20564 echo ' yes '
20565 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20567 else
20568 can_build_shared=no
20571 esac
20572 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20573 # soname into executable. Probably we can add versioning support to
20574 # collect2, so additional links can be useful in future.
20575 if test "$aix_use_runtimelinking" = yes; then
20576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20577 # instead of lib<name>.a to let people know that these are not
20578 # typical AIX shared libraries.
20579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20580 else
20581 # We preserve .a as extension for shared libraries through AIX4.2
20582 # and later when we are not doing run time linking.
20583 library_names_spec='${libname}${release}.a $libname.a'
20584 soname_spec='${libname}${release}${shared_ext}$major'
20586 shlibpath_var=LIBPATH
20590 amigaos*)
20591 case $host_cpu in
20592 powerpc)
20593 # Since July 2007 AmigaOS4 officially supports .so libraries.
20594 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20597 m68k)
20598 library_names_spec='$libname.ixlibrary $libname.a'
20599 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20600 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
20602 esac
20605 beos*)
20606 library_names_spec='${libname}${shared_ext}'
20607 dynamic_linker="$host_os ld.so"
20608 shlibpath_var=LIBRARY_PATH
20611 bsdi[45]*)
20612 version_type=linux
20613 need_version=no
20614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20615 soname_spec='${libname}${release}${shared_ext}$major'
20616 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20617 shlibpath_var=LD_LIBRARY_PATH
20618 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20619 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20620 # the default ld.so.conf also contains /usr/contrib/lib and
20621 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20622 # libtool to hard-code these into programs
20625 cygwin* | mingw* | pw32* | cegcc*)
20626 version_type=windows
20627 shrext_cmds=".dll"
20628 need_version=no
20629 need_lib_prefix=no
20631 case $GCC,$host_os in
20632 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20633 library_names_spec='$libname.dll.a'
20634 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20635 postinstall_cmds='base_file=`basename \${file}`~
20636 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20637 dldir=$destdir/`dirname \$dlpath`~
20638 test -d \$dldir || mkdir -p \$dldir~
20639 $install_prog $dir/$dlname \$dldir/$dlname~
20640 chmod a+x \$dldir/$dlname~
20641 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20642 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20644 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20645 dlpath=$dir/\$dldll~
20646 $RM \$dlpath'
20647 shlibpath_overrides_runpath=yes
20649 case $host_os in
20650 cygwin*)
20651 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20652 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20655 mingw* | cegcc*)
20656 # MinGW DLLs use traditional 'lib' prefix
20657 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20659 pw32*)
20660 # pw32 DLLs use 'pw' prefix rather than 'lib'
20661 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20663 esac
20667 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20669 esac
20670 dynamic_linker='Win32 ld.exe'
20671 # FIXME: first we should search . and the directory the executable is in
20672 shlibpath_var=PATH
20675 darwin* | rhapsody*)
20676 dynamic_linker="$host_os dyld"
20677 version_type=darwin
20678 need_lib_prefix=no
20679 need_version=no
20680 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20681 soname_spec='${libname}${release}${major}$shared_ext'
20682 shlibpath_overrides_runpath=yes
20683 shlibpath_var=DYLD_LIBRARY_PATH
20684 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20686 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20689 dgux*)
20690 version_type=linux
20691 need_lib_prefix=no
20692 need_version=no
20693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20694 soname_spec='${libname}${release}${shared_ext}$major'
20695 shlibpath_var=LD_LIBRARY_PATH
20698 freebsd* | dragonfly*)
20699 # DragonFly does not have aout. When/if they implement a new
20700 # versioning mechanism, adjust this.
20701 if test -x /usr/bin/objformat; then
20702 objformat=`/usr/bin/objformat`
20703 else
20704 case $host_os in
20705 freebsd[23].*) objformat=aout ;;
20706 *) objformat=elf ;;
20707 esac
20709 version_type=freebsd-$objformat
20710 case $version_type in
20711 freebsd-elf*)
20712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20713 need_version=no
20714 need_lib_prefix=no
20716 freebsd-*)
20717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20718 need_version=yes
20720 esac
20721 shlibpath_var=LD_LIBRARY_PATH
20722 case $host_os in
20723 freebsd2.*)
20724 shlibpath_overrides_runpath=yes
20726 freebsd3.[01]* | freebsdelf3.[01]*)
20727 shlibpath_overrides_runpath=yes
20728 hardcode_into_libs=yes
20730 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20731 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20732 shlibpath_overrides_runpath=no
20733 hardcode_into_libs=yes
20735 *) # from 4.6 on, and DragonFly
20736 shlibpath_overrides_runpath=yes
20737 hardcode_into_libs=yes
20739 esac
20742 gnu*)
20743 version_type=linux
20744 need_lib_prefix=no
20745 need_version=no
20746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20747 soname_spec='${libname}${release}${shared_ext}$major'
20748 shlibpath_var=LD_LIBRARY_PATH
20749 hardcode_into_libs=yes
20752 haiku*)
20753 version_type=linux
20754 need_lib_prefix=no
20755 need_version=no
20756 dynamic_linker="$host_os runtime_loader"
20757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20758 soname_spec='${libname}${release}${shared_ext}$major'
20759 shlibpath_var=LIBRARY_PATH
20760 shlibpath_overrides_runpath=yes
20761 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20762 hardcode_into_libs=yes
20765 hpux9* | hpux10* | hpux11*)
20766 # Give a soname corresponding to the major version so that dld.sl refuses to
20767 # link against other versions.
20768 version_type=sunos
20769 need_lib_prefix=no
20770 need_version=no
20771 case $host_cpu in
20772 ia64*)
20773 shrext_cmds='.so'
20774 hardcode_into_libs=yes
20775 dynamic_linker="$host_os dld.so"
20776 shlibpath_var=LD_LIBRARY_PATH
20777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20779 soname_spec='${libname}${release}${shared_ext}$major'
20780 if test "X$HPUX_IA64_MODE" = X32; then
20781 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20782 else
20783 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20787 hppa*64*)
20788 shrext_cmds='.sl'
20789 hardcode_into_libs=yes
20790 dynamic_linker="$host_os dld.sl"
20791 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20794 soname_spec='${libname}${release}${shared_ext}$major'
20795 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20796 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20799 shrext_cmds='.sl'
20800 dynamic_linker="$host_os dld.sl"
20801 shlibpath_var=SHLIB_PATH
20802 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20804 soname_spec='${libname}${release}${shared_ext}$major'
20806 esac
20807 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20808 postinstall_cmds='chmod 555 $lib'
20809 # or fails outright, so override atomically:
20810 install_override_mode=555
20813 interix[3-9]*)
20814 version_type=linux
20815 need_lib_prefix=no
20816 need_version=no
20817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20818 soname_spec='${libname}${release}${shared_ext}$major'
20819 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20820 shlibpath_var=LD_LIBRARY_PATH
20821 shlibpath_overrides_runpath=no
20822 hardcode_into_libs=yes
20825 irix5* | irix6* | nonstopux*)
20826 case $host_os in
20827 nonstopux*) version_type=nonstopux ;;
20829 if test "$lt_cv_prog_gnu_ld" = yes; then
20830 version_type=linux
20831 else
20832 version_type=irix
20833 fi ;;
20834 esac
20835 need_lib_prefix=no
20836 need_version=no
20837 soname_spec='${libname}${release}${shared_ext}$major'
20838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20839 case $host_os in
20840 irix5* | nonstopux*)
20841 libsuff= shlibsuff=
20844 case $LD in # libtool.m4 will add one of these switches to LD
20845 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20846 libsuff= shlibsuff= libmagic=32-bit;;
20847 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20848 libsuff=32 shlibsuff=N32 libmagic=N32;;
20849 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20850 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20851 *) libsuff= shlibsuff= libmagic=never-match;;
20852 esac
20854 esac
20855 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20856 shlibpath_overrides_runpath=no
20857 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20858 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20859 hardcode_into_libs=yes
20862 # No shared lib support for Linux oldld, aout, or coff.
20863 linux*oldld* | linux*aout* | linux*coff*)
20864 dynamic_linker=no
20867 # This must be Linux ELF.
20868 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20869 version_type=linux
20870 need_lib_prefix=no
20871 need_version=no
20872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20873 soname_spec='${libname}${release}${shared_ext}$major'
20874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20875 shlibpath_var=LD_LIBRARY_PATH
20876 shlibpath_overrides_runpath=no
20878 # Some binutils ld are patched to set DT_RUNPATH
20879 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20880 $as_echo_n "(cached) " >&6
20881 else
20882 lt_cv_shlibpath_overrides_runpath=no
20883 save_LDFLAGS=$LDFLAGS
20884 save_libdir=$libdir
20885 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20886 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20888 /* end confdefs.h. */
20891 main ()
20895 return 0;
20897 _ACEOF
20898 if ac_fn_cxx_try_link "$LINENO"; then :
20899 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20900 lt_cv_shlibpath_overrides_runpath=yes
20903 rm -f core conftest.err conftest.$ac_objext \
20904 conftest$ac_exeext conftest.$ac_ext
20905 LDFLAGS=$save_LDFLAGS
20906 libdir=$save_libdir
20910 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20912 # This implies no fast_install, which is unacceptable.
20913 # Some rework will be needed to allow for fast_install
20914 # before this can be enabled.
20915 hardcode_into_libs=yes
20917 # Append ld.so.conf contents to the search path
20918 if test -f /etc/ld.so.conf; then
20919 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
20920 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20923 # We used to test for /lib/ld.so.1 and disable shared libraries on
20924 # powerpc, because MkLinux only supported shared libraries with the
20925 # GNU dynamic linker. Since this was broken with cross compilers,
20926 # most powerpc-linux boxes support dynamic linking these days and
20927 # people can always --disable-shared, the test was removed, and we
20928 # assume the GNU/Linux dynamic linker is in use.
20929 dynamic_linker='GNU/Linux ld.so'
20932 netbsd*)
20933 version_type=sunos
20934 need_lib_prefix=no
20935 need_version=no
20936 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20939 dynamic_linker='NetBSD (a.out) ld.so'
20940 else
20941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20942 soname_spec='${libname}${release}${shared_ext}$major'
20943 dynamic_linker='NetBSD ld.elf_so'
20945 shlibpath_var=LD_LIBRARY_PATH
20946 shlibpath_overrides_runpath=yes
20947 hardcode_into_libs=yes
20950 newsos6)
20951 version_type=linux
20952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20953 shlibpath_var=LD_LIBRARY_PATH
20954 shlibpath_overrides_runpath=yes
20957 *nto* | *qnx*)
20958 version_type=qnx
20959 need_lib_prefix=no
20960 need_version=no
20961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20962 soname_spec='${libname}${release}${shared_ext}$major'
20963 shlibpath_var=LD_LIBRARY_PATH
20964 shlibpath_overrides_runpath=no
20965 hardcode_into_libs=yes
20966 dynamic_linker='ldqnx.so'
20969 openbsd*)
20970 version_type=sunos
20971 sys_lib_dlsearch_path_spec="/usr/lib"
20972 need_lib_prefix=no
20973 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20974 case $host_os in
20975 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20976 *) need_version=no ;;
20977 esac
20978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20980 shlibpath_var=LD_LIBRARY_PATH
20981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20982 case $host_os in
20983 openbsd2.[89] | openbsd2.[89].*)
20984 shlibpath_overrides_runpath=no
20987 shlibpath_overrides_runpath=yes
20989 esac
20990 else
20991 shlibpath_overrides_runpath=yes
20995 os2*)
20996 libname_spec='$name'
20997 shrext_cmds=".dll"
20998 need_lib_prefix=no
20999 library_names_spec='$libname${shared_ext} $libname.a'
21000 dynamic_linker='OS/2 ld.exe'
21001 shlibpath_var=LIBPATH
21004 osf3* | osf4* | osf5*)
21005 version_type=osf
21006 need_lib_prefix=no
21007 need_version=no
21008 soname_spec='${libname}${release}${shared_ext}$major'
21009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21010 shlibpath_var=LD_LIBRARY_PATH
21011 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21012 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21015 rdos*)
21016 dynamic_linker=no
21019 solaris*)
21020 version_type=linux
21021 need_lib_prefix=no
21022 need_version=no
21023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21024 soname_spec='${libname}${release}${shared_ext}$major'
21025 shlibpath_var=LD_LIBRARY_PATH
21026 shlibpath_overrides_runpath=yes
21027 hardcode_into_libs=yes
21028 # ldd complains unless libraries are executable
21029 postinstall_cmds='chmod +x $lib'
21032 sunos4*)
21033 version_type=sunos
21034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21035 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21036 shlibpath_var=LD_LIBRARY_PATH
21037 shlibpath_overrides_runpath=yes
21038 if test "$with_gnu_ld" = yes; then
21039 need_lib_prefix=no
21041 need_version=yes
21044 sysv4 | sysv4.3*)
21045 version_type=linux
21046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21047 soname_spec='${libname}${release}${shared_ext}$major'
21048 shlibpath_var=LD_LIBRARY_PATH
21049 case $host_vendor in
21050 sni)
21051 shlibpath_overrides_runpath=no
21052 need_lib_prefix=no
21053 runpath_var=LD_RUN_PATH
21055 siemens)
21056 need_lib_prefix=no
21058 motorola)
21059 need_lib_prefix=no
21060 need_version=no
21061 shlibpath_overrides_runpath=no
21062 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21064 esac
21067 sysv4*MP*)
21068 if test -d /usr/nec ;then
21069 version_type=linux
21070 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21071 soname_spec='$libname${shared_ext}.$major'
21072 shlibpath_var=LD_LIBRARY_PATH
21076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21077 version_type=freebsd-elf
21078 need_lib_prefix=no
21079 need_version=no
21080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21081 soname_spec='${libname}${release}${shared_ext}$major'
21082 shlibpath_var=LD_LIBRARY_PATH
21083 shlibpath_overrides_runpath=yes
21084 hardcode_into_libs=yes
21085 if test "$with_gnu_ld" = yes; then
21086 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21087 else
21088 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21089 case $host_os in
21090 sco3.2v5*)
21091 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21093 esac
21095 sys_lib_dlsearch_path_spec='/usr/lib'
21098 tpf*)
21099 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21100 version_type=linux
21101 need_lib_prefix=no
21102 need_version=no
21103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21104 shlibpath_var=LD_LIBRARY_PATH
21105 shlibpath_overrides_runpath=no
21106 hardcode_into_libs=yes
21109 uts4*)
21110 version_type=linux
21111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21112 soname_spec='${libname}${release}${shared_ext}$major'
21113 shlibpath_var=LD_LIBRARY_PATH
21117 dynamic_linker=no
21119 esac
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21121 $as_echo "$dynamic_linker" >&6; }
21122 test "$dynamic_linker" = no && can_build_shared=no
21124 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21125 if test "$GCC" = yes; then
21126 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21129 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21130 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21132 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21133 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21174 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21175 hardcode_action_CXX=
21176 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21177 test -n "$runpath_var_CXX" ||
21178 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21180 # We can hardcode non-existent directories.
21181 if test "$hardcode_direct_CXX" != no &&
21182 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21183 # have to relink, otherwise we might link with an installed library
21184 # when we should be linking with a yet-to-be-installed one
21185 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21186 test "$hardcode_minus_L_CXX" != no; then
21187 # Linking always hardcodes the temporary library directory.
21188 hardcode_action_CXX=relink
21189 else
21190 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21191 hardcode_action_CXX=immediate
21193 else
21194 # We cannot hardcode anything, or else we can only hardcode existing
21195 # directories.
21196 hardcode_action_CXX=unsupported
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21199 $as_echo "$hardcode_action_CXX" >&6; }
21201 if test "$hardcode_action_CXX" = relink ||
21202 test "$inherit_rpath_CXX" = yes; then
21203 # Fast installation is not supported
21204 enable_fast_install=no
21205 elif test "$shlibpath_overrides_runpath" = yes ||
21206 test "$enable_shared" = no; then
21207 # Fast installation is not necessary
21208 enable_fast_install=needless
21217 fi # test -n "$compiler"
21219 CC=$lt_save_CC
21220 LDCXX=$LD
21221 LD=$lt_save_LD
21222 GCC=$lt_save_GCC
21223 with_gnu_ld=$lt_save_with_gnu_ld
21224 lt_cv_path_LDCXX=$lt_cv_path_LD
21225 lt_cv_path_LD=$lt_save_path_LD
21226 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21227 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21228 fi # test "$_lt_caught_CXX_error" != yes
21230 ac_ext=c
21231 ac_cpp='$CPP $CPPFLAGS'
21232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21251 # Only expand once:
21257 # Identify the assembler which will work hand-in-glove with the newly
21258 # built GCC, so that we can examine its features. This is the assembler
21259 # which will be driven by the driver program.
21261 # If build != host, and we aren't building gas in-tree, we identify a
21262 # build->target assembler and hope that it will have the same features
21263 # as the host->target assembler we'll be using.
21264 gcc_cv_gas_major_version=
21265 gcc_cv_gas_minor_version=
21266 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21268 if test "${gcc_cv_as+set}" = set; then :
21270 else
21272 if test -x "$DEFAULT_ASSEMBLER"; then
21273 gcc_cv_as="$DEFAULT_ASSEMBLER"
21274 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21275 && test -f ../gas/Makefile \
21276 && test x$build = x$host; then
21277 gcc_cv_as=../gas/as-new$build_exeext
21278 elif test -x as$build_exeext; then
21279 # Build using assembler in the current directory.
21280 gcc_cv_as=./as$build_exeext
21281 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21282 gcc_cv_as="$AS_FOR_TARGET"
21283 else
21284 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21285 set dummy $AS_FOR_TARGET; ac_word=$2
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21287 $as_echo_n "checking for $ac_word... " >&6; }
21288 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21289 $as_echo_n "(cached) " >&6
21290 else
21291 case $gcc_cv_as in
21292 [\\/]* | ?:[\\/]*)
21293 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21297 for as_dir in $PATH
21299 IFS=$as_save_IFS
21300 test -z "$as_dir" && as_dir=.
21301 for ac_exec_ext in '' $ac_executable_extensions; do
21302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21303 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21305 break 2
21307 done
21308 done
21309 IFS=$as_save_IFS
21312 esac
21314 gcc_cv_as=$ac_cv_path_gcc_cv_as
21315 if test -n "$gcc_cv_as"; then
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21317 $as_echo "$gcc_cv_as" >&6; }
21318 else
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21320 $as_echo "no" >&6; }
21327 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21329 case "$ORIGINAL_AS_FOR_TARGET" in
21330 ./as | ./as$build_exeext) ;;
21331 *) ac_config_files="$ac_config_files as:exec-tool.in"
21333 esac
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21336 $as_echo_n "checking what assembler to use... " >&6; }
21337 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21338 # Single tree build which includes gas. We want to prefer it
21339 # over whatever linker top-level may have detected, since
21340 # we'll use what we're building after installation anyway.
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21342 $as_echo "newly built gas" >&6; }
21343 in_tree_gas=yes
21344 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21345 for f in $gcc_cv_as_bfd_srcdir/configure \
21346 $gcc_cv_as_gas_srcdir/configure \
21347 $gcc_cv_as_gas_srcdir/configure.in \
21348 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21349 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21350 if test x$gcc_cv_gas_version != x; then
21351 break
21353 done
21354 case $gcc_cv_gas_version in
21355 VERSION=[0-9]*) ;;
21356 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21357 esac
21358 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21359 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21360 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21361 case $gcc_cv_gas_patch_version in
21362 "") gcc_cv_gas_patch_version="0" ;;
21363 esac
21364 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21365 + $gcc_cv_gas_minor_version \) \* 1000 \
21366 + $gcc_cv_gas_patch_version`
21368 in_tree_gas_is_elf=no
21369 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21370 || (grep 'obj_format = multi' ../gas/Makefile \
21371 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21372 then
21373 in_tree_gas_is_elf=yes
21375 else
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21377 $as_echo "$gcc_cv_as" >&6; }
21378 in_tree_gas=no
21381 # Identify the linker which will work hand-in-glove with the newly
21382 # built GCC, so that we can examine its features. This is the linker
21383 # which will be driven by the driver program.
21385 # If build != host, and we aren't building gas in-tree, we identify a
21386 # build->target linker and hope that it will have the same features
21387 # as the host->target linker we'll be using.
21388 gcc_cv_gld_major_version=
21389 gcc_cv_gld_minor_version=
21390 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21391 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21393 if test "${gcc_cv_ld+set}" = set; then :
21395 else
21397 if test -x "$DEFAULT_LINKER"; then
21398 gcc_cv_ld="$DEFAULT_LINKER"
21399 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21400 && test -f ../ld/Makefile \
21401 && test x$build = x$host; then
21402 gcc_cv_ld=../ld/ld-new$build_exeext
21403 elif test -x collect-ld$build_exeext; then
21404 # Build using linker in the current directory.
21405 gcc_cv_ld=./collect-ld$build_exeext
21406 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21407 gcc_cv_ld="$LD_FOR_TARGET"
21408 else
21409 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21410 set dummy $LD_FOR_TARGET; ac_word=$2
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21412 $as_echo_n "checking for $ac_word... " >&6; }
21413 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21414 $as_echo_n "(cached) " >&6
21415 else
21416 case $gcc_cv_ld in
21417 [\\/]* | ?:[\\/]*)
21418 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21422 for as_dir in $PATH
21424 IFS=$as_save_IFS
21425 test -z "$as_dir" && as_dir=.
21426 for ac_exec_ext in '' $ac_executable_extensions; do
21427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21428 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21430 break 2
21432 done
21433 done
21434 IFS=$as_save_IFS
21437 esac
21439 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21440 if test -n "$gcc_cv_ld"; then
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21442 $as_echo "$gcc_cv_ld" >&6; }
21443 else
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21445 $as_echo "no" >&6; }
21452 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21453 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21454 # if the PLUGIN_LD is set ld-new, just have it as ld
21455 # as that is the installed named.
21456 if test x$PLUGIN_LD_SUFFIX = xld-new \
21457 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21458 PLUGIN_LD_SUFFIX=ld
21461 # Check whether --with-plugin-ld was given.
21462 if test "${with_plugin_ld+set}" = set; then :
21463 withval=$with_plugin_ld; if test x"$withval" != x; then
21464 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21465 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21471 cat >>confdefs.h <<_ACEOF
21472 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21473 _ACEOF
21476 # Check to see if we are using gold instead of ld
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21478 $as_echo_n "checking whether we are using gold... " >&6; }
21479 ld_is_gold=no
21480 if test x$gcc_cv_ld != x; then
21481 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21482 | grep "GNU gold" > /dev/null; then
21483 ld_is_gold=yes
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21487 $as_echo "$ld_is_gold" >&6; }
21489 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21491 case "$ORIGINAL_LD_FOR_TARGET" in
21492 ./collect-ld | ./collect-ld$build_exeext) ;;
21493 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21495 esac
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21498 $as_echo_n "checking what linker to use... " >&6; }
21499 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21500 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21501 # Single tree build which includes ld. We want to prefer it
21502 # over whatever linker top-level may have detected, since
21503 # we'll use what we're building after installation anyway.
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21505 $as_echo "newly built ld" >&6; }
21506 in_tree_ld=yes
21507 in_tree_ld_is_elf=no
21508 if (grep 'EMUL = .*elf' ../ld/Makefile \
21509 || grep 'EMUL = .*linux' ../ld/Makefile \
21510 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21511 in_tree_ld_is_elf=yes
21512 elif test "$ld_is_gold" = yes; then
21513 in_tree_ld_is_elf=yes
21515 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
21517 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21518 if test x$gcc_cv_gld_version != x; then
21519 break
21521 done
21522 case $gcc_cv_gld_version in
21523 VERSION=[0-9]*) ;;
21524 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21525 esac
21526 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21527 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21528 else
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21530 $as_echo "$gcc_cv_ld" >&6; }
21531 in_tree_ld=no
21534 # Figure out what nm we will be using.
21535 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21536 if test "${gcc_cv_nm+set}" = set; then :
21538 else
21540 if test -f $gcc_cv_binutils_srcdir/configure.in \
21541 && test -f ../binutils/Makefile \
21542 && test x$build = x$host; then
21543 gcc_cv_nm=../binutils/nm-new$build_exeext
21544 elif test -x nm$build_exeext; then
21545 gcc_cv_nm=./nm$build_exeext
21546 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21547 gcc_cv_nm="$NM_FOR_TARGET"
21548 else
21549 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21550 set dummy $NM_FOR_TARGET; ac_word=$2
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21552 $as_echo_n "checking for $ac_word... " >&6; }
21553 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21554 $as_echo_n "(cached) " >&6
21555 else
21556 case $gcc_cv_nm in
21557 [\\/]* | ?:[\\/]*)
21558 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21562 for as_dir in $PATH
21564 IFS=$as_save_IFS
21565 test -z "$as_dir" && as_dir=.
21566 for ac_exec_ext in '' $ac_executable_extensions; do
21567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21568 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21570 break 2
21572 done
21573 done
21574 IFS=$as_save_IFS
21577 esac
21579 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21580 if test -n "$gcc_cv_nm"; then
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21582 $as_echo "$gcc_cv_nm" >&6; }
21583 else
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21585 $as_echo "no" >&6; }
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21593 $as_echo_n "checking what nm to use... " >&6; }
21594 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21595 # Single tree build which includes binutils.
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21597 $as_echo "newly built nm" >&6; }
21598 in_tree_nm=yes
21599 else
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21601 $as_echo "$gcc_cv_nm" >&6; }
21602 in_tree_nm=no
21605 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21607 case "$ORIGINAL_NM_FOR_TARGET" in
21608 ./nm | ./nm$build_exeext) ;;
21609 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21611 esac
21614 # Figure out what objdump we will be using.
21615 if test "${gcc_cv_objdump+set}" = set; then :
21617 else
21619 if test -f $gcc_cv_binutils_srcdir/configure.in \
21620 && test -f ../binutils/Makefile \
21621 && test x$build = x$host; then
21622 # Single tree build which includes binutils.
21623 gcc_cv_objdump=../binutils/objdump$build_exeext
21624 elif test -x objdump$build_exeext; then
21625 gcc_cv_objdump=./objdump$build_exeext
21626 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21627 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21628 else
21629 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21630 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21632 $as_echo_n "checking for $ac_word... " >&6; }
21633 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21634 $as_echo_n "(cached) " >&6
21635 else
21636 case $gcc_cv_objdump in
21637 [\\/]* | ?:[\\/]*)
21638 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21642 for as_dir in $PATH
21644 IFS=$as_save_IFS
21645 test -z "$as_dir" && as_dir=.
21646 for ac_exec_ext in '' $ac_executable_extensions; do
21647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21648 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21650 break 2
21652 done
21653 done
21654 IFS=$as_save_IFS
21657 esac
21659 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21660 if test -n "$gcc_cv_objdump"; then
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21662 $as_echo "$gcc_cv_objdump" >&6; }
21663 else
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21665 $as_echo "no" >&6; }
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21673 $as_echo_n "checking what objdump to use... " >&6; }
21674 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21675 # Single tree build which includes binutils.
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21677 $as_echo "newly built objdump" >&6; }
21678 elif test x$gcc_cv_objdump = x; then
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21680 $as_echo "not found" >&6; }
21681 else
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21683 $as_echo "$gcc_cv_objdump" >&6; }
21686 # Figure out what readelf we will be using.
21687 if test "${gcc_cv_readelf+set}" = set; then :
21689 else
21691 if test -f $gcc_cv_binutils_srcdir/configure.in \
21692 && test -f ../binutils/Makefile \
21693 && test x$build = x$host; then
21694 # Single tree build which includes binutils.
21695 gcc_cv_readelf=../binutils/readelf$build_exeext
21696 elif test -x readelf$build_exeext; then
21697 gcc_cv_readelf=./readelf$build_exeext
21698 else
21699 # Extract the first word of "readelf", so it can be a program name with args.
21700 set dummy readelf; ac_word=$2
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21702 $as_echo_n "checking for $ac_word... " >&6; }
21703 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21704 $as_echo_n "(cached) " >&6
21705 else
21706 case $gcc_cv_readelf in
21707 [\\/]* | ?:[\\/]*)
21708 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21712 for as_dir in $PATH
21714 IFS=$as_save_IFS
21715 test -z "$as_dir" && as_dir=.
21716 for ac_exec_ext in '' $ac_executable_extensions; do
21717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21718 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21720 break 2
21722 done
21723 done
21724 IFS=$as_save_IFS
21727 esac
21729 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21730 if test -n "$gcc_cv_readelf"; then
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21732 $as_echo "$gcc_cv_readelf" >&6; }
21733 else
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21735 $as_echo "no" >&6; }
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21743 $as_echo_n "checking what readelf to use... " >&6; }
21744 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21745 # Single tree build which includes binutils.
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21747 $as_echo "newly built readelf" >&6; }
21748 elif test x$gcc_cv_readelf = x; then
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21750 $as_echo "not found" >&6; }
21751 else
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21753 $as_echo "$gcc_cv_readelf" >&6; }
21756 # Figure out what assembler alignment features are present.
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21758 $as_echo_n "checking assembler flags... " >&6; }
21759 if test "${gcc_cv_as_flags+set}" = set; then :
21760 $as_echo_n "(cached) " >&6
21761 else
21762 case "$target" in
21763 i[34567]86-*-linux*)
21764 gcc_cv_as_flags="--32"
21766 powerpc*-*-darwin*)
21767 gcc_cv_as_flags="-arch ppc"
21770 gcc_cv_as_flags=" "
21772 esac
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21775 $as_echo "$gcc_cv_as_flags" >&6; }
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21778 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21779 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21780 $as_echo_n "(cached) " >&6
21781 else
21782 gcc_cv_as_balign_and_p2align=no
21783 if test $in_tree_gas = yes; then
21784 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21785 then gcc_cv_as_balign_and_p2align=yes
21787 elif test x$gcc_cv_as != x; then
21788 $as_echo '.balign 4
21789 .p2align 2' > conftest.s
21790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21792 (eval $ac_try) 2>&5
21793 ac_status=$?
21794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21795 test $ac_status = 0; }; }
21796 then
21797 gcc_cv_as_balign_and_p2align=yes
21798 else
21799 echo "configure: failed program was" >&5
21800 cat conftest.s >&5
21802 rm -f conftest.o conftest.s
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21806 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21807 if test $gcc_cv_as_balign_and_p2align = yes; then
21809 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21814 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21815 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21816 $as_echo_n "(cached) " >&6
21817 else
21818 gcc_cv_as_max_skip_p2align=no
21819 if test $in_tree_gas = yes; then
21820 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21821 then gcc_cv_as_max_skip_p2align=yes
21823 elif test x$gcc_cv_as != x; then
21824 $as_echo '.p2align 4,,7' > conftest.s
21825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21827 (eval $ac_try) 2>&5
21828 ac_status=$?
21829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21830 test $ac_status = 0; }; }
21831 then
21832 gcc_cv_as_max_skip_p2align=yes
21833 else
21834 echo "configure: failed program was" >&5
21835 cat conftest.s >&5
21837 rm -f conftest.o conftest.s
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21841 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21842 if test $gcc_cv_as_max_skip_p2align = yes; then
21844 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21849 $as_echo_n "checking assembler for .literal16... " >&6; }
21850 if test "${gcc_cv_as_literal16+set}" = set; then :
21851 $as_echo_n "(cached) " >&6
21852 else
21853 gcc_cv_as_literal16=no
21854 if test $in_tree_gas = yes; then
21855 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21856 then gcc_cv_as_literal16=yes
21858 elif test x$gcc_cv_as != x; then
21859 $as_echo '.literal16' > conftest.s
21860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21862 (eval $ac_try) 2>&5
21863 ac_status=$?
21864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21865 test $ac_status = 0; }; }
21866 then
21867 gcc_cv_as_literal16=yes
21868 else
21869 echo "configure: failed program was" >&5
21870 cat conftest.s >&5
21872 rm -f conftest.o conftest.s
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21876 $as_echo "$gcc_cv_as_literal16" >&6; }
21877 if test $gcc_cv_as_literal16 = yes; then
21879 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21884 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21885 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21886 $as_echo_n "(cached) " >&6
21887 else
21888 gcc_cv_as_subsection_m1=no
21889 if test $in_tree_gas = yes; then
21890 if test $in_tree_gas_is_elf = yes \
21891 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21892 then gcc_cv_as_subsection_m1=yes
21894 elif test x$gcc_cv_as != x; then
21895 $as_echo 'conftest_label1: .word 0
21896 .subsection -1
21897 conftest_label2: .word 0
21898 .previous' > conftest.s
21899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21901 (eval $ac_try) 2>&5
21902 ac_status=$?
21903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21904 test $ac_status = 0; }; }
21905 then
21906 if test x$gcc_cv_nm != x; then
21907 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21908 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21909 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21910 then :
21911 else gcc_cv_as_subsection_m1=yes
21913 rm -f conftest.nm1 conftest.nm2
21915 else
21916 echo "configure: failed program was" >&5
21917 cat conftest.s >&5
21919 rm -f conftest.o conftest.s
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21923 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21924 if test $gcc_cv_as_subsection_m1 = yes; then
21926 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21931 $as_echo_n "checking assembler for .weak... " >&6; }
21932 if test "${gcc_cv_as_weak+set}" = set; then :
21933 $as_echo_n "(cached) " >&6
21934 else
21935 gcc_cv_as_weak=no
21936 if test $in_tree_gas = yes; then
21937 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21938 then gcc_cv_as_weak=yes
21940 elif test x$gcc_cv_as != x; then
21941 $as_echo ' .weak foobar' > conftest.s
21942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21944 (eval $ac_try) 2>&5
21945 ac_status=$?
21946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21947 test $ac_status = 0; }; }
21948 then
21949 gcc_cv_as_weak=yes
21950 else
21951 echo "configure: failed program was" >&5
21952 cat conftest.s >&5
21954 rm -f conftest.o conftest.s
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21958 $as_echo "$gcc_cv_as_weak" >&6; }
21959 if test $gcc_cv_as_weak = yes; then
21961 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21966 $as_echo_n "checking assembler for .weakref... " >&6; }
21967 if test "${gcc_cv_as_weakref+set}" = set; then :
21968 $as_echo_n "(cached) " >&6
21969 else
21970 gcc_cv_as_weakref=no
21971 if test $in_tree_gas = yes; then
21972 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21973 then gcc_cv_as_weakref=yes
21975 elif test x$gcc_cv_as != x; then
21976 $as_echo ' .weakref foobar, barfnot' > conftest.s
21977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21979 (eval $ac_try) 2>&5
21980 ac_status=$?
21981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21982 test $ac_status = 0; }; }
21983 then
21984 gcc_cv_as_weakref=yes
21985 else
21986 echo "configure: failed program was" >&5
21987 cat conftest.s >&5
21989 rm -f conftest.o conftest.s
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21993 $as_echo "$gcc_cv_as_weakref" >&6; }
21994 if test $gcc_cv_as_weakref = yes; then
21996 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22001 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22002 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22003 $as_echo_n "(cached) " >&6
22004 else
22005 gcc_cv_as_nsubspa_comdat=no
22006 if test $in_tree_gas = yes; then
22007 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22008 then gcc_cv_as_nsubspa_comdat=yes
22010 elif test x$gcc_cv_as != x; then
22011 $as_echo ' .SPACE $TEXT$
22012 .NSUBSPA $CODE$,COMDAT' > conftest.s
22013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22015 (eval $ac_try) 2>&5
22016 ac_status=$?
22017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22018 test $ac_status = 0; }; }
22019 then
22020 gcc_cv_as_nsubspa_comdat=yes
22021 else
22022 echo "configure: failed program was" >&5
22023 cat conftest.s >&5
22025 rm -f conftest.o conftest.s
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22029 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22030 if test $gcc_cv_as_nsubspa_comdat = yes; then
22032 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22036 # .hidden needs to be supported in both the assembler and the linker,
22037 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22038 # This is irritatingly difficult to feature test for; we have to check the
22039 # date string after the version number. If we've got an in-tree
22040 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22041 # to be safe.
22042 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22044 $as_echo_n "checking assembler for .hidden... " >&6; }
22045 if test "${gcc_cv_as_hidden+set}" = set; then :
22046 $as_echo_n "(cached) " >&6
22047 else
22048 gcc_cv_as_hidden=no
22049 if test $in_tree_gas = yes; then
22050 if test $in_tree_gas_is_elf = yes \
22051 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22052 then gcc_cv_as_hidden=yes
22054 elif test x$gcc_cv_as != x; then
22055 $as_echo ' .hidden foobar
22056 foobar:' > conftest.s
22057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22059 (eval $ac_try) 2>&5
22060 ac_status=$?
22061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22062 test $ac_status = 0; }; }
22063 then
22065 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22066 # STV_HIDDEN, so disable .hidden support if so.
22067 case "${target}" in
22068 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22069 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22070 cat > conftest.s <<EOF
22071 .globl hidden
22072 .hidden hidden
22073 hidden:
22074 .globl default
22075 .set default,hidden
22077 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22078 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22079 grep '\.hidden default' > /dev/null; then
22080 gcc_cv_as_hidden=no
22081 else
22082 gcc_cv_as_hidden=yes
22084 else
22085 # Assume bug is present if objdump is missing.
22086 gcc_cv_as_hidden=no
22090 gcc_cv_as_hidden=yes
22092 esac
22093 else
22094 echo "configure: failed program was" >&5
22095 cat conftest.s >&5
22097 rm -f conftest.o conftest.s
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22101 $as_echo "$gcc_cv_as_hidden" >&6; }
22103 case "${target}" in
22104 *-*-darwin*)
22105 # Darwin as has some visibility support, though with a different syntax.
22106 gcc_cv_as_hidden=yes
22108 esac
22110 # gnu_indirect_function type is an extension proposed at
22111 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22112 # selection of function implementation
22113 # Check whether --enable-gnu-indirect-function was given.
22114 if test "${enable_gnu_indirect_function+set}" = set; then :
22115 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22116 yes | no) ;;
22117 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22118 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22119 esac
22120 else
22121 enable_gnu_indirect_function="$default_gnu_indirect_function"
22125 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22127 cat >>confdefs.h <<_ACEOF
22128 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22129 _ACEOF
22133 if test $in_tree_ld != yes ; then
22134 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22135 if echo "$ld_ver" | grep GNU > /dev/null; then
22136 if test x"$ld_is_gold" = xyes; then
22137 # GNU gold --version looks like this:
22139 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22141 # We extract the binutils version which is more familiar and specific
22142 # than the gold version.
22143 ld_vers=`echo $ld_ver | sed -n \
22144 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22145 else
22146 # GNU ld --version looks like this:
22148 # GNU ld (GNU Binutils) 2.21.51.20110225
22149 ld_vers=`echo $ld_ver | sed -n \
22150 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22152 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'`
22153 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22154 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22155 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22156 else
22157 case "${target}" in
22158 *-*-solaris2*)
22159 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22160 # format.
22162 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22163 # /usr/ccs/bin/ld has been configured.
22164 ld_ver=`$gcc_cv_ld -V 2>&1`
22165 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22166 ld_vers=`echo $ld_ver | sed -n \
22167 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22168 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22169 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22172 esac
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22177 $as_echo_n "checking linker for .hidden support... " >&6; }
22178 if test "${gcc_cv_ld_hidden+set}" = set; then :
22179 $as_echo_n "(cached) " >&6
22180 else
22181 if test $in_tree_ld = yes ; then
22182 gcc_cv_ld_hidden=no
22183 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 \
22184 && test $in_tree_ld_is_elf = yes; then
22185 gcc_cv_ld_hidden=yes
22187 else
22188 gcc_cv_ld_hidden=yes
22189 if test x"$ld_is_gold" = xyes; then
22191 elif echo "$ld_ver" | grep GNU > /dev/null; then
22192 case "${target}" in
22193 mmix-knuth-mmixware)
22194 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22195 gcc_cv_ld_hidden=no
22197 esac
22198 if test 0"$ld_date" -lt 20020404; then
22199 if test -n "$ld_date"; then
22200 # If there was date string, but was earlier than 2002-04-04, fail
22201 gcc_cv_ld_hidden=no
22202 elif test -z "$ld_vers"; then
22203 # If there was no date string nor ld version number, something is wrong
22204 gcc_cv_ld_hidden=no
22205 else
22206 test -z "$ld_vers_patch" && ld_vers_patch=0
22207 if test "$ld_vers_major" -lt 2; then
22208 gcc_cv_ld_hidden=no
22209 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22210 gcc_cv_ld_hidden="no"
22211 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22212 gcc_cv_ld_hidden=no
22216 else
22217 case "${target}" in
22218 *-*-darwin*)
22219 # Darwin ld has some visibility support.
22220 gcc_cv_ld_hidden=yes
22222 hppa64*-*-hpux* | ia64*-*-hpux*)
22223 gcc_cv_ld_hidden=yes
22225 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22226 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22227 # .symbolic was only added in Solaris 9 12/02.
22228 gcc_cv_ld_hidden=yes
22231 gcc_cv_ld_hidden=no
22233 esac
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22238 $as_echo "$gcc_cv_ld_hidden" >&6; }
22239 libgcc_visibility=no
22242 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22243 libgcc_visibility=yes
22245 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22250 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22251 gcc_cv_ld_ro_rw_mix=unknown
22252 if test $in_tree_ld = yes ; then
22253 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 \
22254 && test $in_tree_ld_is_elf = yes; then
22255 gcc_cv_ld_ro_rw_mix=read-write
22257 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22258 echo '.section myfoosect, "a"' > conftest1.s
22259 echo '.section myfoosect, "aw"' > conftest2.s
22260 echo '.byte 1' >> conftest2.s
22261 echo '.section myfoosect, "a"' > conftest3.s
22262 echo '.byte 0' >> conftest3.s
22263 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22264 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22265 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22266 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22267 conftest2.o conftest3.o > /dev/null 2>&1; then
22268 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22269 | sed -e '/myfoosect/!d' -e N`
22270 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22271 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22272 gcc_cv_ld_ro_rw_mix=read-only
22273 else
22274 gcc_cv_ld_ro_rw_mix=read-write
22278 rm -f conftest.* conftest[123].*
22280 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22282 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22286 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22288 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22289 case "${target}" in
22290 *-*-solaris2*)
22292 # Solaris 2 ld -V output looks like this for a regular version:
22294 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22296 # but test versions add stuff at the end:
22298 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22300 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22301 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22302 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22303 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22304 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22305 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22308 esac
22311 # Check whether --enable-initfini-array was given.
22312 if test "${enable_initfini_array+set}" = set; then :
22313 enableval=$enable_initfini_array;
22314 else
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22317 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22318 if test "${gcc_cv_initfini_array+set}" = set; then :
22319 $as_echo_n "(cached) " >&6
22320 else
22321 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22322 case "${target}" in
22323 ia64-*)
22324 if test "$cross_compiling" = yes; then :
22325 gcc_cv_initfini_array=no
22326 else
22327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22328 /* end confdefs.h. */
22330 #ifndef __ELF__
22331 #error Not an ELF OS
22332 #endif
22333 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22334 if it can be used. */
22335 static int x = -1;
22336 int main (void) { return x; }
22337 int foo (void) { x = 0; }
22338 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22340 _ACEOF
22341 if ac_fn_c_try_run "$LINENO"; then :
22342 gcc_cv_initfini_array=yes
22343 else
22344 gcc_cv_initfini_array=no
22346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22347 conftest.$ac_objext conftest.beam conftest.$ac_ext
22351 gcc_cv_initfini_array=no
22352 if test $in_tree_ld = yes ; then
22353 if test "$gcc_cv_gld_major_version" -eq 2 \
22354 -a "$gcc_cv_gld_minor_version" -ge 22 \
22355 -o "$gcc_cv_gld_major_version" -gt 2 \
22356 && test $in_tree_ld_is_elf = yes; then
22357 gcc_cv_initfini_array=yes
22359 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22360 cat > conftest.s <<\EOF
22361 .section .dtors,"a",%progbits
22362 .balign 4
22363 .byte 'A', 'A', 'A', 'A'
22364 .section .ctors,"a",%progbits
22365 .balign 4
22366 .byte 'B', 'B', 'B', 'B'
22367 .section .fini_array.65530,"a",%progbits
22368 .balign 4
22369 .byte 'C', 'C', 'C', 'C'
22370 .section .init_array.65530,"a",%progbits
22371 .balign 4
22372 .byte 'D', 'D', 'D', 'D'
22373 .section .dtors.64528,"a",%progbits
22374 .balign 4
22375 .byte 'E', 'E', 'E', 'E'
22376 .section .ctors.64528,"a",%progbits
22377 .balign 4
22378 .byte 'F', 'F', 'F', 'F'
22379 .section .fini_array.01005,"a",%progbits
22380 .balign 4
22381 .byte 'G', 'G', 'G', 'G'
22382 .section .init_array.01005,"a",%progbits
22383 .balign 4
22384 .byte 'H', 'H', 'H', 'H'
22385 .text
22386 .globl _start
22387 _start:
22389 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22390 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22391 && $gcc_cv_objdump -s -j .init_array conftest \
22392 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22393 && $gcc_cv_objdump -s -j .fini_array conftest \
22394 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22395 gcc_cv_initfini_array=yes
22397 rm -f conftest conftest.*
22399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22400 /* end confdefs.h. */
22402 #ifndef __ELF__
22403 # error Not an ELF OS
22404 #endif
22405 #include <stdlib.h>
22406 #if defined __GLIBC_PREREQ
22407 # if __GLIBC_PREREQ (2, 4)
22408 # else
22409 # error GLIBC 2.4 required
22410 # endif
22411 #else
22412 # if defined __sun__ && defined __svr4__
22413 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22414 # else
22415 # error The C library not known to support .init_array/.fini_array
22416 # endif
22417 #endif
22419 _ACEOF
22420 if ac_fn_c_try_cpp "$LINENO"; then :
22422 else
22423 gcc_cv_initfini_array=no
22425 rm -f conftest.err conftest.$ac_ext;;
22426 esac
22427 else
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22429 $as_echo_n "checking cross compile... guessing... " >&6; }
22430 gcc_cv_initfini_array=no
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22434 $as_echo "$gcc_cv_initfini_array" >&6; }
22435 enable_initfini_array=$gcc_cv_initfini_array
22439 if test $enable_initfini_array = yes; then
22441 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22445 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22447 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22448 if test "${gcc_cv_as_leb128+set}" = set; then :
22449 $as_echo_n "(cached) " >&6
22450 else
22451 gcc_cv_as_leb128=no
22452 if test $in_tree_gas = yes; then
22453 if test $in_tree_gas_is_elf = yes \
22454 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22455 then gcc_cv_as_leb128=yes
22457 elif test x$gcc_cv_as != x; then
22458 $as_echo ' .data
22459 .uleb128 L2 - L1
22461 .uleb128 1280
22462 .sleb128 -1010
22463 L2:' > conftest.s
22464 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22466 (eval $ac_try) 2>&5
22467 ac_status=$?
22468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22469 test $ac_status = 0; }; }
22470 then
22471 # GAS versions before 2.11 do not support uleb128,
22472 # despite appearing to.
22473 # ??? There exists an elf-specific test that will crash
22474 # the assembler. Perhaps it's better to figure out whether
22475 # arbitrary sections are supported and try the test.
22476 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22477 if echo "$as_ver" | grep GNU > /dev/null; then
22478 as_vers=`echo $as_ver | sed -n \
22479 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22480 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22481 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22482 if test $as_major -eq 2 && test $as_minor -lt 11
22483 then :
22484 else gcc_cv_as_leb128=yes
22487 else
22488 echo "configure: failed program was" >&5
22489 cat conftest.s >&5
22491 rm -f conftest.o conftest.s
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22495 $as_echo "$gcc_cv_as_leb128" >&6; }
22496 if test $gcc_cv_as_leb128 = yes; then
22498 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22502 # Check if we have assembler support for unwind directives.
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22504 $as_echo_n "checking assembler for cfi directives... " >&6; }
22505 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22506 $as_echo_n "(cached) " >&6
22507 else
22508 gcc_cv_as_cfi_directive=no
22509 if test x$gcc_cv_as != x; then
22510 $as_echo ' .text
22511 .cfi_startproc
22512 .cfi_offset 0, 0
22513 .cfi_same_value 1
22514 .cfi_def_cfa 1, 2
22515 .cfi_escape 1, 2, 3, 4, 5
22516 .cfi_endproc' > conftest.s
22517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22519 (eval $ac_try) 2>&5
22520 ac_status=$?
22521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22522 test $ac_status = 0; }; }
22523 then
22524 case "$target" in
22525 *-*-solaris*)
22526 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22527 # read-only and read-write sections, we need to make sure that the
22528 # assembler used emits read-write .eh_frame sections.
22529 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22530 if test "x$gcc_cv_objdump" != x; then
22531 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22532 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22533 gcc_cv_as_cfi_directive=no
22534 else
22535 case "$target" in
22536 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22537 # On Solaris/x86, make sure that GCC and gas agree on using
22538 # read-only .eh_frame sections for 64-bit.
22539 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22540 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22541 sed -e /.eh_frame/!d -e N | \
22542 grep READONLY > /dev/null; then
22543 gcc_cv_as_cfi_directive=yes
22544 else
22545 gcc_cv_as_cfi_directive=no
22549 gcc_cv_as_cfi_directive=yes
22551 esac
22553 else
22554 # no objdump, err on the side of caution
22555 gcc_cv_as_cfi_directive=no
22557 else
22558 gcc_cv_as_cfi_directive=yes
22561 *-*-*)
22562 gcc_cv_as_cfi_directive=yes
22564 esac
22565 else
22566 echo "configure: failed program was" >&5
22567 cat conftest.s >&5
22569 rm -f conftest.o conftest.s
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22573 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22575 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22577 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22578 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22579 $as_echo_n "(cached) " >&6
22580 else
22581 gcc_cv_as_cfi_advance_working=no
22582 if test x$gcc_cv_as != x; then
22583 $as_echo ' .text
22584 .cfi_startproc
22585 .cfi_adjust_cfa_offset 64
22586 .skip 75040, 0
22587 .cfi_adjust_cfa_offset 128
22588 .cfi_endproc' > conftest.s
22589 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22591 (eval $ac_try) 2>&5
22592 ac_status=$?
22593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22594 test $ac_status = 0; }; }
22595 then
22597 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22598 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22599 gcc_cv_as_cfi_advance_working=yes
22602 else
22603 echo "configure: failed program was" >&5
22604 cat conftest.s >&5
22606 rm -f conftest.o conftest.s
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22610 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22612 else
22613 # no objdump, err on the side of caution
22614 gcc_cv_as_cfi_advance_working=no
22618 cat >>confdefs.h <<_ACEOF
22619 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22620 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22621 _ACEOF
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22626 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22627 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22628 $as_echo_n "(cached) " >&6
22629 else
22630 gcc_cv_as_cfi_personality_directive=no
22631 if test x$gcc_cv_as != x; then
22632 $as_echo ' .text
22633 .cfi_startproc
22634 .cfi_personality 0, symbol
22635 .cfi_endproc' > conftest.s
22636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22638 (eval $ac_try) 2>&5
22639 ac_status=$?
22640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22641 test $ac_status = 0; }; }
22642 then
22643 gcc_cv_as_cfi_personality_directive=yes
22644 else
22645 echo "configure: failed program was" >&5
22646 cat conftest.s >&5
22648 rm -f conftest.o conftest.s
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22652 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22655 cat >>confdefs.h <<_ACEOF
22656 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22657 then echo 1; else echo 0; fi`
22658 _ACEOF
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22662 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22663 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22664 $as_echo_n "(cached) " >&6
22665 else
22666 gcc_cv_as_cfi_sections_directive=no
22667 if test x$gcc_cv_as != x; then
22668 $as_echo ' .text
22669 .cfi_sections .debug_frame, .eh_frame
22670 .cfi_startproc
22671 .cfi_endproc' > conftest.s
22672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22674 (eval $ac_try) 2>&5
22675 ac_status=$?
22676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22677 test $ac_status = 0; }; }
22678 then
22679 case $target_os in
22680 win32 | pe | cygwin* | mingw32* | uwin*)
22681 # Need to check that we generated the correct relocation for the
22682 # .debug_frame section. This was fixed for binutils 2.21.
22683 gcc_cv_as_cfi_sections_directive=no
22684 if test "x$gcc_cv_objdump" != x; then
22685 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22686 grep secrel > /dev/null; then
22687 gcc_cv_as_cfi_sections_directive=yes
22692 gcc_cv_as_cfi_sections_directive=yes
22694 esac
22695 else
22696 echo "configure: failed program was" >&5
22697 cat conftest.s >&5
22699 rm -f conftest.o conftest.s
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22703 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22707 cat >>confdefs.h <<_ACEOF
22708 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22709 then echo 1; else echo 0; fi`
22710 _ACEOF
22713 # GAS versions up to and including 2.11.0 may mis-optimize
22714 # .eh_frame data.
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22716 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22717 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22718 $as_echo_n "(cached) " >&6
22719 else
22720 gcc_cv_as_eh_frame=no
22721 if test $in_tree_gas = yes; then
22722 if test $in_tree_gas_is_elf = yes \
22723 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22724 then gcc_cv_as_eh_frame=yes
22726 elif test x$gcc_cv_as != x; then
22727 $as_echo ' .text
22728 .LFB1:
22729 .4byte 0
22730 .L1:
22731 .4byte 0
22732 .LFE1:
22733 .section .eh_frame,"aw",@progbits
22734 __FRAME_BEGIN__:
22735 .4byte .LECIE1-.LSCIE1
22736 .LSCIE1:
22737 .4byte 0x0
22738 .byte 0x1
22739 .ascii "z\0"
22740 .byte 0x1
22741 .byte 0x78
22742 .byte 0x1a
22743 .byte 0x0
22744 .byte 0x4
22745 .4byte 1
22746 .p2align 1
22747 .LECIE1:
22748 .LSFDE1:
22749 .4byte .LEFDE1-.LASFDE1
22750 .LASFDE1:
22751 .4byte .LASFDE1-__FRAME_BEGIN__
22752 .4byte .LFB1
22753 .4byte .LFE1-.LFB1
22754 .byte 0x4
22755 .4byte .LFE1-.LFB1
22756 .byte 0x4
22757 .4byte .L1-.LFB1
22758 .LEFDE1:' > conftest.s
22759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22761 (eval $ac_try) 2>&5
22762 ac_status=$?
22763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22764 test $ac_status = 0; }; }
22765 then
22766 cat > conftest.lit <<EOF
22767 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22768 0010 01000000 12000000 18000000 00000000 ................
22769 0020 08000000 04080000 0044 .........D
22771 cat > conftest.big <<EOF
22772 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22773 0010 00000001 00000012 00000018 00000000 ................
22774 0020 00000008 04000000 0844 .........D
22776 # If the assembler didn't choke, and we can objdump,
22777 # and we got the correct data, then succeed.
22778 # The text in the here-document typically retains its unix-style line
22779 # endings, while the output of objdump will use host line endings.
22780 # Therefore, use diff -b for the comparisons.
22781 if test x$gcc_cv_objdump != x \
22782 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22783 | tail -3 > conftest.got \
22784 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22785 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22786 then
22787 gcc_cv_as_eh_frame=yes
22788 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22790 (eval $ac_try) 2>&5
22791 ac_status=$?
22792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22793 test $ac_status = 0; }; }; then
22794 gcc_cv_as_eh_frame=buggy
22795 else
22796 # Uh oh, what do we do now?
22797 gcc_cv_as_eh_frame=no
22799 else
22800 echo "configure: failed program was" >&5
22801 cat conftest.s >&5
22803 rm -f conftest.o conftest.s
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22807 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22810 if test $gcc_cv_as_eh_frame = buggy; then
22812 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22817 $as_echo_n "checking assembler for section merging support... " >&6; }
22818 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22819 $as_echo_n "(cached) " >&6
22820 else
22821 gcc_cv_as_shf_merge=no
22822 if test $in_tree_gas = yes; then
22823 if test $in_tree_gas_is_elf = yes \
22824 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22825 then gcc_cv_as_shf_merge=yes
22827 elif test x$gcc_cv_as != x; then
22828 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22829 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22831 (eval $ac_try) 2>&5
22832 ac_status=$?
22833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22834 test $ac_status = 0; }; }
22835 then
22836 gcc_cv_as_shf_merge=yes
22837 else
22838 echo "configure: failed program was" >&5
22839 cat conftest.s >&5
22841 rm -f conftest.o conftest.s
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22845 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22847 if test $gcc_cv_as_shf_merge = no; then
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22849 $as_echo_n "checking assembler for section merging support... " >&6; }
22850 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22851 $as_echo_n "(cached) " >&6
22852 else
22853 gcc_cv_as_shf_merge=no
22854 if test $in_tree_gas = yes; then
22855 if test $in_tree_gas_is_elf = yes \
22856 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22857 then gcc_cv_as_shf_merge=yes
22859 elif test x$gcc_cv_as != x; then
22860 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22861 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22863 (eval $ac_try) 2>&5
22864 ac_status=$?
22865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22866 test $ac_status = 0; }; }
22867 then
22868 gcc_cv_as_shf_merge=yes
22869 else
22870 echo "configure: failed program was" >&5
22871 cat conftest.s >&5
22873 rm -f conftest.o conftest.s
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22877 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22881 cat >>confdefs.h <<_ACEOF
22882 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22883 _ACEOF
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22887 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22888 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22889 $as_echo_n "(cached) " >&6
22890 else
22891 gcc_cv_as_comdat_group=no
22892 if test $in_tree_gas = yes; then
22893 if test $in_tree_gas_is_elf = yes \
22894 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22895 then gcc_cv_as_comdat_group=yes
22897 elif test x$gcc_cv_as != x; then
22898 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22901 (eval $ac_try) 2>&5
22902 ac_status=$?
22903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22904 test $ac_status = 0; }; }
22905 then
22906 gcc_cv_as_comdat_group=yes
22907 else
22908 echo "configure: failed program was" >&5
22909 cat conftest.s >&5
22911 rm -f conftest.o conftest.s
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22915 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22917 if test $gcc_cv_as_comdat_group = yes; then
22918 gcc_cv_as_comdat_group_percent=no
22919 gcc_cv_as_comdat_group_group=no
22920 else
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22922 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22923 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22924 $as_echo_n "(cached) " >&6
22925 else
22926 gcc_cv_as_comdat_group_percent=no
22927 if test $in_tree_gas = yes; then
22928 if test $in_tree_gas_is_elf = yes \
22929 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22930 then gcc_cv_as_comdat_group_percent=yes
22932 elif test x$gcc_cv_as != x; then
22933 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22936 (eval $ac_try) 2>&5
22937 ac_status=$?
22938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22939 test $ac_status = 0; }; }
22940 then
22941 gcc_cv_as_comdat_group_percent=yes
22942 else
22943 echo "configure: failed program was" >&5
22944 cat conftest.s >&5
22946 rm -f conftest.o conftest.s
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22950 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22952 if test $gcc_cv_as_comdat_group_percent = yes; then
22953 gcc_cv_as_comdat_group_group=no
22954 else
22955 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22956 gcc_cv_as_comdat_group_group=no
22958 case "${target}" in
22959 # Sun as uses a completely different syntax.
22960 *-*-solaris2*)
22961 case "${target}" in
22962 sparc*-*-solaris2*)
22963 conftest_s='
22964 .group foo,".text%foo",#comdat
22965 .section ".text%foo", #alloc,#execinstr,#progbits
22966 .globl foo
22967 foo:
22970 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22971 conftest_s='
22972 .group foo,.text%foo,#comdat
22973 .section .text%foo, "ax", @progbits
22974 .globl foo
22975 foo:
22978 esac
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22980 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22981 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22982 $as_echo_n "(cached) " >&6
22983 else
22984 gcc_cv_as_comdat_group_group=no
22985 if test x$gcc_cv_as != x; then
22986 $as_echo "$conftest_s" > conftest.s
22987 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22989 (eval $ac_try) 2>&5
22990 ac_status=$?
22991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22992 test $ac_status = 0; }; }
22993 then
22994 gcc_cv_as_comdat_group_group=yes
22995 else
22996 echo "configure: failed program was" >&5
22997 cat conftest.s >&5
22999 rm -f conftest.o conftest.s
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23003 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23006 esac
23009 if test x"$ld_is_gold" = xyes; then
23010 comdat_group=yes
23011 elif test $in_tree_ld = yes ; then
23012 comdat_group=no
23013 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 \
23014 && test $in_tree_ld_is_elf = yes; then
23015 comdat_group=yes
23017 elif echo "$ld_ver" | grep GNU > /dev/null; then
23018 comdat_group=yes
23019 if test 0"$ld_date" -lt 20050308; then
23020 if test -n "$ld_date"; then
23021 # If there was date string, but was earlier than 2005-03-08, fail
23022 comdat_group=no
23023 elif test "$ld_vers_major" -lt 2; then
23024 comdat_group=no
23025 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23026 comdat_group=no
23029 else
23030 case "${target}" in
23031 *-*-solaris2.1[1-9]*)
23032 comdat_group=no
23033 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23034 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23035 # version 1.688.
23037 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23038 # least ld version 1.2267.
23039 if test "$ld_vers_major" -gt 1; then
23040 comdat_group=yes
23041 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23042 comdat_group=yes
23043 elif test "$ld_vers_minor" -ge 2267; then
23044 comdat_group=yes
23048 # Assume linkers other than GNU ld don't support COMDAT group.
23049 comdat_group=no
23051 esac
23053 # Allow overriding the automatic COMDAT group tests above.
23054 # Check whether --enable-comdat was given.
23055 if test "${enable_comdat+set}" = set; then :
23056 enableval=$enable_comdat; comdat_group="$enable_comdat"
23059 if test $comdat_group = no; then
23060 gcc_cv_as_comdat_group=no
23061 gcc_cv_as_comdat_group_percent=no
23062 gcc_cv_as_comdat_group_group=no
23065 cat >>confdefs.h <<_ACEOF
23066 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23067 || test $gcc_cv_as_comdat_group_percent = yes \
23068 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23069 _ACEOF
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23073 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23074 if test "${gcc_cv_as_discriminator+set}" = set; then :
23075 $as_echo_n "(cached) " >&6
23076 else
23077 gcc_cv_as_discriminator=no
23078 if test $in_tree_gas = yes; then
23079 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23080 then gcc_cv_as_discriminator=yes
23082 elif test x$gcc_cv_as != x; then
23083 $as_echo ' .text
23084 .file 1 "conf.c"
23085 .loc 1 1 0 discriminator 1' > conftest.s
23086 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23088 (eval $ac_try) 2>&5
23089 ac_status=$?
23090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23091 test $ac_status = 0; }; }
23092 then
23093 gcc_cv_as_discriminator=yes
23094 else
23095 echo "configure: failed program was" >&5
23096 cat conftest.s >&5
23098 rm -f conftest.o conftest.s
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23102 $as_echo "$gcc_cv_as_discriminator" >&6; }
23103 if test $gcc_cv_as_discriminator = yes; then
23105 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23109 # Thread-local storage - the check is heavily parameterized.
23110 conftest_s=
23111 tls_first_major=
23112 tls_first_minor=
23113 tls_as_opt=
23114 case "$target" in
23115 alpha*-*-*)
23116 conftest_s='
23117 .section ".tdata","awT",@progbits
23118 foo: .long 25
23119 .text
23120 ldq $27,__tls_get_addr($29) !literal!1
23121 lda $16,foo($29) !tlsgd!1
23122 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23123 ldq $27,__tls_get_addr($29) !literal!2
23124 lda $16,foo($29) !tlsldm!2
23125 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23126 ldq $1,foo($29) !gotdtprel
23127 ldah $2,foo($29) !dtprelhi
23128 lda $3,foo($2) !dtprello
23129 lda $4,foo($29) !dtprel
23130 ldq $1,foo($29) !gottprel
23131 ldah $2,foo($29) !tprelhi
23132 lda $3,foo($2) !tprello
23133 lda $4,foo($29) !tprel'
23134 tls_first_major=2
23135 tls_first_minor=13
23136 tls_as_opt=--fatal-warnings
23138 cris-*-*|crisv32-*-*)
23139 conftest_s='
23140 .section ".tdata","awT",@progbits
23141 x: .long 25
23142 .text
23143 move.d x:IE,$r10
23144 nop'
23145 tls_first_major=2
23146 tls_first_minor=20
23147 tls_as_opt=--fatal-warnings
23149 frv*-*-*)
23150 conftest_s='
23151 .section ".tdata","awT",@progbits
23152 x: .long 25
23153 .text
23154 call #gettlsoff(x)'
23155 tls_first_major=2
23156 tls_first_minor=14
23158 hppa*-*-linux*)
23159 conftest_s='
23160 t1: .reg %r20
23161 t2: .reg %r21
23162 gp: .reg %r19
23163 .section ".tdata","awT",@progbits
23164 foo: .long 25
23165 .text
23166 .align 4
23167 addil LT%foo-$tls_gdidx$,gp
23168 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23169 b __tls_get_addr
23171 addil LT%foo-$tls_ldidx$,gp
23172 b __tls_get_addr
23173 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23174 addil LR%foo-$tls_dtpoff$,%ret0
23175 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23176 mfctl %cr27,%t1
23177 addil LT%foo-$tls_ieoff$,gp
23178 ldw RT%foo-$tls_ieoff$(%r1),%t2
23179 add %t1,%t2,%t3
23180 mfctl %cr27,%t1
23181 addil LR%foo-$tls_leoff$,%t1
23182 ldo RR%foo-$tls_leoff$(%r1),%t2'
23183 tls_first_major=2
23184 tls_first_minor=15
23185 tls_as_opt=--fatal-warnings
23187 arm*-*-*)
23188 conftest_s='
23189 .section ".tdata","awT",%progbits
23190 foo: .long 25
23191 .text
23192 .word foo(gottpoff)
23193 .word foo(tpoff)
23194 .word foo(tlsgd)
23195 .word foo(tlsldm)
23196 .word foo(tlsldo)'
23197 tls_first_major=2
23198 tls_first_minor=17
23200 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23201 case "$target" in
23202 i[34567]86-*-solaris2.*)
23203 on_solaris=yes
23204 tga_func=___tls_get_addr
23206 x86_64-*-solaris2.1[0-9]*)
23207 on_solaris=yes
23208 tga_func=__tls_get_addr
23211 on_solaris=no
23213 esac
23214 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23215 conftest_s='
23216 .section .tdata,"awt",@progbits'
23217 tls_first_major=0
23218 tls_first_minor=0
23220 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23222 else
23223 conftest_s='
23224 .section ".tdata","awT",@progbits'
23225 tls_first_major=2
23226 tls_first_minor=14
23227 tls_as_opt="--fatal-warnings"
23229 conftest_s="$conftest_s
23230 foo: .long 25
23231 .text
23232 movl %gs:0, %eax
23233 leal foo@tlsgd(,%ebx,1), %eax
23234 leal foo@tlsldm(%ebx), %eax
23235 leal foo@dtpoff(%eax), %edx
23236 movl foo@gottpoff(%ebx), %eax
23237 subl foo@gottpoff(%ebx), %eax
23238 addl foo@gotntpoff(%ebx), %eax
23239 movl foo@indntpoff, %eax
23240 movl \$foo@tpoff, %eax
23241 subl \$foo@tpoff, %eax
23242 leal foo@ntpoff(%ecx), %eax"
23244 x86_64-*-*)
23245 conftest_s='
23246 .section ".tdata","awT",@progbits
23247 foo: .long 25
23248 .text
23249 movq %fs:0, %rax
23250 leaq foo@TLSGD(%rip), %rdi
23251 leaq foo@TLSLD(%rip), %rdi
23252 leaq foo@DTPOFF(%rax), %rdx
23253 movq foo@GOTTPOFF(%rip), %rax
23254 movq $foo@TPOFF, %rax'
23255 tls_first_major=2
23256 tls_first_minor=14
23257 tls_as_opt=--fatal-warnings
23259 ia64-*-*)
23260 conftest_s='
23261 .section ".tdata","awT",@progbits
23262 foo: data8 25
23263 .text
23264 addl r16 = @ltoff(@dtpmod(foo#)), gp
23265 addl r17 = @ltoff(@dtprel(foo#)), gp
23266 addl r18 = @ltoff(@tprel(foo#)), gp
23267 addl r19 = @dtprel(foo#), gp
23268 adds r21 = @dtprel(foo#), r13
23269 movl r23 = @dtprel(foo#)
23270 addl r20 = @tprel(foo#), gp
23271 adds r22 = @tprel(foo#), r13
23272 movl r24 = @tprel(foo#)'
23273 tls_first_major=2
23274 tls_first_minor=13
23275 tls_as_opt=--fatal-warnings
23277 microblaze*-*-*)
23278 conftest_s='
23279 .section .tdata,"awT",@progbits
23281 .word 2
23282 .text
23283 addik r5,r20,x@TLSGD
23284 addik r5,r20,x@TLSLDM'
23285 tls_first_major=2
23286 tls_first_minor=20
23287 tls_as_opt='--fatal-warnings'
23289 mips*-*-*)
23290 conftest_s='
23291 .section .tdata,"awT",@progbits
23293 .word 2
23294 .text
23295 addiu $4, $28, %tlsgd(x)
23296 addiu $4, $28, %tlsldm(x)
23297 lui $4, %dtprel_hi(x)
23298 addiu $4, $4, %dtprel_lo(x)
23299 lw $4, %gottprel(x)($28)
23300 lui $4, %tprel_hi(x)
23301 addiu $4, $4, %tprel_lo(x)'
23302 tls_first_major=2
23303 tls_first_minor=16
23304 tls_as_opt='-32 --fatal-warnings'
23306 m68k-*-*)
23307 conftest_s='
23308 .section .tdata,"awT",@progbits
23310 .word 2
23311 .text
23312 foo:
23313 move.l x@TLSGD(%a5),%a0
23314 move.l x@TLSLDM(%a5),%a0
23315 move.l x@TLSLDO(%a5),%a0
23316 move.l x@TLSIE(%a5),%a0
23317 move.l x@TLSLE(%a5),%a0'
23318 tls_first_major=2
23319 tls_first_minor=19
23320 tls_as_opt='--fatal-warnings'
23322 aarch64*-*-*)
23323 conftest_s='
23324 .section ".tdata","awT",%progbits
23325 foo: .long 25
23326 .text
23327 adrp x0, :tlsgd:x
23328 add x0, x0, #:tlsgd_lo12:x
23329 bl __tls_get_addr
23330 nop'
23331 tls_first_major=2
23332 tls_first_minor=20
23333 tls_as_opt='--fatal-warnings'
23335 powerpc-ibm-aix*)
23336 conftest_s='
23337 .extern __get_tpointer
23338 .toc
23339 LC..1:
23340 .tc a[TC],a[TL]@le
23341 .csect .text[PR]
23342 .tlstest:
23343 lwz 9,LC..1(2)
23344 bla __get_tpointer
23345 lwzx 3,9,3
23346 .globl a
23347 .csect a[TL],4
23349 .space 4'
23350 tls_first_major=0
23351 tls_first_minor=0
23353 powerpc64*-*-*)
23354 conftest_s='
23355 .section ".tdata","awT",@progbits
23356 .align 3
23357 ld0: .space 8
23358 ld1: .space 8
23359 x1: .space 8
23360 x2: .space 8
23361 x3: .space 8
23362 .text
23363 addi 3,2,ld0@got@tlsgd
23364 bl .__tls_get_addr
23366 addi 3,2,ld1@toc
23367 bl .__tls_get_addr
23369 addi 3,2,x1@got@tlsld
23370 bl .__tls_get_addr
23372 addi 9,3,x1@dtprel
23373 bl .__tls_get_addr
23375 addis 9,3,x2@dtprel@ha
23376 addi 9,9,x2@dtprel@l
23377 bl .__tls_get_addr
23379 ld 9,x3@got@dtprel(2)
23380 add 9,9,3
23381 bl .__tls_get_addr
23382 nop'
23383 tls_first_major=2
23384 tls_first_minor=14
23385 tls_as_opt="-a64 --fatal-warnings"
23387 powerpc*-*-*)
23388 conftest_s='
23389 .section ".tdata","awT",@progbits
23390 .align 2
23391 ld0: .space 4
23392 ld1: .space 4
23393 x1: .space 4
23394 x2: .space 4
23395 x3: .space 4
23396 .text
23397 addi 3,31,ld0@got@tlsgd
23398 bl __tls_get_addr
23399 addi 3,31,x1@got@tlsld
23400 bl __tls_get_addr
23401 addi 9,3,x1@dtprel
23402 addis 9,3,x2@dtprel@ha
23403 addi 9,9,x2@dtprel@l
23404 lwz 9,x3@got@tprel(31)
23405 add 9,9,x@tls
23406 addi 9,2,x1@tprel
23407 addis 9,2,x2@tprel@ha
23408 addi 9,9,x2@tprel@l'
23409 tls_first_major=2
23410 tls_first_minor=14
23411 tls_as_opt="-a32 --fatal-warnings"
23413 s390-*-*)
23414 conftest_s='
23415 .section ".tdata","awT",@progbits
23416 foo: .long 25
23417 .text
23418 .long foo@TLSGD
23419 .long foo@TLSLDM
23420 .long foo@DTPOFF
23421 .long foo@NTPOFF
23422 .long foo@GOTNTPOFF
23423 .long foo@INDNTPOFF
23424 l %r1,foo@GOTNTPOFF(%r12)
23425 l %r1,0(%r1):tls_load:foo
23426 bas %r14,0(%r1,%r13):tls_gdcall:foo
23427 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23428 tls_first_major=2
23429 tls_first_minor=14
23430 tls_as_opt="-m31 --fatal-warnings"
23432 s390x-*-*)
23433 conftest_s='
23434 .section ".tdata","awT",@progbits
23435 foo: .long 25
23436 .text
23437 .quad foo@TLSGD
23438 .quad foo@TLSLDM
23439 .quad foo@DTPOFF
23440 .quad foo@NTPOFF
23441 .quad foo@GOTNTPOFF
23442 lg %r1,foo@GOTNTPOFF(%r12)
23443 larl %r1,foo@INDNTPOFF
23444 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23445 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23446 tls_first_major=2
23447 tls_first_minor=14
23448 tls_as_opt="-m64 -Aesame --fatal-warnings"
23450 sh-*-* | sh[34]-*-*)
23451 conftest_s='
23452 .section ".tdata","awT",@progbits
23453 foo: .long 25
23454 .text
23455 .long foo@TLSGD
23456 .long foo@TLSLDM
23457 .long foo@DTPOFF
23458 .long foo@GOTTPOFF
23459 .long foo@TPOFF'
23460 tls_first_major=2
23461 tls_first_minor=13
23462 tls_as_opt=--fatal-warnings
23464 sparc*-*-*)
23465 case "$target" in
23466 sparc*-sun-solaris2.*)
23467 on_solaris=yes
23468 tga_func=__tls_get_addr
23471 on_solaris=no
23473 esac
23474 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23475 conftest_s='
23476 .section ".tdata",#alloc,#write,#tls'
23477 tls_first_major=0
23478 tls_first_minor=0
23479 else
23480 conftest_s='
23481 .section ".tdata","awT",@progbits'
23482 tls_first_major=2
23483 tls_first_minor=14
23484 tls_as_opt="-32 --fatal-warnings"
23486 conftest_s="$conftest_s
23487 foo: .long 25
23488 .text
23489 sethi %tgd_hi22(foo), %o0
23490 add %o0, %tgd_lo10(foo), %o1
23491 add %l7, %o1, %o0, %tgd_add(foo)
23492 call __tls_get_addr, %tgd_call(foo)
23493 sethi %tldm_hi22(foo), %l1
23494 add %l1, %tldm_lo10(foo), %l2
23495 add %l7, %l2, %o0, %tldm_add(foo)
23496 call __tls_get_addr, %tldm_call(foo)
23497 sethi %tldo_hix22(foo), %l3
23498 xor %l3, %tldo_lox10(foo), %l4
23499 add %o0, %l4, %l5, %tldo_add(foo)
23500 sethi %tie_hi22(foo), %o3
23501 add %o3, %tie_lo10(foo), %o3
23502 ld [%l7 + %o3], %o2, %tie_ld(foo)
23503 add %g7, %o2, %o4, %tie_add(foo)
23504 sethi %tle_hix22(foo), %l1
23505 xor %l1, %tle_lox10(foo), %o5
23506 ld [%g7 + %o5], %o1"
23508 tilepro*-*-*)
23509 conftest_s='
23510 .section ".tdata","awT",@progbits
23511 foo: .long 25
23512 .text
23513 addli r0, zero, tls_gd(foo)
23514 auli r0, zero, tls_gd_ha16(foo)
23515 addli r0, r0, tls_gd_lo16(foo)
23516 jal __tls_get_addr
23517 addli r0, zero, tls_ie(foo)
23518 auli r0, r0, tls_ie_ha16(foo)
23519 addli r0, r0, tls_ie_lo16(foo)'
23520 tls_first_major=2
23521 tls_first_minor=22
23522 tls_as_opt="--fatal-warnings"
23524 tilegx*-*-*)
23525 conftest_s='
23526 .section ".tdata","awT",@progbits
23527 foo: .long 25
23528 .text
23529 shl16insli r0, zero, hw0_last_tls_gd(foo)
23530 shl16insli r0, zero, hw1_last_tls_gd(foo)
23531 shl16insli r0, r0, hw0_tls_gd(foo)
23532 jal __tls_get_addr
23533 shl16insli r0, zero, hw1_last_tls_ie(foo)
23534 shl16insli r0, r0, hw0_tls_ie(foo)'
23535 tls_first_major=2
23536 tls_first_minor=22
23537 tls_as_opt="--fatal-warnings"
23539 xtensa*-*-*)
23540 conftest_s='
23541 .section ".tdata","awT",@progbits
23542 foo: .long 25
23543 .text
23544 movi a8, foo@TLSFUNC
23545 movi a10, foo@TLSARG
23546 callx8.tls a8, foo@TLSCALL'
23547 tls_first_major=2
23548 tls_first_minor=19
23550 esac
23551 set_have_as_tls=no
23552 if test "x$enable_tls" = xno ; then
23553 : # TLS explicitly disabled.
23554 elif test "x$enable_tls" = xyes ; then
23555 set_have_as_tls=yes # TLS explicitly enabled.
23556 elif test -z "$tls_first_major"; then
23557 : # If we don't have a check, assume no support.
23558 else
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23560 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23561 if test "${gcc_cv_as_tls+set}" = set; then :
23562 $as_echo_n "(cached) " >&6
23563 else
23564 gcc_cv_as_tls=no
23565 if test $in_tree_gas = yes; then
23566 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23567 then gcc_cv_as_tls=yes
23569 elif test x$gcc_cv_as != x; then
23570 $as_echo "$conftest_s" > conftest.s
23571 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23573 (eval $ac_try) 2>&5
23574 ac_status=$?
23575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23576 test $ac_status = 0; }; }
23577 then
23578 gcc_cv_as_tls=yes
23579 else
23580 echo "configure: failed program was" >&5
23581 cat conftest.s >&5
23583 rm -f conftest.o conftest.s
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23587 $as_echo "$gcc_cv_as_tls" >&6; }
23588 if test $gcc_cv_as_tls = yes; then
23589 set_have_as_tls=yes
23592 case "$target" in
23593 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23594 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23595 # Sun style that Sun ld and GCC don't support any longer.
23596 *-*-solaris2.*)
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23598 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23599 ld_tls_support=no
23600 # Check ld and ld.so.1 TLS support.
23601 if echo "$ld_ver" | grep GNU > /dev/null; then
23602 # Assume all interesting versions of GNU ld have TLS support.
23603 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23604 ld_tls_support=yes
23605 else
23606 case "$target" in
23607 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23608 i?86-*-solaris2.9)
23609 min_tls_ld_vers_minor=374
23611 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23612 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23613 min_tls_ld_vers_minor=343
23615 esac
23616 if test "$ld_vers_major" -gt 1 || \
23617 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23618 ld_tls_support=yes
23619 else
23620 set_have_as_tls=no
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23624 $as_echo "$ld_tls_support" >&6; }
23626 save_LIBS="$LIBS"
23627 save_LDFLAGS="$LDFLAGS"
23628 LIBS=
23629 LDFLAGS=
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23632 $as_echo_n "checking library containing $tga_func... " >&6; }
23633 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23634 # (32-bit x86) only lived in libthread, so check for that. Keep
23635 # set_have_as_tls if found, disable if not.
23636 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23638 $as_echo_n "checking for library containing $tga_func... " >&6; }
23639 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23640 $as_echo_n "(cached) " >&6
23641 else
23642 ac_func_search_save_LIBS=$LIBS
23643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23644 /* end confdefs.h. */
23646 /* Override any GCC internal prototype to avoid an error.
23647 Use char because int might match the return type of a GCC
23648 builtin and then its argument prototype would still apply. */
23649 #ifdef __cplusplus
23650 extern "C"
23651 #endif
23652 char $tga_func ();
23654 main ()
23656 return $tga_func ();
23658 return 0;
23660 _ACEOF
23661 for ac_lib in '' thread; do
23662 if test -z "$ac_lib"; then
23663 ac_res="none required"
23664 else
23665 ac_res=-l$ac_lib
23666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23668 if ac_fn_c_try_link "$LINENO"; then :
23669 eval "$as_ac_Search=\$ac_res"
23671 rm -f core conftest.err conftest.$ac_objext \
23672 conftest$ac_exeext
23673 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23674 break
23676 done
23677 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23679 else
23680 eval "$as_ac_Search=no"
23682 rm conftest.$ac_ext
23683 LIBS=$ac_func_search_save_LIBS
23685 eval ac_res=\$$as_ac_Search
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23687 $as_echo "$ac_res" >&6; }
23688 eval ac_res=\$$as_ac_Search
23689 if test "$ac_res" != no; then :
23690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23692 else
23693 set_have_as_tls=no
23696 # Clear LIBS if we cannot support TLS.
23697 if test $set_have_as_tls = no; then
23698 LIBS=
23700 # Always define LIB_TLS_SPEC, even without TLS support.
23702 cat >>confdefs.h <<_ACEOF
23703 #define LIB_TLS_SPEC "$LIBS"
23704 _ACEOF
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23707 $as_echo "$LIBS" >&6; }
23709 LIBS="$save_LIBS"
23710 LDFLAGS="$save_LDFLAGS"
23712 esac
23713 if test $set_have_as_tls = yes ; then
23715 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23719 # Target-specific assembler checks.
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23722 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23723 gcc_cv_ld_static_dynamic=no
23724 gcc_cv_ld_static_option='-Bstatic'
23725 gcc_cv_ld_dynamic_option='-Bdynamic'
23726 if test $in_tree_ld = yes ; then
23727 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; then
23728 gcc_cv_ld_static_dynamic=yes
23730 elif test x$gcc_cv_ld != x; then
23731 # Check if linker supports -Bstatic/-Bdynamic option
23732 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23733 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23734 gcc_cv_ld_static_dynamic=yes
23735 else
23736 case "$target" in
23737 # AIX ld uses -b flags
23738 *-*-aix4.[23]* | *-*-aix[5-9]*)
23739 gcc_cv_ld_static_dynamic=yes
23740 gcc_cv_ld_static_option="-bstatic"
23741 gcc_cv_ld_dynamic_option="-bdynamic"
23743 # HP-UX ld uses -a flags to select between shared and archive.
23744 *-*-hpux*)
23745 if test x"$gnu_ld" = xno; then
23746 gcc_cv_ld_static_dynamic=yes
23747 gcc_cv_ld_static_option="-aarchive_shared"
23748 gcc_cv_ld_dynamic_option="-adefault"
23751 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23752 *-*-solaris2*)
23753 gcc_cv_ld_static_dynamic=yes
23755 esac
23758 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23760 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23763 cat >>confdefs.h <<_ACEOF
23764 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23765 _ACEOF
23768 cat >>confdefs.h <<_ACEOF
23769 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23770 _ACEOF
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23774 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23776 if test x"$demangler_in_ld" = xyes; then
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23778 $as_echo_n "checking linker --demangle support... " >&6; }
23779 gcc_cv_ld_demangle=no
23780 if test $in_tree_ld = yes; then
23781 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 \
23782 gcc_cv_ld_demangle=yes
23784 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23785 # Check if the GNU linker supports --demangle option
23786 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23787 gcc_cv_ld_demangle=yes
23790 if test x"$gcc_cv_ld_demangle" = xyes; then
23792 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23796 $as_echo "$gcc_cv_ld_demangle" >&6; }
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23800 $as_echo_n "checking linker plugin support... " >&6; }
23801 gcc_cv_lto_plugin=0
23802 if test -f liblto_plugin.la; then
23803 save_ld_ver="$ld_ver"
23804 save_ld_vers_major="$ld_vers_major"
23805 save_ld_vers_minor="$ld_vers_minor"
23806 save_ld_is_gold="$ld_is_gold"
23808 ld_is_gold=no
23810 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23811 ld_ver="GNU ld"
23812 # FIXME: ld_is_gold?
23813 ld_vers_major="$gcc_cv_gld_major_version"
23814 ld_vers_minor="$gcc_cv_gld_minor_version"
23815 else
23816 # Determine plugin linker version.
23817 # FIXME: Partial duplicate from above, generalize.
23818 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23819 if echo "$ld_ver" | grep GNU > /dev/null; then
23820 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23821 ld_is_gold=yes
23822 ld_vers=`echo $ld_ver | sed -n \
23823 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23824 else
23825 ld_vers=`echo $ld_ver | sed -n \
23826 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23828 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23829 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23833 # Determine plugin support.
23834 if echo "$ld_ver" | grep GNU > /dev/null; then
23835 # Require GNU ld or gold 2.21+ for plugin support by default.
23836 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23837 gcc_cv_lto_plugin=2
23838 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23839 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23840 gcc_cv_lto_plugin=1
23844 ld_ver="$save_ld_ver"
23845 ld_vers_major="$save_ld_vers_major"
23846 ld_vers_minor="$save_ld_vers_minor"
23847 ld_is_gold="$save_ld_is_gold"
23850 cat >>confdefs.h <<_ACEOF
23851 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23852 _ACEOF
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23855 $as_echo "$gcc_cv_lto_plugin" >&6; }
23857 case "$target" in
23858 # All TARGET_ABI_OSF targets.
23859 alpha*-*-linux* | alpha*-*-*bsd*)
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23861 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23862 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23863 $as_echo_n "(cached) " >&6
23864 else
23865 gcc_cv_as_alpha_explicit_relocs=no
23866 if test $in_tree_gas = yes; then
23867 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23868 then gcc_cv_as_alpha_explicit_relocs=yes
23870 elif test x$gcc_cv_as != x; then
23871 $as_echo ' .set nomacro
23872 .text
23873 extbl $3, $2, $3 !lituse_bytoff!1
23874 ldq $2, a($29) !literal!1
23875 ldq $4, b($29) !literal!2
23876 ldq_u $3, 0($2) !lituse_base!1
23877 ldq $27, f($29) !literal!5
23878 jsr $26, ($27), f !lituse_jsr!5
23879 ldah $29, 0($26) !gpdisp!3
23880 lda $0, c($29) !gprel
23881 ldah $1, d($29) !gprelhigh
23882 lda $1, d($1) !gprellow
23883 lda $29, 0($29) !gpdisp!3' > conftest.s
23884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23886 (eval $ac_try) 2>&5
23887 ac_status=$?
23888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23889 test $ac_status = 0; }; }
23890 then
23891 gcc_cv_as_alpha_explicit_relocs=yes
23892 else
23893 echo "configure: failed program was" >&5
23894 cat conftest.s >&5
23896 rm -f conftest.o conftest.s
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23900 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23901 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23903 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23907 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23908 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23909 $as_echo_n "(cached) " >&6
23910 else
23911 gcc_cv_as_alpha_jsrdirect_relocs=no
23912 if test $in_tree_gas = yes; then
23913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23914 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23916 elif test x$gcc_cv_as != x; then
23917 $as_echo ' .set nomacro
23918 .text
23919 ldq $27, a($29) !literal!1
23920 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23923 (eval $ac_try) 2>&5
23924 ac_status=$?
23925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23926 test $ac_status = 0; }; }
23927 then
23928 gcc_cv_as_alpha_jsrdirect_relocs=yes
23929 else
23930 echo "configure: failed program was" >&5
23931 cat conftest.s >&5
23933 rm -f conftest.o conftest.s
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23937 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23938 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23940 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23945 cris-*-*)
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23947 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23948 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23949 $as_echo_n "(cached) " >&6
23950 else
23951 gcc_cv_as_cris_no_mul_bug=no
23952 if test $in_tree_gas = yes; then
23953 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23954 then gcc_cv_as_cris_no_mul_bug=yes
23956 elif test x$gcc_cv_as != x; then
23957 $as_echo '.text' > conftest.s
23958 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23960 (eval $ac_try) 2>&5
23961 ac_status=$?
23962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23963 test $ac_status = 0; }; }
23964 then
23965 gcc_cv_as_cris_no_mul_bug=yes
23966 else
23967 echo "configure: failed program was" >&5
23968 cat conftest.s >&5
23970 rm -f conftest.o conftest.s
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23974 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23975 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23977 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23982 sparc*-*-*)
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23984 $as_echo_n "checking assembler for .register... " >&6; }
23985 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23986 $as_echo_n "(cached) " >&6
23987 else
23988 gcc_cv_as_sparc_register_op=no
23989 if test x$gcc_cv_as != x; then
23990 $as_echo '.register %g2, #scratch' > conftest.s
23991 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23993 (eval $ac_try) 2>&5
23994 ac_status=$?
23995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23996 test $ac_status = 0; }; }
23997 then
23998 gcc_cv_as_sparc_register_op=yes
23999 else
24000 echo "configure: failed program was" >&5
24001 cat conftest.s >&5
24003 rm -f conftest.o conftest.s
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24007 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24008 if test $gcc_cv_as_sparc_register_op = yes; then
24010 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24015 $as_echo_n "checking assembler for #nobits... " >&6; }
24016 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24017 $as_echo_n "(cached) " >&6
24018 else
24019 gcc_cv_as_sparc_nobits=no
24020 if test x$gcc_cv_as != x; then
24021 $as_echo '.section "nobits",#alloc,#write,#nobits
24022 .section "progbits",#alloc,#write,#progbits' > conftest.s
24023 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24025 (eval $ac_try) 2>&5
24026 ac_status=$?
24027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24028 test $ac_status = 0; }; }
24029 then
24030 gcc_cv_as_sparc_nobits=yes
24031 else
24032 echo "configure: failed program was" >&5
24033 cat conftest.s >&5
24035 rm -f conftest.o conftest.s
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24039 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24042 cat >>confdefs.h <<_ACEOF
24043 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24044 _ACEOF
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24048 $as_echo_n "checking assembler for -relax option... " >&6; }
24049 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24050 $as_echo_n "(cached) " >&6
24051 else
24052 gcc_cv_as_sparc_relax=no
24053 if test x$gcc_cv_as != x; then
24054 $as_echo '.text' > conftest.s
24055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24057 (eval $ac_try) 2>&5
24058 ac_status=$?
24059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24060 test $ac_status = 0; }; }
24061 then
24062 gcc_cv_as_sparc_relax=yes
24063 else
24064 echo "configure: failed program was" >&5
24065 cat conftest.s >&5
24067 rm -f conftest.o conftest.s
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24071 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24072 if test $gcc_cv_as_sparc_relax = yes; then
24074 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24079 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24080 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24081 $as_echo_n "(cached) " >&6
24082 else
24083 gcc_cv_as_sparc_gotdata_op=no
24084 if test x$gcc_cv_as != x; then
24085 $as_echo '.text
24086 .align 4
24087 foo:
24089 bar:
24090 sethi %gdop_hix22(foo), %g1
24091 xor %g1, %gdop_lox10(foo), %g1
24092 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24095 (eval $ac_try) 2>&5
24096 ac_status=$?
24097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24098 test $ac_status = 0; }; }
24099 then
24100 if test x$gcc_cv_ld != x \
24101 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24102 if test x$gcc_cv_objdump != x; then
24103 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24104 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24105 gcc_cv_as_sparc_gotdata_op=no
24106 else
24107 gcc_cv_as_sparc_gotdata_op=yes
24111 rm -f conftest
24112 else
24113 echo "configure: failed program was" >&5
24114 cat conftest.s >&5
24116 rm -f conftest.o conftest.s
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24120 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24121 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24123 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24128 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24129 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24130 $as_echo_n "(cached) " >&6
24131 else
24132 gcc_cv_as_sparc_ua_pcrel=no
24133 if test x$gcc_cv_as != x; then
24134 $as_echo '.text
24135 foo:
24137 .data
24138 .align 4
24139 .byte 0
24140 .uaword %r_disp32(foo)' > conftest.s
24141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24143 (eval $ac_try) 2>&5
24144 ac_status=$?
24145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24146 test $ac_status = 0; }; }
24147 then
24148 if test x$gcc_cv_ld != x \
24149 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24150 gcc_cv_as_sparc_ua_pcrel=yes
24152 rm -f conftest
24153 else
24154 echo "configure: failed program was" >&5
24155 cat conftest.s >&5
24157 rm -f conftest.o conftest.s
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24161 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24162 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24164 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24168 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24169 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24170 $as_echo_n "(cached) " >&6
24171 else
24172 gcc_cv_as_sparc_ua_pcrel_hidden=no
24173 if test x$gcc_cv_as != x; then
24174 $as_echo '.data
24175 .align 4
24176 .byte 0x31
24177 .uaword %r_disp32(foo)
24178 .byte 0x32, 0x33, 0x34
24179 .global foo
24180 .hidden foo
24181 foo:
24182 .skip 4' > conftest.s
24183 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24185 (eval $ac_try) 2>&5
24186 ac_status=$?
24187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24188 test $ac_status = 0; }; }
24189 then
24190 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24191 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24192 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24193 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24194 if $gcc_cv_objdump -R conftest 2> /dev/null \
24195 | grep 'DISP32' > /dev/null 2>&1; then
24197 else
24198 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24201 rm -f conftest
24202 else
24203 echo "configure: failed program was" >&5
24204 cat conftest.s >&5
24206 rm -f conftest.o conftest.s
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24210 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24211 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24213 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24217 fi # unaligned pcrel relocs
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24220 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24221 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24222 $as_echo_n "(cached) " >&6
24223 else
24224 gcc_cv_as_sparc_offsetable_lo10=no
24225 if test x$gcc_cv_as != x; then
24226 $as_echo '.text
24227 or %g1, %lo(ab) + 12, %g1
24228 or %g1, %lo(ab + 12), %g1' > conftest.s
24229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24231 (eval $ac_try) 2>&5
24232 ac_status=$?
24233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24234 test $ac_status = 0; }; }
24235 then
24236 if test x$gcc_cv_objdump != x \
24237 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24238 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24239 gcc_cv_as_sparc_offsetable_lo10=yes
24241 else
24242 echo "configure: failed program was" >&5
24243 cat conftest.s >&5
24245 rm -f conftest.o conftest.s
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24249 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24250 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24252 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24257 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24258 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24259 $as_echo_n "(cached) " >&6
24260 else
24261 gcc_cv_as_sparc_fmaf=no
24262 if test x$gcc_cv_as != x; then
24263 $as_echo '.text
24264 .register %g2, #scratch
24265 .register %g3, #scratch
24266 .align 4
24267 fmaddd %f0, %f2, %f4, %f6
24268 addxccc %g1, %g2, %g3
24269 fsrl32 %f2, %f4, %f8
24270 fnaddd %f10, %f12, %f14' > conftest.s
24271 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24273 (eval $ac_try) 2>&5
24274 ac_status=$?
24275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24276 test $ac_status = 0; }; }
24277 then
24278 gcc_cv_as_sparc_fmaf=yes
24279 else
24280 echo "configure: failed program was" >&5
24281 cat conftest.s >&5
24283 rm -f conftest.o conftest.s
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24287 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24288 if test $gcc_cv_as_sparc_fmaf = yes; then
24290 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24295 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24296 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24297 $as_echo_n "(cached) " >&6
24298 else
24299 gcc_cv_as_sparc_sparc4=no
24300 if test x$gcc_cv_as != x; then
24301 $as_echo '.text
24302 .register %g2, #scratch
24303 .register %g3, #scratch
24304 .align 4
24305 cxbe %g2, %g3, 1f
24306 1: cwbneg %g2, %g3, 1f
24307 1: sha1
24309 aes_kexpand0 %f4, %f6, %f8
24310 des_round %f38, %f40, %f42, %f44
24311 camellia_f %f54, %f56, %f58, %f60
24312 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24315 (eval $ac_try) 2>&5
24316 ac_status=$?
24317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24318 test $ac_status = 0; }; }
24319 then
24320 gcc_cv_as_sparc_sparc4=yes
24321 else
24322 echo "configure: failed program was" >&5
24323 cat conftest.s >&5
24325 rm -f conftest.o conftest.s
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24329 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24330 if test $gcc_cv_as_sparc_sparc4 = yes; then
24332 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24337 i[34567]86-*-* | x86_64-*-*)
24338 case $target_os in
24339 cygwin*)
24340 # Full C++ conformance when using a shared libstdc++-v3 requires some
24341 # support from the Cygwin DLL, which in more recent versions exports
24342 # wrappers to aid in interposing and redirecting operators new, delete,
24343 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24344 # are configuring for a version of Cygwin that exports the wrappers.
24345 if test x$host = x$target && test x$host_cpu = xi686; then
24346 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24347 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24348 gcc_ac_cygwin_dll_wrappers=yes
24349 else
24350 gcc_ac_cygwin_dll_wrappers=no
24353 else
24354 # Can't check presence of libc functions during cross-compile, so
24355 # we just have to assume we're building for an up-to-date target.
24356 gcc_ac_cygwin_dll_wrappers=yes
24359 cat >>confdefs.h <<_ACEOF
24360 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24361 _ACEOF
24363 esac
24364 case $target_os in
24365 cygwin* | pe | mingw32* | interix*)
24366 # Recent binutils allows the three-operand form of ".comm" on PE. This
24367 # definition is used unconditionally to initialise the default state of
24368 # the target option variable that governs usage of the feature.
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24370 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24371 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24372 $as_echo_n "(cached) " >&6
24373 else
24374 gcc_cv_as_comm_has_align=no
24375 if test $in_tree_gas = yes; then
24376 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24377 then gcc_cv_as_comm_has_align=yes
24379 elif test x$gcc_cv_as != x; then
24380 $as_echo '.comm foo,1,32' > conftest.s
24381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24383 (eval $ac_try) 2>&5
24384 ac_status=$?
24385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24386 test $ac_status = 0; }; }
24387 then
24388 gcc_cv_as_comm_has_align=yes
24389 else
24390 echo "configure: failed program was" >&5
24391 cat conftest.s >&5
24393 rm -f conftest.o conftest.s
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24397 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24400 cat >>confdefs.h <<_ACEOF
24401 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24402 _ACEOF
24404 # Used for DWARF 2 in PE
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24406 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24407 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24408 $as_echo_n "(cached) " >&6
24409 else
24410 gcc_cv_as_ix86_pe_secrel32=no
24411 if test $in_tree_gas = yes; then
24412 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24413 then gcc_cv_as_ix86_pe_secrel32=yes
24415 elif test x$gcc_cv_as != x; then
24416 $as_echo '.text
24417 foo: nop
24418 .data
24419 .secrel32 foo' > conftest.s
24420 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24422 (eval $ac_try) 2>&5
24423 ac_status=$?
24424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24425 test $ac_status = 0; }; }
24426 then
24427 if test x$gcc_cv_ld != x \
24428 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24429 gcc_cv_as_ix86_pe_secrel32=yes
24431 rm -f conftest
24432 else
24433 echo "configure: failed program was" >&5
24434 cat conftest.s >&5
24436 rm -f conftest.o conftest.s
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24440 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24441 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24443 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24446 # Test if the assembler supports the extended form of the .section
24447 # directive that specifies section alignment. LTO support uses this,
24448 # but normally only after installation, so we warn but don't fail the
24449 # configure if LTO is enabled but the assembler does not support it.
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24451 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24452 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24453 $as_echo_n "(cached) " >&6
24454 else
24455 gcc_cv_as_section_has_align=no
24456 if test $in_tree_gas = yes; then
24457 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24458 then gcc_cv_as_section_has_align=yes
24460 elif test x$gcc_cv_as != x; then
24461 $as_echo '.section lto_test,"dr0"' > conftest.s
24462 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24464 (eval $ac_try) 2>&5
24465 ac_status=$?
24466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24467 test $ac_status = 0; }; }
24468 then
24469 gcc_cv_as_section_has_align=yes
24470 else
24471 echo "configure: failed program was" >&5
24472 cat conftest.s >&5
24474 rm -f conftest.o conftest.s
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24478 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24480 if test x$gcc_cv_as_section_has_align != xyes; then
24481 case ",$enable_languages," in
24482 *,lto,*)
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
24484 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
24486 esac
24488 # Test if the assembler supports the section flag 'e' for specifying
24489 # an excluded section.
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24491 $as_echo_n "checking assembler for .section with e... " >&6; }
24492 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24493 $as_echo_n "(cached) " >&6
24494 else
24495 gcc_cv_as_section_has_e=no
24496 if test $in_tree_gas = yes; then
24497 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24498 then gcc_cv_as_section_has_e=yes
24500 elif test x$gcc_cv_as != x; then
24501 $as_echo '.section foo1,"e"
24502 .byte 0,0,0,0' > conftest.s
24503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24505 (eval $ac_try) 2>&5
24506 ac_status=$?
24507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24508 test $ac_status = 0; }; }
24509 then
24510 gcc_cv_as_section_has_e=yes
24511 else
24512 echo "configure: failed program was" >&5
24513 cat conftest.s >&5
24515 rm -f conftest.o conftest.s
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24519 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24522 cat >>confdefs.h <<_ACEOF
24523 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24524 _ACEOF
24527 esac
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24530 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24531 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24532 $as_echo_n "(cached) " >&6
24533 else
24534 gcc_cv_as_ix86_filds=no
24535 if test x$gcc_cv_as != x; then
24536 $as_echo 'filds mem; fists mem' > conftest.s
24537 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24539 (eval $ac_try) 2>&5
24540 ac_status=$?
24541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24542 test $ac_status = 0; }; }
24543 then
24544 gcc_cv_as_ix86_filds=yes
24545 else
24546 echo "configure: failed program was" >&5
24547 cat conftest.s >&5
24549 rm -f conftest.o conftest.s
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24553 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24554 if test $gcc_cv_as_ix86_filds = yes; then
24556 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24561 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24562 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24563 $as_echo_n "(cached) " >&6
24564 else
24565 gcc_cv_as_ix86_fildq=no
24566 if test x$gcc_cv_as != x; then
24567 $as_echo 'fildq mem; fistpq mem' > conftest.s
24568 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24570 (eval $ac_try) 2>&5
24571 ac_status=$?
24572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24573 test $ac_status = 0; }; }
24574 then
24575 gcc_cv_as_ix86_fildq=yes
24576 else
24577 echo "configure: failed program was" >&5
24578 cat conftest.s >&5
24580 rm -f conftest.o conftest.s
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24584 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24585 if test $gcc_cv_as_ix86_fildq = yes; then
24587 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24592 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24593 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24594 $as_echo_n "(cached) " >&6
24595 else
24596 gcc_cv_as_ix86_cmov_sun_syntax=no
24597 if test x$gcc_cv_as != x; then
24598 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24601 (eval $ac_try) 2>&5
24602 ac_status=$?
24603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24604 test $ac_status = 0; }; }
24605 then
24606 gcc_cv_as_ix86_cmov_sun_syntax=yes
24607 else
24608 echo "configure: failed program was" >&5
24609 cat conftest.s >&5
24611 rm -f conftest.o conftest.s
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24615 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24616 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24618 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24623 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24624 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24625 $as_echo_n "(cached) " >&6
24626 else
24627 gcc_cv_as_ix86_ffreep=no
24628 if test x$gcc_cv_as != x; then
24629 $as_echo 'ffreep %st(1)' > conftest.s
24630 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24632 (eval $ac_try) 2>&5
24633 ac_status=$?
24634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24635 test $ac_status = 0; }; }
24636 then
24637 gcc_cv_as_ix86_ffreep=yes
24638 else
24639 echo "configure: failed program was" >&5
24640 cat conftest.s >&5
24642 rm -f conftest.o conftest.s
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24646 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24647 if test $gcc_cv_as_ix86_ffreep = yes; then
24649 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24654 $as_echo_n "checking assembler for .quad directive... " >&6; }
24655 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24656 $as_echo_n "(cached) " >&6
24657 else
24658 gcc_cv_as_ix86_quad=no
24659 if test x$gcc_cv_as != x; then
24660 $as_echo '.quad 0' > conftest.s
24661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24663 (eval $ac_try) 2>&5
24664 ac_status=$?
24665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666 test $ac_status = 0; }; }
24667 then
24668 gcc_cv_as_ix86_quad=yes
24669 else
24670 echo "configure: failed program was" >&5
24671 cat conftest.s >&5
24673 rm -f conftest.o conftest.s
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24677 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24678 if test $gcc_cv_as_ix86_quad = yes; then
24680 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24685 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24686 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24687 $as_echo_n "(cached) " >&6
24688 else
24689 gcc_cv_as_ix86_sahf=no
24690 if test x$gcc_cv_as != x; then
24691 $as_echo '.code64
24692 sahf' > conftest.s
24693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24695 (eval $ac_try) 2>&5
24696 ac_status=$?
24697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24698 test $ac_status = 0; }; }
24699 then
24700 gcc_cv_as_ix86_sahf=yes
24701 else
24702 echo "configure: failed program was" >&5
24703 cat conftest.s >&5
24705 rm -f conftest.o conftest.s
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24709 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24710 if test $gcc_cv_as_ix86_sahf = yes; then
24712 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24717 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24718 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24719 $as_echo_n "(cached) " >&6
24720 else
24721 gcc_cv_as_ix86_interunit_movq=no
24722 if test x$gcc_cv_as != x; then
24723 $as_echo '.code64
24724 movq %mm0, %rax
24725 movq %rax, %xmm0' > conftest.s
24726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24728 (eval $ac_try) 2>&5
24729 ac_status=$?
24730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24731 test $ac_status = 0; }; }
24732 then
24733 gcc_cv_as_ix86_interunit_movq=yes
24734 else
24735 echo "configure: failed program was" >&5
24736 cat conftest.s >&5
24738 rm -f conftest.o conftest.s
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24742 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24743 if test $gcc_cv_as_ix86_interunit_movq = yes; then
24745 $as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24750 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24751 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24752 $as_echo_n "(cached) " >&6
24753 else
24754 gcc_cv_as_ix86_hle=no
24755 if test x$gcc_cv_as != x; then
24756 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24759 (eval $ac_try) 2>&5
24760 ac_status=$?
24761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24762 test $ac_status = 0; }; }
24763 then
24764 gcc_cv_as_ix86_hle=yes
24765 else
24766 echo "configure: failed program was" >&5
24767 cat conftest.s >&5
24769 rm -f conftest.o conftest.s
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24773 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24774 if test $gcc_cv_as_ix86_hle = yes; then
24776 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24781 $as_echo_n "checking assembler for swap suffix... " >&6; }
24782 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24783 $as_echo_n "(cached) " >&6
24784 else
24785 gcc_cv_as_ix86_swap=no
24786 if test x$gcc_cv_as != x; then
24787 $as_echo 'movl.s %esp, %ebp' > conftest.s
24788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24790 (eval $ac_try) 2>&5
24791 ac_status=$?
24792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24793 test $ac_status = 0; }; }
24794 then
24795 gcc_cv_as_ix86_swap=yes
24796 else
24797 echo "configure: failed program was" >&5
24798 cat conftest.s >&5
24800 rm -f conftest.o conftest.s
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24804 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24805 if test $gcc_cv_as_ix86_swap = yes; then
24807 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24812 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24813 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24814 $as_echo_n "(cached) " >&6
24815 else
24816 gcc_cv_as_ix86_diff_sect_delta=no
24817 if test x$gcc_cv_as != x; then
24818 $as_echo '.section .rodata
24819 .L1:
24820 .long .L2-.L1
24821 .long .L3-.L1
24822 .text
24823 .L3: nop
24824 .L2: nop' > conftest.s
24825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24827 (eval $ac_try) 2>&5
24828 ac_status=$?
24829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24830 test $ac_status = 0; }; }
24831 then
24832 gcc_cv_as_ix86_diff_sect_delta=yes
24833 else
24834 echo "configure: failed program was" >&5
24835 cat conftest.s >&5
24837 rm -f conftest.o conftest.s
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24841 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24842 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24844 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24848 # These two are used unconditionally by i386.[ch]; it is to be defined
24849 # to 1 if the feature is present, 0 otherwise.
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24851 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24852 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24854 else
24855 gcc_cv_as_ix86_gotoff_in_data=no
24856 if test $in_tree_gas = yes; then
24857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24858 then gcc_cv_as_ix86_gotoff_in_data=yes
24860 elif test x$gcc_cv_as != x; then
24861 $as_echo ' .text
24862 .L0:
24864 .data
24865 .long .L0@GOTOFF' > conftest.s
24866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24868 (eval $ac_try) 2>&5
24869 ac_status=$?
24870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24871 test $ac_status = 0; }; }
24872 then
24873 gcc_cv_as_ix86_gotoff_in_data=yes
24874 else
24875 echo "configure: failed program was" >&5
24876 cat conftest.s >&5
24878 rm -f conftest.o conftest.s
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24882 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24885 cat >>confdefs.h <<_ACEOF
24886 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24887 _ACEOF
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24891 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24892 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24893 $as_echo_n "(cached) " >&6
24894 else
24895 gcc_cv_as_ix86_rep_lock_prefix=no
24896 if test x$gcc_cv_as != x; then
24897 $as_echo 'rep movsl
24898 rep ret
24899 rep nop
24900 rep bsf %ecx, %eax
24901 rep bsr %ecx, %eax
24902 lock addl %edi, (%eax,%esi)
24903 lock orl $0, (%esp)' > conftest.s
24904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24906 (eval $ac_try) 2>&5
24907 ac_status=$?
24908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24909 test $ac_status = 0; }; }
24910 then
24911 gcc_cv_as_ix86_rep_lock_prefix=yes
24912 else
24913 echo "configure: failed program was" >&5
24914 cat conftest.s >&5
24916 rm -f conftest.o conftest.s
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24920 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24921 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24923 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24928 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24929 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24930 $as_echo_n "(cached) " >&6
24931 else
24932 gcc_cv_as_ix86_tlsgdplt=no
24933 if test x$gcc_cv_as != x; then
24934 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24937 (eval $ac_try) 2>&5
24938 ac_status=$?
24939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24940 test $ac_status = 0; }; }
24941 then
24942 if test x$gcc_cv_ld != x \
24943 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24944 gcc_cv_as_ix86_tlsgdplt=yes
24946 rm -f conftest
24947 else
24948 echo "configure: failed program was" >&5
24949 cat conftest.s >&5
24951 rm -f conftest.o conftest.s
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24955 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24956 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24958 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24963 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24964 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24965 $as_echo_n "(cached) " >&6
24966 else
24967 gcc_cv_as_ix86_tlsldmplt=no
24968 if test x$gcc_cv_as != x; then
24969 $as_echo 'tls_ld:
24970 call tls_ld@tlsldmplt' > conftest.s
24971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973 (eval $ac_try) 2>&5
24974 ac_status=$?
24975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976 test $ac_status = 0; }; }
24977 then
24978 if test x$gcc_cv_ld != x \
24979 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24980 gcc_cv_as_ix86_tlsldmplt=yes
24982 rm -f conftest
24983 else
24984 echo "configure: failed program was" >&5
24985 cat conftest.s >&5
24987 rm -f conftest.o conftest.s
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24991 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24992 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24994 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25000 ia64*-*-*)
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25002 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25003 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25004 $as_echo_n "(cached) " >&6
25005 else
25006 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25007 if test $in_tree_gas = yes; then
25008 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25009 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25011 elif test x$gcc_cv_as != x; then
25012 $as_echo ' .text
25013 addl r15 = @ltoffx(x#), gp
25015 ld8.mov r16 = [r15], x#' > conftest.s
25016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25018 (eval $ac_try) 2>&5
25019 ac_status=$?
25020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25021 test $ac_status = 0; }; }
25022 then
25023 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25024 else
25025 echo "configure: failed program was" >&5
25026 cat conftest.s >&5
25028 rm -f conftest.o conftest.s
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25032 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25033 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25035 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25041 powerpc*-*-*)
25042 case $target in
25043 *-*-aix*) conftest_s=' .machine "pwr5"
25044 .csect .text[PR]
25045 mfcr 3,128';;
25046 *-*-darwin*)
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25048 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25049 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25050 $as_echo_n "(cached) " >&6
25051 else
25052 gcc_cv_as_machine_directive=no
25053 if test x$gcc_cv_as != x; then
25054 $as_echo ' .machine ppc7400' > conftest.s
25055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25057 (eval $ac_try) 2>&5
25058 ac_status=$?
25059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25060 test $ac_status = 0; }; }
25061 then
25062 gcc_cv_as_machine_directive=yes
25063 else
25064 echo "configure: failed program was" >&5
25065 cat conftest.s >&5
25067 rm -f conftest.o conftest.s
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25071 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25073 if test x$gcc_cv_as_machine_directive != xyes; then
25074 echo "*** This target requires an assembler supporting \".machine\"" >&2
25075 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25076 test x$build = x$target && exit 1
25078 conftest_s=' .text
25079 mfcr r3,128';;
25080 *) conftest_s=' .machine power4
25081 .text
25082 mfcr 3,128';;
25083 esac
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25086 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25087 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25088 $as_echo_n "(cached) " >&6
25089 else
25090 gcc_cv_as_powerpc_mfcrf=no
25091 if test $in_tree_gas = yes; then
25092 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25093 then gcc_cv_as_powerpc_mfcrf=yes
25095 elif test x$gcc_cv_as != x; then
25096 $as_echo "$conftest_s" > conftest.s
25097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25099 (eval $ac_try) 2>&5
25100 ac_status=$?
25101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25102 test $ac_status = 0; }; }
25103 then
25104 gcc_cv_as_powerpc_mfcrf=yes
25105 else
25106 echo "configure: failed program was" >&5
25107 cat conftest.s >&5
25109 rm -f conftest.o conftest.s
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25113 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25114 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25116 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25120 case $target in
25121 *-*-aix*) conftest_s=' .machine "pwr5"
25122 .csect .text[PR]
25123 popcntb 3,3';;
25124 *) conftest_s=' .machine power5
25125 .text
25126 popcntb 3,3';;
25127 esac
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25130 $as_echo_n "checking assembler for popcntb support... " >&6; }
25131 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25132 $as_echo_n "(cached) " >&6
25133 else
25134 gcc_cv_as_powerpc_popcntb=no
25135 if test $in_tree_gas = yes; then
25136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25137 then gcc_cv_as_powerpc_popcntb=yes
25139 elif test x$gcc_cv_as != x; then
25140 $as_echo "$conftest_s" > conftest.s
25141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25143 (eval $ac_try) 2>&5
25144 ac_status=$?
25145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; }
25147 then
25148 gcc_cv_as_powerpc_popcntb=yes
25149 else
25150 echo "configure: failed program was" >&5
25151 cat conftest.s >&5
25153 rm -f conftest.o conftest.s
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25157 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25158 if test $gcc_cv_as_powerpc_popcntb = yes; then
25160 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25164 case $target in
25165 *-*-aix*) conftest_s=' .machine "pwr5x"
25166 .csect .text[PR]
25167 frin 1,1';;
25168 *) conftest_s=' .machine power5
25169 .text
25170 frin 1,1';;
25171 esac
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25174 $as_echo_n "checking assembler for fp round support... " >&6; }
25175 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25176 $as_echo_n "(cached) " >&6
25177 else
25178 gcc_cv_as_powerpc_fprnd=no
25179 if test $in_tree_gas = yes; then
25180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25181 then gcc_cv_as_powerpc_fprnd=yes
25183 elif test x$gcc_cv_as != x; then
25184 $as_echo "$conftest_s" > conftest.s
25185 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25187 (eval $ac_try) 2>&5
25188 ac_status=$?
25189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25190 test $ac_status = 0; }; }
25191 then
25192 gcc_cv_as_powerpc_fprnd=yes
25193 else
25194 echo "configure: failed program was" >&5
25195 cat conftest.s >&5
25197 rm -f conftest.o conftest.s
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25201 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25202 if test $gcc_cv_as_powerpc_fprnd = yes; then
25204 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25208 case $target in
25209 *-*-aix*) conftest_s=' .machine "pwr6"
25210 .csect .text[PR]
25211 mffgpr 1,3';;
25212 *) conftest_s=' .machine power6
25213 .text
25214 mffgpr 1,3';;
25215 esac
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25218 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25219 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25220 $as_echo_n "(cached) " >&6
25221 else
25222 gcc_cv_as_powerpc_mfpgpr=no
25223 if test $in_tree_gas = yes; then
25224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25225 then gcc_cv_as_powerpc_mfpgpr=yes
25227 elif test x$gcc_cv_as != x; then
25228 $as_echo "$conftest_s" > conftest.s
25229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25231 (eval $ac_try) 2>&5
25232 ac_status=$?
25233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25234 test $ac_status = 0; }; }
25235 then
25236 gcc_cv_as_powerpc_mfpgpr=yes
25237 else
25238 echo "configure: failed program was" >&5
25239 cat conftest.s >&5
25241 rm -f conftest.o conftest.s
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25245 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25246 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25248 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25252 case $target in
25253 *-*-aix*) conftest_s=' .csect .text[PR]
25254 LCF..0:
25255 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25256 *-*-darwin*)
25257 conftest_s=' .text
25258 LCF0:
25259 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25260 *) conftest_s=' .text
25261 .LCF0:
25262 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25263 esac
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25266 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25267 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25268 $as_echo_n "(cached) " >&6
25269 else
25270 gcc_cv_as_powerpc_rel16=no
25271 if test $in_tree_gas = yes; then
25272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25273 then gcc_cv_as_powerpc_rel16=yes
25275 elif test x$gcc_cv_as != x; then
25276 $as_echo "$conftest_s" > conftest.s
25277 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25279 (eval $ac_try) 2>&5
25280 ac_status=$?
25281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25282 test $ac_status = 0; }; }
25283 then
25284 gcc_cv_as_powerpc_rel16=yes
25285 else
25286 echo "configure: failed program was" >&5
25287 cat conftest.s >&5
25289 rm -f conftest.o conftest.s
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25293 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25294 if test $gcc_cv_as_powerpc_rel16 = yes; then
25296 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25300 case $target in
25301 *-*-aix*) conftest_s=' .machine "pwr6"
25302 .csect .text[PR]
25303 cmpb 3,4,5';;
25304 *) conftest_s=' .machine power6
25305 .text
25306 cmpb 3,4,5';;
25307 esac
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25310 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25311 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25312 $as_echo_n "(cached) " >&6
25313 else
25314 gcc_cv_as_powerpc_cmpb=no
25315 if test $in_tree_gas = yes; then
25316 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25317 then gcc_cv_as_powerpc_cmpb=yes
25319 elif test x$gcc_cv_as != x; then
25320 $as_echo "$conftest_s" > conftest.s
25321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25323 (eval $ac_try) 2>&5
25324 ac_status=$?
25325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25326 test $ac_status = 0; }; }
25327 then
25328 gcc_cv_as_powerpc_cmpb=yes
25329 else
25330 echo "configure: failed program was" >&5
25331 cat conftest.s >&5
25333 rm -f conftest.o conftest.s
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25337 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25338 if test $gcc_cv_as_powerpc_cmpb = yes; then
25340 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25344 case $target in
25345 *-*-aix*) conftest_s=' .machine "pwr6"
25346 .csect .text[PR]
25347 dadd 1,2,3';;
25348 *) conftest_s=' .machine power6
25349 .text
25350 dadd 1,2,3';;
25351 esac
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25354 $as_echo_n "checking assembler for decimal float support... " >&6; }
25355 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25356 $as_echo_n "(cached) " >&6
25357 else
25358 gcc_cv_as_powerpc_dfp=no
25359 if test $in_tree_gas = yes; then
25360 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25361 then gcc_cv_as_powerpc_dfp=yes
25363 elif test x$gcc_cv_as != x; then
25364 $as_echo "$conftest_s" > conftest.s
25365 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25367 (eval $ac_try) 2>&5
25368 ac_status=$?
25369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25370 test $ac_status = 0; }; }
25371 then
25372 gcc_cv_as_powerpc_dfp=yes
25373 else
25374 echo "configure: failed program was" >&5
25375 cat conftest.s >&5
25377 rm -f conftest.o conftest.s
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25381 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25382 if test $gcc_cv_as_powerpc_dfp = yes; then
25384 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25388 case $target in
25389 *-*-aix*) conftest_s=' .machine "pwr7"
25390 .csect .text[PR]
25391 lxvd2x 1,2,3';;
25392 *) conftest_s=' .machine power7
25393 .text
25394 lxvd2x 1,2,3';;
25395 esac
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25398 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25399 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25400 $as_echo_n "(cached) " >&6
25401 else
25402 gcc_cv_as_powerpc_vsx=no
25403 if test $in_tree_gas = yes; then
25404 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25405 then gcc_cv_as_powerpc_vsx=yes
25407 elif test x$gcc_cv_as != x; then
25408 $as_echo "$conftest_s" > conftest.s
25409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25411 (eval $ac_try) 2>&5
25412 ac_status=$?
25413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25414 test $ac_status = 0; }; }
25415 then
25416 gcc_cv_as_powerpc_vsx=yes
25417 else
25418 echo "configure: failed program was" >&5
25419 cat conftest.s >&5
25421 rm -f conftest.o conftest.s
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25425 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25426 if test $gcc_cv_as_powerpc_vsx = yes; then
25428 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25432 case $target in
25433 *-*-aix*) conftest_s=' .machine "pwr7"
25434 .csect .text[PR]
25435 popcntd 3,3';;
25436 *) conftest_s=' .machine power7
25437 .text
25438 popcntd 3,3';;
25439 esac
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25442 $as_echo_n "checking assembler for popcntd support... " >&6; }
25443 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25444 $as_echo_n "(cached) " >&6
25445 else
25446 gcc_cv_as_powerpc_popcntd=no
25447 if test $in_tree_gas = yes; then
25448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25449 then gcc_cv_as_powerpc_popcntd=yes
25451 elif test x$gcc_cv_as != x; then
25452 $as_echo "$conftest_s" > conftest.s
25453 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25455 (eval $ac_try) 2>&5
25456 ac_status=$?
25457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25458 test $ac_status = 0; }; }
25459 then
25460 gcc_cv_as_powerpc_popcntd=yes
25461 else
25462 echo "configure: failed program was" >&5
25463 cat conftest.s >&5
25465 rm -f conftest.o conftest.s
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25469 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25470 if test $gcc_cv_as_powerpc_popcntd = yes; then
25472 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25476 case $target in
25477 *-*-aix*) conftest_s=' .machine "pwr8"
25478 .csect .text[PR]';;
25479 *) conftest_s=' .machine power8
25480 .text';;
25481 esac
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25484 $as_echo_n "checking assembler for power8 support... " >&6; }
25485 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25486 $as_echo_n "(cached) " >&6
25487 else
25488 gcc_cv_as_powerpc_power8=no
25489 if test $in_tree_gas = yes; then
25490 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25491 then gcc_cv_as_powerpc_power8=yes
25493 elif test x$gcc_cv_as != x; then
25494 $as_echo "$conftest_s" > conftest.s
25495 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25497 (eval $ac_try) 2>&5
25498 ac_status=$?
25499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25500 test $ac_status = 0; }; }
25501 then
25502 gcc_cv_as_powerpc_power8=yes
25503 else
25504 echo "configure: failed program was" >&5
25505 cat conftest.s >&5
25507 rm -f conftest.o conftest.s
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25511 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25512 if test $gcc_cv_as_powerpc_power8 = yes; then
25514 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25518 case $target in
25519 *-*-aix*) conftest_s=' .csect .text[PR]
25520 lwsync';;
25521 *) conftest_s=' .text
25522 lwsync';;
25523 esac
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25526 $as_echo_n "checking assembler for lwsync support... " >&6; }
25527 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25528 $as_echo_n "(cached) " >&6
25529 else
25530 gcc_cv_as_powerpc_lwsync=no
25531 if test $in_tree_gas = yes; then
25532 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25533 then gcc_cv_as_powerpc_lwsync=yes
25535 elif test x$gcc_cv_as != x; then
25536 $as_echo "$conftest_s" > conftest.s
25537 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25539 (eval $ac_try) 2>&5
25540 ac_status=$?
25541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25542 test $ac_status = 0; }; }
25543 then
25544 gcc_cv_as_powerpc_lwsync=yes
25545 else
25546 echo "configure: failed program was" >&5
25547 cat conftest.s >&5
25549 rm -f conftest.o conftest.s
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25553 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25554 if test $gcc_cv_as_powerpc_lwsync = yes; then
25556 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25560 case $target in
25561 *-*-aix*) conftest_s=' .machine "476"
25562 .csect .text[PR]
25563 dci 0';;
25564 *) conftest_s=' .machine "476"
25565 .text
25566 dci 0';;
25567 esac
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25570 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25571 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25572 $as_echo_n "(cached) " >&6
25573 else
25574 gcc_cv_as_powerpc_dci=no
25575 if test $in_tree_gas = yes; then
25576 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25577 then gcc_cv_as_powerpc_dci=yes
25579 elif test x$gcc_cv_as != x; then
25580 $as_echo "$conftest_s" > conftest.s
25581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25583 (eval $ac_try) 2>&5
25584 ac_status=$?
25585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25586 test $ac_status = 0; }; }
25587 then
25588 gcc_cv_as_powerpc_dci=yes
25589 else
25590 echo "configure: failed program was" >&5
25591 cat conftest.s >&5
25593 rm -f conftest.o conftest.s
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25597 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25598 if test $gcc_cv_as_powerpc_dci = yes; then
25600 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25605 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25606 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25607 $as_echo_n "(cached) " >&6
25608 else
25609 gcc_cv_as_powerpc_gnu_attribute=no
25610 if test $in_tree_gas = yes; then
25611 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25612 then gcc_cv_as_powerpc_gnu_attribute=yes
25614 elif test x$gcc_cv_as != x; then
25615 $as_echo '.gnu_attribute 4,1' > conftest.s
25616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25618 (eval $ac_try) 2>&5
25619 ac_status=$?
25620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25621 test $ac_status = 0; }; }
25622 then
25623 gcc_cv_as_powerpc_gnu_attribute=yes
25624 else
25625 echo "configure: failed program was" >&5
25626 cat conftest.s >&5
25628 rm -f conftest.o conftest.s
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25632 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25633 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25635 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25640 $as_echo_n "checking assembler for tls marker support... " >&6; }
25641 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25642 $as_echo_n "(cached) " >&6
25643 else
25644 gcc_cv_as_powerpc_tls_markers=no
25645 if test $in_tree_gas = yes; then
25646 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25647 then gcc_cv_as_powerpc_tls_markers=yes
25649 elif test x$gcc_cv_as != x; then
25650 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25653 (eval $ac_try) 2>&5
25654 ac_status=$?
25655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25656 test $ac_status = 0; }; }
25657 then
25658 gcc_cv_as_powerpc_tls_markers=yes
25659 else
25660 echo "configure: failed program was" >&5
25661 cat conftest.s >&5
25663 rm -f conftest.o conftest.s
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25667 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25668 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25670 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25674 case $target in
25675 *-*-aix*)
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25677 $as_echo_n "checking assembler for .ref support... " >&6; }
25678 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25679 $as_echo_n "(cached) " >&6
25680 else
25681 gcc_cv_as_aix_ref=no
25682 if test $in_tree_gas = yes; then
25683 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25684 then gcc_cv_as_aix_ref=yes
25686 elif test x$gcc_cv_as != x; then
25687 $as_echo ' .csect stuff[rw]
25688 stuff:
25689 .long 1
25690 .extern sym
25691 .ref sym
25692 ' > conftest.s
25693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25695 (eval $ac_try) 2>&5
25696 ac_status=$?
25697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25698 test $ac_status = 0; }; }
25699 then
25700 gcc_cv_as_aix_ref=yes
25701 else
25702 echo "configure: failed program was" >&5
25703 cat conftest.s >&5
25705 rm -f conftest.o conftest.s
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25709 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25710 if test $gcc_cv_as_aix_ref = yes; then
25712 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25716 esac
25719 mips*-*-*)
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25721 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25722 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25723 $as_echo_n "(cached) " >&6
25724 else
25725 gcc_cv_as_mips_explicit_relocs=no
25726 if test $in_tree_gas = yes; then
25727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25728 then gcc_cv_as_mips_explicit_relocs=yes
25730 elif test x$gcc_cv_as != x; then
25731 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25734 (eval $ac_try) 2>&5
25735 ac_status=$?
25736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25737 test $ac_status = 0; }; }
25738 then
25739 gcc_cv_as_mips_explicit_relocs=yes
25740 else
25741 echo "configure: failed program was" >&5
25742 cat conftest.s >&5
25744 rm -f conftest.o conftest.s
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25748 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25749 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25750 if test x$target_cpu_default = x
25751 then target_cpu_default=MASK_EXPLICIT_RELOCS
25752 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25756 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25757 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25758 $as_echo_n "(cached) " >&6
25759 else
25760 gcc_cv_as_mips_no_shared=no
25761 if test $in_tree_gas = yes; then
25762 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25763 then gcc_cv_as_mips_no_shared=yes
25765 elif test x$gcc_cv_as != x; then
25766 $as_echo 'nop' > conftest.s
25767 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25769 (eval $ac_try) 2>&5
25770 ac_status=$?
25771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25772 test $ac_status = 0; }; }
25773 then
25774 gcc_cv_as_mips_no_shared=yes
25775 else
25776 echo "configure: failed program was" >&5
25777 cat conftest.s >&5
25779 rm -f conftest.o conftest.s
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25783 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25784 if test $gcc_cv_as_mips_no_shared = yes; then
25786 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25791 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25792 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25793 $as_echo_n "(cached) " >&6
25794 else
25795 gcc_cv_as_mips_gnu_attribute=no
25796 if test $in_tree_gas = yes; then
25797 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25798 then gcc_cv_as_mips_gnu_attribute=yes
25800 elif test x$gcc_cv_as != x; then
25801 $as_echo '.gnu_attribute 4,1' > conftest.s
25802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25804 (eval $ac_try) 2>&5
25805 ac_status=$?
25806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25807 test $ac_status = 0; }; }
25808 then
25809 gcc_cv_as_mips_gnu_attribute=yes
25810 else
25811 echo "configure: failed program was" >&5
25812 cat conftest.s >&5
25814 rm -f conftest.o conftest.s
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25818 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25819 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25821 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25826 $as_echo_n "checking assembler for .micromips support... " >&6; }
25827 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25828 $as_echo_n "(cached) " >&6
25829 else
25830 gcc_cv_as_micromips_support=no
25831 if test x$gcc_cv_as != x; then
25832 $as_echo '.set micromips' > conftest.s
25833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25835 (eval $ac_try) 2>&5
25836 ac_status=$?
25837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838 test $ac_status = 0; }; }
25839 then
25840 gcc_cv_as_micromips_support=yes
25841 else
25842 echo "configure: failed program was" >&5
25843 cat conftest.s >&5
25845 rm -f conftest.o conftest.s
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25849 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25850 if test $gcc_cv_as_micromips_support = yes; then
25852 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25857 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25858 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25859 $as_echo_n "(cached) " >&6
25860 else
25861 gcc_cv_as_mips_dtprelword=no
25862 if test $in_tree_gas = yes; then
25863 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25864 then gcc_cv_as_mips_dtprelword=yes
25866 elif test x$gcc_cv_as != x; then
25867 $as_echo '.section .tdata,"awT",@progbits
25869 .word 2
25870 .text
25871 .dtprelword x+0x8000' > conftest.s
25872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25874 (eval $ac_try) 2>&5
25875 ac_status=$?
25876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25877 test $ac_status = 0; }; }
25878 then
25879 gcc_cv_as_mips_dtprelword=yes
25880 else
25881 echo "configure: failed program was" >&5
25882 cat conftest.s >&5
25884 rm -f conftest.o conftest.s
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25888 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25889 if test $gcc_cv_as_mips_dtprelword = yes; then
25891 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25896 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25897 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25898 $as_echo_n "(cached) " >&6
25899 else
25900 gcc_cv_as_mips_dspr1_mult=no
25901 if test x$gcc_cv_as != x; then
25902 $as_echo ' .set mips32r2
25903 .set nodspr2
25904 .set dsp
25905 madd $ac3,$4,$5
25906 maddu $ac3,$4,$5
25907 msub $ac3,$4,$5
25908 msubu $ac3,$4,$5
25909 mult $ac3,$4,$5
25910 multu $ac3,$4,$5' > conftest.s
25911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25913 (eval $ac_try) 2>&5
25914 ac_status=$?
25915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25916 test $ac_status = 0; }; }
25917 then
25918 gcc_cv_as_mips_dspr1_mult=yes
25919 else
25920 echo "configure: failed program was" >&5
25921 cat conftest.s >&5
25923 rm -f conftest.o conftest.s
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25927 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25928 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25930 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25935 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25936 gcc_cv_as_ld_jalr_reloc=no
25937 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25938 if test $in_tree_ld = yes ; then
25939 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
25940 && test $in_tree_ld_is_elf = yes; then
25941 gcc_cv_as_ld_jalr_reloc=yes
25943 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25944 echo ' .ent x' > conftest.s
25945 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25946 echo ' ld $25,%call16(y)($28)' >> conftest.s
25947 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25948 echo '1: jalr $25' >> conftest.s
25949 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25950 echo '1: jalr $25' >> conftest.s
25951 echo ' .end x' >> conftest.s
25952 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25953 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25954 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25955 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25956 gcc_cv_as_ld_jalr_reloc=yes
25959 rm -f conftest.*
25962 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25963 if test x$target_cpu_default = x; then
25964 target_cpu_default=MASK_RELAX_PIC_CALLS
25965 else
25966 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25970 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25973 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25974 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25975 $as_echo_n "(cached) " >&6
25976 else
25977 gcc_cv_ld_mips_personality_relaxation=no
25978 if test $in_tree_ld = yes ; then
25979 if test "$gcc_cv_gld_major_version" -eq 2 \
25980 -a "$gcc_cv_gld_minor_version" -ge 21 \
25981 -o "$gcc_cv_gld_major_version" -gt 2; then
25982 gcc_cv_ld_mips_personality_relaxation=yes
25984 elif test x$gcc_cv_as != x \
25985 -a x$gcc_cv_ld != x \
25986 -a x$gcc_cv_readelf != x ; then
25987 cat > conftest.s <<EOF
25988 .cfi_startproc
25989 .cfi_personality 0x80,indirect_ptr
25990 .ent test
25991 test:
25993 .end test
25994 .cfi_endproc
25996 .section .data,"aw",@progbits
25997 indirect_ptr:
25998 .dc.a personality
26000 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26001 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26002 if $gcc_cv_readelf -d conftest 2>&1 \
26003 | grep TEXTREL > /dev/null 2>&1; then
26005 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26006 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26008 else
26009 gcc_cv_ld_mips_personality_relaxation=yes
26013 rm -f conftest.s conftest.o conftest
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26016 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26017 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26019 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26023 esac
26025 # Mips and HP-UX need the GNU assembler.
26026 # Linux on IA64 might be able to use the Intel assembler.
26028 case "$target" in
26029 mips*-*-* | *-*-hpux* )
26030 if test x$gas_flag = xyes \
26031 || test x"$host" != x"$build" \
26032 || test ! -x "$gcc_cv_as" \
26033 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26035 else
26036 echo "*** This configuration requires the GNU assembler" >&2
26037 exit 1
26040 esac
26042 # ??? Not all targets support dwarf2 debug_line, even within a version
26043 # of gas. Moreover, we need to emit a valid instruction to trigger any
26044 # info to the output file. So, as supported targets are added to gas 2.11,
26045 # add some instruction here to (also) show we expect this might work.
26046 # ??? Once 2.11 is released, probably need to add first known working
26047 # version to the per-target configury.
26048 case "$cpu_type" in
26049 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26050 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
26051 insn="nop"
26053 ia64 | s390)
26054 insn="nop 0"
26056 mmix)
26057 insn="swym 0"
26059 esac
26060 if test x"$insn" != x; then
26061 conftest_s="\
26062 .file 1 \"conftest.s\"
26063 .loc 1 3 0
26064 $insn"
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26066 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26067 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26068 $as_echo_n "(cached) " >&6
26069 else
26070 gcc_cv_as_dwarf2_debug_line=no
26071 if test $in_tree_gas = yes; then
26072 if test $in_tree_gas_is_elf = yes \
26073 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26074 then gcc_cv_as_dwarf2_debug_line=yes
26076 elif test x$gcc_cv_as != x; then
26077 $as_echo "$conftest_s" > conftest.s
26078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26080 (eval $ac_try) 2>&5
26081 ac_status=$?
26082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26083 test $ac_status = 0; }; }
26084 then
26085 if test x$gcc_cv_objdump != x \
26086 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26087 | grep debug_line > /dev/null 2>&1; then
26088 gcc_cv_as_dwarf2_debug_line=yes
26090 else
26091 echo "configure: failed program was" >&5
26092 cat conftest.s >&5
26094 rm -f conftest.o conftest.s
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26098 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26101 # The .debug_line file table must be in the exact order that
26102 # we specified the files, since these indices are also used
26103 # by DW_AT_decl_file. Approximate this test by testing if
26104 # the assembler bitches if the same index is assigned twice.
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26106 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26107 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26108 $as_echo_n "(cached) " >&6
26109 else
26110 gcc_cv_as_dwarf2_file_buggy=no
26111 if test x$gcc_cv_as != x; then
26112 $as_echo ' .file 1 "foo.s"
26113 .file 1 "bar.s"' > conftest.s
26114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26116 (eval $ac_try) 2>&5
26117 ac_status=$?
26118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26119 test $ac_status = 0; }; }
26120 then
26121 gcc_cv_as_dwarf2_file_buggy=yes
26122 else
26123 echo "configure: failed program was" >&5
26124 cat conftest.s >&5
26126 rm -f conftest.o conftest.s
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26130 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26133 if test $gcc_cv_as_dwarf2_debug_line = yes \
26134 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26136 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26141 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26142 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26143 $as_echo_n "(cached) " >&6
26144 else
26145 gcc_cv_as_gdwarf2_flag=no
26146 if test $in_tree_gas = yes; then
26147 if test $in_tree_gas_is_elf = yes \
26148 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26149 then gcc_cv_as_gdwarf2_flag=yes
26151 elif test x$gcc_cv_as != x; then
26152 $as_echo "$insn" > conftest.s
26153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26155 (eval $ac_try) 2>&5
26156 ac_status=$?
26157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26158 test $ac_status = 0; }; }
26159 then
26160 gcc_cv_as_gdwarf2_flag=yes
26161 else
26162 echo "configure: failed program was" >&5
26163 cat conftest.s >&5
26165 rm -f conftest.o conftest.s
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26169 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26170 if test $gcc_cv_as_gdwarf2_flag = yes; then
26172 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26177 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26178 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26179 $as_echo_n "(cached) " >&6
26180 else
26181 gcc_cv_as_gstabs_flag=no
26182 if test $in_tree_gas = yes; then
26183 if test $in_tree_gas_is_elf = yes \
26184 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26185 then gcc_cv_as_gstabs_flag=yes
26187 elif test x$gcc_cv_as != x; then
26188 $as_echo "$insn" > conftest.s
26189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26191 (eval $ac_try) 2>&5
26192 ac_status=$?
26193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26194 test $ac_status = 0; }; }
26195 then
26196 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26197 # and warns about it, but still exits successfully. So check for
26198 # this.
26199 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26201 (eval $ac_try) 2>&5
26202 ac_status=$?
26203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26204 test $ac_status = 0; }; }
26205 then :
26206 else gcc_cv_as_gstabs_flag=yes
26208 else
26209 echo "configure: failed program was" >&5
26210 cat conftest.s >&5
26212 rm -f conftest.o conftest.s
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26216 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26217 if test $gcc_cv_as_gstabs_flag = yes; then
26219 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26224 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26225 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26226 $as_echo_n "(cached) " >&6
26227 else
26228 gcc_cv_as_debug_prefix_map_flag=no
26229 if test $in_tree_gas = yes; then
26230 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26231 then gcc_cv_as_debug_prefix_map_flag=yes
26233 elif test x$gcc_cv_as != x; then
26234 $as_echo "$insn" > conftest.s
26235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26237 (eval $ac_try) 2>&5
26238 ac_status=$?
26239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26240 test $ac_status = 0; }; }
26241 then
26242 gcc_cv_as_debug_prefix_map_flag=yes
26243 else
26244 echo "configure: failed program was" >&5
26245 cat conftest.s >&5
26247 rm -f conftest.o conftest.s
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26251 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26252 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26254 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26260 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26261 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26262 $as_echo_n "(cached) " >&6
26263 else
26264 gcc_cv_as_lcomm_with_alignment=no
26265 if test x$gcc_cv_as != x; then
26266 $as_echo '.lcomm bar,4,16' > conftest.s
26267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26269 (eval $ac_try) 2>&5
26270 ac_status=$?
26271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26272 test $ac_status = 0; }; }
26273 then
26274 gcc_cv_as_lcomm_with_alignment=yes
26275 else
26276 echo "configure: failed program was" >&5
26277 cat conftest.s >&5
26279 rm -f conftest.o conftest.s
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26283 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26284 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26286 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26290 # Check whether --enable-gnu-unique-object was given.
26291 if test "${enable_gnu_unique_object+set}" = set; then :
26292 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26293 yes | no) ;;
26294 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26295 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26296 esac
26297 else
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26299 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26300 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26301 $as_echo_n "(cached) " >&6
26302 else
26303 gcc_cv_as_gnu_unique_object=no
26304 if test $in_tree_gas = yes; then
26305 if test $in_tree_gas_is_elf = yes \
26306 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26307 then gcc_cv_as_gnu_unique_object=yes
26309 elif test x$gcc_cv_as != x; then
26310 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26311 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26313 (eval $ac_try) 2>&5
26314 ac_status=$?
26315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26316 test $ac_status = 0; }; }
26317 then
26318 gcc_cv_as_gnu_unique_object=yes
26319 else
26320 echo "configure: failed program was" >&5
26321 cat conftest.s >&5
26323 rm -f conftest.o conftest.s
26326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26327 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26328 if test $gcc_cv_as_gnu_unique_object = yes; then
26329 # We need to unquote above to to use the definition from config.gcc.
26330 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26331 if test x$host = x$build -a x$host = x$target &&
26332 ldd --version 2>/dev/null &&
26333 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26334 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26335 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26336 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26337 if test "$glibcnum" -ge 2011 ; then
26338 enable_gnu_unique_object=yes
26344 if test x$enable_gnu_unique_object = xyes; then
26346 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26351 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26352 if test "${gcc_cv_as_line_zero+set}" = set; then :
26353 $as_echo_n "(cached) " >&6
26354 else
26355 gcc_cv_as_line_zero=no
26356 if test $in_tree_gas = yes; then
26357 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26358 then gcc_cv_as_line_zero=yes
26360 elif test "x$gcc_cv_as" != x; then
26361 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26362 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26364 (eval $ac_try) 2>&5
26365 ac_status=$?
26366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26367 test $ac_status = 0; }; } &&
26368 test "x`cat conftest.out`" = x
26369 then
26370 gcc_cv_as_line_zero=yes
26371 else
26372 echo "configure: failed program was" >&5
26373 cat conftest.s >&5
26374 echo "configure: error output was" >&5
26375 cat conftest.out >&5
26377 rm -f conftest.o conftest.s conftest.out
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26381 $as_echo "$gcc_cv_as_line_zero" >&6; }
26382 if test "x$gcc_cv_as_line_zero" = xyes; then
26384 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26389 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26390 gcc_cv_ld_eh_frame_hdr=no
26391 if test $in_tree_ld = yes ; then
26392 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 \
26393 && test $in_tree_ld_is_elf = yes; then
26394 gcc_cv_ld_eh_frame_hdr=yes
26396 elif test x$gcc_cv_ld != x; then
26397 if echo "$ld_ver" | grep GNU > /dev/null; then
26398 # Check if linker supports --eh-frame-hdr option
26399 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26400 gcc_cv_ld_eh_frame_hdr=yes
26402 else
26403 case "$target" in
26404 *-*-solaris2*)
26405 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26406 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26407 gcc_cv_ld_eh_frame_hdr=yes
26410 esac
26414 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26416 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26420 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26423 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26424 gcc_cv_ld_eh_frame_ciev3=no
26425 if test $in_tree_ld = yes ; then
26426 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 \
26427 && test $in_tree_ld_is_elf = yes; then
26428 gcc_cv_ld_eh_frame_ciev3=yes
26430 elif test x$gcc_cv_ld != x; then
26431 if echo "$ld_ver" | grep GNU > /dev/null; then
26432 gcc_cv_ld_eh_frame_ciev3=yes
26433 if test 0"$ld_date" -lt 20040513; then
26434 if test -n "$ld_date"; then
26435 # If there was date string, but was earlier than 2004-05-13, fail
26436 gcc_cv_ld_eh_frame_ciev3=no
26437 elif test "$ld_vers_major" -lt 2; then
26438 gcc_cv_ld_eh_frame_ciev3=no
26439 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26440 gcc_cv_ld_eh_frame_ciev3=no
26443 else
26444 case "$target" in
26445 *-*-solaris2*)
26446 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26447 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26448 gcc_cv_ld_eh_frame_ciev3=yes
26451 esac
26455 cat >>confdefs.h <<_ACEOF
26456 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26457 _ACEOF
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26460 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26463 $as_echo_n "checking linker position independent executable support... " >&6; }
26464 gcc_cv_ld_pie=no
26465 if test $in_tree_ld = yes ; then
26466 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 \
26467 && test $in_tree_ld_is_elf = yes; then
26468 gcc_cv_ld_pie=yes
26470 elif test x$gcc_cv_ld != x; then
26471 # Check if linker supports -pie option
26472 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26473 gcc_cv_ld_pie=yes
26476 if test x"$gcc_cv_ld_pie" = xyes; then
26478 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26482 $as_echo "$gcc_cv_ld_pie" >&6; }
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26485 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26486 gcc_cv_ld_eh_gc_sections=no
26487 if test $in_tree_ld = yes ; then
26488 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 \
26489 && test $in_tree_ld_is_elf = yes; then
26490 gcc_cv_ld_eh_gc_sections=yes
26492 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26493 cat > conftest.s <<EOF
26494 .section .text
26495 .globl _start
26496 .type _start, @function
26497 _start:
26498 .long foo
26499 .size _start, .-_start
26500 .section .text.foo,"ax",@progbits
26501 .type foo, @function
26502 foo:
26503 .long 0
26504 .size foo, .-foo
26505 .section .gcc_except_table.foo,"a",@progbits
26506 .L0:
26507 .long 0
26508 .section .eh_frame,"a",@progbits
26509 .long .L0
26511 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26512 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26513 | grep "gc-sections option ignored" > /dev/null; then
26514 gcc_cv_ld_eh_gc_sections=no
26515 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26516 | grep gcc_except_table > /dev/null; then
26517 gcc_cv_ld_eh_gc_sections=yes
26518 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26519 if test x$gcc_cv_as_comdat_group != xyes; then
26520 gcc_cv_ld_eh_gc_sections=no
26521 cat > conftest.s <<EOF
26522 .section .text
26523 .globl _start
26524 .type _start, @function
26525 _start:
26526 .long foo
26527 .size _start, .-_start
26528 .section .gnu.linkonce.t.foo,"ax",@progbits
26529 .type foo, @function
26530 foo:
26531 .long 0
26532 .size foo, .-foo
26533 .section .gcc_except_table.foo,"a",@progbits
26534 .L0:
26535 .long 0
26536 .section .eh_frame,"a",@progbits
26537 .long .L0
26539 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26540 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26541 | grep "gc-sections option ignored" > /dev/null; then
26542 gcc_cv_ld_eh_gc_sections=no
26543 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26544 | grep gcc_except_table > /dev/null; then
26545 gcc_cv_ld_eh_gc_sections=yes
26551 rm -f conftest.s conftest.o conftest
26553 case "$target" in
26554 hppa*-*-linux*)
26555 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26556 gcc_cv_ld_eh_gc_sections=no
26558 esac
26559 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26561 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26565 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26568 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26569 gcc_cv_ld_eh_gc_sections_bug=no
26570 if test $in_tree_ld = yes ; then
26571 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26572 && test $in_tree_ld_is_elf = yes; then
26573 gcc_cv_ld_eh_gc_sections_bug=yes
26575 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
26576 gcc_cv_ld_eh_gc_sections_bug=yes
26577 cat > conftest.s <<EOF
26578 .section .text
26579 .globl _start
26580 .type _start, @function
26581 _start:
26582 .long foo
26583 .size _start, .-_start
26584 .section .text.startup.foo,"ax",@progbits
26585 .type foo, @function
26586 foo:
26587 .long 0
26588 .size foo, .-foo
26589 .section .gcc_except_table.foo,"a",@progbits
26590 .L0:
26591 .long 0
26592 .section .eh_frame,"a",@progbits
26593 .long .L0
26595 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26596 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26597 | grep "gc-sections option ignored" > /dev/null; then
26599 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26600 | grep gcc_except_table > /dev/null; then
26601 gcc_cv_ld_eh_gc_sections_bug=no
26604 rm -f conftest.s conftest.o conftest
26606 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26608 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26612 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26614 # --------
26615 # UNSORTED
26616 # --------
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26619 $as_echo_n "checking linker --as-needed support... " >&6; }
26620 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26621 $as_echo_n "(cached) " >&6
26622 else
26623 gcc_cv_ld_as_needed=no
26624 gcc_cv_ld_as_needed_option='--as-needed'
26625 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26626 if test $in_tree_ld = yes ; then
26627 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 \
26628 && test $in_tree_ld_is_elf = yes; then
26629 gcc_cv_ld_as_needed=yes
26631 elif test x$gcc_cv_ld != x; then
26632 # Check if linker supports --as-needed and --no-as-needed options
26633 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26634 gcc_cv_ld_as_needed=yes
26635 else
26636 case "$target" in
26637 # Solaris 2 ld always supports -z ignore/-z record.
26638 *-*-solaris2*)
26639 gcc_cv_ld_as_needed=yes
26640 gcc_cv_ld_as_needed_option="-z ignore"
26641 gcc_cv_ld_no_as_needed_option="-z record"
26643 esac
26646 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26647 # dl_iterate_phdr, i.e. since Solaris 11.
26648 case "$target" in
26649 *-*-solaris2.1[1-9]*)
26650 case "$target" in
26651 i?86-*-* | x86_64-*-*)
26652 if echo "$ld_ver" | grep GNU > /dev/null; then
26653 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26654 gcc_cv_ld_as_needed=no
26657 esac
26659 *-*-solaris2*)
26660 gcc_cv_ld_as_needed=no
26662 esac
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26666 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26667 if test x"$gcc_cv_ld_as_needed" = xyes; then
26669 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26672 cat >>confdefs.h <<_ACEOF
26673 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26674 _ACEOF
26677 cat >>confdefs.h <<_ACEOF
26678 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26679 _ACEOF
26683 case "$target:$tm_file" in
26684 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26685 case "$target" in
26686 *le-*-linux*)
26687 emul_name="-melf64lppc"
26689 *-*-linux*)
26690 emul_name="-melf64ppc"
26692 *-*-freebsd*)
26693 emul_name="-melf64ppc_fbsd"
26695 esac
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26697 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26698 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26699 $as_echo_n "(cached) " >&6
26700 else
26701 gcc_cv_ld_no_dot_syms=no
26702 if test x"$ld_is_gold" = xyes; then
26703 gcc_cv_ld_no_dot_syms=yes
26704 elif test $in_tree_ld = yes ; then
26705 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
26706 gcc_cv_ld_no_dot_syms=yes
26708 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26709 cat > conftest1.s <<EOF
26710 .text
26711 bl .foo
26713 cat > conftest2.s <<EOF
26714 .section ".opd","aw"
26715 .align 3
26716 .globl foo
26717 .type foo,@function
26718 foo:
26719 .quad .LEfoo,.TOC.@tocbase,0
26720 .text
26721 .LEfoo:
26723 .size foo,.-.LEfoo
26725 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26726 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26727 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26728 gcc_cv_ld_no_dot_syms=yes
26730 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26735 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26736 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26738 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26743 $as_echo_n "checking linker large toc support... " >&6; }
26744 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26745 $as_echo_n "(cached) " >&6
26746 else
26747 gcc_cv_ld_large_toc=no
26748 if test x"$ld_is_gold" = xyes; then
26749 gcc_cv_ld_large_toc=yes
26750 elif test $in_tree_ld = yes ; then
26751 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
26752 gcc_cv_ld_large_toc=yes
26754 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26755 cat > conftest.s <<EOF
26756 .section ".tbss","awT",@nobits
26757 .align 3
26758 ie0: .space 8
26759 .global _start
26760 .text
26761 _start:
26762 addis 9,13,ie0@got@tprel@ha
26763 ld 9,ie0@got@tprel@l(9)
26765 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26766 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26767 gcc_cv_ld_large_toc=yes
26769 rm -f conftest conftest.o conftest.s
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26774 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26775 if test x"$gcc_cv_ld_large_toc" = xyes; then
26777 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26781 esac
26783 case "$target" in
26784 *-*-aix*)
26785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26786 $as_echo_n "checking linker large toc support... " >&6; }
26787 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26788 $as_echo_n "(cached) " >&6
26789 else
26790 gcc_cv_ld_large_toc=no
26791 if test x$gcc_cv_as != x ; then
26792 cat > conftest.s <<EOF
26793 .toc
26794 LC..1:
26795 .tc a[TC],a[RW]
26796 .extern a[RW]
26797 .csect .text[PR]
26798 .largetoctest:
26799 addis 9,LC..1@u(2)
26800 ld 3,LC..1@l(9)
26802 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26803 gcc_cv_ld_large_toc=yes
26805 rm -f conftest conftest.o conftest.s
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26810 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26811 if test x"$gcc_cv_ld_large_toc" = xyes; then
26813 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26817 esac
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26820 $as_echo_n "checking linker --build-id support... " >&6; }
26821 if test "${gcc_cv_ld_buildid+set}" = set; then :
26822 $as_echo_n "(cached) " >&6
26823 else
26824 gcc_cv_ld_buildid=no
26825 if test $in_tree_ld = yes ; then
26826 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26827 "$gcc_cv_gld_minor_version" -ge 18 -o \
26828 "$gcc_cv_gld_major_version" -gt 2 \
26829 && test $in_tree_ld_is_elf = yes; then
26830 gcc_cv_ld_buildid=yes
26832 elif test x$gcc_cv_ld != x; then
26833 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26834 gcc_cv_ld_buildid=yes
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26839 $as_echo "$gcc_cv_ld_buildid" >&6; }
26840 if test x"$gcc_cv_ld_buildid" = xyes; then
26842 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26846 # Check whether --enable-linker-build-id was given.
26847 if test "${enable_linker_build_id+set}" = set; then :
26848 enableval=$enable_linker_build_id;
26849 else
26850 enable_linker_build_id=no
26854 if test x"$enable_linker_build_id" = xyes; then
26855 if test x"$gcc_cv_ld_buildid" = xyes; then
26857 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26859 else
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26861 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26865 # In binutils 2.21, GNU ld gained support for new emulations fully
26866 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26868 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26869 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26870 $as_echo_n "(cached) " >&6
26871 else
26872 gcc_cv_ld_sol2_emulation=no
26873 if test $in_tree_ld = yes ; then
26874 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26875 "$gcc_cv_gld_minor_version" -ge 21 -o \
26876 "$gcc_cv_gld_major_version" -gt 2 \
26877 && test $in_tree_ld_is_elf = yes; then
26878 gcc_cv_ld_sol2_emulation=yes
26880 elif test x$gcc_cv_ld != x; then
26881 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26882 grep _sol2 > /dev/null; then
26883 gcc_cv_ld_sol2_emulation=yes
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26888 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26889 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26891 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26896 $as_echo_n "checking linker --sysroot support... " >&6; }
26897 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26898 $as_echo_n "(cached) " >&6
26899 else
26900 gcc_cv_ld_sysroot=no
26901 if test $in_tree_ld = yes ; then
26902 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
26903 gcc_cv_ld_sysroot=yes
26905 elif test x$gcc_cv_ld != x; then
26906 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26907 gcc_cv_ld_sysroot=yes
26911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26912 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26913 if test x"$gcc_cv_ld_sysroot" = xyes; then
26915 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26919 if test x$with_sysroot = x && test x$host = x$target \
26920 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26921 && test "$prefix" != "NONE"; then
26923 cat >>confdefs.h <<_ACEOF
26924 #define PREFIX_INCLUDE_DIR "$prefix/include"
26925 _ACEOF
26929 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26930 if test "x$with_headers" != x; then
26931 target_header_dir=$with_headers
26932 elif test "x$with_sysroot" = x; then
26933 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26934 elif test "x$with_build_sysroot" != "x"; then
26935 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26936 elif test "x$with_sysroot" = xyes; then
26937 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26938 else
26939 target_header_dir="${with_sysroot}${native_system_header_dir}"
26941 else
26942 target_header_dir=${native_system_header_dir}
26945 # Test for stack protector support in target C library.
26946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26947 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26948 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26949 $as_echo_n "(cached) " >&6
26950 else
26951 gcc_cv_libc_provides_ssp=no
26952 case "$target" in
26953 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26954 # glibc 2.4 and later provides __stack_chk_fail and
26955 # either __stack_chk_guard, or TLS access to stack guard canary.
26956 if test -f $target_header_dir/features.h \
26957 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26958 $target_header_dir/features.h > /dev/null; then
26959 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26960 $target_header_dir/features.h > /dev/null; then
26961 gcc_cv_libc_provides_ssp=yes
26962 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26963 $target_header_dir/features.h > /dev/null \
26964 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26965 $target_header_dir/features.h > /dev/null; then
26966 gcc_cv_libc_provides_ssp=yes
26967 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26968 $target_header_dir/features.h > /dev/null && \
26969 test -f $target_header_dir/bits/uClibc_config.h && \
26970 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26971 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26972 gcc_cv_libc_provides_ssp=yes
26974 # all versions of Bionic support stack protector
26975 elif test -f $target_header_dir/sys/cdefs.h \
26976 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26977 $target_header_dir/sys/cdefs.h > /dev/null; then
26978 gcc_cv_libc_provides_ssp=yes
26981 *-*-gnu*)
26982 # Avoid complicated tests (see
26983 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26984 # simply assert that glibc does provide this, which is true for all
26985 # realistically usable GNU/Hurd configurations.
26986 gcc_cv_libc_provides_ssp=yes;;
26987 *-*-darwin* | *-*-freebsd*)
26988 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26989 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26990 gcc_cv_libc_provides_ssp=yes
26991 else
26992 echo "no __stack_chk_fail on this target"
26996 *) gcc_cv_libc_provides_ssp=no ;;
26997 esac
26999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27000 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27002 if test x$gcc_cv_libc_provides_ssp = xyes; then
27004 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27008 # Test for <sys/sdt.h> on the target.
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27011 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27012 have_sys_sdt_h=no
27013 if test -f $target_header_dir/sys/sdt.h; then
27014 have_sys_sdt_h=yes
27016 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27020 $as_echo "$have_sys_sdt_h" >&6; }
27022 # Check if TFmode long double should be used by default or not.
27023 # Some glibc targets used DFmode long double, but with glibc 2.4
27024 # and later they can use TFmode.
27025 case "$target" in
27026 powerpc*-*-linux* | \
27027 sparc*-*-linux* | \
27028 s390*-*-linux* | \
27029 alpha*-*-linux*)
27031 # Check whether --with-long-double-128 was given.
27032 if test "${with_long_double_128+set}" = set; then :
27033 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27034 else
27035 gcc_cv_target_ldbl128=no
27036 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27037 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27038 && gcc_cv_target_ldbl128=yes
27043 esac
27044 if test x$gcc_cv_target_ldbl128 = xyes; then
27046 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27051 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27052 gcc_cv_target_dl_iterate_phdr=unknown
27053 case "$target" in
27054 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27055 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27056 # libdl there, both complicating its use and breaking compatibility
27057 # between Solaris 10 updates.
27058 *-*-solaris2.1[1-9]*)
27059 # <link.h> needs both a dl_iterate_phdr declaration and support for
27060 # compilation with largefile support.
27061 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27062 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27063 gcc_cv_target_dl_iterate_phdr=yes
27064 else
27065 gcc_cv_target_dl_iterate_phdr=no
27068 esac
27070 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27072 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27076 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27078 # We no longer support different GC mechanisms. Emit an error if
27079 # the user configures with --with-gc.
27081 # Check whether --with-gc was given.
27082 if test "${with_gc+set}" = set; then :
27083 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27087 # Libraries to use on the host. This will normally be set by the top
27088 # level Makefile. Here we simply capture the value for our Makefile.
27089 if test -z "${HOST_LIBS+set}"; then
27090 HOST_LIBS=
27094 # Use the system's zlib library.
27095 zlibdir=-L../zlib
27096 zlibinc="-I\$(srcdir)/../zlib"
27098 # Check whether --with-system-zlib was given.
27099 if test "${with_system_zlib+set}" = set; then :
27100 withval=$with_system_zlib; zlibdir=
27101 zlibinc=
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27110 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27111 # Check whether --enable-maintainer-mode was given.
27112 if test "${enable_maintainer_mode+set}" = set; then :
27113 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27114 else
27115 maintainer_mode=no
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27120 $as_echo "$maintainer_mode" >&6; }
27122 if test "$maintainer_mode" = "yes"; then
27123 MAINT=''
27124 else
27125 MAINT='#'
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27130 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27131 # Check whether --enable-link-mutex was given.
27132 if test "${enable_link_mutex+set}" = set; then :
27133 enableval=$enable_link_mutex; do_link_mutex=$enableval
27134 else
27135 do_link_mutex=no
27138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27139 $as_echo "$do_link_mutex" >&6; }
27141 if test "$do_link_mutex" = "yes"; then
27142 DO_LINK_MUTEX=true
27143 else
27144 DO_LINK_MUTEX=false
27148 # --------------
27149 # Language hooks
27150 # --------------
27152 # Make empty files to contain the specs and options for each language.
27153 # Then add #include lines to for a compiler that has specs and/or options.
27155 subdirs=
27156 lang_opt_files=
27157 lang_specs_files=
27158 lang_tree_files=
27159 # These (without "all_") are set in each config-lang.in.
27160 # `language' must be a single word so is spelled singularly.
27161 all_languages=
27162 all_compilers=
27163 all_outputs='Makefile'
27164 # List of language makefile fragments.
27165 all_lang_makefrags=
27166 # Additional files for gengtype
27167 all_gtfiles="$target_gtfiles"
27169 # These are the languages that are set in --enable-languages,
27170 # and are available in the GCC tree.
27171 all_selected_languages=
27173 # Add the language fragments.
27174 # Languages are added via two mechanisms. Some information must be
27175 # recorded in makefile variables, these are defined in config-lang.in.
27176 # We accumulate them and plug them into the main Makefile.
27177 # The other mechanism is a set of hooks for each of the main targets
27178 # like `clean', `install', etc.
27180 language_hooks="Make-hooks"
27182 for lang in ${srcdir}/*/config-lang.in
27184 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27186 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27187 if test "x$lang_alias" = x
27188 then
27189 echo "$lang doesn't set \$language." 1>&2
27190 exit 1
27192 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27193 subdirs="$subdirs $subdir"
27195 # $gcc_subdir is where the gcc integration files are to be found
27196 # for a language, both for internal compiler purposes (compiler
27197 # sources implementing front-end to GCC tree converters), and for
27198 # build infrastructure purposes (Make-lang.in, etc.)
27200 # This will be <subdir> (relative to $srcdir) if a line like
27201 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27202 # is found in <langdir>/config-lang.in, and will remain <langdir>
27203 # otherwise.
27205 # Except for the language alias (fetched above), the regular
27206 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27207 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27208 # only this and the language alias.
27210 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27211 if [ "$gcc_subdir" = "" ]; then
27212 gcc_subdir="$subdir"
27215 case ",$enable_languages," in
27216 *,$lang_alias,*)
27217 all_selected_languages="$all_selected_languages $lang_alias"
27218 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27219 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27222 esac
27224 language=
27225 boot_language=
27226 compilers=
27227 outputs=
27228 gtfiles=
27229 subdir_requires=
27230 . ${srcdir}/$gcc_subdir/config-lang.in
27231 if test "x$language" = x
27232 then
27233 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27234 exit 1
27237 ok=:
27238 case ",$enable_languages," in
27239 *,$lang_alias,*) ;;
27241 for i in $subdir_requires; do
27242 test -f "${srcdir}/$i/config-lang.in" && continue
27243 ok=false
27244 break
27245 done
27247 esac
27248 $ok || continue
27250 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27251 if test -f $srcdir/$gcc_subdir/lang.opt; then
27252 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27253 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27255 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27256 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27258 all_languages="$all_languages $language"
27259 all_compilers="$all_compilers $compilers"
27260 all_outputs="$all_outputs $outputs"
27261 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27262 case ",$enable_languages," in
27263 *,lto,*)
27265 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27267 enable_lto=yes
27270 *) ;;
27271 esac
27272 done
27274 check_languages=
27275 for language in $all_selected_languages
27277 check_languages="$check_languages check-$language"
27278 done
27280 # We link each language in with a set of hooks, reached indirectly via
27281 # lang.${target}. Only do so for selected languages.
27283 rm -f Make-hooks
27284 touch Make-hooks
27285 target_list="all.cross start.encap rest.encap tags \
27286 install-common install-man install-info install-pdf install-html dvi \
27287 pdf html uninstall info man srcextra srcman srcinfo \
27288 mostlyclean clean distclean maintainer-clean install-plugin"
27290 for t in $target_list
27293 for lang in $all_selected_languages
27295 x="$x $lang.$t"
27296 done
27297 echo "lang.$t: $x" >> Make-hooks
27298 done
27300 # --------
27301 # Option include files
27302 # --------
27304 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27305 option_includes="option-includes.mk"
27308 # --------
27309 # UNSORTED
27310 # --------
27312 # Create .gdbinit.
27314 echo "dir ." > .gdbinit
27315 echo "dir ${srcdir}" >> .gdbinit
27316 if test x$gdb_needs_out_file_path = xyes
27317 then
27318 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27320 if test "x$subdirs" != x; then
27321 for s in $subdirs
27323 echo "dir ${srcdir}/$s" >> .gdbinit
27324 done
27326 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27328 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27332 # Find a directory in which to install a shared libgcc.
27334 # Check whether --enable-version-specific-runtime-libs was given.
27335 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27336 enableval=$enable_version_specific_runtime_libs;
27340 # Substitute configuration variables
27403 # Echo link setup.
27404 if test x${build} = x${host} ; then
27405 if test x${host} = x${target} ; then
27406 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27407 else
27408 echo "Links are now set up to build a cross-compiler" 1>&2
27409 echo " from ${host} to ${target}." 1>&2
27411 else
27412 if test x${host} = x${target} ; then
27413 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27414 echo " for ${target}." 1>&2
27415 else
27416 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27417 echo " from ${host} to ${target}." 1>&2
27429 if test "x${CLOOGLIBS}" != "x" ; then
27431 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27435 # Check for plugin support
27436 # Check whether --enable-plugin was given.
27437 if test "${enable_plugin+set}" = set; then :
27438 enableval=$enable_plugin; enable_plugin=$enableval
27439 else
27440 enable_plugin=yes; default_plugin=yes
27444 pluginlibs=
27446 case "${host}" in
27447 *-*-darwin*)
27448 if test x$build = x$host; then
27449 export_sym_check="nm${exeext} -g"
27450 elif test x$host = x$target; then
27451 export_sym_check="$gcc_cv_nm -g"
27452 else
27453 export_sym_check=
27457 if test x$build = x$host; then
27458 export_sym_check="objdump${exeext} -T"
27459 elif test x$host = x$target; then
27460 export_sym_check="$gcc_cv_objdump -T"
27461 else
27462 export_sym_check=
27465 esac
27467 if test x"$enable_plugin" = x"yes"; then
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27470 $as_echo_n "checking for exported symbols... " >&6; }
27471 if test "x$export_sym_check" != x; then
27472 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27473 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27474 if $export_sym_check conftest | grep foobar > /dev/null; then
27475 : # No need to use a flag
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27477 $as_echo "yes" >&6; }
27478 else
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27480 $as_echo "yes" >&6; }
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27482 $as_echo_n "checking for -rdynamic... " >&6; }
27483 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27484 if $export_sym_check conftest | grep foobar > /dev/null; then
27485 plugin_rdynamic=yes
27486 pluginlibs="-rdynamic"
27487 else
27488 plugin_rdynamic=no
27489 enable_plugin=no
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27492 $as_echo "$plugin_rdynamic" >&6; }
27494 else
27495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27496 $as_echo "unable to check" >&6; }
27499 # Check -ldl
27500 saved_LIBS="$LIBS"
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27502 $as_echo_n "checking for library containing dlopen... " >&6; }
27503 if test "${ac_cv_search_dlopen+set}" = set; then :
27504 $as_echo_n "(cached) " >&6
27505 else
27506 ac_func_search_save_LIBS=$LIBS
27507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27508 /* end confdefs.h. */
27510 /* Override any GCC internal prototype to avoid an error.
27511 Use char because int might match the return type of a GCC
27512 builtin and then its argument prototype would still apply. */
27513 #ifdef __cplusplus
27514 extern "C"
27515 #endif
27516 char dlopen ();
27518 main ()
27520 return dlopen ();
27522 return 0;
27524 _ACEOF
27525 for ac_lib in '' dl; do
27526 if test -z "$ac_lib"; then
27527 ac_res="none required"
27528 else
27529 ac_res=-l$ac_lib
27530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27532 if ac_fn_c_try_link "$LINENO"; then :
27533 ac_cv_search_dlopen=$ac_res
27535 rm -f core conftest.err conftest.$ac_objext \
27536 conftest$ac_exeext
27537 if test "${ac_cv_search_dlopen+set}" = set; then :
27538 break
27540 done
27541 if test "${ac_cv_search_dlopen+set}" = set; then :
27543 else
27544 ac_cv_search_dlopen=no
27546 rm conftest.$ac_ext
27547 LIBS=$ac_func_search_save_LIBS
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27550 $as_echo "$ac_cv_search_dlopen" >&6; }
27551 ac_res=$ac_cv_search_dlopen
27552 if test "$ac_res" != no; then :
27553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27557 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27558 pluginlibs="$pluginlibs -ldl"
27560 LIBS="$saved_LIBS"
27562 # Check that we can build shared objects with -fPIC -shared
27563 saved_LDFLAGS="$LDFLAGS"
27564 saved_CFLAGS="$CFLAGS"
27565 case "${host}" in
27566 *-*-darwin*)
27567 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27568 CFLAGS="$CFLAGS -fPIC"
27569 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27572 CFLAGS="$CFLAGS -fPIC"
27573 LDFLAGS="$LDFLAGS -fPIC -shared"
27575 esac
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27577 $as_echo_n "checking for -fPIC -shared... " >&6; }
27578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27579 /* end confdefs.h. */
27580 extern int X;
27582 main ()
27584 return X == 0;
27586 return 0;
27588 _ACEOF
27589 if ac_fn_c_try_link "$LINENO"; then :
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27591 $as_echo "yes" >&6; }; have_pic_shared=yes
27592 else
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27594 $as_echo "no" >&6; }; have_pic_shared=no
27596 rm -f core conftest.err conftest.$ac_objext \
27597 conftest$ac_exeext conftest.$ac_ext
27598 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27599 pluginlibs=
27600 enable_plugin=no
27602 LDFLAGS="$saved_LDFLAGS"
27603 CFLAGS="$saved_CFLAGS"
27605 # If plugin support had been requested but not available, fail.
27606 if test x"$enable_plugin" = x"no" ; then
27607 if test x"$default_plugin" != x"yes"; then
27608 as_fn_error "
27609 Building GCC with plugin support requires a host that supports
27610 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27617 if test x"$enable_plugin" = x"yes"; then
27619 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27624 # Check whether --enable-libquadmath-support was given.
27625 if test "${enable_libquadmath_support+set}" = set; then :
27626 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27627 else
27628 ENABLE_LIBQUADMATH_SUPPORT=yes
27631 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27633 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27638 # Specify what hash style to use by default.
27640 # Check whether --with-linker-hash-style was given.
27641 if test "${with_linker_hash_style+set}" = set; then :
27642 withval=$with_linker_hash_style; case x"$withval" in
27643 xsysv)
27644 LINKER_HASH_STYLE=sysv
27646 xgnu)
27647 LINKER_HASH_STYLE=gnu
27649 xboth)
27650 LINKER_HASH_STYLE=both
27653 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27655 esac
27656 else
27657 LINKER_HASH_STYLE=''
27660 if test x"${LINKER_HASH_STYLE}" != x; then
27662 cat >>confdefs.h <<_ACEOF
27663 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27664 _ACEOF
27668 # Configure the subdirectories
27669 # AC_CONFIG_SUBDIRS($subdirs)
27671 # Create the Makefile
27672 # and configure language subdirectories
27673 ac_config_files="$ac_config_files $all_outputs"
27676 ac_config_commands="$ac_config_commands default"
27678 cat >confcache <<\_ACEOF
27679 # This file is a shell script that caches the results of configure
27680 # tests run on this system so they can be shared between configure
27681 # scripts and configure runs, see configure's option --config-cache.
27682 # It is not useful on other systems. If it contains results you don't
27683 # want to keep, you may remove or edit it.
27685 # config.status only pays attention to the cache file if you give it
27686 # the --recheck option to rerun configure.
27688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27690 # following values.
27692 _ACEOF
27694 # The following way of writing the cache mishandles newlines in values,
27695 # but we know of no workaround that is simple, portable, and efficient.
27696 # So, we kill variables containing newlines.
27697 # Ultrix sh set writes to stderr and can't be redirected directly,
27698 # and sets the high bit in the cache file unless we assign to the vars.
27700 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27701 eval ac_val=\$$ac_var
27702 case $ac_val in #(
27703 *${as_nl}*)
27704 case $ac_var in #(
27705 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27706 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27707 esac
27708 case $ac_var in #(
27709 _ | IFS | as_nl) ;; #(
27710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27711 *) { eval $ac_var=; unset $ac_var;} ;;
27712 esac ;;
27713 esac
27714 done
27716 (set) 2>&1 |
27717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27718 *${as_nl}ac_space=\ *)
27719 # `set' does not quote correctly, so add quotes: double-quote
27720 # substitution turns \\\\ into \\, and sed turns \\ into \.
27721 sed -n \
27722 "s/'/'\\\\''/g;
27723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27724 ;; #(
27726 # `set' quotes correctly as required by POSIX, so do not add quotes.
27727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27729 esac |
27730 sort
27732 sed '
27733 /^ac_cv_env_/b end
27734 t clear
27735 :clear
27736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27737 t end
27738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27739 :end' >>confcache
27740 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27741 if test -w "$cache_file"; then
27742 test "x$cache_file" != "x/dev/null" &&
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27744 $as_echo "$as_me: updating cache $cache_file" >&6;}
27745 cat confcache >$cache_file
27746 else
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27748 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27751 rm -f confcache
27753 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27754 # Let make expand exec_prefix.
27755 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27757 DEFS=-DHAVE_CONFIG_H
27759 ac_libobjs=
27760 ac_ltlibobjs=
27761 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27762 # 1. Remove the extension, and $U if already installed.
27763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27764 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27766 # will be set to the directory where LIBOBJS objects are built.
27767 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27768 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27769 done
27770 LIBOBJS=$ac_libobjs
27772 LTLIBOBJS=$ac_ltlibobjs
27777 : ${CONFIG_STATUS=./config.status}
27778 ac_write_fail=0
27779 ac_clean_files_save=$ac_clean_files
27780 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27782 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27783 as_write_fail=0
27784 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27785 #! $SHELL
27786 # Generated by $as_me.
27787 # Run this file to recreate the current configuration.
27788 # Compiler output produced by configure, useful for debugging
27789 # configure, is in config.log if it exists.
27791 debug=false
27792 ac_cs_recheck=false
27793 ac_cs_silent=false
27795 SHELL=\${CONFIG_SHELL-$SHELL}
27796 export SHELL
27797 _ASEOF
27798 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27799 ## -------------------- ##
27800 ## M4sh Initialization. ##
27801 ## -------------------- ##
27803 # Be more Bourne compatible
27804 DUALCASE=1; export DUALCASE # for MKS sh
27805 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27806 emulate sh
27807 NULLCMD=:
27808 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27809 # is contrary to our usage. Disable this feature.
27810 alias -g '${1+"$@"}'='"$@"'
27811 setopt NO_GLOB_SUBST
27812 else
27813 case `(set -o) 2>/dev/null` in #(
27814 *posix*) :
27815 set -o posix ;; #(
27816 *) :
27818 esac
27822 as_nl='
27824 export as_nl
27825 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27826 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27827 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27828 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27829 # Prefer a ksh shell builtin over an external printf program on Solaris,
27830 # but without wasting forks for bash or zsh.
27831 if test -z "$BASH_VERSION$ZSH_VERSION" \
27832 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27833 as_echo='print -r --'
27834 as_echo_n='print -rn --'
27835 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27836 as_echo='printf %s\n'
27837 as_echo_n='printf %s'
27838 else
27839 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27840 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27841 as_echo_n='/usr/ucb/echo -n'
27842 else
27843 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27844 as_echo_n_body='eval
27845 arg=$1;
27846 case $arg in #(
27847 *"$as_nl"*)
27848 expr "X$arg" : "X\\(.*\\)$as_nl";
27849 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27850 esac;
27851 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27853 export as_echo_n_body
27854 as_echo_n='sh -c $as_echo_n_body as_echo'
27856 export as_echo_body
27857 as_echo='sh -c $as_echo_body as_echo'
27860 # The user is always right.
27861 if test "${PATH_SEPARATOR+set}" != set; then
27862 PATH_SEPARATOR=:
27863 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27864 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27865 PATH_SEPARATOR=';'
27870 # IFS
27871 # We need space, tab and new line, in precisely that order. Quoting is
27872 # there to prevent editors from complaining about space-tab.
27873 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27874 # splitting by setting IFS to empty value.)
27875 IFS=" "" $as_nl"
27877 # Find who we are. Look in the path if we contain no directory separator.
27878 case $0 in #((
27879 *[\\/]* ) as_myself=$0 ;;
27880 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27881 for as_dir in $PATH
27883 IFS=$as_save_IFS
27884 test -z "$as_dir" && as_dir=.
27885 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27886 done
27887 IFS=$as_save_IFS
27890 esac
27891 # We did not find ourselves, most probably we were run as `sh COMMAND'
27892 # in which case we are not to be found in the path.
27893 if test "x$as_myself" = x; then
27894 as_myself=$0
27896 if test ! -f "$as_myself"; then
27897 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27898 exit 1
27901 # Unset variables that we do not need and which cause bugs (e.g. in
27902 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27903 # suppresses any "Segmentation fault" message there. '((' could
27904 # trigger a bug in pdksh 5.2.14.
27905 for as_var in BASH_ENV ENV MAIL MAILPATH
27906 do eval test x\${$as_var+set} = xset \
27907 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27908 done
27909 PS1='$ '
27910 PS2='> '
27911 PS4='+ '
27913 # NLS nuisances.
27914 LC_ALL=C
27915 export LC_ALL
27916 LANGUAGE=C
27917 export LANGUAGE
27919 # CDPATH.
27920 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27923 # as_fn_error ERROR [LINENO LOG_FD]
27924 # ---------------------------------
27925 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27926 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27927 # script with status $?, using 1 if that was 0.
27928 as_fn_error ()
27930 as_status=$?; test $as_status -eq 0 && as_status=1
27931 if test "$3"; then
27932 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27933 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27935 $as_echo "$as_me: error: $1" >&2
27936 as_fn_exit $as_status
27937 } # as_fn_error
27940 # as_fn_set_status STATUS
27941 # -----------------------
27942 # Set $? to STATUS, without forking.
27943 as_fn_set_status ()
27945 return $1
27946 } # as_fn_set_status
27948 # as_fn_exit STATUS
27949 # -----------------
27950 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27951 as_fn_exit ()
27953 set +e
27954 as_fn_set_status $1
27955 exit $1
27956 } # as_fn_exit
27958 # as_fn_unset VAR
27959 # ---------------
27960 # Portably unset VAR.
27961 as_fn_unset ()
27963 { eval $1=; unset $1;}
27965 as_unset=as_fn_unset
27966 # as_fn_append VAR VALUE
27967 # ----------------------
27968 # Append the text in VALUE to the end of the definition contained in VAR. Take
27969 # advantage of any shell optimizations that allow amortized linear growth over
27970 # repeated appends, instead of the typical quadratic growth present in naive
27971 # implementations.
27972 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27973 eval 'as_fn_append ()
27975 eval $1+=\$2
27977 else
27978 as_fn_append ()
27980 eval $1=\$$1\$2
27982 fi # as_fn_append
27984 # as_fn_arith ARG...
27985 # ------------------
27986 # Perform arithmetic evaluation on the ARGs, and store the result in the
27987 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27988 # must be portable across $(()) and expr.
27989 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27990 eval 'as_fn_arith ()
27992 as_val=$(( $* ))
27994 else
27995 as_fn_arith ()
27997 as_val=`expr "$@" || test $? -eq 1`
27999 fi # as_fn_arith
28002 if expr a : '\(a\)' >/dev/null 2>&1 &&
28003 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28004 as_expr=expr
28005 else
28006 as_expr=false
28009 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28010 as_basename=basename
28011 else
28012 as_basename=false
28015 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28016 as_dirname=dirname
28017 else
28018 as_dirname=false
28021 as_me=`$as_basename -- "$0" ||
28022 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28023 X"$0" : 'X\(//\)$' \| \
28024 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28025 $as_echo X/"$0" |
28026 sed '/^.*\/\([^/][^/]*\)\/*$/{
28027 s//\1/
28030 /^X\/\(\/\/\)$/{
28031 s//\1/
28034 /^X\/\(\/\).*/{
28035 s//\1/
28038 s/.*/./; q'`
28040 # Avoid depending upon Character Ranges.
28041 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28042 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28043 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28044 as_cr_digits='0123456789'
28045 as_cr_alnum=$as_cr_Letters$as_cr_digits
28047 ECHO_C= ECHO_N= ECHO_T=
28048 case `echo -n x` in #(((((
28049 -n*)
28050 case `echo 'xy\c'` in
28051 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28052 xy) ECHO_C='\c';;
28053 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28054 ECHO_T=' ';;
28055 esac;;
28057 ECHO_N='-n';;
28058 esac
28060 rm -f conf$$ conf$$.exe conf$$.file
28061 if test -d conf$$.dir; then
28062 rm -f conf$$.dir/conf$$.file
28063 else
28064 rm -f conf$$.dir
28065 mkdir conf$$.dir 2>/dev/null
28067 if (echo >conf$$.file) 2>/dev/null; then
28068 if ln -s conf$$.file conf$$ 2>/dev/null; then
28069 as_ln_s='ln -s'
28070 # ... but there are two gotchas:
28071 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28072 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28073 # In both cases, we have to default to `cp -p'.
28074 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28075 as_ln_s='cp -p'
28076 elif ln conf$$.file conf$$ 2>/dev/null; then
28077 as_ln_s=ln
28078 else
28079 as_ln_s='cp -p'
28081 else
28082 as_ln_s='cp -p'
28084 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28085 rmdir conf$$.dir 2>/dev/null
28088 # as_fn_mkdir_p
28089 # -------------
28090 # Create "$as_dir" as a directory, including parents if necessary.
28091 as_fn_mkdir_p ()
28094 case $as_dir in #(
28095 -*) as_dir=./$as_dir;;
28096 esac
28097 test -d "$as_dir" || eval $as_mkdir_p || {
28098 as_dirs=
28099 while :; do
28100 case $as_dir in #(
28101 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28102 *) as_qdir=$as_dir;;
28103 esac
28104 as_dirs="'$as_qdir' $as_dirs"
28105 as_dir=`$as_dirname -- "$as_dir" ||
28106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28107 X"$as_dir" : 'X\(//\)[^/]' \| \
28108 X"$as_dir" : 'X\(//\)$' \| \
28109 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28110 $as_echo X"$as_dir" |
28111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28112 s//\1/
28115 /^X\(\/\/\)[^/].*/{
28116 s//\1/
28119 /^X\(\/\/\)$/{
28120 s//\1/
28123 /^X\(\/\).*/{
28124 s//\1/
28127 s/.*/./; q'`
28128 test -d "$as_dir" && break
28129 done
28130 test -z "$as_dirs" || eval "mkdir $as_dirs"
28131 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28134 } # as_fn_mkdir_p
28135 if mkdir -p . 2>/dev/null; then
28136 as_mkdir_p='mkdir -p "$as_dir"'
28137 else
28138 test -d ./-p && rmdir ./-p
28139 as_mkdir_p=false
28142 if test -x / >/dev/null 2>&1; then
28143 as_test_x='test -x'
28144 else
28145 if ls -dL / >/dev/null 2>&1; then
28146 as_ls_L_option=L
28147 else
28148 as_ls_L_option=
28150 as_test_x='
28151 eval sh -c '\''
28152 if test -d "$1"; then
28153 test -d "$1/.";
28154 else
28155 case $1 in #(
28156 -*)set "./$1";;
28157 esac;
28158 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28159 ???[sx]*):;;*)false;;esac;fi
28160 '\'' sh
28163 as_executable_p=$as_test_x
28165 # Sed expression to map a string onto a valid CPP name.
28166 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28168 # Sed expression to map a string onto a valid variable name.
28169 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28172 exec 6>&1
28173 ## ----------------------------------- ##
28174 ## Main body of $CONFIG_STATUS script. ##
28175 ## ----------------------------------- ##
28176 _ASEOF
28177 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28180 # Save the log message, to keep $0 and so on meaningful, and to
28181 # report actual input values of CONFIG_FILES etc. instead of their
28182 # values after options handling.
28183 ac_log="
28184 This file was extended by $as_me, which was
28185 generated by GNU Autoconf 2.64. Invocation command line was
28187 CONFIG_FILES = $CONFIG_FILES
28188 CONFIG_HEADERS = $CONFIG_HEADERS
28189 CONFIG_LINKS = $CONFIG_LINKS
28190 CONFIG_COMMANDS = $CONFIG_COMMANDS
28191 $ $0 $@
28193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28196 _ACEOF
28198 case $ac_config_files in *"
28199 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28200 esac
28202 case $ac_config_headers in *"
28203 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28204 esac
28207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28208 # Files that config.status was made for.
28209 config_files="$ac_config_files"
28210 config_headers="$ac_config_headers"
28211 config_commands="$ac_config_commands"
28213 _ACEOF
28215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28216 ac_cs_usage="\
28217 \`$as_me' instantiates files and other configuration actions
28218 from templates according to the current configuration. Unless the files
28219 and actions are specified as TAGs, all are instantiated by default.
28221 Usage: $0 [OPTION]... [TAG]...
28223 -h, --help print this help, then exit
28224 -V, --version print version number and configuration settings, then exit
28225 -q, --quiet, --silent
28226 do not print progress messages
28227 -d, --debug don't remove temporary files
28228 --recheck update $as_me by reconfiguring in the same conditions
28229 --file=FILE[:TEMPLATE]
28230 instantiate the configuration file FILE
28231 --header=FILE[:TEMPLATE]
28232 instantiate the configuration header FILE
28234 Configuration files:
28235 $config_files
28237 Configuration headers:
28238 $config_headers
28240 Configuration commands:
28241 $config_commands
28243 Report bugs to the package provider."
28245 _ACEOF
28246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28247 ac_cs_version="\\
28248 config.status
28249 configured by $0, generated by GNU Autoconf 2.64,
28250 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28252 Copyright (C) 2009 Free Software Foundation, Inc.
28253 This config.status script is free software; the Free Software Foundation
28254 gives unlimited permission to copy, distribute and modify it."
28256 ac_pwd='$ac_pwd'
28257 srcdir='$srcdir'
28258 AWK='$AWK'
28259 test -n "\$AWK" || AWK=awk
28260 _ACEOF
28262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28263 # The default lists apply if the user does not specify any file.
28264 ac_need_defaults=:
28265 while test $# != 0
28267 case $1 in
28268 --*=*)
28269 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28270 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28271 ac_shift=:
28274 ac_option=$1
28275 ac_optarg=$2
28276 ac_shift=shift
28278 esac
28280 case $ac_option in
28281 # Handling of the options.
28282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28283 ac_cs_recheck=: ;;
28284 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28285 $as_echo "$ac_cs_version"; exit ;;
28286 --debug | --debu | --deb | --de | --d | -d )
28287 debug=: ;;
28288 --file | --fil | --fi | --f )
28289 $ac_shift
28290 case $ac_optarg in
28291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28292 esac
28293 as_fn_append CONFIG_FILES " '$ac_optarg'"
28294 ac_need_defaults=false;;
28295 --header | --heade | --head | --hea )
28296 $ac_shift
28297 case $ac_optarg in
28298 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28299 esac
28300 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28301 ac_need_defaults=false;;
28302 --he | --h)
28303 # Conflict between --help and --header
28304 as_fn_error "ambiguous option: \`$1'
28305 Try \`$0 --help' for more information.";;
28306 --help | --hel | -h )
28307 $as_echo "$ac_cs_usage"; exit ;;
28308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28309 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28310 ac_cs_silent=: ;;
28312 # This is an error.
28313 -*) as_fn_error "unrecognized option: \`$1'
28314 Try \`$0 --help' for more information." ;;
28316 *) as_fn_append ac_config_targets " $1"
28317 ac_need_defaults=false ;;
28319 esac
28320 shift
28321 done
28323 ac_configure_extra_args=
28325 if $ac_cs_silent; then
28326 exec 6>/dev/null
28327 ac_configure_extra_args="$ac_configure_extra_args --silent"
28330 _ACEOF
28331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28332 if \$ac_cs_recheck; then
28333 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28334 shift
28335 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28336 CONFIG_SHELL='$SHELL'
28337 export CONFIG_SHELL
28338 exec "\$@"
28341 _ACEOF
28342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28343 exec 5>>config.log
28345 echo
28346 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28347 ## Running $as_me. ##
28348 _ASBOX
28349 $as_echo "$ac_log"
28350 } >&5
28352 _ACEOF
28353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28355 # INIT-COMMANDS
28357 subdirs='$subdirs'
28359 _ACEOF
28361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28363 # Handling of arguments.
28364 for ac_config_target in $ac_config_targets
28366 case $ac_config_target in
28367 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28368 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28369 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28370 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28371 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28372 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28374 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28375 esac
28376 done
28379 # If the user did not use the arguments to specify the items to instantiate,
28380 # then the envvar interface is used. Set only those that are not.
28381 # We use the long form for the default assignment because of an extremely
28382 # bizarre bug on SunOS 4.1.3.
28383 if $ac_need_defaults; then
28384 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28385 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28386 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28389 # Have a temporary directory for convenience. Make it in the build tree
28390 # simply because there is no reason against having it here, and in addition,
28391 # creating and moving files from /tmp can sometimes cause problems.
28392 # Hook for its removal unless debugging.
28393 # Note that there is a small window in which the directory will not be cleaned:
28394 # after its creation but before its name has been assigned to `$tmp'.
28395 $debug ||
28397 tmp=
28398 trap 'exit_status=$?
28399 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28401 trap 'as_fn_exit 1' 1 2 13 15
28403 # Create a (secure) tmp directory for tmp files.
28406 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28407 test -n "$tmp" && test -d "$tmp"
28408 } ||
28410 tmp=./conf$$-$RANDOM
28411 (umask 077 && mkdir "$tmp")
28412 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28414 # Set up the scripts for CONFIG_FILES section.
28415 # No need to generate them if there are no CONFIG_FILES.
28416 # This happens for instance with `./config.status config.h'.
28417 if test -n "$CONFIG_FILES"; then
28419 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28420 ac_cs_awk_getline=:
28421 ac_cs_awk_pipe_init=
28422 ac_cs_awk_read_file='
28423 while ((getline aline < (F[key])) > 0)
28424 print(aline)
28425 close(F[key])'
28426 ac_cs_awk_pipe_fini=
28427 else
28428 ac_cs_awk_getline=false
28429 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28430 ac_cs_awk_read_file='
28431 print "|#_!!_#|"
28432 print "cat " F[key] " &&"
28433 '$ac_cs_awk_pipe_init
28434 # The final `:' finishes the AND list.
28435 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28437 ac_cr=`echo X | tr X '\015'`
28438 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28439 # But we know of no other shell where ac_cr would be empty at this
28440 # point, so we can use a bashism as a fallback.
28441 if test "x$ac_cr" = x; then
28442 eval ac_cr=\$\'\\r\'
28444 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28445 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28446 ac_cs_awk_cr='\r'
28447 else
28448 ac_cs_awk_cr=$ac_cr
28451 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28452 _ACEOF
28454 # Create commands to substitute file output variables.
28456 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28457 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28458 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28459 echo "_ACAWK" &&
28460 echo "_ACEOF"
28461 } >conf$$files.sh &&
28462 . ./conf$$files.sh ||
28463 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28464 rm -f conf$$files.sh
28467 echo "cat >conf$$subs.awk <<_ACEOF" &&
28468 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28469 echo "_ACEOF"
28470 } >conf$$subs.sh ||
28471 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28472 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28473 ac_delim='%!_!# '
28474 for ac_last_try in false false false false false :; do
28475 . ./conf$$subs.sh ||
28476 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28478 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28479 if test $ac_delim_n = $ac_delim_num; then
28480 break
28481 elif $ac_last_try; then
28482 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28483 else
28484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28486 done
28487 rm -f conf$$subs.sh
28489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28490 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28491 _ACEOF
28492 sed -n '
28494 s/^/S["/; s/!.*/"]=/
28497 s/^[^!]*!//
28498 :repl
28499 t repl
28500 s/'"$ac_delim"'$//
28501 t delim
28504 s/\(.\{148\}\).*/\1/
28505 t more1
28506 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28509 b repl
28510 :more1
28511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28514 s/.\{148\}//
28515 t nl
28516 :delim
28518 s/\(.\{148\}\).*/\1/
28519 t more2
28520 s/["\\]/\\&/g; s/^/"/; s/$/"/
28523 :more2
28524 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28527 s/.\{148\}//
28528 t delim
28529 ' <conf$$subs.awk | sed '
28530 /^[^""]/{
28532 s/\n//
28534 ' >>$CONFIG_STATUS || ac_write_fail=1
28535 rm -f conf$$subs.awk
28536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28537 _ACAWK
28538 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28539 for (key in S) S_is_set[key] = 1
28540 FS = "\a"
28541 \$ac_cs_awk_pipe_init
28544 line = $ 0
28545 nfields = split(line, field, "@")
28546 substed = 0
28547 len = length(field[1])
28548 for (i = 2; i < nfields; i++) {
28549 key = field[i]
28550 keylen = length(key)
28551 if (S_is_set[key]) {
28552 value = S[key]
28553 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28554 len += length(value) + length(field[++i])
28555 substed = 1
28556 } else
28557 len += 1 + keylen
28559 if (nfields == 3 && !substed) {
28560 key = field[2]
28561 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28562 \$ac_cs_awk_read_file
28563 next
28566 print line
28568 \$ac_cs_awk_pipe_fini
28569 _ACAWK
28570 _ACEOF
28571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28572 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28573 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28574 else
28576 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28577 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28578 _ACEOF
28580 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28581 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28582 # trailing colons and then remove the whole line if VPATH becomes empty
28583 # (actually we leave an empty line to preserve line numbers).
28584 if test "x$srcdir" = x.; then
28585 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28586 s/:*\$(srcdir):*/:/
28587 s/:*\${srcdir}:*/:/
28588 s/:*@srcdir@:*/:/
28589 s/^\([^=]*=[ ]*\):*/\1/
28590 s/:*$//
28591 s/^[^=]*=[ ]*$//
28595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28596 fi # test -n "$CONFIG_FILES"
28598 # Set up the scripts for CONFIG_HEADERS section.
28599 # No need to generate them if there are no CONFIG_HEADERS.
28600 # This happens for instance with `./config.status Makefile'.
28601 if test -n "$CONFIG_HEADERS"; then
28602 cat >"$tmp/defines.awk" <<\_ACAWK ||
28603 BEGIN {
28604 _ACEOF
28606 # Transform confdefs.h into an awk script `defines.awk', embedded as
28607 # here-document in config.status, that substitutes the proper values into
28608 # config.h.in to produce config.h.
28610 # Create a delimiter string that does not exist in confdefs.h, to ease
28611 # handling of long lines.
28612 ac_delim='%!_!# '
28613 for ac_last_try in false false :; do
28614 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28615 if test -z "$ac_t"; then
28616 break
28617 elif $ac_last_try; then
28618 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28619 else
28620 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28622 done
28624 # For the awk script, D is an array of macro values keyed by name,
28625 # likewise P contains macro parameters if any. Preserve backslash
28626 # newline sequences.
28628 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28629 sed -n '
28630 s/.\{148\}/&'"$ac_delim"'/g
28631 t rset
28632 :rset
28633 s/^[ ]*#[ ]*define[ ][ ]*/ /
28634 t def
28636 :def
28637 s/\\$//
28638 t bsnl
28639 s/["\\]/\\&/g
28640 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28641 D["\1"]=" \3"/p
28642 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28644 :bsnl
28645 s/["\\]/\\&/g
28646 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28647 D["\1"]=" \3\\\\\\n"\\/p
28648 t cont
28649 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28650 t cont
28652 :cont
28654 s/.\{148\}/&'"$ac_delim"'/g
28655 t clear
28656 :clear
28657 s/\\$//
28658 t bsnlc
28659 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28661 :bsnlc
28662 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28663 b cont
28664 ' <confdefs.h | sed '
28665 s/'"$ac_delim"'/"\\\
28666 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28669 for (key in D) D_is_set[key] = 1
28670 FS = "\a"
28672 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28673 line = \$ 0
28674 split(line, arg, " ")
28675 if (arg[1] == "#") {
28676 defundef = arg[2]
28677 mac1 = arg[3]
28678 } else {
28679 defundef = substr(arg[1], 2)
28680 mac1 = arg[2]
28682 split(mac1, mac2, "(") #)
28683 macro = mac2[1]
28684 prefix = substr(line, 1, index(line, defundef) - 1)
28685 if (D_is_set[macro]) {
28686 # Preserve the white space surrounding the "#".
28687 print prefix "define", macro P[macro] D[macro]
28688 next
28689 } else {
28690 # Replace #undef with comments. This is necessary, for example,
28691 # in the case of _POSIX_SOURCE, which is predefined and required
28692 # on some systems where configure will not decide to define it.
28693 if (defundef == "undef") {
28694 print "/*", prefix defundef, macro, "*/"
28695 next
28699 { print }
28700 _ACAWK
28701 _ACEOF
28702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28703 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28704 fi # test -n "$CONFIG_HEADERS"
28707 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28708 shift
28709 for ac_tag
28711 case $ac_tag in
28712 :[FHLC]) ac_mode=$ac_tag; continue;;
28713 esac
28714 case $ac_mode$ac_tag in
28715 :[FHL]*:*);;
28716 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28717 :[FH]-) ac_tag=-:-;;
28718 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28719 esac
28720 ac_save_IFS=$IFS
28721 IFS=:
28722 set x $ac_tag
28723 IFS=$ac_save_IFS
28724 shift
28725 ac_file=$1
28726 shift
28728 case $ac_mode in
28729 :L) ac_source=$1;;
28730 :[FH])
28731 ac_file_inputs=
28732 for ac_f
28734 case $ac_f in
28735 -) ac_f="$tmp/stdin";;
28736 *) # Look for the file first in the build tree, then in the source tree
28737 # (if the path is not absolute). The absolute path cannot be DOS-style,
28738 # because $ac_f cannot contain `:'.
28739 test -f "$ac_f" ||
28740 case $ac_f in
28741 [\\/$]*) false;;
28742 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28743 esac ||
28744 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28745 esac
28746 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28747 as_fn_append ac_file_inputs " '$ac_f'"
28748 done
28750 # Let's still pretend it is `configure' which instantiates (i.e., don't
28751 # use $as_me), people would be surprised to read:
28752 # /* config.h. Generated by config.status. */
28753 configure_input='Generated from '`
28754 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28755 `' by configure.'
28756 if test x"$ac_file" != x-; then
28757 configure_input="$ac_file. $configure_input"
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28759 $as_echo "$as_me: creating $ac_file" >&6;}
28761 # Neutralize special characters interpreted by sed in replacement strings.
28762 case $configure_input in #(
28763 *\&* | *\|* | *\\* )
28764 ac_sed_conf_input=`$as_echo "$configure_input" |
28765 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28766 *) ac_sed_conf_input=$configure_input;;
28767 esac
28769 case $ac_tag in
28770 *:-:* | *:-) cat >"$tmp/stdin" \
28771 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28772 esac
28774 esac
28776 ac_dir=`$as_dirname -- "$ac_file" ||
28777 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28778 X"$ac_file" : 'X\(//\)[^/]' \| \
28779 X"$ac_file" : 'X\(//\)$' \| \
28780 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28781 $as_echo X"$ac_file" |
28782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28783 s//\1/
28786 /^X\(\/\/\)[^/].*/{
28787 s//\1/
28790 /^X\(\/\/\)$/{
28791 s//\1/
28794 /^X\(\/\).*/{
28795 s//\1/
28798 s/.*/./; q'`
28799 as_dir="$ac_dir"; as_fn_mkdir_p
28800 ac_builddir=.
28802 case "$ac_dir" in
28803 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28805 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28806 # A ".." for each directory in $ac_dir_suffix.
28807 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28808 case $ac_top_builddir_sub in
28809 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28810 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28811 esac ;;
28812 esac
28813 ac_abs_top_builddir=$ac_pwd
28814 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28815 # for backward compatibility:
28816 ac_top_builddir=$ac_top_build_prefix
28818 case $srcdir in
28819 .) # We are building in place.
28820 ac_srcdir=.
28821 ac_top_srcdir=$ac_top_builddir_sub
28822 ac_abs_top_srcdir=$ac_pwd ;;
28823 [\\/]* | ?:[\\/]* ) # Absolute name.
28824 ac_srcdir=$srcdir$ac_dir_suffix;
28825 ac_top_srcdir=$srcdir
28826 ac_abs_top_srcdir=$srcdir ;;
28827 *) # Relative name.
28828 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28829 ac_top_srcdir=$ac_top_build_prefix$srcdir
28830 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28831 esac
28832 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28835 case $ac_mode in
28838 # CONFIG_FILE
28841 _ACEOF
28843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28844 # If the template does not know about datarootdir, expand it.
28845 # FIXME: This hack should be removed a few years after 2.60.
28846 ac_datarootdir_hack=; ac_datarootdir_seen=
28847 ac_sed_dataroot='
28848 /datarootdir/ {
28852 /@datadir@/p
28853 /@docdir@/p
28854 /@infodir@/p
28855 /@localedir@/p
28856 /@mandir@/p'
28857 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28858 *datarootdir*) ac_datarootdir_seen=yes;;
28859 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28861 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28862 _ACEOF
28863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28864 ac_datarootdir_hack='
28865 s&@datadir@&$datadir&g
28866 s&@docdir@&$docdir&g
28867 s&@infodir@&$infodir&g
28868 s&@localedir@&$localedir&g
28869 s&@mandir@&$mandir&g
28870 s&\\\${datarootdir}&$datarootdir&g' ;;
28871 esac
28872 _ACEOF
28874 # Neutralize VPATH when `$srcdir' = `.'.
28875 # Shell code in configure.ac might set extrasub.
28876 # FIXME: do we really want to maintain this feature?
28877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28878 ac_sed_extra="$ac_vpsub
28879 $extrasub
28880 _ACEOF
28881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28883 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28884 s|@configure_input@|$ac_sed_conf_input|;t t
28885 s&@top_builddir@&$ac_top_builddir_sub&;t t
28886 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28887 s&@srcdir@&$ac_srcdir&;t t
28888 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28889 s&@top_srcdir@&$ac_top_srcdir&;t t
28890 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28891 s&@builddir@&$ac_builddir&;t t
28892 s&@abs_builddir@&$ac_abs_builddir&;t t
28893 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28894 $ac_datarootdir_hack
28896 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28897 if $ac_cs_awk_getline; then
28898 $AWK -f "$tmp/subs.awk"
28899 else
28900 $AWK -f "$tmp/subs.awk" | $SHELL
28901 fi >$tmp/out \
28902 || as_fn_error "could not create $ac_file" "$LINENO" 5
28904 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28905 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28906 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28908 which seems to be undefined. Please make sure it is defined." >&5
28909 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28910 which seems to be undefined. Please make sure it is defined." >&2;}
28912 rm -f "$tmp/stdin"
28913 case $ac_file in
28914 -) cat "$tmp/out" && rm -f "$tmp/out";;
28915 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28916 esac \
28917 || as_fn_error "could not create $ac_file" "$LINENO" 5
28921 # CONFIG_HEADER
28923 if test x"$ac_file" != x-; then
28925 $as_echo "/* $configure_input */" \
28926 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28927 } >"$tmp/config.h" \
28928 || as_fn_error "could not create $ac_file" "$LINENO" 5
28929 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28930 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28931 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28932 else
28933 rm -f "$ac_file"
28934 mv "$tmp/config.h" "$ac_file" \
28935 || as_fn_error "could not create $ac_file" "$LINENO" 5
28937 else
28938 $as_echo "/* $configure_input */" \
28939 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28940 || as_fn_error "could not create -" "$LINENO" 5
28944 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28945 $as_echo "$as_me: executing $ac_file commands" >&6;}
28947 esac
28950 case $ac_file$ac_mode in
28951 "as":F) chmod +x as ;;
28952 "collect-ld":F) chmod +x collect-ld ;;
28953 "nm":F) chmod +x nm ;;
28954 "default":C)
28955 case ${CONFIG_HEADERS} in
28956 *auto-host.h:config.in*)
28957 echo > cstamp-h ;;
28958 esac
28959 # Make sure all the subdirs exist.
28960 for d in $subdirs doc build common c-family
28962 test -d $d || mkdir $d
28963 done
28966 esac
28967 done # for ac_tag
28970 as_fn_exit 0
28971 _ACEOF
28972 ac_clean_files=$ac_clean_files_save
28974 test $ac_write_fail = 0 ||
28975 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28978 # configure is writing to config.log, and then calls config.status.
28979 # config.status does its own redirection, appending to config.log.
28980 # Unfortunately, on DOS this fails, as config.log is still kept open
28981 # by configure, so config.status won't be able to write to it; its
28982 # output is simply discarded. So we exec the FD to /dev/null,
28983 # effectively closing config.log, so it can be properly (re)opened and
28984 # appended to by config.status. When coming back to configure, we
28985 # need to make the FD available again.
28986 if test "$no_create" != yes; then
28987 ac_cs_success=:
28988 ac_config_status_args=
28989 test "$silent" = yes &&
28990 ac_config_status_args="$ac_config_status_args --quiet"
28991 exec 5>/dev/null
28992 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28993 exec 5>>config.log
28994 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28995 # would make configure fail if this is the last instruction.
28996 $ac_cs_success || as_fn_exit $?
28998 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29000 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}