Backport upstream patches to fix ICEs when using -fdebug-types-section.
[official-gcc.git] / integration / gcc / configure
blob8c449ef788dd77f9d5b0e15a6c2cafde0142555e
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 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
677 libgcc_visibility
678 gcc_cv_readelf
679 gcc_cv_objdump
680 ORIGINAL_NM_FOR_TARGET
681 gcc_cv_nm
682 ORIGINAL_LD_FOR_TARGET
683 ORIGINAL_PLUGIN_LD_FOR_TARGET
684 gcc_cv_ld
685 ORIGINAL_AS_FOR_TARGET
686 gcc_cv_as
687 enable_fast_install
688 objdir
689 OTOOL64
690 OTOOL
691 LIPO
692 NMEDIT
693 DSYMUTIL
694 STRIP
695 OBJDUMP
696 ac_ct_DUMPBIN
697 DUMPBIN
699 FGREP
701 LIBTOOL
702 collect2
703 STMP_FIXINC
704 BUILD_LDFLAGS
705 BUILD_CXXFLAGS
706 BUILD_CFLAGS
707 CXX_FOR_BUILD
708 CC_FOR_BUILD
709 inhibit_libc
710 SYSTEM_HEADER_DIR
712 CROSS
713 CATOBJEXT
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATALOGS
718 POSUB
719 GMSGFMT
720 XGETTEXT
721 INCINTL
722 LIBINTL_DEP
723 LIBINTL
724 USE_NLS
725 extra_opt_files
726 extra_modes_file
727 NATIVE_SYSTEM_HEADER_DIR
728 objext
729 manext
730 LIBICONV_DEP
731 LTLIBICONV
732 LIBICONV
733 LDEXP_LIB
734 EXTRA_GCC_LIBS
735 GNAT_LIBEXC
736 COLLECT2_LIBS
737 CXXCPP
740 BISON
741 FLEX
742 GENERATED_MANPAGES
743 BUILD_INFO
744 MAKEINFO
745 have_mktemp_command
746 make_compare_target
747 INSTALL_DATA
748 INSTALL_PROGRAM
749 INSTALL
750 ranlib_flags
751 RANLIB
753 LN_S
755 SET_MAKE
756 REPORT_BUGS_TEXI
757 REPORT_BUGS_TO
758 PKGVERSION
759 CONFIGURE_SPECS
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
762 TARGET_SYSTEM_ROOT
763 RUNTIME_ROOT_PREFIX_DEFINE
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_runtime_root_prefix
893 with_sysroot
894 with_specs
895 with_pkgversion
896 with_bugurl
897 enable_languages
898 with_multilib_list
899 enable_rpath
900 with_libiconv_prefix
901 enable_sjlj_exceptions
902 enable_secureplt
903 enable_leading_mingw64_underscores
904 enable_cld
905 enable_frame_pointer
906 enable_win32_registry
907 enable_static
908 with_pic
909 enable_fast_install
910 enable_libtool_lock
911 with_plugin_ld
912 enable_gnu_indirect_function
913 enable_initfini_array
914 enable_comdat
915 enable_gnu_unique_object
916 enable_linker_build_id
917 with_long_double_128
918 with_gc
919 with_system_zlib
920 enable_maintainer_mode
921 enable_version_specific_runtime_libs
922 enable_canonical_prefixes
923 enable_plugin
924 enable_libquadmath_support
925 with_linker_hash_style
927 ac_precious_vars='build_alias
928 host_alias
929 target_alias
931 CFLAGS
932 LDFLAGS
933 LIBS
934 CPPFLAGS
936 CXXFLAGS
939 CXXCPP
940 GMPLIBS
941 GMPINC
942 ISLLIBS
943 ISLINC
944 CLOOGLIBS
945 CLOOGINC'
948 # Initialize some variables set by options.
949 ac_init_help=
950 ac_init_version=false
951 ac_unrecognized_opts=
952 ac_unrecognized_sep=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
955 cache_file=/dev/null
956 exec_prefix=NONE
957 no_create=
958 no_recursion=
959 prefix=NONE
960 program_prefix=NONE
961 program_suffix=NONE
962 program_transform_name=s,x,x,
963 silent=
964 site=
965 srcdir=
966 verbose=
967 x_includes=NONE
968 x_libraries=NONE
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE}'
987 infodir='${datarootdir}/info'
988 htmldir='${docdir}'
989 dvidir='${docdir}'
990 pdfdir='${docdir}'
991 psdir='${docdir}'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
996 ac_prev=
997 ac_dashdash=
998 for ac_option
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\$ac_option
1003 ac_prev=
1004 continue
1007 case $ac_option in
1008 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 *) ac_optarg=yes ;;
1010 esac
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1014 case $ac_dashdash$ac_option in
1016 ac_dashdash=yes ;;
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019 ac_prev=bindir ;;
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1038 -datadir | --datadir | --datadi | --datad)
1039 ac_prev=datadir ;;
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1050 -disable-* | --disable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_$ac_useropt"
1060 "*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval enable_$ac_useropt=no ;;
1066 -docdir | --docdir | --docdi | --doc | --do)
1067 ac_prev=docdir ;;
1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069 docdir=$ac_optarg ;;
1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072 ac_prev=dvidir ;;
1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074 dvidir=$ac_optarg ;;
1076 -enable-* | --enable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=\$ac_optarg ;;
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1103 with_gas=yes ;;
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 ac_prev=htmldir ;;
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 | --ht=*)
1121 htmldir=$ac_optarg ;;
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 ac_prev=infodir ;;
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1135 -libdir | --libdir | --libdi | --libd)
1136 ac_prev=libdir ;;
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 ac_prev=mandir ;;
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1166 with_fp=no ;;
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1170 no_create=yes ;;
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 no_recursion=yes ;;
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 ac_prev=prefix ;;
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 ac_prev=pdfdir ;;
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1226 -psdir | --psdir | --psdi | --psd | --ps)
1227 ac_prev=psdir ;;
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 psdir=$ac_optarg ;;
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1233 silent=yes ;;
1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 ac_prev=sbindir ;;
1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 | --sbi=* | --sb=*)
1239 sbindir=$ac_optarg ;;
1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243 | --sharedst | --shareds | --shared | --share | --shar \
1244 | --sha | --sh)
1245 ac_prev=sharedstatedir ;;
1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 | --sha=* | --sh=*)
1250 sharedstatedir=$ac_optarg ;;
1252 -site | --site | --sit)
1253 ac_prev=site ;;
1254 -site=* | --site=* | --sit=*)
1255 site=$ac_optarg ;;
1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 ac_prev=srcdir ;;
1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260 srcdir=$ac_optarg ;;
1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263 | --syscon | --sysco | --sysc | --sys | --sy)
1264 ac_prev=sysconfdir ;;
1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267 sysconfdir=$ac_optarg ;;
1269 -target | --target | --targe | --targ | --tar | --ta | --t)
1270 ac_prev=target_alias ;;
1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272 target_alias=$ac_optarg ;;
1274 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 verbose=yes ;;
1277 -version | --version | --versio | --versi | --vers | -V)
1278 ac_init_version=: ;;
1280 -with-* | --with-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error "invalid package name: $ac_useropt"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1289 "with_$ac_useropt"
1290 "*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=\$ac_optarg ;;
1296 -without-* | --without-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 as_fn_error "invalid package name: $ac_useropt"
1301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1305 "with_$ac_useropt"
1306 "*) ;;
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1309 esac
1310 eval with_$ac_useropt=no ;;
1312 --x)
1313 # Obsolete; use --with-x.
1314 with_x=yes ;;
1316 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317 | --x-incl | --x-inc | --x-in | --x-i)
1318 ac_prev=x_includes ;;
1319 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321 x_includes=$ac_optarg ;;
1323 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325 ac_prev=x_libraries ;;
1326 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328 x_libraries=$ac_optarg ;;
1330 -*) as_fn_error "unrecognized option: \`$ac_option'
1331 Try \`$0 --help' for more information."
1334 *=*)
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 case $ac_envvar in #(
1338 '' | [0-9]* | *[!_$as_cr_alnum]* )
1339 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1340 esac
1341 eval $ac_envvar=\$ac_optarg
1342 export $ac_envvar ;;
1345 # FIXME: should be removed in autoconf 3.0.
1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352 esac
1353 done
1355 if test -n "$ac_prev"; then
1356 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357 as_fn_error "missing argument to $ac_option"
1360 if test -n "$ac_unrecognized_opts"; then
1361 case $enable_option_checking in
1362 no) ;;
1363 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365 esac
1368 # Check all directory arguments for consistency.
1369 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370 datadir sysconfdir sharedstatedir localstatedir includedir \
1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372 libdir localedir mandir
1374 eval ac_val=\$$ac_var
1375 # Remove trailing slashes.
1376 case $ac_val in
1377 */ )
1378 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379 eval $ac_var=\$ac_val;;
1380 esac
1381 # Be sure to have absolute directory names.
1382 case $ac_val in
1383 [\\/$]* | ?:[\\/]* ) continue;;
1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385 esac
1386 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1387 done
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1392 build=$build_alias
1393 host=$host_alias
1394 target=$target_alias
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x; then
1398 if test "x$build_alias" = x; then
1399 cross_compiling=maybe
1400 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1401 If a cross compiler is detected then cross compile mode will be used." >&2
1402 elif test "x$build_alias" != "x$host_alias"; then
1403 cross_compiling=yes
1407 ac_tool_prefix=
1408 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410 test "$silent" = yes && exec 6>/dev/null
1413 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di=`ls -di .` &&
1415 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416 as_fn_error "working directory cannot be determined"
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 as_fn_error "pwd does not report name of working directory"
1421 # Find the source files, if location was not specified.
1422 if test -z "$srcdir"; then
1423 ac_srcdir_defaulted=yes
1424 # Try the directory containing this script, then the parent directory.
1425 ac_confdir=`$as_dirname -- "$as_myself" ||
1426 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427 X"$as_myself" : 'X\(//\)[^/]' \| \
1428 X"$as_myself" : 'X\(//\)$' \| \
1429 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430 $as_echo X"$as_myself" |
1431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 s//\1/
1435 /^X\(\/\/\)[^/].*/{
1436 s//\1/
1439 /^X\(\/\/\)$/{
1440 s//\1/
1443 /^X\(\/\).*/{
1444 s//\1/
1447 s/.*/./; q'`
1448 srcdir=$ac_confdir
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 srcdir=..
1452 else
1453 ac_srcdir_defaulted=no
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1459 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 ac_abs_confdir=`(
1461 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1462 pwd)`
1463 # When building in place, set srcdir=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 srcdir=.
1467 # Remove unnecessary trailing slashes from srcdir.
1468 # Double slashes in file names in object file debugging info
1469 # mess up M-x gdb in Emacs.
1470 case $srcdir in
1471 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 esac
1473 for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478 done
1481 # Report the --help message.
1483 if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1486 cat <<_ACEOF
1487 \`configure' configures this package to adapt to many kinds of systems.
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE. See below for descriptions of some of the useful variables.
1494 Defaults for the options are specified in brackets.
1496 Configuration:
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507 Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
1509 [$ac_default_prefix]
1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 [PREFIX]
1513 By default, \`make install' will install all the files in
1514 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516 for instance \`--prefix=\$HOME'.
1518 For better control, use the options below.
1520 Fine tuning of the installation directories:
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
1540 _ACEOF
1542 cat <<\_ACEOF
1544 Program names:
1545 --program-prefix=PREFIX prepend PREFIX to installed program names
1546 --program-suffix=SUFFIX append SUFFIX to installed program names
1547 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1549 System types:
1550 --build=BUILD configure for building on BUILD [guessed]
1551 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1552 --target=TARGET configure for building compilers for TARGET [HOST]
1553 _ACEOF
1556 if test -n "$ac_init_help"; then
1558 cat <<\_ACEOF
1560 Optional Features:
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --enable-generated-files-in-srcdir
1565 put copies of generated files in source dir intended
1566 for creating source tarballs for users without
1567 texinfo bison or flex
1568 --disable-largefile omit support for large files
1569 --enable-werror-always enable -Werror despite compiler version
1570 --enable-checking[=LIST]
1571 enable expensive run-time checks. With LIST, enable
1572 only specific categories of checks. Categories are:
1573 yes,no,all,none,release. Flags are:
1574 assert,df,fold,gc,gcac,gimple,misc,
1575 rtlflag,rtl,runtime,tree,valgrind,types
1576 --enable-coverage[=LEVEL]
1577 enable compiler's code coverage collection. Use to
1578 measure compiler performance and locate unused parts
1579 of the compiler. With LEVEL, specify optimization.
1580 Values are opt, noopt, default is noopt
1581 --enable-gather-detailed-mem-stats
1582 enable detailed memory allocation stats gathering
1583 --enable-multilib enable library support for multiple ABIs
1584 --enable-multiarch enable support for multiarch paths
1585 --enable-__cxa_atexit enable __cxa_atexit for C++
1586 --enable-decimal-float={no,yes,bid,dpd}
1587 enable decimal float extension to C. Selecting 'bid'
1588 or 'dpd' choses which decimal floating point format
1589 to use
1590 --enable-fixed-point enable fixed-point arithmetic extension to C
1591 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1592 package
1593 --enable-tls enable or disable generation of tls code overriding
1594 the assembler check for tls support
1595 --enable-objc-gc enable the use of Boehm's garbage collector with the
1596 GNU Objective-C runtime
1597 --disable-shared don't provide a shared libgcc
1598 --enable-languages=LIST specify which front-ends to build
1599 --disable-rpath do not hardcode runtime library paths
1600 --enable-sjlj-exceptions
1601 arrange to use setjmp/longjmp exception handling
1602 --enable-secureplt enable -msecure-plt by default for PowerPC
1603 --enable-leading-mingw64-underscores
1604 enable leading underscores on 64 bit mingw targets
1605 --enable-cld enable -mcld by default for 32bit x86
1606 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1608 --disable-win32-registry
1609 disable lookup of installation paths in the Registry
1610 on Windows hosts
1611 --enable-win32-registry enable registry lookup (default)
1612 --enable-win32-registry=KEY
1613 use KEY instead of GCC version as the last portion
1614 of the registry key
1615 --enable-shared[=PKGS] build shared libraries [default=yes]
1616 --enable-static[=PKGS] build static libraries [default=yes]
1617 --enable-fast-install[=PKGS]
1618 optimize for fast installation [default=yes]
1619 --disable-libtool-lock avoid locking (might break parallel builds)
1620 --enable-gnu-indirect-function
1621 enable the use of the @gnu_indirect_function to
1622 glibc systems
1623 --enable-initfini-array use .init_array/.fini_array sections
1624 --enable-comdat enable COMDAT group support
1625 --enable-gnu-unique-object
1626 enable the use of the @gnu_unique_object ELF
1627 extension on glibc systems
1628 --enable-linker-build-id
1629 compiler will always pass --build-id to linker
1630 --enable-maintainer-mode
1631 enable make rules and dependencies not useful (and
1632 sometimes confusing) to the casual installer
1633 --enable-version-specific-runtime-libs
1634 specify that runtime libraries should be installed
1635 in a compiler-specific directory
1636 --enable-canonical-prefixes
1637 enable or disable prefix canonicalization
1638 --enable-plugin enable plugin support
1639 --disable-libquadmath-support
1640 disable libquadmath support for Fortran
1642 Optional Packages:
1643 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1644 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1645 --with-build-libsubdir=DIR Directory where to find libraries for build system
1646 --with-local-prefix=DIR specifies directory to put local include
1647 --with-gxx-include-dir=DIR
1648 specifies directory to put g++ header files
1649 --with-cpp-install-dir=DIR
1650 install the user visible C preprocessor in DIR
1651 (relative to PREFIX) as well as PREFIX/bin
1652 --with-gnu-ld arrange to work with GNU ld
1653 --with-ld arrange to use the specified ld (full pathname)
1654 --with-demangler-in-ld try to use demangler in GNU ld
1655 --with-gnu-as arrange to work with GNU as
1656 --with-as arrange to use the specified as (full pathname)
1657 --with-stabs arrange to use stabs instead of host debug format
1658 --with-dwarf2 force the default debug format to be DWARF 2
1659 --with-native-system-header-dir=dir
1660 use dir as the directory to look for standard
1661 system header files in. Defaults to /usr/include.
1662 --with-build-sysroot=sysroot
1663 use sysroot as the system root during the build
1664 --with-runtime-root-prefix=prefix
1665 prepend prefix to paths used by the compiler to
1666 name the dynamic linker and other files used at
1667 runtime. Defaults to empty (no prefix).
1668 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1669 --with-specs=SPECS add SPECS to driver command-line processing
1670 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1671 --with-bugurl=URL Direct users to URL to report a bug
1672 --with-multilib-list select multilibs (SH and x86-64 only)
1673 --with-gnu-ld assume the C compiler uses GNU ld default=no
1674 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1675 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1676 --with-pic try to use only PIC/non-PIC objects [default=use
1677 both]
1678 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1679 --with-plugin-ld=[ARG] specify the plugin linker
1680 --with-long-double-128 use 128-bit long double by default
1681 --with-gc={page,zone} this option is not supported anymore. It used to
1682 choose the garbage collection mechanism to use with
1683 the compiler
1684 --with-system-zlib use installed libz
1685 --with-linker-hash-style={sysv,gnu,both}
1686 specify the linker hash style
1688 Some influential environment variables:
1689 CC C compiler command
1690 CFLAGS C compiler flags
1691 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1692 nonstandard directory <lib dir>
1693 LIBS libraries to pass to the linker, e.g. -l<library>
1694 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1695 you have headers in a nonstandard directory <include dir>
1696 CXX C++ compiler command
1697 CXXFLAGS C++ compiler flags
1698 CPP C preprocessor
1699 CXXCPP C++ preprocessor
1700 GMPLIBS How to link GMP
1701 GMPINC How to find GMP include files
1702 ISLLIBS How to link ISL
1703 ISLINC How to find ISL include files
1704 CLOOGLIBS How to link CLOOG
1705 CLOOGINC How to find CLOOG include files
1707 Use these variables to override the choices made by `configure' or to help
1708 it to find libraries and programs with nonstandard names/locations.
1710 Report bugs to the package provider.
1711 _ACEOF
1712 ac_status=$?
1715 if test "$ac_init_help" = "recursive"; then
1716 # If there are subdirs, report their specific --help.
1717 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1718 test -d "$ac_dir" ||
1719 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1720 continue
1721 ac_builddir=.
1723 case "$ac_dir" in
1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1727 # A ".." for each directory in $ac_dir_suffix.
1728 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1729 case $ac_top_builddir_sub in
1730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1732 esac ;;
1733 esac
1734 ac_abs_top_builddir=$ac_pwd
1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1736 # for backward compatibility:
1737 ac_top_builddir=$ac_top_build_prefix
1739 case $srcdir in
1740 .) # We are building in place.
1741 ac_srcdir=.
1742 ac_top_srcdir=$ac_top_builddir_sub
1743 ac_abs_top_srcdir=$ac_pwd ;;
1744 [\\/]* | ?:[\\/]* ) # Absolute name.
1745 ac_srcdir=$srcdir$ac_dir_suffix;
1746 ac_top_srcdir=$srcdir
1747 ac_abs_top_srcdir=$srcdir ;;
1748 *) # Relative name.
1749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1750 ac_top_srcdir=$ac_top_build_prefix$srcdir
1751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1752 esac
1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1755 cd "$ac_dir" || { ac_status=$?; continue; }
1756 # Check for guested configure.
1757 if test -f "$ac_srcdir/configure.gnu"; then
1758 echo &&
1759 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1760 elif test -f "$ac_srcdir/configure"; then
1761 echo &&
1762 $SHELL "$ac_srcdir/configure" --help=recursive
1763 else
1764 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1765 fi || ac_status=$?
1766 cd "$ac_pwd" || { ac_status=$?; break; }
1767 done
1770 test -n "$ac_init_help" && exit $ac_status
1771 if $ac_init_version; then
1772 cat <<\_ACEOF
1773 configure
1774 generated by GNU Autoconf 2.64
1776 Copyright (C) 2009 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1779 _ACEOF
1780 exit
1783 ## ------------------------ ##
1784 ## Autoconf initialization. ##
1785 ## ------------------------ ##
1787 # ac_fn_c_try_compile LINENO
1788 # --------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_compile ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext
1794 if { { ac_try="$ac_compile"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_compile") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest.$ac_objext; then :
1813 ac_retval=0
1814 else
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 ac_retval=1
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 return $ac_retval
1823 } # ac_fn_c_try_compile
1825 # ac_fn_cxx_try_compile LINENO
1826 # ----------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_compile ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext
1832 if { { ac_try="$ac_compile"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_cxx_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=1
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859 return $ac_retval
1861 } # ac_fn_cxx_try_compile
1863 # ac_fn_c_try_cpp LINENO
1864 # ----------------------
1865 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_cpp ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_cpp conftest.$ac_ext"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } >/dev/null && {
1885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1886 test ! -s conftest.err
1887 }; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1893 ac_retval=1
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 return $ac_retval
1898 } # ac_fn_c_try_cpp
1900 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1901 # -------------------------------------------------------
1902 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1903 # the include files in INCLUDES and setting the cache variable VAR
1904 # accordingly.
1905 ac_fn_c_check_header_mongrel ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 $as_echo_n "(cached) " >&6
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 else
1918 # Is the header compilable?
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1920 $as_echo_n "checking $2 usability... " >&6; }
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1924 #include <$2>
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 ac_header_compiler=yes
1928 else
1929 ac_header_compiler=no
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1933 $as_echo "$ac_header_compiler" >&6; }
1935 # Is the header present?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1937 $as_echo_n "checking $2 presence... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_c_try_cpp "$LINENO"; then :
1943 ac_header_preproc=yes
1944 else
1945 ac_header_preproc=no
1947 rm -f conftest.err conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1949 $as_echo "$ac_header_preproc" >&6; }
1951 # So? What about this header?
1952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1953 yes:no: )
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1955 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 no:yes:* )
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1961 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1963 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1965 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1967 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 esac
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1975 $as_echo_n "(cached) " >&6
1976 else
1977 eval "$3=\$ac_header_compiler"
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985 } # ac_fn_c_check_header_mongrel
1987 # ac_fn_c_try_run LINENO
1988 # ----------------------
1989 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1990 # that executables *can* be run.
1991 ac_fn_c_try_run ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if { { ac_try="$ac_link"
1995 case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_link") 2>&5
2002 ac_status=$?
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2005 { { case "(($ac_try" in
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2008 esac
2009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010 $as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_try") 2>&5
2012 ac_status=$?
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; }; }; then :
2015 ac_retval=0
2016 else
2017 $as_echo "$as_me: program exited with status $ac_status" >&5
2018 $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2021 ac_retval=$ac_status
2023 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2025 return $ac_retval
2027 } # ac_fn_c_try_run
2029 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2030 # -------------------------------------------------------
2031 # Tests whether HEADER exists and can be compiled using the include files in
2032 # INCLUDES, setting the cache variable VAR accordingly.
2033 ac_fn_c_check_header_compile ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2039 $as_echo_n "(cached) " >&6
2040 else
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2044 #include <$2>
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047 eval "$3=yes"
2048 else
2049 eval "$3=no"
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 } # ac_fn_c_check_header_compile
2060 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2061 # --------------------------------------------
2062 # Tries to find the compile-time value of EXPR in a program that includes
2063 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2064 # computed
2065 ac_fn_c_compute_int ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 if test "$cross_compiling" = yes; then
2069 # Depending upon the size, compute the lo and hi bounds.
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2074 main ()
2076 static int test_array [1 - 2 * !(($2) >= 0)];
2077 test_array [0] = 0
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 ac_lo=0 ac_mid=0
2085 while :; do
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2090 main ()
2092 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093 test_array [0] = 0
2096 return 0;
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 ac_hi=$ac_mid; break
2101 else
2102 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2103 if test $ac_lo -le $ac_mid; then
2104 ac_lo= ac_hi=
2105 break
2107 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 done
2111 else
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2116 main ()
2118 static int test_array [1 - 2 * !(($2) < 0)];
2119 test_array [0] = 0
2122 return 0;
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 ac_hi=-1 ac_mid=-1
2127 while :; do
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2132 main ()
2134 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2135 test_array [0] = 0
2138 return 0;
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 ac_lo=$ac_mid; break
2143 else
2144 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2145 if test $ac_mid -le $ac_hi; then
2146 ac_lo= ac_hi=
2147 break
2149 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 done
2153 else
2154 ac_lo= ac_hi=
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 # Binary search between lo and hi bounds.
2160 while test "x$ac_lo" != "x$ac_hi"; do
2161 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2166 main ()
2168 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2169 test_array [0] = 0
2172 return 0;
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 ac_hi=$ac_mid
2177 else
2178 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 done
2182 case $ac_lo in #((
2183 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2184 '') ac_retval=1 ;;
2185 esac
2186 else
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2190 static long int longval () { return $2; }
2191 static unsigned long int ulongval () { return $2; }
2192 #include <stdio.h>
2193 #include <stdlib.h>
2195 main ()
2198 FILE *f = fopen ("conftest.val", "w");
2199 if (! f)
2200 return 1;
2201 if (($2) < 0)
2203 long int i = longval ();
2204 if (i != ($2))
2205 return 1;
2206 fprintf (f, "%ld", i);
2208 else
2210 unsigned long int i = ulongval ();
2211 if (i != ($2))
2212 return 1;
2213 fprintf (f, "%lu", i);
2215 /* Do not output a trailing newline, as this causes \r\n confusion
2216 on some platforms. */
2217 return ferror (f) || fclose (f) != 0;
2220 return 0;
2222 _ACEOF
2223 if ac_fn_c_try_run "$LINENO"; then :
2224 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2225 else
2226 ac_retval=1
2228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2229 conftest.$ac_objext conftest.beam conftest.$ac_ext
2230 rm -f conftest.val
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2234 return $ac_retval
2236 } # ac_fn_c_compute_int
2238 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2239 # -------------------------------------------
2240 # Tests whether TYPE exists after having included INCLUDES, setting cache
2241 # variable VAR accordingly.
2242 ac_fn_c_check_type ()
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2249 else
2250 eval "$3=no"
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2255 main ()
2257 if (sizeof ($2))
2258 return 0;
2260 return 0;
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2268 main ()
2270 if (sizeof (($2)))
2271 return 0;
2273 return 0;
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"; then :
2278 else
2279 eval "$3=yes"
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 eval ac_res=\$$3
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2290 } # ac_fn_c_check_type
2292 # ac_fn_c_find_intX_t LINENO BITS VAR
2293 # -----------------------------------
2294 # Finds a signed integer type with width BITS, setting cache variable VAR
2295 # accordingly.
2296 ac_fn_c_find_intX_t ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2300 $as_echo_n "checking for int$2_t... " >&6; }
2301 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2302 $as_echo_n "(cached) " >&6
2303 else
2304 eval "$3=no"
2305 for ac_type in int$2_t 'int' 'long int' \
2306 'long long int' 'short int' 'signed char'; do
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2309 $ac_includes_default
2311 main ()
2313 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2314 test_array [0] = 0
2317 return 0;
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2323 $ac_includes_default
2325 main ()
2327 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2328 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2329 test_array [0] = 0
2332 return 0;
2334 _ACEOF
2335 if ac_fn_c_try_compile "$LINENO"; then :
2337 else
2338 case $ac_type in #(
2339 int$2_t) :
2340 eval "$3=yes" ;; #(
2341 *) :
2342 eval "$3=\$ac_type" ;;
2343 esac
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 eval as_val=\$$3
2349 if test "x$as_val" = x""no; then :
2351 else
2352 break
2354 done
2356 eval ac_res=\$$3
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358 $as_echo "$ac_res" >&6; }
2359 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2361 } # ac_fn_c_find_intX_t
2363 # ac_fn_c_try_link LINENO
2364 # -----------------------
2365 # Try to link conftest.$ac_ext, and return whether this succeeded.
2366 ac_fn_c_try_link ()
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 rm -f conftest.$ac_objext conftest$ac_exeext
2370 if { { ac_try="$ac_link"
2371 case "(($ac_try" in
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2374 esac
2375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376 $as_echo "$ac_try_echo"; } >&5
2377 (eval "$ac_link") 2>conftest.err
2378 ac_status=$?
2379 if test -s conftest.err; then
2380 grep -v '^ *+' conftest.err >conftest.er1
2381 cat conftest.er1 >&5
2382 mv -f conftest.er1 conftest.err
2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385 test $ac_status = 0; } && {
2386 test -z "$ac_c_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest$ac_exeext && {
2389 test "$cross_compiling" = yes ||
2390 $as_test_x conftest$ac_exeext
2391 }; then :
2392 ac_retval=0
2393 else
2394 $as_echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2397 ac_retval=1
2399 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2400 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2401 # interfere with the next link command; also delete a directory that is
2402 # left behind by Apple's compiler. We do this before executing the actions.
2403 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2404 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2405 return $ac_retval
2407 } # ac_fn_c_try_link
2409 # ac_fn_c_find_uintX_t LINENO BITS VAR
2410 # ------------------------------------
2411 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2412 # accordingly.
2413 ac_fn_c_find_uintX_t ()
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2417 $as_echo_n "checking for uint$2_t... " >&6; }
2418 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 eval "$3=no"
2422 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2423 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2426 $ac_includes_default
2428 main ()
2430 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2431 test_array [0] = 0
2434 return 0;
2436 _ACEOF
2437 if ac_fn_c_try_compile "$LINENO"; then :
2438 case $ac_type in #(
2439 uint$2_t) :
2440 eval "$3=yes" ;; #(
2441 *) :
2442 eval "$3=\$ac_type" ;;
2443 esac
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 eval as_val=\$$3
2447 if test "x$as_val" = x""no; then :
2449 else
2450 break
2452 done
2454 eval ac_res=\$$3
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2459 } # ac_fn_c_find_uintX_t
2461 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2462 # ----------------------------------------------
2463 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2464 ac_fn_c_check_header_preproc ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2468 $as_echo_n "checking for $2... " >&6; }
2469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 #include <$2>
2475 _ACEOF
2476 if ac_fn_c_try_cpp "$LINENO"; then :
2477 eval "$3=yes"
2478 else
2479 eval "$3=no"
2481 rm -f conftest.err conftest.$ac_ext
2483 eval ac_res=\$$3
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2485 $as_echo "$ac_res" >&6; }
2486 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2488 } # ac_fn_c_check_header_preproc
2490 # ac_fn_cxx_try_cpp LINENO
2491 # ------------------------
2492 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2493 ac_fn_cxx_try_cpp ()
2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496 if { { ac_try="$ac_cpp conftest.$ac_ext"
2497 case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2500 esac
2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 $as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2504 ac_status=$?
2505 if test -s conftest.err; then
2506 grep -v '^ *+' conftest.err >conftest.er1
2507 cat conftest.er1 >&5
2508 mv -f conftest.er1 conftest.err
2510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511 test $ac_status = 0; } >/dev/null && {
2512 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2513 test ! -s conftest.err
2514 }; then :
2515 ac_retval=0
2516 else
2517 $as_echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2520 ac_retval=1
2522 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2523 return $ac_retval
2525 } # ac_fn_cxx_try_cpp
2527 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2528 # ------------------------------------------------
2529 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2530 ac_fn_cxx_check_header_preproc ()
2532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2534 $as_echo_n "checking for $2... " >&6; }
2535 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 #include <$2>
2541 _ACEOF
2542 if ac_fn_cxx_try_cpp "$LINENO"; then :
2543 eval "$3=yes"
2544 else
2545 eval "$3=no"
2547 rm -f conftest.err conftest.$ac_ext
2549 eval ac_res=\$$3
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2554 } # ac_fn_cxx_check_header_preproc
2556 # ac_fn_c_check_func LINENO FUNC VAR
2557 # ----------------------------------
2558 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2559 ac_fn_c_check_func ()
2561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2563 $as_echo_n "checking for $2... " >&6; }
2564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2569 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2571 #define $2 innocuous_$2
2573 /* System header to define __stub macros and hopefully few prototypes,
2574 which can conflict with char $2 (); below.
2575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2576 <limits.h> exists even on freestanding compilers. */
2578 #ifdef __STDC__
2579 # include <limits.h>
2580 #else
2581 # include <assert.h>
2582 #endif
2584 #undef $2
2586 /* Override any GCC internal prototype to avoid an error.
2587 Use char because int might match the return type of a GCC
2588 builtin and then its argument prototype would still apply. */
2589 #ifdef __cplusplus
2590 extern "C"
2591 #endif
2592 char $2 ();
2593 /* The GNU C library defines this for functions which it implements
2594 to always fail with ENOSYS. Some functions are actually named
2595 something starting with __ and the normal name is an alias. */
2596 #if defined __stub_$2 || defined __stub___$2
2597 choke me
2598 #endif
2601 main ()
2603 return $2 ();
2605 return 0;
2607 _ACEOF
2608 if ac_fn_c_try_link "$LINENO"; then :
2609 eval "$3=yes"
2610 else
2611 eval "$3=no"
2613 rm -f core conftest.err conftest.$ac_objext \
2614 conftest$ac_exeext conftest.$ac_ext
2616 eval ac_res=\$$3
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2618 $as_echo "$ac_res" >&6; }
2619 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2621 } # ac_fn_c_check_func
2623 # ac_fn_cxx_try_link LINENO
2624 # -------------------------
2625 # Try to link conftest.$ac_ext, and return whether this succeeded.
2626 ac_fn_cxx_try_link ()
2628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2629 rm -f conftest.$ac_objext conftest$ac_exeext
2630 if { { ac_try="$ac_link"
2631 case "(($ac_try" in
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2634 esac
2635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2636 $as_echo "$ac_try_echo"; } >&5
2637 (eval "$ac_link") 2>conftest.err
2638 ac_status=$?
2639 if test -s conftest.err; then
2640 grep -v '^ *+' conftest.err >conftest.er1
2641 cat conftest.er1 >&5
2642 mv -f conftest.er1 conftest.err
2644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2645 test $ac_status = 0; } && {
2646 test -z "$ac_cxx_werror_flag" ||
2647 test ! -s conftest.err
2648 } && test -s conftest$ac_exeext && {
2649 test "$cross_compiling" = yes ||
2650 $as_test_x conftest$ac_exeext
2651 }; then :
2652 ac_retval=0
2653 else
2654 $as_echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2657 ac_retval=1
2659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2661 # interfere with the next link command; also delete a directory that is
2662 # left behind by Apple's compiler. We do this before executing the actions.
2663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2665 return $ac_retval
2667 } # ac_fn_cxx_try_link
2668 cat >config.log <<_ACEOF
2669 This file contains any messages produced by compilers while
2670 running configure, to aid debugging if configure makes a mistake.
2672 It was created by $as_me, which was
2673 generated by GNU Autoconf 2.64. Invocation command line was
2675 $ $0 $@
2677 _ACEOF
2678 exec 5>>config.log
2680 cat <<_ASUNAME
2681 ## --------- ##
2682 ## Platform. ##
2683 ## --------- ##
2685 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2686 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2687 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2688 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2689 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2691 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2692 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2694 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2695 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2696 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2697 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2698 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2699 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2700 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2702 _ASUNAME
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 $as_echo "PATH: $as_dir"
2710 done
2711 IFS=$as_save_IFS
2713 } >&5
2715 cat >&5 <<_ACEOF
2718 ## ----------- ##
2719 ## Core tests. ##
2720 ## ----------- ##
2722 _ACEOF
2725 # Keep a trace of the command line.
2726 # Strip out --no-create and --no-recursion so they do not pile up.
2727 # Strip out --silent because we don't want to record it for future runs.
2728 # Also quote any args containing shell meta-characters.
2729 # Make two passes to allow for proper duplicate-argument suppression.
2730 ac_configure_args=
2731 ac_configure_args0=
2732 ac_configure_args1=
2733 ac_must_keep_next=false
2734 for ac_pass in 1 2
2736 for ac_arg
2738 case $ac_arg in
2739 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2741 | -silent | --silent | --silen | --sile | --sil)
2742 continue ;;
2743 *\'*)
2744 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2745 esac
2746 case $ac_pass in
2747 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2749 as_fn_append ac_configure_args1 " '$ac_arg'"
2750 if test $ac_must_keep_next = true; then
2751 ac_must_keep_next=false # Got value, back to normal.
2752 else
2753 case $ac_arg in
2754 *=* | --config-cache | -C | -disable-* | --disable-* \
2755 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2756 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2757 | -with-* | --with-* | -without-* | --without-* | --x)
2758 case "$ac_configure_args0 " in
2759 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2760 esac
2762 -* ) ac_must_keep_next=true ;;
2763 esac
2765 as_fn_append ac_configure_args " '$ac_arg'"
2767 esac
2768 done
2769 done
2770 { ac_configure_args0=; unset ac_configure_args0;}
2771 { ac_configure_args1=; unset ac_configure_args1;}
2773 # When interrupted or exit'd, cleanup temporary files, and complete
2774 # config.log. We remove comments because anyway the quotes in there
2775 # would cause problems or look ugly.
2776 # WARNING: Use '\'' to represent an apostrophe within the trap.
2777 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2778 trap 'exit_status=$?
2779 # Save into config.log some information that might help in debugging.
2781 echo
2783 cat <<\_ASBOX
2784 ## ---------------- ##
2785 ## Cache variables. ##
2786 ## ---------------- ##
2787 _ASBOX
2788 echo
2789 # The following way of writing the cache mishandles newlines in values,
2791 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2792 eval ac_val=\$$ac_var
2793 case $ac_val in #(
2794 *${as_nl}*)
2795 case $ac_var in #(
2796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2798 esac
2799 case $ac_var in #(
2800 _ | IFS | as_nl) ;; #(
2801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2802 *) { eval $ac_var=; unset $ac_var;} ;;
2803 esac ;;
2804 esac
2805 done
2806 (set) 2>&1 |
2807 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2808 *${as_nl}ac_space=\ *)
2809 sed -n \
2810 "s/'\''/'\''\\\\'\'''\''/g;
2811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2812 ;; #(
2814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2816 esac |
2817 sort
2819 echo
2821 cat <<\_ASBOX
2822 ## ----------------- ##
2823 ## Output variables. ##
2824 ## ----------------- ##
2825 _ASBOX
2826 echo
2827 for ac_var in $ac_subst_vars
2829 eval ac_val=\$$ac_var
2830 case $ac_val in
2831 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2832 esac
2833 $as_echo "$ac_var='\''$ac_val'\''"
2834 done | sort
2835 echo
2837 if test -n "$ac_subst_files"; then
2838 cat <<\_ASBOX
2839 ## ------------------- ##
2840 ## File substitutions. ##
2841 ## ------------------- ##
2842 _ASBOX
2843 echo
2844 for ac_var in $ac_subst_files
2846 eval ac_val=\$$ac_var
2847 case $ac_val in
2848 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2849 esac
2850 $as_echo "$ac_var='\''$ac_val'\''"
2851 done | sort
2852 echo
2855 if test -s confdefs.h; then
2856 cat <<\_ASBOX
2857 ## ----------- ##
2858 ## confdefs.h. ##
2859 ## ----------- ##
2860 _ASBOX
2861 echo
2862 cat confdefs.h
2863 echo
2865 test "$ac_signal" != 0 &&
2866 $as_echo "$as_me: caught signal $ac_signal"
2867 $as_echo "$as_me: exit $exit_status"
2868 } >&5
2869 rm -f core *.core core.conftest.* &&
2870 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2871 exit $exit_status
2873 for ac_signal in 1 2 13 15; do
2874 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2875 done
2876 ac_signal=0
2878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2879 rm -f -r conftest* confdefs.h
2881 $as_echo "/* confdefs.h */" > confdefs.h
2883 # Predefined preprocessor variables.
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_NAME "$PACKAGE_NAME"
2887 _ACEOF
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2891 _ACEOF
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2895 _ACEOF
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_STRING "$PACKAGE_STRING"
2899 _ACEOF
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2903 _ACEOF
2905 cat >>confdefs.h <<_ACEOF
2906 #define PACKAGE_URL "$PACKAGE_URL"
2907 _ACEOF
2910 # Let the site file select an alternate cache file if it wants to.
2911 # Prefer an explicitly selected file to automatically selected ones.
2912 ac_site_file1=NONE
2913 ac_site_file2=NONE
2914 if test -n "$CONFIG_SITE"; then
2915 ac_site_file1=$CONFIG_SITE
2916 elif test "x$prefix" != xNONE; then
2917 ac_site_file1=$prefix/share/config.site
2918 ac_site_file2=$prefix/etc/config.site
2919 else
2920 ac_site_file1=$ac_default_prefix/share/config.site
2921 ac_site_file2=$ac_default_prefix/etc/config.site
2923 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2925 test "x$ac_site_file" = xNONE && continue
2926 if test -r "$ac_site_file"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2928 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2929 sed 's/^/| /' "$ac_site_file" >&5
2930 . "$ac_site_file"
2932 done
2934 if test -r "$cache_file"; then
2935 # Some versions of bash will fail to source /dev/null (special
2936 # files actually), so we avoid doing that.
2937 if test -f "$cache_file"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2939 $as_echo "$as_me: loading cache $cache_file" >&6;}
2940 case $cache_file in
2941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2942 *) . "./$cache_file";;
2943 esac
2945 else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2947 $as_echo "$as_me: creating cache $cache_file" >&6;}
2948 >$cache_file
2951 # Check that the precious variables saved in the cache have kept the same
2952 # value.
2953 ac_cache_corrupted=false
2954 for ac_var in $ac_precious_vars; do
2955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2956 eval ac_new_set=\$ac_env_${ac_var}_set
2957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2958 eval ac_new_val=\$ac_env_${ac_var}_value
2959 case $ac_old_set,$ac_new_set in
2960 set,)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2962 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2963 ac_cache_corrupted=: ;;
2964 ,set)
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2966 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2967 ac_cache_corrupted=: ;;
2968 ,);;
2970 if test "x$ac_old_val" != "x$ac_new_val"; then
2971 # differences in whitespace do not lead to failure.
2972 ac_old_val_w=`echo x $ac_old_val`
2973 ac_new_val_w=`echo x $ac_new_val`
2974 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2976 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2977 ac_cache_corrupted=:
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2980 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2981 eval $ac_var=\$ac_old_val
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2984 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2986 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2987 fi;;
2988 esac
2989 # Pass precious variables to config.status.
2990 if test "$ac_new_set" = set; then
2991 case $ac_new_val in
2992 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2993 *) ac_arg=$ac_var=$ac_new_val ;;
2994 esac
2995 case " $ac_configure_args " in
2996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2997 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2998 esac
3000 done
3001 if $ac_cache_corrupted; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3006 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3008 ## -------------------- ##
3009 ## Main body of script. ##
3010 ## -------------------- ##
3012 ac_ext=c
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3026 gcc_version=`cat $srcdir/BASE-VER`
3028 # Determine the host, build, and target systems
3029 ac_aux_dir=
3030 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3031 for ac_t in install-sh install.sh shtool; do
3032 if test -f "$ac_dir/$ac_t"; then
3033 ac_aux_dir=$ac_dir
3034 ac_install_sh="$ac_aux_dir/$ac_t -c"
3035 break 2
3037 done
3038 done
3039 if test -z "$ac_aux_dir"; then
3040 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3043 # These three variables are undocumented and unsupported,
3044 # and are intended to be withdrawn in a future Autoconf release.
3045 # They can cause serious problems if a builder's source tree is in a directory
3046 # whose full name contains unusual characters.
3047 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3048 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3049 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3052 # Make sure we can run config.sub.
3053 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3054 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3057 $as_echo_n "checking build system type... " >&6; }
3058 if test "${ac_cv_build+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 ac_build_alias=$build_alias
3062 test "x$ac_build_alias" = x &&
3063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3064 test "x$ac_build_alias" = x &&
3065 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3066 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3067 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3071 $as_echo "$ac_cv_build" >&6; }
3072 case $ac_cv_build in
3073 *-*-*) ;;
3074 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3075 esac
3076 build=$ac_cv_build
3077 ac_save_IFS=$IFS; IFS='-'
3078 set x $ac_cv_build
3079 shift
3080 build_cpu=$1
3081 build_vendor=$2
3082 shift; shift
3083 # Remember, the first character of IFS is used to create $*,
3084 # except with old shells:
3085 build_os=$*
3086 IFS=$ac_save_IFS
3087 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3091 $as_echo_n "checking host system type... " >&6; }
3092 if test "${ac_cv_host+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test "x$host_alias" = x; then
3096 ac_cv_host=$ac_cv_build
3097 else
3098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3099 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3104 $as_echo "$ac_cv_host" >&6; }
3105 case $ac_cv_host in
3106 *-*-*) ;;
3107 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3108 esac
3109 host=$ac_cv_host
3110 ac_save_IFS=$IFS; IFS='-'
3111 set x $ac_cv_host
3112 shift
3113 host_cpu=$1
3114 host_vendor=$2
3115 shift; shift
3116 # Remember, the first character of IFS is used to create $*,
3117 # except with old shells:
3118 host_os=$*
3119 IFS=$ac_save_IFS
3120 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3124 $as_echo_n "checking target system type... " >&6; }
3125 if test "${ac_cv_target+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test "x$target_alias" = x; then
3129 ac_cv_target=$ac_cv_host
3130 else
3131 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3132 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3137 $as_echo "$ac_cv_target" >&6; }
3138 case $ac_cv_target in
3139 *-*-*) ;;
3140 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3141 esac
3142 target=$ac_cv_target
3143 ac_save_IFS=$IFS; IFS='-'
3144 set x $ac_cv_target
3145 shift
3146 target_cpu=$1
3147 target_vendor=$2
3148 shift; shift
3149 # Remember, the first character of IFS is used to create $*,
3150 # except with old shells:
3151 target_os=$*
3152 IFS=$ac_save_IFS
3153 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3156 # The aliases save the names the user supplied, while $host etc.
3157 # will get canonicalized.
3158 test -n "$target_alias" &&
3159 test "$program_prefix$program_suffix$program_transform_name" = \
3160 NONENONEs,x,x, &&
3161 program_prefix=${target_alias}-
3163 # Determine the noncanonical target name, for directory use.
3164 case ${build_alias} in
3165 "") build_noncanonical=${build} ;;
3166 *) build_noncanonical=${build_alias} ;;
3167 esac
3169 case ${host_alias} in
3170 "") host_noncanonical=${build_noncanonical} ;;
3171 *) host_noncanonical=${host_alias} ;;
3172 esac
3174 case ${target_alias} in
3175 "") target_noncanonical=${host_noncanonical} ;;
3176 *) target_noncanonical=${target_alias} ;;
3177 esac
3182 # Determine the target- and build-specific subdirectories
3184 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3185 # have matching libraries, they should use host libraries: Makefile.tpl
3186 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3187 # However, they still use the build modules, because the corresponding
3188 # host modules (e.g. bison) are only built for the host when bootstrap
3189 # finishes. So:
3190 # - build_subdir is where we find build modules, and never changes.
3191 # - build_libsubdir is where we find build libraries, and can be overridden.
3193 # Prefix 'build-' so this never conflicts with target_subdir.
3194 build_subdir="build-${build_noncanonical}"
3196 # Check whether --with-build-libsubdir was given.
3197 if test "${with_build_libsubdir+set}" = set; then :
3198 withval=$with_build_libsubdir; build_libsubdir="$withval"
3199 else
3200 build_libsubdir="$build_subdir"
3203 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3204 if ( test $srcdir = . && test -d gcc ) \
3205 || test -d $srcdir/../host-${host_noncanonical}; then
3206 host_subdir="host-${host_noncanonical}"
3207 else
3208 host_subdir=.
3210 # No prefix.
3211 target_subdir=${target_noncanonical}
3214 # Set program_transform_name
3215 test "$program_prefix" != NONE &&
3216 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3217 # Use a double $ so make ignores it.
3218 test "$program_suffix" != NONE &&
3219 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3220 # Double any \ or $.
3221 # By default was `s,x,x', remove it if useless.
3222 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3223 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3226 # Check for bogus environment variables.
3227 # Test if LIBRARY_PATH contains the notation for the current directory
3228 # since this would lead to problems installing/building glibc.
3229 # LIBRARY_PATH contains the current directory if one of the following
3230 # is true:
3231 # - one of the terminals (":" and ";") is the first or last sign
3232 # - two terminals occur directly after each other
3233 # - the path contains an element with a dot in it
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3235 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3236 case ${LIBRARY_PATH} in
3237 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3238 library_path_setting="contains current directory"
3241 library_path_setting="ok"
3243 esac
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3245 $as_echo "$library_path_setting" >&6; }
3246 if test "$library_path_setting" != "ok"; then
3247 as_fn_error "
3248 *** LIBRARY_PATH shouldn't contain the current directory when
3249 *** building gcc. Please change the environment variable
3250 *** and run configure again." "$LINENO" 5
3253 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3254 # since this would lead to problems installing/building glibc.
3255 # GCC_EXEC_PREFIX contains the current directory if one of the following
3256 # is true:
3257 # - one of the terminals (":" and ";") is the first or last sign
3258 # - two terminals occur directly after each other
3259 # - the path contains an element with a dot in it
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3261 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3262 case ${GCC_EXEC_PREFIX} in
3263 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3264 gcc_exec_prefix_setting="contains current directory"
3267 gcc_exec_prefix_setting="ok"
3269 esac
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3271 $as_echo "$gcc_exec_prefix_setting" >&6; }
3272 if test "$gcc_exec_prefix_setting" != "ok"; then
3273 as_fn_error "
3274 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3275 *** building gcc. Please change the environment variable
3276 *** and run configure again." "$LINENO" 5
3279 # -----------
3280 # Directories
3281 # -----------
3283 # Specify the local prefix
3284 local_prefix=
3286 # Check whether --with-local-prefix was given.
3287 if test "${with_local_prefix+set}" = set; then :
3288 withval=$with_local_prefix; case "${withval}" in
3289 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3290 no) ;;
3291 *) local_prefix=$with_local_prefix ;;
3292 esac
3296 # Default local prefix if it is empty
3297 if test x$local_prefix = x; then
3298 local_prefix=/usr/local
3301 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3302 # passed in by the toplevel make and thus we'd get different behavior
3303 # depending on where we built the sources.
3304 gcc_gxx_include_dir=
3305 # Specify the g++ header file directory
3307 # Check whether --with-gxx-include-dir was given.
3308 if test "${with_gxx_include_dir+set}" = set; then :
3309 withval=$with_gxx_include_dir; case "${withval}" in
3310 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3311 no) ;;
3312 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3313 esac
3317 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3318 if test x${gcc_gxx_include_dir} = x; then
3319 if test x${enable_version_specific_runtime_libs} = xyes; then
3320 gcc_gxx_include_dir='${libsubdir}/include/c++'
3321 else
3322 libstdcxx_incdir='include/c++/$(version)'
3323 if test x$host != x$target; then
3324 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3326 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3330 gcc_gxx_include_dir_add_sysroot=0
3331 if test "${with_sysroot+set}" = set; then
3332 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3333 if test "${gcc_gxx_without_sysroot}"; then
3334 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3335 gcc_gxx_include_dir_add_sysroot=1
3340 # Check whether --with-cpp_install_dir was given.
3341 if test "${with_cpp_install_dir+set}" = set; then :
3342 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3343 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3344 elif test x$withval != xno; then
3345 cpp_install_dir=$withval
3350 # We would like to our source tree to be readonly. However when releases or
3351 # pre-releases are generated, the flex/bison generated files as well as the
3352 # various formats of manuals need to be included along with the rest of the
3353 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3354 # just that.
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3357 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3358 # Check whether --enable-generated-files-in-srcdir was given.
3359 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3360 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3361 else
3362 generated_files_in_srcdir=no
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3367 $as_echo "$generated_files_in_srcdir" >&6; }
3369 if test "$generated_files_in_srcdir" = "yes"; then
3370 GENINSRC=''
3371 else
3372 GENINSRC='#'
3376 # -------------------
3377 # Find default linker
3378 # -------------------
3380 # With GNU ld
3382 # Check whether --with-gnu-ld was given.
3383 if test "${with_gnu_ld+set}" = set; then :
3384 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3385 else
3386 gnu_ld_flag=no
3390 # With pre-defined ld
3392 # Check whether --with-ld was given.
3393 if test "${with_ld+set}" = set; then :
3394 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3398 if test ! -x "$DEFAULT_LINKER"; then
3399 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3400 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3401 gnu_ld_flag=yes
3404 cat >>confdefs.h <<_ACEOF
3405 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3406 _ACEOF
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3411 $as_echo_n "checking whether a default linker was specified... " >&6; }
3412 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3413 if test x"$gnu_ld_flag" = x"no"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3415 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3418 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3420 else
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3425 # With demangler in GNU ld
3427 # Check whether --with-demangler-in-ld was given.
3428 if test "${with_demangler_in_ld+set}" = set; then :
3429 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3430 else
3431 demangler_in_ld=yes
3435 # ----------------------
3436 # Find default assembler
3437 # ----------------------
3439 # With GNU as
3441 # Check whether --with-gnu-as was given.
3442 if test "${with_gnu_as+set}" = set; then :
3443 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3444 else
3445 gas_flag=no
3450 # Check whether --with-as was given.
3451 if test "${with_as+set}" = set; then :
3452 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3455 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3456 if test ! -x "$DEFAULT_ASSEMBLER"; then
3457 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3458 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3459 gas_flag=yes
3462 cat >>confdefs.h <<_ACEOF
3463 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3464 _ACEOF
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3469 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3470 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3471 if test x"$gas_flag" = x"no"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3473 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3474 else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3476 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3478 else
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3483 # ---------------
3484 # Find C compiler
3485 # ---------------
3487 # If a non-executable a.out is present (e.g. created by GNU as above even if
3488 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3489 # file, even when creating an executable, so an execution test fails.
3490 # Remove possible default executable files to avoid this.
3492 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3493 # Autoconf includes it.
3494 rm -f a.out a.exe b.out
3496 # Find the native compiler
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_CC+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 break 2
3524 done
3525 done
3526 IFS=$as_save_IFS
3530 CC=$ac_cv_prog_CC
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3534 else
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3541 if test -z "$ac_cv_prog_CC"; then
3542 ac_ct_CC=$CC
3543 # Extract the first word of "gcc", so it can be a program name with args.
3544 set dummy gcc; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -n "$ac_ct_CC"; then
3551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_ac_ct_CC="gcc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3564 done
3565 done
3566 IFS=$as_save_IFS
3570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3571 if test -n "$ac_ct_CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3573 $as_echo "$ac_ct_CC" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3579 if test "x$ac_ct_CC" = x; then
3580 CC=""
3581 else
3582 case $cross_compiling:$ac_tool_warned in
3583 yes:)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3587 esac
3588 CC=$ac_ct_CC
3590 else
3591 CC="$ac_cv_prog_CC"
3594 if test -z "$CC"; then
3595 if test -n "$ac_tool_prefix"; then
3596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3597 set dummy ${ac_tool_prefix}cc; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if test "${ac_cv_prog_CC+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 if test -n "$CC"; then
3604 ac_cv_prog_CC="$CC" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613 ac_cv_prog_CC="${ac_tool_prefix}cc"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3617 done
3618 done
3619 IFS=$as_save_IFS
3623 CC=$ac_cv_prog_CC
3624 if test -n "$CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3626 $as_echo "$CC" >&6; }
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3635 if test -z "$CC"; then
3636 # Extract the first word of "cc", so it can be a program name with args.
3637 set dummy cc; ac_word=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if test "${ac_cv_prog_CC+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 if test -n "$CC"; then
3644 ac_cv_prog_CC="$CC" # Let the user override the test.
3645 else
3646 ac_prog_rejected=no
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3655 ac_prog_rejected=yes
3656 continue
3658 ac_cv_prog_CC="cc"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3662 done
3663 done
3664 IFS=$as_save_IFS
3666 if test $ac_prog_rejected = yes; then
3667 # We found a bogon in the path, so make sure we never use it.
3668 set dummy $ac_cv_prog_CC
3669 shift
3670 if test $# != 0; then
3671 # We chose a different compiler from the bogus one.
3672 # However, it has the same basename, so the bogon will be chosen
3673 # first if we set CC to just the basename; use the full file name.
3674 shift
3675 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3680 CC=$ac_cv_prog_CC
3681 if test -n "$CC"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3683 $as_echo "$CC" >&6; }
3684 else
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3691 if test -z "$CC"; then
3692 if test -n "$ac_tool_prefix"; then
3693 for ac_prog in cl.exe
3695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_CC+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3716 done
3717 done
3718 IFS=$as_save_IFS
3722 CC=$ac_cv_prog_CC
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$CC" && break
3733 done
3735 if test -z "$CC"; then
3736 ac_ct_CC=$CC
3737 for ac_prog in cl.exe
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy $ac_prog; ac_word=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 if test -n "$ac_ct_CC"; then
3747 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3756 ac_cv_prog_ac_ct_CC="$ac_prog"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3760 done
3761 done
3762 IFS=$as_save_IFS
3766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3767 if test -n "$ac_ct_CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3769 $as_echo "$ac_ct_CC" >&6; }
3770 else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3776 test -n "$ac_ct_CC" && break
3777 done
3779 if test "x$ac_ct_CC" = x; then
3780 CC=""
3781 else
3782 case $cross_compiling:$ac_tool_warned in
3783 yes:)
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned=yes ;;
3787 esac
3788 CC=$ac_ct_CC
3795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error "no acceptable C compiler found in \$PATH
3798 See \`config.log' for more details." "$LINENO" 5; }
3800 # Provide some information about the compiler.
3801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3802 set X $ac_compile
3803 ac_compiler=$2
3804 for ac_option in --version -v -V -qversion; do
3805 { { ac_try="$ac_compiler $ac_option >&5"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3813 ac_status=$?
3814 if test -s conftest.err; then
3815 sed '10a\
3816 ... rest of stderr output deleted ...
3817 10q' conftest.err >conftest.er1
3818 cat conftest.er1 >&5
3819 rm -f conftest.er1 conftest.err
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3823 done
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3829 main ()
3833 return 0;
3835 _ACEOF
3836 ac_clean_files_save=$ac_clean_files
3837 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3838 # Try to create an executable without -o first, disregard a.out.
3839 # It will help us diagnose broken compilers, and finding out an intuition
3840 # of exeext.
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3842 $as_echo_n "checking for C compiler default output file name... " >&6; }
3843 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3845 # The possible output files:
3846 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3848 ac_rmfiles=
3849 for ac_file in $ac_files
3851 case $ac_file in
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3854 esac
3855 done
3856 rm -f $ac_rmfiles
3858 if { { ac_try="$ac_link_default"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_link_default") 2>&5
3866 ac_status=$?
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }; then :
3869 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3870 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3871 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3872 # so that the user can short-circuit this test for compilers unknown to
3873 # Autoconf.
3874 for ac_file in $ac_files ''
3876 test -f "$ac_file" || continue
3877 case $ac_file in
3878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3880 [ab].out )
3881 # We found the default executable, but exeext='' is most
3882 # certainly right.
3883 break;;
3884 *.* )
3885 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3886 then :; else
3887 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3889 # We set ac_cv_exeext here because the later test for it is not
3890 # safe: cross compilers may not add the suffix if given an `-o'
3891 # argument, so we may need to know it at that point already.
3892 # Even if this section looks crufty: it has the advantage of
3893 # actually working.
3894 break;;
3896 break;;
3897 esac
3898 done
3899 test "$ac_cv_exeext" = no && ac_cv_exeext=
3901 else
3902 ac_file=''
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3905 $as_echo "$ac_file" >&6; }
3906 if test -z "$ac_file"; then :
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912 { as_fn_set_status 77
3913 as_fn_error "C compiler cannot create executables
3914 See \`config.log' for more details." "$LINENO" 5; }; }
3916 ac_exeext=$ac_cv_exeext
3918 # Check that the compiler produces executables we can run. If not, either
3919 # the compiler is broken, or we cross compile.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3921 $as_echo_n "checking whether the C compiler works... " >&6; }
3922 # If not cross compiling, check that we can run a simple program.
3923 if test "$cross_compiling" != yes; then
3924 if { ac_try='./$ac_file'
3925 { { case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3928 esac
3929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3930 $as_echo "$ac_try_echo"; } >&5
3931 (eval "$ac_try") 2>&5
3932 ac_status=$?
3933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3934 test $ac_status = 0; }; }; then
3935 cross_compiling=no
3936 else
3937 if test "$cross_compiling" = maybe; then
3938 cross_compiling=yes
3939 else
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error "cannot run C compiled programs.
3943 If you meant to cross compile, use \`--host'.
3944 See \`config.log' for more details." "$LINENO" 5; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3951 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3952 ac_clean_files=$ac_clean_files_save
3953 # Check that the compiler produces executables we can run. If not, either
3954 # the compiler is broken, or we cross compile.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3956 $as_echo_n "checking whether we are cross compiling... " >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3958 $as_echo "$cross_compiling" >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3961 $as_echo_n "checking for suffix of executables... " >&6; }
3962 if { { ac_try="$ac_link"
3963 case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966 esac
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 $as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_link") 2>&5
3970 ac_status=$?
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; then :
3973 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3974 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3975 # work properly (i.e., refer to `conftest.exe'), while it won't with
3976 # `rm'.
3977 for ac_file in conftest.exe conftest conftest.*; do
3978 test -f "$ac_file" || continue
3979 case $ac_file in
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3981 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3982 break;;
3983 * ) break;;
3984 esac
3985 done
3986 else
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error "cannot compute suffix of executables: cannot compile and link
3990 See \`config.log' for more details." "$LINENO" 5; }
3992 rm -f conftest$ac_cv_exeext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3994 $as_echo "$ac_cv_exeext" >&6; }
3996 rm -f conftest.$ac_ext
3997 EXEEXT=$ac_cv_exeext
3998 ac_exeext=$EXEEXT
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4000 $as_echo_n "checking for suffix of object files... " >&6; }
4001 if test "${ac_cv_objext+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4008 main ()
4012 return 0;
4014 _ACEOF
4015 rm -f conftest.o conftest.obj
4016 if { { ac_try="$ac_compile"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_compile") 2>&5
4024 ac_status=$?
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; then :
4027 for ac_file in conftest.o conftest.obj conftest.*; do
4028 test -f "$ac_file" || continue;
4029 case $ac_file in
4030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4032 break;;
4033 esac
4034 done
4035 else
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "cannot compute suffix of object files: cannot compile
4042 See \`config.log' for more details." "$LINENO" 5; }
4044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4047 $as_echo "$ac_cv_objext" >&6; }
4048 OBJEXT=$ac_cv_objext
4049 ac_objext=$OBJEXT
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4051 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4052 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4059 main ()
4061 #ifndef __GNUC__
4062 choke me
4063 #endif
4066 return 0;
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"; then :
4070 ac_compiler_gnu=yes
4071 else
4072 ac_compiler_gnu=no
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4079 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4080 if test $ac_compiler_gnu = yes; then
4081 GCC=yes
4082 else
4083 GCC=
4085 ac_test_CFLAGS=${CFLAGS+set}
4086 ac_save_CFLAGS=$CFLAGS
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4088 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4089 if test "${ac_cv_prog_cc_g+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 ac_save_c_werror_flag=$ac_c_werror_flag
4093 ac_c_werror_flag=yes
4094 ac_cv_prog_cc_g=no
4095 CFLAGS="-g"
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4100 main ()
4104 return 0;
4106 _ACEOF
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108 ac_cv_prog_cc_g=yes
4109 else
4110 CFLAGS=""
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4115 main ()
4119 return 0;
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4124 else
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4126 CFLAGS="-g"
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4131 main ()
4135 return 0;
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_cv_prog_cc_g=yes
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4149 $as_echo "$ac_cv_prog_cc_g" >&6; }
4150 if test "$ac_test_CFLAGS" = set; then
4151 CFLAGS=$ac_save_CFLAGS
4152 elif test $ac_cv_prog_cc_g = yes; then
4153 if test "$GCC" = yes; then
4154 CFLAGS="-g -O2"
4155 else
4156 CFLAGS="-g"
4158 else
4159 if test "$GCC" = yes; then
4160 CFLAGS="-O2"
4161 else
4162 CFLAGS=
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4166 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4167 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 ac_cv_prog_cc_c89=no
4171 ac_save_CC=$CC
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <stdarg.h>
4175 #include <stdio.h>
4176 #include <sys/types.h>
4177 #include <sys/stat.h>
4178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4179 struct buf { int x; };
4180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4181 static char *e (p, i)
4182 char **p;
4183 int i;
4185 return p[i];
4187 static char *f (char * (*g) (char **, int), char **p, ...)
4189 char *s;
4190 va_list v;
4191 va_start (v,p);
4192 s = g (p, va_arg (v,int));
4193 va_end (v);
4194 return s;
4197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4198 function prototypes and stuff, but not '\xHH' hex character constants.
4199 These don't provoke an error unfortunately, instead are silently treated
4200 as 'x'. The following induces an error, until -std is added to get
4201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4202 array size at least. It's necessary to write '\x00'==0 to get something
4203 that's true only with -std. */
4204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4207 inside strings and character constants. */
4208 #define FOO(x) 'x'
4209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4211 int test (int i, double x);
4212 struct s1 {int (*f) (int a);};
4213 struct s2 {int (*f) (double a);};
4214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4215 int argc;
4216 char **argv;
4218 main ()
4220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4222 return 0;
4224 _ACEOF
4225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4228 CC="$ac_save_CC $ac_arg"
4229 if ac_fn_c_try_compile "$LINENO"; then :
4230 ac_cv_prog_cc_c89=$ac_arg
4232 rm -f core conftest.err conftest.$ac_objext
4233 test "x$ac_cv_prog_cc_c89" != "xno" && break
4234 done
4235 rm -f conftest.$ac_ext
4236 CC=$ac_save_CC
4239 # AC_CACHE_VAL
4240 case "x$ac_cv_prog_cc_c89" in
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4243 $as_echo "none needed" >&6; } ;;
4244 xno)
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4246 $as_echo "unsupported" >&6; } ;;
4248 CC="$CC $ac_cv_prog_cc_c89"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4251 esac
4252 if test "x$ac_cv_prog_cc_c89" != xno; then :
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 if test "x$CC" != xcc; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4264 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4267 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4269 set dummy $CC; ac_cc=`$as_echo "$2" |
4270 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4271 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4278 main ()
4282 return 0;
4284 _ACEOF
4285 # Make sure it works both with $CC and with simple cc.
4286 # We do the test twice because some compilers refuse to overwrite an
4287 # existing .o file with -o, though they will create one.
4288 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4289 rm -f conftest2.*
4290 if { { case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; } &&
4300 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_try") 2>&5
4307 ac_status=$?
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; };
4310 then
4311 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4312 if test "x$CC" != xcc; then
4313 # Test first that cc exists at all.
4314 if { ac_try='cc -c conftest.$ac_ext >&5'
4315 { { case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318 esac
4319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4320 $as_echo "$ac_try_echo"; } >&5
4321 (eval "$ac_try") 2>&5
4322 ac_status=$?
4323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4324 test $ac_status = 0; }; }; then
4325 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4326 rm -f conftest2.*
4327 if { { case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332 $as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_try") 2>&5
4334 ac_status=$?
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; } &&
4337 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342 $as_echo "$ac_try_echo"; } >&5
4343 (eval "$ac_try") 2>&5
4344 ac_status=$?
4345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346 test $ac_status = 0; };
4347 then
4348 # cc works too.
4350 else
4351 # cc exists but doesn't like -o.
4352 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4356 else
4357 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4359 rm -f core conftest*
4362 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4364 $as_echo "yes" >&6; }
4365 else
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4369 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4373 # expand $ac_aux_dir to an absolute path
4374 am_aux_dir=`cd $ac_aux_dir && pwd`
4376 # FIXME: we rely on the cache variable name because
4377 # there is no other way.
4378 set dummy $CC
4379 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4380 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4381 if test "$am_t" != yes; then
4382 # Losing compiler, so override with the script.
4383 # FIXME: It is wrong to rewrite CC.
4384 # But if we don't then we get into trouble of one sort or another.
4385 # A longer-term fix would be to have automake use am__CC in this case,
4386 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4387 CC="$am_aux_dir/compile $CC"
4391 ac_ext=cpp
4392 ac_cpp='$CXXCPP $CPPFLAGS'
4393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4396 if test -z "$CXX"; then
4397 if test -n "$CCC"; then
4398 CXX=$CCC
4399 else
4400 if test -n "$ac_tool_prefix"; then
4401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if test "${ac_cv_prog_CXX+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -n "$CXX"; then
4411 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4424 done
4425 done
4426 IFS=$as_save_IFS
4430 CXX=$ac_cv_prog_CXX
4431 if test -n "$CXX"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4433 $as_echo "$CXX" >&6; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4440 test -n "$CXX" && break
4441 done
4443 if test -z "$CXX"; then
4444 ac_ct_CXX=$CXX
4445 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy $ac_prog; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -n "$ac_ct_CXX"; then
4455 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_ac_ct_CXX="$ac_prog"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4468 done
4469 done
4470 IFS=$as_save_IFS
4474 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4475 if test -n "$ac_ct_CXX"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4477 $as_echo "$ac_ct_CXX" >&6; }
4478 else
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4484 test -n "$ac_ct_CXX" && break
4485 done
4487 if test "x$ac_ct_CXX" = x; then
4488 CXX="g++"
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 CXX=$ac_ct_CXX
4502 # Provide some information about the compiler.
4503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4504 set X $ac_compile
4505 ac_compiler=$2
4506 for ac_option in --version -v -V -qversion; do
4507 { { ac_try="$ac_compiler $ac_option >&5"
4508 case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511 esac
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4515 ac_status=$?
4516 if test -s conftest.err; then
4517 sed '10a\
4518 ... rest of stderr output deleted ...
4519 10q' conftest.err >conftest.er1
4520 cat conftest.er1 >&5
4521 rm -f conftest.er1 conftest.err
4523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; }
4525 done
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4528 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4529 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4536 main ()
4538 #ifndef __GNUC__
4539 choke me
4540 #endif
4543 return 0;
4545 _ACEOF
4546 if ac_fn_cxx_try_compile "$LINENO"; then :
4547 ac_compiler_gnu=yes
4548 else
4549 ac_compiler_gnu=no
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4556 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4557 if test $ac_compiler_gnu = yes; then
4558 GXX=yes
4559 else
4560 GXX=
4562 ac_test_CXXFLAGS=${CXXFLAGS+set}
4563 ac_save_CXXFLAGS=$CXXFLAGS
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4565 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4566 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4570 ac_cxx_werror_flag=yes
4571 ac_cv_prog_cxx_g=no
4572 CXXFLAGS="-g"
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4577 main ()
4581 return 0;
4583 _ACEOF
4584 if ac_fn_cxx_try_compile "$LINENO"; then :
4585 ac_cv_prog_cxx_g=yes
4586 else
4587 CXXFLAGS=""
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4592 main ()
4596 return 0;
4598 _ACEOF
4599 if ac_fn_cxx_try_compile "$LINENO"; then :
4601 else
4602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4603 CXXFLAGS="-g"
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4608 main ()
4612 return 0;
4614 _ACEOF
4615 if ac_fn_cxx_try_compile "$LINENO"; then :
4616 ac_cv_prog_cxx_g=yes
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4626 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4627 if test "$ac_test_CXXFLAGS" = set; then
4628 CXXFLAGS=$ac_save_CXXFLAGS
4629 elif test $ac_cv_prog_cxx_g = yes; then
4630 if test "$GXX" = yes; then
4631 CXXFLAGS="-g -O2"
4632 else
4633 CXXFLAGS="-g"
4635 else
4636 if test "$GXX" = yes; then
4637 CXXFLAGS="-O2"
4638 else
4639 CXXFLAGS=
4642 ac_ext=c
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651 if test -n "$ac_tool_prefix"; then
4652 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4653 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$GNATBIND"; then
4660 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4673 done
4674 done
4675 IFS=$as_save_IFS
4679 GNATBIND=$ac_cv_prog_GNATBIND
4680 if test -n "$GNATBIND"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4682 $as_echo "$GNATBIND" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4690 if test -z "$ac_cv_prog_GNATBIND"; then
4691 ac_ct_GNATBIND=$GNATBIND
4692 # Extract the first word of "gnatbind", so it can be a program name with args.
4693 set dummy gnatbind; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 if test -n "$ac_ct_GNATBIND"; then
4700 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4713 done
4714 done
4715 IFS=$as_save_IFS
4719 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4720 if test -n "$ac_ct_GNATBIND"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4722 $as_echo "$ac_ct_GNATBIND" >&6; }
4723 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4728 if test "x$ac_ct_GNATBIND" = x; then
4729 GNATBIND="no"
4730 else
4731 case $cross_compiling:$ac_tool_warned in
4732 yes:)
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735 ac_tool_warned=yes ;;
4736 esac
4737 GNATBIND=$ac_ct_GNATBIND
4739 else
4740 GNATBIND="$ac_cv_prog_GNATBIND"
4743 if test -n "$ac_tool_prefix"; then
4744 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4745 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 $as_echo_n "checking for $ac_word... " >&6; }
4748 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if test -n "$GNATMAKE"; then
4752 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4765 done
4766 done
4767 IFS=$as_save_IFS
4771 GNATMAKE=$ac_cv_prog_GNATMAKE
4772 if test -n "$GNATMAKE"; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4774 $as_echo "$GNATMAKE" >&6; }
4775 else
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4782 if test -z "$ac_cv_prog_GNATMAKE"; then
4783 ac_ct_GNATMAKE=$GNATMAKE
4784 # Extract the first word of "gnatmake", so it can be a program name with args.
4785 set dummy gnatmake; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4790 else
4791 if test -n "$ac_ct_GNATMAKE"; then
4792 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 break 2
4805 done
4806 done
4807 IFS=$as_save_IFS
4811 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4812 if test -n "$ac_ct_GNATMAKE"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4814 $as_echo "$ac_ct_GNATMAKE" >&6; }
4815 else
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4820 if test "x$ac_ct_GNATMAKE" = x; then
4821 GNATMAKE="no"
4822 else
4823 case $cross_compiling:$ac_tool_warned in
4824 yes:)
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned=yes ;;
4828 esac
4829 GNATMAKE=$ac_ct_GNATMAKE
4831 else
4832 GNATMAKE="$ac_cv_prog_GNATMAKE"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4836 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4837 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 cat >conftest.adb <<EOF
4841 procedure conftest is begin null; end conftest;
4843 acx_cv_cc_gcc_supports_ada=no
4844 # There is a bug in old released versions of GCC which causes the
4845 # driver to exit successfully when the appropriate language module
4846 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4847 # Therefore we must check for the error message as well as an
4848 # unsuccessful exit.
4849 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4850 # given a .adb file, but produce no object file. So we must check
4851 # if an object file was really produced to guard against this.
4852 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4853 if test x"$errors" = x && test -f conftest.$ac_objext; then
4854 acx_cv_cc_gcc_supports_ada=yes
4856 rm -f conftest.*
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4859 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4861 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4862 have_gnat=yes
4863 else
4864 have_gnat=no
4868 # autoconf is lame and doesn't give us any substitution variable for this.
4869 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4870 NO_MINUS_C_MINUS_O=yes
4871 else
4872 OUTPUT_OPTION='-o $@'
4877 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4878 # optimizations to be activated explicitly by the toplevel.
4879 case "$CC" in
4880 */prev-gcc/xgcc*) ;;
4881 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4882 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4883 esac
4887 # Determine PICFLAG for target gnatlib.
4892 case "${target}" in
4893 # PIC is the default on some targets or must not be used.
4894 *-*-darwin*)
4895 # PIC is the default on this platform
4896 # Common symbols not allowed in MH_DYLIB files
4897 PICFLAG_FOR_TARGET=-fno-common
4899 alpha*-dec-osf5*)
4900 # PIC is the default.
4902 hppa*64*-*-hpux*)
4903 # PIC is the default for 64-bit PA HP-UX.
4905 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4907 i[34567]86-*-mingw* | x86_64-*-mingw*)
4909 i[34567]86-*-interix[3-9]*)
4910 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4911 # Instead, we relocate shared libraries at runtime.
4913 i[34567]86-*-nto-qnx*)
4914 # QNX uses GNU C++, but need to define -shared option too, otherwise
4915 # it will coredump.
4916 PICFLAG_FOR_TARGET='-fPIC -shared'
4918 i[34567]86-pc-msdosdjgpp*)
4919 # DJGPP does not support shared libraries at all.
4921 ia64*-*-hpux*)
4922 # On IA64 HP-UX, PIC is the default but the pic flag
4923 # sets the default TLS model and affects inlining.
4924 PICFLAG_FOR_TARGET=-fPIC
4926 mips-sgi-irix6*)
4927 # PIC is the default.
4929 rs6000-ibm-aix* | powerpc-ibm-aix*)
4930 # All AIX code is PIC.
4933 # Some targets support both -fPIC and -fpic, but prefer the latter.
4934 # FIXME: Why?
4935 i[34567]86-*-* | x86_64-*-*)
4936 PICFLAG_FOR_TARGET=-fpic
4938 m68k-*-*)
4939 PICFLAG_FOR_TARGET=-fpic
4941 # FIXME: Override -fPIC default in libgcc only?
4942 sh-*-linux* | sh[2346lbe]*-*-linux*)
4943 PICFLAG_FOR_TARGET=-fpic
4945 # FIXME: Simplify to sh*-*-netbsd*?
4946 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4947 sh64-*-netbsd* | sh64l*-*-netbsd*)
4948 PICFLAG_FOR_TARGET=-fpic
4950 # Default to -fPIC unless specified otherwise.
4952 PICFLAG_FOR_TARGET=-fPIC
4954 esac
4956 # If the user explicitly uses -fpic/-fPIC, keep that.
4957 case "${CFLAGS_FOR_TARGET}" in
4958 *-fpic*)
4959 PICFLAG_FOR_TARGET=-fpic
4961 *-fPIC*)
4962 PICFLAG_FOR_TARGET=-fPIC
4964 esac
4968 # -------------------------
4969 # Check C compiler features
4970 # -------------------------
4973 ac_ext=c
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4979 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4980 # On Suns, sometimes $CPP names a directory.
4981 if test -n "$CPP" && test -d "$CPP"; then
4982 CPP=
4984 if test -z "$CPP"; then
4985 if test "${ac_cv_prog_CPP+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 # Double quotes because CPP needs to be expanded
4989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4991 ac_preproc_ok=false
4992 for ac_c_preproc_warn_flag in '' yes
4994 # Use a header file that comes with gcc, so configuring glibc
4995 # with a fresh cross-compiler works.
4996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997 # <limits.h> exists even on freestanding compilers.
4998 # On the NeXT, cc -E runs the code through the compiler's parser,
4999 # not just through cpp. "Syntax error" is here to catch this case.
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 #ifdef __STDC__
5003 # include <limits.h>
5004 #else
5005 # include <assert.h>
5006 #endif
5007 Syntax error
5008 _ACEOF
5009 if ac_fn_c_try_cpp "$LINENO"; then :
5011 else
5012 # Broken: fails on valid input.
5013 continue
5015 rm -f conftest.err conftest.$ac_ext
5017 # OK, works on sane cases. Now check whether nonexistent headers
5018 # can be detected and how.
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5021 #include <ac_nonexistent.h>
5022 _ACEOF
5023 if ac_fn_c_try_cpp "$LINENO"; then :
5024 # Broken: success on invalid input.
5025 continue
5026 else
5027 # Passes both tests.
5028 ac_preproc_ok=:
5029 break
5031 rm -f conftest.err conftest.$ac_ext
5033 done
5034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035 rm -f conftest.err conftest.$ac_ext
5036 if $ac_preproc_ok; then :
5037 break
5040 done
5041 ac_cv_prog_CPP=$CPP
5044 CPP=$ac_cv_prog_CPP
5045 else
5046 ac_cv_prog_CPP=$CPP
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5049 $as_echo "$CPP" >&6; }
5050 ac_preproc_ok=false
5051 for ac_c_preproc_warn_flag in '' yes
5053 # Use a header file that comes with gcc, so configuring glibc
5054 # with a fresh cross-compiler works.
5055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056 # <limits.h> exists even on freestanding compilers.
5057 # On the NeXT, cc -E runs the code through the compiler's parser,
5058 # not just through cpp. "Syntax error" is here to catch this case.
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5061 #ifdef __STDC__
5062 # include <limits.h>
5063 #else
5064 # include <assert.h>
5065 #endif
5066 Syntax error
5067 _ACEOF
5068 if ac_fn_c_try_cpp "$LINENO"; then :
5070 else
5071 # Broken: fails on valid input.
5072 continue
5074 rm -f conftest.err conftest.$ac_ext
5076 # OK, works on sane cases. Now check whether nonexistent headers
5077 # can be detected and how.
5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h. */
5080 #include <ac_nonexistent.h>
5081 _ACEOF
5082 if ac_fn_c_try_cpp "$LINENO"; then :
5083 # Broken: success on invalid input.
5084 continue
5085 else
5086 # Passes both tests.
5087 ac_preproc_ok=:
5088 break
5090 rm -f conftest.err conftest.$ac_ext
5092 done
5093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5094 rm -f conftest.err conftest.$ac_ext
5095 if $ac_preproc_ok; then :
5097 else
5098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5100 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5101 See \`config.log' for more details." "$LINENO" 5; }
5104 ac_ext=c
5105 ac_cpp='$CPP $CPPFLAGS'
5106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5112 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5113 if test "${ac_cv_path_GREP+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 if test -z "$GREP"; then
5117 ac_path_GREP_found=false
5118 # Loop through the user's path and test for each of PROGNAME-LIST
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_prog in grep ggrep; do
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5127 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5128 # Check for GNU ac_path_GREP and select it if it is found.
5129 # Check for GNU $ac_path_GREP
5130 case `"$ac_path_GREP" --version 2>&1` in
5131 *GNU*)
5132 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5134 ac_count=0
5135 $as_echo_n 0123456789 >"conftest.in"
5136 while :
5138 cat "conftest.in" "conftest.in" >"conftest.tmp"
5139 mv "conftest.tmp" "conftest.in"
5140 cp "conftest.in" "conftest.nl"
5141 $as_echo 'GREP' >> "conftest.nl"
5142 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5144 as_fn_arith $ac_count + 1 && ac_count=$as_val
5145 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5146 # Best one so far, save it but keep looking for a better one
5147 ac_cv_path_GREP="$ac_path_GREP"
5148 ac_path_GREP_max=$ac_count
5150 # 10*(2^10) chars as input seems more than enough
5151 test $ac_count -gt 10 && break
5152 done
5153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5154 esac
5156 $ac_path_GREP_found && break 3
5157 done
5158 done
5159 done
5160 IFS=$as_save_IFS
5161 if test -z "$ac_cv_path_GREP"; then
5162 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5164 else
5165 ac_cv_path_GREP=$GREP
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5170 $as_echo "$ac_cv_path_GREP" >&6; }
5171 GREP="$ac_cv_path_GREP"
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5175 $as_echo_n "checking for egrep... " >&6; }
5176 if test "${ac_cv_path_EGREP+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5180 then ac_cv_path_EGREP="$GREP -E"
5181 else
5182 if test -z "$EGREP"; then
5183 ac_path_EGREP_found=false
5184 # Loop through the user's path and test for each of PROGNAME-LIST
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_prog in egrep; do
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5193 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5194 # Check for GNU ac_path_EGREP and select it if it is found.
5195 # Check for GNU $ac_path_EGREP
5196 case `"$ac_path_EGREP" --version 2>&1` in
5197 *GNU*)
5198 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5200 ac_count=0
5201 $as_echo_n 0123456789 >"conftest.in"
5202 while :
5204 cat "conftest.in" "conftest.in" >"conftest.tmp"
5205 mv "conftest.tmp" "conftest.in"
5206 cp "conftest.in" "conftest.nl"
5207 $as_echo 'EGREP' >> "conftest.nl"
5208 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5210 as_fn_arith $ac_count + 1 && ac_count=$as_val
5211 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5212 # Best one so far, save it but keep looking for a better one
5213 ac_cv_path_EGREP="$ac_path_EGREP"
5214 ac_path_EGREP_max=$ac_count
5216 # 10*(2^10) chars as input seems more than enough
5217 test $ac_count -gt 10 && break
5218 done
5219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5220 esac
5222 $ac_path_EGREP_found && break 3
5223 done
5224 done
5225 done
5226 IFS=$as_save_IFS
5227 if test -z "$ac_cv_path_EGREP"; then
5228 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5230 else
5231 ac_cv_path_EGREP=$EGREP
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5237 $as_echo "$ac_cv_path_EGREP" >&6; }
5238 EGREP="$ac_cv_path_EGREP"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5242 $as_echo_n "checking for ANSI C header files... " >&6; }
5243 if test "${ac_cv_header_stdc+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248 #include <stdlib.h>
5249 #include <stdarg.h>
5250 #include <string.h>
5251 #include <float.h>
5254 main ()
5258 return 0;
5260 _ACEOF
5261 if ac_fn_c_try_compile "$LINENO"; then :
5262 ac_cv_header_stdc=yes
5263 else
5264 ac_cv_header_stdc=no
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 if test $ac_cv_header_stdc = yes; then
5269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 #include <string.h>
5274 _ACEOF
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 $EGREP "memchr" >/dev/null 2>&1; then :
5278 else
5279 ac_cv_header_stdc=no
5281 rm -f conftest*
5285 if test $ac_cv_header_stdc = yes; then
5286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5289 #include <stdlib.h>
5291 _ACEOF
5292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5293 $EGREP "free" >/dev/null 2>&1; then :
5295 else
5296 ac_cv_header_stdc=no
5298 rm -f conftest*
5302 if test $ac_cv_header_stdc = yes; then
5303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5304 if test "$cross_compiling" = yes; then :
5306 else
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 #include <ctype.h>
5310 #include <stdlib.h>
5311 #if ((' ' & 0x0FF) == 0x020)
5312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5314 #else
5315 # define ISLOWER(c) \
5316 (('a' <= (c) && (c) <= 'i') \
5317 || ('j' <= (c) && (c) <= 'r') \
5318 || ('s' <= (c) && (c) <= 'z'))
5319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5320 #endif
5322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5324 main ()
5326 int i;
5327 for (i = 0; i < 256; i++)
5328 if (XOR (islower (i), ISLOWER (i))
5329 || toupper (i) != TOUPPER (i))
5330 return 2;
5331 return 0;
5333 _ACEOF
5334 if ac_fn_c_try_run "$LINENO"; then :
5336 else
5337 ac_cv_header_stdc=no
5339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5340 conftest.$ac_objext conftest.beam conftest.$ac_ext
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5346 $as_echo "$ac_cv_header_stdc" >&6; }
5347 if test $ac_cv_header_stdc = yes; then
5349 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5353 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5354 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5355 inttypes.h stdint.h unistd.h
5356 do :
5357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5358 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5360 eval as_val=\$$as_ac_Header
5361 if test "x$as_val" = x""yes; then :
5362 cat >>confdefs.h <<_ACEOF
5363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5364 _ACEOF
5368 done
5372 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5373 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5374 MINIX=yes
5375 else
5376 MINIX=
5380 if test "$MINIX" = yes; then
5382 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5385 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5388 $as_echo "#define _MINIX 1" >>confdefs.h
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5394 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5395 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5401 # define __EXTENSIONS__ 1
5402 $ac_includes_default
5404 main ()
5408 return 0;
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412 ac_cv_safe_to_define___extensions__=yes
5413 else
5414 ac_cv_safe_to_define___extensions__=no
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5419 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5420 test $ac_cv_safe_to_define___extensions__ = yes &&
5421 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5423 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5425 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5427 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5429 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5432 ac_ext=c
5433 ac_cpp='$CPP $CPPFLAGS'
5434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5438 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5439 # On Suns, sometimes $CPP names a directory.
5440 if test -n "$CPP" && test -d "$CPP"; then
5441 CPP=
5443 if test -z "$CPP"; then
5444 if test "${ac_cv_prog_CPP+set}" = set; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 # Double quotes because CPP needs to be expanded
5448 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5450 ac_preproc_ok=false
5451 for ac_c_preproc_warn_flag in '' yes
5453 # Use a header file that comes with gcc, so configuring glibc
5454 # with a fresh cross-compiler works.
5455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5456 # <limits.h> exists even on freestanding compilers.
5457 # On the NeXT, cc -E runs the code through the compiler's parser,
5458 # not just through cpp. "Syntax error" is here to catch this case.
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 #ifdef __STDC__
5462 # include <limits.h>
5463 #else
5464 # include <assert.h>
5465 #endif
5466 Syntax error
5467 _ACEOF
5468 if ac_fn_c_try_cpp "$LINENO"; then :
5470 else
5471 # Broken: fails on valid input.
5472 continue
5474 rm -f conftest.err conftest.$ac_ext
5476 # OK, works on sane cases. Now check whether nonexistent headers
5477 # can be detected and how.
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 #include <ac_nonexistent.h>
5481 _ACEOF
5482 if ac_fn_c_try_cpp "$LINENO"; then :
5483 # Broken: success on invalid input.
5484 continue
5485 else
5486 # Passes both tests.
5487 ac_preproc_ok=:
5488 break
5490 rm -f conftest.err conftest.$ac_ext
5492 done
5493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5494 rm -f conftest.err conftest.$ac_ext
5495 if $ac_preproc_ok; then :
5496 break
5499 done
5500 ac_cv_prog_CPP=$CPP
5503 CPP=$ac_cv_prog_CPP
5504 else
5505 ac_cv_prog_CPP=$CPP
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5508 $as_echo "$CPP" >&6; }
5509 ac_preproc_ok=false
5510 for ac_c_preproc_warn_flag in '' yes
5512 # Use a header file that comes with gcc, so configuring glibc
5513 # with a fresh cross-compiler works.
5514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5515 # <limits.h> exists even on freestanding compilers.
5516 # On the NeXT, cc -E runs the code through the compiler's parser,
5517 # not just through cpp. "Syntax error" is here to catch this case.
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5520 #ifdef __STDC__
5521 # include <limits.h>
5522 #else
5523 # include <assert.h>
5524 #endif
5525 Syntax error
5526 _ACEOF
5527 if ac_fn_c_try_cpp "$LINENO"; then :
5529 else
5530 # Broken: fails on valid input.
5531 continue
5533 rm -f conftest.err conftest.$ac_ext
5535 # OK, works on sane cases. Now check whether nonexistent headers
5536 # can be detected and how.
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5539 #include <ac_nonexistent.h>
5540 _ACEOF
5541 if ac_fn_c_try_cpp "$LINENO"; then :
5542 # Broken: success on invalid input.
5543 continue
5544 else
5545 # Passes both tests.
5546 ac_preproc_ok=:
5547 break
5549 rm -f conftest.err conftest.$ac_ext
5551 done
5552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5553 rm -f conftest.err conftest.$ac_ext
5554 if $ac_preproc_ok; then :
5556 else
5557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5559 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5560 See \`config.log' for more details." "$LINENO" 5; }
5563 ac_ext=c
5564 ac_cpp='$CPP $CPPFLAGS'
5565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5570 $as_echo_n "checking for inline... " >&6; }
5571 if test "${ac_cv_c_inline+set}" = set; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 ac_cv_c_inline=no
5575 for ac_kw in inline __inline__ __inline; do
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578 #ifndef __cplusplus
5579 typedef int foo_t;
5580 static $ac_kw foo_t static_foo () {return 0; }
5581 $ac_kw foo_t foo () {return 0; }
5582 #endif
5584 _ACEOF
5585 if ac_fn_c_try_compile "$LINENO"; then :
5586 ac_cv_c_inline=$ac_kw
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 test "$ac_cv_c_inline" != no && break
5590 done
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5594 $as_echo "$ac_cv_c_inline" >&6; }
5596 case $ac_cv_c_inline in
5597 inline | yes) ;;
5599 case $ac_cv_c_inline in
5600 no) ac_val=;;
5601 *) ac_val=$ac_cv_c_inline;;
5602 esac
5603 cat >>confdefs.h <<_ACEOF
5604 #ifndef __cplusplus
5605 #define inline $ac_val
5606 #endif
5607 _ACEOF
5609 esac
5612 # Check whether --enable-largefile was given.
5613 if test "${enable_largefile+set}" = set; then :
5614 enableval=$enable_largefile;
5617 if test "$enable_largefile" != no; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5620 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5621 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 ac_cv_sys_largefile_CC=no
5625 if test "$GCC" != yes; then
5626 ac_save_CC=$CC
5627 while :; do
5628 # IRIX 6.2 and later do not support large files by default,
5629 # so use the C compiler's -n32 option if that helps.
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #include <sys/types.h>
5633 /* Check that off_t can represent 2**63 - 1 correctly.
5634 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5635 since some C++ compilers masquerading as C compilers
5636 incorrectly reject 9223372036854775807. */
5637 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5638 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5639 && LARGE_OFF_T % 2147483647 == 1)
5640 ? 1 : -1];
5642 main ()
5646 return 0;
5648 _ACEOF
5649 if ac_fn_c_try_compile "$LINENO"; then :
5650 break
5652 rm -f core conftest.err conftest.$ac_objext
5653 CC="$CC -n32"
5654 if ac_fn_c_try_compile "$LINENO"; then :
5655 ac_cv_sys_largefile_CC=' -n32'; break
5657 rm -f core conftest.err conftest.$ac_objext
5658 break
5659 done
5660 CC=$ac_save_CC
5661 rm -f conftest.$ac_ext
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5665 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5666 if test "$ac_cv_sys_largefile_CC" != no; then
5667 CC=$CC$ac_cv_sys_largefile_CC
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5671 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5672 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 while :; do
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678 #include <sys/types.h>
5679 /* Check that off_t can represent 2**63 - 1 correctly.
5680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5681 since some C++ compilers masquerading as C compilers
5682 incorrectly reject 9223372036854775807. */
5683 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5685 && LARGE_OFF_T % 2147483647 == 1)
5686 ? 1 : -1];
5688 main ()
5692 return 0;
5694 _ACEOF
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696 ac_cv_sys_file_offset_bits=no; break
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 #define _FILE_OFFSET_BITS 64
5702 #include <sys/types.h>
5703 /* Check that off_t can represent 2**63 - 1 correctly.
5704 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5705 since some C++ compilers masquerading as C compilers
5706 incorrectly reject 9223372036854775807. */
5707 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5708 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5709 && LARGE_OFF_T % 2147483647 == 1)
5710 ? 1 : -1];
5712 main ()
5716 return 0;
5718 _ACEOF
5719 if ac_fn_c_try_compile "$LINENO"; then :
5720 ac_cv_sys_file_offset_bits=64; break
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 ac_cv_sys_file_offset_bits=unknown
5724 break
5725 done
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5728 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5729 case $ac_cv_sys_file_offset_bits in #(
5730 no | unknown) ;;
5732 cat >>confdefs.h <<_ACEOF
5733 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5734 _ACEOF
5736 esac
5737 rm -rf conftest*
5738 if test $ac_cv_sys_file_offset_bits = unknown; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5740 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5741 if test "${ac_cv_sys_large_files+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 while :; do
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5747 #include <sys/types.h>
5748 /* Check that off_t can represent 2**63 - 1 correctly.
5749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5750 since some C++ compilers masquerading as C compilers
5751 incorrectly reject 9223372036854775807. */
5752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5754 && LARGE_OFF_T % 2147483647 == 1)
5755 ? 1 : -1];
5757 main ()
5761 return 0;
5763 _ACEOF
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765 ac_cv_sys_large_files=no; break
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #define _LARGE_FILES 1
5771 #include <sys/types.h>
5772 /* Check that off_t can represent 2**63 - 1 correctly.
5773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5774 since some C++ compilers masquerading as C compilers
5775 incorrectly reject 9223372036854775807. */
5776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5778 && LARGE_OFF_T % 2147483647 == 1)
5779 ? 1 : -1];
5781 main ()
5785 return 0;
5787 _ACEOF
5788 if ac_fn_c_try_compile "$LINENO"; then :
5789 ac_cv_sys_large_files=1; break
5791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 ac_cv_sys_large_files=unknown
5793 break
5794 done
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5797 $as_echo "$ac_cv_sys_large_files" >&6; }
5798 case $ac_cv_sys_large_files in #(
5799 no | unknown) ;;
5801 cat >>confdefs.h <<_ACEOF
5802 #define _LARGE_FILES $ac_cv_sys_large_files
5803 _ACEOF
5805 esac
5806 rm -rf conftest*
5811 # sizeof(char) is 1 by definition.
5812 # The cast to long int works around a bug in the HP C Compiler
5813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5815 # This bug is HP SR number 8606223364.
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5817 $as_echo_n "checking size of void *... " >&6; }
5818 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5823 else
5824 if test "$ac_cv_type_void_p" = yes; then
5825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5827 { as_fn_set_status 77
5828 as_fn_error "cannot compute sizeof (void *)
5829 See \`config.log' for more details." "$LINENO" 5; }; }
5830 else
5831 ac_cv_sizeof_void_p=0
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5837 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5841 cat >>confdefs.h <<_ACEOF
5842 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5843 _ACEOF
5846 # The cast to long int works around a bug in the HP C Compiler
5847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5849 # This bug is HP SR number 8606223364.
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5851 $as_echo_n "checking size of short... " >&6; }
5852 if test "${ac_cv_sizeof_short+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5857 else
5858 if test "$ac_cv_type_short" = yes; then
5859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5861 { as_fn_set_status 77
5862 as_fn_error "cannot compute sizeof (short)
5863 See \`config.log' for more details." "$LINENO" 5; }; }
5864 else
5865 ac_cv_sizeof_short=0
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5871 $as_echo "$ac_cv_sizeof_short" >&6; }
5875 cat >>confdefs.h <<_ACEOF
5876 #define SIZEOF_SHORT $ac_cv_sizeof_short
5877 _ACEOF
5880 # The cast to long int works around a bug in the HP C Compiler
5881 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5882 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5883 # This bug is HP SR number 8606223364.
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5885 $as_echo_n "checking size of int... " >&6; }
5886 if test "${ac_cv_sizeof_int+set}" = set; then :
5887 $as_echo_n "(cached) " >&6
5888 else
5889 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5891 else
5892 if test "$ac_cv_type_int" = yes; then
5893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5895 { as_fn_set_status 77
5896 as_fn_error "cannot compute sizeof (int)
5897 See \`config.log' for more details." "$LINENO" 5; }; }
5898 else
5899 ac_cv_sizeof_int=0
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5905 $as_echo "$ac_cv_sizeof_int" >&6; }
5909 cat >>confdefs.h <<_ACEOF
5910 #define SIZEOF_INT $ac_cv_sizeof_int
5911 _ACEOF
5914 # The cast to long int works around a bug in the HP C Compiler
5915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5917 # This bug is HP SR number 8606223364.
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5919 $as_echo_n "checking size of long... " >&6; }
5920 if test "${ac_cv_sizeof_long+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5925 else
5926 if test "$ac_cv_type_long" = yes; then
5927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5929 { as_fn_set_status 77
5930 as_fn_error "cannot compute sizeof (long)
5931 See \`config.log' for more details." "$LINENO" 5; }; }
5932 else
5933 ac_cv_sizeof_long=0
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5939 $as_echo "$ac_cv_sizeof_long" >&6; }
5943 cat >>confdefs.h <<_ACEOF
5944 #define SIZEOF_LONG $ac_cv_sizeof_long
5945 _ACEOF
5948 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5949 if test "x$ac_cv_type_long_long" = x""yes; then :
5951 cat >>confdefs.h <<_ACEOF
5952 #define HAVE_LONG_LONG 1
5953 _ACEOF
5955 # The cast to long int works around a bug in the HP C Compiler
5956 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5957 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5958 # This bug is HP SR number 8606223364.
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5960 $as_echo_n "checking size of long long... " >&6; }
5961 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5966 else
5967 if test "$ac_cv_type_long_long" = yes; then
5968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5970 { as_fn_set_status 77
5971 as_fn_error "cannot compute sizeof (long long)
5972 See \`config.log' for more details." "$LINENO" 5; }; }
5973 else
5974 ac_cv_sizeof_long_long=0
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5980 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5984 cat >>confdefs.h <<_ACEOF
5985 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5986 _ACEOF
5991 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5992 if test "x$ac_cv_type___int64" = x""yes; then :
5994 cat >>confdefs.h <<_ACEOF
5995 #define HAVE___INT64 1
5996 _ACEOF
5998 # The cast to long int works around a bug in the HP C Compiler
5999 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6000 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6001 # This bug is HP SR number 8606223364.
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6003 $as_echo_n "checking size of __int64... " >&6; }
6004 if test "${ac_cv_sizeof___int64+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6009 else
6010 if test "$ac_cv_type___int64" = yes; then
6011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6013 { as_fn_set_status 77
6014 as_fn_error "cannot compute sizeof (__int64)
6015 See \`config.log' for more details." "$LINENO" 5; }; }
6016 else
6017 ac_cv_sizeof___int64=0
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6023 $as_echo "$ac_cv_sizeof___int64" >&6; }
6027 cat >>confdefs.h <<_ACEOF
6028 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6029 _ACEOF
6034 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6035 case $ac_cv_c_int8_t in #(
6036 no|yes) ;; #(
6039 cat >>confdefs.h <<_ACEOF
6040 #define int8_t $ac_cv_c_int8_t
6041 _ACEOF
6043 esac
6045 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6046 case $ac_cv_c_int16_t in #(
6047 no|yes) ;; #(
6050 cat >>confdefs.h <<_ACEOF
6051 #define int16_t $ac_cv_c_int16_t
6052 _ACEOF
6054 esac
6056 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6057 case $ac_cv_c_int32_t in #(
6058 no|yes) ;; #(
6061 cat >>confdefs.h <<_ACEOF
6062 #define int32_t $ac_cv_c_int32_t
6063 _ACEOF
6065 esac
6067 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6068 case $ac_cv_c_int64_t in #(
6069 no|yes) ;; #(
6072 cat >>confdefs.h <<_ACEOF
6073 #define int64_t $ac_cv_c_int64_t
6074 _ACEOF
6076 esac
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6080 $as_echo_n "checking for long long int... " >&6; }
6081 if test "${ac_cv_type_long_long_int+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6087 /* For now, do not test the preprocessor; as of 2007 there are too many
6088 implementations with broken preprocessors. Perhaps this can
6089 be revisited in 2012. In the meantime, code should not expect
6090 #if to work with literals wider than 32 bits. */
6091 /* Test literals. */
6092 long long int ll = 9223372036854775807ll;
6093 long long int nll = -9223372036854775807LL;
6094 unsigned long long int ull = 18446744073709551615ULL;
6095 /* Test constant expressions. */
6096 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6097 ? 1 : -1)];
6098 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6099 ? 1 : -1)];
6100 int i = 63;
6102 main ()
6104 /* Test availability of runtime routines for shift and division. */
6105 long long int llmax = 9223372036854775807ll;
6106 unsigned long long int ullmax = 18446744073709551615ull;
6107 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6108 | (llmax / ll) | (llmax % ll)
6109 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6110 | (ullmax / ull) | (ullmax % ull));
6112 return 0;
6115 _ACEOF
6116 if ac_fn_c_try_link "$LINENO"; then :
6117 if test "$cross_compiling" = yes; then :
6118 ac_cv_type_long_long_int=yes
6119 else
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6122 #include <limits.h>
6123 #ifndef LLONG_MAX
6124 # define HALF \
6125 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6126 # define LLONG_MAX (HALF - 1 + HALF)
6127 #endif
6129 main ()
6131 long long int n = 1;
6132 int i;
6133 for (i = 0; ; i++)
6135 long long int m = n << i;
6136 if (m >> i != n)
6137 return 1;
6138 if (LLONG_MAX / 2 < m)
6139 break;
6141 return 0;
6143 return 0;
6145 _ACEOF
6146 if ac_fn_c_try_run "$LINENO"; then :
6147 ac_cv_type_long_long_int=yes
6148 else
6149 ac_cv_type_long_long_int=no
6151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6152 conftest.$ac_objext conftest.beam conftest.$ac_ext
6155 else
6156 ac_cv_type_long_long_int=no
6158 rm -f core conftest.err conftest.$ac_objext \
6159 conftest$ac_exeext conftest.$ac_ext
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6162 $as_echo "$ac_cv_type_long_long_int" >&6; }
6163 if test $ac_cv_type_long_long_int = yes; then
6165 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6171 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6172 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6174 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6176 else
6177 test $ac_cv_type_long_long_int = yes \
6178 && ac_type='long long int' \
6179 || ac_type='long int'
6181 cat >>confdefs.h <<_ACEOF
6182 #define intmax_t $ac_type
6183 _ACEOF
6189 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6190 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6192 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6194 else
6195 for ac_type in 'int' 'long int' 'long long int'; do
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198 $ac_includes_default
6200 main ()
6202 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6203 test_array [0] = 0
6206 return 0;
6208 _ACEOF
6209 if ac_fn_c_try_compile "$LINENO"; then :
6211 cat >>confdefs.h <<_ACEOF
6212 #define intptr_t $ac_type
6213 _ACEOF
6215 ac_type=
6217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 test -z "$ac_type" && break
6219 done
6223 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6224 case $ac_cv_c_uint8_t in #(
6225 no|yes) ;; #(
6228 $as_echo "#define _UINT8_T 1" >>confdefs.h
6231 cat >>confdefs.h <<_ACEOF
6232 #define uint8_t $ac_cv_c_uint8_t
6233 _ACEOF
6235 esac
6237 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6238 case $ac_cv_c_uint16_t in #(
6239 no|yes) ;; #(
6243 cat >>confdefs.h <<_ACEOF
6244 #define uint16_t $ac_cv_c_uint16_t
6245 _ACEOF
6247 esac
6249 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6250 case $ac_cv_c_uint32_t in #(
6251 no|yes) ;; #(
6254 $as_echo "#define _UINT32_T 1" >>confdefs.h
6257 cat >>confdefs.h <<_ACEOF
6258 #define uint32_t $ac_cv_c_uint32_t
6259 _ACEOF
6261 esac
6263 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6264 case $ac_cv_c_uint64_t in #(
6265 no|yes) ;; #(
6268 $as_echo "#define _UINT64_T 1" >>confdefs.h
6271 cat >>confdefs.h <<_ACEOF
6272 #define uint64_t $ac_cv_c_uint64_t
6273 _ACEOF
6275 esac
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6279 $as_echo_n "checking for unsigned long long int... " >&6; }
6280 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6286 /* For now, do not test the preprocessor; as of 2007 there are too many
6287 implementations with broken preprocessors. Perhaps this can
6288 be revisited in 2012. In the meantime, code should not expect
6289 #if to work with literals wider than 32 bits. */
6290 /* Test literals. */
6291 long long int ll = 9223372036854775807ll;
6292 long long int nll = -9223372036854775807LL;
6293 unsigned long long int ull = 18446744073709551615ULL;
6294 /* Test constant expressions. */
6295 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6296 ? 1 : -1)];
6297 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6298 ? 1 : -1)];
6299 int i = 63;
6301 main ()
6303 /* Test availability of runtime routines for shift and division. */
6304 long long int llmax = 9223372036854775807ll;
6305 unsigned long long int ullmax = 18446744073709551615ull;
6306 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6307 | (llmax / ll) | (llmax % ll)
6308 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6309 | (ullmax / ull) | (ullmax % ull));
6311 return 0;
6314 _ACEOF
6315 if ac_fn_c_try_link "$LINENO"; then :
6316 ac_cv_type_unsigned_long_long_int=yes
6317 else
6318 ac_cv_type_unsigned_long_long_int=no
6320 rm -f core conftest.err conftest.$ac_objext \
6321 conftest$ac_exeext conftest.$ac_ext
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6324 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6325 if test $ac_cv_type_unsigned_long_long_int = yes; then
6327 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6333 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6334 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6336 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6338 else
6339 test $ac_cv_type_unsigned_long_long_int = yes \
6340 && ac_type='unsigned long long int' \
6341 || ac_type='unsigned long int'
6343 cat >>confdefs.h <<_ACEOF
6344 #define uintmax_t $ac_type
6345 _ACEOF
6351 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6352 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6354 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6356 else
6357 for ac_type in 'unsigned int' 'unsigned long int' \
6358 'unsigned long long int'; do
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 $ac_includes_default
6363 main ()
6365 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6366 test_array [0] = 0
6369 return 0;
6371 _ACEOF
6372 if ac_fn_c_try_compile "$LINENO"; then :
6374 cat >>confdefs.h <<_ACEOF
6375 #define uintptr_t $ac_type
6376 _ACEOF
6378 ac_type=
6380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381 test -z "$ac_type" && break
6382 done
6399 # ---------------------
6400 # Warnings and checking
6401 # ---------------------
6403 # Check $CC warning features (if it's GCC).
6404 # We want to use -pedantic, but we don't want warnings about
6405 # * 'long long'
6406 # * variadic macros
6407 # * overlong strings
6408 # * C++11 narrowing conversions in { }
6409 # So, we only use -pedantic if we can disable those warnings.
6411 loose_warn=
6412 save_CFLAGS="$CFLAGS"
6413 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6414 # Do the check with the no- prefix removed since gcc silently
6415 # accepts any -Wno-* option on purpose
6416 case $real_option in
6417 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6418 *) option=$real_option ;;
6419 esac
6420 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6423 $as_echo_n "checking whether $CC supports $option... " >&6; }
6424 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 CFLAGS="$option"
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6432 main ()
6436 return 0;
6438 _ACEOF
6439 if ac_fn_c_try_compile "$LINENO"; then :
6440 eval "$as_acx_Woption=yes"
6441 else
6442 eval "$as_acx_Woption=no"
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 eval ac_res=\$$as_acx_Woption
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6449 $as_echo "$ac_res" >&6; }
6450 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6451 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6453 done
6454 CFLAGS="$save_CFLAGS"
6456 c_loose_warn=
6457 save_CFLAGS="$CFLAGS"
6458 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6459 # Do the check with the no- prefix removed since gcc silently
6460 # accepts any -Wno-* option on purpose
6461 case $real_option in
6462 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6463 *) option=$real_option ;;
6464 esac
6465 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6468 $as_echo_n "checking whether $CC supports $option... " >&6; }
6469 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 CFLAGS="$option"
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6477 main ()
6481 return 0;
6483 _ACEOF
6484 if ac_fn_c_try_compile "$LINENO"; then :
6485 eval "$as_acx_Woption=yes"
6486 else
6487 eval "$as_acx_Woption=no"
6489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492 eval ac_res=\$$as_acx_Woption
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6494 $as_echo "$ac_res" >&6; }
6495 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6496 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6498 done
6499 CFLAGS="$save_CFLAGS"
6501 strict_warn=
6502 save_CFLAGS="$CFLAGS"
6503 for real_option in -Wmissing-format-attribute; do
6504 # Do the check with the no- prefix removed since gcc silently
6505 # accepts any -Wno-* option on purpose
6506 case $real_option in
6507 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6508 *) option=$real_option ;;
6509 esac
6510 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6513 $as_echo_n "checking whether $CC supports $option... " >&6; }
6514 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 CFLAGS="$option"
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6522 main ()
6526 return 0;
6528 _ACEOF
6529 if ac_fn_c_try_compile "$LINENO"; then :
6530 eval "$as_acx_Woption=yes"
6531 else
6532 eval "$as_acx_Woption=no"
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 eval ac_res=\$$as_acx_Woption
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6539 $as_echo "$ac_res" >&6; }
6540 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6541 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6543 done
6544 CFLAGS="$save_CFLAGS"
6546 c_strict_warn=
6547 save_CFLAGS="$CFLAGS"
6548 for real_option in -Wold-style-definition -Wc++-compat; do
6549 # Do the check with the no- prefix removed since gcc silently
6550 # accepts any -Wno-* option on purpose
6551 case $real_option in
6552 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6553 *) option=$real_option ;;
6554 esac
6555 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6558 $as_echo_n "checking whether $CC supports $option... " >&6; }
6559 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 CFLAGS="$option"
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6567 main ()
6571 return 0;
6573 _ACEOF
6574 if ac_fn_c_try_compile "$LINENO"; then :
6575 eval "$as_acx_Woption=yes"
6576 else
6577 eval "$as_acx_Woption=no"
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 eval ac_res=\$$as_acx_Woption
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6584 $as_echo "$ac_res" >&6; }
6585 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6586 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6588 done
6589 CFLAGS="$save_CFLAGS"
6591 # Do the check with the no- prefix removed from the warning options
6592 # since gcc silently accepts any -Wno-* option on purpose
6593 if test "$GCC" = yes; then :
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6595 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6596 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6597 $as_echo_n "(cached) " >&6
6598 else
6599 save_CFLAGS="$CFLAGS"
6600 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6605 main ()
6609 return 0;
6611 _ACEOF
6612 if ac_fn_c_try_compile "$LINENO"; then :
6613 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6614 else
6615 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 CFLAGS="$save_CFLAGS"
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6621 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6622 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6623 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6628 # Check whether --enable-werror-always was given.
6629 if test "${enable_werror_always+set}" = set; then :
6630 enableval=$enable_werror_always;
6631 else
6632 enable_werror_always=no
6635 if test $enable_werror_always = yes; then :
6636 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6641 # The above macros do nothing if the compiler is not GCC. However, the
6642 # Makefile has more goo to add other flags, so these variables are used
6643 # to enable warnings only for GCC.
6644 warn_cflags=
6645 warn_cxxflags=
6646 if test "x$GCC" = "xyes"; then
6647 warn_cflags='$(GCC_WARN_CFLAGS)'
6648 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6653 # Disable exceptions and RTTI if building with g++
6654 noexception_flags=
6655 save_CFLAGS="$CFLAGS"
6656 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6657 # Do the check with the no- prefix removed since gcc silently
6658 # accepts any -Wno-* option on purpose
6659 case $real_option in
6660 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6661 *) option=$real_option ;;
6662 esac
6663 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6666 $as_echo_n "checking whether $CC supports $option... " >&6; }
6667 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 CFLAGS="$option"
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6675 main ()
6679 return 0;
6681 _ACEOF
6682 if ac_fn_c_try_compile "$LINENO"; then :
6683 eval "$as_acx_Woption=yes"
6684 else
6685 eval "$as_acx_Woption=no"
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 eval ac_res=\$$as_acx_Woption
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6692 $as_echo "$ac_res" >&6; }
6693 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6694 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6696 done
6697 CFLAGS="$save_CFLAGS"
6700 # Enable expensive internal checks
6701 is_release=
6702 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6703 is_release=yes
6706 # Check whether --enable-checking was given.
6707 if test "${enable_checking+set}" = set; then :
6708 enableval=$enable_checking; ac_checking_flags="${enableval}"
6709 else
6711 # Determine the default checks.
6712 if test x$is_release = x ; then
6713 ac_checking_flags=yes
6714 else
6715 ac_checking_flags=release
6719 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6720 for check in release $ac_checking_flags
6722 case $check in
6723 # these set all the flags to specific states
6724 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6725 ac_fold_checking= ; ac_gc_checking=1 ;
6726 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6727 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6728 ac_tree_checking=1 ; ac_valgrind_checking= ;
6729 ac_types_checking=1 ;;
6730 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6731 ac_fold_checking= ; ac_gc_checking= ;
6732 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6733 ac_rtlflag_checking= ; ac_runtime_checking= ;
6734 ac_tree_checking= ; ac_valgrind_checking= ;
6735 ac_types_checking= ;;
6736 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6737 ac_fold_checking=1 ; ac_gc_checking=1 ;
6738 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6739 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6740 ac_tree_checking=1 ; ac_valgrind_checking= ;
6741 ac_types_checking=1 ;;
6742 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6743 ac_fold_checking= ; ac_gc_checking= ;
6744 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6745 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6746 ac_tree_checking= ; ac_valgrind_checking= ;
6747 ac_types_checking= ;;
6748 # these enable particular checks
6749 assert) ac_assert_checking=1 ;;
6750 df) ac_df_checking=1 ;;
6751 fold) ac_fold_checking=1 ;;
6752 gc) ac_gc_checking=1 ;;
6753 gcac) ac_gc_always_collect=1 ;;
6754 gimple) ac_gimple_checking=1 ;;
6755 misc) ac_checking=1 ;;
6756 rtl) ac_rtl_checking=1 ;;
6757 rtlflag) ac_rtlflag_checking=1 ;;
6758 runtime) ac_runtime_checking=1 ;;
6759 tree) ac_tree_checking=1 ;;
6760 types) ac_types_checking=1 ;;
6761 valgrind) ac_valgrind_checking=1 ;;
6762 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6763 esac
6764 done
6765 IFS="$ac_save_IFS"
6767 nocommon_flag=""
6768 if test x$ac_checking != x ; then
6770 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6772 nocommon_flag=-fno-common
6775 if test x$ac_df_checking != x ; then
6777 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6780 if test x$ac_assert_checking != x ; then
6782 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6785 if test x$ac_gimple_checking != x ; then
6787 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6791 if test x$ac_runtime_checking != x ; then
6793 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6796 if test x$ac_tree_checking != x ; then
6798 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6800 TREEBROWSER=tree-browser.o
6801 TREECHECKING=yes
6803 if test x$ac_types_checking != x ; then
6805 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6810 if test x$ac_rtl_checking != x ; then
6812 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6815 if test x$ac_rtlflag_checking != x ; then
6817 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6820 if test x$ac_gc_checking != x ; then
6822 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6825 if test x$ac_gc_always_collect != x ; then
6827 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6830 if test x$ac_fold_checking != x ; then
6832 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6835 valgrind_path_defines=
6836 valgrind_command=
6838 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6839 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6840 have_valgrind_h=yes
6841 else
6842 have_valgrind_h=no
6847 if test x$ac_valgrind_checking != x ; then
6848 # It is certainly possible that there's valgrind but no valgrind.h.
6849 # GCC relies on making annotations so we must have both.
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6851 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854 #include <valgrind/memcheck.h>
6855 #ifndef VALGRIND_DISCARD
6856 #error VALGRIND_DISCARD not defined
6857 #endif
6858 _ACEOF
6859 if ac_fn_c_try_cpp "$LINENO"; then :
6860 gcc_cv_header_valgrind_memcheck_h=yes
6861 else
6862 gcc_cv_header_valgrind_memcheck_h=no
6864 rm -f conftest.err conftest.$ac_ext
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6866 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6868 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6871 #include <memcheck.h>
6872 #ifndef VALGRIND_DISCARD
6873 #error VALGRIND_DISCARD not defined
6874 #endif
6875 _ACEOF
6876 if ac_fn_c_try_cpp "$LINENO"; then :
6877 gcc_cv_header_memcheck_h=yes
6878 else
6879 gcc_cv_header_memcheck_h=no
6881 rm -f conftest.err conftest.$ac_ext
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6883 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6885 # Prepare PATH_SEPARATOR.
6886 # The user is always right.
6887 if test "${PATH_SEPARATOR+set}" != set; then
6888 echo "#! /bin/sh" >conf$$.sh
6889 echo "exit 0" >>conf$$.sh
6890 chmod +x conf$$.sh
6891 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6892 PATH_SEPARATOR=';'
6893 else
6894 PATH_SEPARATOR=:
6896 rm -f conf$$.sh
6899 # Find out how to test for executable files. Don't use a zero-byte file,
6900 # as systems may use methods other than mode bits to determine executability.
6901 cat >conf$$.file <<_ASEOF
6902 #! /bin/sh
6903 exit 0
6904 _ASEOF
6905 chmod +x conf$$.file
6906 if test -x conf$$.file >/dev/null 2>&1; then
6907 ac_executable_p="test -x"
6908 else
6909 ac_executable_p="test -f"
6911 rm -f conf$$.file
6913 # Extract the first word of "valgrind", so it can be a program name with args.
6914 set dummy valgrind; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 case "$valgrind_path" in
6921 [\\/]* | ?:[\\/]*)
6922 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6925 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6926 for ac_dir in $PATH; do
6927 IFS="$ac_save_IFS"
6928 test -z "$ac_dir" && ac_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6931 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6932 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6933 break 2
6936 done
6937 done
6938 IFS="$ac_save_IFS"
6940 esac
6942 valgrind_path="$ac_cv_path_valgrind_path"
6943 if test -n "$valgrind_path"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6945 $as_echo "$valgrind_path" >&6; }
6946 else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6951 if test "x$valgrind_path" = "x" \
6952 || (test $have_valgrind_h = no \
6953 && test $gcc_cv_header_memcheck_h = no \
6954 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6955 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6957 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6958 valgrind_command="$valgrind_path -q"
6960 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6962 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6964 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6967 if test $gcc_cv_header_memcheck_h = yes; then
6969 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6976 # Enable code coverage collection
6977 # Check whether --enable-coverage was given.
6978 if test "${enable_coverage+set}" = set; then :
6979 enableval=$enable_coverage; case "${enableval}" in
6980 yes|noopt)
6981 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6983 opt)
6984 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6987 # a.k.a. --disable-coverage
6988 coverage_flags=""
6991 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6993 esac
6994 else
6995 coverage_flags=""
7000 # Check whether --enable-gather-detailed-mem-stats was given.
7001 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7002 enableval=$enable_gather_detailed_mem_stats;
7003 else
7004 enable_gather_detailed_mem_stats=no
7007 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7009 cat >>confdefs.h <<_ACEOF
7010 #define GATHER_STATISTICS $gather_stats
7011 _ACEOF
7014 # -------------------------------
7015 # Miscenalleous configure options
7016 # -------------------------------
7018 # With stabs
7020 # Check whether --with-stabs was given.
7021 if test "${with_stabs+set}" = set; then :
7022 withval=$with_stabs; stabs="$with_stabs"
7023 else
7024 stabs=no
7028 # Determine whether or not multilibs are enabled.
7029 # Check whether --enable-multilib was given.
7030 if test "${enable_multilib+set}" = set; then :
7031 enableval=$enable_multilib;
7032 else
7033 enable_multilib=yes
7038 # Determine whether or not multiarch is enabled.
7039 # Check whether --enable-multiarch was given.
7040 if test "${enable_multiarch+set}" = set; then :
7041 enableval=$enable_multiarch; case "${enableval}" in
7042 yes|no|auto) enable_multiarch=$enableval;;
7043 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7044 esac
7045 else
7046 enable_multiarch=auto
7049 if test x${enable_multiarch} = xauto; then
7050 if test x${with_native_system_header_dir} != x; then
7051 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7052 enable_multiarch=no
7054 if test x$host != x$target && test "x$with_sysroot" = x; then
7055 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7056 enable_multiarch=no
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7060 $as_echo_n "checking for multiarch configuration... " >&6; }
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7063 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7065 # needed for setting the multiarch name for soft-float/hard-float ABIs
7069 # Enable __cxa_atexit for C++.
7070 # Check whether --enable-__cxa_atexit was given.
7071 if test "${enable___cxa_atexit+set}" = set; then :
7072 enableval=$enable___cxa_atexit;
7076 # Enable C extension for decimal float if target supports it.
7078 # Check whether --enable-decimal-float was given.
7079 if test "${enable_decimal_float+set}" = set; then :
7080 enableval=$enable_decimal_float;
7081 case $enable_decimal_float in
7082 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7083 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7084 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7085 esac
7087 else
7089 case $target in
7090 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7091 i?86*-*-gnu* | \
7092 i?86*-*-mingw* | x86_64*-*-mingw* | \
7093 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7094 enable_decimal_float=yes
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7098 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7099 enable_decimal_float=no
7101 esac
7106 # x86's use BID format instead of DPD
7107 case x$enable_decimal_float in
7108 xyes)
7109 case $target in
7110 i?86*-*-* | x86_64*-*-*)
7111 enable_decimal_float=bid
7114 enable_decimal_float=dpd
7116 esac
7117 default_decimal_float=$enable_decimal_float
7119 xno)
7120 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7121 # dependency on libdecnumber.
7122 default_decimal_float=dpd
7124 esac
7129 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7131 cat >>confdefs.h <<_ACEOF
7132 #define ENABLE_DECIMAL_FLOAT $dfp
7133 _ACEOF
7136 # Use default_decimal_float for dependency.
7137 enable_decimal_float=$default_decimal_float
7139 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7141 cat >>confdefs.h <<_ACEOF
7142 #define ENABLE_DECIMAL_BID_FORMAT $bid
7143 _ACEOF
7146 # Enable C extension for fixed-point arithmetic.
7147 # Check whether --enable-fixed-point was given.
7148 if test "${enable_fixed_point+set}" = set; then :
7149 enableval=$enable_fixed_point;
7150 else
7152 case $target in
7153 arm*)
7154 enable_fixed_point=yes
7157 mips*-*-*)
7158 enable_fixed_point=yes
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7162 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7163 enable_fixed_point=no
7165 esac
7171 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7173 cat >>confdefs.h <<_ACEOF
7174 #define ENABLE_FIXED_POINT $fixedpoint
7175 _ACEOF
7178 # Enable threads
7179 # Pass with no value to take the default
7180 # Pass with a value to specify a thread package
7181 # Check whether --enable-threads was given.
7182 if test "${enable_threads+set}" = set; then :
7183 enableval=$enable_threads;
7184 else
7185 enable_threads=''
7189 # Check whether --enable-tls was given.
7190 if test "${enable_tls+set}" = set; then :
7191 enableval=$enable_tls;
7192 case $enable_tls in
7193 yes | no) ;;
7194 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7195 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7196 esac
7198 else
7199 enable_tls=''
7203 # Check whether --enable-objc-gc was given.
7204 if test "${enable_objc_gc+set}" = set; then :
7205 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7206 objc_boehm_gc=''
7207 else
7208 objc_boehm_gc=1
7210 else
7211 objc_boehm_gc=''
7216 # Check whether --with-dwarf2 was given.
7217 if test "${with_dwarf2+set}" = set; then :
7218 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7219 else
7220 dwarf2=no
7224 # Check whether --enable-shared was given.
7225 if test "${enable_shared+set}" = set; then :
7226 enableval=$enable_shared;
7227 case $enable_shared in
7228 yes | no) ;;
7230 enable_shared=no
7231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7232 for pkg in $enableval; do
7233 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7234 enable_shared=yes
7236 done
7237 IFS="$ac_save_ifs"
7239 esac
7241 else
7242 enable_shared=yes
7248 # Check whether --with-native-system-header-dir was given.
7249 if test "${with_native_system_header_dir+set}" = set; then :
7250 withval=$with_native_system_header_dir;
7251 case ${with_native_system_header_dir} in
7252 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7253 /* | [A-Za-z]:[\\/]*) ;;
7254 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7255 esac
7256 configured_native_system_header_dir="${withval}"
7258 else
7259 configured_native_system_header_dir=
7264 # Check whether --with-build-sysroot was given.
7265 if test "${with_build_sysroot+set}" = set; then :
7266 withval=$with_build_sysroot; if test x"$withval" != x ; then
7267 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7269 else
7270 SYSROOT_CFLAGS_FOR_TARGET=
7276 # Check whether --with-runtime-root-prefix was given.
7277 if test "${with_runtime_root_prefix+set}" = set; then :
7278 withval=$with_runtime_root_prefix;
7279 case ${with_runtime_root_prefix} in
7280 yes|no) as_fn_error "bad value ${withval} given for runtime root prefix" "$LINENO" 5 ;;
7281 /*) ;;
7282 *) as_fn_error "${withval} should be an absolute directory" "$LINENO" 5 ;;
7283 esac
7284 RUNTIME_ROOT_PREFIX_DEFINE="-DRUNTIME_ROOT_PREFIX=\\\"${withval}\\\""
7286 else
7287 RUNTIME_ROOT_PREFIX_DEFINE=""
7292 if test "x$prefix" = xNONE; then
7293 test_prefix=/usr/local
7294 else
7295 test_prefix=$prefix
7297 if test "x$exec_prefix" = xNONE; then
7298 test_exec_prefix=$test_prefix
7299 else
7300 test_exec_prefix=$exec_prefix
7304 # Check whether --with-sysroot was given.
7305 if test "${with_sysroot+set}" = set; then :
7306 withval=$with_sysroot;
7307 case ${with_sysroot} in
7308 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7309 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7310 esac
7312 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7313 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7315 case ${TARGET_SYSTEM_ROOT} in
7316 "${test_prefix}"|"${test_prefix}/"*|\
7317 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7318 '${prefix}'|'${prefix}/'*|\
7319 '${exec_prefix}'|'${exec_prefix}/'*)
7320 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7321 TARGET_SYSTEM_ROOT_DEFINE="$t"
7323 esac
7325 else
7327 TARGET_SYSTEM_ROOT=
7328 TARGET_SYSTEM_ROOT_DEFINE=
7329 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7338 # Check whether --with-specs was given.
7339 if test "${with_specs+set}" = set; then :
7340 withval=$with_specs; CONFIGURE_SPECS=$withval
7341 else
7342 CONFIGURE_SPECS=
7350 # Check whether --with-pkgversion was given.
7351 if test "${with_pkgversion+set}" = set; then :
7352 withval=$with_pkgversion; case "$withval" in
7353 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7354 no) PKGVERSION= ;;
7355 *) PKGVERSION="($withval) " ;;
7356 esac
7357 else
7358 PKGVERSION="(GCC) "
7366 # Check whether --with-bugurl was given.
7367 if test "${with_bugurl+set}" = set; then :
7368 withval=$with_bugurl; case "$withval" in
7369 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7370 no) BUGURL=
7372 *) BUGURL="$withval"
7374 esac
7375 else
7376 BUGURL="http://gcc.gnu.org/bugs.html"
7380 case ${BUGURL} in
7382 REPORT_BUGS_TO=
7383 REPORT_BUGS_TEXI=
7386 REPORT_BUGS_TO="<$BUGURL>"
7387 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7389 esac;
7394 # Sanity check enable_languages in case someone does not run the toplevel
7395 # configure # script.
7396 # Check whether --enable-languages was given.
7397 if test "${enable_languages+set}" = set; then :
7398 enableval=$enable_languages; case ,${enable_languages}, in
7399 ,,|,yes,)
7400 # go safe -- we cannot be much sure without the toplevel
7401 # configure's
7402 # analysis of which target libs are present and usable
7403 enable_languages=c
7405 *,all,*)
7406 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7408 *,c,*)
7411 enable_languages=c,${enable_languages}
7413 esac
7414 else
7415 enable_languages=c
7420 # Check whether --with-multilib-list was given.
7421 if test "${with_multilib_list+set}" = set; then :
7422 withval=$with_multilib_list; :
7423 else
7424 with_multilib_list=default
7428 # -------------------------
7429 # Checks for other programs
7430 # -------------------------
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7433 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7434 set x ${MAKE-make}
7435 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7436 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 cat >conftest.make <<\_ACEOF
7440 SHELL = /bin/sh
7441 all:
7442 @echo '@@@%%%=$(MAKE)=@@@%%%'
7443 _ACEOF
7444 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7445 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7446 *@@@%%%=?*=@@@%%%*)
7447 eval ac_cv_prog_make_${ac_make}_set=yes;;
7449 eval ac_cv_prog_make_${ac_make}_set=no;;
7450 esac
7451 rm -f conftest.make
7453 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7455 $as_echo "yes" >&6; }
7456 SET_MAKE=
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 SET_MAKE="MAKE=${MAKE-make}"
7464 # Find some useful tools
7465 for ac_prog in gawk mawk nawk awk
7467 # Extract the first word of "$ac_prog", so it can be a program name with args.
7468 set dummy $ac_prog; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470 $as_echo_n "checking for $ac_word... " >&6; }
7471 if test "${ac_cv_prog_AWK+set}" = set; then :
7472 $as_echo_n "(cached) " >&6
7473 else
7474 if test -n "$AWK"; then
7475 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7476 else
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7484 ac_cv_prog_AWK="$ac_prog"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7488 done
7489 done
7490 IFS=$as_save_IFS
7494 AWK=$ac_cv_prog_AWK
7495 if test -n "$AWK"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7497 $as_echo "$AWK" >&6; }
7498 else
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7504 test -n "$AWK" && break
7505 done
7507 # We need awk to create options.c and options.h.
7508 # Bail out if it's missing.
7509 case ${AWK} in
7510 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7511 esac
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7514 $as_echo_n "checking whether ln -s works... " >&6; }
7515 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 rm -f conftestdata_t
7519 echo >conftestdata_f
7520 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7521 then
7522 gcc_cv_prog_LN_S="ln -s"
7523 else
7524 if ln conftestdata_f conftestdata_t 2>/dev/null
7525 then
7526 gcc_cv_prog_LN_S=ln
7527 else
7528 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7529 then
7530 gcc_cv_prog_LN_S="cp -p"
7531 else
7532 gcc_cv_prog_LN_S=cp
7536 rm -f conftestdata_f conftestdata_t
7539 LN_S="$gcc_cv_prog_LN_S"
7540 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7542 $as_echo "yes" >&6; }
7543 else
7544 if test "$gcc_cv_prog_LN_S" = "ln"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7546 $as_echo "no, using ln" >&6; }
7547 else
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7549 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7554 $as_echo_n "checking whether ln works... " >&6; }
7555 if test "${acx_cv_prog_LN+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 rm -f conftestdata_t
7559 echo >conftestdata_f
7560 if ln conftestdata_f conftestdata_t 2>/dev/null
7561 then
7562 acx_cv_prog_LN=ln
7563 else
7564 acx_cv_prog_LN=no
7566 rm -f conftestdata_f conftestdata_t
7569 if test $acx_cv_prog_LN = no; then
7570 LN="$LN_S"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7572 $as_echo "no, using $LN" >&6; }
7573 else
7574 LN="$acx_cv_prog_LN"
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7576 $as_echo "yes" >&6; }
7579 if test -n "$ac_tool_prefix"; then
7580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 if test -n "$RANLIB"; then
7588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7589 else
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 break 2
7601 done
7602 done
7603 IFS=$as_save_IFS
7607 RANLIB=$ac_cv_prog_RANLIB
7608 if test -n "$RANLIB"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7610 $as_echo "$RANLIB" >&6; }
7611 else
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7618 if test -z "$ac_cv_prog_RANLIB"; then
7619 ac_ct_RANLIB=$RANLIB
7620 # Extract the first word of "ranlib", so it can be a program name with args.
7621 set dummy ranlib; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7625 $as_echo_n "(cached) " >&6
7626 else
7627 if test -n "$ac_ct_RANLIB"; then
7628 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7629 else
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7637 ac_cv_prog_ac_ct_RANLIB="ranlib"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 break 2
7641 done
7642 done
7643 IFS=$as_save_IFS
7647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7648 if test -n "$ac_ct_RANLIB"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7650 $as_echo "$ac_ct_RANLIB" >&6; }
7651 else
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7656 if test "x$ac_ct_RANLIB" = x; then
7657 RANLIB=":"
7658 else
7659 case $cross_compiling:$ac_tool_warned in
7660 yes:)
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7663 ac_tool_warned=yes ;;
7664 esac
7665 RANLIB=$ac_ct_RANLIB
7667 else
7668 RANLIB="$ac_cv_prog_RANLIB"
7671 ranlib_flags=""
7674 # Find a good install program. We prefer a C program (faster),
7675 # so one script is as good as another. But avoid the broken or
7676 # incompatible versions:
7677 # SysV /etc/install, /usr/sbin/install
7678 # SunOS /usr/etc/install
7679 # IRIX /sbin/install
7680 # AIX /bin/install
7681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7683 # ./install, which can be erroneously created by make from ./install.sh.
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7685 $as_echo_n "checking for a BSD compatible install... " >&6; }
7686 if test -z "$INSTALL"; then
7687 if test "${ac_cv_path_install+set}" = set; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7690 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7691 for ac_dir in $PATH; do
7692 # Account for people who put trailing slashes in PATH elements.
7693 case "$ac_dir/" in
7694 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7696 # OSF1 and SCO ODT 3.0 have their own names for install.
7697 for ac_prog in ginstall scoinst install; do
7698 if test -f $ac_dir/$ac_prog; then
7699 if test $ac_prog = install &&
7700 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7701 # AIX install. It has an incompatible calling convention.
7702 # OSF/1 installbsd also uses dspmsg, but is usable.
7704 else
7705 ac_cv_path_install="$ac_dir/$ac_prog -c"
7706 break 2
7709 done
7711 esac
7712 done
7713 IFS="$ac_save_IFS"
7716 if test "${ac_cv_path_install+set}" = set; then
7717 INSTALL="$ac_cv_path_install"
7718 else
7719 # As a last resort, use the slow shell script. We don't cache a
7720 # path for INSTALL within a source directory, because that will
7721 # break other packages using the cache if that directory is
7722 # removed, or if the path is relative.
7723 INSTALL="$ac_install_sh"
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7727 $as_echo "$INSTALL" >&6; }
7729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7730 # It thinks the first close brace ends the variable substitution.
7731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7733 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7736 # See if cmp has --ignore-initial.
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7738 $as_echo_n "checking for cmp's capabilities... " >&6; }
7739 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 echo abfoo >t1
7743 echo cdfoo >t2
7744 gcc_cv_prog_cmp_skip=slowcompare
7745 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7746 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7748 else
7749 gcc_cv_prog_cmp_skip=gnucompare
7752 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7753 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7754 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7756 else
7757 gcc_cv_prog_cmp_skip=fastcompare
7761 rm t1 t2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7765 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7766 make_compare_target=$gcc_cv_prog_cmp_skip
7770 # See if we have the mktemp command.
7771 # Extract the first word of "mktemp", so it can be a program name with args.
7772 set dummy mktemp; ac_word=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 if test -n "$have_mktemp_command"; then
7779 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7784 IFS=$as_save_IFS
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7788 ac_cv_prog_have_mktemp_command="yes"
7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 break 2
7792 done
7793 done
7794 IFS=$as_save_IFS
7796 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7799 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7800 if test -n "$have_mktemp_command"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7802 $as_echo "$have_mktemp_command" >&6; }
7803 else
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7810 # See if makeinfo has been installed and is modern enough
7811 # that we can use it.
7813 # Extract the first word of "makeinfo", so it can be a program name with args.
7814 set dummy makeinfo; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
7819 else
7820 if test -n "$MAKEINFO"; then
7821 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7830 ac_cv_prog_MAKEINFO="makeinfo"
7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7834 done
7835 done
7836 IFS=$as_save_IFS
7840 MAKEINFO=$ac_cv_prog_MAKEINFO
7841 if test -n "$MAKEINFO"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7843 $as_echo "$MAKEINFO" >&6; }
7844 else
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7850 if test -n "$MAKEINFO"; then
7851 # Found it, now check the version.
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7853 $as_echo_n "checking for modern makeinfo... " >&6; }
7854 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7855 $as_echo_n "(cached) " >&6
7856 else
7857 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7858 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7860 case $ac_prog_version in
7861 '') gcc_cv_prog_makeinfo_modern=no;;
7862 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7863 *) gcc_cv_prog_makeinfo_modern=no;;
7864 esac
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7868 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7869 else
7870 gcc_cv_prog_makeinfo_modern=no
7872 if test $gcc_cv_prog_makeinfo_modern = no; then
7873 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7876 if test $gcc_cv_prog_makeinfo_modern = no; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7878 *** Makeinfo is missing or too old.
7879 *** Info documentation will not be built." >&5
7880 $as_echo "$as_me: WARNING:
7881 *** Makeinfo is missing or too old.
7882 *** Info documentation will not be built." >&2;}
7883 BUILD_INFO=
7884 else
7885 BUILD_INFO=info
7889 # Is pod2man recent enough to regenerate manpages?
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7891 $as_echo_n "checking for recent Pod::Man... " >&6; }
7892 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7894 $as_echo "yes" >&6; }
7895 GENERATED_MANPAGES=generated-manpages
7896 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7899 GENERATED_MANPAGES=
7903 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7905 # How about lex?
7906 for ac_prog in flex
7908 # Extract the first word of "$ac_prog", so it can be a program name with args.
7909 set dummy $ac_prog; ac_word=$2
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911 $as_echo_n "checking for $ac_word... " >&6; }
7912 if test "${ac_cv_prog_FLEX+set}" = set; then :
7913 $as_echo_n "(cached) " >&6
7914 else
7915 if test -n "$FLEX"; then
7916 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7917 else
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7921 IFS=$as_save_IFS
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925 ac_cv_prog_FLEX="$ac_prog"
7926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 break 2
7929 done
7930 done
7931 IFS=$as_save_IFS
7935 FLEX=$ac_cv_prog_FLEX
7936 if test -n "$FLEX"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7938 $as_echo "$FLEX" >&6; }
7939 else
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7945 test -n "$FLEX" && break
7946 done
7947 test -n "$FLEX" || FLEX="$MISSING flex"
7950 # Bison?
7951 for ac_prog in bison
7953 # Extract the first word of "$ac_prog", so it can be a program name with args.
7954 set dummy $ac_prog; ac_word=$2
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 $as_echo_n "checking for $ac_word... " >&6; }
7957 if test "${ac_cv_prog_BISON+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 if test -n "$BISON"; then
7961 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7962 else
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 for as_dir in $PATH
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
7969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7970 ac_cv_prog_BISON="$ac_prog"
7971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 break 2
7974 done
7975 done
7976 IFS=$as_save_IFS
7980 BISON=$ac_cv_prog_BISON
7981 if test -n "$BISON"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7983 $as_echo "$BISON" >&6; }
7984 else
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7990 test -n "$BISON" && break
7991 done
7992 test -n "$BISON" || BISON="$MISSING bison"
7995 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7996 # check for build == host before using them.
7998 # NM
7999 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8000 && test -d ../binutils ; then
8001 NM='${objdir}/../binutils/nm-new'
8002 else
8003 # Extract the first word of "nm", so it can be a program name with args.
8004 set dummy nm; ac_word=$2
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if test "${ac_cv_prog_NM+set}" = set; then :
8008 $as_echo_n "(cached) " >&6
8009 else
8010 if test -n "$NM"; then
8011 ac_cv_prog_NM="$NM" # Let the user override the test.
8012 else
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8020 ac_cv_prog_NM="nm"
8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 break 2
8024 done
8025 done
8026 IFS=$as_save_IFS
8028 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8031 NM=$ac_cv_prog_NM
8032 if test -n "$NM"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8034 $as_echo "$NM" >&6; }
8035 else
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8043 # AR
8044 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8045 && test -d ../binutils ; then
8046 AR='${objdir}/../binutils/ar'
8047 else
8048 # Extract the first word of "ar", so it can be a program name with args.
8049 set dummy ar; ac_word=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if test "${ac_cv_prog_AR+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 if test -n "$AR"; then
8056 ac_cv_prog_AR="$AR" # Let the user override the test.
8057 else
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 for as_dir in $PATH
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8065 ac_cv_prog_AR="ar"
8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 break 2
8069 done
8070 done
8071 IFS=$as_save_IFS
8073 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8076 AR=$ac_cv_prog_AR
8077 if test -n "$AR"; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8079 $as_echo "$AR" >&6; }
8080 else
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8089 # --------------------
8090 # Checks for C headers
8091 # --------------------
8093 # Need to reject headers which give warnings, so that the -Werror bootstrap
8094 # works later. *sigh* This needs to come before all header checks.
8096 ac_c_preproc_warn_flag=yes
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8099 $as_echo_n "checking for ANSI C header files... " >&6; }
8100 if test "${ac_cv_header_stdc+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105 #include <stdlib.h>
8106 #include <stdarg.h>
8107 #include <string.h>
8108 #include <float.h>
8111 main ()
8115 return 0;
8117 _ACEOF
8118 if ac_fn_c_try_compile "$LINENO"; then :
8119 ac_cv_header_stdc=yes
8120 else
8121 ac_cv_header_stdc=no
8123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8125 if test $ac_cv_header_stdc = yes; then
8126 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8129 #include <string.h>
8131 _ACEOF
8132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8133 $EGREP "memchr" >/dev/null 2>&1; then :
8135 else
8136 ac_cv_header_stdc=no
8138 rm -f conftest*
8142 if test $ac_cv_header_stdc = yes; then
8143 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146 #include <stdlib.h>
8148 _ACEOF
8149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8150 $EGREP "free" >/dev/null 2>&1; then :
8152 else
8153 ac_cv_header_stdc=no
8155 rm -f conftest*
8159 if test $ac_cv_header_stdc = yes; then
8160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8161 if test "$cross_compiling" = yes; then :
8163 else
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 #include <ctype.h>
8167 #include <stdlib.h>
8168 #if ((' ' & 0x0FF) == 0x020)
8169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8171 #else
8172 # define ISLOWER(c) \
8173 (('a' <= (c) && (c) <= 'i') \
8174 || ('j' <= (c) && (c) <= 'r') \
8175 || ('s' <= (c) && (c) <= 'z'))
8176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8177 #endif
8179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8181 main ()
8183 int i;
8184 for (i = 0; i < 256; i++)
8185 if (XOR (islower (i), ISLOWER (i))
8186 || toupper (i) != TOUPPER (i))
8187 return 2;
8188 return 0;
8190 _ACEOF
8191 if ac_fn_c_try_run "$LINENO"; then :
8193 else
8194 ac_cv_header_stdc=no
8196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8197 conftest.$ac_objext conftest.beam conftest.$ac_ext
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8203 $as_echo "$ac_cv_header_stdc" >&6; }
8204 if test $ac_cv_header_stdc = yes; then
8206 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8211 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8212 if test "${ac_cv_header_time+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217 #include <sys/types.h>
8218 #include <sys/time.h>
8219 #include <time.h>
8222 main ()
8224 if ((struct tm *) 0)
8225 return 0;
8227 return 0;
8229 _ACEOF
8230 if ac_fn_c_try_compile "$LINENO"; then :
8231 ac_cv_header_time=yes
8232 else
8233 ac_cv_header_time=no
8235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8238 $as_echo "$ac_cv_header_time" >&6; }
8239 if test $ac_cv_header_time = yes; then
8241 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8246 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8247 if test "${gcc_cv_header_string+set}" = set; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252 #include <string.h>
8253 #include <strings.h>
8255 main ()
8259 return 0;
8261 _ACEOF
8262 if ac_fn_c_try_compile "$LINENO"; then :
8263 gcc_cv_header_string=yes
8264 else
8265 gcc_cv_header_string=no
8267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8270 $as_echo "$gcc_cv_header_string" >&6; }
8271 if test $gcc_cv_header_string = yes; then
8273 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8278 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8279 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8280 $as_echo_n "(cached) " >&6
8281 else
8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h. */
8284 #include <sys/types.h>
8285 #include <sys/wait.h>
8286 #ifndef WEXITSTATUS
8287 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8288 #endif
8289 #ifndef WIFEXITED
8290 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8291 #endif
8294 main ()
8296 int s;
8297 wait (&s);
8298 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8300 return 0;
8302 _ACEOF
8303 if ac_fn_c_try_compile "$LINENO"; then :
8304 ac_cv_header_sys_wait_h=yes
8305 else
8306 ac_cv_header_sys_wait_h=no
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8311 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8312 if test $ac_cv_header_sys_wait_h = yes; then
8314 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8318 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8319 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8320 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8321 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8322 do :
8323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8324 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8325 eval as_val=\$$as_ac_Header
8326 if test "x$as_val" = x""yes; then :
8327 cat >>confdefs.h <<_ACEOF
8328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8329 _ACEOF
8332 done
8335 # Check for thread headers.
8336 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8337 if test "x$ac_cv_header_thread_h" = x""yes; then :
8338 have_thread_h=yes
8339 else
8340 have_thread_h=
8343 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8344 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8345 have_pthread_h=yes
8346 else
8347 have_pthread_h=
8351 # These tests can't be done till we know if we have limits.h.
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8353 $as_echo_n "checking for CHAR_BIT... " >&6; }
8354 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8359 #ifdef HAVE_LIMITS_H
8360 #include <limits.h>
8361 #endif
8362 #ifdef CHAR_BIT
8363 found
8364 #endif
8365 _ACEOF
8366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8367 $EGREP "found" >/dev/null 2>&1; then :
8368 gcc_cv_decl_char_bit=yes
8369 else
8370 gcc_cv_decl_char_bit=no
8372 rm -f conftest*
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8377 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8378 if test $gcc_cv_decl_char_bit = no; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8380 $as_echo_n "checking number of bits in a byte... " >&6; }
8381 if test "${gcc_cv_c_nbby+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8385 gcc_cv_c_nbby=
8386 while test $i -lt 65; do
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8391 main ()
8393 switch(0) {
8394 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8395 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8398 return 0;
8400 _ACEOF
8401 if ac_fn_c_try_compile "$LINENO"; then :
8402 gcc_cv_c_nbby=$i; break
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405 i=`expr $i + 1`
8406 done
8407 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8411 $as_echo "$gcc_cv_c_nbby" >&6; }
8412 if test $gcc_cv_c_nbby = failed; then
8413 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8414 else
8416 cat >>confdefs.h <<_ACEOF
8417 #define CHAR_BIT $gcc_cv_c_nbby
8418 _ACEOF
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8423 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8424 if test "${ac_cv_c_bigendian+set}" = set; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 ac_cv_c_bigendian=unknown
8428 # See if we're dealing with a universal compiler.
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8431 #ifndef __APPLE_CC__
8432 not a universal capable compiler
8433 #endif
8434 typedef int dummy;
8436 _ACEOF
8437 if ac_fn_c_try_compile "$LINENO"; then :
8439 # Check for potential -arch flags. It is not universal unless
8440 # there are at least two -arch flags with different values.
8441 ac_arch=
8442 ac_prev=
8443 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8444 if test -n "$ac_prev"; then
8445 case $ac_word in
8446 i?86 | x86_64 | ppc | ppc64)
8447 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8448 ac_arch=$ac_word
8449 else
8450 ac_cv_c_bigendian=universal
8451 break
8454 esac
8455 ac_prev=
8456 elif test "x$ac_word" = "x-arch"; then
8457 ac_prev=arch
8459 done
8461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462 if test $ac_cv_c_bigendian = unknown; then
8463 # See if sys/param.h defines the BYTE_ORDER macro.
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 #include <sys/types.h>
8467 #include <sys/param.h>
8470 main ()
8472 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8473 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8474 && LITTLE_ENDIAN)
8475 bogus endian macros
8476 #endif
8479 return 0;
8481 _ACEOF
8482 if ac_fn_c_try_compile "$LINENO"; then :
8483 # It does; now see whether it defined to BIG_ENDIAN or not.
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8486 #include <sys/types.h>
8487 #include <sys/param.h>
8490 main ()
8492 #if BYTE_ORDER != BIG_ENDIAN
8493 not big endian
8494 #endif
8497 return 0;
8499 _ACEOF
8500 if ac_fn_c_try_compile "$LINENO"; then :
8501 ac_cv_c_bigendian=yes
8502 else
8503 ac_cv_c_bigendian=no
8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509 if test $ac_cv_c_bigendian = unknown; then
8510 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8513 #include <limits.h>
8516 main ()
8518 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8519 bogus endian macros
8520 #endif
8523 return 0;
8525 _ACEOF
8526 if ac_fn_c_try_compile "$LINENO"; then :
8527 # It does; now see whether it defined to _BIG_ENDIAN or not.
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8530 #include <limits.h>
8533 main ()
8535 #ifndef _BIG_ENDIAN
8536 not big endian
8537 #endif
8540 return 0;
8542 _ACEOF
8543 if ac_fn_c_try_compile "$LINENO"; then :
8544 ac_cv_c_bigendian=yes
8545 else
8546 ac_cv_c_bigendian=no
8548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552 if test $ac_cv_c_bigendian = unknown; then
8553 # Compile a test program.
8554 if test "$cross_compiling" = yes; then :
8555 # Try to guess by grepping values from an object file.
8556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557 /* end confdefs.h. */
8558 short int ascii_mm[] =
8559 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8560 short int ascii_ii[] =
8561 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8562 int use_ascii (int i) {
8563 return ascii_mm[i] + ascii_ii[i];
8565 short int ebcdic_ii[] =
8566 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8567 short int ebcdic_mm[] =
8568 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8569 int use_ebcdic (int i) {
8570 return ebcdic_mm[i] + ebcdic_ii[i];
8572 extern int foo;
8575 main ()
8577 return use_ascii (foo) == use_ebcdic (foo);
8579 return 0;
8581 _ACEOF
8582 if ac_fn_c_try_compile "$LINENO"; then :
8583 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8584 ac_cv_c_bigendian=yes
8586 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8587 if test "$ac_cv_c_bigendian" = unknown; then
8588 ac_cv_c_bigendian=no
8589 else
8590 # finding both strings is unlikely to happen, but who knows?
8591 ac_cv_c_bigendian=unknown
8595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596 else
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8599 $ac_includes_default
8601 main ()
8604 /* Are we little or big endian? From Harbison&Steele. */
8605 union
8607 long int l;
8608 char c[sizeof (long int)];
8609 } u;
8610 u.l = 1;
8611 return u.c[sizeof (long int) - 1] == 1;
8614 return 0;
8616 _ACEOF
8617 if ac_fn_c_try_run "$LINENO"; then :
8618 ac_cv_c_bigendian=no
8619 else
8620 ac_cv_c_bigendian=yes
8622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8623 conftest.$ac_objext conftest.beam conftest.$ac_ext
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8629 $as_echo "$ac_cv_c_bigendian" >&6; }
8630 case $ac_cv_c_bigendian in #(
8631 yes)
8632 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8633 ;; #(
8635 ;; #(
8636 universal)
8638 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8640 ;; #(
8642 as_fn_error "unknown endianness
8643 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8644 esac
8647 # ----------------------
8648 # Checks for C++ headers
8649 # ----------------------
8651 ac_ext=cpp
8652 ac_cpp='$CXXCPP $CPPFLAGS'
8653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8657 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8658 if test -z "$CXXCPP"; then
8659 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8660 $as_echo_n "(cached) " >&6
8661 else
8662 # Double quotes because CXXCPP needs to be expanded
8663 for CXXCPP in "$CXX -E" "/lib/cpp"
8665 ac_preproc_ok=false
8666 for ac_cxx_preproc_warn_flag in '' yes
8668 # Use a header file that comes with gcc, so configuring glibc
8669 # with a fresh cross-compiler works.
8670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8671 # <limits.h> exists even on freestanding compilers.
8672 # On the NeXT, cc -E runs the code through the compiler's parser,
8673 # not just through cpp. "Syntax error" is here to catch this case.
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 #ifdef __STDC__
8677 # include <limits.h>
8678 #else
8679 # include <assert.h>
8680 #endif
8681 Syntax error
8682 _ACEOF
8683 if ac_fn_cxx_try_cpp "$LINENO"; then :
8685 else
8686 # Broken: fails on valid input.
8687 continue
8689 rm -f conftest.err conftest.$ac_ext
8691 # OK, works on sane cases. Now check whether nonexistent headers
8692 # can be detected and how.
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695 #include <ac_nonexistent.h>
8696 _ACEOF
8697 if ac_fn_cxx_try_cpp "$LINENO"; then :
8698 # Broken: success on invalid input.
8699 continue
8700 else
8701 # Passes both tests.
8702 ac_preproc_ok=:
8703 break
8705 rm -f conftest.err conftest.$ac_ext
8707 done
8708 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8709 rm -f conftest.err conftest.$ac_ext
8710 if $ac_preproc_ok; then :
8711 break
8714 done
8715 ac_cv_prog_CXXCPP=$CXXCPP
8718 CXXCPP=$ac_cv_prog_CXXCPP
8719 else
8720 ac_cv_prog_CXXCPP=$CXXCPP
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8723 $as_echo "$CXXCPP" >&6; }
8724 ac_preproc_ok=false
8725 for ac_cxx_preproc_warn_flag in '' yes
8727 # Use a header file that comes with gcc, so configuring glibc
8728 # with a fresh cross-compiler works.
8729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8730 # <limits.h> exists even on freestanding compilers.
8731 # On the NeXT, cc -E runs the code through the compiler's parser,
8732 # not just through cpp. "Syntax error" is here to catch this case.
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 #ifdef __STDC__
8736 # include <limits.h>
8737 #else
8738 # include <assert.h>
8739 #endif
8740 Syntax error
8741 _ACEOF
8742 if ac_fn_cxx_try_cpp "$LINENO"; then :
8744 else
8745 # Broken: fails on valid input.
8746 continue
8748 rm -f conftest.err conftest.$ac_ext
8750 # OK, works on sane cases. Now check whether nonexistent headers
8751 # can be detected and how.
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 #include <ac_nonexistent.h>
8755 _ACEOF
8756 if ac_fn_cxx_try_cpp "$LINENO"; then :
8757 # Broken: success on invalid input.
8758 continue
8759 else
8760 # Passes both tests.
8761 ac_preproc_ok=:
8762 break
8764 rm -f conftest.err conftest.$ac_ext
8766 done
8767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8768 rm -f conftest.err conftest.$ac_ext
8769 if $ac_preproc_ok; then :
8771 else
8772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8775 See \`config.log' for more details." >&5
8776 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8777 See \`config.log' for more details." >&2;}; }
8780 ac_ext=c
8781 ac_cpp='$CPP $CPPFLAGS'
8782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8787 ac_ext=cpp
8788 ac_cpp='$CXXCPP $CPPFLAGS'
8789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8796 for ac_header in unordered_map
8797 do :
8798 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8799 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8800 cat >>confdefs.h <<_ACEOF
8801 #define HAVE_UNORDERED_MAP 1
8802 _ACEOF
8805 done
8807 for ac_header in tr1/unordered_map
8808 do :
8809 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8810 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8811 cat >>confdefs.h <<_ACEOF
8812 #define HAVE_TR1_UNORDERED_MAP 1
8813 _ACEOF
8816 done
8818 for ac_header in ext/hash_map
8819 do :
8820 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8821 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8822 cat >>confdefs.h <<_ACEOF
8823 #define HAVE_EXT_HASH_MAP 1
8824 _ACEOF
8827 done
8830 ac_ext=c
8831 ac_cpp='$CPP $CPPFLAGS'
8832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8837 # --------
8838 # UNSORTED
8839 # --------
8842 # These libraries may be used by collect2.
8843 # We may need a special search path to get them linked.
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8845 $as_echo_n "checking for collect2 libraries... " >&6; }
8846 if test "${gcc_cv_collect2_libs+set}" = set; then :
8847 $as_echo_n "(cached) " >&6
8848 else
8849 save_LIBS="$LIBS"
8850 for libs in '' -lld -lmld \
8851 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8852 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8854 LIBS="$libs"
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8858 /* Override any GCC internal prototype to avoid an error.
8859 Use char because int might match the return type of a GCC
8860 builtin and then its argument prototype would still apply. */
8861 #ifdef __cplusplus
8862 extern "C"
8863 #endif
8864 char ldopen ();
8866 main ()
8868 return ldopen ();
8870 return 0;
8872 _ACEOF
8873 if ac_fn_c_try_link "$LINENO"; then :
8874 gcc_cv_collect2_libs="$libs"; break
8876 rm -f core conftest.err conftest.$ac_objext \
8877 conftest$ac_exeext conftest.$ac_ext
8878 done
8879 LIBS="$save_LIBS"
8880 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8883 $as_echo "$gcc_cv_collect2_libs" >&6; }
8884 case $gcc_cv_collect2_libs in
8885 "none required") ;;
8886 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8887 esac
8890 # When building Ada code on Alpha, we need exc_resume which is usually in
8891 # -lexc. So test for it.
8892 save_LIBS="$LIBS"
8893 LIBS=
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8895 $as_echo_n "checking for library containing exc_resume... " >&6; }
8896 if test "${ac_cv_search_exc_resume+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 ac_func_search_save_LIBS=$LIBS
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8903 /* Override any GCC internal prototype to avoid an error.
8904 Use char because int might match the return type of a GCC
8905 builtin and then its argument prototype would still apply. */
8906 #ifdef __cplusplus
8907 extern "C"
8908 #endif
8909 char exc_resume ();
8911 main ()
8913 return exc_resume ();
8915 return 0;
8917 _ACEOF
8918 for ac_lib in '' exc; do
8919 if test -z "$ac_lib"; then
8920 ac_res="none required"
8921 else
8922 ac_res=-l$ac_lib
8923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8925 if ac_fn_c_try_link "$LINENO"; then :
8926 ac_cv_search_exc_resume=$ac_res
8928 rm -f core conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext
8930 if test "${ac_cv_search_exc_resume+set}" = set; then :
8931 break
8933 done
8934 if test "${ac_cv_search_exc_resume+set}" = set; then :
8936 else
8937 ac_cv_search_exc_resume=no
8939 rm conftest.$ac_ext
8940 LIBS=$ac_func_search_save_LIBS
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8943 $as_echo "$ac_cv_search_exc_resume" >&6; }
8944 ac_res=$ac_cv_search_exc_resume
8945 if test "$ac_res" != no; then :
8946 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8950 GNAT_LIBEXC="$LIBS"
8951 LIBS="$save_LIBS"
8954 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8955 save_LIBS="$LIBS"
8956 LIBS=
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8958 $as_echo_n "checking for library containing kstat_open... " >&6; }
8959 if test "${ac_cv_search_kstat_open+set}" = set; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 ac_func_search_save_LIBS=$LIBS
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8966 /* Override any GCC internal prototype to avoid an error.
8967 Use char because int might match the return type of a GCC
8968 builtin and then its argument prototype would still apply. */
8969 #ifdef __cplusplus
8970 extern "C"
8971 #endif
8972 char kstat_open ();
8974 main ()
8976 return kstat_open ();
8978 return 0;
8980 _ACEOF
8981 for ac_lib in '' kstat; do
8982 if test -z "$ac_lib"; then
8983 ac_res="none required"
8984 else
8985 ac_res=-l$ac_lib
8986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8988 if ac_fn_c_try_link "$LINENO"; then :
8989 ac_cv_search_kstat_open=$ac_res
8991 rm -f core conftest.err conftest.$ac_objext \
8992 conftest$ac_exeext
8993 if test "${ac_cv_search_kstat_open+set}" = set; then :
8994 break
8996 done
8997 if test "${ac_cv_search_kstat_open+set}" = set; then :
8999 else
9000 ac_cv_search_kstat_open=no
9002 rm conftest.$ac_ext
9003 LIBS=$ac_func_search_save_LIBS
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9006 $as_echo "$ac_cv_search_kstat_open" >&6; }
9007 ac_res=$ac_cv_search_kstat_open
9008 if test "$ac_res" != no; then :
9009 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9013 EXTRA_GCC_LIBS="$LIBS"
9014 LIBS="$save_LIBS"
9017 # Some systems put ldexp and frexp in libm instead of libc; assume
9018 # they're both in the same place. jcf-dump needs them.
9019 save_LIBS="$LIBS"
9020 LIBS=
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9022 $as_echo_n "checking for library containing ldexp... " >&6; }
9023 if test "${ac_cv_search_ldexp+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 ac_func_search_save_LIBS=$LIBS
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9030 /* Override any GCC internal prototype to avoid an error.
9031 Use char because int might match the return type of a GCC
9032 builtin and then its argument prototype would still apply. */
9033 #ifdef __cplusplus
9034 extern "C"
9035 #endif
9036 char ldexp ();
9038 main ()
9040 return ldexp ();
9042 return 0;
9044 _ACEOF
9045 for ac_lib in '' m; do
9046 if test -z "$ac_lib"; then
9047 ac_res="none required"
9048 else
9049 ac_res=-l$ac_lib
9050 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9052 if ac_fn_c_try_link "$LINENO"; then :
9053 ac_cv_search_ldexp=$ac_res
9055 rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext
9057 if test "${ac_cv_search_ldexp+set}" = set; then :
9058 break
9060 done
9061 if test "${ac_cv_search_ldexp+set}" = set; then :
9063 else
9064 ac_cv_search_ldexp=no
9066 rm conftest.$ac_ext
9067 LIBS=$ac_func_search_save_LIBS
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9070 $as_echo "$ac_cv_search_ldexp" >&6; }
9071 ac_res=$ac_cv_search_ldexp
9072 if test "$ac_res" != no; then :
9073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9077 LDEXP_LIB="$LIBS"
9078 LIBS="$save_LIBS"
9081 # Use <inttypes.h> only if it exists,
9082 # doesn't clash with <sys/types.h>, and declares intmax_t.
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9084 $as_echo_n "checking for inttypes.h... " >&6; }
9085 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9086 $as_echo_n "(cached) " >&6
9087 else
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 #include <sys/types.h>
9091 #include <inttypes.h>
9093 main ()
9095 intmax_t i = -1;
9097 return 0;
9099 _ACEOF
9100 if ac_fn_c_try_compile "$LINENO"; then :
9101 gcc_cv_header_inttypes_h=yes
9102 else
9103 gcc_cv_header_inttypes_h=no
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9109 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9110 if test $gcc_cv_header_inttypes_h = yes; then
9112 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9118 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9119 sysconf strsignal getrusage nl_langinfo \
9120 gettimeofday mbstowcs wcswidth mmap setlocale \
9121 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
9122 do :
9123 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9124 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9125 eval as_val=\$$as_ac_var
9126 if test "x$as_val" = x""yes; then :
9127 cat >>confdefs.h <<_ACEOF
9128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9129 _ACEOF
9132 done
9135 if test x$ac_cv_func_mbstowcs = xyes; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9137 $as_echo_n "checking whether mbstowcs works... " >&6; }
9138 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 if test "$cross_compiling" = yes; then :
9142 gcc_cv_func_mbstowcs_works=yes
9143 else
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 #include <stdlib.h>
9147 int main()
9149 mbstowcs(0, "", 0);
9150 return 0;
9152 _ACEOF
9153 if ac_fn_c_try_run "$LINENO"; then :
9154 gcc_cv_func_mbstowcs_works=yes
9155 else
9156 gcc_cv_func_mbstowcs_works=no
9158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9159 conftest.$ac_objext conftest.beam conftest.$ac_ext
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9164 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9165 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9167 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9172 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9173 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9175 else
9177 cat >>confdefs.h <<_ACEOF
9178 #define ssize_t int
9179 _ACEOF
9183 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9184 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9186 else
9188 cat >>confdefs.h <<_ACEOF
9189 #define caddr_t char *
9190 _ACEOF
9196 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9197 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9198 gcc_header_sys_mman_h=yes
9199 else
9200 gcc_header_sys_mman_h=no
9203 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9204 if test "x$ac_cv_func_mmap" = x""yes; then :
9205 gcc_func_mmap=yes
9206 else
9207 gcc_func_mmap=no
9210 if test "$gcc_header_sys_mman_h" != yes \
9211 || test "$gcc_func_mmap" != yes; then
9212 gcc_cv_func_mmap_file=no
9213 gcc_cv_func_mmap_dev_zero=no
9214 gcc_cv_func_mmap_anon=no
9215 else
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9217 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9218 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9219 $as_echo_n "(cached) " >&6
9220 else
9221 # Add a system to this blacklist if
9222 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9223 # memory area containing the same data that you'd get if you applied
9224 # read() to the same fd. The only system known to have a problem here
9225 # is VMS, where text files have record structure.
9226 case "$host_os" in
9227 *vms* | ultrix*)
9228 gcc_cv_func_mmap_file=no ;;
9230 gcc_cv_func_mmap_file=yes;;
9231 esac
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9234 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9236 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9237 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
9239 else
9240 # Add a system to this blacklist if it has mmap() but /dev/zero
9241 # does not exist, or if mmapping /dev/zero does not give anonymous
9242 # zeroed pages with both the following properties:
9243 # 1. If you map N consecutive pages in with one call, and then
9244 # unmap any subset of those pages, the pages that were not
9245 # explicitly unmapped remain accessible.
9246 # 2. If you map two adjacent blocks of memory and then unmap them
9247 # both at once, they must both go away.
9248 # Systems known to be in this category are Windows (all variants),
9249 # VMS, and Darwin.
9250 case "$host_os" in
9251 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9252 gcc_cv_func_mmap_dev_zero=no ;;
9254 gcc_cv_func_mmap_dev_zero=yes;;
9255 esac
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9258 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9260 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9262 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9263 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 #include <sys/types.h>
9269 #include <sys/mman.h>
9270 #include <unistd.h>
9272 #ifndef MAP_ANONYMOUS
9273 #define MAP_ANONYMOUS MAP_ANON
9274 #endif
9277 main ()
9279 int n = MAP_ANONYMOUS;
9281 return 0;
9283 _ACEOF
9284 if ac_fn_c_try_compile "$LINENO"; then :
9285 gcc_cv_decl_map_anon=yes
9286 else
9287 gcc_cv_decl_map_anon=no
9289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9292 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9294 if test $gcc_cv_decl_map_anon = no; then
9295 gcc_cv_func_mmap_anon=no
9296 else
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9298 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9299 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9303 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9304 # doesn't give anonymous zeroed pages with the same properties listed
9305 # above for use of /dev/zero.
9306 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9307 case "$host_os" in
9308 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9309 gcc_cv_func_mmap_anon=no ;;
9311 gcc_cv_func_mmap_anon=yes;;
9312 esac
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9315 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9319 if test $gcc_cv_func_mmap_file = yes; then
9321 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9324 if test $gcc_cv_func_mmap_dev_zero = yes; then
9326 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9329 if test $gcc_cv_func_mmap_anon = yes; then
9331 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9336 case "${host}" in
9337 *-*-*vms*)
9338 # Under VMS, vfork works very differently than on Unix. The standard test
9339 # won't work, and it isn't easily adaptable. It makes more sense to
9340 # just force it.
9341 ac_cv_func_vfork_works=yes
9343 esac
9344 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9345 if test "x$ac_cv_type_pid_t" = x""yes; then :
9347 else
9349 cat >>confdefs.h <<_ACEOF
9350 #define pid_t int
9351 _ACEOF
9355 for ac_header in vfork.h
9356 do :
9357 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9358 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9359 cat >>confdefs.h <<_ACEOF
9360 #define HAVE_VFORK_H 1
9361 _ACEOF
9364 done
9366 for ac_func in fork vfork
9367 do :
9368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9370 eval as_val=\$$as_ac_var
9371 if test "x$as_val" = x""yes; then :
9372 cat >>confdefs.h <<_ACEOF
9373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9374 _ACEOF
9377 done
9379 if test "x$ac_cv_func_fork" = xyes; then
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9381 $as_echo_n "checking for working fork... " >&6; }
9382 if test "${ac_cv_func_fork_works+set}" = set; then :
9383 $as_echo_n "(cached) " >&6
9384 else
9385 if test "$cross_compiling" = yes; then :
9386 ac_cv_func_fork_works=cross
9387 else
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 $ac_includes_default
9392 main ()
9395 /* By Ruediger Kuhlmann. */
9396 return fork () < 0;
9399 return 0;
9401 _ACEOF
9402 if ac_fn_c_try_run "$LINENO"; then :
9403 ac_cv_func_fork_works=yes
9404 else
9405 ac_cv_func_fork_works=no
9407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9408 conftest.$ac_objext conftest.beam conftest.$ac_ext
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9413 $as_echo "$ac_cv_func_fork_works" >&6; }
9415 else
9416 ac_cv_func_fork_works=$ac_cv_func_fork
9418 if test "x$ac_cv_func_fork_works" = xcross; then
9419 case $host in
9420 *-*-amigaos* | *-*-msdosdjgpp*)
9421 # Override, as these systems have only a dummy fork() stub
9422 ac_cv_func_fork_works=no
9425 ac_cv_func_fork_works=yes
9427 esac
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9429 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9431 ac_cv_func_vfork_works=$ac_cv_func_vfork
9432 if test "x$ac_cv_func_vfork" = xyes; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9434 $as_echo_n "checking for working vfork... " >&6; }
9435 if test "${ac_cv_func_vfork_works+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
9437 else
9438 if test "$cross_compiling" = yes; then :
9439 ac_cv_func_vfork_works=cross
9440 else
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 /* Thanks to Paul Eggert for this test. */
9444 $ac_includes_default
9445 #include <sys/wait.h>
9446 #ifdef HAVE_VFORK_H
9447 # include <vfork.h>
9448 #endif
9449 /* On some sparc systems, changes by the child to local and incoming
9450 argument registers are propagated back to the parent. The compiler
9451 is told about this with #include <vfork.h>, but some compilers
9452 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9453 static variable whose address is put into a register that is
9454 clobbered by the vfork. */
9455 static void
9456 #ifdef __cplusplus
9457 sparc_address_test (int arg)
9458 # else
9459 sparc_address_test (arg) int arg;
9460 #endif
9462 static pid_t child;
9463 if (!child) {
9464 child = vfork ();
9465 if (child < 0) {
9466 perror ("vfork");
9467 _exit(2);
9469 if (!child) {
9470 arg = getpid();
9471 write(-1, "", 0);
9472 _exit (arg);
9478 main ()
9480 pid_t parent = getpid ();
9481 pid_t child;
9483 sparc_address_test (0);
9485 child = vfork ();
9487 if (child == 0) {
9488 /* Here is another test for sparc vfork register problems. This
9489 test uses lots of local variables, at least as many local
9490 variables as main has allocated so far including compiler
9491 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9492 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9493 reuse the register of parent for one of the local variables,
9494 since it will think that parent can't possibly be used any more
9495 in this routine. Assigning to the local variable will thus
9496 munge parent in the parent process. */
9497 pid_t
9498 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9499 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9500 /* Convince the compiler that p..p7 are live; otherwise, it might
9501 use the same hardware register for all 8 local variables. */
9502 if (p != p1 || p != p2 || p != p3 || p != p4
9503 || p != p5 || p != p6 || p != p7)
9504 _exit(1);
9506 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9507 from child file descriptors. If the child closes a descriptor
9508 before it execs or exits, this munges the parent's descriptor
9509 as well. Test for this by closing stdout in the child. */
9510 _exit(close(fileno(stdout)) != 0);
9511 } else {
9512 int status;
9513 struct stat st;
9515 while (wait(&status) != child)
9517 return (
9518 /* Was there some problem with vforking? */
9519 child < 0
9521 /* Did the child fail? (This shouldn't happen.) */
9522 || status
9524 /* Did the vfork/compiler bug occur? */
9525 || parent != getpid()
9527 /* Did the file descriptor bug occur? */
9528 || fstat(fileno(stdout), &st) != 0
9532 _ACEOF
9533 if ac_fn_c_try_run "$LINENO"; then :
9534 ac_cv_func_vfork_works=yes
9535 else
9536 ac_cv_func_vfork_works=no
9538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9539 conftest.$ac_objext conftest.beam conftest.$ac_ext
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9544 $as_echo "$ac_cv_func_vfork_works" >&6; }
9547 if test "x$ac_cv_func_fork_works" = xcross; then
9548 ac_cv_func_vfork_works=$ac_cv_func_vfork
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9550 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9553 if test "x$ac_cv_func_vfork_works" = xyes; then
9555 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9557 else
9559 $as_echo "#define vfork fork" >>confdefs.h
9562 if test "x$ac_cv_func_fork_works" = xyes; then
9564 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9569 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9570 # iconv() prototype.
9571 ac_ext=cpp
9572 ac_cpp='$CXXCPP $CPPFLAGS'
9573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9578 if test "X$prefix" = "XNONE"; then
9579 acl_final_prefix="$ac_default_prefix"
9580 else
9581 acl_final_prefix="$prefix"
9583 if test "X$exec_prefix" = "XNONE"; then
9584 acl_final_exec_prefix='${prefix}'
9585 else
9586 acl_final_exec_prefix="$exec_prefix"
9588 acl_save_prefix="$prefix"
9589 prefix="$acl_final_prefix"
9590 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9591 prefix="$acl_save_prefix"
9594 # Check whether --with-gnu-ld was given.
9595 if test "${with_gnu_ld+set}" = set; then :
9596 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9597 else
9598 with_gnu_ld=no
9601 # Prepare PATH_SEPARATOR.
9602 # The user is always right.
9603 if test "${PATH_SEPARATOR+set}" != set; then
9604 echo "#! /bin/sh" >conf$$.sh
9605 echo "exit 0" >>conf$$.sh
9606 chmod +x conf$$.sh
9607 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9608 PATH_SEPARATOR=';'
9609 else
9610 PATH_SEPARATOR=:
9612 rm -f conf$$.sh
9614 ac_prog=ld
9615 if test "$GCC" = yes; then
9616 # Check if gcc -print-prog-name=ld gives a path.
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9618 $as_echo_n "checking for ld used by GCC... " >&6; }
9619 case $host in
9620 *-*-mingw*)
9621 # gcc leaves a trailing carriage return which upsets mingw
9622 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9624 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9625 esac
9626 case $ac_prog in
9627 # Accept absolute paths.
9628 [\\/]* | [A-Za-z]:[\\/]*)
9629 re_direlt='/[^/][^/]*/\.\./'
9630 # Canonicalize the path of ld
9631 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9632 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9633 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9634 done
9635 test -z "$LD" && LD="$ac_prog"
9638 # If it fails, then pretend we aren't using GCC.
9639 ac_prog=ld
9642 # If it is relative, then search for the first ld in PATH.
9643 with_gnu_ld=unknown
9645 esac
9646 elif test "$with_gnu_ld" = yes; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9648 $as_echo_n "checking for GNU ld... " >&6; }
9649 else
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9651 $as_echo_n "checking for non-GNU ld... " >&6; }
9653 if test "${acl_cv_path_LD+set}" = set; then :
9654 $as_echo_n "(cached) " >&6
9655 else
9656 if test -z "$LD"; then
9657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9658 for ac_dir in $PATH; do
9659 test -z "$ac_dir" && ac_dir=.
9660 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9661 acl_cv_path_LD="$ac_dir/$ac_prog"
9662 # Check to see if the program is GNU ld. I'd rather use --version,
9663 # but apparently some GNU ld's only accept -v.
9664 # Break only if it was the GNU/non-GNU ld that we prefer.
9665 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9666 test "$with_gnu_ld" != no && break
9667 else
9668 test "$with_gnu_ld" != yes && break
9671 done
9672 IFS="$ac_save_ifs"
9673 else
9674 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9678 LD="$acl_cv_path_LD"
9679 if test -n "$LD"; then
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9681 $as_echo "$LD" >&6; }
9682 else
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684 $as_echo "no" >&6; }
9686 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9688 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9689 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9693 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9694 acl_cv_prog_gnu_ld=yes
9695 else
9696 acl_cv_prog_gnu_ld=no
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9700 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9701 with_gnu_ld=$acl_cv_prog_gnu_ld
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9706 $as_echo_n "checking for shared library run path origin... " >&6; }
9707 if test "${acl_cv_rpath+set}" = set; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9711 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9712 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9713 . ./conftest.sh
9714 rm -f ./conftest.sh
9715 acl_cv_rpath=done
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9719 $as_echo "$acl_cv_rpath" >&6; }
9720 wl="$acl_cv_wl"
9721 libext="$acl_cv_libext"
9722 shlibext="$acl_cv_shlibext"
9723 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9724 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9725 hardcode_direct="$acl_cv_hardcode_direct"
9726 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9727 # Check whether --enable-rpath was given.
9728 if test "${enable_rpath+set}" = set; then :
9729 enableval=$enable_rpath; :
9730 else
9731 enable_rpath=yes
9741 use_additional=yes
9743 acl_save_prefix="$prefix"
9744 prefix="$acl_final_prefix"
9745 acl_save_exec_prefix="$exec_prefix"
9746 exec_prefix="$acl_final_exec_prefix"
9748 eval additional_includedir=\"$includedir\"
9749 eval additional_libdir=\"$libdir\"
9751 exec_prefix="$acl_save_exec_prefix"
9752 prefix="$acl_save_prefix"
9755 # Check whether --with-libiconv-prefix was given.
9756 if test "${with_libiconv_prefix+set}" = set; then :
9757 withval=$with_libiconv_prefix;
9758 if test "X$withval" = "Xno"; then
9759 use_additional=no
9760 else
9761 if test "X$withval" = "X"; then
9763 acl_save_prefix="$prefix"
9764 prefix="$acl_final_prefix"
9765 acl_save_exec_prefix="$exec_prefix"
9766 exec_prefix="$acl_final_exec_prefix"
9768 eval additional_includedir=\"$includedir\"
9769 eval additional_libdir=\"$libdir\"
9771 exec_prefix="$acl_save_exec_prefix"
9772 prefix="$acl_save_prefix"
9774 else
9775 additional_includedir="$withval/include"
9776 additional_libdir="$withval/lib"
9782 LIBICONV=
9783 LTLIBICONV=
9784 INCICONV=
9785 rpathdirs=
9786 ltrpathdirs=
9787 names_already_handled=
9788 names_next_round='iconv '
9789 while test -n "$names_next_round"; do
9790 names_this_round="$names_next_round"
9791 names_next_round=
9792 for name in $names_this_round; do
9793 already_handled=
9794 for n in $names_already_handled; do
9795 if test "$n" = "$name"; then
9796 already_handled=yes
9797 break
9799 done
9800 if test -z "$already_handled"; then
9801 names_already_handled="$names_already_handled $name"
9802 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9803 eval value=\"\$HAVE_LIB$uppername\"
9804 if test -n "$value"; then
9805 if test "$value" = yes; then
9806 eval value=\"\$LIB$uppername\"
9807 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9808 eval value=\"\$LTLIB$uppername\"
9809 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9810 else
9813 else
9814 found_dir=
9815 found_la=
9816 found_so=
9817 found_a=
9818 if test $use_additional = yes; then
9819 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9820 found_dir="$additional_libdir"
9821 found_so="$additional_libdir/lib$name.$shlibext"
9822 if test -f "$additional_libdir/lib$name.la"; then
9823 found_la="$additional_libdir/lib$name.la"
9825 else
9826 if test -f "$additional_libdir/lib$name.$libext"; then
9827 found_dir="$additional_libdir"
9828 found_a="$additional_libdir/lib$name.$libext"
9829 if test -f "$additional_libdir/lib$name.la"; then
9830 found_la="$additional_libdir/lib$name.la"
9835 if test "X$found_dir" = "X"; then
9836 for x in $LDFLAGS $LTLIBICONV; do
9838 acl_save_prefix="$prefix"
9839 prefix="$acl_final_prefix"
9840 acl_save_exec_prefix="$exec_prefix"
9841 exec_prefix="$acl_final_exec_prefix"
9842 eval x=\"$x\"
9843 exec_prefix="$acl_save_exec_prefix"
9844 prefix="$acl_save_prefix"
9846 case "$x" in
9847 -L*)
9848 dir=`echo "X$x" | sed -e 's/^X-L//'`
9849 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9850 found_dir="$dir"
9851 found_so="$dir/lib$name.$shlibext"
9852 if test -f "$dir/lib$name.la"; then
9853 found_la="$dir/lib$name.la"
9855 else
9856 if test -f "$dir/lib$name.$libext"; then
9857 found_dir="$dir"
9858 found_a="$dir/lib$name.$libext"
9859 if test -f "$dir/lib$name.la"; then
9860 found_la="$dir/lib$name.la"
9865 esac
9866 if test "X$found_dir" != "X"; then
9867 break
9869 done
9871 if test "X$found_dir" != "X"; then
9872 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9873 if test "X$found_so" != "X"; then
9874 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9875 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9876 else
9877 haveit=
9878 for x in $ltrpathdirs; do
9879 if test "X$x" = "X$found_dir"; then
9880 haveit=yes
9881 break
9883 done
9884 if test -z "$haveit"; then
9885 ltrpathdirs="$ltrpathdirs $found_dir"
9887 if test "$hardcode_direct" = yes; then
9888 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9889 else
9890 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9891 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9892 haveit=
9893 for x in $rpathdirs; do
9894 if test "X$x" = "X$found_dir"; then
9895 haveit=yes
9896 break
9898 done
9899 if test -z "$haveit"; then
9900 rpathdirs="$rpathdirs $found_dir"
9902 else
9903 haveit=
9904 for x in $LDFLAGS $LIBICONV; do
9906 acl_save_prefix="$prefix"
9907 prefix="$acl_final_prefix"
9908 acl_save_exec_prefix="$exec_prefix"
9909 exec_prefix="$acl_final_exec_prefix"
9910 eval x=\"$x\"
9911 exec_prefix="$acl_save_exec_prefix"
9912 prefix="$acl_save_prefix"
9914 if test "X$x" = "X-L$found_dir"; then
9915 haveit=yes
9916 break
9918 done
9919 if test -z "$haveit"; then
9920 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9922 if test "$hardcode_minus_L" != no; then
9923 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9924 else
9925 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9930 else
9931 if test "X$found_a" != "X"; then
9932 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9933 else
9934 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9937 additional_includedir=
9938 case "$found_dir" in
9939 */lib | */lib/)
9940 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9941 additional_includedir="$basedir/include"
9943 esac
9944 if test "X$additional_includedir" != "X"; then
9945 if test "X$additional_includedir" != "X/usr/include"; then
9946 haveit=
9947 if test "X$additional_includedir" = "X/usr/local/include"; then
9948 if test -n "$GCC"; then
9949 case $host_os in
9950 linux*) haveit=yes;;
9951 esac
9954 if test -z "$haveit"; then
9955 for x in $CPPFLAGS $INCICONV; do
9957 acl_save_prefix="$prefix"
9958 prefix="$acl_final_prefix"
9959 acl_save_exec_prefix="$exec_prefix"
9960 exec_prefix="$acl_final_exec_prefix"
9961 eval x=\"$x\"
9962 exec_prefix="$acl_save_exec_prefix"
9963 prefix="$acl_save_prefix"
9965 if test "X$x" = "X-I$additional_includedir"; then
9966 haveit=yes
9967 break
9969 done
9970 if test -z "$haveit"; then
9971 if test -d "$additional_includedir"; then
9972 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9978 if test -n "$found_la"; then
9979 save_libdir="$libdir"
9980 case "$found_la" in
9981 */* | *\\*) . "$found_la" ;;
9982 *) . "./$found_la" ;;
9983 esac
9984 libdir="$save_libdir"
9985 for dep in $dependency_libs; do
9986 case "$dep" in
9987 -L*)
9988 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9989 if test "X$additional_libdir" != "X/usr/lib"; then
9990 haveit=
9991 if test "X$additional_libdir" = "X/usr/local/lib"; then
9992 if test -n "$GCC"; then
9993 case $host_os in
9994 linux*) haveit=yes;;
9995 esac
9998 if test -z "$haveit"; then
9999 haveit=
10000 for x in $LDFLAGS $LIBICONV; do
10002 acl_save_prefix="$prefix"
10003 prefix="$acl_final_prefix"
10004 acl_save_exec_prefix="$exec_prefix"
10005 exec_prefix="$acl_final_exec_prefix"
10006 eval x=\"$x\"
10007 exec_prefix="$acl_save_exec_prefix"
10008 prefix="$acl_save_prefix"
10010 if test "X$x" = "X-L$additional_libdir"; then
10011 haveit=yes
10012 break
10014 done
10015 if test -z "$haveit"; then
10016 if test -d "$additional_libdir"; then
10017 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10020 haveit=
10021 for x in $LDFLAGS $LTLIBICONV; do
10023 acl_save_prefix="$prefix"
10024 prefix="$acl_final_prefix"
10025 acl_save_exec_prefix="$exec_prefix"
10026 exec_prefix="$acl_final_exec_prefix"
10027 eval x=\"$x\"
10028 exec_prefix="$acl_save_exec_prefix"
10029 prefix="$acl_save_prefix"
10031 if test "X$x" = "X-L$additional_libdir"; then
10032 haveit=yes
10033 break
10035 done
10036 if test -z "$haveit"; then
10037 if test -d "$additional_libdir"; then
10038 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10044 -R*)
10045 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10046 if test "$enable_rpath" != no; then
10047 haveit=
10048 for x in $rpathdirs; do
10049 if test "X$x" = "X$dir"; then
10050 haveit=yes
10051 break
10053 done
10054 if test -z "$haveit"; then
10055 rpathdirs="$rpathdirs $dir"
10057 haveit=
10058 for x in $ltrpathdirs; do
10059 if test "X$x" = "X$dir"; then
10060 haveit=yes
10061 break
10063 done
10064 if test -z "$haveit"; then
10065 ltrpathdirs="$ltrpathdirs $dir"
10069 -l*)
10070 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10072 *.la)
10073 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10076 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10077 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10079 esac
10080 done
10082 else
10083 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10084 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10088 done
10089 done
10090 if test "X$rpathdirs" != "X"; then
10091 if test -n "$hardcode_libdir_separator"; then
10092 alldirs=
10093 for found_dir in $rpathdirs; do
10094 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10095 done
10096 acl_save_libdir="$libdir"
10097 libdir="$alldirs"
10098 eval flag=\"$hardcode_libdir_flag_spec\"
10099 libdir="$acl_save_libdir"
10100 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10101 else
10102 for found_dir in $rpathdirs; do
10103 acl_save_libdir="$libdir"
10104 libdir="$found_dir"
10105 eval flag=\"$hardcode_libdir_flag_spec\"
10106 libdir="$acl_save_libdir"
10107 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10108 done
10111 if test "X$ltrpathdirs" != "X"; then
10112 for found_dir in $ltrpathdirs; do
10113 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10114 done
10123 am_save_CPPFLAGS="$CPPFLAGS"
10125 for element in $INCICONV; do
10126 haveit=
10127 for x in $CPPFLAGS; do
10129 acl_save_prefix="$prefix"
10130 prefix="$acl_final_prefix"
10131 acl_save_exec_prefix="$exec_prefix"
10132 exec_prefix="$acl_final_exec_prefix"
10133 eval x=\"$x\"
10134 exec_prefix="$acl_save_exec_prefix"
10135 prefix="$acl_save_prefix"
10137 if test "X$x" = "X$element"; then
10138 haveit=yes
10139 break
10141 done
10142 if test -z "$haveit"; then
10143 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10145 done
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10149 $as_echo_n "checking for iconv... " >&6; }
10150 if test "${am_cv_func_iconv+set}" = set; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10154 am_cv_func_iconv="no, consider installing GNU libiconv"
10155 am_cv_lib_iconv=no
10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158 #include <stdlib.h>
10159 #include <iconv.h>
10161 main ()
10163 iconv_t cd = iconv_open("","");
10164 iconv(cd,NULL,NULL,NULL,NULL);
10165 iconv_close(cd);
10167 return 0;
10169 _ACEOF
10170 if ac_fn_cxx_try_link "$LINENO"; then :
10171 am_cv_func_iconv=yes
10173 rm -f core conftest.err conftest.$ac_objext \
10174 conftest$ac_exeext conftest.$ac_ext
10175 if test "$am_cv_func_iconv" != yes; then
10176 am_save_LIBS="$LIBS"
10177 LIBS="$LIBS $LIBICONV"
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180 #include <stdlib.h>
10181 #include <iconv.h>
10183 main ()
10185 iconv_t cd = iconv_open("","");
10186 iconv(cd,NULL,NULL,NULL,NULL);
10187 iconv_close(cd);
10189 return 0;
10191 _ACEOF
10192 if ac_fn_cxx_try_link "$LINENO"; then :
10193 am_cv_lib_iconv=yes
10194 am_cv_func_iconv=yes
10196 rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198 LIBS="$am_save_LIBS"
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10203 $as_echo "$am_cv_func_iconv" >&6; }
10204 if test "$am_cv_func_iconv" = yes; then
10206 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10209 if test "$am_cv_lib_iconv" = yes; then
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10211 $as_echo_n "checking how to link with libiconv... " >&6; }
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10213 $as_echo "$LIBICONV" >&6; }
10214 else
10215 CPPFLAGS="$am_save_CPPFLAGS"
10216 LIBICONV=
10217 LTLIBICONV=
10222 if test "$am_cv_func_iconv" = yes; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10224 $as_echo_n "checking for iconv declaration... " >&6; }
10225 if test "${am_cv_proto_iconv+set}" = set; then :
10226 $as_echo_n "(cached) " >&6
10227 else
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10232 #include <stdlib.h>
10233 #include <iconv.h>
10234 extern
10235 #ifdef __cplusplus
10237 #endif
10238 #if defined(__STDC__) || defined(__cplusplus)
10239 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10240 #else
10241 size_t iconv();
10242 #endif
10245 main ()
10249 return 0;
10251 _ACEOF
10252 if ac_fn_cxx_try_compile "$LINENO"; then :
10253 am_cv_proto_iconv_arg1=""
10254 else
10255 am_cv_proto_iconv_arg1="const"
10257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10258 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);"
10261 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10263 }$am_cv_proto_iconv" >&5
10264 $as_echo "${ac_t:-
10265 }$am_cv_proto_iconv" >&6; }
10267 cat >>confdefs.h <<_ACEOF
10268 #define ICONV_CONST $am_cv_proto_iconv_arg1
10269 _ACEOF
10273 ac_ext=c
10274 ac_cpp='$CPP $CPPFLAGS'
10275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10280 # Until we have in-tree GNU iconv:
10281 LIBICONV_DEP=
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10286 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10287 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10288 $as_echo_n "(cached) " >&6
10289 else
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10292 #include <locale.h>
10294 main ()
10296 return LC_MESSAGES
10298 return 0;
10300 _ACEOF
10301 if ac_fn_c_try_link "$LINENO"; then :
10302 am_cv_val_LC_MESSAGES=yes
10303 else
10304 am_cv_val_LC_MESSAGES=no
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10310 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10311 if test $am_cv_val_LC_MESSAGES = yes; then
10313 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10320 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10321 if test "${am_cv_langinfo_codeset+set}" = set; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10326 #include <langinfo.h>
10328 main ()
10330 char* cs = nl_langinfo(CODESET);
10332 return 0;
10334 _ACEOF
10335 if ac_fn_c_try_link "$LINENO"; then :
10336 am_cv_langinfo_codeset=yes
10337 else
10338 am_cv_langinfo_codeset=no
10340 rm -f core conftest.err conftest.$ac_objext \
10341 conftest$ac_exeext conftest.$ac_ext
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10345 $as_echo "$am_cv_langinfo_codeset" >&6; }
10346 if test $am_cv_langinfo_codeset = yes; then
10348 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10353 # We will need to find libiberty.h and ansidecl.h
10354 saved_CFLAGS="$CFLAGS"
10355 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10356 saved_CXXFLAGS="$CXXFLAGS"
10357 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10358 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10359 strsignal strstr stpcpy strverscmp \
10360 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10361 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
10363 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10365 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10366 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10367 $as_echo_n "(cached) " >&6
10368 else
10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h. */
10371 #undef $ac_tr_decl
10372 #define $ac_tr_decl 1
10374 #include "ansidecl.h"
10375 #include "system.h"
10378 main ()
10380 #ifndef $ac_func
10381 char *(*pfn) = (char *(*)) $ac_func ;
10382 #endif
10384 return 0;
10386 _ACEOF
10387 if ac_fn_c_try_compile "$LINENO"; then :
10388 eval "gcc_cv_have_decl_$ac_func=yes"
10389 else
10390 eval "gcc_cv_have_decl_$ac_func=no"
10392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10395 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10397 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10398 #define $ac_tr_decl 1
10399 _ACEOF
10401 else
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10404 #define $ac_tr_decl 0
10405 _ACEOF
10409 done
10412 for ac_func in getrlimit setrlimit getrusage
10414 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10416 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10417 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10418 $as_echo_n "(cached) " >&6
10419 else
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10422 #undef $ac_tr_decl
10423 #define $ac_tr_decl 1
10425 #include "ansidecl.h"
10426 #include "system.h"
10427 #ifdef HAVE_SYS_RESOURCE_H
10428 #include <sys/resource.h>
10429 #endif
10433 main ()
10435 #ifndef $ac_func
10436 char *(*pfn) = (char *(*)) $ac_func ;
10437 #endif
10439 return 0;
10441 _ACEOF
10442 if ac_fn_c_try_compile "$LINENO"; then :
10443 eval "gcc_cv_have_decl_$ac_func=yes"
10444 else
10445 eval "gcc_cv_have_decl_$ac_func=no"
10447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10450 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10452 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10453 #define $ac_tr_decl 1
10454 _ACEOF
10456 else
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10459 #define $ac_tr_decl 0
10460 _ACEOF
10464 done
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10470 #include "ansidecl.h"
10471 #include "system.h"
10472 #ifdef HAVE_SYS_RESOURCE_H
10473 #include <sys/resource.h>
10474 #endif
10477 main ()
10479 rlim_t l = 0;
10481 return 0;
10483 _ACEOF
10484 if ac_fn_c_try_compile "$LINENO"; then :
10486 else
10488 $as_echo "#define rlim_t long" >>confdefs.h
10491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10493 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10494 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10495 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10496 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10497 for ac_func in ldgetname
10499 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10501 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10502 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10503 $as_echo_n "(cached) " >&6
10504 else
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10507 #undef $ac_tr_decl
10508 #define $ac_tr_decl 1
10510 #include "ansidecl.h"
10511 #include "system.h"
10512 #ifdef HAVE_LDFCN_H
10513 #undef FREAD
10514 #undef FWRITE
10515 #include <ldfcn.h>
10516 #endif
10520 main ()
10522 #ifndef $ac_func
10523 char *(*pfn) = (char *(*)) $ac_func ;
10524 #endif
10526 return 0;
10528 _ACEOF
10529 if ac_fn_c_try_compile "$LINENO"; then :
10530 eval "gcc_cv_have_decl_$ac_func=yes"
10531 else
10532 eval "gcc_cv_have_decl_$ac_func=no"
10534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10537 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10539 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10540 #define $ac_tr_decl 1
10541 _ACEOF
10543 else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10546 #define $ac_tr_decl 0
10547 _ACEOF
10551 done
10554 for ac_func in times
10556 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10558 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10559 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10564 #undef $ac_tr_decl
10565 #define $ac_tr_decl 1
10567 #include "ansidecl.h"
10568 #include "system.h"
10569 #ifdef HAVE_SYS_TIMES_H
10570 #include <sys/times.h>
10571 #endif
10575 main ()
10577 #ifndef $ac_func
10578 char *(*pfn) = (char *(*)) $ac_func ;
10579 #endif
10581 return 0;
10583 _ACEOF
10584 if ac_fn_c_try_compile "$LINENO"; then :
10585 eval "gcc_cv_have_decl_$ac_func=yes"
10586 else
10587 eval "gcc_cv_have_decl_$ac_func=no"
10589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10592 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10594 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10595 #define $ac_tr_decl 1
10596 _ACEOF
10598 else
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10601 #define $ac_tr_decl 0
10602 _ACEOF
10606 done
10609 for ac_func in sigaltstack
10611 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10613 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10614 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10615 $as_echo_n "(cached) " >&6
10616 else
10617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618 /* end confdefs.h. */
10619 #undef $ac_tr_decl
10620 #define $ac_tr_decl 1
10622 #include "ansidecl.h"
10623 #include "system.h"
10624 #include <signal.h>
10628 main ()
10630 #ifndef $ac_func
10631 char *(*pfn) = (char *(*)) $ac_func ;
10632 #endif
10634 return 0;
10636 _ACEOF
10637 if ac_fn_c_try_compile "$LINENO"; then :
10638 eval "gcc_cv_have_decl_$ac_func=yes"
10639 else
10640 eval "gcc_cv_have_decl_$ac_func=no"
10642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10645 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10647 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10648 #define $ac_tr_decl 1
10649 _ACEOF
10651 else
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10654 #define $ac_tr_decl 0
10655 _ACEOF
10659 done
10662 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10663 # prototype.
10664 ac_ext=cpp
10665 ac_cpp='$CXXCPP $CPPFLAGS'
10666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10670 for ac_func in madvise
10672 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10674 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10675 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10676 $as_echo_n "(cached) " >&6
10677 else
10678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679 /* end confdefs.h. */
10680 #undef $ac_tr_decl
10681 #define $ac_tr_decl 1
10683 #include "ansidecl.h"
10684 #include "system.h"
10688 main ()
10690 #ifndef $ac_func
10691 char *(*pfn) = (char *(*)) $ac_func ;
10692 #endif
10694 return 0;
10696 _ACEOF
10697 if ac_fn_cxx_try_compile "$LINENO"; then :
10698 eval "gcc_cv_have_decl_$ac_func=yes"
10699 else
10700 eval "gcc_cv_have_decl_$ac_func=no"
10702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10705 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10707 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10708 #define $ac_tr_decl 1
10709 _ACEOF
10711 else
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10714 #define $ac_tr_decl 0
10715 _ACEOF
10719 done
10721 ac_ext=c
10722 ac_cpp='$CPP $CPPFLAGS'
10723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10728 # More time-related stuff.
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10730 $as_echo_n "checking for struct tms... " >&6; }
10731 if test "${ac_cv_struct_tms+set}" = set; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10738 #include "ansidecl.h"
10739 #include "system.h"
10740 #ifdef HAVE_SYS_TIMES_H
10741 #include <sys/times.h>
10742 #endif
10745 main ()
10747 struct tms tms;
10749 return 0;
10751 _ACEOF
10752 if ac_fn_c_try_compile "$LINENO"; then :
10753 ac_cv_struct_tms=yes
10754 else
10755 ac_cv_struct_tms=no
10757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10760 $as_echo "$ac_cv_struct_tms" >&6; }
10761 if test $ac_cv_struct_tms = yes; then
10763 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10767 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10768 # revisit after autoconf 2.50.
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10770 $as_echo_n "checking for clock_t... " >&6; }
10771 if test "${gcc_cv_type_clock_t+set}" = set; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10778 #include "ansidecl.h"
10779 #include "system.h"
10782 main ()
10784 clock_t x;
10786 return 0;
10788 _ACEOF
10789 if ac_fn_c_try_compile "$LINENO"; then :
10790 gcc_cv_type_clock_t=yes
10791 else
10792 gcc_cv_type_clock_t=no
10794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10797 $as_echo "$gcc_cv_type_clock_t" >&6; }
10798 if test $gcc_cv_type_clock_t = yes; then
10800 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10804 # Check if F_SETLKW is supported by fcntl.
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10806 $as_echo_n "checking for F_SETLKW... " >&6; }
10807 if test "${ac_cv_f_setlkw+set}" = set; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10814 #include <fcntl.h>
10816 main ()
10819 struct flock fl;
10820 fl.l_whence = 0;
10821 fl.l_start = 0;
10822 fl.l_len = 0;
10823 fl.l_pid = 0;
10824 return fcntl (1, F_SETLKW, &fl);
10826 return 0;
10828 _ACEOF
10829 if ac_fn_c_try_compile "$LINENO"; then :
10830 ac_cv_f_setlkw=yes
10831 else
10832 ac_cv_f_setlkw=no
10834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10837 $as_echo "$ac_cv_f_setlkw" >&6; }
10838 if test $ac_cv_f_setlkw = yes; then
10840 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10844 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10845 CFLAGS="$saved_CFLAGS"
10846 CXXFLAGS="$saved_CXXFLAGS"
10848 # mkdir takes a single argument on some systems.
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10850 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10851 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10857 #include <sys/types.h>
10858 #ifdef HAVE_SYS_STAT_H
10859 # include <sys/stat.h>
10860 #endif
10861 #ifdef HAVE_UNISTD_H
10862 # include <unistd.h>
10863 #endif
10864 #ifdef HAVE_DIRECT_H
10865 # include <direct.h>
10866 #endif
10868 main ()
10870 mkdir ("foo", 0);
10872 return 0;
10874 _ACEOF
10875 if ac_fn_c_try_compile "$LINENO"; then :
10876 gcc_cv_mkdir_takes_one_arg=no
10877 else
10878 gcc_cv_mkdir_takes_one_arg=yes
10880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10883 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10884 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10886 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10891 # File extensions
10892 manext='.1'
10893 objext='.o'
10897 # With Setjmp/Longjmp based exception handling.
10898 # Check whether --enable-sjlj-exceptions was given.
10899 if test "${enable_sjlj_exceptions+set}" = set; then :
10900 enableval=$enable_sjlj_exceptions; case $target in
10901 *-*-hpux10*)
10902 if test $enableval != yes; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10904 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10905 enableval=yes
10908 esac
10909 force_sjlj_exceptions=yes
10910 else
10911 case $target in
10912 *-*-hpux10*)
10913 force_sjlj_exceptions=yes
10914 enableval=yes
10917 force_sjlj_exceptions=no
10919 esac
10922 if test $force_sjlj_exceptions = yes; then
10923 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10925 cat >>confdefs.h <<_ACEOF
10926 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10927 _ACEOF
10931 # --------------------------------------------------------
10932 # Build, host, and target specific configuration fragments
10933 # --------------------------------------------------------
10935 # Collect build-machine-specific information.
10936 . ${srcdir}/config.build
10938 # Collect host-machine-specific information.
10939 . ${srcdir}/config.host
10941 target_gtfiles=
10943 # Collect target-machine-specific information.
10944 . ${srcdir}/config.gcc
10946 extra_objs="${host_extra_objs} ${extra_objs}"
10947 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10949 # Default the target-machine variables that were not explicitly set.
10950 if test x"$tm_file" = x
10951 then tm_file=$cpu_type/$cpu_type.h; fi
10953 if test x"$extra_headers" = x
10954 then extra_headers=; fi
10956 if test x$md_file = x
10957 then md_file=$cpu_type/$cpu_type.md; fi
10959 if test x$out_file = x
10960 then out_file=$cpu_type/$cpu_type.c; fi
10962 if test x"$tmake_file" = x
10963 then tmake_file=$cpu_type/t-$cpu_type
10966 # Support --enable-initfini-array.
10967 if test x$enable_initfini_array != xno; then
10968 tm_file="${tm_file} initfini-array.h"
10971 if test x"$dwarf2" = xyes
10972 then tm_file="$tm_file tm-dwarf2.h"
10975 # Say what files are being used for the output code and MD file.
10976 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10977 echo "Using \`$srcdir/config/$md_file' as machine description file."
10979 # If any of the xm_file variables contain nonexistent files, warn
10980 # about them and drop them.
10983 for x in $build_xm_file; do
10984 if test -f $srcdir/config/$x
10985 then bx="$bx $x"
10986 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10987 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10989 done
10990 build_xm_file="$bx"
10993 for x in $host_xm_file; do
10994 if test -f $srcdir/config/$x
10995 then hx="$hx $x"
10996 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10997 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10999 done
11000 host_xm_file="$hx"
11003 for x in $xm_file; do
11004 if test -f $srcdir/config/$x
11005 then tx="$tx $x"
11006 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11007 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11009 done
11010 xm_file="$tx"
11012 count=a
11013 for f in $tm_file; do
11014 count=${count}x
11015 done
11016 if test $count = ax; then
11017 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11018 else
11019 echo "Using the following target machine macro files:"
11020 for f in $tm_file; do
11021 echo " $srcdir/config/$f"
11022 done
11025 if test x$need_64bit_hwint = xyes; then
11027 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11031 if test x$use_long_long_for_widest_fast_int = xyes; then
11033 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11037 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11039 cat >>confdefs.h <<_ACEOF
11040 #define HAVE_GNU_LD $gnu_ld_bool
11041 _ACEOF
11044 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11046 cat >>confdefs.h <<_ACEOF
11047 #define HAVE_GNU_AS $gnu_as_bool
11048 _ACEOF
11051 count=a
11052 for f in $host_xm_file; do
11053 count=${count}x
11054 done
11055 if test $count = a; then
11057 elif test $count = ax; then
11058 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11059 else
11060 echo "Using the following host machine macro files:"
11061 for f in $host_xm_file; do
11062 echo " $srcdir/config/$f"
11063 done
11065 echo "Using ${out_host_hook_obj} for host machine hooks."
11067 if test "$host_xm_file" != "$build_xm_file"; then
11068 count=a
11069 for f in $build_xm_file; do
11070 count=${count}x
11071 done
11072 if test $count = a; then
11074 elif test $count = ax; then
11075 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11076 else
11077 echo "Using the following build machine macro files:"
11078 for f in $build_xm_file; do
11079 echo " $srcdir/config/$f"
11080 done
11084 if test -n "$configured_native_system_header_dir"; then
11085 native_system_header_dir=$configured_native_system_header_dir
11087 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11090 case ${host} in
11091 powerpc*-*-darwin*)
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11093 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11094 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11100 #include <sys/cdefs.h>
11101 #include <sys/signal.h>
11102 #include <ucontext.h>
11103 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11105 _ACEOF
11106 if ac_fn_c_try_compile "$LINENO"; then :
11107 gcc_cv_mcontext_underscores=no
11108 else
11109 gcc_cv_mcontext_underscores=yes
11111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11114 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11115 if test $gcc_cv_mcontext_underscores = yes; then
11117 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11121 esac
11123 # ---------
11124 # Threading
11125 # ---------
11127 # Check if a valid thread package
11128 case ${enable_threads} in
11129 "" | no)
11130 # No threads
11131 target_thread_file='single'
11133 yes)
11134 # default
11135 target_thread_file='single'
11137 aix | dce | lynx | mipssde | posix | rtems | \
11138 single | tpf | vxworks | win32)
11139 target_thread_file=${enable_threads}
11142 echo "${enable_threads} is an unknown thread package" 1>&2
11143 exit 1
11145 esac
11147 if test x${thread_file} = x; then
11148 # No thread file set by target-specific clauses in config.gcc,
11149 # so use file chosen by default logic above
11150 thread_file=${target_thread_file}
11153 # --------
11154 # UNSORTED
11155 # --------
11157 use_cxa_atexit=no
11158 if test x$enable___cxa_atexit = xyes || \
11159 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11160 if test x$host = x$target; then
11161 case $host in
11162 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11163 # keyed to flag_use_cxa_atexit
11164 *-*-mingw32*)
11165 use_cxa_atexit=yes
11167 powerpc-ibm-aix*)
11168 use_cxa_atexit=yes
11171 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11172 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11173 use_cxa_atexit=yes
11174 else
11175 echo "__cxa_atexit can't be enabled on this target"
11179 esac
11180 else
11181 # We can't check for __cxa_atexit when building a cross, so assume
11182 # it is available
11183 use_cxa_atexit=yes
11185 if test x$use_cxa_atexit = xyes; then
11187 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11192 # Look for a file containing extra machine modes.
11193 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11194 extra_modes_file='$(srcdir)'/config/${extra_modes}
11197 cat >>confdefs.h <<_ACEOF
11198 #define EXTRA_MODES_FILE "config/$extra_modes"
11199 _ACEOF
11203 # Convert extra_options into a form suitable for Makefile use.
11204 extra_opt_files=
11205 all_opt_files=
11206 for f in $extra_options; do
11207 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11208 all_opt_files="$all_opt_files $srcdir/config/$f"
11209 done
11212 # auto-host.h is the file containing items generated by autoconf and is
11213 # the first file included by config.h.
11214 # If host=build, it is correct to have bconfig include auto-host.h
11215 # as well. If host!=build, we are in error and need to do more
11216 # work to find out the build config parameters.
11217 if test x$host = x$build
11218 then
11219 build_auto=auto-host.h
11220 else
11221 # We create a subdir, then run autoconf in the subdir.
11222 # To prevent recursion we set host and build for the new
11223 # invocation of configure to the build for this invocation
11224 # of configure.
11225 tempdir=build.$$
11226 rm -rf $tempdir
11227 mkdir $tempdir
11228 cd $tempdir
11229 case ${srcdir} in
11230 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11231 *) realsrcdir=../${srcdir};;
11232 esac
11233 saved_CFLAGS="${CFLAGS}"
11234 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11235 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11236 ${realsrcdir}/configure \
11237 --enable-languages=${enable_languages-all} \
11238 --target=$target_alias --host=$build_alias --build=$build_alias
11239 CFLAGS="${saved_CFLAGS}"
11241 # We just finished tests for the build machine, so rename
11242 # the file auto-build.h in the gcc directory.
11243 mv auto-host.h ../auto-build.h
11244 cd ..
11245 rm -rf $tempdir
11246 build_auto=auto-build.h
11250 tm_file="${tm_file} defaults.h"
11251 tm_p_file="${tm_p_file} tm-preds.h"
11252 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11253 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11254 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11255 # put this back in temporarily.
11256 xm_file="auto-host.h ansidecl.h ${xm_file}"
11258 # --------
11259 # UNSORTED
11260 # --------
11262 # Compile in configure arguments.
11263 if test -f configargs.h ; then
11264 # Being re-configured.
11265 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11266 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11267 else
11268 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11271 # Double all backslashes and backslash all quotes to turn
11272 # gcc_config_arguments into a C string.
11273 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11274 $gcc_config_arguments
11276 gcc_config_arguments_str=`cat conftest.out`
11277 rm -f conftest.out
11279 cat > configargs.h <<EOF
11280 /* Generated automatically. */
11281 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11282 static const char thread_model[] = "$thread_file";
11284 static const struct {
11285 const char *name, *value;
11286 } configure_default_options[] = $configure_default_options;
11289 gcc_BASEVER=`cat $srcdir/BASE-VER`
11290 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11291 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11292 if test -f $srcdir/REVISION ; then
11293 gcc_REVISION=`cat $srcdir/REVISION`
11294 else
11295 gcc_REVISION=""
11297 cat > plugin-version.h <<EOF
11298 #include "configargs.h"
11300 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11301 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11302 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11303 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11305 static char basever[] = "$gcc_BASEVER";
11306 static char datestamp[] = "$gcc_DATESTAMP";
11307 static char devphase[] = "$gcc_DEVPHASE";
11308 static char revision[] = "$gcc_REVISION";
11310 /* FIXME plugins: We should make the version information more precise.
11311 One way to do is to add a checksum. */
11313 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11314 devphase, revision,
11315 configuration_arguments};
11318 # Internationalization
11319 # If we haven't got the data from the intl directory,
11320 # assume NLS is disabled.
11321 USE_NLS=no
11322 LIBINTL=
11323 LIBINTL_DEP=
11324 INCINTL=
11325 XGETTEXT=
11326 GMSGFMT=
11327 POSUB=
11329 if test -f ../intl/config.intl; then
11330 . ../intl/config.intl
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11333 $as_echo_n "checking whether NLS is requested... " >&6; }
11334 if test x"$USE_NLS" != xyes; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336 $as_echo "no" >&6; }
11337 else
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11339 $as_echo "yes" >&6; }
11341 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11345 $as_echo_n "checking for catalogs to be installed... " >&6; }
11346 # Look for .po and .gmo files in the source directory.
11347 CATALOGS=
11348 XLINGUAS=
11349 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11350 # If there aren't any .gmo files the shell will give us the
11351 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11352 # weeded out.
11353 case "$cat" in *\**)
11354 continue;;
11355 esac
11356 # The quadruple backslash is collapsed to a double backslash
11357 # by the backticks, then collapsed again by the double quotes,
11358 # leaving us with one backslash in the sed expression (right
11359 # before the dot that mustn't act as a wildcard).
11360 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11361 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11362 # The user is allowed to set LINGUAS to a list of languages to
11363 # install catalogs for. If it's empty that means "all of them."
11364 if test "x$LINGUAS" = x; then
11365 CATALOGS="$CATALOGS $cat"
11366 XLINGUAS="$XLINGUAS $lang"
11367 else
11368 case "$LINGUAS" in *$lang*)
11369 CATALOGS="$CATALOGS $cat"
11370 XLINGUAS="$XLINGUAS $lang"
11372 esac
11374 done
11375 LINGUAS="$XLINGUAS"
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11377 $as_echo "$LINGUAS" >&6; }
11380 DATADIRNAME=share
11382 INSTOBJEXT=.mo
11384 GENCAT=gencat
11386 CATOBJEXT=.gmo
11390 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11391 # -liconv on the link line twice.
11392 case "$LIBINTL" in *$LIBICONV*)
11393 LIBICONV= ;;
11394 esac
11396 # Check whether --enable-secureplt was given.
11397 if test "${enable_secureplt+set}" = set; then :
11398 enableval=$enable_secureplt;
11402 # Check whether --enable-leading-mingw64-underscores was given.
11403 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11404 enableval=$enable_leading_mingw64_underscores;
11407 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11409 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11413 # Check whether --enable-cld was given.
11414 if test "${enable_cld+set}" = set; then :
11415 enableval=$enable_cld;
11416 else
11417 enable_cld=no
11421 # Check whether --enable-frame-pointer was given.
11422 if test "${enable_frame_pointer+set}" = set; then :
11423 enableval=$enable_frame_pointer;
11424 else
11426 case $target_os in
11427 linux* | darwin[8912]*)
11428 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11429 # DWARF2.
11430 enable_frame_pointer=no
11433 enable_frame_pointer=yes
11435 esac
11440 # Windows32 Registry support for specifying GCC installation paths.
11441 # Check whether --enable-win32-registry was given.
11442 if test "${enable_win32_registry+set}" = set; then :
11443 enableval=$enable_win32_registry;
11447 case $host_os in
11448 win32 | pe | cygwin* | mingw32* | uwin*)
11449 if test "x$enable_win32_registry" != xno; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11451 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11452 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11453 $as_echo_n "(cached) " >&6
11454 else
11455 ac_func_search_save_LIBS=$LIBS
11456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11459 /* Override any GCC internal prototype to avoid an error.
11460 Use char because int might match the return type of a GCC
11461 builtin and then its argument prototype would still apply. */
11462 #ifdef __cplusplus
11463 extern "C"
11464 #endif
11465 char RegOpenKeyExA ();
11467 main ()
11469 return RegOpenKeyExA ();
11471 return 0;
11473 _ACEOF
11474 for ac_lib in '' advapi32; do
11475 if test -z "$ac_lib"; then
11476 ac_res="none required"
11477 else
11478 ac_res=-l$ac_lib
11479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11481 if ac_fn_c_try_link "$LINENO"; then :
11482 ac_cv_search_RegOpenKeyExA=$ac_res
11484 rm -f core conftest.err conftest.$ac_objext \
11485 conftest$ac_exeext
11486 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11487 break
11489 done
11490 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11492 else
11493 ac_cv_search_RegOpenKeyExA=no
11495 rm conftest.$ac_ext
11496 LIBS=$ac_func_search_save_LIBS
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11499 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11500 ac_res=$ac_cv_search_RegOpenKeyExA
11501 if test "$ac_res" != no; then :
11502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11504 else
11505 enable_win32_registry=no
11510 if test "x$enable_win32_registry" != xno; then
11512 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11515 if test "x$enable_win32_registry" != xyes \
11516 && test "x$enable_win32_registry" != x; then
11518 cat >>confdefs.h <<_ACEOF
11519 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11520 _ACEOF
11525 esac
11527 # Get an absolute path to the GCC top-level source directory
11528 holddir=`${PWDCMD-pwd}`
11529 cd $srcdir
11530 topdir=`${PWDCMD-pwd}`
11531 cd $holddir
11533 # Conditionalize the makefile for this host machine.
11534 xmake_file=
11535 for f in ${host_xmake_file}
11537 if test -f ${srcdir}/config/$f
11538 then
11539 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11541 done
11543 # Conditionalize the makefile for this target machine.
11544 tmake_file_=
11545 for f in ${tmake_file}
11547 if test -f ${srcdir}/config/$f
11548 then
11549 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11551 done
11552 tmake_file="${tmake_file_}"
11554 out_object_file=`basename $out_file .c`.o
11555 common_out_object_file=`basename $common_out_file .c`.o
11557 tm_file_list="options.h"
11558 tm_include_list="options.h insn-constants.h"
11559 for f in $tm_file; do
11560 case $f in
11561 ./* )
11562 f=`echo $f | sed 's/^..//'`
11563 tm_file_list="${tm_file_list} $f"
11564 tm_include_list="${tm_include_list} $f"
11566 defaults.h )
11567 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11568 tm_include_list="${tm_include_list} $f"
11571 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11572 tm_include_list="${tm_include_list} config/$f"
11574 esac
11575 done
11577 tm_p_file_list=
11578 tm_p_include_list=
11579 for f in $tm_p_file; do
11580 case $f in
11581 tm-preds.h )
11582 tm_p_file_list="${tm_p_file_list} $f"
11583 tm_p_include_list="${tm_p_include_list} $f"
11586 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11587 tm_p_include_list="${tm_p_include_list} config/$f"
11588 esac
11589 done
11591 xm_file_list=
11592 xm_include_list=
11593 for f in $xm_file; do
11594 case $f in
11595 ansidecl.h )
11596 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11597 xm_include_list="${xm_include_list} $f"
11599 auto-host.h )
11600 xm_file_list="${xm_file_list} $f"
11601 xm_include_list="${xm_include_list} $f"
11604 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11605 xm_include_list="${xm_include_list} config/$f"
11607 esac
11608 done
11610 host_xm_file_list=
11611 host_xm_include_list=
11612 for f in $host_xm_file; do
11613 case $f in
11614 ansidecl.h )
11615 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11616 host_xm_include_list="${host_xm_include_list} $f"
11618 auto-host.h )
11619 host_xm_file_list="${host_xm_file_list} $f"
11620 host_xm_include_list="${host_xm_include_list} $f"
11623 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11624 host_xm_include_list="${host_xm_include_list} config/$f"
11626 esac
11627 done
11629 build_xm_file_list=
11630 for f in $build_xm_file; do
11631 case $f in
11632 ansidecl.h )
11633 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11634 build_xm_include_list="${build_xm_include_list} $f"
11636 auto-build.h | auto-host.h )
11637 build_xm_file_list="${build_xm_file_list} $f"
11638 build_xm_include_list="${build_xm_include_list} $f"
11641 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11642 build_xm_include_list="${build_xm_include_list} config/$f"
11644 esac
11645 done
11647 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11648 # cross-compiler which does not use the native headers and libraries.
11649 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11650 CROSS=
11651 ALL=all.internal
11652 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11654 if test "x$with_build_sysroot" != x; then
11655 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11656 else
11657 # This value is used, even on a native system, because
11658 # CROSS_SYSTEM_HEADER_DIR is just
11659 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11660 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11663 if test x$host != x$target
11664 then
11665 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11666 ALL=all.cross
11667 SYSTEM_HEADER_DIR=$build_system_header_dir
11668 case "$host","$target" in
11669 # Darwin crosses can use the host system's libraries and headers,
11670 # because of the fat library support. Of course, it must be the
11671 # same version of Darwin on both sides. Allow the user to
11672 # just say --target=foo-darwin without a version number to mean
11673 # "the version on this system".
11674 *-*-darwin*,*-*-darwin*)
11675 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11676 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11677 if test $hostos = $targetos -o $targetos = darwin ; then
11678 CROSS=
11679 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11680 with_headers=yes
11684 i?86-*-*,x86_64-*-* \
11685 | powerpc*-*-*,powerpc64*-*-*)
11686 CROSS="$CROSS -DNATIVE_CROSS" ;;
11687 esac
11689 case $target in
11690 *-*-mingw*)
11691 if test "x$with_headers" = x; then
11692 with_headers=yes
11697 esac
11698 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11699 SYSTEM_HEADER_DIR=$build_system_header_dir
11702 # If this is a cross-compiler that does not
11703 # have its own set of headers then define
11704 # inhibit_libc
11706 # If this is using newlib, without having the headers available now,
11707 # then define inhibit_libc in LIBGCC2_CFLAGS.
11708 # This prevents libgcc2 from containing any code which requires libc
11709 # support.
11710 : ${inhibit_libc=false}
11711 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11712 test x$with_newlib = xyes ; } &&
11713 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11714 inhibit_libc=true
11718 # When building gcc with a cross-compiler, we need to adjust things so
11719 # that the generator programs are still built with the native compiler.
11720 # Also, we cannot run fixincludes.
11722 # These are the normal (build=host) settings:
11723 CC_FOR_BUILD='$(CC)'
11724 CXX_FOR_BUILD='$(CXX)'
11725 BUILD_CFLAGS='$(ALL_CFLAGS)'
11726 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11727 BUILD_LDFLAGS='$(LDFLAGS)'
11728 STMP_FIXINC=stmp-fixinc
11730 # And these apply if build != host, or we are generating coverage data
11731 if test x$build != x$host || test "x$coverage_flags" != x
11732 then
11733 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11734 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11737 # Expand extra_headers to include complete path.
11738 # This substitutes for lots of t-* files.
11739 extra_headers_list=
11740 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11741 for file in ${extra_headers} ; do
11742 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11743 done
11745 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11746 if test x"$use_gcc_tgmath" = xyes
11747 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11750 # Define collect2 in Makefile.
11751 case $host_can_use_collect2 in
11752 no) collect2= ;;
11753 *) collect2='collect2$(exeext)' ;;
11754 esac
11757 # Add a definition of USE_COLLECT2 if system wants one.
11758 case $use_collect2 in
11759 no) use_collect2= ;;
11760 "") ;;
11762 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11763 xm_defines="${xm_defines} USE_COLLECT2"
11764 case $host_can_use_collect2 in
11766 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11768 esac
11770 esac
11773 cat >>confdefs.h <<_ACEOF
11774 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11775 _ACEOF
11778 # ---------------------------
11779 # Assembler & linker features
11780 # ---------------------------
11782 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11783 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11784 # However when ld-new is first executed from the build tree, libtool will
11785 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11786 # to the build tree. While doing this we need to use the previous-stage
11787 # linker, or we have an infinite loop. The presence of a shell script as
11788 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11789 # the gcc/collect-ld script. So we need to know how libtool works, or
11790 # exec-tool will fail.
11793 case `pwd` in
11794 *\ * | *\ *)
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11796 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11797 esac
11801 macro_version='2.2.7a'
11802 macro_revision='1.3134'
11816 ltmain="$ac_aux_dir/ltmain.sh"
11818 # Backslashify metacharacters that are still active within
11819 # double-quoted strings.
11820 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11822 # Same as above, but do not quote variable references.
11823 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11825 # Sed substitution to delay expansion of an escaped shell variable in a
11826 # double_quote_subst'ed string.
11827 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11829 # Sed substitution to delay expansion of an escaped single quote.
11830 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11832 # Sed substitution to avoid accidental globbing in evaled expressions
11833 no_glob_subst='s/\*/\\\*/g'
11835 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11836 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11837 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11840 $as_echo_n "checking how to print strings... " >&6; }
11841 # Test print first, because it will be a builtin if present.
11842 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11843 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11844 ECHO='print -r --'
11845 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11846 ECHO='printf %s\n'
11847 else
11848 # Use this function as a fallback that always works.
11849 func_fallback_echo ()
11851 eval 'cat <<_LTECHO_EOF
11853 _LTECHO_EOF'
11855 ECHO='func_fallback_echo'
11858 # func_echo_all arg...
11859 # Invoke $ECHO with all args, space-separated.
11860 func_echo_all ()
11862 $ECHO ""
11865 case "$ECHO" in
11866 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11867 $as_echo "printf" >&6; } ;;
11868 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11869 $as_echo "print -r" >&6; } ;;
11870 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11871 $as_echo "cat" >&6; } ;;
11872 esac
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11888 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11889 if test "${ac_cv_path_SED+set}" = set; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11893 for ac_i in 1 2 3 4 5 6 7; do
11894 ac_script="$ac_script$as_nl$ac_script"
11895 done
11896 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11897 { ac_script=; unset ac_script;}
11898 if test -z "$SED"; then
11899 ac_path_SED_found=false
11900 # Loop through the user's path and test for each of PROGNAME-LIST
11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902 for as_dir in $PATH
11904 IFS=$as_save_IFS
11905 test -z "$as_dir" && as_dir=.
11906 for ac_prog in sed gsed; do
11907 for ac_exec_ext in '' $ac_executable_extensions; do
11908 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11909 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11910 # Check for GNU ac_path_SED and select it if it is found.
11911 # Check for GNU $ac_path_SED
11912 case `"$ac_path_SED" --version 2>&1` in
11913 *GNU*)
11914 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11916 ac_count=0
11917 $as_echo_n 0123456789 >"conftest.in"
11918 while :
11920 cat "conftest.in" "conftest.in" >"conftest.tmp"
11921 mv "conftest.tmp" "conftest.in"
11922 cp "conftest.in" "conftest.nl"
11923 $as_echo '' >> "conftest.nl"
11924 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11926 as_fn_arith $ac_count + 1 && ac_count=$as_val
11927 if test $ac_count -gt ${ac_path_SED_max-0}; then
11928 # Best one so far, save it but keep looking for a better one
11929 ac_cv_path_SED="$ac_path_SED"
11930 ac_path_SED_max=$ac_count
11932 # 10*(2^10) chars as input seems more than enough
11933 test $ac_count -gt 10 && break
11934 done
11935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11936 esac
11938 $ac_path_SED_found && break 3
11939 done
11940 done
11941 done
11942 IFS=$as_save_IFS
11943 if test -z "$ac_cv_path_SED"; then
11944 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11946 else
11947 ac_cv_path_SED=$SED
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11952 $as_echo "$ac_cv_path_SED" >&6; }
11953 SED="$ac_cv_path_SED"
11954 rm -f conftest.sed
11956 test -z "$SED" && SED=sed
11957 Xsed="$SED -e 1s/^X//"
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11970 $as_echo_n "checking for fgrep... " >&6; }
11971 if test "${ac_cv_path_FGREP+set}" = set; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11975 then ac_cv_path_FGREP="$GREP -F"
11976 else
11977 if test -z "$FGREP"; then
11978 ac_path_FGREP_found=false
11979 # Loop through the user's path and test for each of PROGNAME-LIST
11980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11983 IFS=$as_save_IFS
11984 test -z "$as_dir" && as_dir=.
11985 for ac_prog in fgrep; do
11986 for ac_exec_ext in '' $ac_executable_extensions; do
11987 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11988 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11989 # Check for GNU ac_path_FGREP and select it if it is found.
11990 # Check for GNU $ac_path_FGREP
11991 case `"$ac_path_FGREP" --version 2>&1` in
11992 *GNU*)
11993 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11995 ac_count=0
11996 $as_echo_n 0123456789 >"conftest.in"
11997 while :
11999 cat "conftest.in" "conftest.in" >"conftest.tmp"
12000 mv "conftest.tmp" "conftest.in"
12001 cp "conftest.in" "conftest.nl"
12002 $as_echo 'FGREP' >> "conftest.nl"
12003 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12004 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12005 as_fn_arith $ac_count + 1 && ac_count=$as_val
12006 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12007 # Best one so far, save it but keep looking for a better one
12008 ac_cv_path_FGREP="$ac_path_FGREP"
12009 ac_path_FGREP_max=$ac_count
12011 # 10*(2^10) chars as input seems more than enough
12012 test $ac_count -gt 10 && break
12013 done
12014 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12015 esac
12017 $ac_path_FGREP_found && break 3
12018 done
12019 done
12020 done
12021 IFS=$as_save_IFS
12022 if test -z "$ac_cv_path_FGREP"; then
12023 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12025 else
12026 ac_cv_path_FGREP=$FGREP
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12032 $as_echo "$ac_cv_path_FGREP" >&6; }
12033 FGREP="$ac_cv_path_FGREP"
12036 test -z "$GREP" && GREP=grep
12056 # Check whether --with-gnu-ld was given.
12057 if test "${with_gnu_ld+set}" = set; then :
12058 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12059 else
12060 with_gnu_ld=no
12063 ac_prog=ld
12064 if test "$GCC" = yes; then
12065 # Check if gcc -print-prog-name=ld gives a path.
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12067 $as_echo_n "checking for ld used by $CC... " >&6; }
12068 case $host in
12069 *-*-mingw*)
12070 # gcc leaves a trailing carriage return which upsets mingw
12071 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12073 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12074 esac
12075 case $ac_prog in
12076 # Accept absolute paths.
12077 [\\/]* | ?:[\\/]*)
12078 re_direlt='/[^/][^/]*/\.\./'
12079 # Canonicalize the pathname of ld
12080 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12081 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12082 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12083 done
12084 test -z "$LD" && LD="$ac_prog"
12087 # If it fails, then pretend we aren't using GCC.
12088 ac_prog=ld
12091 # If it is relative, then search for the first ld in PATH.
12092 with_gnu_ld=unknown
12094 esac
12095 elif test "$with_gnu_ld" = yes; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12097 $as_echo_n "checking for GNU ld... " >&6; }
12098 else
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12100 $as_echo_n "checking for non-GNU ld... " >&6; }
12102 if test "${lt_cv_path_LD+set}" = set; then :
12103 $as_echo_n "(cached) " >&6
12104 else
12105 if test -z "$LD"; then
12106 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12107 for ac_dir in $PATH; do
12108 IFS="$lt_save_ifs"
12109 test -z "$ac_dir" && ac_dir=.
12110 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12111 lt_cv_path_LD="$ac_dir/$ac_prog"
12112 # Check to see if the program is GNU ld. I'd rather use --version,
12113 # but apparently some variants of GNU ld only accept -v.
12114 # Break only if it was the GNU/non-GNU ld that we prefer.
12115 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12116 *GNU* | *'with BFD'*)
12117 test "$with_gnu_ld" != no && break
12120 test "$with_gnu_ld" != yes && break
12122 esac
12124 done
12125 IFS="$lt_save_ifs"
12126 else
12127 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12131 LD="$lt_cv_path_LD"
12132 if test -n "$LD"; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12134 $as_echo "$LD" >&6; }
12135 else
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137 $as_echo "no" >&6; }
12139 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12141 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12142 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12146 case `$LD -v 2>&1 </dev/null` in
12147 *GNU* | *'with BFD'*)
12148 lt_cv_prog_gnu_ld=yes
12151 lt_cv_prog_gnu_ld=no
12153 esac
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12156 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12157 with_gnu_ld=$lt_cv_prog_gnu_ld
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12168 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12169 if test "${lt_cv_path_NM+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 if test -n "$NM"; then
12173 # Let the user override the test.
12174 lt_cv_path_NM="$NM"
12175 else
12176 lt_nm_to_check="${ac_tool_prefix}nm"
12177 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12178 lt_nm_to_check="$lt_nm_to_check nm"
12180 for lt_tmp_nm in $lt_nm_to_check; do
12181 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12182 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12183 IFS="$lt_save_ifs"
12184 test -z "$ac_dir" && ac_dir=.
12185 tmp_nm="$ac_dir/$lt_tmp_nm"
12186 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12187 # Check to see if the nm accepts a BSD-compat flag.
12188 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12189 # nm: unknown option "B" ignored
12190 # Tru64's nm complains that /dev/null is an invalid object file
12191 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12192 */dev/null* | *'Invalid file or object type'*)
12193 lt_cv_path_NM="$tmp_nm -B"
12194 break
12197 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12198 */dev/null*)
12199 lt_cv_path_NM="$tmp_nm -p"
12200 break
12203 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12204 continue # so that we can try to find one that supports BSD flags
12206 esac
12208 esac
12210 done
12211 IFS="$lt_save_ifs"
12212 done
12213 : ${lt_cv_path_NM=no}
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12217 $as_echo "$lt_cv_path_NM" >&6; }
12218 if test "$lt_cv_path_NM" != "no"; then
12219 NM="$lt_cv_path_NM"
12220 else
12221 # Didn't find any BSD compatible name lister, look for dumpbin.
12222 if test -n "$DUMPBIN"; then :
12223 # Let the user override the test.
12224 else
12225 if test -n "$ac_tool_prefix"; then
12226 for ac_prog in dumpbin "link -dump"
12228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12231 $as_echo_n "checking for $ac_word... " >&6; }
12232 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 if test -n "$DUMPBIN"; then
12236 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12237 else
12238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12241 IFS=$as_save_IFS
12242 test -z "$as_dir" && as_dir=.
12243 for ac_exec_ext in '' $ac_executable_extensions; do
12244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12245 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12247 break 2
12249 done
12250 done
12251 IFS=$as_save_IFS
12255 DUMPBIN=$ac_cv_prog_DUMPBIN
12256 if test -n "$DUMPBIN"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12258 $as_echo "$DUMPBIN" >&6; }
12259 else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12265 test -n "$DUMPBIN" && break
12266 done
12268 if test -z "$DUMPBIN"; then
12269 ac_ct_DUMPBIN=$DUMPBIN
12270 for ac_prog in dumpbin "link -dump"
12272 # Extract the first word of "$ac_prog", so it can be a program name with args.
12273 set dummy $ac_prog; ac_word=$2
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275 $as_echo_n "checking for $ac_word... " >&6; }
12276 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 if test -n "$ac_ct_DUMPBIN"; then
12280 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12281 else
12282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283 for as_dir in $PATH
12285 IFS=$as_save_IFS
12286 test -z "$as_dir" && as_dir=.
12287 for ac_exec_ext in '' $ac_executable_extensions; do
12288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12289 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12291 break 2
12293 done
12294 done
12295 IFS=$as_save_IFS
12299 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12300 if test -n "$ac_ct_DUMPBIN"; then
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12302 $as_echo "$ac_ct_DUMPBIN" >&6; }
12303 else
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305 $as_echo "no" >&6; }
12309 test -n "$ac_ct_DUMPBIN" && break
12310 done
12312 if test "x$ac_ct_DUMPBIN" = x; then
12313 DUMPBIN=":"
12314 else
12315 case $cross_compiling:$ac_tool_warned in
12316 yes:)
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12319 ac_tool_warned=yes ;;
12320 esac
12321 DUMPBIN=$ac_ct_DUMPBIN
12325 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12326 *COFF*)
12327 DUMPBIN="$DUMPBIN -symbols"
12330 DUMPBIN=:
12332 esac
12335 if test "$DUMPBIN" != ":"; then
12336 NM="$DUMPBIN"
12339 test -z "$NM" && NM=nm
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12347 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12348 if test "${lt_cv_nm_interface+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
12350 else
12351 lt_cv_nm_interface="BSD nm"
12352 echo "int some_variable = 0;" > conftest.$ac_ext
12353 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12354 (eval "$ac_compile" 2>conftest.err)
12355 cat conftest.err >&5
12356 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12357 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12358 cat conftest.err >&5
12359 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12360 cat conftest.out >&5
12361 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12362 lt_cv_nm_interface="MS dumpbin"
12364 rm -f conftest*
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12367 $as_echo "$lt_cv_nm_interface" >&6; }
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12370 $as_echo_n "checking whether ln -s works... " >&6; }
12371 LN_S=$as_ln_s
12372 if test "$LN_S" = "ln -s"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12374 $as_echo "yes" >&6; }
12375 else
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12377 $as_echo "no, using $LN_S" >&6; }
12380 # find the maximum length of command line arguments
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12382 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12383 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12387 teststring="ABCD"
12389 case $build_os in
12390 msdosdjgpp*)
12391 # On DJGPP, this test can blow up pretty badly due to problems in libc
12392 # (any single argument exceeding 2000 bytes causes a buffer overrun
12393 # during glob expansion). Even if it were fixed, the result of this
12394 # check would be larger than it should be.
12395 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12398 gnu*)
12399 # Under GNU Hurd, this test is not required because there is
12400 # no limit to the length of command line arguments.
12401 # Libtool will interpret -1 as no limit whatsoever
12402 lt_cv_sys_max_cmd_len=-1;
12405 cygwin* | mingw* | cegcc*)
12406 # On Win9x/ME, this test blows up -- it succeeds, but takes
12407 # about 5 minutes as the teststring grows exponentially.
12408 # Worse, since 9x/ME are not pre-emptively multitasking,
12409 # you end up with a "frozen" computer, even though with patience
12410 # the test eventually succeeds (with a max line length of 256k).
12411 # Instead, let's just punt: use the minimum linelength reported by
12412 # all of the supported platforms: 8192 (on NT/2K/XP).
12413 lt_cv_sys_max_cmd_len=8192;
12416 mint*)
12417 # On MiNT this can take a long time and run out of memory.
12418 lt_cv_sys_max_cmd_len=8192;
12421 amigaos*)
12422 # On AmigaOS with pdksh, this test takes hours, literally.
12423 # So we just punt and use a minimum line length of 8192.
12424 lt_cv_sys_max_cmd_len=8192;
12427 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12428 # This has been around since 386BSD, at least. Likely further.
12429 if test -x /sbin/sysctl; then
12430 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12431 elif test -x /usr/sbin/sysctl; then
12432 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12433 else
12434 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12436 # And add a safety zone
12437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12441 interix*)
12442 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12443 lt_cv_sys_max_cmd_len=196608
12446 osf*)
12447 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12448 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12449 # nice to cause kernel panics so lets avoid the loop below.
12450 # First set a reasonable default.
12451 lt_cv_sys_max_cmd_len=16384
12453 if test -x /sbin/sysconfig; then
12454 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12455 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12456 esac
12459 sco3.2v5*)
12460 lt_cv_sys_max_cmd_len=102400
12462 sysv5* | sco5v6* | sysv4.2uw2*)
12463 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12464 if test -n "$kargmax"; then
12465 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12466 else
12467 lt_cv_sys_max_cmd_len=32768
12471 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12472 if test -n "$lt_cv_sys_max_cmd_len"; then
12473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12475 else
12476 # Make teststring a little bigger before we do anything with it.
12477 # a 1K string should be a reasonable start.
12478 for i in 1 2 3 4 5 6 7 8 ; do
12479 teststring=$teststring$teststring
12480 done
12481 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12482 # If test is not a shell built-in, we'll probably end up computing a
12483 # maximum length that is only half of the actual maximum length, but
12484 # we can't tell.
12485 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12486 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12487 test $i != 17 # 1/2 MB should be enough
12489 i=`expr $i + 1`
12490 teststring=$teststring$teststring
12491 done
12492 # Only check the string length outside the loop.
12493 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12494 teststring=
12495 # Add a significant safety factor because C++ compilers can tack on
12496 # massive amounts of additional arguments before passing them to the
12497 # linker. It appears as though 1/2 is a usable value.
12498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12501 esac
12505 if test -n $lt_cv_sys_max_cmd_len ; then
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12507 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12508 else
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12510 $as_echo "none" >&6; }
12512 max_cmd_len=$lt_cv_sys_max_cmd_len
12519 : ${CP="cp -f"}
12520 : ${MV="mv -f"}
12521 : ${RM="rm -f"}
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12524 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12525 # Try some XSI features
12526 xsi_shell=no
12527 ( _lt_dummy="a/b/c"
12528 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12529 = c,a/b,, \
12530 && eval 'test $(( 1 + 1 )) -eq 2 \
12531 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12532 && xsi_shell=yes
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12534 $as_echo "$xsi_shell" >&6; }
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12538 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12539 lt_shell_append=no
12540 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12541 >/dev/null 2>&1 \
12542 && lt_shell_append=yes
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12544 $as_echo "$lt_shell_append" >&6; }
12547 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12548 lt_unset=unset
12549 else
12550 lt_unset=false
12557 # test EBCDIC or ASCII
12558 case `echo X|tr X '\101'` in
12559 A) # ASCII based system
12560 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12561 lt_SP2NL='tr \040 \012'
12562 lt_NL2SP='tr \015\012 \040\040'
12564 *) # EBCDIC based system
12565 lt_SP2NL='tr \100 \n'
12566 lt_NL2SP='tr \r\n \100\100'
12568 esac
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12579 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12580 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 lt_cv_ld_reload_flag='-r'
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12586 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12587 reload_flag=$lt_cv_ld_reload_flag
12588 case $reload_flag in
12589 "" | " "*) ;;
12590 *) reload_flag=" $reload_flag" ;;
12591 esac
12592 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12593 case $host_os in
12594 darwin*)
12595 if test "$GCC" = yes; then
12596 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12597 else
12598 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12601 esac
12611 if test -n "$ac_tool_prefix"; then
12612 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12613 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12615 $as_echo_n "checking for $ac_word... " >&6; }
12616 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 if test -n "$OBJDUMP"; then
12620 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12621 else
12622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12625 IFS=$as_save_IFS
12626 test -z "$as_dir" && as_dir=.
12627 for ac_exec_ext in '' $ac_executable_extensions; do
12628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12629 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12631 break 2
12633 done
12634 done
12635 IFS=$as_save_IFS
12639 OBJDUMP=$ac_cv_prog_OBJDUMP
12640 if test -n "$OBJDUMP"; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12642 $as_echo "$OBJDUMP" >&6; }
12643 else
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645 $as_echo "no" >&6; }
12650 if test -z "$ac_cv_prog_OBJDUMP"; then
12651 ac_ct_OBJDUMP=$OBJDUMP
12652 # Extract the first word of "objdump", so it can be a program name with args.
12653 set dummy objdump; ac_word=$2
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655 $as_echo_n "checking for $ac_word... " >&6; }
12656 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659 if test -n "$ac_ct_OBJDUMP"; then
12660 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12661 else
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12665 IFS=$as_save_IFS
12666 test -z "$as_dir" && as_dir=.
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12669 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 break 2
12673 done
12674 done
12675 IFS=$as_save_IFS
12679 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12680 if test -n "$ac_ct_OBJDUMP"; then
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12682 $as_echo "$ac_ct_OBJDUMP" >&6; }
12683 else
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685 $as_echo "no" >&6; }
12688 if test "x$ac_ct_OBJDUMP" = x; then
12689 OBJDUMP="false"
12690 else
12691 case $cross_compiling:$ac_tool_warned in
12692 yes:)
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12695 ac_tool_warned=yes ;;
12696 esac
12697 OBJDUMP=$ac_ct_OBJDUMP
12699 else
12700 OBJDUMP="$ac_cv_prog_OBJDUMP"
12703 test -z "$OBJDUMP" && OBJDUMP=objdump
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12714 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12715 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 lt_cv_file_magic_cmd='$MAGIC_CMD'
12719 lt_cv_file_magic_test_file=
12720 lt_cv_deplibs_check_method='unknown'
12721 # Need to set the preceding variable on all platforms that support
12722 # interlibrary dependencies.
12723 # 'none' -- dependencies not supported.
12724 # `unknown' -- same as none, but documents that we really don't know.
12725 # 'pass_all' -- all dependencies passed with no checks.
12726 # 'test_compile' -- check by making test program.
12727 # 'file_magic [[regex]]' -- check by looking for files in library path
12728 # which responds to the $file_magic_cmd with a given extended regex.
12729 # If you have `file' or equivalent on your system and you're not sure
12730 # whether `pass_all' will *always* work, you probably want this one.
12732 case $host_os in
12733 aix[4-9]*)
12734 lt_cv_deplibs_check_method=pass_all
12737 beos*)
12738 lt_cv_deplibs_check_method=pass_all
12741 bsdi[45]*)
12742 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12743 lt_cv_file_magic_cmd='/usr/bin/file -L'
12744 lt_cv_file_magic_test_file=/shlib/libc.so
12747 cygwin*)
12748 # func_win32_libid is a shell function defined in ltmain.sh
12749 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12750 lt_cv_file_magic_cmd='func_win32_libid'
12753 mingw* | pw32*)
12754 # Base MSYS/MinGW do not provide the 'file' command needed by
12755 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12756 # unless we find 'file', for example because we are cross-compiling.
12757 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12758 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12759 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12760 lt_cv_file_magic_cmd='func_win32_libid'
12761 else
12762 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12763 lt_cv_file_magic_cmd='$OBJDUMP -f'
12767 cegcc*)
12768 # use the weaker test based on 'objdump'. See mingw*.
12769 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12770 lt_cv_file_magic_cmd='$OBJDUMP -f'
12773 darwin* | rhapsody*)
12774 lt_cv_deplibs_check_method=pass_all
12777 freebsd* | dragonfly*)
12778 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12779 case $host_cpu in
12780 i*86 )
12781 # Not sure whether the presence of OpenBSD here was a mistake.
12782 # Let's accept both of them until this is cleared up.
12783 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12784 lt_cv_file_magic_cmd=/usr/bin/file
12785 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12787 esac
12788 else
12789 lt_cv_deplibs_check_method=pass_all
12793 gnu*)
12794 lt_cv_deplibs_check_method=pass_all
12797 haiku*)
12798 lt_cv_deplibs_check_method=pass_all
12801 hpux10.20* | hpux11*)
12802 lt_cv_file_magic_cmd=/usr/bin/file
12803 case $host_cpu in
12804 ia64*)
12805 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12806 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12808 hppa*64*)
12809 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]'
12810 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12813 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12814 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12816 esac
12819 interix[3-9]*)
12820 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12824 irix5* | irix6* | nonstopux*)
12825 case $LD in
12826 *-32|*"-32 ") libmagic=32-bit;;
12827 *-n32|*"-n32 ") libmagic=N32;;
12828 *-64|*"-64 ") libmagic=64-bit;;
12829 *) libmagic=never-match;;
12830 esac
12831 lt_cv_deplibs_check_method=pass_all
12834 # This must be Linux ELF.
12835 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12836 lt_cv_deplibs_check_method=pass_all
12839 netbsd*)
12840 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12842 else
12843 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12847 newos6*)
12848 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12849 lt_cv_file_magic_cmd=/usr/bin/file
12850 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12853 *nto* | *qnx*)
12854 lt_cv_deplibs_check_method=pass_all
12857 openbsd*)
12858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12860 else
12861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12865 osf3* | osf4* | osf5*)
12866 lt_cv_deplibs_check_method=pass_all
12869 rdos*)
12870 lt_cv_deplibs_check_method=pass_all
12873 solaris*)
12874 lt_cv_deplibs_check_method=pass_all
12877 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12878 lt_cv_deplibs_check_method=pass_all
12881 sysv4 | sysv4.3*)
12882 case $host_vendor in
12883 motorola)
12884 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]'
12885 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12887 ncr)
12888 lt_cv_deplibs_check_method=pass_all
12890 sequent)
12891 lt_cv_file_magic_cmd='/bin/file'
12892 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12894 sni)
12895 lt_cv_file_magic_cmd='/bin/file'
12896 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12897 lt_cv_file_magic_test_file=/lib/libc.so
12899 siemens)
12900 lt_cv_deplibs_check_method=pass_all
12903 lt_cv_deplibs_check_method=pass_all
12905 esac
12908 tpf*)
12909 lt_cv_deplibs_check_method=pass_all
12911 esac
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12915 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12916 file_magic_cmd=$lt_cv_file_magic_cmd
12917 deplibs_check_method=$lt_cv_deplibs_check_method
12918 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12931 if test -n "$ac_tool_prefix"; then
12932 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12933 set dummy ${ac_tool_prefix}ar; ac_word=$2
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12935 $as_echo_n "checking for $ac_word... " >&6; }
12936 if test "${ac_cv_prog_AR+set}" = set; then :
12937 $as_echo_n "(cached) " >&6
12938 else
12939 if test -n "$AR"; then
12940 ac_cv_prog_AR="$AR" # Let the user override the test.
12941 else
12942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943 for as_dir in $PATH
12945 IFS=$as_save_IFS
12946 test -z "$as_dir" && as_dir=.
12947 for ac_exec_ext in '' $ac_executable_extensions; do
12948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12949 ac_cv_prog_AR="${ac_tool_prefix}ar"
12950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12951 break 2
12953 done
12954 done
12955 IFS=$as_save_IFS
12959 AR=$ac_cv_prog_AR
12960 if test -n "$AR"; then
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12962 $as_echo "$AR" >&6; }
12963 else
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965 $as_echo "no" >&6; }
12970 if test -z "$ac_cv_prog_AR"; then
12971 ac_ct_AR=$AR
12972 # Extract the first word of "ar", so it can be a program name with args.
12973 set dummy ar; ac_word=$2
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12975 $as_echo_n "checking for $ac_word... " >&6; }
12976 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12977 $as_echo_n "(cached) " >&6
12978 else
12979 if test -n "$ac_ct_AR"; then
12980 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12981 else
12982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12983 for as_dir in $PATH
12985 IFS=$as_save_IFS
12986 test -z "$as_dir" && as_dir=.
12987 for ac_exec_ext in '' $ac_executable_extensions; do
12988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12989 ac_cv_prog_ac_ct_AR="ar"
12990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12991 break 2
12993 done
12994 done
12995 IFS=$as_save_IFS
12999 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13000 if test -n "$ac_ct_AR"; then
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13002 $as_echo "$ac_ct_AR" >&6; }
13003 else
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13005 $as_echo "no" >&6; }
13008 if test "x$ac_ct_AR" = x; then
13009 AR="false"
13010 else
13011 case $cross_compiling:$ac_tool_warned in
13012 yes:)
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13015 ac_tool_warned=yes ;;
13016 esac
13017 AR=$ac_ct_AR
13019 else
13020 AR="$ac_cv_prog_AR"
13023 test -z "$AR" && AR=ar
13024 test -z "$AR_FLAGS" && AR_FLAGS=cru
13036 if test -n "$ac_tool_prefix"; then
13037 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13038 set dummy ${ac_tool_prefix}strip; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040 $as_echo_n "checking for $ac_word... " >&6; }
13041 if test "${ac_cv_prog_STRIP+set}" = set; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 if test -n "$STRIP"; then
13045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13046 else
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13058 done
13059 done
13060 IFS=$as_save_IFS
13064 STRIP=$ac_cv_prog_STRIP
13065 if test -n "$STRIP"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13067 $as_echo "$STRIP" >&6; }
13068 else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13075 if test -z "$ac_cv_prog_STRIP"; then
13076 ac_ct_STRIP=$STRIP
13077 # Extract the first word of "strip", so it can be a program name with args.
13078 set dummy strip; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080 $as_echo_n "checking for $ac_word... " >&6; }
13081 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13082 $as_echo_n "(cached) " >&6
13083 else
13084 if test -n "$ac_ct_STRIP"; then
13085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13086 else
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13090 IFS=$as_save_IFS
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094 ac_cv_prog_ac_ct_STRIP="strip"
13095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13096 break 2
13098 done
13099 done
13100 IFS=$as_save_IFS
13104 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13105 if test -n "$ac_ct_STRIP"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13107 $as_echo "$ac_ct_STRIP" >&6; }
13108 else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13113 if test "x$ac_ct_STRIP" = x; then
13114 STRIP=":"
13115 else
13116 case $cross_compiling:$ac_tool_warned in
13117 yes:)
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13120 ac_tool_warned=yes ;;
13121 esac
13122 STRIP=$ac_ct_STRIP
13124 else
13125 STRIP="$ac_cv_prog_STRIP"
13128 test -z "$STRIP" && STRIP=:
13135 if test -n "$ac_tool_prefix"; then
13136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13139 $as_echo_n "checking for $ac_word... " >&6; }
13140 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 if test -n "$RANLIB"; then
13144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13145 else
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13149 IFS=$as_save_IFS
13150 test -z "$as_dir" && as_dir=.
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13153 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13155 break 2
13157 done
13158 done
13159 IFS=$as_save_IFS
13163 RANLIB=$ac_cv_prog_RANLIB
13164 if test -n "$RANLIB"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13166 $as_echo "$RANLIB" >&6; }
13167 else
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13174 if test -z "$ac_cv_prog_RANLIB"; then
13175 ac_ct_RANLIB=$RANLIB
13176 # Extract the first word of "ranlib", so it can be a program name with args.
13177 set dummy ranlib; ac_word=$2
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179 $as_echo_n "checking for $ac_word... " >&6; }
13180 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13181 $as_echo_n "(cached) " >&6
13182 else
13183 if test -n "$ac_ct_RANLIB"; then
13184 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13185 else
13186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187 for as_dir in $PATH
13189 IFS=$as_save_IFS
13190 test -z "$as_dir" && as_dir=.
13191 for ac_exec_ext in '' $ac_executable_extensions; do
13192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13193 ac_cv_prog_ac_ct_RANLIB="ranlib"
13194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13195 break 2
13197 done
13198 done
13199 IFS=$as_save_IFS
13203 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13204 if test -n "$ac_ct_RANLIB"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13206 $as_echo "$ac_ct_RANLIB" >&6; }
13207 else
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13212 if test "x$ac_ct_RANLIB" = x; then
13213 RANLIB=":"
13214 else
13215 case $cross_compiling:$ac_tool_warned in
13216 yes:)
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13219 ac_tool_warned=yes ;;
13220 esac
13221 RANLIB=$ac_ct_RANLIB
13223 else
13224 RANLIB="$ac_cv_prog_RANLIB"
13227 test -z "$RANLIB" && RANLIB=:
13234 # Determine commands to create old-style static archives.
13235 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13236 old_postinstall_cmds='chmod 644 $oldlib'
13237 old_postuninstall_cmds=
13239 if test -n "$RANLIB"; then
13240 case $host_os in
13241 openbsd*)
13242 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13245 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13247 esac
13248 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13251 case $host_os in
13252 darwin*)
13253 lock_old_archive_extraction=yes ;;
13255 lock_old_archive_extraction=no ;;
13256 esac
13296 # If no C compiler was specified, use CC.
13297 LTCC=${LTCC-"$CC"}
13299 # If no C compiler flags were specified, use CFLAGS.
13300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13302 # Allow CC to be a program name with arguments.
13303 compiler=$CC
13306 # Check for command to grab the raw symbol name followed by C symbol from nm.
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13308 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13309 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13310 $as_echo_n "(cached) " >&6
13311 else
13313 # These are sane defaults that work on at least a few old systems.
13314 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13316 # Character class describing NM global symbol codes.
13317 symcode='[BCDEGRST]'
13319 # Regexp to match symbols that can be accessed directly from C.
13320 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13322 # Define system-specific variables.
13323 case $host_os in
13324 aix*)
13325 symcode='[BCDT]'
13327 cygwin* | mingw* | pw32* | cegcc*)
13328 symcode='[ABCDGISTW]'
13330 hpux*)
13331 if test "$host_cpu" = ia64; then
13332 symcode='[ABCDEGRST]'
13335 irix* | nonstopux*)
13336 symcode='[BCDEGRST]'
13338 osf*)
13339 symcode='[BCDEGQRST]'
13341 solaris*)
13342 symcode='[BDRT]'
13344 sco3.2v5*)
13345 symcode='[DT]'
13347 sysv4.2uw2*)
13348 symcode='[DT]'
13350 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13351 symcode='[ABDT]'
13353 sysv4)
13354 symcode='[DFNSTU]'
13356 esac
13358 # If we're using GNU nm, then use its standard symbol codes.
13359 case `$NM -V 2>&1` in
13360 *GNU* | *'with BFD'*)
13361 symcode='[ABCDGIRSTW]' ;;
13362 esac
13364 # Transform an extracted symbol line into a proper C declaration.
13365 # Some systems (esp. on ia64) link data and code symbols differently,
13366 # so use this general approach.
13367 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13369 # Transform an extracted symbol line into symbol name and symbol address
13370 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13371 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'"
13373 # Handle CRLF in mingw tool chain
13374 opt_cr=
13375 case $build_os in
13376 mingw*)
13377 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13379 esac
13381 # Try without a prefix underscore, then with it.
13382 for ac_symprfx in "" "_"; do
13384 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13385 symxfrm="\\1 $ac_symprfx\\2 \\2"
13387 # Write the raw and C identifiers.
13388 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13389 # Fake it for dumpbin and say T for any non-static function
13390 # and D for any global variable.
13391 # Also find C++ and __fastcall symbols from MSVC++,
13392 # which start with @ or ?.
13393 lt_cv_sys_global_symbol_pipe="$AWK '"\
13394 " {last_section=section; section=\$ 3};"\
13395 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13396 " \$ 0!~/External *\|/{next};"\
13397 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13398 " {if(hide[section]) next};"\
13399 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13400 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13401 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13402 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13403 " ' prfx=^$ac_symprfx"
13404 else
13405 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13408 # Check to see that the pipe works correctly.
13409 pipe_works=no
13411 rm -f conftest*
13412 cat > conftest.$ac_ext <<_LT_EOF
13413 #ifdef __cplusplus
13414 extern "C" {
13415 #endif
13416 char nm_test_var;
13417 void nm_test_func(void);
13418 void nm_test_func(void){}
13419 #ifdef __cplusplus
13421 #endif
13422 int main(){nm_test_var='a';nm_test_func();return(0);}
13423 _LT_EOF
13425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13426 (eval $ac_compile) 2>&5
13427 ac_status=$?
13428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13429 test $ac_status = 0; }; then
13430 # Now try to grab the symbols.
13431 nlist=conftest.nm
13432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13433 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13434 ac_status=$?
13435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13436 test $ac_status = 0; } && test -s "$nlist"; then
13437 # Try sorting and uniquifying the output.
13438 if sort "$nlist" | uniq > "$nlist"T; then
13439 mv -f "$nlist"T "$nlist"
13440 else
13441 rm -f "$nlist"T
13444 # Make sure that we snagged all the symbols we need.
13445 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13446 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13447 cat <<_LT_EOF > conftest.$ac_ext
13448 #ifdef __cplusplus
13449 extern "C" {
13450 #endif
13452 _LT_EOF
13453 # Now generate the symbol file.
13454 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13456 cat <<_LT_EOF >> conftest.$ac_ext
13458 /* The mapping between symbol names and symbols. */
13459 const struct {
13460 const char *name;
13461 void *address;
13463 lt__PROGRAM__LTX_preloaded_symbols[] =
13465 { "@PROGRAM@", (void *) 0 },
13466 _LT_EOF
13467 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13468 cat <<\_LT_EOF >> conftest.$ac_ext
13469 {0, (void *) 0}
13472 /* This works around a problem in FreeBSD linker */
13473 #ifdef FREEBSD_WORKAROUND
13474 static const void *lt_preloaded_setup() {
13475 return lt__PROGRAM__LTX_preloaded_symbols;
13477 #endif
13479 #ifdef __cplusplus
13481 #endif
13482 _LT_EOF
13483 # Now try linking the two files.
13484 mv conftest.$ac_objext conftstm.$ac_objext
13485 lt_save_LIBS="$LIBS"
13486 lt_save_CFLAGS="$CFLAGS"
13487 LIBS="conftstm.$ac_objext"
13488 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13490 (eval $ac_link) 2>&5
13491 ac_status=$?
13492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13493 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13494 pipe_works=yes
13496 LIBS="$lt_save_LIBS"
13497 CFLAGS="$lt_save_CFLAGS"
13498 else
13499 echo "cannot find nm_test_func in $nlist" >&5
13501 else
13502 echo "cannot find nm_test_var in $nlist" >&5
13504 else
13505 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13507 else
13508 echo "$progname: failed program was:" >&5
13509 cat conftest.$ac_ext >&5
13511 rm -rf conftest* conftst*
13513 # Do not use the global_symbol_pipe unless it works.
13514 if test "$pipe_works" = yes; then
13515 break
13516 else
13517 lt_cv_sys_global_symbol_pipe=
13519 done
13523 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13524 lt_cv_sys_global_symbol_to_cdecl=
13526 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13528 $as_echo "failed" >&6; }
13529 else
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13531 $as_echo "ok" >&6; }
13555 # Check whether --enable-libtool-lock was given.
13556 if test "${enable_libtool_lock+set}" = set; then :
13557 enableval=$enable_libtool_lock;
13560 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13562 # Some flags need to be propagated to the compiler or linker for good
13563 # libtool support.
13564 case $host in
13565 ia64-*-hpux*)
13566 # Find out which ABI we are using.
13567 echo 'int i;' > conftest.$ac_ext
13568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13569 (eval $ac_compile) 2>&5
13570 ac_status=$?
13571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13572 test $ac_status = 0; }; then
13573 case `/usr/bin/file conftest.$ac_objext` in
13574 *ELF-32*)
13575 HPUX_IA64_MODE="32"
13577 *ELF-64*)
13578 HPUX_IA64_MODE="64"
13580 esac
13582 rm -rf conftest*
13584 *-*-irix6*)
13585 # Find out which ABI we are using.
13586 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13588 (eval $ac_compile) 2>&5
13589 ac_status=$?
13590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13591 test $ac_status = 0; }; then
13592 if test "$lt_cv_prog_gnu_ld" = yes; then
13593 case `/usr/bin/file conftest.$ac_objext` in
13594 *32-bit*)
13595 LD="${LD-ld} -melf32bsmip"
13597 *N32*)
13598 LD="${LD-ld} -melf32bmipn32"
13600 *64-bit*)
13601 LD="${LD-ld} -melf64bmip"
13603 esac
13604 else
13605 case `/usr/bin/file conftest.$ac_objext` in
13606 *32-bit*)
13607 LD="${LD-ld} -32"
13609 *N32*)
13610 LD="${LD-ld} -n32"
13612 *64-bit*)
13613 LD="${LD-ld} -64"
13615 esac
13618 rm -rf conftest*
13621 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13622 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13623 # Find out which ABI we are using.
13624 echo 'int i;' > 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 case `/usr/bin/file conftest.o` in
13631 *32-bit*)
13632 case $host in
13633 x86_64-*kfreebsd*-gnu)
13634 LD="${LD-ld} -m elf_i386_fbsd"
13636 x86_64-*linux*)
13637 case `/usr/bin/file conftest.o` in
13638 *x86-64*)
13639 LD="${LD-ld} -m elf32_x86_64"
13642 LD="${LD-ld} -m elf_i386"
13644 esac
13646 ppc64-*linux*|powerpc64-*linux*)
13647 LD="${LD-ld} -m elf32ppclinux"
13649 s390x-*linux*)
13650 LD="${LD-ld} -m elf_s390"
13652 sparc64-*linux*)
13653 LD="${LD-ld} -m elf32_sparc"
13655 esac
13657 *64-bit*)
13658 case $host in
13659 x86_64-*kfreebsd*-gnu)
13660 LD="${LD-ld} -m elf_x86_64_fbsd"
13662 x86_64-*linux*)
13663 LD="${LD-ld} -m elf_x86_64"
13665 ppc*-*linux*|powerpc*-*linux*)
13666 LD="${LD-ld} -m elf64ppc"
13668 s390*-*linux*|s390*-*tpf*)
13669 LD="${LD-ld} -m elf64_s390"
13671 sparc*-*linux*)
13672 LD="${LD-ld} -m elf64_sparc"
13674 esac
13676 esac
13678 rm -rf conftest*
13681 *-*-sco3.2v5*)
13682 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13683 SAVE_CFLAGS="$CFLAGS"
13684 CFLAGS="$CFLAGS -belf"
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13686 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13687 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13688 $as_echo_n "(cached) " >&6
13689 else
13690 ac_ext=c
13691 ac_cpp='$CPP $CPPFLAGS'
13692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13700 main ()
13704 return 0;
13706 _ACEOF
13707 if ac_fn_c_try_link "$LINENO"; then :
13708 lt_cv_cc_needs_belf=yes
13709 else
13710 lt_cv_cc_needs_belf=no
13712 rm -f core conftest.err conftest.$ac_objext \
13713 conftest$ac_exeext conftest.$ac_ext
13714 ac_ext=c
13715 ac_cpp='$CPP $CPPFLAGS'
13716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13722 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13723 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13724 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13725 CFLAGS="$SAVE_CFLAGS"
13728 sparc*-*solaris*)
13729 # Find out which ABI we are using.
13730 echo 'int i;' > conftest.$ac_ext
13731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13732 (eval $ac_compile) 2>&5
13733 ac_status=$?
13734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13735 test $ac_status = 0; }; then
13736 case `/usr/bin/file conftest.o` in
13737 *64-bit*)
13738 case $lt_cv_prog_gnu_ld in
13739 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13741 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13742 LD="${LD-ld} -64"
13745 esac
13747 esac
13749 rm -rf conftest*
13751 esac
13753 need_locks="$enable_libtool_lock"
13756 case $host_os in
13757 rhapsody* | darwin*)
13758 if test -n "$ac_tool_prefix"; then
13759 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13760 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13762 $as_echo_n "checking for $ac_word... " >&6; }
13763 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766 if test -n "$DSYMUTIL"; then
13767 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13768 else
13769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13770 for as_dir in $PATH
13772 IFS=$as_save_IFS
13773 test -z "$as_dir" && as_dir=.
13774 for ac_exec_ext in '' $ac_executable_extensions; do
13775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13776 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13778 break 2
13780 done
13781 done
13782 IFS=$as_save_IFS
13786 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13787 if test -n "$DSYMUTIL"; then
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13789 $as_echo "$DSYMUTIL" >&6; }
13790 else
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13792 $as_echo "no" >&6; }
13797 if test -z "$ac_cv_prog_DSYMUTIL"; then
13798 ac_ct_DSYMUTIL=$DSYMUTIL
13799 # Extract the first word of "dsymutil", so it can be a program name with args.
13800 set dummy dsymutil; ac_word=$2
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13802 $as_echo_n "checking for $ac_word... " >&6; }
13803 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806 if test -n "$ac_ct_DSYMUTIL"; then
13807 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13808 else
13809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810 for as_dir in $PATH
13812 IFS=$as_save_IFS
13813 test -z "$as_dir" && as_dir=.
13814 for ac_exec_ext in '' $ac_executable_extensions; do
13815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13816 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13818 break 2
13820 done
13821 done
13822 IFS=$as_save_IFS
13826 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13827 if test -n "$ac_ct_DSYMUTIL"; then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13829 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13830 else
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832 $as_echo "no" >&6; }
13835 if test "x$ac_ct_DSYMUTIL" = x; then
13836 DSYMUTIL=":"
13837 else
13838 case $cross_compiling:$ac_tool_warned in
13839 yes:)
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13842 ac_tool_warned=yes ;;
13843 esac
13844 DSYMUTIL=$ac_ct_DSYMUTIL
13846 else
13847 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13850 if test -n "$ac_tool_prefix"; then
13851 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13852 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13854 $as_echo_n "checking for $ac_word... " >&6; }
13855 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13856 $as_echo_n "(cached) " >&6
13857 else
13858 if test -n "$NMEDIT"; then
13859 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13860 else
13861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13862 for as_dir in $PATH
13864 IFS=$as_save_IFS
13865 test -z "$as_dir" && as_dir=.
13866 for ac_exec_ext in '' $ac_executable_extensions; do
13867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13868 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13870 break 2
13872 done
13873 done
13874 IFS=$as_save_IFS
13878 NMEDIT=$ac_cv_prog_NMEDIT
13879 if test -n "$NMEDIT"; then
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13881 $as_echo "$NMEDIT" >&6; }
13882 else
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13884 $as_echo "no" >&6; }
13889 if test -z "$ac_cv_prog_NMEDIT"; then
13890 ac_ct_NMEDIT=$NMEDIT
13891 # Extract the first word of "nmedit", so it can be a program name with args.
13892 set dummy nmedit; ac_word=$2
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13894 $as_echo_n "checking for $ac_word... " >&6; }
13895 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13896 $as_echo_n "(cached) " >&6
13897 else
13898 if test -n "$ac_ct_NMEDIT"; then
13899 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13900 else
13901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13902 for as_dir in $PATH
13904 IFS=$as_save_IFS
13905 test -z "$as_dir" && as_dir=.
13906 for ac_exec_ext in '' $ac_executable_extensions; do
13907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13908 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13910 break 2
13912 done
13913 done
13914 IFS=$as_save_IFS
13918 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13919 if test -n "$ac_ct_NMEDIT"; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13921 $as_echo "$ac_ct_NMEDIT" >&6; }
13922 else
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13924 $as_echo "no" >&6; }
13927 if test "x$ac_ct_NMEDIT" = x; then
13928 NMEDIT=":"
13929 else
13930 case $cross_compiling:$ac_tool_warned in
13931 yes:)
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13934 ac_tool_warned=yes ;;
13935 esac
13936 NMEDIT=$ac_ct_NMEDIT
13938 else
13939 NMEDIT="$ac_cv_prog_NMEDIT"
13942 if test -n "$ac_tool_prefix"; then
13943 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13944 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13946 $as_echo_n "checking for $ac_word... " >&6; }
13947 if test "${ac_cv_prog_LIPO+set}" = set; then :
13948 $as_echo_n "(cached) " >&6
13949 else
13950 if test -n "$LIPO"; then
13951 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13952 else
13953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13954 for as_dir in $PATH
13956 IFS=$as_save_IFS
13957 test -z "$as_dir" && as_dir=.
13958 for ac_exec_ext in '' $ac_executable_extensions; do
13959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13960 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13962 break 2
13964 done
13965 done
13966 IFS=$as_save_IFS
13970 LIPO=$ac_cv_prog_LIPO
13971 if test -n "$LIPO"; then
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13973 $as_echo "$LIPO" >&6; }
13974 else
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13976 $as_echo "no" >&6; }
13981 if test -z "$ac_cv_prog_LIPO"; then
13982 ac_ct_LIPO=$LIPO
13983 # Extract the first word of "lipo", so it can be a program name with args.
13984 set dummy lipo; ac_word=$2
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13986 $as_echo_n "checking for $ac_word... " >&6; }
13987 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13988 $as_echo_n "(cached) " >&6
13989 else
13990 if test -n "$ac_ct_LIPO"; then
13991 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13992 else
13993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 for as_dir in $PATH
13996 IFS=$as_save_IFS
13997 test -z "$as_dir" && as_dir=.
13998 for ac_exec_ext in '' $ac_executable_extensions; do
13999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14000 ac_cv_prog_ac_ct_LIPO="lipo"
14001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14002 break 2
14004 done
14005 done
14006 IFS=$as_save_IFS
14010 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14011 if test -n "$ac_ct_LIPO"; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14013 $as_echo "$ac_ct_LIPO" >&6; }
14014 else
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016 $as_echo "no" >&6; }
14019 if test "x$ac_ct_LIPO" = x; then
14020 LIPO=":"
14021 else
14022 case $cross_compiling:$ac_tool_warned in
14023 yes:)
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14026 ac_tool_warned=yes ;;
14027 esac
14028 LIPO=$ac_ct_LIPO
14030 else
14031 LIPO="$ac_cv_prog_LIPO"
14034 if test -n "$ac_tool_prefix"; then
14035 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14036 set dummy ${ac_tool_prefix}otool; ac_word=$2
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14038 $as_echo_n "checking for $ac_word... " >&6; }
14039 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14040 $as_echo_n "(cached) " >&6
14041 else
14042 if test -n "$OTOOL"; then
14043 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14044 else
14045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046 for as_dir in $PATH
14048 IFS=$as_save_IFS
14049 test -z "$as_dir" && as_dir=.
14050 for ac_exec_ext in '' $ac_executable_extensions; do
14051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14052 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14054 break 2
14056 done
14057 done
14058 IFS=$as_save_IFS
14062 OTOOL=$ac_cv_prog_OTOOL
14063 if test -n "$OTOOL"; then
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14065 $as_echo "$OTOOL" >&6; }
14066 else
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068 $as_echo "no" >&6; }
14073 if test -z "$ac_cv_prog_OTOOL"; then
14074 ac_ct_OTOOL=$OTOOL
14075 # Extract the first word of "otool", so it can be a program name with args.
14076 set dummy otool; ac_word=$2
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14078 $as_echo_n "checking for $ac_word... " >&6; }
14079 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14080 $as_echo_n "(cached) " >&6
14081 else
14082 if test -n "$ac_ct_OTOOL"; then
14083 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14084 else
14085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14086 for as_dir in $PATH
14088 IFS=$as_save_IFS
14089 test -z "$as_dir" && as_dir=.
14090 for ac_exec_ext in '' $ac_executable_extensions; do
14091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14092 ac_cv_prog_ac_ct_OTOOL="otool"
14093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14094 break 2
14096 done
14097 done
14098 IFS=$as_save_IFS
14102 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14103 if test -n "$ac_ct_OTOOL"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14105 $as_echo "$ac_ct_OTOOL" >&6; }
14106 else
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14108 $as_echo "no" >&6; }
14111 if test "x$ac_ct_OTOOL" = x; then
14112 OTOOL=":"
14113 else
14114 case $cross_compiling:$ac_tool_warned in
14115 yes:)
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14118 ac_tool_warned=yes ;;
14119 esac
14120 OTOOL=$ac_ct_OTOOL
14122 else
14123 OTOOL="$ac_cv_prog_OTOOL"
14126 if test -n "$ac_tool_prefix"; then
14127 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14128 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14130 $as_echo_n "checking for $ac_word... " >&6; }
14131 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 if test -n "$OTOOL64"; then
14135 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14136 else
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14140 IFS=$as_save_IFS
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14144 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14146 break 2
14148 done
14149 done
14150 IFS=$as_save_IFS
14154 OTOOL64=$ac_cv_prog_OTOOL64
14155 if test -n "$OTOOL64"; then
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14157 $as_echo "$OTOOL64" >&6; }
14158 else
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14160 $as_echo "no" >&6; }
14165 if test -z "$ac_cv_prog_OTOOL64"; then
14166 ac_ct_OTOOL64=$OTOOL64
14167 # Extract the first word of "otool64", so it can be a program name with args.
14168 set dummy otool64; ac_word=$2
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14170 $as_echo_n "checking for $ac_word... " >&6; }
14171 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 if test -n "$ac_ct_OTOOL64"; then
14175 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14176 else
14177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178 for as_dir in $PATH
14180 IFS=$as_save_IFS
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
14183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14184 ac_cv_prog_ac_ct_OTOOL64="otool64"
14185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14186 break 2
14188 done
14189 done
14190 IFS=$as_save_IFS
14194 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14195 if test -n "$ac_ct_OTOOL64"; then
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14197 $as_echo "$ac_ct_OTOOL64" >&6; }
14198 else
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14200 $as_echo "no" >&6; }
14203 if test "x$ac_ct_OTOOL64" = x; then
14204 OTOOL64=":"
14205 else
14206 case $cross_compiling:$ac_tool_warned in
14207 yes:)
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14210 ac_tool_warned=yes ;;
14211 esac
14212 OTOOL64=$ac_ct_OTOOL64
14214 else
14215 OTOOL64="$ac_cv_prog_OTOOL64"
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14245 $as_echo_n "checking for -single_module linker flag... " >&6; }
14246 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 lt_cv_apple_cc_single_mod=no
14250 if test -z "${LT_MULTI_MODULE}"; then
14251 # By default we will add the -single_module flag. You can override
14252 # by either setting the environment variable LT_MULTI_MODULE
14253 # non-empty at configure time, or by adding -multi_module to the
14254 # link flags.
14255 rm -rf libconftest.dylib*
14256 echo "int foo(void){return 1;}" > conftest.c
14257 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14258 -dynamiclib -Wl,-single_module conftest.c" >&5
14259 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14260 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14261 _lt_result=$?
14262 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14263 lt_cv_apple_cc_single_mod=yes
14264 else
14265 cat conftest.err >&5
14267 rm -rf libconftest.dylib*
14268 rm -f conftest.*
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14272 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14274 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14275 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14276 $as_echo_n "(cached) " >&6
14277 else
14278 lt_cv_ld_exported_symbols_list=no
14279 save_LDFLAGS=$LDFLAGS
14280 echo "_main" > conftest.sym
14281 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14286 main ()
14290 return 0;
14292 _ACEOF
14293 if ac_fn_c_try_link "$LINENO"; then :
14294 lt_cv_ld_exported_symbols_list=yes
14295 else
14296 lt_cv_ld_exported_symbols_list=no
14298 rm -f core conftest.err conftest.$ac_objext \
14299 conftest$ac_exeext conftest.$ac_ext
14300 LDFLAGS="$save_LDFLAGS"
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14304 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14306 $as_echo_n "checking for -force_load linker flag... " >&6; }
14307 if test "${lt_cv_ld_force_load+set}" = set; then :
14308 $as_echo_n "(cached) " >&6
14309 else
14310 lt_cv_ld_force_load=no
14311 cat > conftest.c << _LT_EOF
14312 int forced_loaded() { return 2;}
14313 _LT_EOF
14314 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14315 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14316 echo "$AR cru libconftest.a conftest.o" >&5
14317 $AR cru libconftest.a conftest.o 2>&5
14318 cat > conftest.c << _LT_EOF
14319 int main() { return 0;}
14320 _LT_EOF
14321 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14322 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14323 _lt_result=$?
14324 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14325 lt_cv_ld_force_load=yes
14326 else
14327 cat conftest.err >&5
14329 rm -f conftest.err libconftest.a conftest conftest.c
14330 rm -rf conftest.dSYM
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14334 $as_echo "$lt_cv_ld_force_load" >&6; }
14335 case $host_os in
14336 rhapsody* | darwin1.[012])
14337 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14338 darwin1.*)
14339 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14340 darwin*) # darwin 5.x on
14341 # if running on 10.5 or later, the deployment target defaults
14342 # to the OS version, if on x86, and 10.4, the deployment
14343 # target defaults to 10.4. Don't you love it?
14344 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14345 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14346 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14347 10.[012]*)
14348 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14349 10.*)
14350 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14351 esac
14353 esac
14354 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14355 _lt_dar_single_mod='$single_module'
14357 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14358 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14359 else
14360 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14362 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14363 _lt_dsymutil='~$DSYMUTIL $lib || :'
14364 else
14365 _lt_dsymutil=
14368 esac
14370 for ac_header in dlfcn.h
14371 do :
14372 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14373 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14374 cat >>confdefs.h <<_ACEOF
14375 #define HAVE_DLFCN_H 1
14376 _ACEOF
14379 done
14385 # Set options
14389 enable_dlopen=no
14392 enable_win32_dll=no
14395 # Check whether --enable-shared was given.
14396 if test "${enable_shared+set}" = set; then :
14397 enableval=$enable_shared; p=${PACKAGE-default}
14398 case $enableval in
14399 yes) enable_shared=yes ;;
14400 no) enable_shared=no ;;
14402 enable_shared=no
14403 # Look at the argument we got. We use all the common list separators.
14404 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14405 for pkg in $enableval; do
14406 IFS="$lt_save_ifs"
14407 if test "X$pkg" = "X$p"; then
14408 enable_shared=yes
14410 done
14411 IFS="$lt_save_ifs"
14413 esac
14414 else
14415 enable_shared=yes
14426 # Check whether --enable-static was given.
14427 if test "${enable_static+set}" = set; then :
14428 enableval=$enable_static; p=${PACKAGE-default}
14429 case $enableval in
14430 yes) enable_static=yes ;;
14431 no) enable_static=no ;;
14433 enable_static=no
14434 # Look at the argument we got. We use all the common list separators.
14435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14436 for pkg in $enableval; do
14437 IFS="$lt_save_ifs"
14438 if test "X$pkg" = "X$p"; then
14439 enable_static=yes
14441 done
14442 IFS="$lt_save_ifs"
14444 esac
14445 else
14446 enable_static=yes
14458 # Check whether --with-pic was given.
14459 if test "${with_pic+set}" = set; then :
14460 withval=$with_pic; p=${PACKAGE-default}
14461 case "$withval" in
14462 yes|no) pic_mode="$withval" ;;
14464 pic_mode=default
14465 # Look at the argument we got. We use all the common list separators.
14466 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14467 for pkg in $withval; do
14468 IFS="$lt_save_ifs"
14469 if test "X$pkg" = "X$p"; then
14470 pic_mode=yes
14472 done
14473 IFS="$lt_save_ifs"
14475 esac
14476 else
14477 pic_mode=default
14481 test -z "$pic_mode" && pic_mode=default
14489 # Check whether --enable-fast-install was given.
14490 if test "${enable_fast_install+set}" = set; then :
14491 enableval=$enable_fast_install; p=${PACKAGE-default}
14492 case $enableval in
14493 yes) enable_fast_install=yes ;;
14494 no) enable_fast_install=no ;;
14496 enable_fast_install=no
14497 # Look at the argument we got. We use all the common list separators.
14498 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14499 for pkg in $enableval; do
14500 IFS="$lt_save_ifs"
14501 if test "X$pkg" = "X$p"; then
14502 enable_fast_install=yes
14504 done
14505 IFS="$lt_save_ifs"
14507 esac
14508 else
14509 enable_fast_install=yes
14522 # This can be used to rebuild libtool when needed
14523 LIBTOOL_DEPS="$ltmain"
14525 # Always use our own libtool.
14526 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14553 test -z "$LN_S" && LN_S="ln -s"
14568 if test -n "${ZSH_VERSION+set}" ; then
14569 setopt NO_GLOB_SUBST
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14573 $as_echo_n "checking for objdir... " >&6; }
14574 if test "${lt_cv_objdir+set}" = set; then :
14575 $as_echo_n "(cached) " >&6
14576 else
14577 rm -f .libs 2>/dev/null
14578 mkdir .libs 2>/dev/null
14579 if test -d .libs; then
14580 lt_cv_objdir=.libs
14581 else
14582 # MS-DOS does not allow filenames that begin with a dot.
14583 lt_cv_objdir=_libs
14585 rmdir .libs 2>/dev/null
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14588 $as_echo "$lt_cv_objdir" >&6; }
14589 objdir=$lt_cv_objdir
14595 cat >>confdefs.h <<_ACEOF
14596 #define LT_OBJDIR "$lt_cv_objdir/"
14597 _ACEOF
14602 case $host_os in
14603 aix3*)
14604 # AIX sometimes has problems with the GCC collect2 program. For some
14605 # reason, if we set the COLLECT_NAMES environment variable, the problems
14606 # vanish in a puff of smoke.
14607 if test "X${COLLECT_NAMES+set}" != Xset; then
14608 COLLECT_NAMES=
14609 export COLLECT_NAMES
14612 esac
14614 # Global variables:
14615 ofile=libtool
14616 can_build_shared=yes
14618 # All known linkers require a `.a' archive for static linking (except MSVC,
14619 # which needs '.lib').
14620 libext=a
14622 with_gnu_ld="$lt_cv_prog_gnu_ld"
14624 old_CC="$CC"
14625 old_CFLAGS="$CFLAGS"
14627 # Set sane defaults for various variables
14628 test -z "$CC" && CC=cc
14629 test -z "$LTCC" && LTCC=$CC
14630 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14631 test -z "$LD" && LD=ld
14632 test -z "$ac_objext" && ac_objext=o
14634 for cc_temp in $compiler""; do
14635 case $cc_temp in
14636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14638 \-*) ;;
14639 *) break;;
14640 esac
14641 done
14642 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14645 # Only perform the check for file, if the check method requires it
14646 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14647 case $deplibs_check_method in
14648 file_magic*)
14649 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14651 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14652 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14653 $as_echo_n "(cached) " >&6
14654 else
14655 case $MAGIC_CMD in
14656 [\\/*] | ?:[\\/]*)
14657 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14660 lt_save_MAGIC_CMD="$MAGIC_CMD"
14661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14662 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14663 for ac_dir in $ac_dummy; do
14664 IFS="$lt_save_ifs"
14665 test -z "$ac_dir" && ac_dir=.
14666 if test -f $ac_dir/${ac_tool_prefix}file; then
14667 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14668 if test -n "$file_magic_test_file"; then
14669 case $deplibs_check_method in
14670 "file_magic "*)
14671 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14672 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14673 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14674 $EGREP "$file_magic_regex" > /dev/null; then
14676 else
14677 cat <<_LT_EOF 1>&2
14679 *** Warning: the command libtool uses to detect shared libraries,
14680 *** $file_magic_cmd, produces output that libtool cannot recognize.
14681 *** The result is that libtool may fail to recognize shared libraries
14682 *** as such. This will affect the creation of libtool libraries that
14683 *** depend on shared libraries, but programs linked with such libtool
14684 *** libraries will work regardless of this problem. Nevertheless, you
14685 *** may want to report the problem to your system manager and/or to
14686 *** bug-libtool@gnu.org
14688 _LT_EOF
14689 fi ;;
14690 esac
14692 break
14694 done
14695 IFS="$lt_save_ifs"
14696 MAGIC_CMD="$lt_save_MAGIC_CMD"
14698 esac
14701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14702 if test -n "$MAGIC_CMD"; then
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14704 $as_echo "$MAGIC_CMD" >&6; }
14705 else
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14707 $as_echo "no" >&6; }
14714 if test -z "$lt_cv_path_MAGIC_CMD"; then
14715 if test -n "$ac_tool_prefix"; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14717 $as_echo_n "checking for file... " >&6; }
14718 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14719 $as_echo_n "(cached) " >&6
14720 else
14721 case $MAGIC_CMD in
14722 [\\/*] | ?:[\\/]*)
14723 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14726 lt_save_MAGIC_CMD="$MAGIC_CMD"
14727 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14728 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14729 for ac_dir in $ac_dummy; do
14730 IFS="$lt_save_ifs"
14731 test -z "$ac_dir" && ac_dir=.
14732 if test -f $ac_dir/file; then
14733 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14734 if test -n "$file_magic_test_file"; then
14735 case $deplibs_check_method in
14736 "file_magic "*)
14737 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14739 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14740 $EGREP "$file_magic_regex" > /dev/null; then
14742 else
14743 cat <<_LT_EOF 1>&2
14745 *** Warning: the command libtool uses to detect shared libraries,
14746 *** $file_magic_cmd, produces output that libtool cannot recognize.
14747 *** The result is that libtool may fail to recognize shared libraries
14748 *** as such. This will affect the creation of libtool libraries that
14749 *** depend on shared libraries, but programs linked with such libtool
14750 *** libraries will work regardless of this problem. Nevertheless, you
14751 *** may want to report the problem to your system manager and/or to
14752 *** bug-libtool@gnu.org
14754 _LT_EOF
14755 fi ;;
14756 esac
14758 break
14760 done
14761 IFS="$lt_save_ifs"
14762 MAGIC_CMD="$lt_save_MAGIC_CMD"
14764 esac
14767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14768 if test -n "$MAGIC_CMD"; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14770 $as_echo "$MAGIC_CMD" >&6; }
14771 else
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14773 $as_echo "no" >&6; }
14777 else
14778 MAGIC_CMD=:
14784 esac
14786 # Use C for the default configuration in the libtool script
14788 lt_save_CC="$CC"
14789 ac_ext=c
14790 ac_cpp='$CPP $CPPFLAGS'
14791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14796 # Source file extension for C test sources.
14797 ac_ext=c
14799 # Object file extension for compiled C test sources.
14800 objext=o
14801 objext=$objext
14803 # Code to be used in simple compile tests
14804 lt_simple_compile_test_code="int some_variable = 0;"
14806 # Code to be used in simple link tests
14807 lt_simple_link_test_code='int main(){return(0);}'
14815 # If no C compiler was specified, use CC.
14816 LTCC=${LTCC-"$CC"}
14818 # If no C compiler flags were specified, use CFLAGS.
14819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14821 # Allow CC to be a program name with arguments.
14822 compiler=$CC
14824 # Save the default compiler, since it gets overwritten when the other
14825 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14826 compiler_DEFAULT=$CC
14828 # save warnings/boilerplate of simple test code
14829 ac_outfile=conftest.$ac_objext
14830 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14831 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14832 _lt_compiler_boilerplate=`cat conftest.err`
14833 $RM conftest*
14835 ac_outfile=conftest.$ac_objext
14836 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14837 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14838 _lt_linker_boilerplate=`cat conftest.err`
14839 $RM -r conftest*
14842 ## CAVEAT EMPTOR:
14843 ## There is no encapsulation within the following macros, do not change
14844 ## the running order or otherwise move them around unless you know exactly
14845 ## what you are doing...
14846 if test -n "$compiler"; then
14848 lt_prog_compiler_no_builtin_flag=
14850 if test "$GCC" = yes; then
14851 case $cc_basename in
14852 nvcc*)
14853 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14855 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14856 esac
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14859 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14860 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14861 $as_echo_n "(cached) " >&6
14862 else
14863 lt_cv_prog_compiler_rtti_exceptions=no
14864 ac_outfile=conftest.$ac_objext
14865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14866 lt_compiler_flag="-fno-rtti -fno-exceptions"
14867 # Insert the option either (1) after the last *FLAGS variable, or
14868 # (2) before a word containing "conftest.", or (3) at the end.
14869 # Note that $ac_compile itself does not contain backslashes and begins
14870 # with a dollar sign (not a hyphen), so the echo should work correctly.
14871 # The option is referenced via a variable to avoid confusing sed.
14872 lt_compile=`echo "$ac_compile" | $SED \
14873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14875 -e 's:$: $lt_compiler_flag:'`
14876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14877 (eval "$lt_compile" 2>conftest.err)
14878 ac_status=$?
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 if (exit $ac_status) && test -s "$ac_outfile"; then
14882 # The compiler can only warn and ignore the option if not recognized
14883 # So say no if there are warnings other than the usual output.
14884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14887 lt_cv_prog_compiler_rtti_exceptions=yes
14890 $RM conftest*
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14894 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14896 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14897 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14898 else
14909 lt_prog_compiler_wl=
14910 lt_prog_compiler_pic=
14911 lt_prog_compiler_static=
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14914 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14916 if test "$GCC" = yes; then
14917 lt_prog_compiler_wl='-Wl,'
14918 lt_prog_compiler_static='-static'
14920 case $host_os in
14921 aix*)
14922 # All AIX code is PIC.
14923 if test "$host_cpu" = ia64; then
14924 # AIX 5 now supports IA64 processor
14925 lt_prog_compiler_static='-Bstatic'
14927 lt_prog_compiler_pic='-fPIC'
14930 amigaos*)
14931 case $host_cpu in
14932 powerpc)
14933 # see comment about AmigaOS4 .so support
14934 lt_prog_compiler_pic='-fPIC'
14936 m68k)
14937 # FIXME: we need at least 68020 code to build shared libraries, but
14938 # adding the `-m68020' flag to GCC prevents building anything better,
14939 # like `-m68040'.
14940 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14942 esac
14945 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14946 # PIC is the default for these OSes.
14949 mingw* | cygwin* | pw32* | os2* | cegcc*)
14950 # This hack is so that the source file can tell whether it is being
14951 # built for inclusion in a dll (and should export symbols for example).
14952 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14953 # (--disable-auto-import) libraries
14954 lt_prog_compiler_pic='-DDLL_EXPORT'
14957 darwin* | rhapsody*)
14958 # PIC is the default on this platform
14959 # Common symbols not allowed in MH_DYLIB files
14960 lt_prog_compiler_pic='-fno-common'
14963 haiku*)
14964 # PIC is the default for Haiku.
14965 # The "-static" flag exists, but is broken.
14966 lt_prog_compiler_static=
14969 hpux*)
14970 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14971 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14972 # sets the default TLS model and affects inlining.
14973 case $host_cpu in
14974 hppa*64*)
14975 # +Z the default
14978 lt_prog_compiler_pic='-fPIC'
14980 esac
14983 interix[3-9]*)
14984 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14985 # Instead, we relocate shared libraries at runtime.
14988 msdosdjgpp*)
14989 # Just because we use GCC doesn't mean we suddenly get shared libraries
14990 # on systems that don't support them.
14991 lt_prog_compiler_can_build_shared=no
14992 enable_shared=no
14995 *nto* | *qnx*)
14996 # QNX uses GNU C++, but need to define -shared option too, otherwise
14997 # it will coredump.
14998 lt_prog_compiler_pic='-fPIC -shared'
15001 sysv4*MP*)
15002 if test -d /usr/nec; then
15003 lt_prog_compiler_pic=-Kconform_pic
15008 lt_prog_compiler_pic='-fPIC'
15010 esac
15012 case $cc_basename in
15013 nvcc*) # Cuda Compiler Driver 2.2
15014 lt_prog_compiler_wl='-Xlinker '
15015 lt_prog_compiler_pic='-Xcompiler -fPIC'
15017 esac
15018 else
15019 # PORTME Check for flag to pass linker flags through the system compiler.
15020 case $host_os in
15021 aix*)
15022 lt_prog_compiler_wl='-Wl,'
15023 if test "$host_cpu" = ia64; then
15024 # AIX 5 now supports IA64 processor
15025 lt_prog_compiler_static='-Bstatic'
15026 else
15027 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15031 mingw* | cygwin* | pw32* | os2* | cegcc*)
15032 # This hack is so that the source file can tell whether it is being
15033 # built for inclusion in a dll (and should export symbols for example).
15034 lt_prog_compiler_pic='-DDLL_EXPORT'
15037 hpux9* | hpux10* | hpux11*)
15038 lt_prog_compiler_wl='-Wl,'
15039 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15040 # not for PA HP-UX.
15041 case $host_cpu in
15042 hppa*64*|ia64*)
15043 # +Z the default
15046 lt_prog_compiler_pic='+Z'
15048 esac
15049 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15050 lt_prog_compiler_static='${wl}-a ${wl}archive'
15053 irix5* | irix6* | nonstopux*)
15054 lt_prog_compiler_wl='-Wl,'
15055 # PIC (with -KPIC) is the default.
15056 lt_prog_compiler_static='-non_shared'
15059 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15060 case $cc_basename in
15061 # old Intel for x86_64 which still supported -KPIC.
15062 ecc*)
15063 lt_prog_compiler_wl='-Wl,'
15064 lt_prog_compiler_pic='-KPIC'
15065 lt_prog_compiler_static='-static'
15067 # icc used to be incompatible with GCC.
15068 # ICC 10 doesn't accept -KPIC any more.
15069 icc* | ifort*)
15070 lt_prog_compiler_wl='-Wl,'
15071 lt_prog_compiler_pic='-fPIC'
15072 lt_prog_compiler_static='-static'
15074 # Lahey Fortran 8.1.
15075 lf95*)
15076 lt_prog_compiler_wl='-Wl,'
15077 lt_prog_compiler_pic='--shared'
15078 lt_prog_compiler_static='--static'
15080 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15081 # Portland Group compilers (*not* the Pentium gcc compiler,
15082 # which looks to be a dead project)
15083 lt_prog_compiler_wl='-Wl,'
15084 lt_prog_compiler_pic='-fpic'
15085 lt_prog_compiler_static='-Bstatic'
15087 ccc*)
15088 lt_prog_compiler_wl='-Wl,'
15089 # All Alpha code is PIC.
15090 lt_prog_compiler_static='-non_shared'
15092 xl* | bgxl* | bgf* | mpixl*)
15093 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15094 lt_prog_compiler_wl='-Wl,'
15095 lt_prog_compiler_pic='-qpic'
15096 lt_prog_compiler_static='-qstaticlink'
15099 case `$CC -V 2>&1 | sed 5q` in
15100 *Sun\ F* | *Sun*Fortran*)
15101 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15102 lt_prog_compiler_pic='-KPIC'
15103 lt_prog_compiler_static='-Bstatic'
15104 lt_prog_compiler_wl=''
15106 *Sun\ C*)
15107 # Sun C 5.9
15108 lt_prog_compiler_pic='-KPIC'
15109 lt_prog_compiler_static='-Bstatic'
15110 lt_prog_compiler_wl='-Wl,'
15112 esac
15114 esac
15117 newsos6)
15118 lt_prog_compiler_pic='-KPIC'
15119 lt_prog_compiler_static='-Bstatic'
15122 *nto* | *qnx*)
15123 # QNX uses GNU C++, but need to define -shared option too, otherwise
15124 # it will coredump.
15125 lt_prog_compiler_pic='-fPIC -shared'
15128 osf3* | osf4* | osf5*)
15129 lt_prog_compiler_wl='-Wl,'
15130 # All OSF/1 code is PIC.
15131 lt_prog_compiler_static='-non_shared'
15134 rdos*)
15135 lt_prog_compiler_static='-non_shared'
15138 solaris*)
15139 lt_prog_compiler_pic='-KPIC'
15140 lt_prog_compiler_static='-Bstatic'
15141 case $cc_basename in
15142 f77* | f90* | f95*)
15143 lt_prog_compiler_wl='-Qoption ld ';;
15145 lt_prog_compiler_wl='-Wl,';;
15146 esac
15149 sunos4*)
15150 lt_prog_compiler_wl='-Qoption ld '
15151 lt_prog_compiler_pic='-PIC'
15152 lt_prog_compiler_static='-Bstatic'
15155 sysv4 | sysv4.2uw2* | sysv4.3*)
15156 lt_prog_compiler_wl='-Wl,'
15157 lt_prog_compiler_pic='-KPIC'
15158 lt_prog_compiler_static='-Bstatic'
15161 sysv4*MP*)
15162 if test -d /usr/nec ;then
15163 lt_prog_compiler_pic='-Kconform_pic'
15164 lt_prog_compiler_static='-Bstatic'
15168 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15169 lt_prog_compiler_wl='-Wl,'
15170 lt_prog_compiler_pic='-KPIC'
15171 lt_prog_compiler_static='-Bstatic'
15174 unicos*)
15175 lt_prog_compiler_wl='-Wl,'
15176 lt_prog_compiler_can_build_shared=no
15179 uts4*)
15180 lt_prog_compiler_pic='-pic'
15181 lt_prog_compiler_static='-Bstatic'
15185 lt_prog_compiler_can_build_shared=no
15187 esac
15190 case $host_os in
15191 # For platforms which do not support PIC, -DPIC is meaningless:
15192 *djgpp*)
15193 lt_prog_compiler_pic=
15196 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15198 esac
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15200 $as_echo "$lt_prog_compiler_pic" >&6; }
15208 # Check to make sure the PIC flag actually works.
15210 if test -n "$lt_prog_compiler_pic"; then
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15212 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15213 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15214 $as_echo_n "(cached) " >&6
15215 else
15216 lt_cv_prog_compiler_pic_works=no
15217 ac_outfile=conftest.$ac_objext
15218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15219 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15220 # Insert the option either (1) after the last *FLAGS variable, or
15221 # (2) before a word containing "conftest.", or (3) at the end.
15222 # Note that $ac_compile itself does not contain backslashes and begins
15223 # with a dollar sign (not a hyphen), so the echo should work correctly.
15224 # The option is referenced via a variable to avoid confusing sed.
15225 lt_compile=`echo "$ac_compile" | $SED \
15226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15228 -e 's:$: $lt_compiler_flag:'`
15229 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15230 (eval "$lt_compile" 2>conftest.err)
15231 ac_status=$?
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 if (exit $ac_status) && test -s "$ac_outfile"; then
15235 # The compiler can only warn and ignore the option if not recognized
15236 # So say no if there are warnings other than the usual output.
15237 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15239 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15240 lt_cv_prog_compiler_pic_works=yes
15243 $RM conftest*
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15247 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15249 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15250 case $lt_prog_compiler_pic in
15251 "" | " "*) ;;
15252 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15253 esac
15254 else
15255 lt_prog_compiler_pic=
15256 lt_prog_compiler_can_build_shared=no
15267 # Check to make sure the static flag actually works.
15269 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15271 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15272 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15273 $as_echo_n "(cached) " >&6
15274 else
15275 lt_cv_prog_compiler_static_works=no
15276 save_LDFLAGS="$LDFLAGS"
15277 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15278 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15279 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15280 # The linker can only warn and ignore the option if not recognized
15281 # So say no if there are warnings
15282 if test -s conftest.err; then
15283 # Append any errors to the config.log.
15284 cat conftest.err 1>&5
15285 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15287 if diff conftest.exp conftest.er2 >/dev/null; then
15288 lt_cv_prog_compiler_static_works=yes
15290 else
15291 lt_cv_prog_compiler_static_works=yes
15294 $RM -r conftest*
15295 LDFLAGS="$save_LDFLAGS"
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15299 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15301 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15303 else
15304 lt_prog_compiler_static=
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15314 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15315 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15316 $as_echo_n "(cached) " >&6
15317 else
15318 lt_cv_prog_compiler_c_o=no
15319 $RM -r conftest 2>/dev/null
15320 mkdir conftest
15321 cd conftest
15322 mkdir out
15323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15325 lt_compiler_flag="-o out/conftest2.$ac_objext"
15326 # Insert the option either (1) after the last *FLAGS variable, or
15327 # (2) before a word containing "conftest.", or (3) at the end.
15328 # Note that $ac_compile itself does not contain backslashes and begins
15329 # with a dollar sign (not a hyphen), so the echo should work correctly.
15330 lt_compile=`echo "$ac_compile" | $SED \
15331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15333 -e 's:$: $lt_compiler_flag:'`
15334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15335 (eval "$lt_compile" 2>out/conftest.err)
15336 ac_status=$?
15337 cat out/conftest.err >&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15340 then
15341 # The compiler can only warn and ignore the option if not recognized
15342 # So say no if there are warnings
15343 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15344 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15345 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15346 lt_cv_prog_compiler_c_o=yes
15349 chmod u+w . 2>&5
15350 $RM conftest*
15351 # SGI C++ compiler will create directory out/ii_files/ for
15352 # template instantiation
15353 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15354 $RM out/* && rmdir out
15355 cd ..
15356 $RM -r conftest
15357 $RM conftest*
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15361 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15369 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15370 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15371 $as_echo_n "(cached) " >&6
15372 else
15373 lt_cv_prog_compiler_c_o=no
15374 $RM -r conftest 2>/dev/null
15375 mkdir conftest
15376 cd conftest
15377 mkdir out
15378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15380 lt_compiler_flag="-o out/conftest2.$ac_objext"
15381 # Insert the option either (1) after the last *FLAGS variable, or
15382 # (2) before a word containing "conftest.", or (3) at the end.
15383 # Note that $ac_compile itself does not contain backslashes and begins
15384 # with a dollar sign (not a hyphen), so the echo should work correctly.
15385 lt_compile=`echo "$ac_compile" | $SED \
15386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15388 -e 's:$: $lt_compiler_flag:'`
15389 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15390 (eval "$lt_compile" 2>out/conftest.err)
15391 ac_status=$?
15392 cat out/conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15395 then
15396 # The compiler can only warn and ignore the option if not recognized
15397 # So say no if there are warnings
15398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15399 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15400 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15401 lt_cv_prog_compiler_c_o=yes
15404 chmod u+w . 2>&5
15405 $RM conftest*
15406 # SGI C++ compiler will create directory out/ii_files/ for
15407 # template instantiation
15408 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15409 $RM out/* && rmdir out
15410 cd ..
15411 $RM -r conftest
15412 $RM conftest*
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15416 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15421 hard_links="nottested"
15422 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15423 # do not overwrite the value of need_locks provided by the user
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15425 $as_echo_n "checking if we can lock with hard links... " >&6; }
15426 hard_links=yes
15427 $RM conftest*
15428 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15429 touch conftest.a
15430 ln conftest.a conftest.b 2>&5 || hard_links=no
15431 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15433 $as_echo "$hard_links" >&6; }
15434 if test "$hard_links" = no; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15436 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15437 need_locks=warn
15439 else
15440 need_locks=no
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15449 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15451 runpath_var=
15452 allow_undefined_flag=
15453 always_export_symbols=no
15454 archive_cmds=
15455 archive_expsym_cmds=
15456 compiler_needs_object=no
15457 enable_shared_with_static_runtimes=no
15458 export_dynamic_flag_spec=
15459 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15460 hardcode_automatic=no
15461 hardcode_direct=no
15462 hardcode_direct_absolute=no
15463 hardcode_libdir_flag_spec=
15464 hardcode_libdir_flag_spec_ld=
15465 hardcode_libdir_separator=
15466 hardcode_minus_L=no
15467 hardcode_shlibpath_var=unsupported
15468 inherit_rpath=no
15469 link_all_deplibs=unknown
15470 module_cmds=
15471 module_expsym_cmds=
15472 old_archive_from_new_cmds=
15473 old_archive_from_expsyms_cmds=
15474 thread_safe_flag_spec=
15475 whole_archive_flag_spec=
15476 # include_expsyms should be a list of space-separated symbols to be *always*
15477 # included in the symbol list
15478 include_expsyms=
15479 # exclude_expsyms can be an extended regexp of symbols to exclude
15480 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15481 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15482 # as well as any symbol that contains `d'.
15483 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15484 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15485 # platforms (ab)use it in PIC code, but their linkers get confused if
15486 # the symbol is explicitly referenced. Since portable code cannot
15487 # rely on this symbol name, it's probably fine to never include it in
15488 # preloaded symbol tables.
15489 # Exclude shared library initialization/finalization symbols.
15490 extract_expsyms_cmds=
15492 case $host_os in
15493 cygwin* | mingw* | pw32* | cegcc*)
15494 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15495 # When not using gcc, we currently assume that we are using
15496 # Microsoft Visual C++.
15497 if test "$GCC" != yes; then
15498 with_gnu_ld=no
15501 interix*)
15502 # we just hope/assume this is gcc and not c89 (= MSVC++)
15503 with_gnu_ld=yes
15505 openbsd*)
15506 with_gnu_ld=no
15508 esac
15510 ld_shlibs=yes
15512 # On some targets, GNU ld is compatible enough with the native linker
15513 # that we're better off using the native interface for both.
15514 lt_use_gnu_ld_interface=no
15515 if test "$with_gnu_ld" = yes; then
15516 case $host_os in
15517 aix*)
15518 # The AIX port of GNU ld has always aspired to compatibility
15519 # with the native linker. However, as the warning in the GNU ld
15520 # block says, versions before 2.19.5* couldn't really create working
15521 # shared libraries, regardless of the interface used.
15522 case `$LD -v 2>&1` in
15523 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15524 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15525 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15527 lt_use_gnu_ld_interface=yes
15529 esac
15532 lt_use_gnu_ld_interface=yes
15534 esac
15537 if test "$lt_use_gnu_ld_interface" = yes; then
15538 # If archive_cmds runs LD, not CC, wlarc should be empty
15539 wlarc='${wl}'
15541 # Set some defaults for GNU ld with shared library support. These
15542 # are reset later if shared libraries are not supported. Putting them
15543 # here allows them to be overridden if necessary.
15544 runpath_var=LD_RUN_PATH
15545 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15546 export_dynamic_flag_spec='${wl}--export-dynamic'
15547 # ancient GNU ld didn't support --whole-archive et. al.
15548 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15549 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15550 else
15551 whole_archive_flag_spec=
15553 supports_anon_versioning=no
15554 case `$LD -v 2>&1` in
15555 *GNU\ gold*) supports_anon_versioning=yes ;;
15556 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15557 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15558 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15559 *\ 2.11.*) ;; # other 2.11 versions
15560 *) supports_anon_versioning=yes ;;
15561 esac
15563 # See if GNU ld supports shared libraries.
15564 case $host_os in
15565 aix[3-9]*)
15566 # On AIX/PPC, the GNU linker is very broken
15567 if test "$host_cpu" != ia64; then
15568 ld_shlibs=no
15569 cat <<_LT_EOF 1>&2
15571 *** Warning: the GNU linker, at least up to release 2.19, is reported
15572 *** to be unable to reliably create shared libraries on AIX.
15573 *** Therefore, libtool is disabling shared libraries support. If you
15574 *** really care for shared libraries, you may want to install binutils
15575 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15576 *** You will then need to restart the configuration process.
15578 _LT_EOF
15582 amigaos*)
15583 case $host_cpu in
15584 powerpc)
15585 # see comment about AmigaOS4 .so support
15586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15587 archive_expsym_cmds=''
15589 m68k)
15590 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)'
15591 hardcode_libdir_flag_spec='-L$libdir'
15592 hardcode_minus_L=yes
15594 esac
15597 beos*)
15598 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15599 allow_undefined_flag=unsupported
15600 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15601 # support --undefined. This deserves some investigation. FIXME
15602 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15603 else
15604 ld_shlibs=no
15608 cygwin* | mingw* | pw32* | cegcc*)
15609 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15610 # as there is no search path for DLLs.
15611 hardcode_libdir_flag_spec='-L$libdir'
15612 export_dynamic_flag_spec='${wl}--export-all-symbols'
15613 allow_undefined_flag=unsupported
15614 always_export_symbols=no
15615 enable_shared_with_static_runtimes=yes
15616 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15618 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15620 # If the export-symbols file already is a .def file (1st line
15621 # is EXPORTS), use it as is; otherwise, prepend...
15622 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15623 cp $export_symbols $output_objdir/$soname.def;
15624 else
15625 echo EXPORTS > $output_objdir/$soname.def;
15626 cat $export_symbols >> $output_objdir/$soname.def;
15628 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15629 else
15630 ld_shlibs=no
15634 haiku*)
15635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15636 link_all_deplibs=yes
15639 interix[3-9]*)
15640 hardcode_direct=no
15641 hardcode_shlibpath_var=no
15642 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15643 export_dynamic_flag_spec='${wl}-E'
15644 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15645 # Instead, shared libraries are loaded at an image base (0x10000000 by
15646 # default) and relocated if they conflict, which is a slow very memory
15647 # consuming and fragmenting process. To avoid this, we pick a random,
15648 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15649 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15650 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15651 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'
15654 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15655 tmp_diet=no
15656 if test "$host_os" = linux-dietlibc; then
15657 case $cc_basename in
15658 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15659 esac
15661 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15662 && test "$tmp_diet" = no
15663 then
15664 tmp_addflag=
15665 tmp_sharedflag='-shared'
15666 case $cc_basename,$host_cpu in
15667 pgcc*) # Portland Group C compiler
15668 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'
15669 tmp_addflag=' $pic_flag'
15671 pgf77* | pgf90* | pgf95* | pgfortran*)
15672 # Portland Group f77 and f90 compilers
15673 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'
15674 tmp_addflag=' $pic_flag -Mnomain' ;;
15675 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15676 tmp_addflag=' -i_dynamic' ;;
15677 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15678 tmp_addflag=' -i_dynamic -nofor_main' ;;
15679 ifc* | ifort*) # Intel Fortran compiler
15680 tmp_addflag=' -nofor_main' ;;
15681 lf95*) # Lahey Fortran 8.1
15682 whole_archive_flag_spec=
15683 tmp_sharedflag='--shared' ;;
15684 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15685 tmp_sharedflag='-qmkshrobj'
15686 tmp_addflag= ;;
15687 nvcc*) # Cuda Compiler Driver 2.2
15688 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'
15689 compiler_needs_object=yes
15691 esac
15692 case `$CC -V 2>&1 | sed 5q` in
15693 *Sun\ C*) # Sun C 5.9
15694 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'
15695 compiler_needs_object=yes
15696 tmp_sharedflag='-G' ;;
15697 *Sun\ F*) # Sun Fortran 8.3
15698 tmp_sharedflag='-G' ;;
15699 esac
15700 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15702 if test "x$supports_anon_versioning" = xyes; then
15703 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15704 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15705 echo "local: *; };" >> $output_objdir/$libname.ver~
15706 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15709 case $cc_basename in
15710 xlf* | bgf* | bgxlf* | mpixlf*)
15711 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15712 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15713 hardcode_libdir_flag_spec=
15714 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15715 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15716 if test "x$supports_anon_versioning" = xyes; then
15717 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15718 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15719 echo "local: *; };" >> $output_objdir/$libname.ver~
15720 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15723 esac
15724 else
15725 ld_shlibs=no
15729 netbsd*)
15730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15731 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15732 wlarc=
15733 else
15734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15735 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15739 solaris*)
15740 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15741 ld_shlibs=no
15742 cat <<_LT_EOF 1>&2
15744 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15745 *** create shared libraries on Solaris systems. Therefore, libtool
15746 *** is disabling shared libraries support. We urge you to upgrade GNU
15747 *** binutils to release 2.9.1 or newer. Another option is to modify
15748 *** your PATH or compiler configuration so that the native linker is
15749 *** used, and then restart.
15751 _LT_EOF
15752 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15754 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15755 else
15756 ld_shlibs=no
15760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15761 case `$LD -v 2>&1` in
15762 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15763 ld_shlibs=no
15764 cat <<_LT_EOF 1>&2
15766 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15767 *** reliably create shared libraries on SCO systems. Therefore, libtool
15768 *** is disabling shared libraries support. We urge you to upgrade GNU
15769 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15770 *** your PATH or compiler configuration so that the native linker is
15771 *** used, and then restart.
15773 _LT_EOF
15776 # For security reasons, it is highly recommended that you always
15777 # use absolute paths for naming shared libraries, and exclude the
15778 # DT_RUNPATH tag from executables and libraries. But doing so
15779 # requires that you compile everything twice, which is a pain.
15780 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15784 else
15785 ld_shlibs=no
15788 esac
15791 sunos4*)
15792 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15793 wlarc=
15794 hardcode_direct=yes
15795 hardcode_shlibpath_var=no
15799 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15802 else
15803 ld_shlibs=no
15806 esac
15808 if test "$ld_shlibs" = no; then
15809 runpath_var=
15810 hardcode_libdir_flag_spec=
15811 export_dynamic_flag_spec=
15812 whole_archive_flag_spec=
15814 else
15815 # PORTME fill in a description of your system's linker (not GNU ld)
15816 case $host_os in
15817 aix3*)
15818 allow_undefined_flag=unsupported
15819 always_export_symbols=yes
15820 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'
15821 # Note: this linker hardcodes the directories in LIBPATH if there
15822 # are no directories specified by -L.
15823 hardcode_minus_L=yes
15824 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15825 # Neither direct hardcoding nor static linking is supported with a
15826 # broken collect2.
15827 hardcode_direct=unsupported
15831 aix[4-9]*)
15832 if test "$host_cpu" = ia64; then
15833 # On IA64, the linker does run time linking by default, so we don't
15834 # have to do anything special.
15835 aix_use_runtimelinking=no
15836 exp_sym_flag='-Bexport'
15837 no_entry_flag=""
15838 else
15839 # If we're using GNU nm, then we don't want the "-C" option.
15840 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15841 # Also, AIX nm treats weak defined symbols like other global
15842 # defined symbols, whereas GNU nm marks them as "W".
15843 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15844 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'
15845 else
15846 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'
15848 aix_use_runtimelinking=no
15850 # Test if we are trying to use run time linking or normal
15851 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15852 # need to do runtime linking.
15853 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15854 for ld_flag in $LDFLAGS; do
15855 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15856 aix_use_runtimelinking=yes
15857 break
15859 done
15861 esac
15863 exp_sym_flag='-bexport'
15864 no_entry_flag='-bnoentry'
15867 # When large executables or shared objects are built, AIX ld can
15868 # have problems creating the table of contents. If linking a library
15869 # or program results in "error TOC overflow" add -mminimal-toc to
15870 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15871 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15873 archive_cmds=''
15874 hardcode_direct=yes
15875 hardcode_direct_absolute=yes
15876 hardcode_libdir_separator=':'
15877 link_all_deplibs=yes
15878 file_list_spec='${wl}-f,'
15880 if test "$GCC" = yes; then
15881 case $host_os in aix4.[012]|aix4.[012].*)
15882 # We only want to do this on AIX 4.2 and lower, the check
15883 # below for broken collect2 doesn't work under 4.3+
15884 collect2name=`${CC} -print-prog-name=collect2`
15885 if test -f "$collect2name" &&
15886 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15887 then
15888 # We have reworked collect2
15890 else
15891 # We have old collect2
15892 hardcode_direct=unsupported
15893 # It fails to find uninstalled libraries when the uninstalled
15894 # path is not listed in the libpath. Setting hardcode_minus_L
15895 # to unsupported forces relinking
15896 hardcode_minus_L=yes
15897 hardcode_libdir_flag_spec='-L$libdir'
15898 hardcode_libdir_separator=
15901 esac
15902 shared_flag='-shared'
15903 if test "$aix_use_runtimelinking" = yes; then
15904 shared_flag="$shared_flag "'${wl}-G'
15906 else
15907 # not using gcc
15908 if test "$host_cpu" = ia64; then
15909 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15910 # chokes on -Wl,-G. The following line is correct:
15911 shared_flag='-G'
15912 else
15913 if test "$aix_use_runtimelinking" = yes; then
15914 shared_flag='${wl}-G'
15915 else
15916 shared_flag='${wl}-bM:SRE'
15921 export_dynamic_flag_spec='${wl}-bexpall'
15922 # It seems that -bexpall does not export symbols beginning with
15923 # underscore (_), so it is better to generate a list of symbols to export.
15924 always_export_symbols=yes
15925 if test "$aix_use_runtimelinking" = yes; then
15926 # Warning - without using the other runtime loading flags (-brtl),
15927 # -berok will link without error, but may produce a broken library.
15928 allow_undefined_flag='-berok'
15929 # Determine the default libpath from the value encoded in an
15930 # empty executable.
15931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15932 /* end confdefs.h. */
15935 main ()
15939 return 0;
15941 _ACEOF
15942 if ac_fn_c_try_link "$LINENO"; then :
15944 lt_aix_libpath_sed='
15945 /Import File Strings/,/^$/ {
15946 /^0/ {
15947 s/^0 *\(.*\)$/\1/
15951 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15952 # Check for a 64-bit object if we didn't find anything.
15953 if test -z "$aix_libpath"; then
15954 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15957 rm -f core conftest.err conftest.$ac_objext \
15958 conftest$ac_exeext conftest.$ac_ext
15959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15961 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15962 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"
15963 else
15964 if test "$host_cpu" = ia64; then
15965 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15966 allow_undefined_flag="-z nodefs"
15967 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"
15968 else
15969 # Determine the default libpath from the value encoded in an
15970 # empty executable.
15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h. */
15975 main ()
15979 return 0;
15981 _ACEOF
15982 if ac_fn_c_try_link "$LINENO"; then :
15984 lt_aix_libpath_sed='
15985 /Import File Strings/,/^$/ {
15986 /^0/ {
15987 s/^0 *\(.*\)$/\1/
15991 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15992 # Check for a 64-bit object if we didn't find anything.
15993 if test -z "$aix_libpath"; then
15994 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15997 rm -f core conftest.err conftest.$ac_objext \
15998 conftest$ac_exeext conftest.$ac_ext
15999 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16001 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16002 # Warning - without using the other run time loading flags,
16003 # -berok will link without error, but may produce a broken library.
16004 no_undefined_flag=' ${wl}-bernotok'
16005 allow_undefined_flag=' ${wl}-berok'
16006 if test "$with_gnu_ld" = yes; then
16007 # We only use this code for GNU lds that support --whole-archive.
16008 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16009 else
16010 # Exported symbols can be pulled into shared objects from archives
16011 whole_archive_flag_spec='$convenience'
16013 archive_cmds_need_lc=yes
16014 # This is similar to how AIX traditionally builds its shared libraries.
16015 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'
16020 amigaos*)
16021 case $host_cpu in
16022 powerpc)
16023 # see comment about AmigaOS4 .so support
16024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16025 archive_expsym_cmds=''
16027 m68k)
16028 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)'
16029 hardcode_libdir_flag_spec='-L$libdir'
16030 hardcode_minus_L=yes
16032 esac
16035 bsdi[45]*)
16036 export_dynamic_flag_spec=-rdynamic
16039 cygwin* | mingw* | pw32* | cegcc*)
16040 # When not using gcc, we currently assume that we are using
16041 # Microsoft Visual C++.
16042 # hardcode_libdir_flag_spec is actually meaningless, as there is
16043 # no search path for DLLs.
16044 hardcode_libdir_flag_spec=' '
16045 allow_undefined_flag=unsupported
16046 # Tell ltmain to make .lib files, not .a files.
16047 libext=lib
16048 # Tell ltmain to make .dll files, not .so files.
16049 shrext_cmds=".dll"
16050 # FIXME: Setting linknames here is a bad hack.
16051 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16052 # The linker will automatically build a .lib file if we build a DLL.
16053 old_archive_from_new_cmds='true'
16054 # FIXME: Should let the user specify the lib program.
16055 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16056 fix_srcfile_path='`cygpath -w "$srcfile"`'
16057 enable_shared_with_static_runtimes=yes
16060 darwin* | rhapsody*)
16063 archive_cmds_need_lc=no
16064 hardcode_direct=no
16065 hardcode_automatic=yes
16066 hardcode_shlibpath_var=unsupported
16067 if test "$lt_cv_ld_force_load" = "yes"; then
16068 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\"`'
16069 else
16070 whole_archive_flag_spec=''
16072 link_all_deplibs=yes
16073 allow_undefined_flag="$_lt_dar_allow_undefined"
16074 case $cc_basename in
16075 ifort*) _lt_dar_can_shared=yes ;;
16076 *) _lt_dar_can_shared=$GCC ;;
16077 esac
16078 if test "$_lt_dar_can_shared" = "yes"; then
16079 output_verbose_link_cmd=func_echo_all
16080 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16081 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16082 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}"
16083 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}"
16085 else
16086 ld_shlibs=no
16091 dgux*)
16092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16093 hardcode_libdir_flag_spec='-L$libdir'
16094 hardcode_shlibpath_var=no
16097 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16098 # support. Future versions do this automatically, but an explicit c++rt0.o
16099 # does not break anything, and helps significantly (at the cost of a little
16100 # extra space).
16101 freebsd2.2*)
16102 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16103 hardcode_libdir_flag_spec='-R$libdir'
16104 hardcode_direct=yes
16105 hardcode_shlibpath_var=no
16108 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16109 freebsd2.*)
16110 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16111 hardcode_direct=yes
16112 hardcode_minus_L=yes
16113 hardcode_shlibpath_var=no
16116 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16117 freebsd* | dragonfly*)
16118 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16119 hardcode_libdir_flag_spec='-R$libdir'
16120 hardcode_direct=yes
16121 hardcode_shlibpath_var=no
16124 hpux9*)
16125 if test "$GCC" = yes; then
16126 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'
16127 else
16128 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'
16130 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16131 hardcode_libdir_separator=:
16132 hardcode_direct=yes
16134 # hardcode_minus_L: Not really in the search PATH,
16135 # but as the default location of the library.
16136 hardcode_minus_L=yes
16137 export_dynamic_flag_spec='${wl}-E'
16140 hpux10*)
16141 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16142 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16143 else
16144 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16146 if test "$with_gnu_ld" = no; then
16147 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16148 hardcode_libdir_flag_spec_ld='+b $libdir'
16149 hardcode_libdir_separator=:
16150 hardcode_direct=yes
16151 hardcode_direct_absolute=yes
16152 export_dynamic_flag_spec='${wl}-E'
16153 # hardcode_minus_L: Not really in the search PATH,
16154 # but as the default location of the library.
16155 hardcode_minus_L=yes
16159 hpux11*)
16160 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16161 case $host_cpu in
16162 hppa*64*)
16163 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16165 ia64*)
16166 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16169 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16171 esac
16172 else
16173 case $host_cpu in
16174 hppa*64*)
16175 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16177 ia64*)
16178 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16182 # Older versions of the 11.00 compiler do not understand -b yet
16183 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16185 $as_echo_n "checking if $CC understands -b... " >&6; }
16186 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16187 $as_echo_n "(cached) " >&6
16188 else
16189 lt_cv_prog_compiler__b=no
16190 save_LDFLAGS="$LDFLAGS"
16191 LDFLAGS="$LDFLAGS -b"
16192 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16193 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16194 # The linker can only warn and ignore the option if not recognized
16195 # So say no if there are warnings
16196 if test -s conftest.err; then
16197 # Append any errors to the config.log.
16198 cat conftest.err 1>&5
16199 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16201 if diff conftest.exp conftest.er2 >/dev/null; then
16202 lt_cv_prog_compiler__b=yes
16204 else
16205 lt_cv_prog_compiler__b=yes
16208 $RM -r conftest*
16209 LDFLAGS="$save_LDFLAGS"
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16213 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16215 if test x"$lt_cv_prog_compiler__b" = xyes; then
16216 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16217 else
16218 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16222 esac
16224 if test "$with_gnu_ld" = no; then
16225 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16226 hardcode_libdir_separator=:
16228 case $host_cpu in
16229 hppa*64*|ia64*)
16230 hardcode_direct=no
16231 hardcode_shlibpath_var=no
16234 hardcode_direct=yes
16235 hardcode_direct_absolute=yes
16236 export_dynamic_flag_spec='${wl}-E'
16238 # hardcode_minus_L: Not really in the search PATH,
16239 # but as the default location of the library.
16240 hardcode_minus_L=yes
16242 esac
16246 irix5* | irix6* | nonstopux*)
16247 if test "$GCC" = yes; then
16248 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'
16249 # Try to use the -exported_symbol ld option, if it does not
16250 # work, assume that -exports_file does not work either and
16251 # implicitly export all symbols.
16252 save_LDFLAGS="$LDFLAGS"
16253 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h. */
16256 int foo(void) {}
16257 _ACEOF
16258 if ac_fn_c_try_link "$LINENO"; then :
16259 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'
16262 rm -f core conftest.err conftest.$ac_objext \
16263 conftest$ac_exeext conftest.$ac_ext
16264 LDFLAGS="$save_LDFLAGS"
16265 else
16266 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'
16267 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'
16269 archive_cmds_need_lc='no'
16270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16271 hardcode_libdir_separator=:
16272 inherit_rpath=yes
16273 link_all_deplibs=yes
16276 netbsd*)
16277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16278 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16279 else
16280 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16282 hardcode_libdir_flag_spec='-R$libdir'
16283 hardcode_direct=yes
16284 hardcode_shlibpath_var=no
16287 newsos6)
16288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16289 hardcode_direct=yes
16290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16291 hardcode_libdir_separator=:
16292 hardcode_shlibpath_var=no
16295 *nto* | *qnx*)
16298 openbsd*)
16299 if test -f /usr/libexec/ld.so; then
16300 hardcode_direct=yes
16301 hardcode_shlibpath_var=no
16302 hardcode_direct_absolute=yes
16303 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16305 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16306 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16307 export_dynamic_flag_spec='${wl}-E'
16308 else
16309 case $host_os in
16310 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16312 hardcode_libdir_flag_spec='-R$libdir'
16315 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16316 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16318 esac
16320 else
16321 ld_shlibs=no
16325 os2*)
16326 hardcode_libdir_flag_spec='-L$libdir'
16327 hardcode_minus_L=yes
16328 allow_undefined_flag=unsupported
16329 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'
16330 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16333 osf3*)
16334 if test "$GCC" = yes; then
16335 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16336 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'
16337 else
16338 allow_undefined_flag=' -expect_unresolved \*'
16339 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'
16341 archive_cmds_need_lc='no'
16342 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16343 hardcode_libdir_separator=:
16346 osf4* | osf5*) # as osf3* with the addition of -msym flag
16347 if test "$GCC" = yes; then
16348 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16349 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'
16350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16351 else
16352 allow_undefined_flag=' -expect_unresolved \*'
16353 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'
16354 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~
16355 $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'
16357 # Both c and cxx compiler support -rpath directly
16358 hardcode_libdir_flag_spec='-rpath $libdir'
16360 archive_cmds_need_lc='no'
16361 hardcode_libdir_separator=:
16364 solaris*)
16365 no_undefined_flag=' -z defs'
16366 if test "$GCC" = yes; then
16367 wlarc='${wl}'
16368 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16369 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16370 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16371 else
16372 case `$CC -V 2>&1` in
16373 *"Compilers 5.0"*)
16374 wlarc=''
16375 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16376 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16377 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16380 wlarc='${wl}'
16381 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16382 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16383 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16385 esac
16387 hardcode_libdir_flag_spec='-R$libdir'
16388 hardcode_shlibpath_var=no
16389 case $host_os in
16390 solaris2.[0-5] | solaris2.[0-5].*) ;;
16392 # The compiler driver will combine and reorder linker options,
16393 # but understands `-z linker_flag'. GCC discards it without `$wl',
16394 # but is careful enough not to reorder.
16395 # Supported since Solaris 2.6 (maybe 2.5.1?)
16396 if test "$GCC" = yes; then
16397 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16398 else
16399 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16402 esac
16403 link_all_deplibs=yes
16406 sunos4*)
16407 if test "x$host_vendor" = xsequent; then
16408 # Use $CC to link under sequent, because it throws in some extra .o
16409 # files that make .init and .fini sections work.
16410 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16411 else
16412 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16414 hardcode_libdir_flag_spec='-L$libdir'
16415 hardcode_direct=yes
16416 hardcode_minus_L=yes
16417 hardcode_shlibpath_var=no
16420 sysv4)
16421 case $host_vendor in
16422 sni)
16423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16424 hardcode_direct=yes # is this really true???
16426 siemens)
16427 ## LD is ld it makes a PLAMLIB
16428 ## CC just makes a GrossModule.
16429 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16430 reload_cmds='$CC -r -o $output$reload_objs'
16431 hardcode_direct=no
16433 motorola)
16434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16435 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16437 esac
16438 runpath_var='LD_RUN_PATH'
16439 hardcode_shlibpath_var=no
16442 sysv4.3*)
16443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16444 hardcode_shlibpath_var=no
16445 export_dynamic_flag_spec='-Bexport'
16448 sysv4*MP*)
16449 if test -d /usr/nec; then
16450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16451 hardcode_shlibpath_var=no
16452 runpath_var=LD_RUN_PATH
16453 hardcode_runpath_var=yes
16454 ld_shlibs=yes
16458 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16459 no_undefined_flag='${wl}-z,text'
16460 archive_cmds_need_lc=no
16461 hardcode_shlibpath_var=no
16462 runpath_var='LD_RUN_PATH'
16464 if test "$GCC" = yes; then
16465 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16466 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16467 else
16468 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16469 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16473 sysv5* | sco3.2v5* | sco5v6*)
16474 # Note: We can NOT use -z defs as we might desire, because we do not
16475 # link with -lc, and that would cause any symbols used from libc to
16476 # always be unresolved, which means just about no library would
16477 # ever link correctly. If we're not using GNU ld we use -z text
16478 # though, which does catch some bad symbols but isn't as heavy-handed
16479 # as -z defs.
16480 no_undefined_flag='${wl}-z,text'
16481 allow_undefined_flag='${wl}-z,nodefs'
16482 archive_cmds_need_lc=no
16483 hardcode_shlibpath_var=no
16484 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16485 hardcode_libdir_separator=':'
16486 link_all_deplibs=yes
16487 export_dynamic_flag_spec='${wl}-Bexport'
16488 runpath_var='LD_RUN_PATH'
16490 if test "$GCC" = yes; then
16491 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16492 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16493 else
16494 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16495 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16499 uts4*)
16500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501 hardcode_libdir_flag_spec='-L$libdir'
16502 hardcode_shlibpath_var=no
16506 ld_shlibs=no
16508 esac
16510 if test x$host_vendor = xsni; then
16511 case $host in
16512 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16513 export_dynamic_flag_spec='${wl}-Blargedynsym'
16515 esac
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16520 $as_echo "$ld_shlibs" >&6; }
16521 test "$ld_shlibs" = no && can_build_shared=no
16523 with_gnu_ld=$with_gnu_ld
16540 # Do we need to explicitly link libc?
16542 case "x$archive_cmds_need_lc" in
16543 x|xyes)
16544 # Assume -lc should be added
16545 archive_cmds_need_lc=yes
16547 if test "$enable_shared" = yes && test "$GCC" = yes; then
16548 case $archive_cmds in
16549 *'~'*)
16550 # FIXME: we may have to deal with multi-command sequences.
16552 '$CC '*)
16553 # Test whether the compiler implicitly links with -lc since on some
16554 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16555 # to ld, don't add -lc before -lgcc.
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16557 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16558 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16559 $as_echo_n "(cached) " >&6
16560 else
16561 $RM conftest*
16562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16565 (eval $ac_compile) 2>&5
16566 ac_status=$?
16567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16568 test $ac_status = 0; } 2>conftest.err; then
16569 soname=conftest
16570 lib=conftest
16571 libobjs=conftest.$ac_objext
16572 deplibs=
16573 wl=$lt_prog_compiler_wl
16574 pic_flag=$lt_prog_compiler_pic
16575 compiler_flags=-v
16576 linker_flags=-v
16577 verstring=
16578 output_objdir=.
16579 libname=conftest
16580 lt_save_allow_undefined_flag=$allow_undefined_flag
16581 allow_undefined_flag=
16582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16583 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16584 ac_status=$?
16585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16586 test $ac_status = 0; }
16587 then
16588 lt_cv_archive_cmds_need_lc=no
16589 else
16590 lt_cv_archive_cmds_need_lc=yes
16592 allow_undefined_flag=$lt_save_allow_undefined_flag
16593 else
16594 cat conftest.err 1>&5
16596 $RM conftest*
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16600 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16601 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16603 esac
16606 esac
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16765 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16767 if test "$GCC" = yes; then
16768 case $host_os in
16769 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16770 *) lt_awk_arg="/^libraries:/" ;;
16771 esac
16772 case $host_os in
16773 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16774 *) lt_sed_strip_eq="s,=/,/,g" ;;
16775 esac
16776 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16777 case $lt_search_path_spec in
16778 *\;*)
16779 # if the path contains ";" then we assume it to be the separator
16780 # otherwise default to the standard path separator (i.e. ":") - it is
16781 # assumed that no part of a normal pathname contains ";" but that should
16782 # okay in the real world where ";" in dirpaths is itself problematic.
16783 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16786 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16788 esac
16789 # Ok, now we have the path, separated by spaces, we can step through it
16790 # and add multilib dir if necessary.
16791 lt_tmp_lt_search_path_spec=
16792 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16793 for lt_sys_path in $lt_search_path_spec; do
16794 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16795 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16796 else
16797 test -d "$lt_sys_path" && \
16798 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16800 done
16801 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16802 BEGIN {RS=" "; FS="/|\n";} {
16803 lt_foo="";
16804 lt_count=0;
16805 for (lt_i = NF; lt_i > 0; lt_i--) {
16806 if ($lt_i != "" && $lt_i != ".") {
16807 if ($lt_i == "..") {
16808 lt_count++;
16809 } else {
16810 if (lt_count == 0) {
16811 lt_foo="/" $lt_i lt_foo;
16812 } else {
16813 lt_count--;
16818 if (lt_foo != "") { lt_freq[lt_foo]++; }
16819 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16821 # AWK program above erroneously prepends '/' to C:/dos/paths
16822 # for these hosts.
16823 case $host_os in
16824 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16825 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16826 esac
16827 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16828 else
16829 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16831 library_names_spec=
16832 libname_spec='lib$name'
16833 soname_spec=
16834 shrext_cmds=".so"
16835 postinstall_cmds=
16836 postuninstall_cmds=
16837 finish_cmds=
16838 finish_eval=
16839 shlibpath_var=
16840 shlibpath_overrides_runpath=unknown
16841 version_type=none
16842 dynamic_linker="$host_os ld.so"
16843 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16844 need_lib_prefix=unknown
16845 hardcode_into_libs=no
16847 # when you set need_version to no, make sure it does not cause -set_version
16848 # flags to be left without arguments
16849 need_version=unknown
16851 case $host_os in
16852 aix3*)
16853 version_type=linux
16854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16855 shlibpath_var=LIBPATH
16857 # AIX 3 has no versioning support, so we append a major version to the name.
16858 soname_spec='${libname}${release}${shared_ext}$major'
16861 aix[4-9]*)
16862 version_type=linux
16863 need_lib_prefix=no
16864 need_version=no
16865 hardcode_into_libs=yes
16866 if test "$host_cpu" = ia64; then
16867 # AIX 5 supports IA64
16868 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16869 shlibpath_var=LD_LIBRARY_PATH
16870 else
16871 # With GCC up to 2.95.x, collect2 would create an import file
16872 # for dependence libraries. The import file would start with
16873 # the line `#! .'. This would cause the generated library to
16874 # depend on `.', always an invalid library. This was fixed in
16875 # development snapshots of GCC prior to 3.0.
16876 case $host_os in
16877 aix4 | aix4.[01] | aix4.[01].*)
16878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16879 echo ' yes '
16880 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16882 else
16883 can_build_shared=no
16886 esac
16887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16888 # soname into executable. Probably we can add versioning support to
16889 # collect2, so additional links can be useful in future.
16890 if test "$aix_use_runtimelinking" = yes; then
16891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16892 # instead of lib<name>.a to let people know that these are not
16893 # typical AIX shared libraries.
16894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16895 else
16896 # We preserve .a as extension for shared libraries through AIX4.2
16897 # and later when we are not doing run time linking.
16898 library_names_spec='${libname}${release}.a $libname.a'
16899 soname_spec='${libname}${release}${shared_ext}$major'
16901 shlibpath_var=LIBPATH
16905 amigaos*)
16906 case $host_cpu in
16907 powerpc)
16908 # Since July 2007 AmigaOS4 officially supports .so libraries.
16909 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16912 m68k)
16913 library_names_spec='$libname.ixlibrary $libname.a'
16914 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16915 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'
16917 esac
16920 beos*)
16921 library_names_spec='${libname}${shared_ext}'
16922 dynamic_linker="$host_os ld.so"
16923 shlibpath_var=LIBRARY_PATH
16926 bsdi[45]*)
16927 version_type=linux
16928 need_version=no
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930 soname_spec='${libname}${release}${shared_ext}$major'
16931 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16932 shlibpath_var=LD_LIBRARY_PATH
16933 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16934 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16935 # the default ld.so.conf also contains /usr/contrib/lib and
16936 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16937 # libtool to hard-code these into programs
16940 cygwin* | mingw* | pw32* | cegcc*)
16941 version_type=windows
16942 shrext_cmds=".dll"
16943 need_version=no
16944 need_lib_prefix=no
16946 case $GCC,$host_os in
16947 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16948 library_names_spec='$libname.dll.a'
16949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16950 postinstall_cmds='base_file=`basename \${file}`~
16951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16952 dldir=$destdir/`dirname \$dlpath`~
16953 test -d \$dldir || mkdir -p \$dldir~
16954 $install_prog $dir/$dlname \$dldir/$dlname~
16955 chmod a+x \$dldir/$dlname~
16956 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16957 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16959 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16960 dlpath=$dir/\$dldll~
16961 $RM \$dlpath'
16962 shlibpath_overrides_runpath=yes
16964 case $host_os in
16965 cygwin*)
16966 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16967 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16969 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16971 mingw* | cegcc*)
16972 # MinGW DLLs use traditional 'lib' prefix
16973 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16975 pw32*)
16976 # pw32 DLLs use 'pw' prefix rather than 'lib'
16977 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16979 esac
16983 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16985 esac
16986 dynamic_linker='Win32 ld.exe'
16987 # FIXME: first we should search . and the directory the executable is in
16988 shlibpath_var=PATH
16991 darwin* | rhapsody*)
16992 dynamic_linker="$host_os dyld"
16993 version_type=darwin
16994 need_lib_prefix=no
16995 need_version=no
16996 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16997 soname_spec='${libname}${release}${major}$shared_ext'
16998 shlibpath_overrides_runpath=yes
16999 shlibpath_var=DYLD_LIBRARY_PATH
17000 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17002 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17003 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17006 dgux*)
17007 version_type=linux
17008 need_lib_prefix=no
17009 need_version=no
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 shlibpath_var=LD_LIBRARY_PATH
17015 freebsd* | dragonfly*)
17016 # DragonFly does not have aout. When/if they implement a new
17017 # versioning mechanism, adjust this.
17018 if test -x /usr/bin/objformat; then
17019 objformat=`/usr/bin/objformat`
17020 else
17021 case $host_os in
17022 freebsd[23].*) objformat=aout ;;
17023 *) objformat=elf ;;
17024 esac
17026 version_type=freebsd-$objformat
17027 case $version_type in
17028 freebsd-elf*)
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17030 need_version=no
17031 need_lib_prefix=no
17033 freebsd-*)
17034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17035 need_version=yes
17037 esac
17038 shlibpath_var=LD_LIBRARY_PATH
17039 case $host_os in
17040 freebsd2.*)
17041 shlibpath_overrides_runpath=yes
17043 freebsd3.[01]* | freebsdelf3.[01]*)
17044 shlibpath_overrides_runpath=yes
17045 hardcode_into_libs=yes
17047 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17048 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17049 shlibpath_overrides_runpath=no
17050 hardcode_into_libs=yes
17052 *) # from 4.6 on, and DragonFly
17053 shlibpath_overrides_runpath=yes
17054 hardcode_into_libs=yes
17056 esac
17059 gnu*)
17060 version_type=linux
17061 need_lib_prefix=no
17062 need_version=no
17063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17064 soname_spec='${libname}${release}${shared_ext}$major'
17065 shlibpath_var=LD_LIBRARY_PATH
17066 hardcode_into_libs=yes
17069 haiku*)
17070 version_type=linux
17071 need_lib_prefix=no
17072 need_version=no
17073 dynamic_linker="$host_os runtime_loader"
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17075 soname_spec='${libname}${release}${shared_ext}$major'
17076 shlibpath_var=LIBRARY_PATH
17077 shlibpath_overrides_runpath=yes
17078 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17079 hardcode_into_libs=yes
17082 hpux9* | hpux10* | hpux11*)
17083 # Give a soname corresponding to the major version so that dld.sl refuses to
17084 # link against other versions.
17085 version_type=sunos
17086 need_lib_prefix=no
17087 need_version=no
17088 case $host_cpu in
17089 ia64*)
17090 shrext_cmds='.so'
17091 hardcode_into_libs=yes
17092 dynamic_linker="$host_os dld.so"
17093 shlibpath_var=LD_LIBRARY_PATH
17094 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17096 soname_spec='${libname}${release}${shared_ext}$major'
17097 if test "X$HPUX_IA64_MODE" = X32; then
17098 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17099 else
17100 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17104 hppa*64*)
17105 shrext_cmds='.sl'
17106 hardcode_into_libs=yes
17107 dynamic_linker="$host_os dld.sl"
17108 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17111 soname_spec='${libname}${release}${shared_ext}$major'
17112 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17116 shrext_cmds='.sl'
17117 dynamic_linker="$host_os dld.sl"
17118 shlibpath_var=SHLIB_PATH
17119 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17121 soname_spec='${libname}${release}${shared_ext}$major'
17123 esac
17124 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17125 postinstall_cmds='chmod 555 $lib'
17126 # or fails outright, so override atomically:
17127 install_override_mode=555
17130 interix[3-9]*)
17131 version_type=linux
17132 need_lib_prefix=no
17133 need_version=no
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17135 soname_spec='${libname}${release}${shared_ext}$major'
17136 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17137 shlibpath_var=LD_LIBRARY_PATH
17138 shlibpath_overrides_runpath=no
17139 hardcode_into_libs=yes
17142 irix5* | irix6* | nonstopux*)
17143 case $host_os in
17144 nonstopux*) version_type=nonstopux ;;
17146 if test "$lt_cv_prog_gnu_ld" = yes; then
17147 version_type=linux
17148 else
17149 version_type=irix
17150 fi ;;
17151 esac
17152 need_lib_prefix=no
17153 need_version=no
17154 soname_spec='${libname}${release}${shared_ext}$major'
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17156 case $host_os in
17157 irix5* | nonstopux*)
17158 libsuff= shlibsuff=
17161 case $LD in # libtool.m4 will add one of these switches to LD
17162 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17163 libsuff= shlibsuff= libmagic=32-bit;;
17164 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17165 libsuff=32 shlibsuff=N32 libmagic=N32;;
17166 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17167 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17168 *) libsuff= shlibsuff= libmagic=never-match;;
17169 esac
17171 esac
17172 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17173 shlibpath_overrides_runpath=no
17174 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17175 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17176 hardcode_into_libs=yes
17179 # No shared lib support for Linux oldld, aout, or coff.
17180 linux*oldld* | linux*aout* | linux*coff*)
17181 dynamic_linker=no
17184 # This must be Linux ELF.
17185 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17186 version_type=linux
17187 need_lib_prefix=no
17188 need_version=no
17189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17190 soname_spec='${libname}${release}${shared_ext}$major'
17191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17192 shlibpath_var=LD_LIBRARY_PATH
17193 shlibpath_overrides_runpath=no
17195 # Some binutils ld are patched to set DT_RUNPATH
17196 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17197 $as_echo_n "(cached) " >&6
17198 else
17199 lt_cv_shlibpath_overrides_runpath=no
17200 save_LDFLAGS=$LDFLAGS
17201 save_libdir=$libdir
17202 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17203 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17205 /* end confdefs.h. */
17208 main ()
17212 return 0;
17214 _ACEOF
17215 if ac_fn_c_try_link "$LINENO"; then :
17216 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17217 lt_cv_shlibpath_overrides_runpath=yes
17220 rm -f core conftest.err conftest.$ac_objext \
17221 conftest$ac_exeext conftest.$ac_ext
17222 LDFLAGS=$save_LDFLAGS
17223 libdir=$save_libdir
17227 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17229 # This implies no fast_install, which is unacceptable.
17230 # Some rework will be needed to allow for fast_install
17231 # before this can be enabled.
17232 hardcode_into_libs=yes
17234 # Append ld.so.conf contents to the search path
17235 if test -f /etc/ld.so.conf; then
17236 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' ' '`
17237 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17240 # We used to test for /lib/ld.so.1 and disable shared libraries on
17241 # powerpc, because MkLinux only supported shared libraries with the
17242 # GNU dynamic linker. Since this was broken with cross compilers,
17243 # most powerpc-linux boxes support dynamic linking these days and
17244 # people can always --disable-shared, the test was removed, and we
17245 # assume the GNU/Linux dynamic linker is in use.
17246 dynamic_linker='GNU/Linux ld.so'
17249 netbsd*)
17250 version_type=sunos
17251 need_lib_prefix=no
17252 need_version=no
17253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17256 dynamic_linker='NetBSD (a.out) ld.so'
17257 else
17258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17259 soname_spec='${libname}${release}${shared_ext}$major'
17260 dynamic_linker='NetBSD ld.elf_so'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 shlibpath_overrides_runpath=yes
17264 hardcode_into_libs=yes
17267 newsos6)
17268 version_type=linux
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 shlibpath_var=LD_LIBRARY_PATH
17271 shlibpath_overrides_runpath=yes
17274 *nto* | *qnx*)
17275 version_type=qnx
17276 need_lib_prefix=no
17277 need_version=no
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 soname_spec='${libname}${release}${shared_ext}$major'
17280 shlibpath_var=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath=no
17282 hardcode_into_libs=yes
17283 dynamic_linker='ldqnx.so'
17286 openbsd*)
17287 version_type=sunos
17288 sys_lib_dlsearch_path_spec="/usr/lib"
17289 need_lib_prefix=no
17290 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17291 case $host_os in
17292 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17293 *) need_version=no ;;
17294 esac
17295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17297 shlibpath_var=LD_LIBRARY_PATH
17298 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17299 case $host_os in
17300 openbsd2.[89] | openbsd2.[89].*)
17301 shlibpath_overrides_runpath=no
17304 shlibpath_overrides_runpath=yes
17306 esac
17307 else
17308 shlibpath_overrides_runpath=yes
17312 os2*)
17313 libname_spec='$name'
17314 shrext_cmds=".dll"
17315 need_lib_prefix=no
17316 library_names_spec='$libname${shared_ext} $libname.a'
17317 dynamic_linker='OS/2 ld.exe'
17318 shlibpath_var=LIBPATH
17321 osf3* | osf4* | osf5*)
17322 version_type=osf
17323 need_lib_prefix=no
17324 need_version=no
17325 soname_spec='${libname}${release}${shared_ext}$major'
17326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327 shlibpath_var=LD_LIBRARY_PATH
17328 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17329 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17332 rdos*)
17333 dynamic_linker=no
17336 solaris*)
17337 version_type=linux
17338 need_lib_prefix=no
17339 need_version=no
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341 soname_spec='${libname}${release}${shared_ext}$major'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 shlibpath_overrides_runpath=yes
17344 hardcode_into_libs=yes
17345 # ldd complains unless libraries are executable
17346 postinstall_cmds='chmod +x $lib'
17349 sunos4*)
17350 version_type=sunos
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17352 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17353 shlibpath_var=LD_LIBRARY_PATH
17354 shlibpath_overrides_runpath=yes
17355 if test "$with_gnu_ld" = yes; then
17356 need_lib_prefix=no
17358 need_version=yes
17361 sysv4 | sysv4.3*)
17362 version_type=linux
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 case $host_vendor in
17367 sni)
17368 shlibpath_overrides_runpath=no
17369 need_lib_prefix=no
17370 runpath_var=LD_RUN_PATH
17372 siemens)
17373 need_lib_prefix=no
17375 motorola)
17376 need_lib_prefix=no
17377 need_version=no
17378 shlibpath_overrides_runpath=no
17379 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17381 esac
17384 sysv4*MP*)
17385 if test -d /usr/nec ;then
17386 version_type=linux
17387 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17388 soname_spec='$libname${shared_ext}.$major'
17389 shlibpath_var=LD_LIBRARY_PATH
17393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17394 version_type=freebsd-elf
17395 need_lib_prefix=no
17396 need_version=no
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17398 soname_spec='${libname}${release}${shared_ext}$major'
17399 shlibpath_var=LD_LIBRARY_PATH
17400 shlibpath_overrides_runpath=yes
17401 hardcode_into_libs=yes
17402 if test "$with_gnu_ld" = yes; then
17403 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17404 else
17405 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17406 case $host_os in
17407 sco3.2v5*)
17408 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17410 esac
17412 sys_lib_dlsearch_path_spec='/usr/lib'
17415 tpf*)
17416 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17417 version_type=linux
17418 need_lib_prefix=no
17419 need_version=no
17420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17421 shlibpath_var=LD_LIBRARY_PATH
17422 shlibpath_overrides_runpath=no
17423 hardcode_into_libs=yes
17426 uts4*)
17427 version_type=linux
17428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429 soname_spec='${libname}${release}${shared_ext}$major'
17430 shlibpath_var=LD_LIBRARY_PATH
17434 dynamic_linker=no
17436 esac
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17438 $as_echo "$dynamic_linker" >&6; }
17439 test "$dynamic_linker" = no && can_build_shared=no
17441 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17442 if test "$GCC" = yes; then
17443 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17446 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17447 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17449 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17450 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17545 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17546 hardcode_action=
17547 if test -n "$hardcode_libdir_flag_spec" ||
17548 test -n "$runpath_var" ||
17549 test "X$hardcode_automatic" = "Xyes" ; then
17551 # We can hardcode non-existent directories.
17552 if test "$hardcode_direct" != no &&
17553 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17554 # have to relink, otherwise we might link with an installed library
17555 # when we should be linking with a yet-to-be-installed one
17556 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17557 test "$hardcode_minus_L" != no; then
17558 # Linking always hardcodes the temporary library directory.
17559 hardcode_action=relink
17560 else
17561 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17562 hardcode_action=immediate
17564 else
17565 # We cannot hardcode anything, or else we can only hardcode existing
17566 # directories.
17567 hardcode_action=unsupported
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17570 $as_echo "$hardcode_action" >&6; }
17572 if test "$hardcode_action" = relink ||
17573 test "$inherit_rpath" = yes; then
17574 # Fast installation is not supported
17575 enable_fast_install=no
17576 elif test "$shlibpath_overrides_runpath" = yes ||
17577 test "$enable_shared" = no; then
17578 # Fast installation is not necessary
17579 enable_fast_install=needless
17587 if test "x$enable_dlopen" != xyes; then
17588 enable_dlopen=unknown
17589 enable_dlopen_self=unknown
17590 enable_dlopen_self_static=unknown
17591 else
17592 lt_cv_dlopen=no
17593 lt_cv_dlopen_libs=
17595 case $host_os in
17596 beos*)
17597 lt_cv_dlopen="load_add_on"
17598 lt_cv_dlopen_libs=
17599 lt_cv_dlopen_self=yes
17602 mingw* | pw32* | cegcc*)
17603 lt_cv_dlopen="LoadLibrary"
17604 lt_cv_dlopen_libs=
17607 cygwin*)
17608 lt_cv_dlopen="dlopen"
17609 lt_cv_dlopen_libs=
17612 darwin*)
17613 # if libdl is installed we need to link against it
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17615 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17616 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17617 $as_echo_n "(cached) " >&6
17618 else
17619 ac_check_lib_save_LIBS=$LIBS
17620 LIBS="-ldl $LIBS"
17621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17622 /* end confdefs.h. */
17624 /* Override any GCC internal prototype to avoid an error.
17625 Use char because int might match the return type of a GCC
17626 builtin and then its argument prototype would still apply. */
17627 #ifdef __cplusplus
17628 extern "C"
17629 #endif
17630 char dlopen ();
17632 main ()
17634 return dlopen ();
17636 return 0;
17638 _ACEOF
17639 if ac_fn_c_try_link "$LINENO"; then :
17640 ac_cv_lib_dl_dlopen=yes
17641 else
17642 ac_cv_lib_dl_dlopen=no
17644 rm -f core conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
17646 LIBS=$ac_check_lib_save_LIBS
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17649 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17650 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17651 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17652 else
17654 lt_cv_dlopen="dyld"
17655 lt_cv_dlopen_libs=
17656 lt_cv_dlopen_self=yes
17663 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17664 if test "x$ac_cv_func_shl_load" = x""yes; then :
17665 lt_cv_dlopen="shl_load"
17666 else
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17668 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17669 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17670 $as_echo_n "(cached) " >&6
17671 else
17672 ac_check_lib_save_LIBS=$LIBS
17673 LIBS="-ldld $LIBS"
17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17677 /* Override any GCC internal prototype to avoid an error.
17678 Use char because int might match the return type of a GCC
17679 builtin and then its argument prototype would still apply. */
17680 #ifdef __cplusplus
17681 extern "C"
17682 #endif
17683 char shl_load ();
17685 main ()
17687 return shl_load ();
17689 return 0;
17691 _ACEOF
17692 if ac_fn_c_try_link "$LINENO"; then :
17693 ac_cv_lib_dld_shl_load=yes
17694 else
17695 ac_cv_lib_dld_shl_load=no
17697 rm -f core conftest.err conftest.$ac_objext \
17698 conftest$ac_exeext conftest.$ac_ext
17699 LIBS=$ac_check_lib_save_LIBS
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17702 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17703 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17704 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17705 else
17706 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17707 if test "x$ac_cv_func_dlopen" = x""yes; then :
17708 lt_cv_dlopen="dlopen"
17709 else
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17711 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17712 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17713 $as_echo_n "(cached) " >&6
17714 else
17715 ac_check_lib_save_LIBS=$LIBS
17716 LIBS="-ldl $LIBS"
17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17720 /* Override any GCC internal prototype to avoid an error.
17721 Use char because int might match the return type of a GCC
17722 builtin and then its argument prototype would still apply. */
17723 #ifdef __cplusplus
17724 extern "C"
17725 #endif
17726 char dlopen ();
17728 main ()
17730 return dlopen ();
17732 return 0;
17734 _ACEOF
17735 if ac_fn_c_try_link "$LINENO"; then :
17736 ac_cv_lib_dl_dlopen=yes
17737 else
17738 ac_cv_lib_dl_dlopen=no
17740 rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17742 LIBS=$ac_check_lib_save_LIBS
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17745 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17746 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17747 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17748 else
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17750 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17751 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17752 $as_echo_n "(cached) " >&6
17753 else
17754 ac_check_lib_save_LIBS=$LIBS
17755 LIBS="-lsvld $LIBS"
17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757 /* end confdefs.h. */
17759 /* Override any GCC internal prototype to avoid an error.
17760 Use char because int might match the return type of a GCC
17761 builtin and then its argument prototype would still apply. */
17762 #ifdef __cplusplus
17763 extern "C"
17764 #endif
17765 char dlopen ();
17767 main ()
17769 return dlopen ();
17771 return 0;
17773 _ACEOF
17774 if ac_fn_c_try_link "$LINENO"; then :
17775 ac_cv_lib_svld_dlopen=yes
17776 else
17777 ac_cv_lib_svld_dlopen=no
17779 rm -f core conftest.err conftest.$ac_objext \
17780 conftest$ac_exeext conftest.$ac_ext
17781 LIBS=$ac_check_lib_save_LIBS
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17784 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17785 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17786 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17787 else
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17789 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17790 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17791 $as_echo_n "(cached) " >&6
17792 else
17793 ac_check_lib_save_LIBS=$LIBS
17794 LIBS="-ldld $LIBS"
17795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796 /* end confdefs.h. */
17798 /* Override any GCC internal prototype to avoid an error.
17799 Use char because int might match the return type of a GCC
17800 builtin and then its argument prototype would still apply. */
17801 #ifdef __cplusplus
17802 extern "C"
17803 #endif
17804 char dld_link ();
17806 main ()
17808 return dld_link ();
17810 return 0;
17812 _ACEOF
17813 if ac_fn_c_try_link "$LINENO"; then :
17814 ac_cv_lib_dld_dld_link=yes
17815 else
17816 ac_cv_lib_dld_dld_link=no
17818 rm -f core conftest.err conftest.$ac_objext \
17819 conftest$ac_exeext conftest.$ac_ext
17820 LIBS=$ac_check_lib_save_LIBS
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17823 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17824 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17825 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17844 esac
17846 if test "x$lt_cv_dlopen" != xno; then
17847 enable_dlopen=yes
17848 else
17849 enable_dlopen=no
17852 case $lt_cv_dlopen in
17853 dlopen)
17854 save_CPPFLAGS="$CPPFLAGS"
17855 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17857 save_LDFLAGS="$LDFLAGS"
17858 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17860 save_LIBS="$LIBS"
17861 LIBS="$lt_cv_dlopen_libs $LIBS"
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17864 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17865 if test "${lt_cv_dlopen_self+set}" = set; then :
17866 $as_echo_n "(cached) " >&6
17867 else
17868 if test "$cross_compiling" = yes; then :
17869 lt_cv_dlopen_self=cross
17870 else
17871 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17872 lt_status=$lt_dlunknown
17873 cat > conftest.$ac_ext <<_LT_EOF
17874 #line 17874 "configure"
17875 #include "confdefs.h"
17877 #if HAVE_DLFCN_H
17878 #include <dlfcn.h>
17879 #endif
17881 #include <stdio.h>
17883 #ifdef RTLD_GLOBAL
17884 # define LT_DLGLOBAL RTLD_GLOBAL
17885 #else
17886 # ifdef DL_GLOBAL
17887 # define LT_DLGLOBAL DL_GLOBAL
17888 # else
17889 # define LT_DLGLOBAL 0
17890 # endif
17891 #endif
17893 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17894 find out it does not work in some platform. */
17895 #ifndef LT_DLLAZY_OR_NOW
17896 # ifdef RTLD_LAZY
17897 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17898 # else
17899 # ifdef DL_LAZY
17900 # define LT_DLLAZY_OR_NOW DL_LAZY
17901 # else
17902 # ifdef RTLD_NOW
17903 # define LT_DLLAZY_OR_NOW RTLD_NOW
17904 # else
17905 # ifdef DL_NOW
17906 # define LT_DLLAZY_OR_NOW DL_NOW
17907 # else
17908 # define LT_DLLAZY_OR_NOW 0
17909 # endif
17910 # endif
17911 # endif
17912 # endif
17913 #endif
17915 /* When -fvisbility=hidden is used, assume the code has been annotated
17916 correspondingly for the symbols needed. */
17917 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17918 void fnord () __attribute__((visibility("default")));
17919 #endif
17921 void fnord () { int i=42; }
17922 int main ()
17924 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17925 int status = $lt_dlunknown;
17927 if (self)
17929 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17930 else
17932 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17933 else puts (dlerror ());
17935 /* dlclose (self); */
17937 else
17938 puts (dlerror ());
17940 return status;
17942 _LT_EOF
17943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17944 (eval $ac_link) 2>&5
17945 ac_status=$?
17946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17947 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17948 (./conftest; exit; ) >&5 2>/dev/null
17949 lt_status=$?
17950 case x$lt_status in
17951 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17952 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17953 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17954 esac
17955 else :
17956 # compilation failed
17957 lt_cv_dlopen_self=no
17960 rm -fr conftest*
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17965 $as_echo "$lt_cv_dlopen_self" >&6; }
17967 if test "x$lt_cv_dlopen_self" = xyes; then
17968 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17970 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17971 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17972 $as_echo_n "(cached) " >&6
17973 else
17974 if test "$cross_compiling" = yes; then :
17975 lt_cv_dlopen_self_static=cross
17976 else
17977 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17978 lt_status=$lt_dlunknown
17979 cat > conftest.$ac_ext <<_LT_EOF
17980 #line 17980 "configure"
17981 #include "confdefs.h"
17983 #if HAVE_DLFCN_H
17984 #include <dlfcn.h>
17985 #endif
17987 #include <stdio.h>
17989 #ifdef RTLD_GLOBAL
17990 # define LT_DLGLOBAL RTLD_GLOBAL
17991 #else
17992 # ifdef DL_GLOBAL
17993 # define LT_DLGLOBAL DL_GLOBAL
17994 # else
17995 # define LT_DLGLOBAL 0
17996 # endif
17997 #endif
17999 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18000 find out it does not work in some platform. */
18001 #ifndef LT_DLLAZY_OR_NOW
18002 # ifdef RTLD_LAZY
18003 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18004 # else
18005 # ifdef DL_LAZY
18006 # define LT_DLLAZY_OR_NOW DL_LAZY
18007 # else
18008 # ifdef RTLD_NOW
18009 # define LT_DLLAZY_OR_NOW RTLD_NOW
18010 # else
18011 # ifdef DL_NOW
18012 # define LT_DLLAZY_OR_NOW DL_NOW
18013 # else
18014 # define LT_DLLAZY_OR_NOW 0
18015 # endif
18016 # endif
18017 # endif
18018 # endif
18019 #endif
18021 /* When -fvisbility=hidden is used, assume the code has been annotated
18022 correspondingly for the symbols needed. */
18023 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18024 void fnord () __attribute__((visibility("default")));
18025 #endif
18027 void fnord () { int i=42; }
18028 int main ()
18030 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18031 int status = $lt_dlunknown;
18033 if (self)
18035 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18036 else
18038 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18039 else puts (dlerror ());
18041 /* dlclose (self); */
18043 else
18044 puts (dlerror ());
18046 return status;
18048 _LT_EOF
18049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18050 (eval $ac_link) 2>&5
18051 ac_status=$?
18052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18053 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18054 (./conftest; exit; ) >&5 2>/dev/null
18055 lt_status=$?
18056 case x$lt_status in
18057 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18058 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18059 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18060 esac
18061 else :
18062 # compilation failed
18063 lt_cv_dlopen_self_static=no
18066 rm -fr conftest*
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18071 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18074 CPPFLAGS="$save_CPPFLAGS"
18075 LDFLAGS="$save_LDFLAGS"
18076 LIBS="$save_LIBS"
18078 esac
18080 case $lt_cv_dlopen_self in
18081 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18082 *) enable_dlopen_self=unknown ;;
18083 esac
18085 case $lt_cv_dlopen_self_static in
18086 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18087 *) enable_dlopen_self_static=unknown ;;
18088 esac
18107 striplib=
18108 old_striplib=
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18110 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18111 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18112 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18113 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18115 $as_echo "yes" >&6; }
18116 else
18117 # FIXME - insert some real tests, host_os isn't really good enough
18118 case $host_os in
18119 darwin*)
18120 if test -n "$STRIP" ; then
18121 striplib="$STRIP -x"
18122 old_striplib="$STRIP -S"
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18124 $as_echo "yes" >&6; }
18125 else
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18127 $as_echo "no" >&6; }
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18132 $as_echo "no" >&6; }
18134 esac
18148 # Report which library types will actually be built
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18150 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18152 $as_echo "$can_build_shared" >&6; }
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18155 $as_echo_n "checking whether to build shared libraries... " >&6; }
18156 test "$can_build_shared" = "no" && enable_shared=no
18158 # On AIX, shared libraries and static libraries use the same namespace, and
18159 # are all built from PIC.
18160 case $host_os in
18161 aix3*)
18162 test "$enable_shared" = yes && enable_static=no
18163 if test -n "$RANLIB"; then
18164 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18165 postinstall_cmds='$RANLIB $lib'
18169 aix[4-9]*)
18170 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18171 test "$enable_shared" = yes && enable_static=no
18174 esac
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18176 $as_echo "$enable_shared" >&6; }
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18179 $as_echo_n "checking whether to build static libraries... " >&6; }
18180 # Make sure either enable_shared or enable_static is yes.
18181 test "$enable_shared" = yes || enable_static=yes
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18183 $as_echo "$enable_static" >&6; }
18189 ac_ext=c
18190 ac_cpp='$CPP $CPPFLAGS'
18191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18195 CC="$lt_save_CC"
18197 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18198 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18199 (test "X$CXX" != "Xg++"))) ; then
18200 ac_ext=cpp
18201 ac_cpp='$CXXCPP $CPPFLAGS'
18202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18206 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18207 if test -z "$CXXCPP"; then
18208 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18209 $as_echo_n "(cached) " >&6
18210 else
18211 # Double quotes because CXXCPP needs to be expanded
18212 for CXXCPP in "$CXX -E" "/lib/cpp"
18214 ac_preproc_ok=false
18215 for ac_cxx_preproc_warn_flag in '' yes
18217 # Use a header file that comes with gcc, so configuring glibc
18218 # with a fresh cross-compiler works.
18219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18220 # <limits.h> exists even on freestanding compilers.
18221 # On the NeXT, cc -E runs the code through the compiler's parser,
18222 # not just through cpp. "Syntax error" is here to catch this case.
18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h. */
18225 #ifdef __STDC__
18226 # include <limits.h>
18227 #else
18228 # include <assert.h>
18229 #endif
18230 Syntax error
18231 _ACEOF
18232 if ac_fn_cxx_try_cpp "$LINENO"; then :
18234 else
18235 # Broken: fails on valid input.
18236 continue
18238 rm -f conftest.err conftest.$ac_ext
18240 # OK, works on sane cases. Now check whether nonexistent headers
18241 # can be detected and how.
18242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18243 /* end confdefs.h. */
18244 #include <ac_nonexistent.h>
18245 _ACEOF
18246 if ac_fn_cxx_try_cpp "$LINENO"; then :
18247 # Broken: success on invalid input.
18248 continue
18249 else
18250 # Passes both tests.
18251 ac_preproc_ok=:
18252 break
18254 rm -f conftest.err conftest.$ac_ext
18256 done
18257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18258 rm -f conftest.err conftest.$ac_ext
18259 if $ac_preproc_ok; then :
18260 break
18263 done
18264 ac_cv_prog_CXXCPP=$CXXCPP
18267 CXXCPP=$ac_cv_prog_CXXCPP
18268 else
18269 ac_cv_prog_CXXCPP=$CXXCPP
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18272 $as_echo "$CXXCPP" >&6; }
18273 ac_preproc_ok=false
18274 for ac_cxx_preproc_warn_flag in '' yes
18276 # Use a header file that comes with gcc, so configuring glibc
18277 # with a fresh cross-compiler works.
18278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18279 # <limits.h> exists even on freestanding compilers.
18280 # On the NeXT, cc -E runs the code through the compiler's parser,
18281 # not just through cpp. "Syntax error" is here to catch this case.
18282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h. */
18284 #ifdef __STDC__
18285 # include <limits.h>
18286 #else
18287 # include <assert.h>
18288 #endif
18289 Syntax error
18290 _ACEOF
18291 if ac_fn_cxx_try_cpp "$LINENO"; then :
18293 else
18294 # Broken: fails on valid input.
18295 continue
18297 rm -f conftest.err conftest.$ac_ext
18299 # OK, works on sane cases. Now check whether nonexistent headers
18300 # can be detected and how.
18301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18302 /* end confdefs.h. */
18303 #include <ac_nonexistent.h>
18304 _ACEOF
18305 if ac_fn_cxx_try_cpp "$LINENO"; then :
18306 # Broken: success on invalid input.
18307 continue
18308 else
18309 # Passes both tests.
18310 ac_preproc_ok=:
18311 break
18313 rm -f conftest.err conftest.$ac_ext
18315 done
18316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18317 rm -f conftest.err conftest.$ac_ext
18318 if $ac_preproc_ok; then :
18320 else
18321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18323 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18324 See \`config.log' for more details." "$LINENO" 5; }
18327 ac_ext=c
18328 ac_cpp='$CPP $CPPFLAGS'
18329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18333 else
18334 _lt_caught_CXX_error=yes
18337 ac_ext=cpp
18338 ac_cpp='$CXXCPP $CPPFLAGS'
18339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18343 archive_cmds_need_lc_CXX=no
18344 allow_undefined_flag_CXX=
18345 always_export_symbols_CXX=no
18346 archive_expsym_cmds_CXX=
18347 compiler_needs_object_CXX=no
18348 export_dynamic_flag_spec_CXX=
18349 hardcode_direct_CXX=no
18350 hardcode_direct_absolute_CXX=no
18351 hardcode_libdir_flag_spec_CXX=
18352 hardcode_libdir_flag_spec_ld_CXX=
18353 hardcode_libdir_separator_CXX=
18354 hardcode_minus_L_CXX=no
18355 hardcode_shlibpath_var_CXX=unsupported
18356 hardcode_automatic_CXX=no
18357 inherit_rpath_CXX=no
18358 module_cmds_CXX=
18359 module_expsym_cmds_CXX=
18360 link_all_deplibs_CXX=unknown
18361 old_archive_cmds_CXX=$old_archive_cmds
18362 reload_flag_CXX=$reload_flag
18363 reload_cmds_CXX=$reload_cmds
18364 no_undefined_flag_CXX=
18365 whole_archive_flag_spec_CXX=
18366 enable_shared_with_static_runtimes_CXX=no
18368 # Source file extension for C++ test sources.
18369 ac_ext=cpp
18371 # Object file extension for compiled C++ test sources.
18372 objext=o
18373 objext_CXX=$objext
18375 # No sense in running all these tests if we already determined that
18376 # the CXX compiler isn't working. Some variables (like enable_shared)
18377 # are currently assumed to apply to all compilers on this platform,
18378 # and will be corrupted by setting them based on a non-working compiler.
18379 if test "$_lt_caught_CXX_error" != yes; then
18380 # Code to be used in simple compile tests
18381 lt_simple_compile_test_code="int some_variable = 0;"
18383 # Code to be used in simple link tests
18384 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18386 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18393 # If no C compiler was specified, use CC.
18394 LTCC=${LTCC-"$CC"}
18396 # If no C compiler flags were specified, use CFLAGS.
18397 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18399 # Allow CC to be a program name with arguments.
18400 compiler=$CC
18403 # save warnings/boilerplate of simple test code
18404 ac_outfile=conftest.$ac_objext
18405 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18406 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18407 _lt_compiler_boilerplate=`cat conftest.err`
18408 $RM conftest*
18410 ac_outfile=conftest.$ac_objext
18411 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18412 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18413 _lt_linker_boilerplate=`cat conftest.err`
18414 $RM -r conftest*
18417 # Allow CC to be a program name with arguments.
18418 lt_save_CC=$CC
18419 lt_save_LD=$LD
18420 lt_save_GCC=$GCC
18421 GCC=$GXX
18422 lt_save_with_gnu_ld=$with_gnu_ld
18423 lt_save_path_LD=$lt_cv_path_LD
18424 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18425 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18426 else
18427 $as_unset lt_cv_prog_gnu_ld
18429 if test -n "${lt_cv_path_LDCXX+set}"; then
18430 lt_cv_path_LD=$lt_cv_path_LDCXX
18431 else
18432 $as_unset lt_cv_path_LD
18434 test -z "${LDCXX+set}" || LD=$LDCXX
18435 CC=${CXX-"c++"}
18436 compiler=$CC
18437 compiler_CXX=$CC
18438 for cc_temp in $compiler""; do
18439 case $cc_temp in
18440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18442 \-*) ;;
18443 *) break;;
18444 esac
18445 done
18446 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18449 if test -n "$compiler"; then
18450 # We don't want -fno-exception when compiling C++ code, so set the
18451 # no_builtin_flag separately
18452 if test "$GXX" = yes; then
18453 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18454 else
18455 lt_prog_compiler_no_builtin_flag_CXX=
18458 if test "$GXX" = yes; then
18459 # Set up default GNU C++ configuration
18463 # Check whether --with-gnu-ld was given.
18464 if test "${with_gnu_ld+set}" = set; then :
18465 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18466 else
18467 with_gnu_ld=no
18470 ac_prog=ld
18471 if test "$GCC" = yes; then
18472 # Check if gcc -print-prog-name=ld gives a path.
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18474 $as_echo_n "checking for ld used by $CC... " >&6; }
18475 case $host in
18476 *-*-mingw*)
18477 # gcc leaves a trailing carriage return which upsets mingw
18478 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18480 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18481 esac
18482 case $ac_prog in
18483 # Accept absolute paths.
18484 [\\/]* | ?:[\\/]*)
18485 re_direlt='/[^/][^/]*/\.\./'
18486 # Canonicalize the pathname of ld
18487 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18488 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18489 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18490 done
18491 test -z "$LD" && LD="$ac_prog"
18494 # If it fails, then pretend we aren't using GCC.
18495 ac_prog=ld
18498 # If it is relative, then search for the first ld in PATH.
18499 with_gnu_ld=unknown
18501 esac
18502 elif test "$with_gnu_ld" = yes; then
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18504 $as_echo_n "checking for GNU ld... " >&6; }
18505 else
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18507 $as_echo_n "checking for non-GNU ld... " >&6; }
18509 if test "${lt_cv_path_LD+set}" = set; then :
18510 $as_echo_n "(cached) " >&6
18511 else
18512 if test -z "$LD"; then
18513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18514 for ac_dir in $PATH; do
18515 IFS="$lt_save_ifs"
18516 test -z "$ac_dir" && ac_dir=.
18517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18518 lt_cv_path_LD="$ac_dir/$ac_prog"
18519 # Check to see if the program is GNU ld. I'd rather use --version,
18520 # but apparently some variants of GNU ld only accept -v.
18521 # Break only if it was the GNU/non-GNU ld that we prefer.
18522 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18523 *GNU* | *'with BFD'*)
18524 test "$with_gnu_ld" != no && break
18527 test "$with_gnu_ld" != yes && break
18529 esac
18531 done
18532 IFS="$lt_save_ifs"
18533 else
18534 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18538 LD="$lt_cv_path_LD"
18539 if test -n "$LD"; then
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18541 $as_echo "$LD" >&6; }
18542 else
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18544 $as_echo "no" >&6; }
18546 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18548 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18549 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18550 $as_echo_n "(cached) " >&6
18551 else
18552 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18553 case `$LD -v 2>&1 </dev/null` in
18554 *GNU* | *'with BFD'*)
18555 lt_cv_prog_gnu_ld=yes
18558 lt_cv_prog_gnu_ld=no
18560 esac
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18563 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18564 with_gnu_ld=$lt_cv_prog_gnu_ld
18572 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18573 # archiving commands below assume that GNU ld is being used.
18574 if test "$with_gnu_ld" = yes; then
18575 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18576 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'
18578 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18581 # If archive_cmds runs LD, not CC, wlarc should be empty
18582 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18583 # investigate it a little bit more. (MM)
18584 wlarc='${wl}'
18586 # ancient GNU ld didn't support --whole-archive et. al.
18587 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18588 $GREP 'no-whole-archive' > /dev/null; then
18589 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18590 else
18591 whole_archive_flag_spec_CXX=
18593 else
18594 with_gnu_ld=no
18595 wlarc=
18597 # A generic and very simple default shared library creation
18598 # command for GNU C++ for the case where it uses the native
18599 # linker, instead of GNU ld. If possible, this setting should
18600 # overridden to take advantage of the native linker features on
18601 # the platform it is being used on.
18602 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18605 # Commands to make compiler produce verbose output that lists
18606 # what "hidden" libraries, object files and flags are used when
18607 # linking a shared library.
18608 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18610 else
18611 GXX=no
18612 with_gnu_ld=no
18613 wlarc=
18616 # PORTME: fill in a description of your system's C++ link characteristics
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18618 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18619 ld_shlibs_CXX=yes
18620 case $host_os in
18621 aix3*)
18622 # FIXME: insert proper C++ library support
18623 ld_shlibs_CXX=no
18625 aix[4-9]*)
18626 if test "$host_cpu" = ia64; then
18627 # On IA64, the linker does run time linking by default, so we don't
18628 # have to do anything special.
18629 aix_use_runtimelinking=no
18630 exp_sym_flag='-Bexport'
18631 no_entry_flag=""
18632 else
18633 aix_use_runtimelinking=no
18635 # Test if we are trying to use run time linking or normal
18636 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18637 # need to do runtime linking.
18638 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18639 for ld_flag in $LDFLAGS; do
18640 case $ld_flag in
18641 *-brtl*)
18642 aix_use_runtimelinking=yes
18643 break
18645 esac
18646 done
18648 esac
18650 exp_sym_flag='-bexport'
18651 no_entry_flag='-bnoentry'
18654 # When large executables or shared objects are built, AIX ld can
18655 # have problems creating the table of contents. If linking a library
18656 # or program results in "error TOC overflow" add -mminimal-toc to
18657 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18658 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18660 archive_cmds_CXX=''
18661 hardcode_direct_CXX=yes
18662 hardcode_direct_absolute_CXX=yes
18663 hardcode_libdir_separator_CXX=':'
18664 link_all_deplibs_CXX=yes
18665 file_list_spec_CXX='${wl}-f,'
18667 if test "$GXX" = yes; then
18668 case $host_os in aix4.[012]|aix4.[012].*)
18669 # We only want to do this on AIX 4.2 and lower, the check
18670 # below for broken collect2 doesn't work under 4.3+
18671 collect2name=`${CC} -print-prog-name=collect2`
18672 if test -f "$collect2name" &&
18673 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18674 then
18675 # We have reworked collect2
18677 else
18678 # We have old collect2
18679 hardcode_direct_CXX=unsupported
18680 # It fails to find uninstalled libraries when the uninstalled
18681 # path is not listed in the libpath. Setting hardcode_minus_L
18682 # to unsupported forces relinking
18683 hardcode_minus_L_CXX=yes
18684 hardcode_libdir_flag_spec_CXX='-L$libdir'
18685 hardcode_libdir_separator_CXX=
18687 esac
18688 shared_flag='-shared'
18689 if test "$aix_use_runtimelinking" = yes; then
18690 shared_flag="$shared_flag "'${wl}-G'
18692 else
18693 # not using gcc
18694 if test "$host_cpu" = ia64; then
18695 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18696 # chokes on -Wl,-G. The following line is correct:
18697 shared_flag='-G'
18698 else
18699 if test "$aix_use_runtimelinking" = yes; then
18700 shared_flag='${wl}-G'
18701 else
18702 shared_flag='${wl}-bM:SRE'
18707 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18708 # It seems that -bexpall does not export symbols beginning with
18709 # underscore (_), so it is better to generate a list of symbols to
18710 # export.
18711 always_export_symbols_CXX=yes
18712 if test "$aix_use_runtimelinking" = yes; then
18713 # Warning - without using the other runtime loading flags (-brtl),
18714 # -berok will link without error, but may produce a broken library.
18715 allow_undefined_flag_CXX='-berok'
18716 # Determine the default libpath from the value encoded in an empty
18717 # executable.
18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719 /* end confdefs.h. */
18722 main ()
18726 return 0;
18728 _ACEOF
18729 if ac_fn_cxx_try_link "$LINENO"; then :
18731 lt_aix_libpath_sed='
18732 /Import File Strings/,/^$/ {
18733 /^0/ {
18734 s/^0 *\(.*\)$/\1/
18738 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18739 # Check for a 64-bit object if we didn't find anything.
18740 if test -z "$aix_libpath"; then
18741 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18744 rm -f core conftest.err conftest.$ac_objext \
18745 conftest$ac_exeext conftest.$ac_ext
18746 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18748 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18750 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"
18751 else
18752 if test "$host_cpu" = ia64; then
18753 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18754 allow_undefined_flag_CXX="-z nodefs"
18755 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"
18756 else
18757 # Determine the default libpath from the value encoded in an
18758 # empty executable.
18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18763 main ()
18767 return 0;
18769 _ACEOF
18770 if ac_fn_cxx_try_link "$LINENO"; then :
18772 lt_aix_libpath_sed='
18773 /Import File Strings/,/^$/ {
18774 /^0/ {
18775 s/^0 *\(.*\)$/\1/
18779 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18780 # Check for a 64-bit object if we didn't find anything.
18781 if test -z "$aix_libpath"; then
18782 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18785 rm -f core conftest.err conftest.$ac_objext \
18786 conftest$ac_exeext conftest.$ac_ext
18787 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18789 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18790 # Warning - without using the other run time loading flags,
18791 # -berok will link without error, but may produce a broken library.
18792 no_undefined_flag_CXX=' ${wl}-bernotok'
18793 allow_undefined_flag_CXX=' ${wl}-berok'
18794 if test "$with_gnu_ld" = yes; then
18795 # We only use this code for GNU lds that support --whole-archive.
18796 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18797 else
18798 # Exported symbols can be pulled into shared objects from archives
18799 whole_archive_flag_spec_CXX='$convenience'
18801 archive_cmds_need_lc_CXX=yes
18802 # This is similar to how AIX traditionally builds its shared
18803 # libraries.
18804 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'
18809 beos*)
18810 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18811 allow_undefined_flag_CXX=unsupported
18812 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18813 # support --undefined. This deserves some investigation. FIXME
18814 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18815 else
18816 ld_shlibs_CXX=no
18820 chorus*)
18821 case $cc_basename in
18823 # FIXME: insert proper C++ library support
18824 ld_shlibs_CXX=no
18826 esac
18829 cygwin* | mingw* | pw32* | cegcc*)
18830 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18831 # as there is no search path for DLLs.
18832 hardcode_libdir_flag_spec_CXX='-L$libdir'
18833 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18834 allow_undefined_flag_CXX=unsupported
18835 always_export_symbols_CXX=no
18836 enable_shared_with_static_runtimes_CXX=yes
18838 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18839 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'
18840 # If the export-symbols file already is a .def file (1st line
18841 # is EXPORTS), use it as is; otherwise, prepend...
18842 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18843 cp $export_symbols $output_objdir/$soname.def;
18844 else
18845 echo EXPORTS > $output_objdir/$soname.def;
18846 cat $export_symbols >> $output_objdir/$soname.def;
18848 $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'
18849 else
18850 ld_shlibs_CXX=no
18853 darwin* | rhapsody*)
18856 archive_cmds_need_lc_CXX=no
18857 hardcode_direct_CXX=no
18858 hardcode_automatic_CXX=yes
18859 hardcode_shlibpath_var_CXX=unsupported
18860 if test "$lt_cv_ld_force_load" = "yes"; then
18861 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\"`'
18862 else
18863 whole_archive_flag_spec_CXX=''
18865 link_all_deplibs_CXX=yes
18866 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18867 case $cc_basename in
18868 ifort*) _lt_dar_can_shared=yes ;;
18869 *) _lt_dar_can_shared=$GCC ;;
18870 esac
18871 if test "$_lt_dar_can_shared" = "yes"; then
18872 output_verbose_link_cmd=func_echo_all
18873 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}"
18874 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18875 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}"
18876 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}"
18877 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18878 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}"
18879 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}"
18882 else
18883 ld_shlibs_CXX=no
18888 dgux*)
18889 case $cc_basename in
18890 ec++*)
18891 # FIXME: insert proper C++ library support
18892 ld_shlibs_CXX=no
18894 ghcx*)
18895 # Green Hills C++ Compiler
18896 # FIXME: insert proper C++ library support
18897 ld_shlibs_CXX=no
18900 # FIXME: insert proper C++ library support
18901 ld_shlibs_CXX=no
18903 esac
18906 freebsd2.*)
18907 # C++ shared libraries reported to be fairly broken before
18908 # switch to ELF
18909 ld_shlibs_CXX=no
18912 freebsd-elf*)
18913 archive_cmds_need_lc_CXX=no
18916 freebsd* | dragonfly*)
18917 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18918 # conventions
18919 ld_shlibs_CXX=yes
18922 gnu*)
18925 haiku*)
18926 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18927 link_all_deplibs_CXX=yes
18930 hpux9*)
18931 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18932 hardcode_libdir_separator_CXX=:
18933 export_dynamic_flag_spec_CXX='${wl}-E'
18934 hardcode_direct_CXX=yes
18935 hardcode_minus_L_CXX=yes # Not in the search PATH,
18936 # but as the default
18937 # location of the library.
18939 case $cc_basename in
18940 CC*)
18941 # FIXME: insert proper C++ library support
18942 ld_shlibs_CXX=no
18944 aCC*)
18945 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'
18946 # Commands to make compiler produce verbose output that lists
18947 # what "hidden" libraries, object files and flags are used when
18948 # linking a shared library.
18950 # There doesn't appear to be a way to prevent this compiler from
18951 # explicitly linking system object files so we need to strip them
18952 # from the output so that they don't get included in the library
18953 # dependencies.
18954 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"'
18957 if test "$GXX" = yes; then
18958 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'
18959 else
18960 # FIXME: insert proper C++ library support
18961 ld_shlibs_CXX=no
18964 esac
18967 hpux10*|hpux11*)
18968 if test $with_gnu_ld = no; then
18969 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18970 hardcode_libdir_separator_CXX=:
18972 case $host_cpu in
18973 hppa*64*|ia64*)
18976 export_dynamic_flag_spec_CXX='${wl}-E'
18978 esac
18980 case $host_cpu in
18981 hppa*64*|ia64*)
18982 hardcode_direct_CXX=no
18983 hardcode_shlibpath_var_CXX=no
18986 hardcode_direct_CXX=yes
18987 hardcode_direct_absolute_CXX=yes
18988 hardcode_minus_L_CXX=yes # Not in the search PATH,
18989 # but as the default
18990 # location of the library.
18992 esac
18994 case $cc_basename in
18995 CC*)
18996 # FIXME: insert proper C++ library support
18997 ld_shlibs_CXX=no
18999 aCC*)
19000 case $host_cpu in
19001 hppa*64*)
19002 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19004 ia64*)
19005 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19008 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19010 esac
19011 # Commands to make compiler produce verbose output that lists
19012 # what "hidden" libraries, object files and flags are used when
19013 # linking a shared library.
19015 # There doesn't appear to be a way to prevent this compiler from
19016 # explicitly linking system object files so we need to strip them
19017 # from the output so that they don't get included in the library
19018 # dependencies.
19019 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"'
19022 if test "$GXX" = yes; then
19023 if test $with_gnu_ld = no; then
19024 case $host_cpu in
19025 hppa*64*)
19026 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19028 ia64*)
19029 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19032 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'
19034 esac
19036 else
19037 # FIXME: insert proper C++ library support
19038 ld_shlibs_CXX=no
19041 esac
19044 interix[3-9]*)
19045 hardcode_direct_CXX=no
19046 hardcode_shlibpath_var_CXX=no
19047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19048 export_dynamic_flag_spec_CXX='${wl}-E'
19049 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19050 # Instead, shared libraries are loaded at an image base (0x10000000 by
19051 # default) and relocated if they conflict, which is a slow very memory
19052 # consuming and fragmenting process. To avoid this, we pick a random,
19053 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19054 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19055 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'
19056 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'
19058 irix5* | irix6*)
19059 case $cc_basename in
19060 CC*)
19061 # SGI C++
19062 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'
19064 # Archives containing C++ object files must be created using
19065 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19066 # necessary to make sure instantiated templates are included
19067 # in the archive.
19068 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19071 if test "$GXX" = yes; then
19072 if test "$with_gnu_ld" = no; then
19073 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'
19074 else
19075 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'
19078 link_all_deplibs_CXX=yes
19080 esac
19081 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19082 hardcode_libdir_separator_CXX=:
19083 inherit_rpath_CXX=yes
19086 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19087 case $cc_basename in
19088 KCC*)
19089 # Kuck and Associates, Inc. (KAI) C++ Compiler
19091 # KCC will only create a shared library if the output file
19092 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19093 # to its proper name (with version) after linking.
19094 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'
19095 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'
19096 # Commands to make compiler produce verbose output that lists
19097 # what "hidden" libraries, object files and flags are used when
19098 # linking a shared library.
19100 # There doesn't appear to be a way to prevent this compiler from
19101 # explicitly linking system object files so we need to strip them
19102 # from the output so that they don't get included in the library
19103 # dependencies.
19104 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"'
19106 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19107 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19109 # Archives containing C++ object files must be created using
19110 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19111 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19113 icpc* | ecpc* )
19114 # Intel C++
19115 with_gnu_ld=yes
19116 # version 8.0 and above of icpc choke on multiply defined symbols
19117 # if we add $predep_objects and $postdep_objects, however 7.1 and
19118 # earlier do not add the objects themselves.
19119 case `$CC -V 2>&1` in
19120 *"Version 7."*)
19121 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19122 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'
19124 *) # Version 8.0 or newer
19125 tmp_idyn=
19126 case $host_cpu in
19127 ia64*) tmp_idyn=' -i_dynamic';;
19128 esac
19129 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19130 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'
19132 esac
19133 archive_cmds_need_lc_CXX=no
19134 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19135 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19136 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19138 pgCC* | pgcpp*)
19139 # Portland Group C++ compiler
19140 case `$CC -V` in
19141 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19142 prelink_cmds_CXX='tpldir=Template.dir~
19143 rm -rf $tpldir~
19144 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19145 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19146 old_archive_cmds_CXX='tpldir=Template.dir~
19147 rm -rf $tpldir~
19148 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19149 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19150 $RANLIB $oldlib'
19151 archive_cmds_CXX='tpldir=Template.dir~
19152 rm -rf $tpldir~
19153 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19154 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19155 archive_expsym_cmds_CXX='tpldir=Template.dir~
19156 rm -rf $tpldir~
19157 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19158 $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'
19160 *) # Version 6 and above use weak symbols
19161 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19162 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'
19164 esac
19166 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19167 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19168 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'
19170 cxx*)
19171 # Compaq C++
19172 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19173 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'
19175 runpath_var=LD_RUN_PATH
19176 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19177 hardcode_libdir_separator_CXX=:
19179 # Commands to make compiler produce verbose output that lists
19180 # what "hidden" libraries, object files and flags are used when
19181 # linking a shared library.
19183 # There doesn't appear to be a way to prevent this compiler from
19184 # explicitly linking system object files so we need to strip them
19185 # from the output so that they don't get included in the library
19186 # dependencies.
19187 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'
19189 xl* | mpixl* | bgxl*)
19190 # IBM XL 8.0 on PPC, with GNU ld
19191 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19192 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19193 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19194 if test "x$supports_anon_versioning" = xyes; then
19195 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19196 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19197 echo "local: *; };" >> $output_objdir/$libname.ver~
19198 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19202 case `$CC -V 2>&1 | sed 5q` in
19203 *Sun\ C*)
19204 # Sun C++ 5.9
19205 no_undefined_flag_CXX=' -zdefs'
19206 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19207 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'
19208 hardcode_libdir_flag_spec_CXX='-R$libdir'
19209 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'
19210 compiler_needs_object_CXX=yes
19212 # Not sure whether something based on
19213 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19214 # would be better.
19215 output_verbose_link_cmd='func_echo_all'
19217 # Archives containing C++ object files must be created using
19218 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19219 # necessary to make sure instantiated templates are included
19220 # in the archive.
19221 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19223 esac
19225 esac
19228 lynxos*)
19229 # FIXME: insert proper C++ library support
19230 ld_shlibs_CXX=no
19233 m88k*)
19234 # FIXME: insert proper C++ library support
19235 ld_shlibs_CXX=no
19238 mvs*)
19239 case $cc_basename in
19240 cxx*)
19241 # FIXME: insert proper C++ library support
19242 ld_shlibs_CXX=no
19245 # FIXME: insert proper C++ library support
19246 ld_shlibs_CXX=no
19248 esac
19251 netbsd*)
19252 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19253 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19254 wlarc=
19255 hardcode_libdir_flag_spec_CXX='-R$libdir'
19256 hardcode_direct_CXX=yes
19257 hardcode_shlibpath_var_CXX=no
19259 # Workaround some broken pre-1.5 toolchains
19260 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19263 *nto* | *qnx*)
19264 ld_shlibs_CXX=yes
19267 openbsd2*)
19268 # C++ shared libraries are fairly broken
19269 ld_shlibs_CXX=no
19272 openbsd*)
19273 if test -f /usr/libexec/ld.so; then
19274 hardcode_direct_CXX=yes
19275 hardcode_shlibpath_var_CXX=no
19276 hardcode_direct_absolute_CXX=yes
19277 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19278 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19279 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19280 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19281 export_dynamic_flag_spec_CXX='${wl}-E'
19282 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19284 output_verbose_link_cmd=func_echo_all
19285 else
19286 ld_shlibs_CXX=no
19290 osf3* | osf4* | osf5*)
19291 case $cc_basename in
19292 KCC*)
19293 # Kuck and Associates, Inc. (KAI) C++ Compiler
19295 # KCC will only create a shared library if the output file
19296 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19297 # to its proper name (with version) after linking.
19298 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'
19300 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19301 hardcode_libdir_separator_CXX=:
19303 # Archives containing C++ object files must be created using
19304 # the KAI C++ compiler.
19305 case $host in
19306 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19307 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19308 esac
19310 RCC*)
19311 # Rational C++ 2.4.1
19312 # FIXME: insert proper C++ library support
19313 ld_shlibs_CXX=no
19315 cxx*)
19316 case $host in
19317 osf3*)
19318 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19319 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'
19320 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19323 allow_undefined_flag_CXX=' -expect_unresolved \*'
19324 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'
19325 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19326 echo "-hidden">> $lib.exp~
19327 $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~
19328 $RM $lib.exp'
19329 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19331 esac
19333 hardcode_libdir_separator_CXX=:
19335 # Commands to make compiler produce verbose output that lists
19336 # what "hidden" libraries, object files and flags are used when
19337 # linking a shared library.
19339 # There doesn't appear to be a way to prevent this compiler from
19340 # explicitly linking system object files so we need to strip them
19341 # from the output so that they don't get included in the library
19342 # dependencies.
19343 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"'
19346 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19347 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19348 case $host in
19349 osf3*)
19350 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'
19353 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'
19355 esac
19357 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19358 hardcode_libdir_separator_CXX=:
19360 # Commands to make compiler produce verbose output that lists
19361 # what "hidden" libraries, object files and flags are used when
19362 # linking a shared library.
19363 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19365 else
19366 # FIXME: insert proper C++ library support
19367 ld_shlibs_CXX=no
19370 esac
19373 psos*)
19374 # FIXME: insert proper C++ library support
19375 ld_shlibs_CXX=no
19378 sunos4*)
19379 case $cc_basename in
19380 CC*)
19381 # Sun C++ 4.x
19382 # FIXME: insert proper C++ library support
19383 ld_shlibs_CXX=no
19385 lcc*)
19386 # Lucid
19387 # FIXME: insert proper C++ library support
19388 ld_shlibs_CXX=no
19391 # FIXME: insert proper C++ library support
19392 ld_shlibs_CXX=no
19394 esac
19397 solaris*)
19398 case $cc_basename in
19399 CC*)
19400 # Sun C++ 4.2, 5.x and Centerline C++
19401 archive_cmds_need_lc_CXX=yes
19402 no_undefined_flag_CXX=' -zdefs'
19403 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19404 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19405 $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'
19407 hardcode_libdir_flag_spec_CXX='-R$libdir'
19408 hardcode_shlibpath_var_CXX=no
19409 case $host_os in
19410 solaris2.[0-5] | solaris2.[0-5].*) ;;
19412 # The compiler driver will combine and reorder linker options,
19413 # but understands `-z linker_flag'.
19414 # Supported since Solaris 2.6 (maybe 2.5.1?)
19415 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19417 esac
19418 link_all_deplibs_CXX=yes
19420 output_verbose_link_cmd='func_echo_all'
19422 # Archives containing C++ object files must be created using
19423 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19424 # necessary to make sure instantiated templates are included
19425 # in the archive.
19426 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19428 gcx*)
19429 # Green Hills C++ Compiler
19430 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19432 # The C++ compiler must be used to create the archive.
19433 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19436 # GNU C++ compiler with Solaris linker
19437 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19438 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19439 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19440 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19441 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19442 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19444 # Commands to make compiler produce verbose output that lists
19445 # what "hidden" libraries, object files and flags are used when
19446 # linking a shared library.
19447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19448 else
19449 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19450 # platform.
19451 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19452 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19453 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19455 # Commands to make compiler produce verbose output that lists
19456 # what "hidden" libraries, object files and flags are used when
19457 # linking a shared library.
19458 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19461 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19462 case $host_os in
19463 solaris2.[0-5] | solaris2.[0-5].*) ;;
19465 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19467 esac
19470 esac
19473 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19474 no_undefined_flag_CXX='${wl}-z,text'
19475 archive_cmds_need_lc_CXX=no
19476 hardcode_shlibpath_var_CXX=no
19477 runpath_var='LD_RUN_PATH'
19479 case $cc_basename in
19480 CC*)
19481 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19482 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19485 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19486 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19488 esac
19491 sysv5* | sco3.2v5* | sco5v6*)
19492 # Note: We can NOT use -z defs as we might desire, because we do not
19493 # link with -lc, and that would cause any symbols used from libc to
19494 # always be unresolved, which means just about no library would
19495 # ever link correctly. If we're not using GNU ld we use -z text
19496 # though, which does catch some bad symbols but isn't as heavy-handed
19497 # as -z defs.
19498 no_undefined_flag_CXX='${wl}-z,text'
19499 allow_undefined_flag_CXX='${wl}-z,nodefs'
19500 archive_cmds_need_lc_CXX=no
19501 hardcode_shlibpath_var_CXX=no
19502 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19503 hardcode_libdir_separator_CXX=':'
19504 link_all_deplibs_CXX=yes
19505 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19506 runpath_var='LD_RUN_PATH'
19508 case $cc_basename in
19509 CC*)
19510 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19511 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19512 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19513 '"$old_archive_cmds_CXX"
19514 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19515 '"$reload_cmds_CXX"
19518 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19519 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19521 esac
19524 tandem*)
19525 case $cc_basename in
19526 NCC*)
19527 # NonStop-UX NCC 3.20
19528 # FIXME: insert proper C++ library support
19529 ld_shlibs_CXX=no
19532 # FIXME: insert proper C++ library support
19533 ld_shlibs_CXX=no
19535 esac
19538 vxworks*)
19539 # FIXME: insert proper C++ library support
19540 ld_shlibs_CXX=no
19544 # FIXME: insert proper C++ library support
19545 ld_shlibs_CXX=no
19547 esac
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19550 $as_echo "$ld_shlibs_CXX" >&6; }
19551 test "$ld_shlibs_CXX" = no && can_build_shared=no
19553 GCC_CXX="$GXX"
19554 LD_CXX="$LD"
19556 ## CAVEAT EMPTOR:
19557 ## There is no encapsulation within the following macros, do not change
19558 ## the running order or otherwise move them around unless you know exactly
19559 ## what you are doing...
19560 # Dependencies to place before and after the object being linked:
19561 predep_objects_CXX=
19562 postdep_objects_CXX=
19563 predeps_CXX=
19564 postdeps_CXX=
19565 compiler_lib_search_path_CXX=
19567 cat > conftest.$ac_ext <<_LT_EOF
19568 class Foo
19570 public:
19571 Foo (void) { a = 0; }
19572 private:
19573 int a;
19575 _LT_EOF
19577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19578 (eval $ac_compile) 2>&5
19579 ac_status=$?
19580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19581 test $ac_status = 0; }; then
19582 # Parse the compiler output and extract the necessary
19583 # objects, libraries and library flags.
19585 # Sentinel used to keep track of whether or not we are before
19586 # the conftest object file.
19587 pre_test_object_deps_done=no
19589 for p in `eval "$output_verbose_link_cmd"`; do
19590 case $p in
19592 -L* | -R* | -l*)
19593 # Some compilers place space between "-{L,R}" and the path.
19594 # Remove the space.
19595 if test $p = "-L" ||
19596 test $p = "-R"; then
19597 prev=$p
19598 continue
19599 else
19600 prev=
19603 if test "$pre_test_object_deps_done" = no; then
19604 case $p in
19605 -L* | -R*)
19606 # Internal compiler library paths should come after those
19607 # provided the user. The postdeps already come after the
19608 # user supplied libs so there is no need to process them.
19609 if test -z "$compiler_lib_search_path_CXX"; then
19610 compiler_lib_search_path_CXX="${prev}${p}"
19611 else
19612 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19615 # The "-l" case would never come before the object being
19616 # linked, so don't bother handling this case.
19617 esac
19618 else
19619 if test -z "$postdeps_CXX"; then
19620 postdeps_CXX="${prev}${p}"
19621 else
19622 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19627 *.$objext)
19628 # This assumes that the test object file only shows up
19629 # once in the compiler output.
19630 if test "$p" = "conftest.$objext"; then
19631 pre_test_object_deps_done=yes
19632 continue
19635 if test "$pre_test_object_deps_done" = no; then
19636 if test -z "$predep_objects_CXX"; then
19637 predep_objects_CXX="$p"
19638 else
19639 predep_objects_CXX="$predep_objects_CXX $p"
19641 else
19642 if test -z "$postdep_objects_CXX"; then
19643 postdep_objects_CXX="$p"
19644 else
19645 postdep_objects_CXX="$postdep_objects_CXX $p"
19650 *) ;; # Ignore the rest.
19652 esac
19653 done
19655 # Clean up.
19656 rm -f a.out a.exe
19657 else
19658 echo "libtool.m4: error: problem compiling CXX test program"
19661 $RM -f confest.$objext
19663 # PORTME: override above test on systems where it is broken
19664 case $host_os in
19665 interix[3-9]*)
19666 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19667 # hack all around it, let's just trust "g++" to DTRT.
19668 predep_objects_CXX=
19669 postdep_objects_CXX=
19670 postdeps_CXX=
19673 linux*)
19674 case `$CC -V 2>&1 | sed 5q` in
19675 *Sun\ C*)
19676 # Sun C++ 5.9
19678 # The more standards-conforming stlport4 library is
19679 # incompatible with the Cstd library. Avoid specifying
19680 # it if it's in CXXFLAGS. Ignore libCrun as
19681 # -library=stlport4 depends on it.
19682 case " $CXX $CXXFLAGS " in
19683 *" -library=stlport4 "*)
19684 solaris_use_stlport4=yes
19686 esac
19688 if test "$solaris_use_stlport4" != yes; then
19689 postdeps_CXX='-library=Cstd -library=Crun'
19692 esac
19695 solaris*)
19696 case $cc_basename in
19697 CC*)
19698 # The more standards-conforming stlport4 library is
19699 # incompatible with the Cstd library. Avoid specifying
19700 # it if it's in CXXFLAGS. Ignore libCrun as
19701 # -library=stlport4 depends on it.
19702 case " $CXX $CXXFLAGS " in
19703 *" -library=stlport4 "*)
19704 solaris_use_stlport4=yes
19706 esac
19708 # Adding this requires a known-good setup of shared libraries for
19709 # Sun compiler versions before 5.6, else PIC objects from an old
19710 # archive will be linked into the output, leading to subtle bugs.
19711 if test "$solaris_use_stlport4" != yes; then
19712 postdeps_CXX='-library=Cstd -library=Crun'
19715 esac
19717 esac
19720 case " $postdeps_CXX " in
19721 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19722 esac
19723 compiler_lib_search_dirs_CXX=
19724 if test -n "${compiler_lib_search_path_CXX}"; then
19725 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19758 lt_prog_compiler_wl_CXX=
19759 lt_prog_compiler_pic_CXX=
19760 lt_prog_compiler_static_CXX=
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19763 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19765 # C++ specific cases for pic, static, wl, etc.
19766 if test "$GXX" = yes; then
19767 lt_prog_compiler_wl_CXX='-Wl,'
19768 lt_prog_compiler_static_CXX='-static'
19770 case $host_os in
19771 aix*)
19772 # All AIX code is PIC.
19773 if test "$host_cpu" = ia64; then
19774 # AIX 5 now supports IA64 processor
19775 lt_prog_compiler_static_CXX='-Bstatic'
19777 lt_prog_compiler_pic_CXX='-fPIC'
19780 amigaos*)
19781 case $host_cpu in
19782 powerpc)
19783 # see comment about AmigaOS4 .so support
19784 lt_prog_compiler_pic_CXX='-fPIC'
19786 m68k)
19787 # FIXME: we need at least 68020 code to build shared libraries, but
19788 # adding the `-m68020' flag to GCC prevents building anything better,
19789 # like `-m68040'.
19790 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19792 esac
19795 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19796 # PIC is the default for these OSes.
19798 mingw* | cygwin* | os2* | pw32* | cegcc*)
19799 # This hack is so that the source file can tell whether it is being
19800 # built for inclusion in a dll (and should export symbols for example).
19801 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19802 # (--disable-auto-import) libraries
19803 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19805 darwin* | rhapsody*)
19806 # PIC is the default on this platform
19807 # Common symbols not allowed in MH_DYLIB files
19808 lt_prog_compiler_pic_CXX='-fno-common'
19810 *djgpp*)
19811 # DJGPP does not support shared libraries at all
19812 lt_prog_compiler_pic_CXX=
19814 haiku*)
19815 # PIC is the default for Haiku.
19816 # The "-static" flag exists, but is broken.
19817 lt_prog_compiler_static_CXX=
19819 interix[3-9]*)
19820 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19821 # Instead, we relocate shared libraries at runtime.
19823 sysv4*MP*)
19824 if test -d /usr/nec; then
19825 lt_prog_compiler_pic_CXX=-Kconform_pic
19828 hpux*)
19829 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19830 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19831 # sets the default TLS model and affects inlining.
19832 case $host_cpu in
19833 hppa*64*)
19836 lt_prog_compiler_pic_CXX='-fPIC'
19838 esac
19840 *qnx* | *nto*)
19841 # QNX uses GNU C++, but need to define -shared option too, otherwise
19842 # it will coredump.
19843 lt_prog_compiler_pic_CXX='-fPIC -shared'
19846 lt_prog_compiler_pic_CXX='-fPIC'
19848 esac
19849 else
19850 case $host_os in
19851 aix[4-9]*)
19852 # All AIX code is PIC.
19853 if test "$host_cpu" = ia64; then
19854 # AIX 5 now supports IA64 processor
19855 lt_prog_compiler_static_CXX='-Bstatic'
19856 else
19857 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19860 chorus*)
19861 case $cc_basename in
19862 cxch68*)
19863 # Green Hills C++ Compiler
19864 # _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"
19866 esac
19868 dgux*)
19869 case $cc_basename in
19870 ec++*)
19871 lt_prog_compiler_pic_CXX='-KPIC'
19873 ghcx*)
19874 # Green Hills C++ Compiler
19875 lt_prog_compiler_pic_CXX='-pic'
19879 esac
19881 freebsd* | dragonfly*)
19882 # FreeBSD uses GNU C++
19884 hpux9* | hpux10* | hpux11*)
19885 case $cc_basename in
19886 CC*)
19887 lt_prog_compiler_wl_CXX='-Wl,'
19888 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19889 if test "$host_cpu" != ia64; then
19890 lt_prog_compiler_pic_CXX='+Z'
19893 aCC*)
19894 lt_prog_compiler_wl_CXX='-Wl,'
19895 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19896 case $host_cpu in
19897 hppa*64*|ia64*)
19898 # +Z the default
19901 lt_prog_compiler_pic_CXX='+Z'
19903 esac
19907 esac
19909 interix*)
19910 # This is c89, which is MS Visual C++ (no shared libs)
19911 # Anyone wants to do a port?
19913 irix5* | irix6* | nonstopux*)
19914 case $cc_basename in
19915 CC*)
19916 lt_prog_compiler_wl_CXX='-Wl,'
19917 lt_prog_compiler_static_CXX='-non_shared'
19918 # CC pic flag -KPIC is the default.
19922 esac
19924 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19925 case $cc_basename in
19926 KCC*)
19927 # KAI C++ Compiler
19928 lt_prog_compiler_wl_CXX='--backend -Wl,'
19929 lt_prog_compiler_pic_CXX='-fPIC'
19931 ecpc* )
19932 # old Intel C++ for x86_64 which still supported -KPIC.
19933 lt_prog_compiler_wl_CXX='-Wl,'
19934 lt_prog_compiler_pic_CXX='-KPIC'
19935 lt_prog_compiler_static_CXX='-static'
19937 icpc* )
19938 # Intel C++, used to be incompatible with GCC.
19939 # ICC 10 doesn't accept -KPIC any more.
19940 lt_prog_compiler_wl_CXX='-Wl,'
19941 lt_prog_compiler_pic_CXX='-fPIC'
19942 lt_prog_compiler_static_CXX='-static'
19944 pgCC* | pgcpp*)
19945 # Portland Group C++ compiler
19946 lt_prog_compiler_wl_CXX='-Wl,'
19947 lt_prog_compiler_pic_CXX='-fpic'
19948 lt_prog_compiler_static_CXX='-Bstatic'
19950 cxx*)
19951 # Compaq C++
19952 # Make sure the PIC flag is empty. It appears that all Alpha
19953 # Linux and Compaq Tru64 Unix objects are PIC.
19954 lt_prog_compiler_pic_CXX=
19955 lt_prog_compiler_static_CXX='-non_shared'
19957 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19958 # IBM XL 8.0, 9.0 on PPC and BlueGene
19959 lt_prog_compiler_wl_CXX='-Wl,'
19960 lt_prog_compiler_pic_CXX='-qpic'
19961 lt_prog_compiler_static_CXX='-qstaticlink'
19964 case `$CC -V 2>&1 | sed 5q` in
19965 *Sun\ C*)
19966 # Sun C++ 5.9
19967 lt_prog_compiler_pic_CXX='-KPIC'
19968 lt_prog_compiler_static_CXX='-Bstatic'
19969 lt_prog_compiler_wl_CXX='-Qoption ld '
19971 esac
19973 esac
19975 lynxos*)
19977 m88k*)
19979 mvs*)
19980 case $cc_basename in
19981 cxx*)
19982 lt_prog_compiler_pic_CXX='-W c,exportall'
19986 esac
19988 netbsd*)
19990 *qnx* | *nto*)
19991 # QNX uses GNU C++, but need to define -shared option too, otherwise
19992 # it will coredump.
19993 lt_prog_compiler_pic_CXX='-fPIC -shared'
19995 osf3* | osf4* | osf5*)
19996 case $cc_basename in
19997 KCC*)
19998 lt_prog_compiler_wl_CXX='--backend -Wl,'
20000 RCC*)
20001 # Rational C++ 2.4.1
20002 lt_prog_compiler_pic_CXX='-pic'
20004 cxx*)
20005 # Digital/Compaq C++
20006 lt_prog_compiler_wl_CXX='-Wl,'
20007 # Make sure the PIC flag is empty. It appears that all Alpha
20008 # Linux and Compaq Tru64 Unix objects are PIC.
20009 lt_prog_compiler_pic_CXX=
20010 lt_prog_compiler_static_CXX='-non_shared'
20014 esac
20016 psos*)
20018 solaris*)
20019 case $cc_basename in
20020 CC*)
20021 # Sun C++ 4.2, 5.x and Centerline C++
20022 lt_prog_compiler_pic_CXX='-KPIC'
20023 lt_prog_compiler_static_CXX='-Bstatic'
20024 lt_prog_compiler_wl_CXX='-Qoption ld '
20026 gcx*)
20027 # Green Hills C++ Compiler
20028 lt_prog_compiler_pic_CXX='-PIC'
20032 esac
20034 sunos4*)
20035 case $cc_basename in
20036 CC*)
20037 # Sun C++ 4.x
20038 lt_prog_compiler_pic_CXX='-pic'
20039 lt_prog_compiler_static_CXX='-Bstatic'
20041 lcc*)
20042 # Lucid
20043 lt_prog_compiler_pic_CXX='-pic'
20047 esac
20049 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20050 case $cc_basename in
20051 CC*)
20052 lt_prog_compiler_wl_CXX='-Wl,'
20053 lt_prog_compiler_pic_CXX='-KPIC'
20054 lt_prog_compiler_static_CXX='-Bstatic'
20056 esac
20058 tandem*)
20059 case $cc_basename in
20060 NCC*)
20061 # NonStop-UX NCC 3.20
20062 lt_prog_compiler_pic_CXX='-KPIC'
20066 esac
20068 vxworks*)
20071 lt_prog_compiler_can_build_shared_CXX=no
20073 esac
20076 case $host_os in
20077 # For platforms which do not support PIC, -DPIC is meaningless:
20078 *djgpp*)
20079 lt_prog_compiler_pic_CXX=
20082 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20084 esac
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20086 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20091 # Check to make sure the PIC flag actually works.
20093 if test -n "$lt_prog_compiler_pic_CXX"; then
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20095 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20096 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20097 $as_echo_n "(cached) " >&6
20098 else
20099 lt_cv_prog_compiler_pic_works_CXX=no
20100 ac_outfile=conftest.$ac_objext
20101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20102 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20103 # Insert the option either (1) after the last *FLAGS variable, or
20104 # (2) before a word containing "conftest.", or (3) at the end.
20105 # Note that $ac_compile itself does not contain backslashes and begins
20106 # with a dollar sign (not a hyphen), so the echo should work correctly.
20107 # The option is referenced via a variable to avoid confusing sed.
20108 lt_compile=`echo "$ac_compile" | $SED \
20109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20111 -e 's:$: $lt_compiler_flag:'`
20112 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20113 (eval "$lt_compile" 2>conftest.err)
20114 ac_status=$?
20115 cat conftest.err >&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 if (exit $ac_status) && test -s "$ac_outfile"; then
20118 # The compiler can only warn and ignore the option if not recognized
20119 # So say no if there are warnings other than the usual output.
20120 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20122 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20123 lt_cv_prog_compiler_pic_works_CXX=yes
20126 $RM conftest*
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20130 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20132 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20133 case $lt_prog_compiler_pic_CXX in
20134 "" | " "*) ;;
20135 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20136 esac
20137 else
20138 lt_prog_compiler_pic_CXX=
20139 lt_prog_compiler_can_build_shared_CXX=no
20147 # Check to make sure the static flag actually works.
20149 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20151 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20152 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20153 $as_echo_n "(cached) " >&6
20154 else
20155 lt_cv_prog_compiler_static_works_CXX=no
20156 save_LDFLAGS="$LDFLAGS"
20157 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20158 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20159 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20160 # The linker can only warn and ignore the option if not recognized
20161 # So say no if there are warnings
20162 if test -s conftest.err; then
20163 # Append any errors to the config.log.
20164 cat conftest.err 1>&5
20165 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20167 if diff conftest.exp conftest.er2 >/dev/null; then
20168 lt_cv_prog_compiler_static_works_CXX=yes
20170 else
20171 lt_cv_prog_compiler_static_works_CXX=yes
20174 $RM -r conftest*
20175 LDFLAGS="$save_LDFLAGS"
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20179 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20181 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20183 else
20184 lt_prog_compiler_static_CXX=
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20191 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20192 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20193 $as_echo_n "(cached) " >&6
20194 else
20195 lt_cv_prog_compiler_c_o_CXX=no
20196 $RM -r conftest 2>/dev/null
20197 mkdir conftest
20198 cd conftest
20199 mkdir out
20200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20202 lt_compiler_flag="-o out/conftest2.$ac_objext"
20203 # Insert the option either (1) after the last *FLAGS variable, or
20204 # (2) before a word containing "conftest.", or (3) at the end.
20205 # Note that $ac_compile itself does not contain backslashes and begins
20206 # with a dollar sign (not a hyphen), so the echo should work correctly.
20207 lt_compile=`echo "$ac_compile" | $SED \
20208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20210 -e 's:$: $lt_compiler_flag:'`
20211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20212 (eval "$lt_compile" 2>out/conftest.err)
20213 ac_status=$?
20214 cat out/conftest.err >&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20217 then
20218 # The compiler can only warn and ignore the option if not recognized
20219 # So say no if there are warnings
20220 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20221 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20222 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20223 lt_cv_prog_compiler_c_o_CXX=yes
20226 chmod u+w . 2>&5
20227 $RM conftest*
20228 # SGI C++ compiler will create directory out/ii_files/ for
20229 # template instantiation
20230 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20231 $RM out/* && rmdir out
20232 cd ..
20233 $RM -r conftest
20234 $RM conftest*
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20238 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20243 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20244 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20245 $as_echo_n "(cached) " >&6
20246 else
20247 lt_cv_prog_compiler_c_o_CXX=no
20248 $RM -r conftest 2>/dev/null
20249 mkdir conftest
20250 cd conftest
20251 mkdir out
20252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20254 lt_compiler_flag="-o out/conftest2.$ac_objext"
20255 # Insert the option either (1) after the last *FLAGS variable, or
20256 # (2) before a word containing "conftest.", or (3) at the end.
20257 # Note that $ac_compile itself does not contain backslashes and begins
20258 # with a dollar sign (not a hyphen), so the echo should work correctly.
20259 lt_compile=`echo "$ac_compile" | $SED \
20260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20262 -e 's:$: $lt_compiler_flag:'`
20263 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20264 (eval "$lt_compile" 2>out/conftest.err)
20265 ac_status=$?
20266 cat out/conftest.err >&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20269 then
20270 # The compiler can only warn and ignore the option if not recognized
20271 # So say no if there are warnings
20272 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20273 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20274 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20275 lt_cv_prog_compiler_c_o_CXX=yes
20278 chmod u+w . 2>&5
20279 $RM conftest*
20280 # SGI C++ compiler will create directory out/ii_files/ for
20281 # template instantiation
20282 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20283 $RM out/* && rmdir out
20284 cd ..
20285 $RM -r conftest
20286 $RM conftest*
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20290 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20295 hard_links="nottested"
20296 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20297 # do not overwrite the value of need_locks provided by the user
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20299 $as_echo_n "checking if we can lock with hard links... " >&6; }
20300 hard_links=yes
20301 $RM conftest*
20302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20303 touch conftest.a
20304 ln conftest.a conftest.b 2>&5 || hard_links=no
20305 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20307 $as_echo "$hard_links" >&6; }
20308 if test "$hard_links" = no; then
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20310 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20311 need_locks=warn
20313 else
20314 need_locks=no
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20320 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20322 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20323 case $host_os in
20324 aix[4-9]*)
20325 # If we're using GNU nm, then we don't want the "-C" option.
20326 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20327 # Also, AIX nm treats weak defined symbols like other global defined
20328 # symbols, whereas GNU nm marks them as "W".
20329 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20330 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'
20331 else
20332 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'
20335 pw32*)
20336 export_symbols_cmds_CXX="$ltdll_cmds"
20338 cygwin* | mingw* | cegcc*)
20339 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'
20342 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20344 esac
20345 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20348 $as_echo "$ld_shlibs_CXX" >&6; }
20349 test "$ld_shlibs_CXX" = no && can_build_shared=no
20351 with_gnu_ld_CXX=$with_gnu_ld
20359 # Do we need to explicitly link libc?
20361 case "x$archive_cmds_need_lc_CXX" in
20362 x|xyes)
20363 # Assume -lc should be added
20364 archive_cmds_need_lc_CXX=yes
20366 if test "$enable_shared" = yes && test "$GCC" = yes; then
20367 case $archive_cmds_CXX in
20368 *'~'*)
20369 # FIXME: we may have to deal with multi-command sequences.
20371 '$CC '*)
20372 # Test whether the compiler implicitly links with -lc since on some
20373 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20374 # to ld, don't add -lc before -lgcc.
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20376 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20377 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20378 $as_echo_n "(cached) " >&6
20379 else
20380 $RM conftest*
20381 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20384 (eval $ac_compile) 2>&5
20385 ac_status=$?
20386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20387 test $ac_status = 0; } 2>conftest.err; then
20388 soname=conftest
20389 lib=conftest
20390 libobjs=conftest.$ac_objext
20391 deplibs=
20392 wl=$lt_prog_compiler_wl_CXX
20393 pic_flag=$lt_prog_compiler_pic_CXX
20394 compiler_flags=-v
20395 linker_flags=-v
20396 verstring=
20397 output_objdir=.
20398 libname=conftest
20399 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20400 allow_undefined_flag_CXX=
20401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20402 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20403 ac_status=$?
20404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20405 test $ac_status = 0; }
20406 then
20407 lt_cv_archive_cmds_need_lc_CXX=no
20408 else
20409 lt_cv_archive_cmds_need_lc_CXX=yes
20411 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20412 else
20413 cat conftest.err 1>&5
20415 $RM conftest*
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20419 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20420 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20422 esac
20425 esac
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20491 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20493 library_names_spec=
20494 libname_spec='lib$name'
20495 soname_spec=
20496 shrext_cmds=".so"
20497 postinstall_cmds=
20498 postuninstall_cmds=
20499 finish_cmds=
20500 finish_eval=
20501 shlibpath_var=
20502 shlibpath_overrides_runpath=unknown
20503 version_type=none
20504 dynamic_linker="$host_os ld.so"
20505 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20506 need_lib_prefix=unknown
20507 hardcode_into_libs=no
20509 # when you set need_version to no, make sure it does not cause -set_version
20510 # flags to be left without arguments
20511 need_version=unknown
20513 case $host_os in
20514 aix3*)
20515 version_type=linux
20516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20517 shlibpath_var=LIBPATH
20519 # AIX 3 has no versioning support, so we append a major version to the name.
20520 soname_spec='${libname}${release}${shared_ext}$major'
20523 aix[4-9]*)
20524 version_type=linux
20525 need_lib_prefix=no
20526 need_version=no
20527 hardcode_into_libs=yes
20528 if test "$host_cpu" = ia64; then
20529 # AIX 5 supports IA64
20530 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20531 shlibpath_var=LD_LIBRARY_PATH
20532 else
20533 # With GCC up to 2.95.x, collect2 would create an import file
20534 # for dependence libraries. The import file would start with
20535 # the line `#! .'. This would cause the generated library to
20536 # depend on `.', always an invalid library. This was fixed in
20537 # development snapshots of GCC prior to 3.0.
20538 case $host_os in
20539 aix4 | aix4.[01] | aix4.[01].*)
20540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20541 echo ' yes '
20542 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20544 else
20545 can_build_shared=no
20548 esac
20549 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20550 # soname into executable. Probably we can add versioning support to
20551 # collect2, so additional links can be useful in future.
20552 if test "$aix_use_runtimelinking" = yes; then
20553 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20554 # instead of lib<name>.a to let people know that these are not
20555 # typical AIX shared libraries.
20556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20557 else
20558 # We preserve .a as extension for shared libraries through AIX4.2
20559 # and later when we are not doing run time linking.
20560 library_names_spec='${libname}${release}.a $libname.a'
20561 soname_spec='${libname}${release}${shared_ext}$major'
20563 shlibpath_var=LIBPATH
20567 amigaos*)
20568 case $host_cpu in
20569 powerpc)
20570 # Since July 2007 AmigaOS4 officially supports .so libraries.
20571 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20574 m68k)
20575 library_names_spec='$libname.ixlibrary $libname.a'
20576 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20577 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'
20579 esac
20582 beos*)
20583 library_names_spec='${libname}${shared_ext}'
20584 dynamic_linker="$host_os ld.so"
20585 shlibpath_var=LIBRARY_PATH
20588 bsdi[45]*)
20589 version_type=linux
20590 need_version=no
20591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20592 soname_spec='${libname}${release}${shared_ext}$major'
20593 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20594 shlibpath_var=LD_LIBRARY_PATH
20595 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20596 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20597 # the default ld.so.conf also contains /usr/contrib/lib and
20598 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20599 # libtool to hard-code these into programs
20602 cygwin* | mingw* | pw32* | cegcc*)
20603 version_type=windows
20604 shrext_cmds=".dll"
20605 need_version=no
20606 need_lib_prefix=no
20608 case $GCC,$host_os in
20609 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20610 library_names_spec='$libname.dll.a'
20611 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20612 postinstall_cmds='base_file=`basename \${file}`~
20613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20614 dldir=$destdir/`dirname \$dlpath`~
20615 test -d \$dldir || mkdir -p \$dldir~
20616 $install_prog $dir/$dlname \$dldir/$dlname~
20617 chmod a+x \$dldir/$dlname~
20618 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20619 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20621 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20622 dlpath=$dir/\$dldll~
20623 $RM \$dlpath'
20624 shlibpath_overrides_runpath=yes
20626 case $host_os in
20627 cygwin*)
20628 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20629 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20632 mingw* | cegcc*)
20633 # MinGW DLLs use traditional 'lib' prefix
20634 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20636 pw32*)
20637 # pw32 DLLs use 'pw' prefix rather than 'lib'
20638 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20640 esac
20644 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20646 esac
20647 dynamic_linker='Win32 ld.exe'
20648 # FIXME: first we should search . and the directory the executable is in
20649 shlibpath_var=PATH
20652 darwin* | rhapsody*)
20653 dynamic_linker="$host_os dyld"
20654 version_type=darwin
20655 need_lib_prefix=no
20656 need_version=no
20657 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20658 soname_spec='${libname}${release}${major}$shared_ext'
20659 shlibpath_overrides_runpath=yes
20660 shlibpath_var=DYLD_LIBRARY_PATH
20661 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20663 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20666 dgux*)
20667 version_type=linux
20668 need_lib_prefix=no
20669 need_version=no
20670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20671 soname_spec='${libname}${release}${shared_ext}$major'
20672 shlibpath_var=LD_LIBRARY_PATH
20675 freebsd* | dragonfly*)
20676 # DragonFly does not have aout. When/if they implement a new
20677 # versioning mechanism, adjust this.
20678 if test -x /usr/bin/objformat; then
20679 objformat=`/usr/bin/objformat`
20680 else
20681 case $host_os in
20682 freebsd[23].*) objformat=aout ;;
20683 *) objformat=elf ;;
20684 esac
20686 version_type=freebsd-$objformat
20687 case $version_type in
20688 freebsd-elf*)
20689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20690 need_version=no
20691 need_lib_prefix=no
20693 freebsd-*)
20694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20695 need_version=yes
20697 esac
20698 shlibpath_var=LD_LIBRARY_PATH
20699 case $host_os in
20700 freebsd2.*)
20701 shlibpath_overrides_runpath=yes
20703 freebsd3.[01]* | freebsdelf3.[01]*)
20704 shlibpath_overrides_runpath=yes
20705 hardcode_into_libs=yes
20707 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20708 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20709 shlibpath_overrides_runpath=no
20710 hardcode_into_libs=yes
20712 *) # from 4.6 on, and DragonFly
20713 shlibpath_overrides_runpath=yes
20714 hardcode_into_libs=yes
20716 esac
20719 gnu*)
20720 version_type=linux
20721 need_lib_prefix=no
20722 need_version=no
20723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20724 soname_spec='${libname}${release}${shared_ext}$major'
20725 shlibpath_var=LD_LIBRARY_PATH
20726 hardcode_into_libs=yes
20729 haiku*)
20730 version_type=linux
20731 need_lib_prefix=no
20732 need_version=no
20733 dynamic_linker="$host_os runtime_loader"
20734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20735 soname_spec='${libname}${release}${shared_ext}$major'
20736 shlibpath_var=LIBRARY_PATH
20737 shlibpath_overrides_runpath=yes
20738 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20739 hardcode_into_libs=yes
20742 hpux9* | hpux10* | hpux11*)
20743 # Give a soname corresponding to the major version so that dld.sl refuses to
20744 # link against other versions.
20745 version_type=sunos
20746 need_lib_prefix=no
20747 need_version=no
20748 case $host_cpu in
20749 ia64*)
20750 shrext_cmds='.so'
20751 hardcode_into_libs=yes
20752 dynamic_linker="$host_os dld.so"
20753 shlibpath_var=LD_LIBRARY_PATH
20754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20756 soname_spec='${libname}${release}${shared_ext}$major'
20757 if test "X$HPUX_IA64_MODE" = X32; then
20758 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20759 else
20760 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20764 hppa*64*)
20765 shrext_cmds='.sl'
20766 hardcode_into_libs=yes
20767 dynamic_linker="$host_os dld.sl"
20768 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20769 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20771 soname_spec='${libname}${release}${shared_ext}$major'
20772 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20776 shrext_cmds='.sl'
20777 dynamic_linker="$host_os dld.sl"
20778 shlibpath_var=SHLIB_PATH
20779 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20781 soname_spec='${libname}${release}${shared_ext}$major'
20783 esac
20784 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20785 postinstall_cmds='chmod 555 $lib'
20786 # or fails outright, so override atomically:
20787 install_override_mode=555
20790 interix[3-9]*)
20791 version_type=linux
20792 need_lib_prefix=no
20793 need_version=no
20794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20795 soname_spec='${libname}${release}${shared_ext}$major'
20796 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20797 shlibpath_var=LD_LIBRARY_PATH
20798 shlibpath_overrides_runpath=no
20799 hardcode_into_libs=yes
20802 irix5* | irix6* | nonstopux*)
20803 case $host_os in
20804 nonstopux*) version_type=nonstopux ;;
20806 if test "$lt_cv_prog_gnu_ld" = yes; then
20807 version_type=linux
20808 else
20809 version_type=irix
20810 fi ;;
20811 esac
20812 need_lib_prefix=no
20813 need_version=no
20814 soname_spec='${libname}${release}${shared_ext}$major'
20815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20816 case $host_os in
20817 irix5* | nonstopux*)
20818 libsuff= shlibsuff=
20821 case $LD in # libtool.m4 will add one of these switches to LD
20822 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20823 libsuff= shlibsuff= libmagic=32-bit;;
20824 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20825 libsuff=32 shlibsuff=N32 libmagic=N32;;
20826 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20827 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20828 *) libsuff= shlibsuff= libmagic=never-match;;
20829 esac
20831 esac
20832 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20833 shlibpath_overrides_runpath=no
20834 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20835 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20836 hardcode_into_libs=yes
20839 # No shared lib support for Linux oldld, aout, or coff.
20840 linux*oldld* | linux*aout* | linux*coff*)
20841 dynamic_linker=no
20844 # This must be Linux ELF.
20845 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20846 version_type=linux
20847 need_lib_prefix=no
20848 need_version=no
20849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20850 soname_spec='${libname}${release}${shared_ext}$major'
20851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20852 shlibpath_var=LD_LIBRARY_PATH
20853 shlibpath_overrides_runpath=no
20855 # Some binutils ld are patched to set DT_RUNPATH
20856 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20857 $as_echo_n "(cached) " >&6
20858 else
20859 lt_cv_shlibpath_overrides_runpath=no
20860 save_LDFLAGS=$LDFLAGS
20861 save_libdir=$libdir
20862 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20863 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20865 /* end confdefs.h. */
20868 main ()
20872 return 0;
20874 _ACEOF
20875 if ac_fn_cxx_try_link "$LINENO"; then :
20876 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20877 lt_cv_shlibpath_overrides_runpath=yes
20880 rm -f core conftest.err conftest.$ac_objext \
20881 conftest$ac_exeext conftest.$ac_ext
20882 LDFLAGS=$save_LDFLAGS
20883 libdir=$save_libdir
20887 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20889 # This implies no fast_install, which is unacceptable.
20890 # Some rework will be needed to allow for fast_install
20891 # before this can be enabled.
20892 hardcode_into_libs=yes
20894 # Append ld.so.conf contents to the search path
20895 if test -f /etc/ld.so.conf; then
20896 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' ' '`
20897 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20900 # We used to test for /lib/ld.so.1 and disable shared libraries on
20901 # powerpc, because MkLinux only supported shared libraries with the
20902 # GNU dynamic linker. Since this was broken with cross compilers,
20903 # most powerpc-linux boxes support dynamic linking these days and
20904 # people can always --disable-shared, the test was removed, and we
20905 # assume the GNU/Linux dynamic linker is in use.
20906 dynamic_linker='GNU/Linux ld.so'
20909 netbsd*)
20910 version_type=sunos
20911 need_lib_prefix=no
20912 need_version=no
20913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20916 dynamic_linker='NetBSD (a.out) ld.so'
20917 else
20918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20919 soname_spec='${libname}${release}${shared_ext}$major'
20920 dynamic_linker='NetBSD ld.elf_so'
20922 shlibpath_var=LD_LIBRARY_PATH
20923 shlibpath_overrides_runpath=yes
20924 hardcode_into_libs=yes
20927 newsos6)
20928 version_type=linux
20929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20930 shlibpath_var=LD_LIBRARY_PATH
20931 shlibpath_overrides_runpath=yes
20934 *nto* | *qnx*)
20935 version_type=qnx
20936 need_lib_prefix=no
20937 need_version=no
20938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20939 soname_spec='${libname}${release}${shared_ext}$major'
20940 shlibpath_var=LD_LIBRARY_PATH
20941 shlibpath_overrides_runpath=no
20942 hardcode_into_libs=yes
20943 dynamic_linker='ldqnx.so'
20946 openbsd*)
20947 version_type=sunos
20948 sys_lib_dlsearch_path_spec="/usr/lib"
20949 need_lib_prefix=no
20950 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20951 case $host_os in
20952 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20953 *) need_version=no ;;
20954 esac
20955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20957 shlibpath_var=LD_LIBRARY_PATH
20958 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20959 case $host_os in
20960 openbsd2.[89] | openbsd2.[89].*)
20961 shlibpath_overrides_runpath=no
20964 shlibpath_overrides_runpath=yes
20966 esac
20967 else
20968 shlibpath_overrides_runpath=yes
20972 os2*)
20973 libname_spec='$name'
20974 shrext_cmds=".dll"
20975 need_lib_prefix=no
20976 library_names_spec='$libname${shared_ext} $libname.a'
20977 dynamic_linker='OS/2 ld.exe'
20978 shlibpath_var=LIBPATH
20981 osf3* | osf4* | osf5*)
20982 version_type=osf
20983 need_lib_prefix=no
20984 need_version=no
20985 soname_spec='${libname}${release}${shared_ext}$major'
20986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20987 shlibpath_var=LD_LIBRARY_PATH
20988 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20989 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20992 rdos*)
20993 dynamic_linker=no
20996 solaris*)
20997 version_type=linux
20998 need_lib_prefix=no
20999 need_version=no
21000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21001 soname_spec='${libname}${release}${shared_ext}$major'
21002 shlibpath_var=LD_LIBRARY_PATH
21003 shlibpath_overrides_runpath=yes
21004 hardcode_into_libs=yes
21005 # ldd complains unless libraries are executable
21006 postinstall_cmds='chmod +x $lib'
21009 sunos4*)
21010 version_type=sunos
21011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21012 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21013 shlibpath_var=LD_LIBRARY_PATH
21014 shlibpath_overrides_runpath=yes
21015 if test "$with_gnu_ld" = yes; then
21016 need_lib_prefix=no
21018 need_version=yes
21021 sysv4 | sysv4.3*)
21022 version_type=linux
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 case $host_vendor in
21027 sni)
21028 shlibpath_overrides_runpath=no
21029 need_lib_prefix=no
21030 runpath_var=LD_RUN_PATH
21032 siemens)
21033 need_lib_prefix=no
21035 motorola)
21036 need_lib_prefix=no
21037 need_version=no
21038 shlibpath_overrides_runpath=no
21039 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21041 esac
21044 sysv4*MP*)
21045 if test -d /usr/nec ;then
21046 version_type=linux
21047 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21048 soname_spec='$libname${shared_ext}.$major'
21049 shlibpath_var=LD_LIBRARY_PATH
21053 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21054 version_type=freebsd-elf
21055 need_lib_prefix=no
21056 need_version=no
21057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21058 soname_spec='${libname}${release}${shared_ext}$major'
21059 shlibpath_var=LD_LIBRARY_PATH
21060 shlibpath_overrides_runpath=yes
21061 hardcode_into_libs=yes
21062 if test "$with_gnu_ld" = yes; then
21063 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21064 else
21065 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21066 case $host_os in
21067 sco3.2v5*)
21068 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21070 esac
21072 sys_lib_dlsearch_path_spec='/usr/lib'
21075 tpf*)
21076 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21077 version_type=linux
21078 need_lib_prefix=no
21079 need_version=no
21080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21081 shlibpath_var=LD_LIBRARY_PATH
21082 shlibpath_overrides_runpath=no
21083 hardcode_into_libs=yes
21086 uts4*)
21087 version_type=linux
21088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21089 soname_spec='${libname}${release}${shared_ext}$major'
21090 shlibpath_var=LD_LIBRARY_PATH
21094 dynamic_linker=no
21096 esac
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21098 $as_echo "$dynamic_linker" >&6; }
21099 test "$dynamic_linker" = no && can_build_shared=no
21101 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21102 if test "$GCC" = yes; then
21103 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21106 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21107 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21109 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21110 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21151 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21152 hardcode_action_CXX=
21153 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21154 test -n "$runpath_var_CXX" ||
21155 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21157 # We can hardcode non-existent directories.
21158 if test "$hardcode_direct_CXX" != no &&
21159 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21160 # have to relink, otherwise we might link with an installed library
21161 # when we should be linking with a yet-to-be-installed one
21162 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21163 test "$hardcode_minus_L_CXX" != no; then
21164 # Linking always hardcodes the temporary library directory.
21165 hardcode_action_CXX=relink
21166 else
21167 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21168 hardcode_action_CXX=immediate
21170 else
21171 # We cannot hardcode anything, or else we can only hardcode existing
21172 # directories.
21173 hardcode_action_CXX=unsupported
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21176 $as_echo "$hardcode_action_CXX" >&6; }
21178 if test "$hardcode_action_CXX" = relink ||
21179 test "$inherit_rpath_CXX" = yes; then
21180 # Fast installation is not supported
21181 enable_fast_install=no
21182 elif test "$shlibpath_overrides_runpath" = yes ||
21183 test "$enable_shared" = no; then
21184 # Fast installation is not necessary
21185 enable_fast_install=needless
21194 fi # test -n "$compiler"
21196 CC=$lt_save_CC
21197 LDCXX=$LD
21198 LD=$lt_save_LD
21199 GCC=$lt_save_GCC
21200 with_gnu_ld=$lt_save_with_gnu_ld
21201 lt_cv_path_LDCXX=$lt_cv_path_LD
21202 lt_cv_path_LD=$lt_save_path_LD
21203 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21204 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21205 fi # test "$_lt_caught_CXX_error" != yes
21207 ac_ext=c
21208 ac_cpp='$CPP $CPPFLAGS'
21209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21228 # Only expand once:
21234 # Identify the assembler which will work hand-in-glove with the newly
21235 # built GCC, so that we can examine its features. This is the assembler
21236 # which will be driven by the driver program.
21238 # If build != host, and we aren't building gas in-tree, we identify a
21239 # build->target assembler and hope that it will have the same features
21240 # as the host->target assembler we'll be using.
21241 gcc_cv_gas_major_version=
21242 gcc_cv_gas_minor_version=
21243 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21245 if test "${gcc_cv_as+set}" = set; then :
21247 else
21249 if test -x "$DEFAULT_ASSEMBLER"; then
21250 gcc_cv_as="$DEFAULT_ASSEMBLER"
21251 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21252 && test -f ../gas/Makefile \
21253 && test x$build = x$host; then
21254 gcc_cv_as=../gas/as-new$build_exeext
21255 elif test -x as$build_exeext; then
21256 # Build using assembler in the current directory.
21257 gcc_cv_as=./as$build_exeext
21258 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21259 gcc_cv_as="$AS_FOR_TARGET"
21260 else
21261 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21262 set dummy $AS_FOR_TARGET; ac_word=$2
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21264 $as_echo_n "checking for $ac_word... " >&6; }
21265 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21266 $as_echo_n "(cached) " >&6
21267 else
21268 case $gcc_cv_as in
21269 [\\/]* | ?:[\\/]*)
21270 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21274 for as_dir in $PATH
21276 IFS=$as_save_IFS
21277 test -z "$as_dir" && as_dir=.
21278 for ac_exec_ext in '' $ac_executable_extensions; do
21279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21280 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21282 break 2
21284 done
21285 done
21286 IFS=$as_save_IFS
21289 esac
21291 gcc_cv_as=$ac_cv_path_gcc_cv_as
21292 if test -n "$gcc_cv_as"; then
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21294 $as_echo "$gcc_cv_as" >&6; }
21295 else
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21297 $as_echo "no" >&6; }
21304 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21306 case "$ORIGINAL_AS_FOR_TARGET" in
21307 ./as | ./as$build_exeext) ;;
21308 *) ac_config_files="$ac_config_files as:exec-tool.in"
21310 esac
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21313 $as_echo_n "checking what assembler to use... " >&6; }
21314 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21315 # Single tree build which includes gas. We want to prefer it
21316 # over whatever linker top-level may have detected, since
21317 # we'll use what we're building after installation anyway.
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21319 $as_echo "newly built gas" >&6; }
21320 in_tree_gas=yes
21321 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21322 for f in $gcc_cv_as_bfd_srcdir/configure \
21323 $gcc_cv_as_gas_srcdir/configure \
21324 $gcc_cv_as_gas_srcdir/configure.in \
21325 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21326 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21327 if test x$gcc_cv_gas_version != x; then
21328 break
21330 done
21331 case $gcc_cv_gas_version in
21332 VERSION=[0-9]*) ;;
21333 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21334 esac
21335 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21336 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21337 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21338 case $gcc_cv_gas_patch_version in
21339 "") gcc_cv_gas_patch_version="0" ;;
21340 esac
21341 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21342 + $gcc_cv_gas_minor_version \) \* 1000 \
21343 + $gcc_cv_gas_patch_version`
21345 in_tree_gas_is_elf=no
21346 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21347 || (grep 'obj_format = multi' ../gas/Makefile \
21348 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21349 then
21350 in_tree_gas_is_elf=yes
21352 else
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21354 $as_echo "$gcc_cv_as" >&6; }
21355 in_tree_gas=no
21358 # Identify the linker which will work hand-in-glove with the newly
21359 # built GCC, so that we can examine its features. This is the linker
21360 # which will be driven by the driver program.
21362 # If build != host, and we aren't building gas in-tree, we identify a
21363 # build->target linker and hope that it will have the same features
21364 # as the host->target linker we'll be using.
21365 gcc_cv_gld_major_version=
21366 gcc_cv_gld_minor_version=
21367 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21368 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21370 if test "${gcc_cv_ld+set}" = set; then :
21372 else
21374 if test -x "$DEFAULT_LINKER"; then
21375 gcc_cv_ld="$DEFAULT_LINKER"
21376 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21377 && test -f ../ld/Makefile \
21378 && test x$build = x$host; then
21379 gcc_cv_ld=../ld/ld-new$build_exeext
21380 elif test -x collect-ld$build_exeext; then
21381 # Build using linker in the current directory.
21382 gcc_cv_ld=./collect-ld$build_exeext
21383 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21384 gcc_cv_ld="$LD_FOR_TARGET"
21385 else
21386 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21387 set dummy $LD_FOR_TARGET; ac_word=$2
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21389 $as_echo_n "checking for $ac_word... " >&6; }
21390 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21391 $as_echo_n "(cached) " >&6
21392 else
21393 case $gcc_cv_ld in
21394 [\\/]* | ?:[\\/]*)
21395 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21399 for as_dir in $PATH
21401 IFS=$as_save_IFS
21402 test -z "$as_dir" && as_dir=.
21403 for ac_exec_ext in '' $ac_executable_extensions; do
21404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21405 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21407 break 2
21409 done
21410 done
21411 IFS=$as_save_IFS
21414 esac
21416 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21417 if test -n "$gcc_cv_ld"; then
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21419 $as_echo "$gcc_cv_ld" >&6; }
21420 else
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21422 $as_echo "no" >&6; }
21429 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21430 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21431 # if the PLUGIN_LD is set ld-new, just have it as ld
21432 # as that is the installed named.
21433 if test x$PLUGIN_LD_SUFFIX = xld-new \
21434 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21435 PLUGIN_LD_SUFFIX=ld
21438 # Check whether --with-plugin-ld was given.
21439 if test "${with_plugin_ld+set}" = set; then :
21440 withval=$with_plugin_ld; if test x"$withval" != x; then
21441 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21442 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21448 cat >>confdefs.h <<_ACEOF
21449 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21450 _ACEOF
21453 # Check to see if we are using gold instead of ld
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21455 $as_echo_n "checking whether we are using gold... " >&6; }
21456 ld_is_gold=no
21457 if test x$gcc_cv_ld != x; then
21458 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21459 | grep "GNU gold" > /dev/null; then
21460 ld_is_gold=yes
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21464 $as_echo "$ld_is_gold" >&6; }
21466 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21468 case "$ORIGINAL_LD_FOR_TARGET" in
21469 ./collect-ld | ./collect-ld$build_exeext) ;;
21470 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21472 esac
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21475 $as_echo_n "checking what linker to use... " >&6; }
21476 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21477 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21478 # Single tree build which includes ld. We want to prefer it
21479 # over whatever linker top-level may have detected, since
21480 # we'll use what we're building after installation anyway.
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21482 $as_echo "newly built ld" >&6; }
21483 in_tree_ld=yes
21484 in_tree_ld_is_elf=no
21485 if (grep 'EMUL = .*elf' ../ld/Makefile \
21486 || grep 'EMUL = .*linux' ../ld/Makefile \
21487 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21488 in_tree_ld_is_elf=yes
21489 elif test "$ld_is_gold" = yes; then
21490 in_tree_ld_is_elf=yes
21492 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
21494 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21495 if test x$gcc_cv_gld_version != x; then
21496 break
21498 done
21499 case $gcc_cv_gld_version in
21500 VERSION=[0-9]*) ;;
21501 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21502 esac
21503 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21504 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21505 else
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21507 $as_echo "$gcc_cv_ld" >&6; }
21508 in_tree_ld=no
21511 # Figure out what nm we will be using.
21512 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21513 if test "${gcc_cv_nm+set}" = set; then :
21515 else
21517 if test -f $gcc_cv_binutils_srcdir/configure.in \
21518 && test -f ../binutils/Makefile \
21519 && test x$build = x$host; then
21520 gcc_cv_nm=../binutils/nm-new$build_exeext
21521 elif test -x nm$build_exeext; then
21522 gcc_cv_nm=./nm$build_exeext
21523 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21524 gcc_cv_nm="$NM_FOR_TARGET"
21525 else
21526 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21527 set dummy $NM_FOR_TARGET; ac_word=$2
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21529 $as_echo_n "checking for $ac_word... " >&6; }
21530 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21531 $as_echo_n "(cached) " >&6
21532 else
21533 case $gcc_cv_nm in
21534 [\\/]* | ?:[\\/]*)
21535 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21539 for as_dir in $PATH
21541 IFS=$as_save_IFS
21542 test -z "$as_dir" && as_dir=.
21543 for ac_exec_ext in '' $ac_executable_extensions; do
21544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21545 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21547 break 2
21549 done
21550 done
21551 IFS=$as_save_IFS
21554 esac
21556 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21557 if test -n "$gcc_cv_nm"; then
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21559 $as_echo "$gcc_cv_nm" >&6; }
21560 else
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21562 $as_echo "no" >&6; }
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21570 $as_echo_n "checking what nm to use... " >&6; }
21571 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21572 # Single tree build which includes binutils.
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21574 $as_echo "newly built nm" >&6; }
21575 in_tree_nm=yes
21576 else
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21578 $as_echo "$gcc_cv_nm" >&6; }
21579 in_tree_nm=no
21582 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21584 case "$ORIGINAL_NM_FOR_TARGET" in
21585 ./nm | ./nm$build_exeext) ;;
21586 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21588 esac
21591 # Figure out what objdump we will be using.
21592 if test "${gcc_cv_objdump+set}" = set; then :
21594 else
21596 if test -f $gcc_cv_binutils_srcdir/configure.in \
21597 && test -f ../binutils/Makefile \
21598 && test x$build = x$host; then
21599 # Single tree build which includes binutils.
21600 gcc_cv_objdump=../binutils/objdump$build_exeext
21601 elif test -x objdump$build_exeext; then
21602 gcc_cv_objdump=./objdump$build_exeext
21603 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21604 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21605 else
21606 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21607 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21609 $as_echo_n "checking for $ac_word... " >&6; }
21610 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21611 $as_echo_n "(cached) " >&6
21612 else
21613 case $gcc_cv_objdump in
21614 [\\/]* | ?:[\\/]*)
21615 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21619 for as_dir in $PATH
21621 IFS=$as_save_IFS
21622 test -z "$as_dir" && as_dir=.
21623 for ac_exec_ext in '' $ac_executable_extensions; do
21624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21625 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21627 break 2
21629 done
21630 done
21631 IFS=$as_save_IFS
21634 esac
21636 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21637 if test -n "$gcc_cv_objdump"; then
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21639 $as_echo "$gcc_cv_objdump" >&6; }
21640 else
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21642 $as_echo "no" >&6; }
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21650 $as_echo_n "checking what objdump to use... " >&6; }
21651 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21652 # Single tree build which includes binutils.
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21654 $as_echo "newly built objdump" >&6; }
21655 elif test x$gcc_cv_objdump = x; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21657 $as_echo "not found" >&6; }
21658 else
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21660 $as_echo "$gcc_cv_objdump" >&6; }
21663 # Figure out what readelf we will be using.
21664 if test "${gcc_cv_readelf+set}" = set; then :
21666 else
21668 if test -f $gcc_cv_binutils_srcdir/configure.in \
21669 && test -f ../binutils/Makefile \
21670 && test x$build = x$host; then
21671 # Single tree build which includes binutils.
21672 gcc_cv_readelf=../binutils/readelf$build_exeext
21673 elif test -x readelf$build_exeext; then
21674 gcc_cv_readelf=./readelf$build_exeext
21675 else
21676 # Extract the first word of "readelf", so it can be a program name with args.
21677 set dummy readelf; ac_word=$2
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21679 $as_echo_n "checking for $ac_word... " >&6; }
21680 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21681 $as_echo_n "(cached) " >&6
21682 else
21683 case $gcc_cv_readelf in
21684 [\\/]* | ?:[\\/]*)
21685 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21689 for as_dir in $PATH
21691 IFS=$as_save_IFS
21692 test -z "$as_dir" && as_dir=.
21693 for ac_exec_ext in '' $ac_executable_extensions; do
21694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21695 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21697 break 2
21699 done
21700 done
21701 IFS=$as_save_IFS
21704 esac
21706 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21707 if test -n "$gcc_cv_readelf"; then
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21709 $as_echo "$gcc_cv_readelf" >&6; }
21710 else
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21712 $as_echo "no" >&6; }
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21720 $as_echo_n "checking what readelf to use... " >&6; }
21721 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21722 # Single tree build which includes binutils.
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21724 $as_echo "newly built readelf" >&6; }
21725 elif test x$gcc_cv_readelf = x; then
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21727 $as_echo "not found" >&6; }
21728 else
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21730 $as_echo "$gcc_cv_readelf" >&6; }
21733 # Figure out what assembler alignment features are present.
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21735 $as_echo_n "checking assembler flags... " >&6; }
21736 if test "${gcc_cv_as_flags+set}" = set; then :
21737 $as_echo_n "(cached) " >&6
21738 else
21739 case "$target" in
21740 i[34567]86-*-linux*)
21741 gcc_cv_as_flags="--32"
21743 powerpc*-*-darwin*)
21744 gcc_cv_as_flags="-arch ppc"
21747 gcc_cv_as_flags=" "
21749 esac
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21752 $as_echo "$gcc_cv_as_flags" >&6; }
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21755 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21756 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21757 $as_echo_n "(cached) " >&6
21758 else
21759 gcc_cv_as_balign_and_p2align=no
21760 if test $in_tree_gas = yes; then
21761 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21762 then gcc_cv_as_balign_and_p2align=yes
21764 elif test x$gcc_cv_as != x; then
21765 $as_echo '.balign 4
21766 .p2align 2' > conftest.s
21767 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21769 (eval $ac_try) 2>&5
21770 ac_status=$?
21771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21772 test $ac_status = 0; }; }
21773 then
21774 gcc_cv_as_balign_and_p2align=yes
21775 else
21776 echo "configure: failed program was" >&5
21777 cat conftest.s >&5
21779 rm -f conftest.o conftest.s
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21783 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21784 if test $gcc_cv_as_balign_and_p2align = yes; then
21786 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21791 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21792 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21793 $as_echo_n "(cached) " >&6
21794 else
21795 gcc_cv_as_max_skip_p2align=no
21796 if test $in_tree_gas = yes; then
21797 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21798 then gcc_cv_as_max_skip_p2align=yes
21800 elif test x$gcc_cv_as != x; then
21801 $as_echo '.p2align 4,,7' > conftest.s
21802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21804 (eval $ac_try) 2>&5
21805 ac_status=$?
21806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21807 test $ac_status = 0; }; }
21808 then
21809 gcc_cv_as_max_skip_p2align=yes
21810 else
21811 echo "configure: failed program was" >&5
21812 cat conftest.s >&5
21814 rm -f conftest.o conftest.s
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21818 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21819 if test $gcc_cv_as_max_skip_p2align = yes; then
21821 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21826 $as_echo_n "checking assembler for .literal16... " >&6; }
21827 if test "${gcc_cv_as_literal16+set}" = set; then :
21828 $as_echo_n "(cached) " >&6
21829 else
21830 gcc_cv_as_literal16=no
21831 if test $in_tree_gas = yes; then
21832 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21833 then gcc_cv_as_literal16=yes
21835 elif test x$gcc_cv_as != x; then
21836 $as_echo '.literal16' > conftest.s
21837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21839 (eval $ac_try) 2>&5
21840 ac_status=$?
21841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21842 test $ac_status = 0; }; }
21843 then
21844 gcc_cv_as_literal16=yes
21845 else
21846 echo "configure: failed program was" >&5
21847 cat conftest.s >&5
21849 rm -f conftest.o conftest.s
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21853 $as_echo "$gcc_cv_as_literal16" >&6; }
21854 if test $gcc_cv_as_literal16 = yes; then
21856 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21861 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21862 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21863 $as_echo_n "(cached) " >&6
21864 else
21865 gcc_cv_as_subsection_m1=no
21866 if test $in_tree_gas = yes; then
21867 if test $in_tree_gas_is_elf = yes \
21868 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21869 then gcc_cv_as_subsection_m1=yes
21871 elif test x$gcc_cv_as != x; then
21872 $as_echo 'conftest_label1: .word 0
21873 .subsection -1
21874 conftest_label2: .word 0
21875 .previous' > conftest.s
21876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21878 (eval $ac_try) 2>&5
21879 ac_status=$?
21880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21881 test $ac_status = 0; }; }
21882 then
21883 if test x$gcc_cv_nm != x; then
21884 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21885 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21886 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21887 then :
21888 else gcc_cv_as_subsection_m1=yes
21890 rm -f conftest.nm1 conftest.nm2
21892 else
21893 echo "configure: failed program was" >&5
21894 cat conftest.s >&5
21896 rm -f conftest.o conftest.s
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21900 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21901 if test $gcc_cv_as_subsection_m1 = yes; then
21903 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21908 $as_echo_n "checking assembler for .weak... " >&6; }
21909 if test "${gcc_cv_as_weak+set}" = set; then :
21910 $as_echo_n "(cached) " >&6
21911 else
21912 gcc_cv_as_weak=no
21913 if test $in_tree_gas = yes; then
21914 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21915 then gcc_cv_as_weak=yes
21917 elif test x$gcc_cv_as != x; then
21918 $as_echo ' .weak foobar' > conftest.s
21919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21921 (eval $ac_try) 2>&5
21922 ac_status=$?
21923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21924 test $ac_status = 0; }; }
21925 then
21926 gcc_cv_as_weak=yes
21927 else
21928 echo "configure: failed program was" >&5
21929 cat conftest.s >&5
21931 rm -f conftest.o conftest.s
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21935 $as_echo "$gcc_cv_as_weak" >&6; }
21936 if test $gcc_cv_as_weak = yes; then
21938 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21943 $as_echo_n "checking assembler for .weakref... " >&6; }
21944 if test "${gcc_cv_as_weakref+set}" = set; then :
21945 $as_echo_n "(cached) " >&6
21946 else
21947 gcc_cv_as_weakref=no
21948 if test $in_tree_gas = yes; then
21949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21950 then gcc_cv_as_weakref=yes
21952 elif test x$gcc_cv_as != x; then
21953 $as_echo ' .weakref foobar, barfnot' > conftest.s
21954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21956 (eval $ac_try) 2>&5
21957 ac_status=$?
21958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21959 test $ac_status = 0; }; }
21960 then
21961 gcc_cv_as_weakref=yes
21962 else
21963 echo "configure: failed program was" >&5
21964 cat conftest.s >&5
21966 rm -f conftest.o conftest.s
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21970 $as_echo "$gcc_cv_as_weakref" >&6; }
21971 if test $gcc_cv_as_weakref = yes; then
21973 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21978 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21979 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21980 $as_echo_n "(cached) " >&6
21981 else
21982 gcc_cv_as_nsubspa_comdat=no
21983 if test $in_tree_gas = yes; then
21984 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21985 then gcc_cv_as_nsubspa_comdat=yes
21987 elif test x$gcc_cv_as != x; then
21988 $as_echo ' .SPACE $TEXT$
21989 .NSUBSPA $CODE$,COMDAT' > conftest.s
21990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21992 (eval $ac_try) 2>&5
21993 ac_status=$?
21994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21995 test $ac_status = 0; }; }
21996 then
21997 gcc_cv_as_nsubspa_comdat=yes
21998 else
21999 echo "configure: failed program was" >&5
22000 cat conftest.s >&5
22002 rm -f conftest.o conftest.s
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22006 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22007 if test $gcc_cv_as_nsubspa_comdat = yes; then
22009 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22013 # .hidden needs to be supported in both the assembler and the linker,
22014 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22015 # This is irritatingly difficult to feature test for; we have to check the
22016 # date string after the version number. If we've got an in-tree
22017 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22018 # to be safe.
22019 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22021 $as_echo_n "checking assembler for .hidden... " >&6; }
22022 if test "${gcc_cv_as_hidden+set}" = set; then :
22023 $as_echo_n "(cached) " >&6
22024 else
22025 gcc_cv_as_hidden=no
22026 if test $in_tree_gas = yes; then
22027 if test $in_tree_gas_is_elf = yes \
22028 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22029 then gcc_cv_as_hidden=yes
22031 elif test x$gcc_cv_as != x; then
22032 $as_echo ' .hidden foobar
22033 foobar:' > conftest.s
22034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22036 (eval $ac_try) 2>&5
22037 ac_status=$?
22038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22039 test $ac_status = 0; }; }
22040 then
22042 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22043 # STV_HIDDEN, so disable .hidden support if so.
22044 case "${target}" in
22045 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22046 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22047 cat > conftest.s <<EOF
22048 .globl hidden
22049 .hidden hidden
22050 hidden:
22051 .globl default
22052 .set default,hidden
22054 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22055 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22056 grep '\.hidden default' > /dev/null; then
22057 gcc_cv_as_hidden=no
22058 else
22059 gcc_cv_as_hidden=yes
22061 else
22062 # Assume bug is present if objdump is missing.
22063 gcc_cv_as_hidden=no
22067 gcc_cv_as_hidden=yes
22069 esac
22070 else
22071 echo "configure: failed program was" >&5
22072 cat conftest.s >&5
22074 rm -f conftest.o conftest.s
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22078 $as_echo "$gcc_cv_as_hidden" >&6; }
22080 case "${target}" in
22081 *-*-darwin*)
22082 # Darwin as has some visibility support, though with a different syntax.
22083 gcc_cv_as_hidden=yes
22085 esac
22087 # gnu_indirect_function type is an extension proposed at
22088 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22089 # selection of function implementation
22090 # Check whether --enable-gnu-indirect-function was given.
22091 if test "${enable_gnu_indirect_function+set}" = set; then :
22092 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22093 yes | no) ;;
22094 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22095 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22096 esac
22097 else
22098 enable_gnu_indirect_function="$default_gnu_indirect_function"
22102 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22104 cat >>confdefs.h <<_ACEOF
22105 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22106 _ACEOF
22110 if test $in_tree_ld != yes ; then
22111 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22112 if echo "$ld_ver" | grep GNU > /dev/null; then
22113 if test x"$ld_is_gold" = xyes; then
22114 # GNU gold --version looks like this:
22116 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22118 # We extract the binutils version which is more familiar and specific
22119 # than the gold version.
22120 ld_vers=`echo $ld_ver | sed -n \
22121 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22122 else
22123 # GNU ld --version looks like this:
22125 # GNU ld (GNU Binutils) 2.21.51.20110225
22126 ld_vers=`echo $ld_ver | sed -n \
22127 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22129 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'`
22130 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22131 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22132 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22133 else
22134 case "${target}" in
22135 *-*-solaris2*)
22136 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22137 # format.
22139 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22140 # /usr/ccs/bin/ld has been configured.
22141 ld_ver=`$gcc_cv_ld -V 2>&1`
22142 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22143 ld_vers=`echo $ld_ver | sed -n \
22144 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22145 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22146 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22149 esac
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22154 $as_echo_n "checking linker for .hidden support... " >&6; }
22155 if test "${gcc_cv_ld_hidden+set}" = set; then :
22156 $as_echo_n "(cached) " >&6
22157 else
22158 if test $in_tree_ld = yes ; then
22159 gcc_cv_ld_hidden=no
22160 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 \
22161 && test $in_tree_ld_is_elf = yes; then
22162 gcc_cv_ld_hidden=yes
22164 else
22165 gcc_cv_ld_hidden=yes
22166 if test x"$ld_is_gold" = xyes; then
22168 elif echo "$ld_ver" | grep GNU > /dev/null; then
22169 case "${target}" in
22170 mmix-knuth-mmixware)
22171 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22172 gcc_cv_ld_hidden=no
22174 esac
22175 if test 0"$ld_date" -lt 20020404; then
22176 if test -n "$ld_date"; then
22177 # If there was date string, but was earlier than 2002-04-04, fail
22178 gcc_cv_ld_hidden=no
22179 elif test -z "$ld_vers"; then
22180 # If there was no date string nor ld version number, something is wrong
22181 gcc_cv_ld_hidden=no
22182 else
22183 test -z "$ld_vers_patch" && ld_vers_patch=0
22184 if test "$ld_vers_major" -lt 2; then
22185 gcc_cv_ld_hidden=no
22186 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22187 gcc_cv_ld_hidden="no"
22188 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22189 gcc_cv_ld_hidden=no
22193 else
22194 case "${target}" in
22195 *-*-darwin*)
22196 # Darwin ld has some visibility support.
22197 gcc_cv_ld_hidden=yes
22199 hppa64*-*-hpux* | ia64*-*-hpux*)
22200 gcc_cv_ld_hidden=yes
22202 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22203 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22204 # .symbolic was only added in Solaris 9 12/02.
22205 gcc_cv_ld_hidden=yes
22208 gcc_cv_ld_hidden=no
22210 esac
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22215 $as_echo "$gcc_cv_ld_hidden" >&6; }
22216 libgcc_visibility=no
22219 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22220 libgcc_visibility=yes
22222 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22227 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22228 gcc_cv_ld_ro_rw_mix=unknown
22229 if test $in_tree_ld = yes ; then
22230 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 \
22231 && test $in_tree_ld_is_elf = yes; then
22232 gcc_cv_ld_ro_rw_mix=read-write
22234 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22235 echo '.section myfoosect, "a"' > conftest1.s
22236 echo '.section myfoosect, "aw"' > conftest2.s
22237 echo '.byte 1' >> conftest2.s
22238 echo '.section myfoosect, "a"' > conftest3.s
22239 echo '.byte 0' >> conftest3.s
22240 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22241 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22242 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22243 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22244 conftest2.o conftest3.o > /dev/null 2>&1; then
22245 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22246 | sed -e '/myfoosect/!d' -e N`
22247 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22248 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22249 gcc_cv_ld_ro_rw_mix=read-only
22250 else
22251 gcc_cv_ld_ro_rw_mix=read-write
22255 rm -f conftest.* conftest[123].*
22257 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22259 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22263 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22265 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22266 case "${target}" in
22267 *-*-solaris2*)
22269 # Solaris 2 ld -V output looks like this for a regular version:
22271 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22273 # but test versions add stuff at the end:
22275 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22277 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22278 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22279 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22280 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22281 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22282 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22285 esac
22288 # Check whether --enable-initfini-array was given.
22289 if test "${enable_initfini_array+set}" = set; then :
22290 enableval=$enable_initfini_array;
22291 else
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22294 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22295 if test "${gcc_cv_initfini_array+set}" = set; then :
22296 $as_echo_n "(cached) " >&6
22297 else
22298 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22299 case "${target}" in
22300 ia64-*)
22301 if test "$cross_compiling" = yes; then :
22302 gcc_cv_initfini_array=no
22303 else
22304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22305 /* end confdefs.h. */
22307 #ifndef __ELF__
22308 #error Not an ELF OS
22309 #endif
22310 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22311 if it can be used. */
22312 static int x = -1;
22313 int main (void) { return x; }
22314 int foo (void) { x = 0; }
22315 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22317 _ACEOF
22318 if ac_fn_c_try_run "$LINENO"; then :
22319 gcc_cv_initfini_array=yes
22320 else
22321 gcc_cv_initfini_array=no
22323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22324 conftest.$ac_objext conftest.beam conftest.$ac_ext
22328 gcc_cv_initfini_array=no
22329 if test $in_tree_ld = yes ; then
22330 if test "$gcc_cv_gld_major_version" -eq 2 \
22331 -a "$gcc_cv_gld_minor_version" -ge 22 \
22332 -o "$gcc_cv_gld_major_version" -gt 2 \
22333 && test $in_tree_ld_is_elf = yes; then
22334 gcc_cv_initfini_array=yes
22336 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22337 cat > conftest.s <<\EOF
22338 .section .dtors,"a",%progbits
22339 .balign 4
22340 .byte 'A', 'A', 'A', 'A'
22341 .section .ctors,"a",%progbits
22342 .balign 4
22343 .byte 'B', 'B', 'B', 'B'
22344 .section .fini_array.65530,"a",%progbits
22345 .balign 4
22346 .byte 'C', 'C', 'C', 'C'
22347 .section .init_array.65530,"a",%progbits
22348 .balign 4
22349 .byte 'D', 'D', 'D', 'D'
22350 .section .dtors.64528,"a",%progbits
22351 .balign 4
22352 .byte 'E', 'E', 'E', 'E'
22353 .section .ctors.64528,"a",%progbits
22354 .balign 4
22355 .byte 'F', 'F', 'F', 'F'
22356 .section .fini_array.01005,"a",%progbits
22357 .balign 4
22358 .byte 'G', 'G', 'G', 'G'
22359 .section .init_array.01005,"a",%progbits
22360 .balign 4
22361 .byte 'H', 'H', 'H', 'H'
22362 .text
22363 .globl _start
22364 _start:
22366 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22367 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22368 && $gcc_cv_objdump -s -j .init_array conftest \
22369 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22370 && $gcc_cv_objdump -s -j .fini_array conftest \
22371 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22372 gcc_cv_initfini_array=yes
22374 rm -f conftest conftest.*
22376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22377 /* end confdefs.h. */
22379 #ifndef __ELF__
22380 # error Not an ELF OS
22381 #endif
22382 #include <stdlib.h>
22383 #if defined __GLIBC_PREREQ
22384 # if __GLIBC_PREREQ (2, 4)
22385 # else
22386 # error GLIBC 2.4 required
22387 # endif
22388 #else
22389 # if defined __sun__ && defined __svr4__
22390 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22391 # else
22392 # error The C library not known to support .init_array/.fini_array
22393 # endif
22394 #endif
22396 _ACEOF
22397 if ac_fn_c_try_cpp "$LINENO"; then :
22399 else
22400 gcc_cv_initfini_array=no
22402 rm -f conftest.err conftest.$ac_ext;;
22403 esac
22404 else
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22406 $as_echo_n "checking cross compile... guessing... " >&6; }
22407 gcc_cv_initfini_array=no
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22411 $as_echo "$gcc_cv_initfini_array" >&6; }
22412 enable_initfini_array=$gcc_cv_initfini_array
22416 if test $enable_initfini_array = yes; then
22418 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22422 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22424 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22425 if test "${gcc_cv_as_leb128+set}" = set; then :
22426 $as_echo_n "(cached) " >&6
22427 else
22428 gcc_cv_as_leb128=no
22429 if test $in_tree_gas = yes; then
22430 if test $in_tree_gas_is_elf = yes \
22431 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22432 then gcc_cv_as_leb128=yes
22434 elif test x$gcc_cv_as != x; then
22435 $as_echo ' .data
22436 .uleb128 L2 - L1
22438 .uleb128 1280
22439 .sleb128 -1010
22440 L2:' > conftest.s
22441 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22443 (eval $ac_try) 2>&5
22444 ac_status=$?
22445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22446 test $ac_status = 0; }; }
22447 then
22448 # GAS versions before 2.11 do not support uleb128,
22449 # despite appearing to.
22450 # ??? There exists an elf-specific test that will crash
22451 # the assembler. Perhaps it's better to figure out whether
22452 # arbitrary sections are supported and try the test.
22453 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22454 if echo "$as_ver" | grep GNU > /dev/null; then
22455 as_vers=`echo $as_ver | sed -n \
22456 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22457 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22458 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22459 if test $as_major -eq 2 && test $as_minor -lt 11
22460 then :
22461 else gcc_cv_as_leb128=yes
22464 else
22465 echo "configure: failed program was" >&5
22466 cat conftest.s >&5
22468 rm -f conftest.o conftest.s
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22472 $as_echo "$gcc_cv_as_leb128" >&6; }
22473 if test $gcc_cv_as_leb128 = yes; then
22475 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22479 # Check if we have assembler support for unwind directives.
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22481 $as_echo_n "checking assembler for cfi directives... " >&6; }
22482 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22483 $as_echo_n "(cached) " >&6
22484 else
22485 gcc_cv_as_cfi_directive=no
22486 if test x$gcc_cv_as != x; then
22487 $as_echo ' .text
22488 .cfi_startproc
22489 .cfi_offset 0, 0
22490 .cfi_same_value 1
22491 .cfi_def_cfa 1, 2
22492 .cfi_escape 1, 2, 3, 4, 5
22493 .cfi_endproc' > conftest.s
22494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22496 (eval $ac_try) 2>&5
22497 ac_status=$?
22498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22499 test $ac_status = 0; }; }
22500 then
22501 case "$target" in
22502 *-*-solaris*)
22503 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22504 # read-only and read-write sections, we need to make sure that the
22505 # assembler used emits read-write .eh_frame sections.
22506 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22507 if test "x$gcc_cv_objdump" != x; then
22508 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22509 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22510 gcc_cv_as_cfi_directive=no
22511 else
22512 case "$target" in
22513 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22514 # On Solaris/x86, make sure that GCC and gas agree on using
22515 # read-only .eh_frame sections for 64-bit.
22516 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22517 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22518 sed -e /.eh_frame/!d -e N | \
22519 grep READONLY > /dev/null; then
22520 gcc_cv_as_cfi_directive=yes
22521 else
22522 gcc_cv_as_cfi_directive=no
22526 gcc_cv_as_cfi_directive=yes
22528 esac
22530 else
22531 # no objdump, err on the side of caution
22532 gcc_cv_as_cfi_directive=no
22534 else
22535 gcc_cv_as_cfi_directive=yes
22538 *-*-*)
22539 gcc_cv_as_cfi_directive=yes
22541 esac
22542 else
22543 echo "configure: failed program was" >&5
22544 cat conftest.s >&5
22546 rm -f conftest.o conftest.s
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22550 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22552 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22554 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22555 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22556 $as_echo_n "(cached) " >&6
22557 else
22558 gcc_cv_as_cfi_advance_working=no
22559 if test x$gcc_cv_as != x; then
22560 $as_echo ' .text
22561 .cfi_startproc
22562 .cfi_adjust_cfa_offset 64
22563 .skip 75040, 0
22564 .cfi_adjust_cfa_offset 128
22565 .cfi_endproc' > conftest.s
22566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22571 test $ac_status = 0; }; }
22572 then
22574 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22575 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22576 gcc_cv_as_cfi_advance_working=yes
22579 else
22580 echo "configure: failed program was" >&5
22581 cat conftest.s >&5
22583 rm -f conftest.o conftest.s
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22587 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22589 else
22590 # no objdump, err on the side of caution
22591 gcc_cv_as_cfi_advance_working=no
22595 cat >>confdefs.h <<_ACEOF
22596 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22597 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22598 _ACEOF
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22603 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22604 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22605 $as_echo_n "(cached) " >&6
22606 else
22607 gcc_cv_as_cfi_personality_directive=no
22608 if test x$gcc_cv_as != x; then
22609 $as_echo ' .text
22610 .cfi_startproc
22611 .cfi_personality 0, symbol
22612 .cfi_endproc' > conftest.s
22613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22615 (eval $ac_try) 2>&5
22616 ac_status=$?
22617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22618 test $ac_status = 0; }; }
22619 then
22620 gcc_cv_as_cfi_personality_directive=yes
22621 else
22622 echo "configure: failed program was" >&5
22623 cat conftest.s >&5
22625 rm -f conftest.o conftest.s
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22629 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22632 cat >>confdefs.h <<_ACEOF
22633 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22634 then echo 1; else echo 0; fi`
22635 _ACEOF
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22639 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22640 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22641 $as_echo_n "(cached) " >&6
22642 else
22643 gcc_cv_as_cfi_sections_directive=no
22644 if test x$gcc_cv_as != x; then
22645 $as_echo ' .text
22646 .cfi_sections .debug_frame, .eh_frame
22647 .cfi_startproc
22648 .cfi_endproc' > conftest.s
22649 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22651 (eval $ac_try) 2>&5
22652 ac_status=$?
22653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22654 test $ac_status = 0; }; }
22655 then
22656 case $target_os in
22657 win32 | pe | cygwin* | mingw32* | uwin*)
22658 # Need to check that we generated the correct relocation for the
22659 # .debug_frame section. This was fixed for binutils 2.21.
22660 gcc_cv_as_cfi_sections_directive=no
22661 if test "x$gcc_cv_objdump" != x; then
22662 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22663 grep secrel > /dev/null; then
22664 gcc_cv_as_cfi_sections_directive=yes
22669 gcc_cv_as_cfi_sections_directive=yes
22671 esac
22672 else
22673 echo "configure: failed program was" >&5
22674 cat conftest.s >&5
22676 rm -f conftest.o conftest.s
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22680 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22684 cat >>confdefs.h <<_ACEOF
22685 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22686 then echo 1; else echo 0; fi`
22687 _ACEOF
22690 # GAS versions up to and including 2.11.0 may mis-optimize
22691 # .eh_frame data.
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22693 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22694 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22695 $as_echo_n "(cached) " >&6
22696 else
22697 gcc_cv_as_eh_frame=no
22698 if test $in_tree_gas = yes; then
22699 if test $in_tree_gas_is_elf = yes \
22700 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22701 then gcc_cv_as_eh_frame=yes
22703 elif test x$gcc_cv_as != x; then
22704 $as_echo ' .text
22705 .LFB1:
22706 .4byte 0
22707 .L1:
22708 .4byte 0
22709 .LFE1:
22710 .section .eh_frame,"aw",@progbits
22711 __FRAME_BEGIN__:
22712 .4byte .LECIE1-.LSCIE1
22713 .LSCIE1:
22714 .4byte 0x0
22715 .byte 0x1
22716 .ascii "z\0"
22717 .byte 0x1
22718 .byte 0x78
22719 .byte 0x1a
22720 .byte 0x0
22721 .byte 0x4
22722 .4byte 1
22723 .p2align 1
22724 .LECIE1:
22725 .LSFDE1:
22726 .4byte .LEFDE1-.LASFDE1
22727 .LASFDE1:
22728 .4byte .LASFDE1-__FRAME_BEGIN__
22729 .4byte .LFB1
22730 .4byte .LFE1-.LFB1
22731 .byte 0x4
22732 .4byte .LFE1-.LFB1
22733 .byte 0x4
22734 .4byte .L1-.LFB1
22735 .LEFDE1:' > conftest.s
22736 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22738 (eval $ac_try) 2>&5
22739 ac_status=$?
22740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22741 test $ac_status = 0; }; }
22742 then
22743 cat > conftest.lit <<EOF
22744 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22745 0010 01000000 12000000 18000000 00000000 ................
22746 0020 08000000 04080000 0044 .........D
22748 cat > conftest.big <<EOF
22749 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22750 0010 00000001 00000012 00000018 00000000 ................
22751 0020 00000008 04000000 0844 .........D
22753 # If the assembler didn't choke, and we can objdump,
22754 # and we got the correct data, then succeed.
22755 # The text in the here-document typically retains its unix-style line
22756 # endings, while the output of objdump will use host line endings.
22757 # Therefore, use diff -b for the comparisons.
22758 if test x$gcc_cv_objdump != x \
22759 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22760 | tail -3 > conftest.got \
22761 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22762 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22763 then
22764 gcc_cv_as_eh_frame=yes
22765 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22767 (eval $ac_try) 2>&5
22768 ac_status=$?
22769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22770 test $ac_status = 0; }; }; then
22771 gcc_cv_as_eh_frame=buggy
22772 else
22773 # Uh oh, what do we do now?
22774 gcc_cv_as_eh_frame=no
22776 else
22777 echo "configure: failed program was" >&5
22778 cat conftest.s >&5
22780 rm -f conftest.o conftest.s
22783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22784 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22787 if test $gcc_cv_as_eh_frame = buggy; then
22789 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22794 $as_echo_n "checking assembler for section merging support... " >&6; }
22795 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22796 $as_echo_n "(cached) " >&6
22797 else
22798 gcc_cv_as_shf_merge=no
22799 if test $in_tree_gas = yes; then
22800 if test $in_tree_gas_is_elf = yes \
22801 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22802 then gcc_cv_as_shf_merge=yes
22804 elif test x$gcc_cv_as != x; then
22805 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22808 (eval $ac_try) 2>&5
22809 ac_status=$?
22810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22811 test $ac_status = 0; }; }
22812 then
22813 gcc_cv_as_shf_merge=yes
22814 else
22815 echo "configure: failed program was" >&5
22816 cat conftest.s >&5
22818 rm -f conftest.o conftest.s
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22822 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22824 if test $gcc_cv_as_shf_merge = no; then
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22826 $as_echo_n "checking assembler for section merging support... " >&6; }
22827 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22828 $as_echo_n "(cached) " >&6
22829 else
22830 gcc_cv_as_shf_merge=no
22831 if test $in_tree_gas = yes; then
22832 if test $in_tree_gas_is_elf = yes \
22833 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22834 then gcc_cv_as_shf_merge=yes
22836 elif test x$gcc_cv_as != x; then
22837 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22840 (eval $ac_try) 2>&5
22841 ac_status=$?
22842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22843 test $ac_status = 0; }; }
22844 then
22845 gcc_cv_as_shf_merge=yes
22846 else
22847 echo "configure: failed program was" >&5
22848 cat conftest.s >&5
22850 rm -f conftest.o conftest.s
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22854 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22858 cat >>confdefs.h <<_ACEOF
22859 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22860 _ACEOF
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22864 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22865 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22866 $as_echo_n "(cached) " >&6
22867 else
22868 gcc_cv_as_comdat_group=no
22869 if test $in_tree_gas = yes; then
22870 if test $in_tree_gas_is_elf = yes \
22871 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22872 then gcc_cv_as_comdat_group=yes
22874 elif test x$gcc_cv_as != x; then
22875 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22878 (eval $ac_try) 2>&5
22879 ac_status=$?
22880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22881 test $ac_status = 0; }; }
22882 then
22883 gcc_cv_as_comdat_group=yes
22884 else
22885 echo "configure: failed program was" >&5
22886 cat conftest.s >&5
22888 rm -f conftest.o conftest.s
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22892 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22894 if test $gcc_cv_as_comdat_group = yes; then
22895 gcc_cv_as_comdat_group_percent=no
22896 gcc_cv_as_comdat_group_group=no
22897 else
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22899 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22900 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22901 $as_echo_n "(cached) " >&6
22902 else
22903 gcc_cv_as_comdat_group_percent=no
22904 if test $in_tree_gas = yes; then
22905 if test $in_tree_gas_is_elf = yes \
22906 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22907 then gcc_cv_as_comdat_group_percent=yes
22909 elif test x$gcc_cv_as != x; then
22910 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22913 (eval $ac_try) 2>&5
22914 ac_status=$?
22915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22916 test $ac_status = 0; }; }
22917 then
22918 gcc_cv_as_comdat_group_percent=yes
22919 else
22920 echo "configure: failed program was" >&5
22921 cat conftest.s >&5
22923 rm -f conftest.o conftest.s
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22927 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22929 if test $gcc_cv_as_comdat_group_percent = yes; then
22930 gcc_cv_as_comdat_group_group=no
22931 else
22932 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22933 gcc_cv_as_comdat_group_group=no
22935 case "${target}" in
22936 # Sun as uses a completely different syntax.
22937 *-*-solaris2*)
22938 case "${target}" in
22939 sparc*-*-solaris2*)
22940 conftest_s='
22941 .group foo,".text%foo",#comdat
22942 .section ".text%foo", #alloc,#execinstr,#progbits
22943 .globl foo
22944 foo:
22947 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22948 conftest_s='
22949 .group foo,.text%foo,#comdat
22950 .section .text%foo, "ax", @progbits
22951 .globl foo
22952 foo:
22955 esac
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22957 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22958 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22959 $as_echo_n "(cached) " >&6
22960 else
22961 gcc_cv_as_comdat_group_group=no
22962 if test x$gcc_cv_as != x; then
22963 $as_echo "$conftest_s" > conftest.s
22964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22966 (eval $ac_try) 2>&5
22967 ac_status=$?
22968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22969 test $ac_status = 0; }; }
22970 then
22971 gcc_cv_as_comdat_group_group=yes
22972 else
22973 echo "configure: failed program was" >&5
22974 cat conftest.s >&5
22976 rm -f conftest.o conftest.s
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22980 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22983 esac
22986 if test x"$ld_is_gold" = xyes; then
22987 comdat_group=yes
22988 elif test $in_tree_ld = yes ; then
22989 comdat_group=no
22990 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 \
22991 && test $in_tree_ld_is_elf = yes; then
22992 comdat_group=yes
22994 elif echo "$ld_ver" | grep GNU > /dev/null; then
22995 comdat_group=yes
22996 if test 0"$ld_date" -lt 20050308; then
22997 if test -n "$ld_date"; then
22998 # If there was date string, but was earlier than 2005-03-08, fail
22999 comdat_group=no
23000 elif test "$ld_vers_major" -lt 2; then
23001 comdat_group=no
23002 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23003 comdat_group=no
23006 else
23007 case "${target}" in
23008 *-*-solaris2.1[1-9]*)
23009 comdat_group=no
23010 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23011 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23012 # version 1.688.
23014 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23015 # least ld version 1.2267.
23016 if test "$ld_vers_major" -gt 1; then
23017 comdat_group=yes
23018 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23019 comdat_group=yes
23020 elif test "$ld_vers_minor" -ge 2267; then
23021 comdat_group=yes
23025 # Assume linkers other than GNU ld don't support COMDAT group.
23026 comdat_group=no
23028 esac
23030 # Allow overriding the automatic COMDAT group tests above.
23031 # Check whether --enable-comdat was given.
23032 if test "${enable_comdat+set}" = set; then :
23033 enableval=$enable_comdat; comdat_group="$enable_comdat"
23036 if test $comdat_group = no; then
23037 gcc_cv_as_comdat_group=no
23038 gcc_cv_as_comdat_group_percent=no
23039 gcc_cv_as_comdat_group_group=no
23042 cat >>confdefs.h <<_ACEOF
23043 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23044 || test $gcc_cv_as_comdat_group_percent = yes \
23045 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23046 _ACEOF
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23050 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23051 if test "${gcc_cv_as_discriminator+set}" = set; then :
23052 $as_echo_n "(cached) " >&6
23053 else
23054 gcc_cv_as_discriminator=no
23055 if test $in_tree_gas = yes; then
23056 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23057 then gcc_cv_as_discriminator=yes
23059 elif test x$gcc_cv_as != x; then
23060 $as_echo ' .text
23061 .file 1 "conf.c"
23062 .loc 1 1 0 discriminator 1' > conftest.s
23063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23065 (eval $ac_try) 2>&5
23066 ac_status=$?
23067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23068 test $ac_status = 0; }; }
23069 then
23070 gcc_cv_as_discriminator=yes
23071 else
23072 echo "configure: failed program was" >&5
23073 cat conftest.s >&5
23075 rm -f conftest.o conftest.s
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23079 $as_echo "$gcc_cv_as_discriminator" >&6; }
23080 if test $gcc_cv_as_discriminator = yes; then
23082 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23086 # Thread-local storage - the check is heavily parameterized.
23087 conftest_s=
23088 tls_first_major=
23089 tls_first_minor=
23090 tls_as_opt=
23091 case "$target" in
23092 alpha*-*-*)
23093 conftest_s='
23094 .section ".tdata","awT",@progbits
23095 foo: .long 25
23096 .text
23097 ldq $27,__tls_get_addr($29) !literal!1
23098 lda $16,foo($29) !tlsgd!1
23099 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23100 ldq $27,__tls_get_addr($29) !literal!2
23101 lda $16,foo($29) !tlsldm!2
23102 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23103 ldq $1,foo($29) !gotdtprel
23104 ldah $2,foo($29) !dtprelhi
23105 lda $3,foo($2) !dtprello
23106 lda $4,foo($29) !dtprel
23107 ldq $1,foo($29) !gottprel
23108 ldah $2,foo($29) !tprelhi
23109 lda $3,foo($2) !tprello
23110 lda $4,foo($29) !tprel'
23111 tls_first_major=2
23112 tls_first_minor=13
23113 tls_as_opt=--fatal-warnings
23115 cris-*-*|crisv32-*-*)
23116 conftest_s='
23117 .section ".tdata","awT",@progbits
23118 x: .long 25
23119 .text
23120 move.d x:IE,$r10
23121 nop'
23122 tls_first_major=2
23123 tls_first_minor=20
23124 tls_as_opt=--fatal-warnings
23126 frv*-*-*)
23127 conftest_s='
23128 .section ".tdata","awT",@progbits
23129 x: .long 25
23130 .text
23131 call #gettlsoff(x)'
23132 tls_first_major=2
23133 tls_first_minor=14
23135 hppa*-*-linux*)
23136 conftest_s='
23137 t1: .reg %r20
23138 t2: .reg %r21
23139 gp: .reg %r19
23140 .section ".tdata","awT",@progbits
23141 foo: .long 25
23142 .text
23143 .align 4
23144 addil LT%foo-$tls_gdidx$,gp
23145 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23146 b __tls_get_addr
23148 addil LT%foo-$tls_ldidx$,gp
23149 b __tls_get_addr
23150 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23151 addil LR%foo-$tls_dtpoff$,%ret0
23152 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23153 mfctl %cr27,%t1
23154 addil LT%foo-$tls_ieoff$,gp
23155 ldw RT%foo-$tls_ieoff$(%r1),%t2
23156 add %t1,%t2,%t3
23157 mfctl %cr27,%t1
23158 addil LR%foo-$tls_leoff$,%t1
23159 ldo RR%foo-$tls_leoff$(%r1),%t2'
23160 tls_first_major=2
23161 tls_first_minor=15
23162 tls_as_opt=--fatal-warnings
23164 arm*-*-*)
23165 conftest_s='
23166 .section ".tdata","awT",%progbits
23167 foo: .long 25
23168 .text
23169 .word foo(gottpoff)
23170 .word foo(tpoff)
23171 .word foo(tlsgd)
23172 .word foo(tlsldm)
23173 .word foo(tlsldo)'
23174 tls_first_major=2
23175 tls_first_minor=17
23177 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23178 case "$target" in
23179 i[34567]86-*-solaris2.*)
23180 on_solaris=yes
23181 tga_func=___tls_get_addr
23183 x86_64-*-solaris2.1[0-9]*)
23184 on_solaris=yes
23185 tga_func=__tls_get_addr
23188 on_solaris=no
23190 esac
23191 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23192 conftest_s='
23193 .section .tdata,"awt",@progbits'
23194 tls_first_major=0
23195 tls_first_minor=0
23197 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23199 else
23200 conftest_s='
23201 .section ".tdata","awT",@progbits'
23202 tls_first_major=2
23203 tls_first_minor=14
23204 tls_as_opt="--fatal-warnings"
23206 conftest_s="$conftest_s
23207 foo: .long 25
23208 .text
23209 movl %gs:0, %eax
23210 leal foo@tlsgd(,%ebx,1), %eax
23211 leal foo@tlsldm(%ebx), %eax
23212 leal foo@dtpoff(%eax), %edx
23213 movl foo@gottpoff(%ebx), %eax
23214 subl foo@gottpoff(%ebx), %eax
23215 addl foo@gotntpoff(%ebx), %eax
23216 movl foo@indntpoff, %eax
23217 movl \$foo@tpoff, %eax
23218 subl \$foo@tpoff, %eax
23219 leal foo@ntpoff(%ecx), %eax"
23221 x86_64-*-*)
23222 conftest_s='
23223 .section ".tdata","awT",@progbits
23224 foo: .long 25
23225 .text
23226 movq %fs:0, %rax
23227 leaq foo@TLSGD(%rip), %rdi
23228 leaq foo@TLSLD(%rip), %rdi
23229 leaq foo@DTPOFF(%rax), %rdx
23230 movq foo@GOTTPOFF(%rip), %rax
23231 movq $foo@TPOFF, %rax'
23232 tls_first_major=2
23233 tls_first_minor=14
23234 tls_as_opt=--fatal-warnings
23236 ia64-*-*)
23237 conftest_s='
23238 .section ".tdata","awT",@progbits
23239 foo: data8 25
23240 .text
23241 addl r16 = @ltoff(@dtpmod(foo#)), gp
23242 addl r17 = @ltoff(@dtprel(foo#)), gp
23243 addl r18 = @ltoff(@tprel(foo#)), gp
23244 addl r19 = @dtprel(foo#), gp
23245 adds r21 = @dtprel(foo#), r13
23246 movl r23 = @dtprel(foo#)
23247 addl r20 = @tprel(foo#), gp
23248 adds r22 = @tprel(foo#), r13
23249 movl r24 = @tprel(foo#)'
23250 tls_first_major=2
23251 tls_first_minor=13
23252 tls_as_opt=--fatal-warnings
23254 microblaze*-*-*)
23255 conftest_s='
23256 .section .tdata,"awT",@progbits
23258 .word 2
23259 .text
23260 addik r5,r20,x@TLSGD
23261 addik r5,r20,x@TLSLDM'
23262 tls_first_major=2
23263 tls_first_minor=20
23264 tls_as_opt='--fatal-warnings'
23266 mips*-*-*)
23267 conftest_s='
23268 .section .tdata,"awT",@progbits
23270 .word 2
23271 .text
23272 addiu $4, $28, %tlsgd(x)
23273 addiu $4, $28, %tlsldm(x)
23274 lui $4, %dtprel_hi(x)
23275 addiu $4, $4, %dtprel_lo(x)
23276 lw $4, %gottprel(x)($28)
23277 lui $4, %tprel_hi(x)
23278 addiu $4, $4, %tprel_lo(x)'
23279 tls_first_major=2
23280 tls_first_minor=16
23281 tls_as_opt='-32 --fatal-warnings'
23283 m68k-*-*)
23284 conftest_s='
23285 .section .tdata,"awT",@progbits
23287 .word 2
23288 .text
23289 foo:
23290 move.l x@TLSGD(%a5),%a0
23291 move.l x@TLSLDM(%a5),%a0
23292 move.l x@TLSLDO(%a5),%a0
23293 move.l x@TLSIE(%a5),%a0
23294 move.l x@TLSLE(%a5),%a0'
23295 tls_first_major=2
23296 tls_first_minor=19
23297 tls_as_opt='--fatal-warnings'
23299 aarch64*-*-*)
23300 conftest_s='
23301 .section ".tdata","awT",%progbits
23302 foo: .long 25
23303 .text
23304 adrp x0, :tlsgd:x
23305 add x0, x0, #:tlsgd_lo12:x
23306 bl __tls_get_addr
23307 nop'
23308 tls_first_major=2
23309 tls_first_minor=20
23310 tls_as_opt='--fatal-warnings'
23312 powerpc-ibm-aix*)
23313 conftest_s='
23314 .extern __get_tpointer
23315 .toc
23316 LC..1:
23317 .tc a[TC],a[TL]@le
23318 .csect .text[PR]
23319 .tlstest:
23320 lwz 9,LC..1(2)
23321 bla __get_tpointer
23322 lwzx 3,9,3
23323 .globl a
23324 .csect a[TL],4
23326 .space 4'
23327 tls_first_major=0
23328 tls_first_minor=0
23330 powerpc64*-*-*)
23331 conftest_s='
23332 .section ".tdata","awT",@progbits
23333 .align 3
23334 ld0: .space 8
23335 ld1: .space 8
23336 x1: .space 8
23337 x2: .space 8
23338 x3: .space 8
23339 .text
23340 addi 3,2,ld0@got@tlsgd
23341 bl .__tls_get_addr
23343 addi 3,2,ld1@toc
23344 bl .__tls_get_addr
23346 addi 3,2,x1@got@tlsld
23347 bl .__tls_get_addr
23349 addi 9,3,x1@dtprel
23350 bl .__tls_get_addr
23352 addis 9,3,x2@dtprel@ha
23353 addi 9,9,x2@dtprel@l
23354 bl .__tls_get_addr
23356 ld 9,x3@got@dtprel(2)
23357 add 9,9,3
23358 bl .__tls_get_addr
23359 nop'
23360 tls_first_major=2
23361 tls_first_minor=14
23362 tls_as_opt="-a64 --fatal-warnings"
23364 powerpc*-*-*)
23365 conftest_s='
23366 .section ".tdata","awT",@progbits
23367 .align 2
23368 ld0: .space 4
23369 ld1: .space 4
23370 x1: .space 4
23371 x2: .space 4
23372 x3: .space 4
23373 .text
23374 addi 3,31,ld0@got@tlsgd
23375 bl __tls_get_addr
23376 addi 3,31,x1@got@tlsld
23377 bl __tls_get_addr
23378 addi 9,3,x1@dtprel
23379 addis 9,3,x2@dtprel@ha
23380 addi 9,9,x2@dtprel@l
23381 lwz 9,x3@got@tprel(31)
23382 add 9,9,x@tls
23383 addi 9,2,x1@tprel
23384 addis 9,2,x2@tprel@ha
23385 addi 9,9,x2@tprel@l'
23386 tls_first_major=2
23387 tls_first_minor=14
23388 tls_as_opt="-a32 --fatal-warnings"
23390 s390-*-*)
23391 conftest_s='
23392 .section ".tdata","awT",@progbits
23393 foo: .long 25
23394 .text
23395 .long foo@TLSGD
23396 .long foo@TLSLDM
23397 .long foo@DTPOFF
23398 .long foo@NTPOFF
23399 .long foo@GOTNTPOFF
23400 .long foo@INDNTPOFF
23401 l %r1,foo@GOTNTPOFF(%r12)
23402 l %r1,0(%r1):tls_load:foo
23403 bas %r14,0(%r1,%r13):tls_gdcall:foo
23404 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23405 tls_first_major=2
23406 tls_first_minor=14
23407 tls_as_opt="-m31 --fatal-warnings"
23409 s390x-*-*)
23410 conftest_s='
23411 .section ".tdata","awT",@progbits
23412 foo: .long 25
23413 .text
23414 .quad foo@TLSGD
23415 .quad foo@TLSLDM
23416 .quad foo@DTPOFF
23417 .quad foo@NTPOFF
23418 .quad foo@GOTNTPOFF
23419 lg %r1,foo@GOTNTPOFF(%r12)
23420 larl %r1,foo@INDNTPOFF
23421 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23422 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23423 tls_first_major=2
23424 tls_first_minor=14
23425 tls_as_opt="-m64 -Aesame --fatal-warnings"
23427 sh-*-* | sh[34]-*-*)
23428 conftest_s='
23429 .section ".tdata","awT",@progbits
23430 foo: .long 25
23431 .text
23432 .long foo@TLSGD
23433 .long foo@TLSLDM
23434 .long foo@DTPOFF
23435 .long foo@GOTTPOFF
23436 .long foo@TPOFF'
23437 tls_first_major=2
23438 tls_first_minor=13
23439 tls_as_opt=--fatal-warnings
23441 sparc*-*-*)
23442 case "$target" in
23443 sparc*-sun-solaris2.*)
23444 on_solaris=yes
23445 tga_func=__tls_get_addr
23448 on_solaris=no
23450 esac
23451 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23452 conftest_s='
23453 .section ".tdata",#alloc,#write,#tls'
23454 tls_first_major=0
23455 tls_first_minor=0
23456 else
23457 conftest_s='
23458 .section ".tdata","awT",@progbits'
23459 tls_first_major=2
23460 tls_first_minor=14
23461 tls_as_opt="-32 --fatal-warnings"
23463 conftest_s="$conftest_s
23464 foo: .long 25
23465 .text
23466 sethi %tgd_hi22(foo), %o0
23467 add %o0, %tgd_lo10(foo), %o1
23468 add %l7, %o1, %o0, %tgd_add(foo)
23469 call __tls_get_addr, %tgd_call(foo)
23470 sethi %tldm_hi22(foo), %l1
23471 add %l1, %tldm_lo10(foo), %l2
23472 add %l7, %l2, %o0, %tldm_add(foo)
23473 call __tls_get_addr, %tldm_call(foo)
23474 sethi %tldo_hix22(foo), %l3
23475 xor %l3, %tldo_lox10(foo), %l4
23476 add %o0, %l4, %l5, %tldo_add(foo)
23477 sethi %tie_hi22(foo), %o3
23478 add %o3, %tie_lo10(foo), %o3
23479 ld [%l7 + %o3], %o2, %tie_ld(foo)
23480 add %g7, %o2, %o4, %tie_add(foo)
23481 sethi %tle_hix22(foo), %l1
23482 xor %l1, %tle_lox10(foo), %o5
23483 ld [%g7 + %o5], %o1"
23485 tilepro*-*-*)
23486 conftest_s='
23487 .section ".tdata","awT",@progbits
23488 foo: .long 25
23489 .text
23490 addli r0, zero, tls_gd(foo)
23491 auli r0, zero, tls_gd_ha16(foo)
23492 addli r0, r0, tls_gd_lo16(foo)
23493 jal __tls_get_addr
23494 addli r0, zero, tls_ie(foo)
23495 auli r0, r0, tls_ie_ha16(foo)
23496 addli r0, r0, tls_ie_lo16(foo)'
23497 tls_first_major=2
23498 tls_first_minor=22
23499 tls_as_opt="--fatal-warnings"
23501 tilegx*-*-*)
23502 conftest_s='
23503 .section ".tdata","awT",@progbits
23504 foo: .long 25
23505 .text
23506 shl16insli r0, zero, hw0_last_tls_gd(foo)
23507 shl16insli r0, zero, hw1_last_tls_gd(foo)
23508 shl16insli r0, r0, hw0_tls_gd(foo)
23509 jal __tls_get_addr
23510 shl16insli r0, zero, hw1_last_tls_ie(foo)
23511 shl16insli r0, r0, hw0_tls_ie(foo)'
23512 tls_first_major=2
23513 tls_first_minor=22
23514 tls_as_opt="--fatal-warnings"
23516 xtensa*-*-*)
23517 conftest_s='
23518 .section ".tdata","awT",@progbits
23519 foo: .long 25
23520 .text
23521 movi a8, foo@TLSFUNC
23522 movi a10, foo@TLSARG
23523 callx8.tls a8, foo@TLSCALL'
23524 tls_first_major=2
23525 tls_first_minor=19
23527 esac
23528 set_have_as_tls=no
23529 if test "x$enable_tls" = xno ; then
23530 : # TLS explicitly disabled.
23531 elif test "x$enable_tls" = xyes ; then
23532 set_have_as_tls=yes # TLS explicitly enabled.
23533 elif test -z "$tls_first_major"; then
23534 : # If we don't have a check, assume no support.
23535 else
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23537 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23538 if test "${gcc_cv_as_tls+set}" = set; then :
23539 $as_echo_n "(cached) " >&6
23540 else
23541 gcc_cv_as_tls=no
23542 if test $in_tree_gas = yes; then
23543 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23544 then gcc_cv_as_tls=yes
23546 elif test x$gcc_cv_as != x; then
23547 $as_echo "$conftest_s" > conftest.s
23548 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23550 (eval $ac_try) 2>&5
23551 ac_status=$?
23552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23553 test $ac_status = 0; }; }
23554 then
23555 gcc_cv_as_tls=yes
23556 else
23557 echo "configure: failed program was" >&5
23558 cat conftest.s >&5
23560 rm -f conftest.o conftest.s
23563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23564 $as_echo "$gcc_cv_as_tls" >&6; }
23565 if test $gcc_cv_as_tls = yes; then
23566 set_have_as_tls=yes
23569 case "$target" in
23570 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23571 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23572 # Sun style that Sun ld and GCC don't support any longer.
23573 *-*-solaris2.*)
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23575 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23576 ld_tls_support=no
23577 # Check ld and ld.so.1 TLS support.
23578 if echo "$ld_ver" | grep GNU > /dev/null; then
23579 # Assume all interesting versions of GNU ld have TLS support.
23580 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23581 ld_tls_support=yes
23582 else
23583 case "$target" in
23584 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23585 i?86-*-solaris2.9)
23586 min_tls_ld_vers_minor=374
23588 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23589 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23590 min_tls_ld_vers_minor=343
23592 esac
23593 if test "$ld_vers_major" -gt 1 || \
23594 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23595 ld_tls_support=yes
23596 else
23597 set_have_as_tls=no
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23601 $as_echo "$ld_tls_support" >&6; }
23603 save_LIBS="$LIBS"
23604 save_LDFLAGS="$LDFLAGS"
23605 LIBS=
23606 LDFLAGS=
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23609 $as_echo_n "checking library containing $tga_func... " >&6; }
23610 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23611 # (32-bit x86) only lived in libthread, so check for that. Keep
23612 # set_have_as_tls if found, disable if not.
23613 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23615 $as_echo_n "checking for library containing $tga_func... " >&6; }
23616 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23617 $as_echo_n "(cached) " >&6
23618 else
23619 ac_func_search_save_LIBS=$LIBS
23620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23621 /* end confdefs.h. */
23623 /* Override any GCC internal prototype to avoid an error.
23624 Use char because int might match the return type of a GCC
23625 builtin and then its argument prototype would still apply. */
23626 #ifdef __cplusplus
23627 extern "C"
23628 #endif
23629 char $tga_func ();
23631 main ()
23633 return $tga_func ();
23635 return 0;
23637 _ACEOF
23638 for ac_lib in '' thread; do
23639 if test -z "$ac_lib"; then
23640 ac_res="none required"
23641 else
23642 ac_res=-l$ac_lib
23643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23645 if ac_fn_c_try_link "$LINENO"; then :
23646 eval "$as_ac_Search=\$ac_res"
23648 rm -f core conftest.err conftest.$ac_objext \
23649 conftest$ac_exeext
23650 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23651 break
23653 done
23654 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23656 else
23657 eval "$as_ac_Search=no"
23659 rm conftest.$ac_ext
23660 LIBS=$ac_func_search_save_LIBS
23662 eval ac_res=\$$as_ac_Search
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23664 $as_echo "$ac_res" >&6; }
23665 eval ac_res=\$$as_ac_Search
23666 if test "$ac_res" != no; then :
23667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23669 else
23670 set_have_as_tls=no
23673 # Clear LIBS if we cannot support TLS.
23674 if test $set_have_as_tls = no; then
23675 LIBS=
23677 # Always define LIB_TLS_SPEC, even without TLS support.
23679 cat >>confdefs.h <<_ACEOF
23680 #define LIB_TLS_SPEC "$LIBS"
23681 _ACEOF
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23684 $as_echo "$LIBS" >&6; }
23686 LIBS="$save_LIBS"
23687 LDFLAGS="$save_LDFLAGS"
23689 esac
23690 if test $set_have_as_tls = yes ; then
23692 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23696 # Target-specific assembler checks.
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23699 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23700 gcc_cv_ld_static_dynamic=no
23701 gcc_cv_ld_static_option='-Bstatic'
23702 gcc_cv_ld_dynamic_option='-Bdynamic'
23703 if test $in_tree_ld = yes ; then
23704 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
23705 gcc_cv_ld_static_dynamic=yes
23707 elif test x$gcc_cv_ld != x; then
23708 # Check if linker supports -Bstatic/-Bdynamic option
23709 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23710 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23711 gcc_cv_ld_static_dynamic=yes
23712 else
23713 case "$target" in
23714 # AIX ld uses -b flags
23715 *-*-aix4.[23]* | *-*-aix[5-9]*)
23716 gcc_cv_ld_static_dynamic=yes
23717 gcc_cv_ld_static_option="-bstatic"
23718 gcc_cv_ld_dynamic_option="-bdynamic"
23720 # HP-UX ld uses -a flags to select between shared and archive.
23721 *-*-hpux*)
23722 if test x"$gnu_ld" = xno; then
23723 gcc_cv_ld_static_dynamic=yes
23724 gcc_cv_ld_static_option="-aarchive_shared"
23725 gcc_cv_ld_dynamic_option="-adefault"
23728 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23729 *-*-solaris2*)
23730 gcc_cv_ld_static_dynamic=yes
23732 esac
23735 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23737 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23740 cat >>confdefs.h <<_ACEOF
23741 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23742 _ACEOF
23745 cat >>confdefs.h <<_ACEOF
23746 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23747 _ACEOF
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23751 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23753 if test x"$demangler_in_ld" = xyes; then
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23755 $as_echo_n "checking linker --demangle support... " >&6; }
23756 gcc_cv_ld_demangle=no
23757 if test $in_tree_ld = yes; then
23758 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 \
23759 gcc_cv_ld_demangle=yes
23761 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23762 # Check if the GNU linker supports --demangle option
23763 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23764 gcc_cv_ld_demangle=yes
23767 if test x"$gcc_cv_ld_demangle" = xyes; then
23769 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23773 $as_echo "$gcc_cv_ld_demangle" >&6; }
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23777 $as_echo_n "checking linker plugin support... " >&6; }
23778 gcc_cv_lto_plugin=0
23779 if test -f liblto_plugin.la; then
23780 save_ld_ver="$ld_ver"
23781 save_ld_vers_major="$ld_vers_major"
23782 save_ld_vers_minor="$ld_vers_minor"
23783 save_ld_is_gold="$ld_is_gold"
23785 ld_is_gold=no
23787 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23788 ld_ver="GNU ld"
23789 # FIXME: ld_is_gold?
23790 ld_vers_major="$gcc_cv_gld_major_version"
23791 ld_vers_minor="$gcc_cv_gld_minor_version"
23792 else
23793 # Determine plugin linker version.
23794 # FIXME: Partial duplicate from above, generalize.
23795 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23796 if echo "$ld_ver" | grep GNU > /dev/null; then
23797 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23798 ld_is_gold=yes
23799 ld_vers=`echo $ld_ver | sed -n \
23800 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23801 else
23802 ld_vers=`echo $ld_ver | sed -n \
23803 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23805 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23806 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23810 # Determine plugin support.
23811 if echo "$ld_ver" | grep GNU > /dev/null; then
23812 # Require GNU ld or gold 2.21+ for plugin support by default.
23813 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23814 gcc_cv_lto_plugin=2
23815 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23816 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23817 gcc_cv_lto_plugin=1
23821 ld_ver="$save_ld_ver"
23822 ld_vers_major="$save_ld_vers_major"
23823 ld_vers_minor="$save_ld_vers_minor"
23824 ld_is_gold="$save_ld_is_gold"
23827 cat >>confdefs.h <<_ACEOF
23828 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23829 _ACEOF
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23832 $as_echo "$gcc_cv_lto_plugin" >&6; }
23834 case "$target" in
23835 # All TARGET_ABI_OSF targets.
23836 alpha*-*-linux* | alpha*-*-*bsd*)
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23838 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23839 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23840 $as_echo_n "(cached) " >&6
23841 else
23842 gcc_cv_as_alpha_explicit_relocs=no
23843 if test $in_tree_gas = yes; then
23844 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23845 then gcc_cv_as_alpha_explicit_relocs=yes
23847 elif test x$gcc_cv_as != x; then
23848 $as_echo ' .set nomacro
23849 .text
23850 extbl $3, $2, $3 !lituse_bytoff!1
23851 ldq $2, a($29) !literal!1
23852 ldq $4, b($29) !literal!2
23853 ldq_u $3, 0($2) !lituse_base!1
23854 ldq $27, f($29) !literal!5
23855 jsr $26, ($27), f !lituse_jsr!5
23856 ldah $29, 0($26) !gpdisp!3
23857 lda $0, c($29) !gprel
23858 ldah $1, d($29) !gprelhigh
23859 lda $1, d($1) !gprellow
23860 lda $29, 0($29) !gpdisp!3' > conftest.s
23861 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23863 (eval $ac_try) 2>&5
23864 ac_status=$?
23865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23866 test $ac_status = 0; }; }
23867 then
23868 gcc_cv_as_alpha_explicit_relocs=yes
23869 else
23870 echo "configure: failed program was" >&5
23871 cat conftest.s >&5
23873 rm -f conftest.o conftest.s
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23877 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23878 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23880 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23884 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23885 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23886 $as_echo_n "(cached) " >&6
23887 else
23888 gcc_cv_as_alpha_jsrdirect_relocs=no
23889 if test $in_tree_gas = yes; then
23890 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23891 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23893 elif test x$gcc_cv_as != x; then
23894 $as_echo ' .set nomacro
23895 .text
23896 ldq $27, a($29) !literal!1
23897 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23900 (eval $ac_try) 2>&5
23901 ac_status=$?
23902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23903 test $ac_status = 0; }; }
23904 then
23905 gcc_cv_as_alpha_jsrdirect_relocs=yes
23906 else
23907 echo "configure: failed program was" >&5
23908 cat conftest.s >&5
23910 rm -f conftest.o conftest.s
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23914 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23915 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23917 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23922 cris-*-*)
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23924 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23925 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23926 $as_echo_n "(cached) " >&6
23927 else
23928 gcc_cv_as_cris_no_mul_bug=no
23929 if test $in_tree_gas = yes; then
23930 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23931 then gcc_cv_as_cris_no_mul_bug=yes
23933 elif test x$gcc_cv_as != x; then
23934 $as_echo '.text' > conftest.s
23935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23937 (eval $ac_try) 2>&5
23938 ac_status=$?
23939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23940 test $ac_status = 0; }; }
23941 then
23942 gcc_cv_as_cris_no_mul_bug=yes
23943 else
23944 echo "configure: failed program was" >&5
23945 cat conftest.s >&5
23947 rm -f conftest.o conftest.s
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23951 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23952 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23954 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23959 sparc*-*-*)
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23961 $as_echo_n "checking assembler for .register... " >&6; }
23962 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23963 $as_echo_n "(cached) " >&6
23964 else
23965 gcc_cv_as_sparc_register_op=no
23966 if test x$gcc_cv_as != x; then
23967 $as_echo '.register %g2, #scratch' > conftest.s
23968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23970 (eval $ac_try) 2>&5
23971 ac_status=$?
23972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23973 test $ac_status = 0; }; }
23974 then
23975 gcc_cv_as_sparc_register_op=yes
23976 else
23977 echo "configure: failed program was" >&5
23978 cat conftest.s >&5
23980 rm -f conftest.o conftest.s
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23984 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23985 if test $gcc_cv_as_sparc_register_op = yes; then
23987 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
23992 $as_echo_n "checking assembler for #nobits... " >&6; }
23993 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
23994 $as_echo_n "(cached) " >&6
23995 else
23996 gcc_cv_as_sparc_nobits=no
23997 if test x$gcc_cv_as != x; then
23998 $as_echo '.section "nobits",#alloc,#write,#nobits
23999 .section "progbits",#alloc,#write,#progbits' > conftest.s
24000 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24002 (eval $ac_try) 2>&5
24003 ac_status=$?
24004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24005 test $ac_status = 0; }; }
24006 then
24007 gcc_cv_as_sparc_nobits=yes
24008 else
24009 echo "configure: failed program was" >&5
24010 cat conftest.s >&5
24012 rm -f conftest.o conftest.s
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24016 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24019 cat >>confdefs.h <<_ACEOF
24020 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24021 _ACEOF
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24025 $as_echo_n "checking assembler for -relax option... " >&6; }
24026 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24027 $as_echo_n "(cached) " >&6
24028 else
24029 gcc_cv_as_sparc_relax=no
24030 if test x$gcc_cv_as != x; then
24031 $as_echo '.text' > conftest.s
24032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24034 (eval $ac_try) 2>&5
24035 ac_status=$?
24036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24037 test $ac_status = 0; }; }
24038 then
24039 gcc_cv_as_sparc_relax=yes
24040 else
24041 echo "configure: failed program was" >&5
24042 cat conftest.s >&5
24044 rm -f conftest.o conftest.s
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24048 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24049 if test $gcc_cv_as_sparc_relax = yes; then
24051 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24056 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24057 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24058 $as_echo_n "(cached) " >&6
24059 else
24060 gcc_cv_as_sparc_gotdata_op=no
24061 if test x$gcc_cv_as != x; then
24062 $as_echo '.text
24063 .align 4
24064 foo:
24066 bar:
24067 sethi %gdop_hix22(foo), %g1
24068 xor %g1, %gdop_lox10(foo), %g1
24069 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24070 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24072 (eval $ac_try) 2>&5
24073 ac_status=$?
24074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24075 test $ac_status = 0; }; }
24076 then
24077 if test x$gcc_cv_ld != x \
24078 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24079 if test x$gcc_cv_objdump != x; then
24080 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24081 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24082 gcc_cv_as_sparc_gotdata_op=no
24083 else
24084 gcc_cv_as_sparc_gotdata_op=yes
24088 rm -f conftest
24089 else
24090 echo "configure: failed program was" >&5
24091 cat conftest.s >&5
24093 rm -f conftest.o conftest.s
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24097 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24098 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24100 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24105 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24106 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24107 $as_echo_n "(cached) " >&6
24108 else
24109 gcc_cv_as_sparc_ua_pcrel=no
24110 if test x$gcc_cv_as != x; then
24111 $as_echo '.text
24112 foo:
24114 .data
24115 .align 4
24116 .byte 0
24117 .uaword %r_disp32(foo)' > conftest.s
24118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24120 (eval $ac_try) 2>&5
24121 ac_status=$?
24122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24123 test $ac_status = 0; }; }
24124 then
24125 if test x$gcc_cv_ld != x \
24126 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24127 gcc_cv_as_sparc_ua_pcrel=yes
24129 rm -f conftest
24130 else
24131 echo "configure: failed program was" >&5
24132 cat conftest.s >&5
24134 rm -f conftest.o conftest.s
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24138 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24139 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24141 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24145 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24146 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24147 $as_echo_n "(cached) " >&6
24148 else
24149 gcc_cv_as_sparc_ua_pcrel_hidden=no
24150 if test x$gcc_cv_as != x; then
24151 $as_echo '.data
24152 .align 4
24153 .byte 0x31
24154 .uaword %r_disp32(foo)
24155 .byte 0x32, 0x33, 0x34
24156 .global foo
24157 .hidden foo
24158 foo:
24159 .skip 4' > conftest.s
24160 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24162 (eval $ac_try) 2>&5
24163 ac_status=$?
24164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24165 test $ac_status = 0; }; }
24166 then
24167 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24168 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24169 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24170 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24171 if $gcc_cv_objdump -R conftest 2> /dev/null \
24172 | grep 'DISP32' > /dev/null 2>&1; then
24174 else
24175 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24178 rm -f conftest
24179 else
24180 echo "configure: failed program was" >&5
24181 cat conftest.s >&5
24183 rm -f conftest.o conftest.s
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24187 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24188 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24190 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24194 fi # unaligned pcrel relocs
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24197 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24198 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24199 $as_echo_n "(cached) " >&6
24200 else
24201 gcc_cv_as_sparc_offsetable_lo10=no
24202 if test x$gcc_cv_as != x; then
24203 $as_echo '.text
24204 or %g1, %lo(ab) + 12, %g1
24205 or %g1, %lo(ab + 12), %g1' > conftest.s
24206 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24208 (eval $ac_try) 2>&5
24209 ac_status=$?
24210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24211 test $ac_status = 0; }; }
24212 then
24213 if test x$gcc_cv_objdump != x \
24214 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24215 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24216 gcc_cv_as_sparc_offsetable_lo10=yes
24218 else
24219 echo "configure: failed program was" >&5
24220 cat conftest.s >&5
24222 rm -f conftest.o conftest.s
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24226 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24227 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24229 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24234 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24235 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24236 $as_echo_n "(cached) " >&6
24237 else
24238 gcc_cv_as_sparc_fmaf=no
24239 if test x$gcc_cv_as != x; then
24240 $as_echo '.text
24241 .register %g2, #scratch
24242 .register %g3, #scratch
24243 .align 4
24244 fmaddd %f0, %f2, %f4, %f6
24245 addxccc %g1, %g2, %g3
24246 fsrl32 %f2, %f4, %f8
24247 fnaddd %f10, %f12, %f14' > conftest.s
24248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24250 (eval $ac_try) 2>&5
24251 ac_status=$?
24252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24253 test $ac_status = 0; }; }
24254 then
24255 gcc_cv_as_sparc_fmaf=yes
24256 else
24257 echo "configure: failed program was" >&5
24258 cat conftest.s >&5
24260 rm -f conftest.o conftest.s
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24264 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24265 if test $gcc_cv_as_sparc_fmaf = yes; then
24267 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24272 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24273 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24274 $as_echo_n "(cached) " >&6
24275 else
24276 gcc_cv_as_sparc_sparc4=no
24277 if test x$gcc_cv_as != x; then
24278 $as_echo '.text
24279 .register %g2, #scratch
24280 .register %g3, #scratch
24281 .align 4
24282 cxbe %g2, %g3, 1f
24283 1: cwbneg %g2, %g3, 1f
24284 1: sha1
24286 aes_kexpand0 %f4, %f6, %f8
24287 des_round %f38, %f40, %f42, %f44
24288 camellia_f %f54, %f56, %f58, %f60
24289 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24290 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24292 (eval $ac_try) 2>&5
24293 ac_status=$?
24294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24295 test $ac_status = 0; }; }
24296 then
24297 gcc_cv_as_sparc_sparc4=yes
24298 else
24299 echo "configure: failed program was" >&5
24300 cat conftest.s >&5
24302 rm -f conftest.o conftest.s
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24306 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24307 if test $gcc_cv_as_sparc_sparc4 = yes; then
24309 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24314 i[34567]86-*-* | x86_64-*-*)
24315 case $target_os in
24316 cygwin*)
24317 # Full C++ conformance when using a shared libstdc++-v3 requires some
24318 # support from the Cygwin DLL, which in more recent versions exports
24319 # wrappers to aid in interposing and redirecting operators new, delete,
24320 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24321 # are configuring for a version of Cygwin that exports the wrappers.
24322 if test x$host = x$target && test x$host_cpu = xi686; then
24323 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24324 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24325 gcc_ac_cygwin_dll_wrappers=yes
24326 else
24327 gcc_ac_cygwin_dll_wrappers=no
24330 else
24331 # Can't check presence of libc functions during cross-compile, so
24332 # we just have to assume we're building for an up-to-date target.
24333 gcc_ac_cygwin_dll_wrappers=yes
24336 cat >>confdefs.h <<_ACEOF
24337 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24338 _ACEOF
24340 esac
24341 case $target_os in
24342 cygwin* | pe | mingw32* | interix*)
24343 # Recent binutils allows the three-operand form of ".comm" on PE. This
24344 # definition is used unconditionally to initialise the default state of
24345 # the target option variable that governs usage of the feature.
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24347 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24348 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24349 $as_echo_n "(cached) " >&6
24350 else
24351 gcc_cv_as_comm_has_align=no
24352 if test $in_tree_gas = yes; then
24353 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24354 then gcc_cv_as_comm_has_align=yes
24356 elif test x$gcc_cv_as != x; then
24357 $as_echo '.comm foo,1,32' > conftest.s
24358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24360 (eval $ac_try) 2>&5
24361 ac_status=$?
24362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24363 test $ac_status = 0; }; }
24364 then
24365 gcc_cv_as_comm_has_align=yes
24366 else
24367 echo "configure: failed program was" >&5
24368 cat conftest.s >&5
24370 rm -f conftest.o conftest.s
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24374 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24377 cat >>confdefs.h <<_ACEOF
24378 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24379 _ACEOF
24381 # Used for DWARF 2 in PE
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24383 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24384 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24385 $as_echo_n "(cached) " >&6
24386 else
24387 gcc_cv_as_ix86_pe_secrel32=no
24388 if test $in_tree_gas = yes; then
24389 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24390 then gcc_cv_as_ix86_pe_secrel32=yes
24392 elif test x$gcc_cv_as != x; then
24393 $as_echo '.text
24394 foo: nop
24395 .data
24396 .secrel32 foo' > conftest.s
24397 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24399 (eval $ac_try) 2>&5
24400 ac_status=$?
24401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24402 test $ac_status = 0; }; }
24403 then
24404 if test x$gcc_cv_ld != x \
24405 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24406 gcc_cv_as_ix86_pe_secrel32=yes
24408 rm -f conftest
24409 else
24410 echo "configure: failed program was" >&5
24411 cat conftest.s >&5
24413 rm -f conftest.o conftest.s
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24417 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24418 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24420 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24423 # Test if the assembler supports the extended form of the .section
24424 # directive that specifies section alignment. LTO support uses this,
24425 # but normally only after installation, so we warn but don't fail the
24426 # configure if LTO is enabled but the assembler does not support it.
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24428 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24429 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24430 $as_echo_n "(cached) " >&6
24431 else
24432 gcc_cv_as_section_has_align=no
24433 if test $in_tree_gas = yes; then
24434 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24435 then gcc_cv_as_section_has_align=yes
24437 elif test x$gcc_cv_as != x; then
24438 $as_echo '.section lto_test,"dr0"' > conftest.s
24439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24441 (eval $ac_try) 2>&5
24442 ac_status=$?
24443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24444 test $ac_status = 0; }; }
24445 then
24446 gcc_cv_as_section_has_align=yes
24447 else
24448 echo "configure: failed program was" >&5
24449 cat conftest.s >&5
24451 rm -f conftest.o conftest.s
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24455 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24457 if test x$gcc_cv_as_section_has_align != xyes; then
24458 case ",$enable_languages," in
24459 *,lto,*)
24460 { $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
24461 $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;}
24463 esac
24465 # Test if the assembler supports the section flag 'e' for specifying
24466 # an excluded section.
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24468 $as_echo_n "checking assembler for .section with e... " >&6; }
24469 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24470 $as_echo_n "(cached) " >&6
24471 else
24472 gcc_cv_as_section_has_e=no
24473 if test $in_tree_gas = yes; then
24474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24475 then gcc_cv_as_section_has_e=yes
24477 elif test x$gcc_cv_as != x; then
24478 $as_echo '.section foo1,"e"
24479 .byte 0,0,0,0' > conftest.s
24480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24482 (eval $ac_try) 2>&5
24483 ac_status=$?
24484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24485 test $ac_status = 0; }; }
24486 then
24487 gcc_cv_as_section_has_e=yes
24488 else
24489 echo "configure: failed program was" >&5
24490 cat conftest.s >&5
24492 rm -f conftest.o conftest.s
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24496 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24499 cat >>confdefs.h <<_ACEOF
24500 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24501 _ACEOF
24504 esac
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24507 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24508 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24509 $as_echo_n "(cached) " >&6
24510 else
24511 gcc_cv_as_ix86_filds=no
24512 if test x$gcc_cv_as != x; then
24513 $as_echo 'filds mem; fists mem' > conftest.s
24514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24516 (eval $ac_try) 2>&5
24517 ac_status=$?
24518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24519 test $ac_status = 0; }; }
24520 then
24521 gcc_cv_as_ix86_filds=yes
24522 else
24523 echo "configure: failed program was" >&5
24524 cat conftest.s >&5
24526 rm -f conftest.o conftest.s
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24530 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24531 if test $gcc_cv_as_ix86_filds = yes; then
24533 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24538 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24539 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24540 $as_echo_n "(cached) " >&6
24541 else
24542 gcc_cv_as_ix86_fildq=no
24543 if test x$gcc_cv_as != x; then
24544 $as_echo 'fildq mem; fistpq mem' > conftest.s
24545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24547 (eval $ac_try) 2>&5
24548 ac_status=$?
24549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24550 test $ac_status = 0; }; }
24551 then
24552 gcc_cv_as_ix86_fildq=yes
24553 else
24554 echo "configure: failed program was" >&5
24555 cat conftest.s >&5
24557 rm -f conftest.o conftest.s
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24561 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24562 if test $gcc_cv_as_ix86_fildq = yes; then
24564 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24569 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24570 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24571 $as_echo_n "(cached) " >&6
24572 else
24573 gcc_cv_as_ix86_cmov_sun_syntax=no
24574 if test x$gcc_cv_as != x; then
24575 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24576 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24578 (eval $ac_try) 2>&5
24579 ac_status=$?
24580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24581 test $ac_status = 0; }; }
24582 then
24583 gcc_cv_as_ix86_cmov_sun_syntax=yes
24584 else
24585 echo "configure: failed program was" >&5
24586 cat conftest.s >&5
24588 rm -f conftest.o conftest.s
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24592 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24593 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24595 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24600 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24601 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24602 $as_echo_n "(cached) " >&6
24603 else
24604 gcc_cv_as_ix86_ffreep=no
24605 if test x$gcc_cv_as != x; then
24606 $as_echo 'ffreep %st(1)' > conftest.s
24607 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24609 (eval $ac_try) 2>&5
24610 ac_status=$?
24611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24612 test $ac_status = 0; }; }
24613 then
24614 gcc_cv_as_ix86_ffreep=yes
24615 else
24616 echo "configure: failed program was" >&5
24617 cat conftest.s >&5
24619 rm -f conftest.o conftest.s
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24623 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24624 if test $gcc_cv_as_ix86_ffreep = yes; then
24626 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24631 $as_echo_n "checking assembler for .quad directive... " >&6; }
24632 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24633 $as_echo_n "(cached) " >&6
24634 else
24635 gcc_cv_as_ix86_quad=no
24636 if test x$gcc_cv_as != x; then
24637 $as_echo '.quad 0' > conftest.s
24638 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24640 (eval $ac_try) 2>&5
24641 ac_status=$?
24642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24643 test $ac_status = 0; }; }
24644 then
24645 gcc_cv_as_ix86_quad=yes
24646 else
24647 echo "configure: failed program was" >&5
24648 cat conftest.s >&5
24650 rm -f conftest.o conftest.s
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24654 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24655 if test $gcc_cv_as_ix86_quad = yes; then
24657 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24662 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24663 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24664 $as_echo_n "(cached) " >&6
24665 else
24666 gcc_cv_as_ix86_sahf=no
24667 if test x$gcc_cv_as != x; then
24668 $as_echo '.code64
24669 sahf' > conftest.s
24670 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24672 (eval $ac_try) 2>&5
24673 ac_status=$?
24674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24675 test $ac_status = 0; }; }
24676 then
24677 gcc_cv_as_ix86_sahf=yes
24678 else
24679 echo "configure: failed program was" >&5
24680 cat conftest.s >&5
24682 rm -f conftest.o conftest.s
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24686 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24687 if test $gcc_cv_as_ix86_sahf = yes; then
24689 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24694 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24695 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24696 $as_echo_n "(cached) " >&6
24697 else
24698 gcc_cv_as_ix86_interunit_movq=no
24699 if test x$gcc_cv_as != x; then
24700 $as_echo '.code64
24701 movq %mm0, %rax
24702 movq %rax, %xmm0' > conftest.s
24703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24705 (eval $ac_try) 2>&5
24706 ac_status=$?
24707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24708 test $ac_status = 0; }; }
24709 then
24710 gcc_cv_as_ix86_interunit_movq=yes
24711 else
24712 echo "configure: failed program was" >&5
24713 cat conftest.s >&5
24715 rm -f conftest.o conftest.s
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24719 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24720 if test $gcc_cv_as_ix86_interunit_movq = yes; then
24722 $as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24727 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24728 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24729 $as_echo_n "(cached) " >&6
24730 else
24731 gcc_cv_as_ix86_hle=no
24732 if test x$gcc_cv_as != x; then
24733 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24734 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24736 (eval $ac_try) 2>&5
24737 ac_status=$?
24738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24739 test $ac_status = 0; }; }
24740 then
24741 gcc_cv_as_ix86_hle=yes
24742 else
24743 echo "configure: failed program was" >&5
24744 cat conftest.s >&5
24746 rm -f conftest.o conftest.s
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24750 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24751 if test $gcc_cv_as_ix86_hle = yes; then
24753 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24758 $as_echo_n "checking assembler for swap suffix... " >&6; }
24759 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24760 $as_echo_n "(cached) " >&6
24761 else
24762 gcc_cv_as_ix86_swap=no
24763 if test x$gcc_cv_as != x; then
24764 $as_echo 'movl.s %esp, %ebp' > conftest.s
24765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24767 (eval $ac_try) 2>&5
24768 ac_status=$?
24769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24770 test $ac_status = 0; }; }
24771 then
24772 gcc_cv_as_ix86_swap=yes
24773 else
24774 echo "configure: failed program was" >&5
24775 cat conftest.s >&5
24777 rm -f conftest.o conftest.s
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24781 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24782 if test $gcc_cv_as_ix86_swap = yes; then
24784 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24789 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24790 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24791 $as_echo_n "(cached) " >&6
24792 else
24793 gcc_cv_as_ix86_diff_sect_delta=no
24794 if test x$gcc_cv_as != x; then
24795 $as_echo '.section .rodata
24796 .L1:
24797 .long .L2-.L1
24798 .long .L3-.L1
24799 .text
24800 .L3: nop
24801 .L2: nop' > conftest.s
24802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24804 (eval $ac_try) 2>&5
24805 ac_status=$?
24806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24807 test $ac_status = 0; }; }
24808 then
24809 gcc_cv_as_ix86_diff_sect_delta=yes
24810 else
24811 echo "configure: failed program was" >&5
24812 cat conftest.s >&5
24814 rm -f conftest.o conftest.s
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24818 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24819 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24821 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24825 # These two are used unconditionally by i386.[ch]; it is to be defined
24826 # to 1 if the feature is present, 0 otherwise.
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24828 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24829 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24830 $as_echo_n "(cached) " >&6
24831 else
24832 gcc_cv_as_ix86_gotoff_in_data=no
24833 if test $in_tree_gas = yes; then
24834 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24835 then gcc_cv_as_ix86_gotoff_in_data=yes
24837 elif test x$gcc_cv_as != x; then
24838 $as_echo ' .text
24839 .L0:
24841 .data
24842 .long .L0@GOTOFF' > conftest.s
24843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24845 (eval $ac_try) 2>&5
24846 ac_status=$?
24847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24848 test $ac_status = 0; }; }
24849 then
24850 gcc_cv_as_ix86_gotoff_in_data=yes
24851 else
24852 echo "configure: failed program was" >&5
24853 cat conftest.s >&5
24855 rm -f conftest.o conftest.s
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24859 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24862 cat >>confdefs.h <<_ACEOF
24863 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24864 _ACEOF
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24868 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24869 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24870 $as_echo_n "(cached) " >&6
24871 else
24872 gcc_cv_as_ix86_rep_lock_prefix=no
24873 if test x$gcc_cv_as != x; then
24874 $as_echo 'rep movsl
24875 rep ret
24876 rep nop
24877 rep bsf %ecx, %eax
24878 rep bsr %ecx, %eax
24879 lock addl %edi, (%eax,%esi)
24880 lock orl $0, (%esp)' > conftest.s
24881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24883 (eval $ac_try) 2>&5
24884 ac_status=$?
24885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24886 test $ac_status = 0; }; }
24887 then
24888 gcc_cv_as_ix86_rep_lock_prefix=yes
24889 else
24890 echo "configure: failed program was" >&5
24891 cat conftest.s >&5
24893 rm -f conftest.o conftest.s
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24897 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24898 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24900 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24905 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24906 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24907 $as_echo_n "(cached) " >&6
24908 else
24909 gcc_cv_as_ix86_tlsgdplt=no
24910 if test x$gcc_cv_as != x; then
24911 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24914 (eval $ac_try) 2>&5
24915 ac_status=$?
24916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24917 test $ac_status = 0; }; }
24918 then
24919 if test x$gcc_cv_ld != x \
24920 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24921 gcc_cv_as_ix86_tlsgdplt=yes
24923 rm -f conftest
24924 else
24925 echo "configure: failed program was" >&5
24926 cat conftest.s >&5
24928 rm -f conftest.o conftest.s
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24932 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24933 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24935 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24940 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24941 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24942 $as_echo_n "(cached) " >&6
24943 else
24944 gcc_cv_as_ix86_tlsldmplt=no
24945 if test x$gcc_cv_as != x; then
24946 $as_echo 'tls_ld:
24947 call tls_ld@tlsldmplt' > conftest.s
24948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24950 (eval $ac_try) 2>&5
24951 ac_status=$?
24952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24953 test $ac_status = 0; }; }
24954 then
24955 if test x$gcc_cv_ld != x \
24956 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24957 gcc_cv_as_ix86_tlsldmplt=yes
24959 rm -f conftest
24960 else
24961 echo "configure: failed program was" >&5
24962 cat conftest.s >&5
24964 rm -f conftest.o conftest.s
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24968 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24969 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24971 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24977 ia64*-*-*)
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24979 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24980 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24981 $as_echo_n "(cached) " >&6
24982 else
24983 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24984 if test $in_tree_gas = yes; then
24985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24986 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24988 elif test x$gcc_cv_as != x; then
24989 $as_echo ' .text
24990 addl r15 = @ltoffx(x#), gp
24992 ld8.mov r16 = [r15], x#' > conftest.s
24993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24995 (eval $ac_try) 2>&5
24996 ac_status=$?
24997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24998 test $ac_status = 0; }; }
24999 then
25000 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25001 else
25002 echo "configure: failed program was" >&5
25003 cat conftest.s >&5
25005 rm -f conftest.o conftest.s
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25009 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25010 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25012 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25018 powerpc*-*-*)
25019 case $target in
25020 *-*-aix*) conftest_s=' .machine "pwr5"
25021 .csect .text[PR]
25022 mfcr 3,128';;
25023 *-*-darwin*)
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25025 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25026 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25027 $as_echo_n "(cached) " >&6
25028 else
25029 gcc_cv_as_machine_directive=no
25030 if test x$gcc_cv_as != x; then
25031 $as_echo ' .machine ppc7400' > conftest.s
25032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25034 (eval $ac_try) 2>&5
25035 ac_status=$?
25036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25037 test $ac_status = 0; }; }
25038 then
25039 gcc_cv_as_machine_directive=yes
25040 else
25041 echo "configure: failed program was" >&5
25042 cat conftest.s >&5
25044 rm -f conftest.o conftest.s
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25048 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25050 if test x$gcc_cv_as_machine_directive != xyes; then
25051 echo "*** This target requires an assembler supporting \".machine\"" >&2
25052 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25053 test x$build = x$target && exit 1
25055 conftest_s=' .text
25056 mfcr r3,128';;
25057 *) conftest_s=' .machine power4
25058 .text
25059 mfcr 3,128';;
25060 esac
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25063 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25064 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25065 $as_echo_n "(cached) " >&6
25066 else
25067 gcc_cv_as_powerpc_mfcrf=no
25068 if test $in_tree_gas = yes; then
25069 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25070 then gcc_cv_as_powerpc_mfcrf=yes
25072 elif test x$gcc_cv_as != x; then
25073 $as_echo "$conftest_s" > conftest.s
25074 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25076 (eval $ac_try) 2>&5
25077 ac_status=$?
25078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25079 test $ac_status = 0; }; }
25080 then
25081 gcc_cv_as_powerpc_mfcrf=yes
25082 else
25083 echo "configure: failed program was" >&5
25084 cat conftest.s >&5
25086 rm -f conftest.o conftest.s
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25090 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25091 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25093 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25097 case $target in
25098 *-*-aix*) conftest_s=' .machine "pwr5"
25099 .csect .text[PR]
25100 popcntb 3,3';;
25101 *) conftest_s=' .machine power5
25102 .text
25103 popcntb 3,3';;
25104 esac
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25107 $as_echo_n "checking assembler for popcntb support... " >&6; }
25108 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25109 $as_echo_n "(cached) " >&6
25110 else
25111 gcc_cv_as_powerpc_popcntb=no
25112 if test $in_tree_gas = yes; then
25113 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25114 then gcc_cv_as_powerpc_popcntb=yes
25116 elif test x$gcc_cv_as != x; then
25117 $as_echo "$conftest_s" > conftest.s
25118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25120 (eval $ac_try) 2>&5
25121 ac_status=$?
25122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25123 test $ac_status = 0; }; }
25124 then
25125 gcc_cv_as_powerpc_popcntb=yes
25126 else
25127 echo "configure: failed program was" >&5
25128 cat conftest.s >&5
25130 rm -f conftest.o conftest.s
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25134 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25135 if test $gcc_cv_as_powerpc_popcntb = yes; then
25137 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25141 case $target in
25142 *-*-aix*) conftest_s=' .machine "pwr5x"
25143 .csect .text[PR]
25144 frin 1,1';;
25145 *) conftest_s=' .machine power5
25146 .text
25147 frin 1,1';;
25148 esac
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25151 $as_echo_n "checking assembler for fp round support... " >&6; }
25152 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25153 $as_echo_n "(cached) " >&6
25154 else
25155 gcc_cv_as_powerpc_fprnd=no
25156 if test $in_tree_gas = yes; then
25157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25158 then gcc_cv_as_powerpc_fprnd=yes
25160 elif test x$gcc_cv_as != x; then
25161 $as_echo "$conftest_s" > conftest.s
25162 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25164 (eval $ac_try) 2>&5
25165 ac_status=$?
25166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25167 test $ac_status = 0; }; }
25168 then
25169 gcc_cv_as_powerpc_fprnd=yes
25170 else
25171 echo "configure: failed program was" >&5
25172 cat conftest.s >&5
25174 rm -f conftest.o conftest.s
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25178 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25179 if test $gcc_cv_as_powerpc_fprnd = yes; then
25181 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25185 case $target in
25186 *-*-aix*) conftest_s=' .machine "pwr6"
25187 .csect .text[PR]
25188 mffgpr 1,3';;
25189 *) conftest_s=' .machine power6
25190 .text
25191 mffgpr 1,3';;
25192 esac
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25195 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25196 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25197 $as_echo_n "(cached) " >&6
25198 else
25199 gcc_cv_as_powerpc_mfpgpr=no
25200 if test $in_tree_gas = yes; then
25201 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25202 then gcc_cv_as_powerpc_mfpgpr=yes
25204 elif test x$gcc_cv_as != x; then
25205 $as_echo "$conftest_s" > conftest.s
25206 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25208 (eval $ac_try) 2>&5
25209 ac_status=$?
25210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25211 test $ac_status = 0; }; }
25212 then
25213 gcc_cv_as_powerpc_mfpgpr=yes
25214 else
25215 echo "configure: failed program was" >&5
25216 cat conftest.s >&5
25218 rm -f conftest.o conftest.s
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25222 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25223 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25225 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25229 case $target in
25230 *-*-aix*) conftest_s=' .csect .text[PR]
25231 LCF..0:
25232 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25233 *-*-darwin*)
25234 conftest_s=' .text
25235 LCF0:
25236 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25237 *) conftest_s=' .text
25238 .LCF0:
25239 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25240 esac
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25243 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25244 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25245 $as_echo_n "(cached) " >&6
25246 else
25247 gcc_cv_as_powerpc_rel16=no
25248 if test $in_tree_gas = yes; then
25249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25250 then gcc_cv_as_powerpc_rel16=yes
25252 elif test x$gcc_cv_as != x; then
25253 $as_echo "$conftest_s" > conftest.s
25254 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25256 (eval $ac_try) 2>&5
25257 ac_status=$?
25258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25259 test $ac_status = 0; }; }
25260 then
25261 gcc_cv_as_powerpc_rel16=yes
25262 else
25263 echo "configure: failed program was" >&5
25264 cat conftest.s >&5
25266 rm -f conftest.o conftest.s
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25270 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25271 if test $gcc_cv_as_powerpc_rel16 = yes; then
25273 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25277 case $target in
25278 *-*-aix*) conftest_s=' .machine "pwr6"
25279 .csect .text[PR]
25280 cmpb 3,4,5';;
25281 *) conftest_s=' .machine power6
25282 .text
25283 cmpb 3,4,5';;
25284 esac
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25287 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25288 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25289 $as_echo_n "(cached) " >&6
25290 else
25291 gcc_cv_as_powerpc_cmpb=no
25292 if test $in_tree_gas = yes; then
25293 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25294 then gcc_cv_as_powerpc_cmpb=yes
25296 elif test x$gcc_cv_as != x; then
25297 $as_echo "$conftest_s" > conftest.s
25298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25300 (eval $ac_try) 2>&5
25301 ac_status=$?
25302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25303 test $ac_status = 0; }; }
25304 then
25305 gcc_cv_as_powerpc_cmpb=yes
25306 else
25307 echo "configure: failed program was" >&5
25308 cat conftest.s >&5
25310 rm -f conftest.o conftest.s
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25314 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25315 if test $gcc_cv_as_powerpc_cmpb = yes; then
25317 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25321 case $target in
25322 *-*-aix*) conftest_s=' .machine "pwr6"
25323 .csect .text[PR]
25324 dadd 1,2,3';;
25325 *) conftest_s=' .machine power6
25326 .text
25327 dadd 1,2,3';;
25328 esac
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25331 $as_echo_n "checking assembler for decimal float support... " >&6; }
25332 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25333 $as_echo_n "(cached) " >&6
25334 else
25335 gcc_cv_as_powerpc_dfp=no
25336 if test $in_tree_gas = yes; then
25337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25338 then gcc_cv_as_powerpc_dfp=yes
25340 elif test x$gcc_cv_as != x; then
25341 $as_echo "$conftest_s" > conftest.s
25342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25344 (eval $ac_try) 2>&5
25345 ac_status=$?
25346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25347 test $ac_status = 0; }; }
25348 then
25349 gcc_cv_as_powerpc_dfp=yes
25350 else
25351 echo "configure: failed program was" >&5
25352 cat conftest.s >&5
25354 rm -f conftest.o conftest.s
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25358 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25359 if test $gcc_cv_as_powerpc_dfp = yes; then
25361 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25365 case $target in
25366 *-*-aix*) conftest_s=' .machine "pwr7"
25367 .csect .text[PR]
25368 lxvd2x 1,2,3';;
25369 *) conftest_s=' .machine power7
25370 .text
25371 lxvd2x 1,2,3';;
25372 esac
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25375 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25376 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25377 $as_echo_n "(cached) " >&6
25378 else
25379 gcc_cv_as_powerpc_vsx=no
25380 if test $in_tree_gas = yes; then
25381 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25382 then gcc_cv_as_powerpc_vsx=yes
25384 elif test x$gcc_cv_as != x; then
25385 $as_echo "$conftest_s" > conftest.s
25386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25388 (eval $ac_try) 2>&5
25389 ac_status=$?
25390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25391 test $ac_status = 0; }; }
25392 then
25393 gcc_cv_as_powerpc_vsx=yes
25394 else
25395 echo "configure: failed program was" >&5
25396 cat conftest.s >&5
25398 rm -f conftest.o conftest.s
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25402 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25403 if test $gcc_cv_as_powerpc_vsx = yes; then
25405 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25409 case $target in
25410 *-*-aix*) conftest_s=' .machine "pwr7"
25411 .csect .text[PR]
25412 popcntd 3,3';;
25413 *) conftest_s=' .machine power7
25414 .text
25415 popcntd 3,3';;
25416 esac
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25419 $as_echo_n "checking assembler for popcntd support... " >&6; }
25420 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25421 $as_echo_n "(cached) " >&6
25422 else
25423 gcc_cv_as_powerpc_popcntd=no
25424 if test $in_tree_gas = yes; then
25425 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25426 then gcc_cv_as_powerpc_popcntd=yes
25428 elif test x$gcc_cv_as != x; then
25429 $as_echo "$conftest_s" > conftest.s
25430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25432 (eval $ac_try) 2>&5
25433 ac_status=$?
25434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25435 test $ac_status = 0; }; }
25436 then
25437 gcc_cv_as_powerpc_popcntd=yes
25438 else
25439 echo "configure: failed program was" >&5
25440 cat conftest.s >&5
25442 rm -f conftest.o conftest.s
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25446 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25447 if test $gcc_cv_as_powerpc_popcntd = yes; then
25449 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25453 case $target in
25454 *-*-aix*) conftest_s=' .machine "pwr8"
25455 .csect .text[PR]';;
25456 *) conftest_s=' .machine power8
25457 .text';;
25458 esac
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25461 $as_echo_n "checking assembler for power8 support... " >&6; }
25462 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25463 $as_echo_n "(cached) " >&6
25464 else
25465 gcc_cv_as_powerpc_power8=no
25466 if test $in_tree_gas = yes; then
25467 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25468 then gcc_cv_as_powerpc_power8=yes
25470 elif test x$gcc_cv_as != x; then
25471 $as_echo "$conftest_s" > conftest.s
25472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25474 (eval $ac_try) 2>&5
25475 ac_status=$?
25476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25477 test $ac_status = 0; }; }
25478 then
25479 gcc_cv_as_powerpc_power8=yes
25480 else
25481 echo "configure: failed program was" >&5
25482 cat conftest.s >&5
25484 rm -f conftest.o conftest.s
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25488 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25489 if test $gcc_cv_as_powerpc_power8 = yes; then
25491 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25495 case $target in
25496 *-*-aix*) conftest_s=' .csect .text[PR]
25497 lwsync';;
25498 *) conftest_s=' .text
25499 lwsync';;
25500 esac
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25503 $as_echo_n "checking assembler for lwsync support... " >&6; }
25504 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25505 $as_echo_n "(cached) " >&6
25506 else
25507 gcc_cv_as_powerpc_lwsync=no
25508 if test $in_tree_gas = yes; then
25509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25510 then gcc_cv_as_powerpc_lwsync=yes
25512 elif test x$gcc_cv_as != x; then
25513 $as_echo "$conftest_s" > conftest.s
25514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25516 (eval $ac_try) 2>&5
25517 ac_status=$?
25518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25519 test $ac_status = 0; }; }
25520 then
25521 gcc_cv_as_powerpc_lwsync=yes
25522 else
25523 echo "configure: failed program was" >&5
25524 cat conftest.s >&5
25526 rm -f conftest.o conftest.s
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25530 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25531 if test $gcc_cv_as_powerpc_lwsync = yes; then
25533 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25537 case $target in
25538 *-*-aix*) conftest_s=' .machine "476"
25539 .csect .text[PR]
25540 dci 0';;
25541 *) conftest_s=' .machine "476"
25542 .text
25543 dci 0';;
25544 esac
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25547 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25548 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25549 $as_echo_n "(cached) " >&6
25550 else
25551 gcc_cv_as_powerpc_dci=no
25552 if test $in_tree_gas = yes; then
25553 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25554 then gcc_cv_as_powerpc_dci=yes
25556 elif test x$gcc_cv_as != x; then
25557 $as_echo "$conftest_s" > conftest.s
25558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25560 (eval $ac_try) 2>&5
25561 ac_status=$?
25562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25563 test $ac_status = 0; }; }
25564 then
25565 gcc_cv_as_powerpc_dci=yes
25566 else
25567 echo "configure: failed program was" >&5
25568 cat conftest.s >&5
25570 rm -f conftest.o conftest.s
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25574 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25575 if test $gcc_cv_as_powerpc_dci = yes; then
25577 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25582 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25583 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25584 $as_echo_n "(cached) " >&6
25585 else
25586 gcc_cv_as_powerpc_gnu_attribute=no
25587 if test $in_tree_gas = yes; then
25588 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25589 then gcc_cv_as_powerpc_gnu_attribute=yes
25591 elif test x$gcc_cv_as != x; then
25592 $as_echo '.gnu_attribute 4,1' > conftest.s
25593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25595 (eval $ac_try) 2>&5
25596 ac_status=$?
25597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25598 test $ac_status = 0; }; }
25599 then
25600 gcc_cv_as_powerpc_gnu_attribute=yes
25601 else
25602 echo "configure: failed program was" >&5
25603 cat conftest.s >&5
25605 rm -f conftest.o conftest.s
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25609 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25610 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25612 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25617 $as_echo_n "checking assembler for tls marker support... " >&6; }
25618 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25619 $as_echo_n "(cached) " >&6
25620 else
25621 gcc_cv_as_powerpc_tls_markers=no
25622 if test $in_tree_gas = yes; then
25623 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25624 then gcc_cv_as_powerpc_tls_markers=yes
25626 elif test x$gcc_cv_as != x; then
25627 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25628 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25630 (eval $ac_try) 2>&5
25631 ac_status=$?
25632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25633 test $ac_status = 0; }; }
25634 then
25635 gcc_cv_as_powerpc_tls_markers=yes
25636 else
25637 echo "configure: failed program was" >&5
25638 cat conftest.s >&5
25640 rm -f conftest.o conftest.s
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25644 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25645 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25647 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25651 case $target in
25652 *-*-aix*)
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25654 $as_echo_n "checking assembler for .ref support... " >&6; }
25655 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25656 $as_echo_n "(cached) " >&6
25657 else
25658 gcc_cv_as_aix_ref=no
25659 if test $in_tree_gas = yes; then
25660 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25661 then gcc_cv_as_aix_ref=yes
25663 elif test x$gcc_cv_as != x; then
25664 $as_echo ' .csect stuff[rw]
25665 stuff:
25666 .long 1
25667 .extern sym
25668 .ref sym
25669 ' > conftest.s
25670 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25672 (eval $ac_try) 2>&5
25673 ac_status=$?
25674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25675 test $ac_status = 0; }; }
25676 then
25677 gcc_cv_as_aix_ref=yes
25678 else
25679 echo "configure: failed program was" >&5
25680 cat conftest.s >&5
25682 rm -f conftest.o conftest.s
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25686 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25687 if test $gcc_cv_as_aix_ref = yes; then
25689 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25693 esac
25696 mips*-*-*)
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25698 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25699 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25700 $as_echo_n "(cached) " >&6
25701 else
25702 gcc_cv_as_mips_explicit_relocs=no
25703 if test $in_tree_gas = yes; then
25704 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25705 then gcc_cv_as_mips_explicit_relocs=yes
25707 elif test x$gcc_cv_as != x; then
25708 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25709 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25711 (eval $ac_try) 2>&5
25712 ac_status=$?
25713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25714 test $ac_status = 0; }; }
25715 then
25716 gcc_cv_as_mips_explicit_relocs=yes
25717 else
25718 echo "configure: failed program was" >&5
25719 cat conftest.s >&5
25721 rm -f conftest.o conftest.s
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25725 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25726 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25727 if test x$target_cpu_default = x
25728 then target_cpu_default=MASK_EXPLICIT_RELOCS
25729 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25733 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25734 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25735 $as_echo_n "(cached) " >&6
25736 else
25737 gcc_cv_as_mips_no_shared=no
25738 if test $in_tree_gas = yes; then
25739 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25740 then gcc_cv_as_mips_no_shared=yes
25742 elif test x$gcc_cv_as != x; then
25743 $as_echo 'nop' > conftest.s
25744 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25746 (eval $ac_try) 2>&5
25747 ac_status=$?
25748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25749 test $ac_status = 0; }; }
25750 then
25751 gcc_cv_as_mips_no_shared=yes
25752 else
25753 echo "configure: failed program was" >&5
25754 cat conftest.s >&5
25756 rm -f conftest.o conftest.s
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25760 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25761 if test $gcc_cv_as_mips_no_shared = yes; then
25763 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25768 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25769 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25770 $as_echo_n "(cached) " >&6
25771 else
25772 gcc_cv_as_mips_gnu_attribute=no
25773 if test $in_tree_gas = yes; then
25774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25775 then gcc_cv_as_mips_gnu_attribute=yes
25777 elif test x$gcc_cv_as != x; then
25778 $as_echo '.gnu_attribute 4,1' > conftest.s
25779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25781 (eval $ac_try) 2>&5
25782 ac_status=$?
25783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25784 test $ac_status = 0; }; }
25785 then
25786 gcc_cv_as_mips_gnu_attribute=yes
25787 else
25788 echo "configure: failed program was" >&5
25789 cat conftest.s >&5
25791 rm -f conftest.o conftest.s
25794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25795 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25796 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25798 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25803 $as_echo_n "checking assembler for .micromips support... " >&6; }
25804 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25805 $as_echo_n "(cached) " >&6
25806 else
25807 gcc_cv_as_micromips_support=no
25808 if test x$gcc_cv_as != x; then
25809 $as_echo '.set micromips' > conftest.s
25810 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25812 (eval $ac_try) 2>&5
25813 ac_status=$?
25814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25815 test $ac_status = 0; }; }
25816 then
25817 gcc_cv_as_micromips_support=yes
25818 else
25819 echo "configure: failed program was" >&5
25820 cat conftest.s >&5
25822 rm -f conftest.o conftest.s
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25826 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25827 if test $gcc_cv_as_micromips_support = yes; then
25829 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25834 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25835 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25836 $as_echo_n "(cached) " >&6
25837 else
25838 gcc_cv_as_mips_dtprelword=no
25839 if test $in_tree_gas = yes; then
25840 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25841 then gcc_cv_as_mips_dtprelword=yes
25843 elif test x$gcc_cv_as != x; then
25844 $as_echo '.section .tdata,"awT",@progbits
25846 .word 2
25847 .text
25848 .dtprelword x+0x8000' > conftest.s
25849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25851 (eval $ac_try) 2>&5
25852 ac_status=$?
25853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25854 test $ac_status = 0; }; }
25855 then
25856 gcc_cv_as_mips_dtprelword=yes
25857 else
25858 echo "configure: failed program was" >&5
25859 cat conftest.s >&5
25861 rm -f conftest.o conftest.s
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25865 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25866 if test $gcc_cv_as_mips_dtprelword = yes; then
25868 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25873 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25874 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25875 $as_echo_n "(cached) " >&6
25876 else
25877 gcc_cv_as_mips_dspr1_mult=no
25878 if test x$gcc_cv_as != x; then
25879 $as_echo ' .set mips32r2
25880 .set nodspr2
25881 .set dsp
25882 madd $ac3,$4,$5
25883 maddu $ac3,$4,$5
25884 msub $ac3,$4,$5
25885 msubu $ac3,$4,$5
25886 mult $ac3,$4,$5
25887 multu $ac3,$4,$5' > conftest.s
25888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25890 (eval $ac_try) 2>&5
25891 ac_status=$?
25892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25893 test $ac_status = 0; }; }
25894 then
25895 gcc_cv_as_mips_dspr1_mult=yes
25896 else
25897 echo "configure: failed program was" >&5
25898 cat conftest.s >&5
25900 rm -f conftest.o conftest.s
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25904 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25905 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25907 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25912 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25913 gcc_cv_as_ld_jalr_reloc=no
25914 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25915 if test $in_tree_ld = yes ; then
25916 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 \
25917 && test $in_tree_ld_is_elf = yes; then
25918 gcc_cv_as_ld_jalr_reloc=yes
25920 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25921 echo ' .ent x' > conftest.s
25922 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25923 echo ' ld $25,%call16(y)($28)' >> conftest.s
25924 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25925 echo '1: jalr $25' >> conftest.s
25926 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25927 echo '1: jalr $25' >> conftest.s
25928 echo ' .end x' >> conftest.s
25929 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25930 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25931 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25932 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25933 gcc_cv_as_ld_jalr_reloc=yes
25936 rm -f conftest.*
25939 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25940 if test x$target_cpu_default = x; then
25941 target_cpu_default=MASK_RELAX_PIC_CALLS
25942 else
25943 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25947 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25950 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25951 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25952 $as_echo_n "(cached) " >&6
25953 else
25954 gcc_cv_ld_mips_personality_relaxation=no
25955 if test $in_tree_ld = yes ; then
25956 if test "$gcc_cv_gld_major_version" -eq 2 \
25957 -a "$gcc_cv_gld_minor_version" -ge 21 \
25958 -o "$gcc_cv_gld_major_version" -gt 2; then
25959 gcc_cv_ld_mips_personality_relaxation=yes
25961 elif test x$gcc_cv_as != x \
25962 -a x$gcc_cv_ld != x \
25963 -a x$gcc_cv_readelf != x ; then
25964 cat > conftest.s <<EOF
25965 .cfi_startproc
25966 .cfi_personality 0x80,indirect_ptr
25967 .ent test
25968 test:
25970 .end test
25971 .cfi_endproc
25973 .section .data,"aw",@progbits
25974 indirect_ptr:
25975 .dc.a personality
25977 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25978 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25979 if $gcc_cv_readelf -d conftest 2>&1 \
25980 | grep TEXTREL > /dev/null 2>&1; then
25982 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25983 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25985 else
25986 gcc_cv_ld_mips_personality_relaxation=yes
25990 rm -f conftest.s conftest.o conftest
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25993 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25994 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25996 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26000 esac
26002 # Mips and HP-UX need the GNU assembler.
26003 # Linux on IA64 might be able to use the Intel assembler.
26005 case "$target" in
26006 mips*-*-* | *-*-hpux* )
26007 if test x$gas_flag = xyes \
26008 || test x"$host" != x"$build" \
26009 || test ! -x "$gcc_cv_as" \
26010 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26012 else
26013 echo "*** This configuration requires the GNU assembler" >&2
26014 exit 1
26017 esac
26019 # ??? Not all targets support dwarf2 debug_line, even within a version
26020 # of gas. Moreover, we need to emit a valid instruction to trigger any
26021 # info to the output file. So, as supported targets are added to gas 2.11,
26022 # add some instruction here to (also) show we expect this might work.
26023 # ??? Once 2.11 is released, probably need to add first known working
26024 # version to the per-target configury.
26025 case "$cpu_type" in
26026 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26027 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
26028 insn="nop"
26030 ia64 | s390)
26031 insn="nop 0"
26033 mmix)
26034 insn="swym 0"
26036 esac
26037 if test x"$insn" != x; then
26038 conftest_s="\
26039 .file 1 \"conftest.s\"
26040 .loc 1 3 0
26041 $insn"
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26043 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26044 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26045 $as_echo_n "(cached) " >&6
26046 else
26047 gcc_cv_as_dwarf2_debug_line=no
26048 if test $in_tree_gas = yes; then
26049 if test $in_tree_gas_is_elf = yes \
26050 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26051 then gcc_cv_as_dwarf2_debug_line=yes
26053 elif test x$gcc_cv_as != x; then
26054 $as_echo "$conftest_s" > conftest.s
26055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26057 (eval $ac_try) 2>&5
26058 ac_status=$?
26059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26060 test $ac_status = 0; }; }
26061 then
26062 if test x$gcc_cv_objdump != x \
26063 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26064 | grep debug_line > /dev/null 2>&1; then
26065 gcc_cv_as_dwarf2_debug_line=yes
26067 else
26068 echo "configure: failed program was" >&5
26069 cat conftest.s >&5
26071 rm -f conftest.o conftest.s
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26075 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26078 # The .debug_line file table must be in the exact order that
26079 # we specified the files, since these indices are also used
26080 # by DW_AT_decl_file. Approximate this test by testing if
26081 # the assembler bitches if the same index is assigned twice.
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26083 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26084 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26085 $as_echo_n "(cached) " >&6
26086 else
26087 gcc_cv_as_dwarf2_file_buggy=no
26088 if test x$gcc_cv_as != x; then
26089 $as_echo ' .file 1 "foo.s"
26090 .file 1 "bar.s"' > conftest.s
26091 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26093 (eval $ac_try) 2>&5
26094 ac_status=$?
26095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26096 test $ac_status = 0; }; }
26097 then
26098 gcc_cv_as_dwarf2_file_buggy=yes
26099 else
26100 echo "configure: failed program was" >&5
26101 cat conftest.s >&5
26103 rm -f conftest.o conftest.s
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26107 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26110 if test $gcc_cv_as_dwarf2_debug_line = yes \
26111 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26113 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26118 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26119 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26120 $as_echo_n "(cached) " >&6
26121 else
26122 gcc_cv_as_gdwarf2_flag=no
26123 if test $in_tree_gas = yes; then
26124 if test $in_tree_gas_is_elf = yes \
26125 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26126 then gcc_cv_as_gdwarf2_flag=yes
26128 elif test x$gcc_cv_as != x; then
26129 $as_echo "$insn" > conftest.s
26130 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26132 (eval $ac_try) 2>&5
26133 ac_status=$?
26134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26135 test $ac_status = 0; }; }
26136 then
26137 gcc_cv_as_gdwarf2_flag=yes
26138 else
26139 echo "configure: failed program was" >&5
26140 cat conftest.s >&5
26142 rm -f conftest.o conftest.s
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26146 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26147 if test $gcc_cv_as_gdwarf2_flag = yes; then
26149 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26154 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26155 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26156 $as_echo_n "(cached) " >&6
26157 else
26158 gcc_cv_as_gstabs_flag=no
26159 if test $in_tree_gas = yes; then
26160 if test $in_tree_gas_is_elf = yes \
26161 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26162 then gcc_cv_as_gstabs_flag=yes
26164 elif test x$gcc_cv_as != x; then
26165 $as_echo "$insn" > conftest.s
26166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26168 (eval $ac_try) 2>&5
26169 ac_status=$?
26170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26171 test $ac_status = 0; }; }
26172 then
26173 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26174 # and warns about it, but still exits successfully. So check for
26175 # this.
26176 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26181 test $ac_status = 0; }; }
26182 then :
26183 else gcc_cv_as_gstabs_flag=yes
26185 else
26186 echo "configure: failed program was" >&5
26187 cat conftest.s >&5
26189 rm -f conftest.o conftest.s
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26193 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26194 if test $gcc_cv_as_gstabs_flag = yes; then
26196 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26201 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26202 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26203 $as_echo_n "(cached) " >&6
26204 else
26205 gcc_cv_as_debug_prefix_map_flag=no
26206 if test $in_tree_gas = yes; then
26207 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26208 then gcc_cv_as_debug_prefix_map_flag=yes
26210 elif test x$gcc_cv_as != x; then
26211 $as_echo "$insn" > conftest.s
26212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26214 (eval $ac_try) 2>&5
26215 ac_status=$?
26216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26217 test $ac_status = 0; }; }
26218 then
26219 gcc_cv_as_debug_prefix_map_flag=yes
26220 else
26221 echo "configure: failed program was" >&5
26222 cat conftest.s >&5
26224 rm -f conftest.o conftest.s
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26228 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26229 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26231 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26237 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26238 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26239 $as_echo_n "(cached) " >&6
26240 else
26241 gcc_cv_as_lcomm_with_alignment=no
26242 if test x$gcc_cv_as != x; then
26243 $as_echo '.lcomm bar,4,16' > conftest.s
26244 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26246 (eval $ac_try) 2>&5
26247 ac_status=$?
26248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26249 test $ac_status = 0; }; }
26250 then
26251 gcc_cv_as_lcomm_with_alignment=yes
26252 else
26253 echo "configure: failed program was" >&5
26254 cat conftest.s >&5
26256 rm -f conftest.o conftest.s
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26260 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26261 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26263 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26267 # Check whether --enable-gnu-unique-object was given.
26268 if test "${enable_gnu_unique_object+set}" = set; then :
26269 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26270 yes | no) ;;
26271 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26272 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26273 esac
26274 else
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26276 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26277 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26278 $as_echo_n "(cached) " >&6
26279 else
26280 gcc_cv_as_gnu_unique_object=no
26281 if test $in_tree_gas = yes; then
26282 if test $in_tree_gas_is_elf = yes \
26283 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26284 then gcc_cv_as_gnu_unique_object=yes
26286 elif test x$gcc_cv_as != x; then
26287 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26288 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26290 (eval $ac_try) 2>&5
26291 ac_status=$?
26292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26293 test $ac_status = 0; }; }
26294 then
26295 gcc_cv_as_gnu_unique_object=yes
26296 else
26297 echo "configure: failed program was" >&5
26298 cat conftest.s >&5
26300 rm -f conftest.o conftest.s
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26304 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26305 if test $gcc_cv_as_gnu_unique_object = yes; then
26306 # We need to unquote above to to use the definition from config.gcc.
26307 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26308 if test x$host = x$build -a x$host = x$target &&
26309 ldd --version 2>/dev/null &&
26310 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26311 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26312 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26313 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26314 if test "$glibcnum" -ge 2011 ; then
26315 enable_gnu_unique_object=yes
26321 if test x$enable_gnu_unique_object = xyes; then
26323 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26328 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26329 if test "${gcc_cv_as_line_zero+set}" = set; then :
26330 $as_echo_n "(cached) " >&6
26331 else
26332 gcc_cv_as_line_zero=no
26333 if test $in_tree_gas = yes; then
26334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26335 then gcc_cv_as_line_zero=yes
26337 elif test "x$gcc_cv_as" != x; then
26338 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26339 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26341 (eval $ac_try) 2>&5
26342 ac_status=$?
26343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26344 test $ac_status = 0; }; } &&
26345 test "x`cat conftest.out`" = x
26346 then
26347 gcc_cv_as_line_zero=yes
26348 else
26349 echo "configure: failed program was" >&5
26350 cat conftest.s >&5
26351 echo "configure: error output was" >&5
26352 cat conftest.out >&5
26354 rm -f conftest.o conftest.s conftest.out
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26358 $as_echo "$gcc_cv_as_line_zero" >&6; }
26359 if test "x$gcc_cv_as_line_zero" = xyes; then
26361 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26366 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26367 gcc_cv_ld_eh_frame_hdr=no
26368 if test $in_tree_ld = yes ; then
26369 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 \
26370 && test $in_tree_ld_is_elf = yes; then
26371 gcc_cv_ld_eh_frame_hdr=yes
26373 elif test x$gcc_cv_ld != x; then
26374 if echo "$ld_ver" | grep GNU > /dev/null; then
26375 # Check if linker supports --eh-frame-hdr option
26376 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26377 gcc_cv_ld_eh_frame_hdr=yes
26379 else
26380 case "$target" in
26381 *-*-solaris2*)
26382 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26383 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26384 gcc_cv_ld_eh_frame_hdr=yes
26387 esac
26391 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26393 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26397 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26400 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26401 gcc_cv_ld_eh_frame_ciev3=no
26402 if test $in_tree_ld = yes ; then
26403 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 \
26404 && test $in_tree_ld_is_elf = yes; then
26405 gcc_cv_ld_eh_frame_ciev3=yes
26407 elif test x$gcc_cv_ld != x; then
26408 if echo "$ld_ver" | grep GNU > /dev/null; then
26409 gcc_cv_ld_eh_frame_ciev3=yes
26410 if test 0"$ld_date" -lt 20040513; then
26411 if test -n "$ld_date"; then
26412 # If there was date string, but was earlier than 2004-05-13, fail
26413 gcc_cv_ld_eh_frame_ciev3=no
26414 elif test "$ld_vers_major" -lt 2; then
26415 gcc_cv_ld_eh_frame_ciev3=no
26416 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26417 gcc_cv_ld_eh_frame_ciev3=no
26420 else
26421 case "$target" in
26422 *-*-solaris2*)
26423 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26424 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26425 gcc_cv_ld_eh_frame_ciev3=yes
26428 esac
26432 cat >>confdefs.h <<_ACEOF
26433 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26434 _ACEOF
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26437 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26440 $as_echo_n "checking linker position independent executable support... " >&6; }
26441 gcc_cv_ld_pie=no
26442 if test $in_tree_ld = yes ; then
26443 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 \
26444 && test $in_tree_ld_is_elf = yes; then
26445 gcc_cv_ld_pie=yes
26447 elif test x$gcc_cv_ld != x; then
26448 # Check if linker supports -pie option
26449 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26450 gcc_cv_ld_pie=yes
26453 if test x"$gcc_cv_ld_pie" = xyes; then
26455 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26459 $as_echo "$gcc_cv_ld_pie" >&6; }
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26462 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26463 gcc_cv_ld_eh_gc_sections=no
26464 if test $in_tree_ld = yes ; then
26465 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 \
26466 && test $in_tree_ld_is_elf = yes; then
26467 gcc_cv_ld_eh_gc_sections=yes
26469 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26470 cat > conftest.s <<EOF
26471 .section .text
26472 .globl _start
26473 .type _start, @function
26474 _start:
26475 .long foo
26476 .size _start, .-_start
26477 .section .text.foo,"ax",@progbits
26478 .type foo, @function
26479 foo:
26480 .long 0
26481 .size foo, .-foo
26482 .section .gcc_except_table.foo,"a",@progbits
26483 .L0:
26484 .long 0
26485 .section .eh_frame,"a",@progbits
26486 .long .L0
26488 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26489 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26490 | grep "gc-sections option ignored" > /dev/null; then
26491 gcc_cv_ld_eh_gc_sections=no
26492 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26493 | grep gcc_except_table > /dev/null; then
26494 gcc_cv_ld_eh_gc_sections=yes
26495 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26496 if test x$gcc_cv_as_comdat_group != xyes; then
26497 gcc_cv_ld_eh_gc_sections=no
26498 cat > conftest.s <<EOF
26499 .section .text
26500 .globl _start
26501 .type _start, @function
26502 _start:
26503 .long foo
26504 .size _start, .-_start
26505 .section .gnu.linkonce.t.foo,"ax",@progbits
26506 .type foo, @function
26507 foo:
26508 .long 0
26509 .size foo, .-foo
26510 .section .gcc_except_table.foo,"a",@progbits
26511 .L0:
26512 .long 0
26513 .section .eh_frame,"a",@progbits
26514 .long .L0
26516 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26517 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26518 | grep "gc-sections option ignored" > /dev/null; then
26519 gcc_cv_ld_eh_gc_sections=no
26520 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26521 | grep gcc_except_table > /dev/null; then
26522 gcc_cv_ld_eh_gc_sections=yes
26528 rm -f conftest.s conftest.o conftest
26530 case "$target" in
26531 hppa*-*-linux*)
26532 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26533 gcc_cv_ld_eh_gc_sections=no
26535 esac
26536 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26538 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26542 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26545 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26546 gcc_cv_ld_eh_gc_sections_bug=no
26547 if test $in_tree_ld = yes ; then
26548 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 \
26549 && test $in_tree_ld_is_elf = yes; then
26550 gcc_cv_ld_eh_gc_sections_bug=yes
26552 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
26553 gcc_cv_ld_eh_gc_sections_bug=yes
26554 cat > conftest.s <<EOF
26555 .section .text
26556 .globl _start
26557 .type _start, @function
26558 _start:
26559 .long foo
26560 .size _start, .-_start
26561 .section .text.startup.foo,"ax",@progbits
26562 .type foo, @function
26563 foo:
26564 .long 0
26565 .size foo, .-foo
26566 .section .gcc_except_table.foo,"a",@progbits
26567 .L0:
26568 .long 0
26569 .section .eh_frame,"a",@progbits
26570 .long .L0
26572 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26573 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26574 | grep "gc-sections option ignored" > /dev/null; then
26576 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26577 | grep gcc_except_table > /dev/null; then
26578 gcc_cv_ld_eh_gc_sections_bug=no
26581 rm -f conftest.s conftest.o conftest
26583 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26585 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26589 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26591 # --------
26592 # UNSORTED
26593 # --------
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26596 $as_echo_n "checking linker --as-needed support... " >&6; }
26597 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26598 $as_echo_n "(cached) " >&6
26599 else
26600 gcc_cv_ld_as_needed=no
26601 gcc_cv_ld_as_needed_option='--as-needed'
26602 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26603 if test $in_tree_ld = yes ; then
26604 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 \
26605 && test $in_tree_ld_is_elf = yes; then
26606 gcc_cv_ld_as_needed=yes
26608 elif test x$gcc_cv_ld != x; then
26609 # Check if linker supports --as-needed and --no-as-needed options
26610 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26611 gcc_cv_ld_as_needed=yes
26612 else
26613 case "$target" in
26614 # Solaris 2 ld always supports -z ignore/-z record.
26615 *-*-solaris2*)
26616 gcc_cv_ld_as_needed=yes
26617 gcc_cv_ld_as_needed_option="-z ignore"
26618 gcc_cv_ld_no_as_needed_option="-z record"
26620 esac
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26626 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26627 if test x"$gcc_cv_ld_as_needed" = xyes; then
26629 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26632 cat >>confdefs.h <<_ACEOF
26633 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26634 _ACEOF
26637 cat >>confdefs.h <<_ACEOF
26638 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26639 _ACEOF
26643 case "$target:$tm_file" in
26644 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26645 case "$target" in
26646 *le-*-linux*)
26647 emul_name="-melf64lppc"
26649 *-*-linux*)
26650 emul_name="-melf64ppc"
26652 *-*-freebsd*)
26653 emul_name="-melf64ppc_fbsd"
26655 esac
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26657 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26658 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26659 $as_echo_n "(cached) " >&6
26660 else
26661 gcc_cv_ld_no_dot_syms=no
26662 if test x"$ld_is_gold" = xyes; then
26663 gcc_cv_ld_no_dot_syms=yes
26664 elif test $in_tree_ld = yes ; then
26665 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
26666 gcc_cv_ld_no_dot_syms=yes
26668 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26669 cat > conftest1.s <<EOF
26670 .text
26671 bl .foo
26673 cat > conftest2.s <<EOF
26674 .section ".opd","aw"
26675 .align 3
26676 .globl foo
26677 .type foo,@function
26678 foo:
26679 .quad .LEfoo,.TOC.@tocbase,0
26680 .text
26681 .LEfoo:
26683 .size foo,.-.LEfoo
26685 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26686 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26687 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26688 gcc_cv_ld_no_dot_syms=yes
26690 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26695 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26696 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26698 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26703 $as_echo_n "checking linker large toc support... " >&6; }
26704 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26705 $as_echo_n "(cached) " >&6
26706 else
26707 gcc_cv_ld_large_toc=no
26708 if test x"$ld_is_gold" = xyes; then
26709 gcc_cv_ld_large_toc=yes
26710 elif test $in_tree_ld = yes ; then
26711 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
26712 gcc_cv_ld_large_toc=yes
26714 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26715 cat > conftest.s <<EOF
26716 .section ".tbss","awT",@nobits
26717 .align 3
26718 ie0: .space 8
26719 .global _start
26720 .text
26721 _start:
26722 addis 9,13,ie0@got@tprel@ha
26723 ld 9,ie0@got@tprel@l(9)
26725 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26726 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26727 gcc_cv_ld_large_toc=yes
26729 rm -f conftest conftest.o conftest.s
26733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26734 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26735 if test x"$gcc_cv_ld_large_toc" = xyes; then
26737 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26741 esac
26743 case "$target" in
26744 *-*-aix*)
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26746 $as_echo_n "checking linker large toc support... " >&6; }
26747 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26748 $as_echo_n "(cached) " >&6
26749 else
26750 gcc_cv_ld_large_toc=no
26751 if test x$gcc_cv_as != x ; then
26752 cat > conftest.s <<EOF
26753 .toc
26754 LC..1:
26755 .tc a[TC],a[RW]
26756 .extern a[RW]
26757 .csect .text[PR]
26758 .largetoctest:
26759 addis 9,LC..1@u(2)
26760 ld 3,LC..1@l(9)
26762 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26763 gcc_cv_ld_large_toc=yes
26765 rm -f conftest conftest.o conftest.s
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26770 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26771 if test x"$gcc_cv_ld_large_toc" = xyes; then
26773 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26777 esac
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26780 $as_echo_n "checking linker --build-id support... " >&6; }
26781 if test "${gcc_cv_ld_buildid+set}" = set; then :
26782 $as_echo_n "(cached) " >&6
26783 else
26784 gcc_cv_ld_buildid=no
26785 if test $in_tree_ld = yes ; then
26786 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26787 "$gcc_cv_gld_minor_version" -ge 18 -o \
26788 "$gcc_cv_gld_major_version" -gt 2 \
26789 && test $in_tree_ld_is_elf = yes; then
26790 gcc_cv_ld_buildid=yes
26792 elif test x$gcc_cv_ld != x; then
26793 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26794 gcc_cv_ld_buildid=yes
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26799 $as_echo "$gcc_cv_ld_buildid" >&6; }
26800 if test x"$gcc_cv_ld_buildid" = xyes; then
26802 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26806 # Check whether --enable-linker-build-id was given.
26807 if test "${enable_linker_build_id+set}" = set; then :
26808 enableval=$enable_linker_build_id;
26809 else
26810 enable_linker_build_id=no
26814 if test x"$enable_linker_build_id" = xyes; then
26815 if test x"$gcc_cv_ld_buildid" = xyes; then
26817 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26819 else
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26821 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26825 # In binutils 2.21, GNU ld gained support for new emulations fully
26826 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26828 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26829 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26830 $as_echo_n "(cached) " >&6
26831 else
26832 gcc_cv_ld_sol2_emulation=no
26833 if test $in_tree_ld = yes ; then
26834 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26835 "$gcc_cv_gld_minor_version" -ge 21 -o \
26836 "$gcc_cv_gld_major_version" -gt 2 \
26837 && test $in_tree_ld_is_elf = yes; then
26838 gcc_cv_ld_sol2_emulation=yes
26840 elif test x$gcc_cv_ld != x; then
26841 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26842 grep _sol2 > /dev/null; then
26843 gcc_cv_ld_sol2_emulation=yes
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26848 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26849 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26851 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26856 $as_echo_n "checking linker --sysroot support... " >&6; }
26857 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26858 $as_echo_n "(cached) " >&6
26859 else
26860 gcc_cv_ld_sysroot=no
26861 if test $in_tree_ld = yes ; then
26862 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
26863 gcc_cv_ld_sysroot=yes
26865 elif test x$gcc_cv_ld != x; then
26866 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26867 gcc_cv_ld_sysroot=yes
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26872 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26873 if test x"$gcc_cv_ld_sysroot" = xyes; then
26875 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26879 if test x$with_sysroot = x && test x$host = x$target \
26880 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26881 && test "$prefix" != "NONE"; then
26883 cat >>confdefs.h <<_ACEOF
26884 #define PREFIX_INCLUDE_DIR "$prefix/include"
26885 _ACEOF
26889 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26890 if test "x$with_headers" != x; then
26891 target_header_dir=$with_headers
26892 elif test "x$with_sysroot" = x; then
26893 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26894 elif test "x$with_build_sysroot" != "x"; then
26895 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26896 elif test "x$with_sysroot" = xyes; then
26897 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26898 else
26899 target_header_dir="${with_sysroot}${native_system_header_dir}"
26901 else
26902 target_header_dir=${native_system_header_dir}
26905 # Test for stack protector support in target C library.
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26907 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26908 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26909 $as_echo_n "(cached) " >&6
26910 else
26911 gcc_cv_libc_provides_ssp=no
26912 case "$target" in
26913 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26914 # glibc 2.4 and later provides __stack_chk_fail and
26915 # either __stack_chk_guard, or TLS access to stack guard canary.
26916 if test -f $target_header_dir/features.h \
26917 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26918 $target_header_dir/features.h > /dev/null; then
26919 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26920 $target_header_dir/features.h > /dev/null; then
26921 gcc_cv_libc_provides_ssp=yes
26922 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26923 $target_header_dir/features.h > /dev/null \
26924 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26925 $target_header_dir/features.h > /dev/null; then
26926 gcc_cv_libc_provides_ssp=yes
26927 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26928 $target_header_dir/features.h > /dev/null && \
26929 test -f $target_header_dir/bits/uClibc_config.h && \
26930 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26931 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26932 gcc_cv_libc_provides_ssp=yes
26934 # all versions of Bionic support stack protector
26935 elif test -f $target_header_dir/sys/cdefs.h \
26936 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26937 $target_header_dir/sys/cdefs.h > /dev/null; then
26938 gcc_cv_libc_provides_ssp=yes
26941 *-*-gnu*)
26942 # Avoid complicated tests (see
26943 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26944 # simply assert that glibc does provide this, which is true for all
26945 # realistically usable GNU/Hurd configurations.
26946 gcc_cv_libc_provides_ssp=yes;;
26947 *-*-darwin* | *-*-freebsd*)
26948 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26949 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26950 gcc_cv_libc_provides_ssp=yes
26951 else
26952 echo "no __stack_chk_fail on this target"
26956 *) gcc_cv_libc_provides_ssp=no ;;
26957 esac
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26960 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26962 if test x$gcc_cv_libc_provides_ssp = xyes; then
26964 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26968 # Test for <sys/sdt.h> on the target.
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26971 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26972 have_sys_sdt_h=no
26973 if test -f $target_header_dir/sys/sdt.h; then
26974 have_sys_sdt_h=yes
26976 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26980 $as_echo "$have_sys_sdt_h" >&6; }
26982 # Check if TFmode long double should be used by default or not.
26983 # Some glibc targets used DFmode long double, but with glibc 2.4
26984 # and later they can use TFmode.
26985 case "$target" in
26986 powerpc*-*-linux* | \
26987 sparc*-*-linux* | \
26988 s390*-*-linux* | \
26989 alpha*-*-linux*)
26991 # Check whether --with-long-double-128 was given.
26992 if test "${with_long_double_128+set}" = set; then :
26993 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26994 else
26995 gcc_cv_target_ldbl128=no
26996 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26997 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26998 && gcc_cv_target_ldbl128=yes
27003 esac
27004 if test x$gcc_cv_target_ldbl128 = xyes; then
27006 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27011 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27012 gcc_cv_target_dl_iterate_phdr=unknown
27013 case "$target" in
27014 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27015 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27016 # libdl there, both complicating its use and breaking compatibility
27017 # between Solaris 10 updates.
27018 *-*-solaris2.1[1-9]*)
27019 # <link.h> needs both a dl_iterate_phdr declaration and support for
27020 # compilation with largefile support.
27021 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27022 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27023 gcc_cv_target_dl_iterate_phdr=yes
27024 else
27025 gcc_cv_target_dl_iterate_phdr=no
27028 esac
27030 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27032 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27036 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27038 # We no longer support different GC mechanisms. Emit an error if
27039 # the user configures with --with-gc.
27041 # Check whether --with-gc was given.
27042 if test "${with_gc+set}" = set; then :
27043 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27047 # Libraries to use on the host. This will normally be set by the top
27048 # level Makefile. Here we simply capture the value for our Makefile.
27049 if test -z "${HOST_LIBS+set}"; then
27050 HOST_LIBS=
27054 # Use the system's zlib library.
27055 zlibdir=-L../zlib
27056 zlibinc="-I\$(srcdir)/../zlib"
27058 # Check whether --with-system-zlib was given.
27059 if test "${with_system_zlib+set}" = set; then :
27060 withval=$with_system_zlib; zlibdir=
27061 zlibinc=
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27070 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27071 # Check whether --enable-maintainer-mode was given.
27072 if test "${enable_maintainer_mode+set}" = set; then :
27073 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27074 else
27075 maintainer_mode=no
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27080 $as_echo "$maintainer_mode" >&6; }
27082 if test "$maintainer_mode" = "yes"; then
27083 MAINT=''
27084 else
27085 MAINT='#'
27088 # --------------
27089 # Language hooks
27090 # --------------
27092 # Make empty files to contain the specs and options for each language.
27093 # Then add #include lines to for a compiler that has specs and/or options.
27095 subdirs=
27096 lang_opt_files=
27097 lang_specs_files=
27098 lang_tree_files=
27099 # These (without "all_") are set in each config-lang.in.
27100 # `language' must be a single word so is spelled singularly.
27101 all_languages=
27102 all_compilers=
27103 all_outputs='Makefile'
27104 # List of language makefile fragments.
27105 all_lang_makefrags=
27106 # Additional files for gengtype
27107 all_gtfiles="$target_gtfiles"
27109 # These are the languages that are set in --enable-languages,
27110 # and are available in the GCC tree.
27111 all_selected_languages=
27113 # Add the language fragments.
27114 # Languages are added via two mechanisms. Some information must be
27115 # recorded in makefile variables, these are defined in config-lang.in.
27116 # We accumulate them and plug them into the main Makefile.
27117 # The other mechanism is a set of hooks for each of the main targets
27118 # like `clean', `install', etc.
27120 language_hooks="Make-hooks"
27122 for lang in ${srcdir}/*/config-lang.in
27124 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27126 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27127 if test "x$lang_alias" = x
27128 then
27129 echo "$lang doesn't set \$language." 1>&2
27130 exit 1
27132 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27133 subdirs="$subdirs $subdir"
27135 # $gcc_subdir is where the gcc integration files are to be found
27136 # for a language, both for internal compiler purposes (compiler
27137 # sources implementing front-end to GCC tree converters), and for
27138 # build infrastructure purposes (Make-lang.in, etc.)
27140 # This will be <subdir> (relative to $srcdir) if a line like
27141 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27142 # is found in <langdir>/config-lang.in, and will remain <langdir>
27143 # otherwise.
27145 # Except for the language alias (fetched above), the regular
27146 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27147 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27148 # only this and the language alias.
27150 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27151 if [ "$gcc_subdir" = "" ]; then
27152 gcc_subdir="$subdir"
27155 case ",$enable_languages," in
27156 *,$lang_alias,*)
27157 all_selected_languages="$all_selected_languages $lang_alias"
27158 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27159 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27162 esac
27164 language=
27165 boot_language=
27166 compilers=
27167 outputs=
27168 gtfiles=
27169 subdir_requires=
27170 . ${srcdir}/$gcc_subdir/config-lang.in
27171 if test "x$language" = x
27172 then
27173 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27174 exit 1
27177 ok=:
27178 case ",$enable_languages," in
27179 *,$lang_alias,*) ;;
27181 for i in $subdir_requires; do
27182 test -f "${srcdir}/$i/config-lang.in" && continue
27183 ok=false
27184 break
27185 done
27187 esac
27188 $ok || continue
27190 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27191 if test -f $srcdir/$gcc_subdir/lang.opt; then
27192 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27193 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27195 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27196 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27198 all_languages="$all_languages $language"
27199 all_compilers="$all_compilers $compilers"
27200 all_outputs="$all_outputs $outputs"
27201 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27202 case ",$enable_languages," in
27203 *,lto,*)
27205 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27207 enable_lto=yes
27210 *) ;;
27211 esac
27212 done
27214 check_languages=
27215 for language in $all_selected_languages
27217 check_languages="$check_languages check-$language"
27218 done
27220 # We link each language in with a set of hooks, reached indirectly via
27221 # lang.${target}. Only do so for selected languages.
27223 rm -f Make-hooks
27224 touch Make-hooks
27225 target_list="all.cross start.encap rest.encap tags \
27226 install-common install-man install-info install-pdf install-html dvi \
27227 pdf html uninstall info man srcextra srcman srcinfo \
27228 mostlyclean clean distclean maintainer-clean install-plugin"
27230 for t in $target_list
27233 for lang in $all_selected_languages
27235 x="$x $lang.$t"
27236 done
27237 echo "lang.$t: $x" >> Make-hooks
27238 done
27240 # --------
27241 # Option include files
27242 # --------
27244 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27245 option_includes="option-includes.mk"
27248 # --------
27249 # UNSORTED
27250 # --------
27252 # Create .gdbinit.
27254 echo "dir ." > .gdbinit
27255 echo "dir ${srcdir}" >> .gdbinit
27256 if test x$gdb_needs_out_file_path = xyes
27257 then
27258 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27260 if test "x$subdirs" != x; then
27261 for s in $subdirs
27263 echo "dir ${srcdir}/$s" >> .gdbinit
27264 done
27266 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27268 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27272 # Find a directory in which to install a shared libgcc.
27274 # Check whether --enable-version-specific-runtime-libs was given.
27275 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27276 enableval=$enable_version_specific_runtime_libs;
27280 # Set default prefix canonicalization.
27282 # Check whether --enable-canonical-prefixes was given.
27283 if test "${enable_canonical_prefixes+set}" = set; then :
27284 enableval=$enable_canonical_prefixes;
27285 else
27286 enable_canonical_prefixes=yes
27289 if test x"$enable_canonical_prefixes" = xyes; then
27291 $as_echo "#define ENABLE_CANONICAL_PREFIXES 1" >>confdefs.h
27295 # Substitute configuration variables
27358 # Echo link setup.
27359 if test x${build} = x${host} ; then
27360 if test x${host} = x${target} ; then
27361 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27362 else
27363 echo "Links are now set up to build a cross-compiler" 1>&2
27364 echo " from ${host} to ${target}." 1>&2
27366 else
27367 if test x${host} = x${target} ; then
27368 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27369 echo " for ${target}." 1>&2
27370 else
27371 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27372 echo " from ${host} to ${target}." 1>&2
27384 if test "x${CLOOGLIBS}" != "x" ; then
27386 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27390 # Check for plugin support
27391 # Check whether --enable-plugin was given.
27392 if test "${enable_plugin+set}" = set; then :
27393 enableval=$enable_plugin; enable_plugin=$enableval
27394 else
27395 enable_plugin=yes; default_plugin=yes
27399 pluginlibs=
27401 case "${host}" in
27402 *-*-darwin*)
27403 if test x$build = x$host; then
27404 export_sym_check="nm${exeext} -g"
27405 elif test x$host = x$target; then
27406 export_sym_check="$gcc_cv_nm -g"
27407 else
27408 export_sym_check=
27412 if test x$build = x$host; then
27413 export_sym_check="objdump${exeext} -T"
27414 elif test x$host = x$target; then
27415 export_sym_check="$gcc_cv_objdump -T"
27416 else
27417 export_sym_check=
27420 esac
27422 if test x"$enable_plugin" = x"yes"; then
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27425 $as_echo_n "checking for exported symbols... " >&6; }
27426 if test "x$export_sym_check" != x; then
27427 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27428 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27429 if $export_sym_check conftest | grep foobar > /dev/null; then
27430 : # No need to use a flag
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27432 $as_echo "yes" >&6; }
27433 else
27434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27435 $as_echo "yes" >&6; }
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27437 $as_echo_n "checking for -rdynamic... " >&6; }
27438 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27439 if $export_sym_check conftest | grep foobar > /dev/null; then
27440 plugin_rdynamic=yes
27441 pluginlibs="-rdynamic"
27442 else
27443 plugin_rdynamic=no
27444 enable_plugin=no
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27447 $as_echo "$plugin_rdynamic" >&6; }
27449 else
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27451 $as_echo "unable to check" >&6; }
27454 # Check -ldl
27455 saved_LIBS="$LIBS"
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27457 $as_echo_n "checking for library containing dlopen... " >&6; }
27458 if test "${ac_cv_search_dlopen+set}" = set; then :
27459 $as_echo_n "(cached) " >&6
27460 else
27461 ac_func_search_save_LIBS=$LIBS
27462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27463 /* end confdefs.h. */
27465 /* Override any GCC internal prototype to avoid an error.
27466 Use char because int might match the return type of a GCC
27467 builtin and then its argument prototype would still apply. */
27468 #ifdef __cplusplus
27469 extern "C"
27470 #endif
27471 char dlopen ();
27473 main ()
27475 return dlopen ();
27477 return 0;
27479 _ACEOF
27480 for ac_lib in '' dl; do
27481 if test -z "$ac_lib"; then
27482 ac_res="none required"
27483 else
27484 ac_res=-l$ac_lib
27485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27487 if ac_fn_c_try_link "$LINENO"; then :
27488 ac_cv_search_dlopen=$ac_res
27490 rm -f core conftest.err conftest.$ac_objext \
27491 conftest$ac_exeext
27492 if test "${ac_cv_search_dlopen+set}" = set; then :
27493 break
27495 done
27496 if test "${ac_cv_search_dlopen+set}" = set; then :
27498 else
27499 ac_cv_search_dlopen=no
27501 rm conftest.$ac_ext
27502 LIBS=$ac_func_search_save_LIBS
27504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27505 $as_echo "$ac_cv_search_dlopen" >&6; }
27506 ac_res=$ac_cv_search_dlopen
27507 if test "$ac_res" != no; then :
27508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27512 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27513 pluginlibs="$pluginlibs -ldl"
27515 LIBS="$saved_LIBS"
27517 # Check that we can build shared objects with -fPIC -shared
27518 saved_LDFLAGS="$LDFLAGS"
27519 saved_CFLAGS="$CFLAGS"
27520 case "${host}" in
27521 *-*-darwin*)
27522 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27523 CFLAGS="$CFLAGS -fPIC"
27524 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27527 CFLAGS="$CFLAGS -fPIC"
27528 LDFLAGS="$LDFLAGS -fPIC -shared"
27530 esac
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27532 $as_echo_n "checking for -fPIC -shared... " >&6; }
27533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27534 /* end confdefs.h. */
27535 extern int X;
27537 main ()
27539 return X == 0;
27541 return 0;
27543 _ACEOF
27544 if ac_fn_c_try_link "$LINENO"; then :
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27546 $as_echo "yes" >&6; }; have_pic_shared=yes
27547 else
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27549 $as_echo "no" >&6; }; have_pic_shared=no
27551 rm -f core conftest.err conftest.$ac_objext \
27552 conftest$ac_exeext conftest.$ac_ext
27553 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27554 pluginlibs=
27555 enable_plugin=no
27557 LDFLAGS="$saved_LDFLAGS"
27558 CFLAGS="$saved_CFLAGS"
27560 # If plugin support had been requested but not available, fail.
27561 if test x"$enable_plugin" = x"no" ; then
27562 if test x"$default_plugin" != x"yes"; then
27563 as_fn_error "
27564 Building GCC with plugin support requires a host that supports
27565 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27572 if test x"$enable_plugin" = x"yes"; then
27574 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27579 # Check whether --enable-libquadmath-support was given.
27580 if test "${enable_libquadmath_support+set}" = set; then :
27581 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27582 else
27583 ENABLE_LIBQUADMATH_SUPPORT=yes
27586 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27588 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27593 # Specify what hash style to use by default.
27595 # Check whether --with-linker-hash-style was given.
27596 if test "${with_linker_hash_style+set}" = set; then :
27597 withval=$with_linker_hash_style; case x"$withval" in
27598 xsysv)
27599 LINKER_HASH_STYLE=sysv
27601 xgnu)
27602 LINKER_HASH_STYLE=gnu
27604 xboth)
27605 LINKER_HASH_STYLE=both
27608 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27610 esac
27611 else
27612 LINKER_HASH_STYLE=''
27615 if test x"${LINKER_HASH_STYLE}" != x; then
27617 cat >>confdefs.h <<_ACEOF
27618 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27619 _ACEOF
27623 # Configure the subdirectories
27624 # AC_CONFIG_SUBDIRS($subdirs)
27626 # Create the Makefile
27627 # and configure language subdirectories
27628 ac_config_files="$ac_config_files $all_outputs"
27631 ac_config_commands="$ac_config_commands default"
27633 cat >confcache <<\_ACEOF
27634 # This file is a shell script that caches the results of configure
27635 # tests run on this system so they can be shared between configure
27636 # scripts and configure runs, see configure's option --config-cache.
27637 # It is not useful on other systems. If it contains results you don't
27638 # want to keep, you may remove or edit it.
27640 # config.status only pays attention to the cache file if you give it
27641 # the --recheck option to rerun configure.
27643 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27644 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27645 # following values.
27647 _ACEOF
27649 # The following way of writing the cache mishandles newlines in values,
27650 # but we know of no workaround that is simple, portable, and efficient.
27651 # So, we kill variables containing newlines.
27652 # Ultrix sh set writes to stderr and can't be redirected directly,
27653 # and sets the high bit in the cache file unless we assign to the vars.
27655 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27656 eval ac_val=\$$ac_var
27657 case $ac_val in #(
27658 *${as_nl}*)
27659 case $ac_var in #(
27660 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27661 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27662 esac
27663 case $ac_var in #(
27664 _ | IFS | as_nl) ;; #(
27665 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27666 *) { eval $ac_var=; unset $ac_var;} ;;
27667 esac ;;
27668 esac
27669 done
27671 (set) 2>&1 |
27672 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27673 *${as_nl}ac_space=\ *)
27674 # `set' does not quote correctly, so add quotes: double-quote
27675 # substitution turns \\\\ into \\, and sed turns \\ into \.
27676 sed -n \
27677 "s/'/'\\\\''/g;
27678 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27679 ;; #(
27681 # `set' quotes correctly as required by POSIX, so do not add quotes.
27682 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27684 esac |
27685 sort
27687 sed '
27688 /^ac_cv_env_/b end
27689 t clear
27690 :clear
27691 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27692 t end
27693 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27694 :end' >>confcache
27695 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27696 if test -w "$cache_file"; then
27697 test "x$cache_file" != "x/dev/null" &&
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27699 $as_echo "$as_me: updating cache $cache_file" >&6;}
27700 cat confcache >$cache_file
27701 else
27702 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27703 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27706 rm -f confcache
27708 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27709 # Let make expand exec_prefix.
27710 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27712 DEFS=-DHAVE_CONFIG_H
27714 ac_libobjs=
27715 ac_ltlibobjs=
27716 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27717 # 1. Remove the extension, and $U if already installed.
27718 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27719 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27720 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27721 # will be set to the directory where LIBOBJS objects are built.
27722 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27723 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27724 done
27725 LIBOBJS=$ac_libobjs
27727 LTLIBOBJS=$ac_ltlibobjs
27732 : ${CONFIG_STATUS=./config.status}
27733 ac_write_fail=0
27734 ac_clean_files_save=$ac_clean_files
27735 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27737 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27738 as_write_fail=0
27739 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27740 #! $SHELL
27741 # Generated by $as_me.
27742 # Run this file to recreate the current configuration.
27743 # Compiler output produced by configure, useful for debugging
27744 # configure, is in config.log if it exists.
27746 debug=false
27747 ac_cs_recheck=false
27748 ac_cs_silent=false
27750 SHELL=\${CONFIG_SHELL-$SHELL}
27751 export SHELL
27752 _ASEOF
27753 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27754 ## -------------------- ##
27755 ## M4sh Initialization. ##
27756 ## -------------------- ##
27758 # Be more Bourne compatible
27759 DUALCASE=1; export DUALCASE # for MKS sh
27760 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27761 emulate sh
27762 NULLCMD=:
27763 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27764 # is contrary to our usage. Disable this feature.
27765 alias -g '${1+"$@"}'='"$@"'
27766 setopt NO_GLOB_SUBST
27767 else
27768 case `(set -o) 2>/dev/null` in #(
27769 *posix*) :
27770 set -o posix ;; #(
27771 *) :
27773 esac
27777 as_nl='
27779 export as_nl
27780 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27781 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27782 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27783 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27784 # Prefer a ksh shell builtin over an external printf program on Solaris,
27785 # but without wasting forks for bash or zsh.
27786 if test -z "$BASH_VERSION$ZSH_VERSION" \
27787 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27788 as_echo='print -r --'
27789 as_echo_n='print -rn --'
27790 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27791 as_echo='printf %s\n'
27792 as_echo_n='printf %s'
27793 else
27794 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27795 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27796 as_echo_n='/usr/ucb/echo -n'
27797 else
27798 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27799 as_echo_n_body='eval
27800 arg=$1;
27801 case $arg in #(
27802 *"$as_nl"*)
27803 expr "X$arg" : "X\\(.*\\)$as_nl";
27804 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27805 esac;
27806 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27808 export as_echo_n_body
27809 as_echo_n='sh -c $as_echo_n_body as_echo'
27811 export as_echo_body
27812 as_echo='sh -c $as_echo_body as_echo'
27815 # The user is always right.
27816 if test "${PATH_SEPARATOR+set}" != set; then
27817 PATH_SEPARATOR=:
27818 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27819 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27820 PATH_SEPARATOR=';'
27825 # IFS
27826 # We need space, tab and new line, in precisely that order. Quoting is
27827 # there to prevent editors from complaining about space-tab.
27828 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27829 # splitting by setting IFS to empty value.)
27830 IFS=" "" $as_nl"
27832 # Find who we are. Look in the path if we contain no directory separator.
27833 case $0 in #((
27834 *[\\/]* ) as_myself=$0 ;;
27835 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27836 for as_dir in $PATH
27838 IFS=$as_save_IFS
27839 test -z "$as_dir" && as_dir=.
27840 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27841 done
27842 IFS=$as_save_IFS
27845 esac
27846 # We did not find ourselves, most probably we were run as `sh COMMAND'
27847 # in which case we are not to be found in the path.
27848 if test "x$as_myself" = x; then
27849 as_myself=$0
27851 if test ! -f "$as_myself"; then
27852 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27853 exit 1
27856 # Unset variables that we do not need and which cause bugs (e.g. in
27857 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27858 # suppresses any "Segmentation fault" message there. '((' could
27859 # trigger a bug in pdksh 5.2.14.
27860 for as_var in BASH_ENV ENV MAIL MAILPATH
27861 do eval test x\${$as_var+set} = xset \
27862 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27863 done
27864 PS1='$ '
27865 PS2='> '
27866 PS4='+ '
27868 # NLS nuisances.
27869 LC_ALL=C
27870 export LC_ALL
27871 LANGUAGE=C
27872 export LANGUAGE
27874 # CDPATH.
27875 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27878 # as_fn_error ERROR [LINENO LOG_FD]
27879 # ---------------------------------
27880 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27881 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27882 # script with status $?, using 1 if that was 0.
27883 as_fn_error ()
27885 as_status=$?; test $as_status -eq 0 && as_status=1
27886 if test "$3"; then
27887 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27888 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27890 $as_echo "$as_me: error: $1" >&2
27891 as_fn_exit $as_status
27892 } # as_fn_error
27895 # as_fn_set_status STATUS
27896 # -----------------------
27897 # Set $? to STATUS, without forking.
27898 as_fn_set_status ()
27900 return $1
27901 } # as_fn_set_status
27903 # as_fn_exit STATUS
27904 # -----------------
27905 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27906 as_fn_exit ()
27908 set +e
27909 as_fn_set_status $1
27910 exit $1
27911 } # as_fn_exit
27913 # as_fn_unset VAR
27914 # ---------------
27915 # Portably unset VAR.
27916 as_fn_unset ()
27918 { eval $1=; unset $1;}
27920 as_unset=as_fn_unset
27921 # as_fn_append VAR VALUE
27922 # ----------------------
27923 # Append the text in VALUE to the end of the definition contained in VAR. Take
27924 # advantage of any shell optimizations that allow amortized linear growth over
27925 # repeated appends, instead of the typical quadratic growth present in naive
27926 # implementations.
27927 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27928 eval 'as_fn_append ()
27930 eval $1+=\$2
27932 else
27933 as_fn_append ()
27935 eval $1=\$$1\$2
27937 fi # as_fn_append
27939 # as_fn_arith ARG...
27940 # ------------------
27941 # Perform arithmetic evaluation on the ARGs, and store the result in the
27942 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27943 # must be portable across $(()) and expr.
27944 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27945 eval 'as_fn_arith ()
27947 as_val=$(( $* ))
27949 else
27950 as_fn_arith ()
27952 as_val=`expr "$@" || test $? -eq 1`
27954 fi # as_fn_arith
27957 if expr a : '\(a\)' >/dev/null 2>&1 &&
27958 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27959 as_expr=expr
27960 else
27961 as_expr=false
27964 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27965 as_basename=basename
27966 else
27967 as_basename=false
27970 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27971 as_dirname=dirname
27972 else
27973 as_dirname=false
27976 as_me=`$as_basename -- "$0" ||
27977 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27978 X"$0" : 'X\(//\)$' \| \
27979 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27980 $as_echo X/"$0" |
27981 sed '/^.*\/\([^/][^/]*\)\/*$/{
27982 s//\1/
27985 /^X\/\(\/\/\)$/{
27986 s//\1/
27989 /^X\/\(\/\).*/{
27990 s//\1/
27993 s/.*/./; q'`
27995 # Avoid depending upon Character Ranges.
27996 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27997 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27998 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27999 as_cr_digits='0123456789'
28000 as_cr_alnum=$as_cr_Letters$as_cr_digits
28002 ECHO_C= ECHO_N= ECHO_T=
28003 case `echo -n x` in #(((((
28004 -n*)
28005 case `echo 'xy\c'` in
28006 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28007 xy) ECHO_C='\c';;
28008 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28009 ECHO_T=' ';;
28010 esac;;
28012 ECHO_N='-n';;
28013 esac
28015 rm -f conf$$ conf$$.exe conf$$.file
28016 if test -d conf$$.dir; then
28017 rm -f conf$$.dir/conf$$.file
28018 else
28019 rm -f conf$$.dir
28020 mkdir conf$$.dir 2>/dev/null
28022 if (echo >conf$$.file) 2>/dev/null; then
28023 if ln -s conf$$.file conf$$ 2>/dev/null; then
28024 as_ln_s='ln -s'
28025 # ... but there are two gotchas:
28026 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28027 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28028 # In both cases, we have to default to `cp -p'.
28029 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28030 as_ln_s='cp -p'
28031 elif ln conf$$.file conf$$ 2>/dev/null; then
28032 as_ln_s=ln
28033 else
28034 as_ln_s='cp -p'
28036 else
28037 as_ln_s='cp -p'
28039 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28040 rmdir conf$$.dir 2>/dev/null
28043 # as_fn_mkdir_p
28044 # -------------
28045 # Create "$as_dir" as a directory, including parents if necessary.
28046 as_fn_mkdir_p ()
28049 case $as_dir in #(
28050 -*) as_dir=./$as_dir;;
28051 esac
28052 test -d "$as_dir" || eval $as_mkdir_p || {
28053 as_dirs=
28054 while :; do
28055 case $as_dir in #(
28056 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28057 *) as_qdir=$as_dir;;
28058 esac
28059 as_dirs="'$as_qdir' $as_dirs"
28060 as_dir=`$as_dirname -- "$as_dir" ||
28061 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28062 X"$as_dir" : 'X\(//\)[^/]' \| \
28063 X"$as_dir" : 'X\(//\)$' \| \
28064 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28065 $as_echo X"$as_dir" |
28066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28067 s//\1/
28070 /^X\(\/\/\)[^/].*/{
28071 s//\1/
28074 /^X\(\/\/\)$/{
28075 s//\1/
28078 /^X\(\/\).*/{
28079 s//\1/
28082 s/.*/./; q'`
28083 test -d "$as_dir" && break
28084 done
28085 test -z "$as_dirs" || eval "mkdir $as_dirs"
28086 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28089 } # as_fn_mkdir_p
28090 if mkdir -p . 2>/dev/null; then
28091 as_mkdir_p='mkdir -p "$as_dir"'
28092 else
28093 test -d ./-p && rmdir ./-p
28094 as_mkdir_p=false
28097 if test -x / >/dev/null 2>&1; then
28098 as_test_x='test -x'
28099 else
28100 if ls -dL / >/dev/null 2>&1; then
28101 as_ls_L_option=L
28102 else
28103 as_ls_L_option=
28105 as_test_x='
28106 eval sh -c '\''
28107 if test -d "$1"; then
28108 test -d "$1/.";
28109 else
28110 case $1 in #(
28111 -*)set "./$1";;
28112 esac;
28113 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28114 ???[sx]*):;;*)false;;esac;fi
28115 '\'' sh
28118 as_executable_p=$as_test_x
28120 # Sed expression to map a string onto a valid CPP name.
28121 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28123 # Sed expression to map a string onto a valid variable name.
28124 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28127 exec 6>&1
28128 ## ----------------------------------- ##
28129 ## Main body of $CONFIG_STATUS script. ##
28130 ## ----------------------------------- ##
28131 _ASEOF
28132 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28135 # Save the log message, to keep $0 and so on meaningful, and to
28136 # report actual input values of CONFIG_FILES etc. instead of their
28137 # values after options handling.
28138 ac_log="
28139 This file was extended by $as_me, which was
28140 generated by GNU Autoconf 2.64. Invocation command line was
28142 CONFIG_FILES = $CONFIG_FILES
28143 CONFIG_HEADERS = $CONFIG_HEADERS
28144 CONFIG_LINKS = $CONFIG_LINKS
28145 CONFIG_COMMANDS = $CONFIG_COMMANDS
28146 $ $0 $@
28148 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28151 _ACEOF
28153 case $ac_config_files in *"
28154 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28155 esac
28157 case $ac_config_headers in *"
28158 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28159 esac
28162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28163 # Files that config.status was made for.
28164 config_files="$ac_config_files"
28165 config_headers="$ac_config_headers"
28166 config_commands="$ac_config_commands"
28168 _ACEOF
28170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28171 ac_cs_usage="\
28172 \`$as_me' instantiates files and other configuration actions
28173 from templates according to the current configuration. Unless the files
28174 and actions are specified as TAGs, all are instantiated by default.
28176 Usage: $0 [OPTION]... [TAG]...
28178 -h, --help print this help, then exit
28179 -V, --version print version number and configuration settings, then exit
28180 -q, --quiet, --silent
28181 do not print progress messages
28182 -d, --debug don't remove temporary files
28183 --recheck update $as_me by reconfiguring in the same conditions
28184 --file=FILE[:TEMPLATE]
28185 instantiate the configuration file FILE
28186 --header=FILE[:TEMPLATE]
28187 instantiate the configuration header FILE
28189 Configuration files:
28190 $config_files
28192 Configuration headers:
28193 $config_headers
28195 Configuration commands:
28196 $config_commands
28198 Report bugs to the package provider."
28200 _ACEOF
28201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28202 ac_cs_version="\\
28203 config.status
28204 configured by $0, generated by GNU Autoconf 2.64,
28205 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28207 Copyright (C) 2009 Free Software Foundation, Inc.
28208 This config.status script is free software; the Free Software Foundation
28209 gives unlimited permission to copy, distribute and modify it."
28211 ac_pwd='$ac_pwd'
28212 srcdir='$srcdir'
28213 AWK='$AWK'
28214 test -n "\$AWK" || AWK=awk
28215 _ACEOF
28217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28218 # The default lists apply if the user does not specify any file.
28219 ac_need_defaults=:
28220 while test $# != 0
28222 case $1 in
28223 --*=*)
28224 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28225 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28226 ac_shift=:
28229 ac_option=$1
28230 ac_optarg=$2
28231 ac_shift=shift
28233 esac
28235 case $ac_option in
28236 # Handling of the options.
28237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28238 ac_cs_recheck=: ;;
28239 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28240 $as_echo "$ac_cs_version"; exit ;;
28241 --debug | --debu | --deb | --de | --d | -d )
28242 debug=: ;;
28243 --file | --fil | --fi | --f )
28244 $ac_shift
28245 case $ac_optarg in
28246 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28247 esac
28248 as_fn_append CONFIG_FILES " '$ac_optarg'"
28249 ac_need_defaults=false;;
28250 --header | --heade | --head | --hea )
28251 $ac_shift
28252 case $ac_optarg in
28253 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28254 esac
28255 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28256 ac_need_defaults=false;;
28257 --he | --h)
28258 # Conflict between --help and --header
28259 as_fn_error "ambiguous option: \`$1'
28260 Try \`$0 --help' for more information.";;
28261 --help | --hel | -h )
28262 $as_echo "$ac_cs_usage"; exit ;;
28263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28264 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28265 ac_cs_silent=: ;;
28267 # This is an error.
28268 -*) as_fn_error "unrecognized option: \`$1'
28269 Try \`$0 --help' for more information." ;;
28271 *) as_fn_append ac_config_targets " $1"
28272 ac_need_defaults=false ;;
28274 esac
28275 shift
28276 done
28278 ac_configure_extra_args=
28280 if $ac_cs_silent; then
28281 exec 6>/dev/null
28282 ac_configure_extra_args="$ac_configure_extra_args --silent"
28285 _ACEOF
28286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28287 if \$ac_cs_recheck; then
28288 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28289 shift
28290 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28291 CONFIG_SHELL='$SHELL'
28292 export CONFIG_SHELL
28293 exec "\$@"
28296 _ACEOF
28297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28298 exec 5>>config.log
28300 echo
28301 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28302 ## Running $as_me. ##
28303 _ASBOX
28304 $as_echo "$ac_log"
28305 } >&5
28307 _ACEOF
28308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28310 # INIT-COMMANDS
28312 subdirs='$subdirs'
28314 _ACEOF
28316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28318 # Handling of arguments.
28319 for ac_config_target in $ac_config_targets
28321 case $ac_config_target in
28322 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28323 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28324 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28325 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28326 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28327 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28329 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28330 esac
28331 done
28334 # If the user did not use the arguments to specify the items to instantiate,
28335 # then the envvar interface is used. Set only those that are not.
28336 # We use the long form for the default assignment because of an extremely
28337 # bizarre bug on SunOS 4.1.3.
28338 if $ac_need_defaults; then
28339 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28340 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28341 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28344 # Have a temporary directory for convenience. Make it in the build tree
28345 # simply because there is no reason against having it here, and in addition,
28346 # creating and moving files from /tmp can sometimes cause problems.
28347 # Hook for its removal unless debugging.
28348 # Note that there is a small window in which the directory will not be cleaned:
28349 # after its creation but before its name has been assigned to `$tmp'.
28350 $debug ||
28352 tmp=
28353 trap 'exit_status=$?
28354 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28356 trap 'as_fn_exit 1' 1 2 13 15
28358 # Create a (secure) tmp directory for tmp files.
28361 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28362 test -n "$tmp" && test -d "$tmp"
28363 } ||
28365 tmp=./conf$$-$RANDOM
28366 (umask 077 && mkdir "$tmp")
28367 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28369 # Set up the scripts for CONFIG_FILES section.
28370 # No need to generate them if there are no CONFIG_FILES.
28371 # This happens for instance with `./config.status config.h'.
28372 if test -n "$CONFIG_FILES"; then
28374 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28375 ac_cs_awk_getline=:
28376 ac_cs_awk_pipe_init=
28377 ac_cs_awk_read_file='
28378 while ((getline aline < (F[key])) > 0)
28379 print(aline)
28380 close(F[key])'
28381 ac_cs_awk_pipe_fini=
28382 else
28383 ac_cs_awk_getline=false
28384 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28385 ac_cs_awk_read_file='
28386 print "|#_!!_#|"
28387 print "cat " F[key] " &&"
28388 '$ac_cs_awk_pipe_init
28389 # The final `:' finishes the AND list.
28390 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28392 ac_cr=`echo X | tr X '\015'`
28393 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28394 # But we know of no other shell where ac_cr would be empty at this
28395 # point, so we can use a bashism as a fallback.
28396 if test "x$ac_cr" = x; then
28397 eval ac_cr=\$\'\\r\'
28399 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28400 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28401 ac_cs_awk_cr='\r'
28402 else
28403 ac_cs_awk_cr=$ac_cr
28406 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28407 _ACEOF
28409 # Create commands to substitute file output variables.
28411 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28412 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28413 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28414 echo "_ACAWK" &&
28415 echo "_ACEOF"
28416 } >conf$$files.sh &&
28417 . ./conf$$files.sh ||
28418 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28419 rm -f conf$$files.sh
28422 echo "cat >conf$$subs.awk <<_ACEOF" &&
28423 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28424 echo "_ACEOF"
28425 } >conf$$subs.sh ||
28426 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28427 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28428 ac_delim='%!_!# '
28429 for ac_last_try in false false false false false :; do
28430 . ./conf$$subs.sh ||
28431 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28433 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28434 if test $ac_delim_n = $ac_delim_num; then
28435 break
28436 elif $ac_last_try; then
28437 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28438 else
28439 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28441 done
28442 rm -f conf$$subs.sh
28444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28445 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28446 _ACEOF
28447 sed -n '
28449 s/^/S["/; s/!.*/"]=/
28452 s/^[^!]*!//
28453 :repl
28454 t repl
28455 s/'"$ac_delim"'$//
28456 t delim
28459 s/\(.\{148\}\).*/\1/
28460 t more1
28461 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28464 b repl
28465 :more1
28466 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28469 s/.\{148\}//
28470 t nl
28471 :delim
28473 s/\(.\{148\}\).*/\1/
28474 t more2
28475 s/["\\]/\\&/g; s/^/"/; s/$/"/
28478 :more2
28479 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28482 s/.\{148\}//
28483 t delim
28484 ' <conf$$subs.awk | sed '
28485 /^[^""]/{
28487 s/\n//
28489 ' >>$CONFIG_STATUS || ac_write_fail=1
28490 rm -f conf$$subs.awk
28491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28492 _ACAWK
28493 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28494 for (key in S) S_is_set[key] = 1
28495 FS = "\a"
28496 \$ac_cs_awk_pipe_init
28499 line = $ 0
28500 nfields = split(line, field, "@")
28501 substed = 0
28502 len = length(field[1])
28503 for (i = 2; i < nfields; i++) {
28504 key = field[i]
28505 keylen = length(key)
28506 if (S_is_set[key]) {
28507 value = S[key]
28508 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28509 len += length(value) + length(field[++i])
28510 substed = 1
28511 } else
28512 len += 1 + keylen
28514 if (nfields == 3 && !substed) {
28515 key = field[2]
28516 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28517 \$ac_cs_awk_read_file
28518 next
28521 print line
28523 \$ac_cs_awk_pipe_fini
28524 _ACAWK
28525 _ACEOF
28526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28527 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28528 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28529 else
28531 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28532 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28533 _ACEOF
28535 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28536 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28537 # trailing colons and then remove the whole line if VPATH becomes empty
28538 # (actually we leave an empty line to preserve line numbers).
28539 if test "x$srcdir" = x.; then
28540 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28541 s/:*\$(srcdir):*/:/
28542 s/:*\${srcdir}:*/:/
28543 s/:*@srcdir@:*/:/
28544 s/^\([^=]*=[ ]*\):*/\1/
28545 s/:*$//
28546 s/^[^=]*=[ ]*$//
28550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28551 fi # test -n "$CONFIG_FILES"
28553 # Set up the scripts for CONFIG_HEADERS section.
28554 # No need to generate them if there are no CONFIG_HEADERS.
28555 # This happens for instance with `./config.status Makefile'.
28556 if test -n "$CONFIG_HEADERS"; then
28557 cat >"$tmp/defines.awk" <<\_ACAWK ||
28558 BEGIN {
28559 _ACEOF
28561 # Transform confdefs.h into an awk script `defines.awk', embedded as
28562 # here-document in config.status, that substitutes the proper values into
28563 # config.h.in to produce config.h.
28565 # Create a delimiter string that does not exist in confdefs.h, to ease
28566 # handling of long lines.
28567 ac_delim='%!_!# '
28568 for ac_last_try in false false :; do
28569 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28570 if test -z "$ac_t"; then
28571 break
28572 elif $ac_last_try; then
28573 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28574 else
28575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28577 done
28579 # For the awk script, D is an array of macro values keyed by name,
28580 # likewise P contains macro parameters if any. Preserve backslash
28581 # newline sequences.
28583 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28584 sed -n '
28585 s/.\{148\}/&'"$ac_delim"'/g
28586 t rset
28587 :rset
28588 s/^[ ]*#[ ]*define[ ][ ]*/ /
28589 t def
28591 :def
28592 s/\\$//
28593 t bsnl
28594 s/["\\]/\\&/g
28595 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28596 D["\1"]=" \3"/p
28597 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28599 :bsnl
28600 s/["\\]/\\&/g
28601 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28602 D["\1"]=" \3\\\\\\n"\\/p
28603 t cont
28604 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28605 t cont
28607 :cont
28609 s/.\{148\}/&'"$ac_delim"'/g
28610 t clear
28611 :clear
28612 s/\\$//
28613 t bsnlc
28614 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28616 :bsnlc
28617 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28618 b cont
28619 ' <confdefs.h | sed '
28620 s/'"$ac_delim"'/"\\\
28621 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28624 for (key in D) D_is_set[key] = 1
28625 FS = "\a"
28627 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28628 line = \$ 0
28629 split(line, arg, " ")
28630 if (arg[1] == "#") {
28631 defundef = arg[2]
28632 mac1 = arg[3]
28633 } else {
28634 defundef = substr(arg[1], 2)
28635 mac1 = arg[2]
28637 split(mac1, mac2, "(") #)
28638 macro = mac2[1]
28639 prefix = substr(line, 1, index(line, defundef) - 1)
28640 if (D_is_set[macro]) {
28641 # Preserve the white space surrounding the "#".
28642 print prefix "define", macro P[macro] D[macro]
28643 next
28644 } else {
28645 # Replace #undef with comments. This is necessary, for example,
28646 # in the case of _POSIX_SOURCE, which is predefined and required
28647 # on some systems where configure will not decide to define it.
28648 if (defundef == "undef") {
28649 print "/*", prefix defundef, macro, "*/"
28650 next
28654 { print }
28655 _ACAWK
28656 _ACEOF
28657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28658 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28659 fi # test -n "$CONFIG_HEADERS"
28662 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28663 shift
28664 for ac_tag
28666 case $ac_tag in
28667 :[FHLC]) ac_mode=$ac_tag; continue;;
28668 esac
28669 case $ac_mode$ac_tag in
28670 :[FHL]*:*);;
28671 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28672 :[FH]-) ac_tag=-:-;;
28673 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28674 esac
28675 ac_save_IFS=$IFS
28676 IFS=:
28677 set x $ac_tag
28678 IFS=$ac_save_IFS
28679 shift
28680 ac_file=$1
28681 shift
28683 case $ac_mode in
28684 :L) ac_source=$1;;
28685 :[FH])
28686 ac_file_inputs=
28687 for ac_f
28689 case $ac_f in
28690 -) ac_f="$tmp/stdin";;
28691 *) # Look for the file first in the build tree, then in the source tree
28692 # (if the path is not absolute). The absolute path cannot be DOS-style,
28693 # because $ac_f cannot contain `:'.
28694 test -f "$ac_f" ||
28695 case $ac_f in
28696 [\\/$]*) false;;
28697 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28698 esac ||
28699 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28700 esac
28701 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28702 as_fn_append ac_file_inputs " '$ac_f'"
28703 done
28705 # Let's still pretend it is `configure' which instantiates (i.e., don't
28706 # use $as_me), people would be surprised to read:
28707 # /* config.h. Generated by config.status. */
28708 configure_input='Generated from '`
28709 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28710 `' by configure.'
28711 if test x"$ac_file" != x-; then
28712 configure_input="$ac_file. $configure_input"
28713 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28714 $as_echo "$as_me: creating $ac_file" >&6;}
28716 # Neutralize special characters interpreted by sed in replacement strings.
28717 case $configure_input in #(
28718 *\&* | *\|* | *\\* )
28719 ac_sed_conf_input=`$as_echo "$configure_input" |
28720 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28721 *) ac_sed_conf_input=$configure_input;;
28722 esac
28724 case $ac_tag in
28725 *:-:* | *:-) cat >"$tmp/stdin" \
28726 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28727 esac
28729 esac
28731 ac_dir=`$as_dirname -- "$ac_file" ||
28732 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28733 X"$ac_file" : 'X\(//\)[^/]' \| \
28734 X"$ac_file" : 'X\(//\)$' \| \
28735 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28736 $as_echo X"$ac_file" |
28737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28738 s//\1/
28741 /^X\(\/\/\)[^/].*/{
28742 s//\1/
28745 /^X\(\/\/\)$/{
28746 s//\1/
28749 /^X\(\/\).*/{
28750 s//\1/
28753 s/.*/./; q'`
28754 as_dir="$ac_dir"; as_fn_mkdir_p
28755 ac_builddir=.
28757 case "$ac_dir" in
28758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28760 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28761 # A ".." for each directory in $ac_dir_suffix.
28762 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28763 case $ac_top_builddir_sub in
28764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28766 esac ;;
28767 esac
28768 ac_abs_top_builddir=$ac_pwd
28769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28770 # for backward compatibility:
28771 ac_top_builddir=$ac_top_build_prefix
28773 case $srcdir in
28774 .) # We are building in place.
28775 ac_srcdir=.
28776 ac_top_srcdir=$ac_top_builddir_sub
28777 ac_abs_top_srcdir=$ac_pwd ;;
28778 [\\/]* | ?:[\\/]* ) # Absolute name.
28779 ac_srcdir=$srcdir$ac_dir_suffix;
28780 ac_top_srcdir=$srcdir
28781 ac_abs_top_srcdir=$srcdir ;;
28782 *) # Relative name.
28783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28784 ac_top_srcdir=$ac_top_build_prefix$srcdir
28785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28786 esac
28787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28790 case $ac_mode in
28793 # CONFIG_FILE
28796 _ACEOF
28798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28799 # If the template does not know about datarootdir, expand it.
28800 # FIXME: This hack should be removed a few years after 2.60.
28801 ac_datarootdir_hack=; ac_datarootdir_seen=
28802 ac_sed_dataroot='
28803 /datarootdir/ {
28807 /@datadir@/p
28808 /@docdir@/p
28809 /@infodir@/p
28810 /@localedir@/p
28811 /@mandir@/p'
28812 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28813 *datarootdir*) ac_datarootdir_seen=yes;;
28814 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28816 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28817 _ACEOF
28818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28819 ac_datarootdir_hack='
28820 s&@datadir@&$datadir&g
28821 s&@docdir@&$docdir&g
28822 s&@infodir@&$infodir&g
28823 s&@localedir@&$localedir&g
28824 s&@mandir@&$mandir&g
28825 s&\\\${datarootdir}&$datarootdir&g' ;;
28826 esac
28827 _ACEOF
28829 # Neutralize VPATH when `$srcdir' = `.'.
28830 # Shell code in configure.ac might set extrasub.
28831 # FIXME: do we really want to maintain this feature?
28832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28833 ac_sed_extra="$ac_vpsub
28834 $extrasub
28835 _ACEOF
28836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28839 s|@configure_input@|$ac_sed_conf_input|;t t
28840 s&@top_builddir@&$ac_top_builddir_sub&;t t
28841 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28842 s&@srcdir@&$ac_srcdir&;t t
28843 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28844 s&@top_srcdir@&$ac_top_srcdir&;t t
28845 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28846 s&@builddir@&$ac_builddir&;t t
28847 s&@abs_builddir@&$ac_abs_builddir&;t t
28848 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28849 $ac_datarootdir_hack
28851 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28852 if $ac_cs_awk_getline; then
28853 $AWK -f "$tmp/subs.awk"
28854 else
28855 $AWK -f "$tmp/subs.awk" | $SHELL
28856 fi >$tmp/out \
28857 || as_fn_error "could not create $ac_file" "$LINENO" 5
28859 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28860 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28861 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28863 which seems to be undefined. Please make sure it is defined." >&5
28864 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28865 which seems to be undefined. Please make sure it is defined." >&2;}
28867 rm -f "$tmp/stdin"
28868 case $ac_file in
28869 -) cat "$tmp/out" && rm -f "$tmp/out";;
28870 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28871 esac \
28872 || as_fn_error "could not create $ac_file" "$LINENO" 5
28876 # CONFIG_HEADER
28878 if test x"$ac_file" != x-; then
28880 $as_echo "/* $configure_input */" \
28881 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28882 } >"$tmp/config.h" \
28883 || as_fn_error "could not create $ac_file" "$LINENO" 5
28884 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28886 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28887 else
28888 rm -f "$ac_file"
28889 mv "$tmp/config.h" "$ac_file" \
28890 || as_fn_error "could not create $ac_file" "$LINENO" 5
28892 else
28893 $as_echo "/* $configure_input */" \
28894 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28895 || as_fn_error "could not create -" "$LINENO" 5
28899 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28900 $as_echo "$as_me: executing $ac_file commands" >&6;}
28902 esac
28905 case $ac_file$ac_mode in
28906 "as":F) chmod +x as ;;
28907 "collect-ld":F) chmod +x collect-ld ;;
28908 "nm":F) chmod +x nm ;;
28909 "default":C)
28910 case ${CONFIG_HEADERS} in
28911 *auto-host.h:config.in*)
28912 echo > cstamp-h ;;
28913 esac
28914 # Make sure all the subdirs exist.
28915 for d in $subdirs doc build common c-family
28917 test -d $d || mkdir $d
28918 done
28921 esac
28922 done # for ac_tag
28925 as_fn_exit 0
28926 _ACEOF
28927 ac_clean_files=$ac_clean_files_save
28929 test $ac_write_fail = 0 ||
28930 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28933 # configure is writing to config.log, and then calls config.status.
28934 # config.status does its own redirection, appending to config.log.
28935 # Unfortunately, on DOS this fails, as config.log is still kept open
28936 # by configure, so config.status won't be able to write to it; its
28937 # output is simply discarded. So we exec the FD to /dev/null,
28938 # effectively closing config.log, so it can be properly (re)opened and
28939 # appended to by config.status. When coming back to configure, we
28940 # need to make the FD available again.
28941 if test "$no_create" != yes; then
28942 ac_cs_success=:
28943 ac_config_status_args=
28944 test "$silent" = yes &&
28945 ac_config_status_args="$ac_config_status_args --quiet"
28946 exec 5>/dev/null
28947 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28948 exec 5>>config.log
28949 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28950 # would make configure fail if this is the last instruction.
28951 $ac_cs_success || as_fn_exit $?
28953 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28955 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}