Merge trunk version 202008 into gupc branch.
[official-gcc.git] / gcc / configure
blobd0a3381749d005b42c982560aabb43caf9bf06fd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 DO_LINK_MUTEX
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
700 FGREP
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CXXFLAGS
707 BUILD_CFLAGS
708 CXX_FOR_BUILD
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 NATIVE_SYSTEM_HEADER_DIR
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 EXTRA_GCC_LIBS
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CXXCPP
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
754 LN_S
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 SYSROOT_CFLAGS_FOR_TARGET
765 enable_shared
766 PERL
767 enable_fixed_point
768 enable_decimal_float
769 with_float
770 with_cpu
771 enable_multiarch
772 enable_multilib
773 coverage_flags
774 valgrind_command
775 valgrind_path_defines
776 valgrind_path
777 TREECHECKING
778 TREEBROWSER
779 nocommon_flag
780 noexception_flags
781 warn_cxxflags
782 warn_cflags
783 c_strict_warn
784 strict_warn
785 c_loose_warn
786 loose_warn
787 EGREP
788 GREP
790 PICFLAG_FOR_TARGET
791 OUTPUT_OPTION
792 NO_MINUS_C_MINUS_O
793 GNATMAKE
794 GNATBIND
795 ac_ct_CXX
796 CXXFLAGS
798 OBJEXT
799 EXEEXT
800 ac_ct_CC
801 CPPFLAGS
802 LDFLAGS
803 CFLAGS
805 GENINSRC
806 target_subdir
807 host_subdir
808 build_subdir
809 build_libsubdir
810 target_noncanonical
811 target_os
812 target_vendor
813 target_cpu
814 target
815 host_os
816 host_vendor
817 host_cpu
818 host
819 build_os
820 build_vendor
821 build_cpu
822 build
823 target_alias
824 host_alias
825 build_alias
826 LIBS
827 ECHO_T
828 ECHO_N
829 ECHO_C
830 DEFS
831 mandir
832 localedir
833 libdir
834 psdir
835 pdfdir
836 dvidir
837 htmldir
838 infodir
839 docdir
840 oldincludedir
841 includedir
842 localstatedir
843 sharedstatedir
844 sysconfdir
845 datadir
846 datarootdir
847 libexecdir
848 sbindir
849 bindir
850 program_transform_name
851 prefix
852 exec_prefix
853 PACKAGE_URL
854 PACKAGE_BUGREPORT
855 PACKAGE_STRING
856 PACKAGE_VERSION
857 PACKAGE_TARNAME
858 PACKAGE_NAME
859 PATH_SEPARATOR
860 SHELL'
861 ac_subst_files='option_includes
862 language_hooks'
863 ac_user_opts='
864 enable_option_checking
865 with_build_libsubdir
866 with_local_prefix
867 with_gxx_include_dir
868 with_cpp_install_dir
869 enable_generated_files_in_srcdir
870 with_gnu_ld
871 with_ld
872 with_demangler_in_ld
873 with_gnu_as
874 with_as
875 enable_largefile
876 enable_werror_always
877 enable_checking
878 enable_coverage
879 enable_gather_detailed_mem_stats
880 with_stabs
881 enable_multilib
882 enable_multiarch
883 enable___cxa_atexit
884 enable_decimal_float
885 enable_fixed_point
886 enable_threads
887 enable_tls
888 enable_objc_gc
889 with_upc_pts
890 with_upc_pts_vaddr_order
891 with_upc_packed_bits
892 with_upc_pts_packed_bits
893 enable_upc_link_script
894 with_dwarf2
895 enable_shared
896 with_native_system_header_dir
897 with_build_sysroot
898 with_sysroot
899 with_specs
900 with_pkgversion
901 with_bugurl
902 enable_languages
903 with_multilib_list
904 enable_rpath
905 with_libiconv_prefix
906 enable_sjlj_exceptions
907 enable_secureplt
908 enable_leading_mingw64_underscores
909 enable_cld
910 enable_frame_pointer
911 enable_win32_registry
912 enable_static
913 with_pic
914 enable_fast_install
915 enable_libtool_lock
916 with_plugin_ld
917 enable_gnu_indirect_function
918 enable_initfini_array
919 enable_comdat
920 enable_gnu_unique_object
921 enable_linker_build_id
922 with_long_double_128
923 with_gc
924 with_system_zlib
925 enable_maintainer_mode
926 enable_link_mutex
927 enable_version_specific_runtime_libs
928 enable_plugin
929 enable_libquadmath_support
930 with_linker_hash_style
932 ac_precious_vars='build_alias
933 host_alias
934 target_alias
936 CFLAGS
937 LDFLAGS
938 LIBS
939 CPPFLAGS
941 CXXFLAGS
944 CXXCPP
945 GMPLIBS
946 GMPINC
947 ISLLIBS
948 ISLINC
949 CLOOGLIBS
950 CLOOGINC'
953 # Initialize some variables set by options.
954 ac_init_help=
955 ac_init_version=false
956 ac_unrecognized_opts=
957 ac_unrecognized_sep=
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
960 cache_file=/dev/null
961 exec_prefix=NONE
962 no_create=
963 no_recursion=
964 prefix=NONE
965 program_prefix=NONE
966 program_suffix=NONE
967 program_transform_name=s,x,x,
968 silent=
969 site=
970 srcdir=
971 verbose=
972 x_includes=NONE
973 x_libraries=NONE
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir='${exec_prefix}/bin'
982 sbindir='${exec_prefix}/sbin'
983 libexecdir='${exec_prefix}/libexec'
984 datarootdir='${prefix}/share'
985 datadir='${datarootdir}'
986 sysconfdir='${prefix}/etc'
987 sharedstatedir='${prefix}/com'
988 localstatedir='${prefix}/var'
989 includedir='${prefix}/include'
990 oldincludedir='/usr/include'
991 docdir='${datarootdir}/doc/${PACKAGE}'
992 infodir='${datarootdir}/info'
993 htmldir='${docdir}'
994 dvidir='${docdir}'
995 pdfdir='${docdir}'
996 psdir='${docdir}'
997 libdir='${exec_prefix}/lib'
998 localedir='${datarootdir}/locale'
999 mandir='${datarootdir}/man'
1001 ac_prev=
1002 ac_dashdash=
1003 for ac_option
1005 # If the previous option needs an argument, assign it.
1006 if test -n "$ac_prev"; then
1007 eval $ac_prev=\$ac_option
1008 ac_prev=
1009 continue
1012 case $ac_option in
1013 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 *) ac_optarg=yes ;;
1015 esac
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1019 case $ac_dashdash$ac_option in
1021 ac_dashdash=yes ;;
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1043 -datadir | --datadir | --datadi | --datad)
1044 ac_prev=datadir ;;
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error "invalid feature name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1064 "enable_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval enable_$ac_useropt=no ;;
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1081 -enable-* | --enable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=\$ac_optarg ;;
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
1104 exec_prefix=$ac_optarg ;;
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1108 with_gas=yes ;;
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 ac_prev=htmldir ;;
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 | --ht=*)
1126 htmldir=$ac_optarg ;;
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
1133 includedir=$ac_optarg ;;
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 ac_prev=infodir ;;
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1140 -libdir | --libdir | --libdi | --libd)
1141 ac_prev=libdir ;;
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
1150 libexecdir=$ac_optarg ;;
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
1158 | --localstate | --localstat | --localsta | --localst | --locals)
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162 localstatedir=$ac_optarg ;;
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 ac_prev=mandir ;;
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1171 with_fp=no ;;
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1175 no_create=yes ;;
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 no_recursion=yes ;;
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188 oldincludedir=$ac_optarg ;;
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 ac_prev=prefix ;;
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200 program_prefix=$ac_optarg ;;
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207 program_suffix=$ac_optarg ;;
1209 -program-transform-name | --program-transform-name \
1210 | --program-transform-nam | --program-transform-na \
1211 | --program-transform-n | --program-transform- \
1212 | --program-transform | --program-transfor \
1213 | --program-transfo | --program-transf \
1214 | --program-trans | --program-tran \
1215 | --progr-tra | --program-tr | --program-t)
1216 ac_prev=program_transform_name ;;
1217 -program-transform-name=* | --program-transform-name=* \
1218 | --program-transform-nam=* | --program-transform-na=* \
1219 | --program-transform-n=* | --program-transform-=* \
1220 | --program-transform=* | --program-transfor=* \
1221 | --program-transfo=* | --program-transf=* \
1222 | --program-trans=* | --program-tran=* \
1223 | --progr-tra=* | --program-tr=* | --program-t=*)
1224 program_transform_name=$ac_optarg ;;
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 ac_prev=pdfdir ;;
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1231 -psdir | --psdir | --psdi | --psd | --ps)
1232 ac_prev=psdir ;;
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 psdir=$ac_optarg ;;
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 silent=yes ;;
1240 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241 ac_prev=sbindir ;;
1242 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243 | --sbi=* | --sb=*)
1244 sbindir=$ac_optarg ;;
1246 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248 | --sharedst | --shareds | --shared | --share | --shar \
1249 | --sha | --sh)
1250 ac_prev=sharedstatedir ;;
1251 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254 | --sha=* | --sh=*)
1255 sharedstatedir=$ac_optarg ;;
1257 -site | --site | --sit)
1258 ac_prev=site ;;
1259 -site=* | --site=* | --sit=*)
1260 site=$ac_optarg ;;
1262 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263 ac_prev=srcdir ;;
1264 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265 srcdir=$ac_optarg ;;
1267 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268 | --syscon | --sysco | --sysc | --sys | --sy)
1269 ac_prev=sysconfdir ;;
1270 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272 sysconfdir=$ac_optarg ;;
1274 -target | --target | --targe | --targ | --tar | --ta | --t)
1275 ac_prev=target_alias ;;
1276 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277 target_alias=$ac_optarg ;;
1279 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280 verbose=yes ;;
1282 -version | --version | --versio | --versi | --vers | -V)
1283 ac_init_version=: ;;
1285 -with-* | --with-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=\$ac_optarg ;;
1301 -without-* | --without-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 as_fn_error "invalid package name: $ac_useropt"
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1310 "with_$ac_useropt"
1311 "*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=no ;;
1317 --x)
1318 # Obsolete; use --with-x.
1319 with_x=yes ;;
1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322 | --x-incl | --x-inc | --x-in | --x-i)
1323 ac_prev=x_includes ;;
1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326 x_includes=$ac_optarg ;;
1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330 ac_prev=x_libraries ;;
1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333 x_libraries=$ac_optarg ;;
1335 -*) as_fn_error "unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information."
1339 *=*)
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 case $ac_envvar in #(
1343 '' | [0-9]* | *[!_$as_cr_alnum]* )
1344 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1345 esac
1346 eval $ac_envvar=\$ac_optarg
1347 export $ac_envvar ;;
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1357 esac
1358 done
1360 if test -n "$ac_prev"; then
1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 as_fn_error "missing argument to $ac_option"
1365 if test -n "$ac_unrecognized_opts"; then
1366 case $enable_option_checking in
1367 no) ;;
1368 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1369 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 esac
1373 # Check all directory arguments for consistency.
1374 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375 datadir sysconfdir sharedstatedir localstatedir includedir \
1376 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377 libdir localedir mandir
1379 eval ac_val=\$$ac_var
1380 # Remove trailing slashes.
1381 case $ac_val in
1382 */ )
1383 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384 eval $ac_var=\$ac_val;;
1385 esac
1386 # Be sure to have absolute directory names.
1387 case $ac_val in
1388 [\\/$]* | ?:[\\/]* ) continue;;
1389 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390 esac
1391 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1392 done
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1397 build=$build_alias
1398 host=$host_alias
1399 target=$target_alias
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403 if test "x$build_alias" = x; then
1404 cross_compiling=maybe
1405 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1406 If a cross compiler is detected then cross compile mode will be used." >&2
1407 elif test "x$build_alias" != "x$host_alias"; then
1408 cross_compiling=yes
1412 ac_tool_prefix=
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1415 test "$silent" = yes && exec 6>/dev/null
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421 as_fn_error "working directory cannot be determined"
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 as_fn_error "pwd does not report name of working directory"
1426 # Find the source files, if location was not specified.
1427 if test -z "$srcdir"; then
1428 ac_srcdir_defaulted=yes
1429 # Try the directory containing this script, then the parent directory.
1430 ac_confdir=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432 X"$as_myself" : 'X\(//\)[^/]' \| \
1433 X"$as_myself" : 'X\(//\)$' \| \
1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 s//\1/
1440 /^X\(\/\/\)[^/].*/{
1441 s//\1/
1444 /^X\(\/\/\)$/{
1445 s//\1/
1448 /^X\(\/\).*/{
1449 s//\1/
1452 s/.*/./; q'`
1453 srcdir=$ac_confdir
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 srcdir=..
1457 else
1458 ac_srcdir_defaulted=no
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1464 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465 ac_abs_confdir=`(
1466 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1467 pwd)`
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470 srcdir=.
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1475 case $srcdir in
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 esac
1478 for ac_var in $ac_precious_vars; do
1479 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_env_${ac_var}_value=\$${ac_var}
1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 done
1486 # Report the --help message.
1488 if test "$ac_init_help" = "long"; then
1489 # Omit some internal or obsolete options to make the list less imposing.
1490 # This message is too long to be a string in the A/UX 3.1 sh.
1491 cat <<_ACEOF
1492 \`configure' configures this package to adapt to many kinds of systems.
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE. See below for descriptions of some of the useful variables.
1499 Defaults for the options are specified in brackets.
1501 Configuration:
1502 -h, --help display this help and exit
1503 --help=short display options specific to this package
1504 --help=recursive display the short help of all the included packages
1505 -V, --version display version information and exit
1506 -q, --quiet, --silent do not print \`checking...' messages
1507 --cache-file=FILE cache test results in FILE [disabled]
1508 -C, --config-cache alias for \`--cache-file=config.cache'
1509 -n, --no-create do not create output files
1510 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1512 Installation directories:
1513 --prefix=PREFIX install architecture-independent files in PREFIX
1514 [$ac_default_prefix]
1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1516 [PREFIX]
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1523 For better control, use the options below.
1525 Fine tuning of the installation directories:
1526 --bindir=DIR user executables [EPREFIX/bin]
1527 --sbindir=DIR system admin executables [EPREFIX/sbin]
1528 --libexecdir=DIR program executables [EPREFIX/libexec]
1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532 --libdir=DIR object code libraries [EPREFIX/lib]
1533 --includedir=DIR C header files [PREFIX/include]
1534 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537 --infodir=DIR info documentation [DATAROOTDIR/info]
1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539 --mandir=DIR man documentation [DATAROOTDIR/man]
1540 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1541 --htmldir=DIR html documentation [DOCDIR]
1542 --dvidir=DIR dvi documentation [DOCDIR]
1543 --pdfdir=DIR pdf documentation [DOCDIR]
1544 --psdir=DIR ps documentation [DOCDIR]
1545 _ACEOF
1547 cat <<\_ACEOF
1549 Program names:
1550 --program-prefix=PREFIX prepend PREFIX to installed program names
1551 --program-suffix=SUFFIX append SUFFIX to installed program names
1552 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1554 System types:
1555 --build=BUILD configure for building on BUILD [guessed]
1556 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1557 --target=TARGET configure for building compilers for TARGET [HOST]
1558 _ACEOF
1561 if test -n "$ac_init_help"; then
1563 cat <<\_ACEOF
1565 Optional Features:
1566 --disable-option-checking ignore unrecognized --enable/--with options
1567 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1568 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1569 --enable-generated-files-in-srcdir
1570 put copies of generated files in source dir intended
1571 for creating source tarballs for users without
1572 texinfo bison or flex
1573 --disable-largefile omit support for large files
1574 --enable-werror-always enable -Werror despite compiler version
1575 --enable-checking[=LIST]
1576 enable expensive run-time checks. With LIST, enable
1577 only specific categories of checks. Categories are:
1578 yes,no,all,none,release. Flags are:
1579 assert,df,fold,gc,gcac,gimple,misc,
1580 rtlflag,rtl,runtime,tree,valgrind,types
1581 --enable-coverage[=LEVEL]
1582 enable compiler's code coverage collection. Use to
1583 measure compiler performance and locate unused parts
1584 of the compiler. With LEVEL, specify optimization.
1585 Values are opt, noopt, default is noopt
1586 --enable-gather-detailed-mem-stats
1587 enable detailed memory allocation stats gathering
1588 --enable-multilib enable library support for multiple ABIs
1589 --enable-multiarch enable support for multiarch paths
1590 --enable-__cxa_atexit enable __cxa_atexit for C++
1591 --enable-decimal-float={no,yes,bid,dpd}
1592 enable decimal float extension to C. Selecting 'bid'
1593 or 'dpd' choses which decimal floating point format
1594 to use
1595 --enable-fixed-point enable fixed-point arithmetic extension to C
1596 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1597 package
1598 --enable-tls enable or disable generation of tls code overriding
1599 the assembler check for tls support
1600 --enable-objc-gc enable the use of Boehm's garbage collector with the
1601 GNU Objective-C runtime
1602 --enable-upc-link-script
1603 enable UPC's use of a custom linker script; this
1604 will define the UPC shared section as a no load
1605 section on targets where this feature is supported
1606 (requires GNU LD)
1607 --disable-shared don't provide a shared libgcc
1608 --enable-languages=LIST specify which front-ends to build
1609 --disable-rpath do not hardcode runtime library paths
1610 --enable-sjlj-exceptions
1611 arrange to use setjmp/longjmp exception handling
1612 --enable-secureplt enable -msecure-plt by default for PowerPC
1613 --enable-leading-mingw64-underscores
1614 enable leading underscores on 64 bit mingw targets
1615 --enable-cld enable -mcld by default for 32bit x86
1616 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1618 --disable-win32-registry
1619 disable lookup of installation paths in the Registry
1620 on Windows hosts
1621 --enable-win32-registry enable registry lookup (default)
1622 --enable-win32-registry=KEY
1623 use KEY instead of GCC version as the last portion
1624 of the registry key
1625 --enable-shared[=PKGS] build shared libraries [default=yes]
1626 --enable-static[=PKGS] build static libraries [default=yes]
1627 --enable-fast-install[=PKGS]
1628 optimize for fast installation [default=yes]
1629 --disable-libtool-lock avoid locking (might break parallel builds)
1630 --enable-gnu-indirect-function
1631 enable the use of the @gnu_indirect_function to
1632 glibc systems
1633 --enable-initfini-array use .init_array/.fini_array sections
1634 --enable-comdat enable COMDAT group support
1635 --enable-gnu-unique-object
1636 enable the use of the @gnu_unique_object ELF
1637 extension on glibc systems
1638 --enable-linker-build-id
1639 compiler will always pass --build-id to linker
1640 --enable-maintainer-mode
1641 enable make rules and dependencies not useful (and
1642 sometimes confusing) to the casual installer
1643 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1644 thrashing on the build machine
1645 --enable-version-specific-runtime-libs
1646 specify that runtime libraries should be installed
1647 in a compiler-specific directory
1648 --enable-plugin enable plugin support
1649 --disable-libquadmath-support
1650 disable libquadmath support for Fortran
1652 Optional Packages:
1653 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1654 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1655 --with-build-libsubdir=DIR Directory where to find libraries for build system
1656 --with-local-prefix=DIR specifies directory to put local include
1657 --with-gxx-include-dir=DIR
1658 specifies directory to put g++ header files
1659 --with-cpp-install-dir=DIR
1660 install the user visible C preprocessor in DIR
1661 (relative to PREFIX) as well as PREFIX/bin
1662 --with-gnu-ld arrange to work with GNU ld
1663 --with-ld arrange to use the specified ld (full pathname)
1664 --with-demangler-in-ld try to use demangler in GNU ld
1665 --with-gnu-as arrange to work with GNU as
1666 --with-as arrange to use the specified as (full pathname)
1667 --with-stabs arrange to use stabs instead of host debug format
1668 --with-upc-pts={struct,packed}
1669 choose the representation of a UPC pointer-to-shared
1670 --with-upc-pts-vaddr-order={last,first}
1671 choose position of the address field in UPC
1672 pointer-to-shared representation
1674 --with-upc-pts-packed-bits=phase,thread,vaddr
1675 choose bit distribution in packed UPC
1676 pointer-to-shared representation
1677 --with-dwarf2 force the default debug format to be DWARF 2
1678 --with-native-system-header-dir=dir
1679 use dir as the directory to look for standard
1680 system header files in. Defaults to /usr/include.
1681 --with-build-sysroot=sysroot
1682 use sysroot as the system root during the build
1683 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1684 --with-specs=SPECS add SPECS to driver command-line processing
1685 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1686 --with-bugurl=URL Direct users to URL to report a bug
1687 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1688 --with-gnu-ld assume the C compiler uses GNU ld default=no
1689 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1690 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1691 --with-pic try to use only PIC/non-PIC objects [default=use
1692 both]
1693 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1694 --with-plugin-ld=[ARG] specify the plugin linker
1695 --with-long-double-128 use 128-bit long double by default
1696 --with-gc={page,zone} this option is not supported anymore. It used to
1697 choose the garbage collection mechanism to use with
1698 the compiler
1699 --with-system-zlib use installed libz
1700 --with-linker-hash-style={sysv,gnu,both}
1701 specify the linker hash style
1703 Some influential environment variables:
1704 CC C compiler command
1705 CFLAGS C compiler flags
1706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1707 nonstandard directory <lib dir>
1708 LIBS libraries to pass to the linker, e.g. -l<library>
1709 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1710 you have headers in a nonstandard directory <include dir>
1711 CXX C++ compiler command
1712 CXXFLAGS C++ compiler flags
1713 CPP C preprocessor
1714 CXXCPP C++ preprocessor
1715 GMPLIBS How to link GMP
1716 GMPINC How to find GMP include files
1717 ISLLIBS How to link ISL
1718 ISLINC How to find ISL include files
1719 CLOOGLIBS How to link CLOOG
1720 CLOOGINC How to find CLOOG include files
1722 Use these variables to override the choices made by `configure' or to help
1723 it to find libraries and programs with nonstandard names/locations.
1725 Report bugs to the package provider.
1726 _ACEOF
1727 ac_status=$?
1730 if test "$ac_init_help" = "recursive"; then
1731 # If there are subdirs, report their specific --help.
1732 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1733 test -d "$ac_dir" ||
1734 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1735 continue
1736 ac_builddir=.
1738 case "$ac_dir" in
1739 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1741 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1742 # A ".." for each directory in $ac_dir_suffix.
1743 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1744 case $ac_top_builddir_sub in
1745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1747 esac ;;
1748 esac
1749 ac_abs_top_builddir=$ac_pwd
1750 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1751 # for backward compatibility:
1752 ac_top_builddir=$ac_top_build_prefix
1754 case $srcdir in
1755 .) # We are building in place.
1756 ac_srcdir=.
1757 ac_top_srcdir=$ac_top_builddir_sub
1758 ac_abs_top_srcdir=$ac_pwd ;;
1759 [\\/]* | ?:[\\/]* ) # Absolute name.
1760 ac_srcdir=$srcdir$ac_dir_suffix;
1761 ac_top_srcdir=$srcdir
1762 ac_abs_top_srcdir=$srcdir ;;
1763 *) # Relative name.
1764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1765 ac_top_srcdir=$ac_top_build_prefix$srcdir
1766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1767 esac
1768 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1770 cd "$ac_dir" || { ac_status=$?; continue; }
1771 # Check for guested configure.
1772 if test -f "$ac_srcdir/configure.gnu"; then
1773 echo &&
1774 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1775 elif test -f "$ac_srcdir/configure"; then
1776 echo &&
1777 $SHELL "$ac_srcdir/configure" --help=recursive
1778 else
1779 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1780 fi || ac_status=$?
1781 cd "$ac_pwd" || { ac_status=$?; break; }
1782 done
1785 test -n "$ac_init_help" && exit $ac_status
1786 if $ac_init_version; then
1787 cat <<\_ACEOF
1788 configure
1789 generated by GNU Autoconf 2.64
1791 Copyright (C) 2009 Free Software Foundation, Inc.
1792 This configure script is free software; the Free Software Foundation
1793 gives unlimited permission to copy, distribute and modify it.
1794 _ACEOF
1795 exit
1798 ## ------------------------ ##
1799 ## Autoconf initialization. ##
1800 ## ------------------------ ##
1802 # ac_fn_c_try_compile LINENO
1803 # --------------------------
1804 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_compile ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext
1809 if { { ac_try="$ac_compile"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_compile") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest.$ac_objext; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 ac_retval=1
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 return $ac_retval
1838 } # ac_fn_c_try_compile
1840 # ac_fn_cxx_try_compile LINENO
1841 # ----------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_cxx_try_compile ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext
1847 if { { ac_try="$ac_compile"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_cxx_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 ac_retval=1
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1876 } # ac_fn_cxx_try_compile
1878 # ac_fn_c_try_cpp LINENO
1879 # ----------------------
1880 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_c_try_cpp ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_cpp conftest.$ac_ext"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } >/dev/null && {
1900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1902 }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1908 ac_retval=1
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 return $ac_retval
1913 } # ac_fn_c_try_cpp
1915 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1918 # the include files in INCLUDES and setting the cache variable VAR
1919 # accordingly.
1920 ac_fn_c_check_header_mongrel ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1929 eval ac_res=\$$3
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932 else
1933 # Is the header compilable?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1935 $as_echo_n "checking $2 usability... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1939 #include <$2>
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_header_compiler=yes
1943 else
1944 ac_header_compiler=no
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1948 $as_echo "$ac_header_compiler" >&6; }
1950 # Is the header present?
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1952 $as_echo_n "checking $2 presence... " >&6; }
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 #include <$2>
1956 _ACEOF
1957 if ac_fn_c_try_cpp "$LINENO"; then :
1958 ac_header_preproc=yes
1959 else
1960 ac_header_preproc=no
1962 rm -f conftest.err conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1964 $as_echo "$ac_header_preproc" >&6; }
1966 # So? What about this header?
1967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1968 yes:no: )
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1970 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974 no:yes:* )
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1976 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1978 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1980 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1982 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986 esac
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1990 $as_echo_n "(cached) " >&6
1991 else
1992 eval "$3=\$ac_header_compiler"
1994 eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000 } # ac_fn_c_check_header_mongrel
2002 # ac_fn_c_try_run LINENO
2003 # ----------------------
2004 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2005 # that executables *can* be run.
2006 ac_fn_c_try_run ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if { { ac_try="$ac_link"
2010 case "(($ac_try" in
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2013 esac
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_link") 2>&5
2017 ac_status=$?
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2020 { { case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_try") 2>&5
2027 ac_status=$?
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; }; }; then :
2030 ac_retval=0
2031 else
2032 $as_echo "$as_me: program exited with status $ac_status" >&5
2033 $as_echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2036 ac_retval=$ac_status
2038 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2039 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2040 return $ac_retval
2042 } # ac_fn_c_try_run
2044 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2045 # -------------------------------------------------------
2046 # Tests whether HEADER exists and can be compiled using the include files in
2047 # INCLUDES, setting the cache variable VAR accordingly.
2048 ac_fn_c_check_header_compile ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2054 $as_echo_n "(cached) " >&6
2055 else
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2059 #include <$2>
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 eval "$3=yes"
2063 else
2064 eval "$3=no"
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 eval ac_res=\$$3
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 } # ac_fn_c_check_header_compile
2075 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2076 # --------------------------------------------
2077 # Tries to find the compile-time value of EXPR in a program that includes
2078 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2079 # computed
2080 ac_fn_c_compute_int ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if test "$cross_compiling" = yes; then
2084 # Depending upon the size, compute the lo and hi bounds.
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2089 main ()
2091 static int test_array [1 - 2 * !(($2) >= 0)];
2092 test_array [0] = 0
2095 return 0;
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_lo=0 ac_mid=0
2100 while :; do
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2105 main ()
2107 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2108 test_array [0] = 0
2111 return 0;
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_hi=$ac_mid; break
2116 else
2117 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2118 if test $ac_lo -le $ac_mid; then
2119 ac_lo= ac_hi=
2120 break
2122 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 done
2126 else
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2131 main ()
2133 static int test_array [1 - 2 * !(($2) < 0)];
2134 test_array [0] = 0
2137 return 0;
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_hi=-1 ac_mid=-1
2142 while :; do
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2147 main ()
2149 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2150 test_array [0] = 0
2153 return 0;
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_lo=$ac_mid; break
2158 else
2159 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2160 if test $ac_mid -le $ac_hi; then
2161 ac_lo= ac_hi=
2162 break
2164 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168 else
2169 ac_lo= ac_hi=
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 # Binary search between lo and hi bounds.
2175 while test "x$ac_lo" != "x$ac_hi"; do
2176 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2181 main ()
2183 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2184 test_array [0] = 0
2187 return 0;
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_hi=$ac_mid
2192 else
2193 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197 case $ac_lo in #((
2198 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2199 '') ac_retval=1 ;;
2200 esac
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2205 static long int longval () { return $2; }
2206 static unsigned long int ulongval () { return $2; }
2207 #include <stdio.h>
2208 #include <stdlib.h>
2210 main ()
2213 FILE *f = fopen ("conftest.val", "w");
2214 if (! f)
2215 return 1;
2216 if (($2) < 0)
2218 long int i = longval ();
2219 if (i != ($2))
2220 return 1;
2221 fprintf (f, "%ld", i);
2223 else
2225 unsigned long int i = ulongval ();
2226 if (i != ($2))
2227 return 1;
2228 fprintf (f, "%lu", i);
2230 /* Do not output a trailing newline, as this causes \r\n confusion
2231 on some platforms. */
2232 return ferror (f) || fclose (f) != 0;
2235 return 0;
2237 _ACEOF
2238 if ac_fn_c_try_run "$LINENO"; then :
2239 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2240 else
2241 ac_retval=1
2243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2244 conftest.$ac_objext conftest.beam conftest.$ac_ext
2245 rm -f conftest.val
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249 return $ac_retval
2251 } # ac_fn_c_compute_int
2253 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2254 # -------------------------------------------
2255 # Tests whether TYPE exists after having included INCLUDES, setting cache
2256 # variable VAR accordingly.
2257 ac_fn_c_check_type ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2263 $as_echo_n "(cached) " >&6
2264 else
2265 eval "$3=no"
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2270 main ()
2272 if (sizeof ($2))
2273 return 0;
2275 return 0;
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2283 main ()
2285 if (sizeof (($2)))
2286 return 0;
2288 return 0;
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2293 else
2294 eval "$3=yes"
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 eval ac_res=\$$3
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2305 } # ac_fn_c_check_type
2307 # ac_fn_c_find_intX_t LINENO BITS VAR
2308 # -----------------------------------
2309 # Finds a signed integer type with width BITS, setting cache variable VAR
2310 # accordingly.
2311 ac_fn_c_find_intX_t ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2315 $as_echo_n "checking for int$2_t... " >&6; }
2316 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 eval "$3=no"
2320 for ac_type in int$2_t 'int' 'long int' \
2321 'long long int' 'short int' 'signed char'; do
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2324 $ac_includes_default
2326 main ()
2328 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2329 test_array [0] = 0
2332 return 0;
2334 _ACEOF
2335 if ac_fn_c_try_compile "$LINENO"; then :
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2338 $ac_includes_default
2340 main ()
2342 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2343 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2344 test_array [0] = 0
2347 return 0;
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2352 else
2353 case $ac_type in #(
2354 int$2_t) :
2355 eval "$3=yes" ;; #(
2356 *) :
2357 eval "$3=\$ac_type" ;;
2358 esac
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 eval as_val=\$$3
2364 if test "x$as_val" = x""no; then :
2366 else
2367 break
2369 done
2371 eval ac_res=\$$3
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376 } # ac_fn_c_find_intX_t
2378 # ac_fn_c_try_link LINENO
2379 # -----------------------
2380 # Try to link conftest.$ac_ext, and return whether this succeeded.
2381 ac_fn_c_try_link ()
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 rm -f conftest.$ac_objext conftest$ac_exeext
2385 if { { ac_try="$ac_link"
2386 case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389 esac
2390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391 $as_echo "$ac_try_echo"; } >&5
2392 (eval "$ac_link") 2>conftest.err
2393 ac_status=$?
2394 if test -s conftest.err; then
2395 grep -v '^ *+' conftest.err >conftest.er1
2396 cat conftest.er1 >&5
2397 mv -f conftest.er1 conftest.err
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } && {
2401 test -z "$ac_c_werror_flag" ||
2402 test ! -s conftest.err
2403 } && test -s conftest$ac_exeext && {
2404 test "$cross_compiling" = yes ||
2405 $as_test_x conftest$ac_exeext
2406 }; then :
2407 ac_retval=0
2408 else
2409 $as_echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2412 ac_retval=1
2414 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2415 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2416 # interfere with the next link command; also delete a directory that is
2417 # left behind by Apple's compiler. We do this before executing the actions.
2418 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2420 return $ac_retval
2422 } # ac_fn_c_try_link
2424 # ac_fn_c_find_uintX_t LINENO BITS VAR
2425 # ------------------------------------
2426 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2427 # accordingly.
2428 ac_fn_c_find_uintX_t ()
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2432 $as_echo_n "checking for uint$2_t... " >&6; }
2433 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 eval "$3=no"
2437 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2438 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h. */
2441 $ac_includes_default
2443 main ()
2445 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2446 test_array [0] = 0
2449 return 0;
2451 _ACEOF
2452 if ac_fn_c_try_compile "$LINENO"; then :
2453 case $ac_type in #(
2454 uint$2_t) :
2455 eval "$3=yes" ;; #(
2456 *) :
2457 eval "$3=\$ac_type" ;;
2458 esac
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 eval as_val=\$$3
2462 if test "x$as_val" = x""no; then :
2464 else
2465 break
2467 done
2469 eval ac_res=\$$3
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474 } # ac_fn_c_find_uintX_t
2476 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2477 # ----------------------------------------------
2478 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2479 ac_fn_c_check_header_preproc ()
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2483 $as_echo_n "checking for $2... " >&6; }
2484 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h. */
2489 #include <$2>
2490 _ACEOF
2491 if ac_fn_c_try_cpp "$LINENO"; then :
2492 eval "$3=yes"
2493 else
2494 eval "$3=no"
2496 rm -f conftest.err conftest.$ac_ext
2498 eval ac_res=\$$3
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2500 $as_echo "$ac_res" >&6; }
2501 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503 } # ac_fn_c_check_header_preproc
2505 # ac_fn_cxx_try_cpp LINENO
2506 # ------------------------
2507 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2508 ac_fn_cxx_try_cpp ()
2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511 if { { ac_try="$ac_cpp conftest.$ac_ext"
2512 case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515 esac
2516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517 $as_echo "$ac_try_echo"; } >&5
2518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2519 ac_status=$?
2520 if test -s conftest.err; then
2521 grep -v '^ *+' conftest.err >conftest.er1
2522 cat conftest.er1 >&5
2523 mv -f conftest.er1 conftest.err
2525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526 test $ac_status = 0; } >/dev/null && {
2527 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2528 test ! -s conftest.err
2529 }; then :
2530 ac_retval=0
2531 else
2532 $as_echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2535 ac_retval=1
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538 return $ac_retval
2540 } # ac_fn_cxx_try_cpp
2542 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2543 # ------------------------------------------------
2544 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2545 ac_fn_cxx_check_header_preproc ()
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 #include <$2>
2556 _ACEOF
2557 if ac_fn_cxx_try_cpp "$LINENO"; then :
2558 eval "$3=yes"
2559 else
2560 eval "$3=no"
2562 rm -f conftest.err conftest.$ac_ext
2564 eval ac_res=\$$3
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_cxx_check_header_preproc
2571 # ac_fn_c_check_func LINENO FUNC VAR
2572 # ----------------------------------
2573 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2574 ac_fn_c_check_func ()
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578 $as_echo_n "checking for $2... " >&6; }
2579 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2586 #define $2 innocuous_$2
2588 /* System header to define __stub macros and hopefully few prototypes,
2589 which can conflict with char $2 (); below.
2590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2591 <limits.h> exists even on freestanding compilers. */
2593 #ifdef __STDC__
2594 # include <limits.h>
2595 #else
2596 # include <assert.h>
2597 #endif
2599 #undef $2
2601 /* Override any GCC internal prototype to avoid an error.
2602 Use char because int might match the return type of a GCC
2603 builtin and then its argument prototype would still apply. */
2604 #ifdef __cplusplus
2605 extern "C"
2606 #endif
2607 char $2 ();
2608 /* The GNU C library defines this for functions which it implements
2609 to always fail with ENOSYS. Some functions are actually named
2610 something starting with __ and the normal name is an alias. */
2611 #if defined __stub_$2 || defined __stub___$2
2612 choke me
2613 #endif
2616 main ()
2618 return $2 ();
2620 return 0;
2622 _ACEOF
2623 if ac_fn_c_try_link "$LINENO"; then :
2624 eval "$3=yes"
2625 else
2626 eval "$3=no"
2628 rm -f core conftest.err conftest.$ac_objext \
2629 conftest$ac_exeext conftest.$ac_ext
2631 eval ac_res=\$$3
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2636 } # ac_fn_c_check_func
2638 # ac_fn_cxx_try_link LINENO
2639 # -------------------------
2640 # Try to link conftest.$ac_ext, and return whether this succeeded.
2641 ac_fn_cxx_try_link ()
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 rm -f conftest.$ac_objext conftest$ac_exeext
2645 if { { ac_try="$ac_link"
2646 case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649 esac
2650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2651 $as_echo "$ac_try_echo"; } >&5
2652 (eval "$ac_link") 2>conftest.err
2653 ac_status=$?
2654 if test -s conftest.err; then
2655 grep -v '^ *+' conftest.err >conftest.er1
2656 cat conftest.er1 >&5
2657 mv -f conftest.er1 conftest.err
2659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2660 test $ac_status = 0; } && {
2661 test -z "$ac_cxx_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest$ac_exeext && {
2664 test "$cross_compiling" = yes ||
2665 $as_test_x conftest$ac_exeext
2666 }; then :
2667 ac_retval=0
2668 else
2669 $as_echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2672 ac_retval=1
2674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2676 # interfere with the next link command; also delete a directory that is
2677 # left behind by Apple's compiler. We do this before executing the actions.
2678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2680 return $ac_retval
2682 } # ac_fn_cxx_try_link
2683 cat >config.log <<_ACEOF
2684 This file contains any messages produced by compilers while
2685 running configure, to aid debugging if configure makes a mistake.
2687 It was created by $as_me, which was
2688 generated by GNU Autoconf 2.64. Invocation command line was
2690 $ $0 $@
2692 _ACEOF
2693 exec 5>>config.log
2695 cat <<_ASUNAME
2696 ## --------- ##
2697 ## Platform. ##
2698 ## --------- ##
2700 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2701 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2702 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2703 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2704 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2706 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2707 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2709 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2710 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2711 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2712 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2713 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2714 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2715 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2717 _ASUNAME
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 $as_echo "PATH: $as_dir"
2725 done
2726 IFS=$as_save_IFS
2728 } >&5
2730 cat >&5 <<_ACEOF
2733 ## ----------- ##
2734 ## Core tests. ##
2735 ## ----------- ##
2737 _ACEOF
2740 # Keep a trace of the command line.
2741 # Strip out --no-create and --no-recursion so they do not pile up.
2742 # Strip out --silent because we don't want to record it for future runs.
2743 # Also quote any args containing shell meta-characters.
2744 # Make two passes to allow for proper duplicate-argument suppression.
2745 ac_configure_args=
2746 ac_configure_args0=
2747 ac_configure_args1=
2748 ac_must_keep_next=false
2749 for ac_pass in 1 2
2751 for ac_arg
2753 case $ac_arg in
2754 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2756 | -silent | --silent | --silen | --sile | --sil)
2757 continue ;;
2758 *\'*)
2759 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2760 esac
2761 case $ac_pass in
2762 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2764 as_fn_append ac_configure_args1 " '$ac_arg'"
2765 if test $ac_must_keep_next = true; then
2766 ac_must_keep_next=false # Got value, back to normal.
2767 else
2768 case $ac_arg in
2769 *=* | --config-cache | -C | -disable-* | --disable-* \
2770 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2771 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2772 | -with-* | --with-* | -without-* | --without-* | --x)
2773 case "$ac_configure_args0 " in
2774 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2775 esac
2777 -* ) ac_must_keep_next=true ;;
2778 esac
2780 as_fn_append ac_configure_args " '$ac_arg'"
2782 esac
2783 done
2784 done
2785 { ac_configure_args0=; unset ac_configure_args0;}
2786 { ac_configure_args1=; unset ac_configure_args1;}
2788 # When interrupted or exit'd, cleanup temporary files, and complete
2789 # config.log. We remove comments because anyway the quotes in there
2790 # would cause problems or look ugly.
2791 # WARNING: Use '\'' to represent an apostrophe within the trap.
2792 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2793 trap 'exit_status=$?
2794 # Save into config.log some information that might help in debugging.
2796 echo
2798 cat <<\_ASBOX
2799 ## ---------------- ##
2800 ## Cache variables. ##
2801 ## ---------------- ##
2802 _ASBOX
2803 echo
2804 # The following way of writing the cache mishandles newlines in values,
2806 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2807 eval ac_val=\$$ac_var
2808 case $ac_val in #(
2809 *${as_nl}*)
2810 case $ac_var in #(
2811 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2812 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2813 esac
2814 case $ac_var in #(
2815 _ | IFS | as_nl) ;; #(
2816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2817 *) { eval $ac_var=; unset $ac_var;} ;;
2818 esac ;;
2819 esac
2820 done
2821 (set) 2>&1 |
2822 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2823 *${as_nl}ac_space=\ *)
2824 sed -n \
2825 "s/'\''/'\''\\\\'\'''\''/g;
2826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2827 ;; #(
2829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2831 esac |
2832 sort
2834 echo
2836 cat <<\_ASBOX
2837 ## ----------------- ##
2838 ## Output variables. ##
2839 ## ----------------- ##
2840 _ASBOX
2841 echo
2842 for ac_var in $ac_subst_vars
2844 eval ac_val=\$$ac_var
2845 case $ac_val in
2846 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2847 esac
2848 $as_echo "$ac_var='\''$ac_val'\''"
2849 done | sort
2850 echo
2852 if test -n "$ac_subst_files"; then
2853 cat <<\_ASBOX
2854 ## ------------------- ##
2855 ## File substitutions. ##
2856 ## ------------------- ##
2857 _ASBOX
2858 echo
2859 for ac_var in $ac_subst_files
2861 eval ac_val=\$$ac_var
2862 case $ac_val in
2863 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2864 esac
2865 $as_echo "$ac_var='\''$ac_val'\''"
2866 done | sort
2867 echo
2870 if test -s confdefs.h; then
2871 cat <<\_ASBOX
2872 ## ----------- ##
2873 ## confdefs.h. ##
2874 ## ----------- ##
2875 _ASBOX
2876 echo
2877 cat confdefs.h
2878 echo
2880 test "$ac_signal" != 0 &&
2881 $as_echo "$as_me: caught signal $ac_signal"
2882 $as_echo "$as_me: exit $exit_status"
2883 } >&5
2884 rm -f core *.core core.conftest.* &&
2885 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2886 exit $exit_status
2888 for ac_signal in 1 2 13 15; do
2889 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2890 done
2891 ac_signal=0
2893 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2894 rm -f -r conftest* confdefs.h
2896 $as_echo "/* confdefs.h */" > confdefs.h
2898 # Predefined preprocessor variables.
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_NAME "$PACKAGE_NAME"
2902 _ACEOF
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2906 _ACEOF
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2910 _ACEOF
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE_STRING "$PACKAGE_STRING"
2914 _ACEOF
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2918 _ACEOF
2920 cat >>confdefs.h <<_ACEOF
2921 #define PACKAGE_URL "$PACKAGE_URL"
2922 _ACEOF
2925 # Let the site file select an alternate cache file if it wants to.
2926 # Prefer an explicitly selected file to automatically selected ones.
2927 ac_site_file1=NONE
2928 ac_site_file2=NONE
2929 if test -n "$CONFIG_SITE"; then
2930 ac_site_file1=$CONFIG_SITE
2931 elif test "x$prefix" != xNONE; then
2932 ac_site_file1=$prefix/share/config.site
2933 ac_site_file2=$prefix/etc/config.site
2934 else
2935 ac_site_file1=$ac_default_prefix/share/config.site
2936 ac_site_file2=$ac_default_prefix/etc/config.site
2938 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2940 test "x$ac_site_file" = xNONE && continue
2941 if test -r "$ac_site_file"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2943 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2944 sed 's/^/| /' "$ac_site_file" >&5
2945 . "$ac_site_file"
2947 done
2949 if test -r "$cache_file"; then
2950 # Some versions of bash will fail to source /dev/null (special
2951 # files actually), so we avoid doing that.
2952 if test -f "$cache_file"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2954 $as_echo "$as_me: loading cache $cache_file" >&6;}
2955 case $cache_file in
2956 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2957 *) . "./$cache_file";;
2958 esac
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2962 $as_echo "$as_me: creating cache $cache_file" >&6;}
2963 >$cache_file
2966 # Check that the precious variables saved in the cache have kept the same
2967 # value.
2968 ac_cache_corrupted=false
2969 for ac_var in $ac_precious_vars; do
2970 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2971 eval ac_new_set=\$ac_env_${ac_var}_set
2972 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2973 eval ac_new_val=\$ac_env_${ac_var}_value
2974 case $ac_old_set,$ac_new_set in
2975 set,)
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2978 ac_cache_corrupted=: ;;
2979 ,set)
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2981 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2982 ac_cache_corrupted=: ;;
2983 ,);;
2985 if test "x$ac_old_val" != "x$ac_new_val"; then
2986 # differences in whitespace do not lead to failure.
2987 ac_old_val_w=`echo x $ac_old_val`
2988 ac_new_val_w=`echo x $ac_new_val`
2989 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2991 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2992 ac_cache_corrupted=:
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2995 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2996 eval $ac_var=\$ac_old_val
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2999 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3001 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3002 fi;;
3003 esac
3004 # Pass precious variables to config.status.
3005 if test "$ac_new_set" = set; then
3006 case $ac_new_val in
3007 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3008 *) ac_arg=$ac_var=$ac_new_val ;;
3009 esac
3010 case " $ac_configure_args " in
3011 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3012 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3013 esac
3015 done
3016 if $ac_cache_corrupted; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3020 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3021 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3023 ## -------------------- ##
3024 ## Main body of script. ##
3025 ## -------------------- ##
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3041 gcc_version=`cat $srcdir/BASE-VER`
3043 # Determine the host, build, and target systems
3044 ac_aux_dir=
3045 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3046 for ac_t in install-sh install.sh shtool; do
3047 if test -f "$ac_dir/$ac_t"; then
3048 ac_aux_dir=$ac_dir
3049 ac_install_sh="$ac_aux_dir/$ac_t -c"
3050 break 2
3052 done
3053 done
3054 if test -z "$ac_aux_dir"; then
3055 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3058 # These three variables are undocumented and unsupported,
3059 # and are intended to be withdrawn in a future Autoconf release.
3060 # They can cause serious problems if a builder's source tree is in a directory
3061 # whose full name contains unusual characters.
3062 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3063 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3064 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3067 # Make sure we can run config.sub.
3068 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3069 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3072 $as_echo_n "checking build system type... " >&6; }
3073 if test "${ac_cv_build+set}" = set; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 ac_build_alias=$build_alias
3077 test "x$ac_build_alias" = x &&
3078 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3079 test "x$ac_build_alias" = x &&
3080 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3082 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3086 $as_echo "$ac_cv_build" >&6; }
3087 case $ac_cv_build in
3088 *-*-*) ;;
3089 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3090 esac
3091 build=$ac_cv_build
3092 ac_save_IFS=$IFS; IFS='-'
3093 set x $ac_cv_build
3094 shift
3095 build_cpu=$1
3096 build_vendor=$2
3097 shift; shift
3098 # Remember, the first character of IFS is used to create $*,
3099 # except with old shells:
3100 build_os=$*
3101 IFS=$ac_save_IFS
3102 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3106 $as_echo_n "checking host system type... " >&6; }
3107 if test "${ac_cv_host+set}" = set; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test "x$host_alias" = x; then
3111 ac_cv_host=$ac_cv_build
3112 else
3113 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3114 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3119 $as_echo "$ac_cv_host" >&6; }
3120 case $ac_cv_host in
3121 *-*-*) ;;
3122 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3123 esac
3124 host=$ac_cv_host
3125 ac_save_IFS=$IFS; IFS='-'
3126 set x $ac_cv_host
3127 shift
3128 host_cpu=$1
3129 host_vendor=$2
3130 shift; shift
3131 # Remember, the first character of IFS is used to create $*,
3132 # except with old shells:
3133 host_os=$*
3134 IFS=$ac_save_IFS
3135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3139 $as_echo_n "checking target system type... " >&6; }
3140 if test "${ac_cv_target+set}" = set; then :
3141 $as_echo_n "(cached) " >&6
3142 else
3143 if test "x$target_alias" = x; then
3144 ac_cv_target=$ac_cv_host
3145 else
3146 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3147 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3152 $as_echo "$ac_cv_target" >&6; }
3153 case $ac_cv_target in
3154 *-*-*) ;;
3155 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3156 esac
3157 target=$ac_cv_target
3158 ac_save_IFS=$IFS; IFS='-'
3159 set x $ac_cv_target
3160 shift
3161 target_cpu=$1
3162 target_vendor=$2
3163 shift; shift
3164 # Remember, the first character of IFS is used to create $*,
3165 # except with old shells:
3166 target_os=$*
3167 IFS=$ac_save_IFS
3168 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3171 # The aliases save the names the user supplied, while $host etc.
3172 # will get canonicalized.
3173 test -n "$target_alias" &&
3174 test "$program_prefix$program_suffix$program_transform_name" = \
3175 NONENONEs,x,x, &&
3176 program_prefix=${target_alias}-
3178 # Determine the noncanonical target name, for directory use.
3179 case ${build_alias} in
3180 "") build_noncanonical=${build} ;;
3181 *) build_noncanonical=${build_alias} ;;
3182 esac
3184 case ${host_alias} in
3185 "") host_noncanonical=${build_noncanonical} ;;
3186 *) host_noncanonical=${host_alias} ;;
3187 esac
3189 case ${target_alias} in
3190 "") target_noncanonical=${host_noncanonical} ;;
3191 *) target_noncanonical=${target_alias} ;;
3192 esac
3197 # Determine the target- and build-specific subdirectories
3199 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3200 # have matching libraries, they should use host libraries: Makefile.tpl
3201 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3202 # However, they still use the build modules, because the corresponding
3203 # host modules (e.g. bison) are only built for the host when bootstrap
3204 # finishes. So:
3205 # - build_subdir is where we find build modules, and never changes.
3206 # - build_libsubdir is where we find build libraries, and can be overridden.
3208 # Prefix 'build-' so this never conflicts with target_subdir.
3209 build_subdir="build-${build_noncanonical}"
3211 # Check whether --with-build-libsubdir was given.
3212 if test "${with_build_libsubdir+set}" = set; then :
3213 withval=$with_build_libsubdir; build_libsubdir="$withval"
3214 else
3215 build_libsubdir="$build_subdir"
3218 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3219 if ( test $srcdir = . && test -d gcc ) \
3220 || test -d $srcdir/../host-${host_noncanonical}; then
3221 host_subdir="host-${host_noncanonical}"
3222 else
3223 host_subdir=.
3225 # No prefix.
3226 target_subdir=${target_noncanonical}
3229 # Set program_transform_name
3230 test "$program_prefix" != NONE &&
3231 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3232 # Use a double $ so make ignores it.
3233 test "$program_suffix" != NONE &&
3234 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3235 # Double any \ or $.
3236 # By default was `s,x,x', remove it if useless.
3237 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3238 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3241 # Check for bogus environment variables.
3242 # Test if LIBRARY_PATH contains the notation for the current directory
3243 # since this would lead to problems installing/building glibc.
3244 # LIBRARY_PATH contains the current directory if one of the following
3245 # is true:
3246 # - one of the terminals (":" and ";") is the first or last sign
3247 # - two terminals occur directly after each other
3248 # - the path contains an element with a dot in it
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3250 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3251 case ${LIBRARY_PATH} in
3252 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3253 library_path_setting="contains current directory"
3256 library_path_setting="ok"
3258 esac
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3260 $as_echo "$library_path_setting" >&6; }
3261 if test "$library_path_setting" != "ok"; then
3262 as_fn_error "
3263 *** LIBRARY_PATH shouldn't contain the current directory when
3264 *** building gcc. Please change the environment variable
3265 *** and run configure again." "$LINENO" 5
3268 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3269 # since this would lead to problems installing/building glibc.
3270 # GCC_EXEC_PREFIX contains the current directory if one of the following
3271 # is true:
3272 # - one of the terminals (":" and ";") is the first or last sign
3273 # - two terminals occur directly after each other
3274 # - the path contains an element with a dot in it
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3276 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3277 case ${GCC_EXEC_PREFIX} in
3278 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3279 gcc_exec_prefix_setting="contains current directory"
3282 gcc_exec_prefix_setting="ok"
3284 esac
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3286 $as_echo "$gcc_exec_prefix_setting" >&6; }
3287 if test "$gcc_exec_prefix_setting" != "ok"; then
3288 as_fn_error "
3289 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3290 *** building gcc. Please change the environment variable
3291 *** and run configure again." "$LINENO" 5
3294 # -----------
3295 # Directories
3296 # -----------
3298 # Specify the local prefix
3299 local_prefix=
3301 # Check whether --with-local-prefix was given.
3302 if test "${with_local_prefix+set}" = set; then :
3303 withval=$with_local_prefix; case "${withval}" in
3304 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3305 no) ;;
3306 *) local_prefix=$with_local_prefix ;;
3307 esac
3311 # Default local prefix if it is empty
3312 if test x$local_prefix = x; then
3313 local_prefix=/usr/local
3316 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3317 # passed in by the toplevel make and thus we'd get different behavior
3318 # depending on where we built the sources.
3319 gcc_gxx_include_dir=
3320 # Specify the g++ header file directory
3322 # Check whether --with-gxx-include-dir was given.
3323 if test "${with_gxx_include_dir+set}" = set; then :
3324 withval=$with_gxx_include_dir; case "${withval}" in
3325 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3326 no) ;;
3327 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3328 esac
3332 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3333 if test x${gcc_gxx_include_dir} = x; then
3334 if test x${enable_version_specific_runtime_libs} = xyes; then
3335 gcc_gxx_include_dir='${libsubdir}/include/c++'
3336 else
3337 libstdcxx_incdir='include/c++/$(version)'
3338 if test x$host != x$target; then
3339 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3341 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3345 gcc_gxx_include_dir_add_sysroot=0
3346 if test "${with_sysroot+set}" = set; then
3347 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3348 if test "${gcc_gxx_without_sysroot}"; then
3349 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3350 gcc_gxx_include_dir_add_sysroot=1
3355 # Check whether --with-cpp_install_dir was given.
3356 if test "${with_cpp_install_dir+set}" = set; then :
3357 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3358 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3359 elif test x$withval != xno; then
3360 cpp_install_dir=$withval
3365 # We would like to our source tree to be readonly. However when releases or
3366 # pre-releases are generated, the flex/bison generated files as well as the
3367 # various formats of manuals need to be included along with the rest of the
3368 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3369 # just that.
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3372 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3373 # Check whether --enable-generated-files-in-srcdir was given.
3374 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3375 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3376 else
3377 generated_files_in_srcdir=no
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3382 $as_echo "$generated_files_in_srcdir" >&6; }
3384 if test "$generated_files_in_srcdir" = "yes"; then
3385 GENINSRC=''
3386 else
3387 GENINSRC='#'
3391 # -------------------
3392 # Find default linker
3393 # -------------------
3395 # With GNU ld
3397 # Check whether --with-gnu-ld was given.
3398 if test "${with_gnu_ld+set}" = set; then :
3399 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3400 else
3401 gnu_ld_flag=no
3405 # With pre-defined ld
3407 # Check whether --with-ld was given.
3408 if test "${with_ld+set}" = set; then :
3409 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3412 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3413 if test ! -x "$DEFAULT_LINKER"; then
3414 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3415 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3416 gnu_ld_flag=yes
3419 cat >>confdefs.h <<_ACEOF
3420 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3421 _ACEOF
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3426 $as_echo_n "checking whether a default linker was specified... " >&6; }
3427 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3428 if test x"$gnu_ld_flag" = x"no"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3430 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3431 else
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3433 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3435 else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3440 # With demangler in GNU ld
3442 # Check whether --with-demangler-in-ld was given.
3443 if test "${with_demangler_in_ld+set}" = set; then :
3444 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3445 else
3446 demangler_in_ld=yes
3450 # ----------------------
3451 # Find default assembler
3452 # ----------------------
3454 # With GNU as
3456 # Check whether --with-gnu-as was given.
3457 if test "${with_gnu_as+set}" = set; then :
3458 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3459 else
3460 gas_flag=no
3465 # Check whether --with-as was given.
3466 if test "${with_as+set}" = set; then :
3467 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3470 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3471 if test ! -x "$DEFAULT_ASSEMBLER"; then
3472 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3473 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3474 gas_flag=yes
3477 cat >>confdefs.h <<_ACEOF
3478 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3479 _ACEOF
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3484 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3485 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3486 if test x"$gas_flag" = x"no"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3488 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3489 else
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3491 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3498 # ---------------
3499 # Find C compiler
3500 # ---------------
3502 # If a non-executable a.out is present (e.g. created by GNU as above even if
3503 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3504 # file, even when creating an executable, so an execution test fails.
3505 # Remove possible default executable files to avoid this.
3507 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3508 # Autoconf includes it.
3509 rm -f a.out a.exe b.out
3511 # Find the native compiler
3512 ac_ext=c
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517 if test -n "$ac_tool_prefix"; then
3518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if test "${ac_cv_prog_CC+set}" = set; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 if test -n "$CC"; then
3526 ac_cv_prog_CC="$CC" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3539 done
3540 done
3541 IFS=$as_save_IFS
3545 CC=$ac_cv_prog_CC
3546 if test -n "$CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548 $as_echo "$CC" >&6; }
3549 else
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3556 if test -z "$ac_cv_prog_CC"; then
3557 ac_ct_CC=$CC
3558 # Extract the first word of "gcc", so it can be a program name with args.
3559 set dummy gcc; ac_word=$2
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561 $as_echo_n "checking for $ac_word... " >&6; }
3562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 if test -n "$ac_ct_CC"; then
3566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3567 else
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 for as_dir in $PATH
3571 IFS=$as_save_IFS
3572 test -z "$as_dir" && as_dir=.
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3575 ac_cv_prog_ac_ct_CC="gcc"
3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 break 2
3579 done
3580 done
3581 IFS=$as_save_IFS
3585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3586 if test -n "$ac_ct_CC"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3588 $as_echo "$ac_ct_CC" >&6; }
3589 else
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3594 if test "x$ac_ct_CC" = x; then
3595 CC=""
3596 else
3597 case $cross_compiling:$ac_tool_warned in
3598 yes:)
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601 ac_tool_warned=yes ;;
3602 esac
3603 CC=$ac_ct_CC
3605 else
3606 CC="$ac_cv_prog_CC"
3609 if test -z "$CC"; then
3610 if test -n "$ac_tool_prefix"; then
3611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3612 set dummy ${ac_tool_prefix}cc; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_CC+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC="$CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_CC="${ac_tool_prefix}cc"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3632 done
3633 done
3634 IFS=$as_save_IFS
3638 CC=$ac_cv_prog_CC
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3642 else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3650 if test -z "$CC"; then
3651 # Extract the first word of "cc", so it can be a program name with args.
3652 set dummy cc; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_CC+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 ac_prog_rejected=no
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3670 ac_prog_rejected=yes
3671 continue
3673 ac_cv_prog_CC="cc"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3677 done
3678 done
3679 IFS=$as_save_IFS
3681 if test $ac_prog_rejected = yes; then
3682 # We found a bogon in the path, so make sure we never use it.
3683 set dummy $ac_cv_prog_CC
3684 shift
3685 if test $# != 0; then
3686 # We chose a different compiler from the bogus one.
3687 # However, it has the same basename, so the bogon will be chosen
3688 # first if we set CC to just the basename; use the full file name.
3689 shift
3690 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3695 CC=$ac_cv_prog_CC
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3706 if test -z "$CC"; then
3707 if test -n "$ac_tool_prefix"; then
3708 for ac_prog in cl.exe
3710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if test "${ac_cv_prog_CC+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 if test -n "$CC"; then
3718 ac_cv_prog_CC="$CC" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3723 IFS=$as_save_IFS
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 break 2
3731 done
3732 done
3733 IFS=$as_save_IFS
3737 CC=$ac_cv_prog_CC
3738 if test -n "$CC"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740 $as_echo "$CC" >&6; }
3741 else
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3747 test -n "$CC" && break
3748 done
3750 if test -z "$CC"; then
3751 ac_ct_CC=$CC
3752 for ac_prog in cl.exe
3754 # Extract the first word of "$ac_prog", so it can be a program name with args.
3755 set dummy $ac_prog; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -n "$ac_ct_CC"; then
3762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_ac_ct_CC="$ac_prog"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3775 done
3776 done
3777 IFS=$as_save_IFS
3781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3782 if test -n "$ac_ct_CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784 $as_echo "$ac_ct_CC" >&6; }
3785 else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3791 test -n "$ac_ct_CC" && break
3792 done
3794 if test "x$ac_ct_CC" = x; then
3795 CC=""
3796 else
3797 case $cross_compiling:$ac_tool_warned in
3798 yes:)
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801 ac_tool_warned=yes ;;
3802 esac
3803 CC=$ac_ct_CC
3810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error "no acceptable C compiler found in \$PATH
3813 See \`config.log' for more details." "$LINENO" 5; }
3815 # Provide some information about the compiler.
3816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3817 set X $ac_compile
3818 ac_compiler=$2
3819 for ac_option in --version -v -V -qversion; do
3820 { { ac_try="$ac_compiler $ac_option >&5"
3821 case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824 esac
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3828 ac_status=$?
3829 if test -s conftest.err; then
3830 sed '10a\
3831 ... rest of stderr output deleted ...
3832 10q' conftest.err >conftest.er1
3833 cat conftest.er1 >&5
3834 rm -f conftest.er1 conftest.err
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }
3838 done
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3844 main ()
3848 return 0;
3850 _ACEOF
3851 ac_clean_files_save=$ac_clean_files
3852 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3853 # Try to create an executable without -o first, disregard a.out.
3854 # It will help us diagnose broken compilers, and finding out an intuition
3855 # of exeext.
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3857 $as_echo_n "checking for C compiler default output file name... " >&6; }
3858 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3860 # The possible output files:
3861 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3863 ac_rmfiles=
3864 for ac_file in $ac_files
3866 case $ac_file in
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3869 esac
3870 done
3871 rm -f $ac_rmfiles
3873 if { { ac_try="$ac_link_default"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_link_default") 2>&5
3881 ac_status=$?
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then :
3884 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3885 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3886 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3887 # so that the user can short-circuit this test for compilers unknown to
3888 # Autoconf.
3889 for ac_file in $ac_files ''
3891 test -f "$ac_file" || continue
3892 case $ac_file in
3893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3895 [ab].out )
3896 # We found the default executable, but exeext='' is most
3897 # certainly right.
3898 break;;
3899 *.* )
3900 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3901 then :; else
3902 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 # We set ac_cv_exeext here because the later test for it is not
3905 # safe: cross compilers may not add the suffix if given an `-o'
3906 # argument, so we may need to know it at that point already.
3907 # Even if this section looks crufty: it has the advantage of
3908 # actually working.
3909 break;;
3911 break;;
3912 esac
3913 done
3914 test "$ac_cv_exeext" = no && ac_cv_exeext=
3916 else
3917 ac_file=''
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3920 $as_echo "$ac_file" >&6; }
3921 if test -z "$ac_file"; then :
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 { as_fn_set_status 77
3928 as_fn_error "C compiler cannot create executables
3929 See \`config.log' for more details." "$LINENO" 5; }; }
3931 ac_exeext=$ac_cv_exeext
3933 # Check that the compiler produces executables we can run. If not, either
3934 # the compiler is broken, or we cross compile.
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3936 $as_echo_n "checking whether the C compiler works... " >&6; }
3937 # If not cross compiling, check that we can run a simple program.
3938 if test "$cross_compiling" != yes; then
3939 if { ac_try='./$ac_file'
3940 { { case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_try") 2>&5
3947 ac_status=$?
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }; }; then
3950 cross_compiling=no
3951 else
3952 if test "$cross_compiling" = maybe; then
3953 cross_compiling=yes
3954 else
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error "cannot run C compiled programs.
3958 If you meant to cross compile, use \`--host'.
3959 See \`config.log' for more details." "$LINENO" 5; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964 $as_echo "yes" >&6; }
3966 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3967 ac_clean_files=$ac_clean_files_save
3968 # Check that the compiler produces executables we can run. If not, either
3969 # the compiler is broken, or we cross compile.
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3971 $as_echo_n "checking whether we are cross compiling... " >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3973 $as_echo "$cross_compiling" >&6; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3976 $as_echo_n "checking for suffix of executables... " >&6; }
3977 if { { ac_try="$ac_link"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_link") 2>&5
3985 ac_status=$?
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }; then :
3988 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3989 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3990 # work properly (i.e., refer to `conftest.exe'), while it won't with
3991 # `rm'.
3992 for ac_file in conftest.exe conftest conftest.*; do
3993 test -f "$ac_file" || continue
3994 case $ac_file in
3995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3996 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3997 break;;
3998 * ) break;;
3999 esac
4000 done
4001 else
4002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error "cannot compute suffix of executables: cannot compile and link
4005 See \`config.log' for more details." "$LINENO" 5; }
4007 rm -f conftest$ac_cv_exeext
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4009 $as_echo "$ac_cv_exeext" >&6; }
4011 rm -f conftest.$ac_ext
4012 EXEEXT=$ac_cv_exeext
4013 ac_exeext=$EXEEXT
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4015 $as_echo_n "checking for suffix of object files... " >&6; }
4016 if test "${ac_cv_objext+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4023 main ()
4027 return 0;
4029 _ACEOF
4030 rm -f conftest.o conftest.obj
4031 if { { ac_try="$ac_compile"
4032 case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 $as_echo "$ac_try_echo"; } >&5
4038 (eval "$ac_compile") 2>&5
4039 ac_status=$?
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }; then :
4042 for ac_file in conftest.o conftest.obj conftest.*; do
4043 test -f "$ac_file" || continue;
4044 case $ac_file in
4045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4046 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4047 break;;
4048 esac
4049 done
4050 else
4051 $as_echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error "cannot compute suffix of object files: cannot compile
4057 See \`config.log' for more details." "$LINENO" 5; }
4059 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4062 $as_echo "$ac_cv_objext" >&6; }
4063 OBJEXT=$ac_cv_objext
4064 ac_objext=$OBJEXT
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4066 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4067 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4074 main ()
4076 #ifndef __GNUC__
4077 choke me
4078 #endif
4081 return 0;
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085 ac_compiler_gnu=yes
4086 else
4087 ac_compiler_gnu=no
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4094 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4095 if test $ac_compiler_gnu = yes; then
4096 GCC=yes
4097 else
4098 GCC=
4100 ac_test_CFLAGS=${CFLAGS+set}
4101 ac_save_CFLAGS=$CFLAGS
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4103 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4104 if test "${ac_cv_prog_cc_g+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 ac_save_c_werror_flag=$ac_c_werror_flag
4108 ac_c_werror_flag=yes
4109 ac_cv_prog_cc_g=no
4110 CFLAGS="-g"
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 :
4123 ac_cv_prog_cc_g=yes
4124 else
4125 CFLAGS=""
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4130 main ()
4134 return 0;
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4139 else
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4141 CFLAGS="-g"
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4146 main ()
4150 return 0;
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"; then :
4154 ac_cv_prog_cc_g=yes
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4164 $as_echo "$ac_cv_prog_cc_g" >&6; }
4165 if test "$ac_test_CFLAGS" = set; then
4166 CFLAGS=$ac_save_CFLAGS
4167 elif test $ac_cv_prog_cc_g = yes; then
4168 if test "$GCC" = yes; then
4169 CFLAGS="-g -O2"
4170 else
4171 CFLAGS="-g"
4173 else
4174 if test "$GCC" = yes; then
4175 CFLAGS="-O2"
4176 else
4177 CFLAGS=
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4181 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4182 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 ac_cv_prog_cc_c89=no
4186 ac_save_CC=$CC
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 #include <stdarg.h>
4190 #include <stdio.h>
4191 #include <sys/types.h>
4192 #include <sys/stat.h>
4193 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4194 struct buf { int x; };
4195 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4196 static char *e (p, i)
4197 char **p;
4198 int i;
4200 return p[i];
4202 static char *f (char * (*g) (char **, int), char **p, ...)
4204 char *s;
4205 va_list v;
4206 va_start (v,p);
4207 s = g (p, va_arg (v,int));
4208 va_end (v);
4209 return s;
4212 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4213 function prototypes and stuff, but not '\xHH' hex character constants.
4214 These don't provoke an error unfortunately, instead are silently treated
4215 as 'x'. The following induces an error, until -std is added to get
4216 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4217 array size at least. It's necessary to write '\x00'==0 to get something
4218 that's true only with -std. */
4219 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4221 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4222 inside strings and character constants. */
4223 #define FOO(x) 'x'
4224 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4226 int test (int i, double x);
4227 struct s1 {int (*f) (int a);};
4228 struct s2 {int (*f) (double a);};
4229 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4230 int argc;
4231 char **argv;
4233 main ()
4235 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4237 return 0;
4239 _ACEOF
4240 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4241 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4243 CC="$ac_save_CC $ac_arg"
4244 if ac_fn_c_try_compile "$LINENO"; then :
4245 ac_cv_prog_cc_c89=$ac_arg
4247 rm -f core conftest.err conftest.$ac_objext
4248 test "x$ac_cv_prog_cc_c89" != "xno" && break
4249 done
4250 rm -f conftest.$ac_ext
4251 CC=$ac_save_CC
4254 # AC_CACHE_VAL
4255 case "x$ac_cv_prog_cc_c89" in
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4258 $as_echo "none needed" >&6; } ;;
4259 xno)
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4261 $as_echo "unsupported" >&6; } ;;
4263 CC="$CC $ac_cv_prog_cc_c89"
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4265 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4266 esac
4267 if test "x$ac_cv_prog_cc_c89" != xno; then :
4271 ac_ext=c
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277 if test "x$CC" != xcc; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4279 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4280 else
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4282 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4284 set dummy $CC; ac_cc=`$as_echo "$2" |
4285 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4286 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4293 main ()
4297 return 0;
4299 _ACEOF
4300 # Make sure it works both with $CC and with simple cc.
4301 # We do the test twice because some compilers refuse to overwrite an
4302 # existing .o file with -o, though they will create one.
4303 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4304 rm -f conftest2.*
4305 if { { case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_try") 2>&5
4312 ac_status=$?
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; } &&
4315 test -f conftest2.$ac_objext && { { 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; };
4325 then
4326 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4327 if test "x$CC" != xcc; then
4328 # Test first that cc exists at all.
4329 if { ac_try='cc -c conftest.$ac_ext >&5'
4330 { { case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333 esac
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_try") 2>&5
4337 ac_status=$?
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; }; }; then
4340 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4341 rm -f conftest2.*
4342 if { { case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345 esac
4346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347 $as_echo "$ac_try_echo"; } >&5
4348 (eval "$ac_try") 2>&5
4349 ac_status=$?
4350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; } &&
4352 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4355 esac
4356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4357 $as_echo "$ac_try_echo"; } >&5
4358 (eval "$ac_try") 2>&5
4359 ac_status=$?
4360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4361 test $ac_status = 0; };
4362 then
4363 # cc works too.
4365 else
4366 # cc exists but doesn't like -o.
4367 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4371 else
4372 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4374 rm -f core conftest*
4377 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4379 $as_echo "yes" >&6; }
4380 else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4384 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4388 # expand $ac_aux_dir to an absolute path
4389 am_aux_dir=`cd $ac_aux_dir && pwd`
4391 # FIXME: we rely on the cache variable name because
4392 # there is no other way.
4393 set dummy $CC
4394 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4395 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4396 if test "$am_t" != yes; then
4397 # Losing compiler, so override with the script.
4398 # FIXME: It is wrong to rewrite CC.
4399 # But if we don't then we get into trouble of one sort or another.
4400 # A longer-term fix would be to have automake use am__CC in this case,
4401 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4402 CC="$am_aux_dir/compile $CC"
4406 ac_ext=cpp
4407 ac_cpp='$CXXCPP $CPPFLAGS'
4408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4411 if test -z "$CXX"; then
4412 if test -n "$CCC"; then
4413 CXX=$CCC
4414 else
4415 if test -n "$ac_tool_prefix"; then
4416 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if test "${ac_cv_prog_CXX+set}" = set; then :
4423 $as_echo_n "(cached) " >&6
4424 else
4425 if test -n "$CXX"; then
4426 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4439 done
4440 done
4441 IFS=$as_save_IFS
4445 CXX=$ac_cv_prog_CXX
4446 if test -n "$CXX"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4448 $as_echo "$CXX" >&6; }
4449 else
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4455 test -n "$CXX" && break
4456 done
4458 if test -z "$CXX"; then
4459 ac_ct_CXX=$CXX
4460 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4462 # Extract the first word of "$ac_prog", so it can be a program name with args.
4463 set dummy $ac_prog; ac_word=$2
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4467 $as_echo_n "(cached) " >&6
4468 else
4469 if test -n "$ac_ct_CXX"; then
4470 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_ac_ct_CXX="$ac_prog"
4480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4483 done
4484 done
4485 IFS=$as_save_IFS
4489 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4490 if test -n "$ac_ct_CXX"; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4492 $as_echo "$ac_ct_CXX" >&6; }
4493 else
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4495 $as_echo "no" >&6; }
4499 test -n "$ac_ct_CXX" && break
4500 done
4502 if test "x$ac_ct_CXX" = x; then
4503 CXX="g++"
4504 else
4505 case $cross_compiling:$ac_tool_warned in
4506 yes:)
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4509 ac_tool_warned=yes ;;
4510 esac
4511 CXX=$ac_ct_CXX
4517 # Provide some information about the compiler.
4518 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4519 set X $ac_compile
4520 ac_compiler=$2
4521 for ac_option in --version -v -V -qversion; do
4522 { { ac_try="$ac_compiler $ac_option >&5"
4523 case "(($ac_try" in
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4526 esac
4527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 $as_echo "$ac_try_echo"; } >&5
4529 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4530 ac_status=$?
4531 if test -s conftest.err; then
4532 sed '10a\
4533 ... rest of stderr output deleted ...
4534 10q' conftest.err >conftest.er1
4535 cat conftest.er1 >&5
4536 rm -f conftest.er1 conftest.err
4538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4539 test $ac_status = 0; }
4540 done
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4543 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4544 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4545 $as_echo_n "(cached) " >&6
4546 else
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4551 main ()
4553 #ifndef __GNUC__
4554 choke me
4555 #endif
4558 return 0;
4560 _ACEOF
4561 if ac_fn_cxx_try_compile "$LINENO"; then :
4562 ac_compiler_gnu=yes
4563 else
4564 ac_compiler_gnu=no
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4571 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4572 if test $ac_compiler_gnu = yes; then
4573 GXX=yes
4574 else
4575 GXX=
4577 ac_test_CXXFLAGS=${CXXFLAGS+set}
4578 ac_save_CXXFLAGS=$CXXFLAGS
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4580 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4581 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4585 ac_cxx_werror_flag=yes
4586 ac_cv_prog_cxx_g=no
4587 CXXFLAGS="-g"
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 :
4600 ac_cv_prog_cxx_g=yes
4601 else
4602 CXXFLAGS=""
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4607 main ()
4611 return 0;
4613 _ACEOF
4614 if ac_fn_cxx_try_compile "$LINENO"; then :
4616 else
4617 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4618 CXXFLAGS="-g"
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4623 main ()
4627 return 0;
4629 _ACEOF
4630 if ac_fn_cxx_try_compile "$LINENO"; then :
4631 ac_cv_prog_cxx_g=yes
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4641 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4642 if test "$ac_test_CXXFLAGS" = set; then
4643 CXXFLAGS=$ac_save_CXXFLAGS
4644 elif test $ac_cv_prog_cxx_g = yes; then
4645 if test "$GXX" = yes; then
4646 CXXFLAGS="-g -O2"
4647 else
4648 CXXFLAGS="-g"
4650 else
4651 if test "$GXX" = yes; then
4652 CXXFLAGS="-O2"
4653 else
4654 CXXFLAGS=
4657 ac_ext=c
4658 ac_cpp='$CPP $CPPFLAGS'
4659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666 if test -n "$ac_tool_prefix"; then
4667 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4668 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -n "$GNATBIND"; then
4675 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 break 2
4688 done
4689 done
4690 IFS=$as_save_IFS
4694 GNATBIND=$ac_cv_prog_GNATBIND
4695 if test -n "$GNATBIND"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4697 $as_echo "$GNATBIND" >&6; }
4698 else
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4705 if test -z "$ac_cv_prog_GNATBIND"; then
4706 ac_ct_GNATBIND=$GNATBIND
4707 # Extract the first word of "gnatbind", so it can be a program name with args.
4708 set dummy gnatbind; ac_word=$2
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714 if test -n "$ac_ct_GNATBIND"; then
4715 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4716 else
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4728 done
4729 done
4730 IFS=$as_save_IFS
4734 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4735 if test -n "$ac_ct_GNATBIND"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4737 $as_echo "$ac_ct_GNATBIND" >&6; }
4738 else
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4743 if test "x$ac_ct_GNATBIND" = x; then
4744 GNATBIND="no"
4745 else
4746 case $cross_compiling:$ac_tool_warned in
4747 yes:)
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4750 ac_tool_warned=yes ;;
4751 esac
4752 GNATBIND=$ac_ct_GNATBIND
4754 else
4755 GNATBIND="$ac_cv_prog_GNATBIND"
4758 if test -n "$ac_tool_prefix"; then
4759 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4760 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762 $as_echo_n "checking for $ac_word... " >&6; }
4763 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 if test -n "$GNATMAKE"; then
4767 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4768 else
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 break 2
4780 done
4781 done
4782 IFS=$as_save_IFS
4786 GNATMAKE=$ac_cv_prog_GNATMAKE
4787 if test -n "$GNATMAKE"; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4789 $as_echo "$GNATMAKE" >&6; }
4790 else
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4797 if test -z "$ac_cv_prog_GNATMAKE"; then
4798 ac_ct_GNATMAKE=$GNATMAKE
4799 # Extract the first word of "gnatmake", so it can be a program name with args.
4800 set dummy gnatmake; ac_word=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 if test -n "$ac_ct_GNATMAKE"; then
4807 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 break 2
4820 done
4821 done
4822 IFS=$as_save_IFS
4826 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4827 if test -n "$ac_ct_GNATMAKE"; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4829 $as_echo "$ac_ct_GNATMAKE" >&6; }
4830 else
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4835 if test "x$ac_ct_GNATMAKE" = x; then
4836 GNATMAKE="no"
4837 else
4838 case $cross_compiling:$ac_tool_warned in
4839 yes:)
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4842 ac_tool_warned=yes ;;
4843 esac
4844 GNATMAKE=$ac_ct_GNATMAKE
4846 else
4847 GNATMAKE="$ac_cv_prog_GNATMAKE"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4851 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4852 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 cat >conftest.adb <<EOF
4856 procedure conftest is begin null; end conftest;
4858 acx_cv_cc_gcc_supports_ada=no
4859 # There is a bug in old released versions of GCC which causes the
4860 # driver to exit successfully when the appropriate language module
4861 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4862 # Therefore we must check for the error message as well as an
4863 # unsuccessful exit.
4864 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4865 # given a .adb file, but produce no object file. So we must check
4866 # if an object file was really produced to guard against this.
4867 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4868 if test x"$errors" = x && test -f conftest.$ac_objext; then
4869 acx_cv_cc_gcc_supports_ada=yes
4871 rm -f conftest.*
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4874 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4876 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4877 have_gnat=yes
4878 else
4879 have_gnat=no
4883 # autoconf is lame and doesn't give us any substitution variable for this.
4884 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4885 NO_MINUS_C_MINUS_O=yes
4886 else
4887 OUTPUT_OPTION='-o $@'
4892 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4893 # optimizations to be activated explicitly by the toplevel.
4894 case "$CC" in
4895 */prev-gcc/xgcc*) ;;
4896 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4897 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4898 esac
4902 # Determine PICFLAG for target gnatlib.
4907 case "${target}" in
4908 # PIC is the default on some targets or must not be used.
4909 *-*-darwin*)
4910 # PIC is the default on this platform
4911 # Common symbols not allowed in MH_DYLIB files
4912 PICFLAG_FOR_TARGET=-fno-common
4914 alpha*-dec-osf5*)
4915 # PIC is the default.
4917 hppa*64*-*-hpux*)
4918 # PIC is the default for 64-bit PA HP-UX.
4920 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4922 i[34567]86-*-mingw* | x86_64-*-mingw*)
4924 i[34567]86-*-interix[3-9]*)
4925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4926 # Instead, we relocate shared libraries at runtime.
4928 i[34567]86-*-nto-qnx*)
4929 # QNX uses GNU C++, but need to define -shared option too, otherwise
4930 # it will coredump.
4931 PICFLAG_FOR_TARGET='-fPIC -shared'
4933 i[34567]86-pc-msdosdjgpp*)
4934 # DJGPP does not support shared libraries at all.
4936 ia64*-*-hpux*)
4937 # On IA64 HP-UX, PIC is the default but the pic flag
4938 # sets the default TLS model and affects inlining.
4939 PICFLAG_FOR_TARGET=-fPIC
4941 mips-sgi-irix6*)
4942 # PIC is the default.
4944 rs6000-ibm-aix* | powerpc-ibm-aix*)
4945 # All AIX code is PIC.
4948 # Some targets support both -fPIC and -fpic, but prefer the latter.
4949 # FIXME: Why?
4950 i[34567]86-*-* | x86_64-*-*)
4951 PICFLAG_FOR_TARGET=-fpic
4953 m68k-*-*)
4954 PICFLAG_FOR_TARGET=-fpic
4956 # FIXME: Override -fPIC default in libgcc only?
4957 sh-*-linux* | sh[2346lbe]*-*-linux*)
4958 PICFLAG_FOR_TARGET=-fpic
4960 # FIXME: Simplify to sh*-*-netbsd*?
4961 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4962 sh64-*-netbsd* | sh64l*-*-netbsd*)
4963 PICFLAG_FOR_TARGET=-fpic
4965 # Default to -fPIC unless specified otherwise.
4967 PICFLAG_FOR_TARGET=-fPIC
4969 esac
4971 # If the user explicitly uses -fpic/-fPIC, keep that.
4972 case "${CFLAGS_FOR_TARGET}" in
4973 *-fpic*)
4974 PICFLAG_FOR_TARGET=-fpic
4976 *-fPIC*)
4977 PICFLAG_FOR_TARGET=-fPIC
4979 esac
4983 # -------------------------
4984 # Check C compiler features
4985 # -------------------------
4988 ac_ext=c
4989 ac_cpp='$CPP $CPPFLAGS'
4990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4994 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4995 # On Suns, sometimes $CPP names a directory.
4996 if test -n "$CPP" && test -d "$CPP"; then
4997 CPP=
4999 if test -z "$CPP"; then
5000 if test "${ac_cv_prog_CPP+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 # Double quotes because CPP needs to be expanded
5004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5006 ac_preproc_ok=false
5007 for ac_c_preproc_warn_flag in '' yes
5009 # Use a header file that comes with gcc, so configuring glibc
5010 # with a fresh cross-compiler works.
5011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5012 # <limits.h> exists even on freestanding compilers.
5013 # On the NeXT, cc -E runs the code through the compiler's parser,
5014 # not just through cpp. "Syntax error" is here to catch this case.
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017 #ifdef __STDC__
5018 # include <limits.h>
5019 #else
5020 # include <assert.h>
5021 #endif
5022 Syntax error
5023 _ACEOF
5024 if ac_fn_c_try_cpp "$LINENO"; then :
5026 else
5027 # Broken: fails on valid input.
5028 continue
5030 rm -f conftest.err conftest.$ac_ext
5032 # OK, works on sane cases. Now check whether nonexistent headers
5033 # can be detected and how.
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5036 #include <ac_nonexistent.h>
5037 _ACEOF
5038 if ac_fn_c_try_cpp "$LINENO"; then :
5039 # Broken: success on invalid input.
5040 continue
5041 else
5042 # Passes both tests.
5043 ac_preproc_ok=:
5044 break
5046 rm -f conftest.err conftest.$ac_ext
5048 done
5049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5050 rm -f conftest.err conftest.$ac_ext
5051 if $ac_preproc_ok; then :
5052 break
5055 done
5056 ac_cv_prog_CPP=$CPP
5059 CPP=$ac_cv_prog_CPP
5060 else
5061 ac_cv_prog_CPP=$CPP
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5064 $as_echo "$CPP" >&6; }
5065 ac_preproc_ok=false
5066 for ac_c_preproc_warn_flag in '' yes
5068 # Use a header file that comes with gcc, so configuring glibc
5069 # with a fresh cross-compiler works.
5070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071 # <limits.h> exists even on freestanding compilers.
5072 # On the NeXT, cc -E runs the code through the compiler's parser,
5073 # not just through cpp. "Syntax error" is here to catch this case.
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076 #ifdef __STDC__
5077 # include <limits.h>
5078 #else
5079 # include <assert.h>
5080 #endif
5081 Syntax error
5082 _ACEOF
5083 if ac_fn_c_try_cpp "$LINENO"; then :
5085 else
5086 # Broken: fails on valid input.
5087 continue
5089 rm -f conftest.err conftest.$ac_ext
5091 # OK, works on sane cases. Now check whether nonexistent headers
5092 # can be detected and how.
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5095 #include <ac_nonexistent.h>
5096 _ACEOF
5097 if ac_fn_c_try_cpp "$LINENO"; then :
5098 # Broken: success on invalid input.
5099 continue
5100 else
5101 # Passes both tests.
5102 ac_preproc_ok=:
5103 break
5105 rm -f conftest.err conftest.$ac_ext
5107 done
5108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5109 rm -f conftest.err conftest.$ac_ext
5110 if $ac_preproc_ok; then :
5112 else
5113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5115 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5116 See \`config.log' for more details." "$LINENO" 5; }
5119 ac_ext=c
5120 ac_cpp='$CPP $CPPFLAGS'
5121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5127 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5128 if test "${ac_cv_path_GREP+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -z "$GREP"; then
5132 ac_path_GREP_found=false
5133 # Loop through the user's path and test for each of PROGNAME-LIST
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_prog in grep ggrep; do
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5142 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5143 # Check for GNU ac_path_GREP and select it if it is found.
5144 # Check for GNU $ac_path_GREP
5145 case `"$ac_path_GREP" --version 2>&1` in
5146 *GNU*)
5147 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5149 ac_count=0
5150 $as_echo_n 0123456789 >"conftest.in"
5151 while :
5153 cat "conftest.in" "conftest.in" >"conftest.tmp"
5154 mv "conftest.tmp" "conftest.in"
5155 cp "conftest.in" "conftest.nl"
5156 $as_echo 'GREP' >> "conftest.nl"
5157 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5159 as_fn_arith $ac_count + 1 && ac_count=$as_val
5160 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5161 # Best one so far, save it but keep looking for a better one
5162 ac_cv_path_GREP="$ac_path_GREP"
5163 ac_path_GREP_max=$ac_count
5165 # 10*(2^10) chars as input seems more than enough
5166 test $ac_count -gt 10 && break
5167 done
5168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5169 esac
5171 $ac_path_GREP_found && break 3
5172 done
5173 done
5174 done
5175 IFS=$as_save_IFS
5176 if test -z "$ac_cv_path_GREP"; then
5177 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5179 else
5180 ac_cv_path_GREP=$GREP
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5185 $as_echo "$ac_cv_path_GREP" >&6; }
5186 GREP="$ac_cv_path_GREP"
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5190 $as_echo_n "checking for egrep... " >&6; }
5191 if test "${ac_cv_path_EGREP+set}" = set; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5195 then ac_cv_path_EGREP="$GREP -E"
5196 else
5197 if test -z "$EGREP"; then
5198 ac_path_EGREP_found=false
5199 # Loop through the user's path and test for each of PROGNAME-LIST
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_prog in egrep; do
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5208 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5209 # Check for GNU ac_path_EGREP and select it if it is found.
5210 # Check for GNU $ac_path_EGREP
5211 case `"$ac_path_EGREP" --version 2>&1` in
5212 *GNU*)
5213 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5215 ac_count=0
5216 $as_echo_n 0123456789 >"conftest.in"
5217 while :
5219 cat "conftest.in" "conftest.in" >"conftest.tmp"
5220 mv "conftest.tmp" "conftest.in"
5221 cp "conftest.in" "conftest.nl"
5222 $as_echo 'EGREP' >> "conftest.nl"
5223 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5225 as_fn_arith $ac_count + 1 && ac_count=$as_val
5226 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5227 # Best one so far, save it but keep looking for a better one
5228 ac_cv_path_EGREP="$ac_path_EGREP"
5229 ac_path_EGREP_max=$ac_count
5231 # 10*(2^10) chars as input seems more than enough
5232 test $ac_count -gt 10 && break
5233 done
5234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5235 esac
5237 $ac_path_EGREP_found && break 3
5238 done
5239 done
5240 done
5241 IFS=$as_save_IFS
5242 if test -z "$ac_cv_path_EGREP"; then
5243 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5245 else
5246 ac_cv_path_EGREP=$EGREP
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5252 $as_echo "$ac_cv_path_EGREP" >&6; }
5253 EGREP="$ac_cv_path_EGREP"
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5257 $as_echo_n "checking for ANSI C header files... " >&6; }
5258 if test "${ac_cv_header_stdc+set}" = set; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 #include <stdlib.h>
5264 #include <stdarg.h>
5265 #include <string.h>
5266 #include <float.h>
5269 main ()
5273 return 0;
5275 _ACEOF
5276 if ac_fn_c_try_compile "$LINENO"; then :
5277 ac_cv_header_stdc=yes
5278 else
5279 ac_cv_header_stdc=no
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 if test $ac_cv_header_stdc = yes; then
5284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 #include <string.h>
5289 _ACEOF
5290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5291 $EGREP "memchr" >/dev/null 2>&1; then :
5293 else
5294 ac_cv_header_stdc=no
5296 rm -f conftest*
5300 if test $ac_cv_header_stdc = yes; then
5301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304 #include <stdlib.h>
5306 _ACEOF
5307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5308 $EGREP "free" >/dev/null 2>&1; then :
5310 else
5311 ac_cv_header_stdc=no
5313 rm -f conftest*
5317 if test $ac_cv_header_stdc = yes; then
5318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5319 if test "$cross_compiling" = yes; then :
5321 else
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5324 #include <ctype.h>
5325 #include <stdlib.h>
5326 #if ((' ' & 0x0FF) == 0x020)
5327 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5328 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5329 #else
5330 # define ISLOWER(c) \
5331 (('a' <= (c) && (c) <= 'i') \
5332 || ('j' <= (c) && (c) <= 'r') \
5333 || ('s' <= (c) && (c) <= 'z'))
5334 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5335 #endif
5337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5339 main ()
5341 int i;
5342 for (i = 0; i < 256; i++)
5343 if (XOR (islower (i), ISLOWER (i))
5344 || toupper (i) != TOUPPER (i))
5345 return 2;
5346 return 0;
5348 _ACEOF
5349 if ac_fn_c_try_run "$LINENO"; then :
5351 else
5352 ac_cv_header_stdc=no
5354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5355 conftest.$ac_objext conftest.beam conftest.$ac_ext
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5361 $as_echo "$ac_cv_header_stdc" >&6; }
5362 if test $ac_cv_header_stdc = yes; then
5364 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5368 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5369 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5370 inttypes.h stdint.h unistd.h
5371 do :
5372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5373 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5375 eval as_val=\$$as_ac_Header
5376 if test "x$as_val" = x""yes; then :
5377 cat >>confdefs.h <<_ACEOF
5378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5379 _ACEOF
5383 done
5387 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5388 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5389 MINIX=yes
5390 else
5391 MINIX=
5395 if test "$MINIX" = yes; then
5397 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5400 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5403 $as_echo "#define _MINIX 1" >>confdefs.h
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5409 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5410 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5416 # define __EXTENSIONS__ 1
5417 $ac_includes_default
5419 main ()
5423 return 0;
5425 _ACEOF
5426 if ac_fn_c_try_compile "$LINENO"; then :
5427 ac_cv_safe_to_define___extensions__=yes
5428 else
5429 ac_cv_safe_to_define___extensions__=no
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5434 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5435 test $ac_cv_safe_to_define___extensions__ = yes &&
5436 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5438 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5440 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5442 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5444 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5447 ac_ext=c
5448 ac_cpp='$CPP $CPPFLAGS'
5449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5453 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5454 # On Suns, sometimes $CPP names a directory.
5455 if test -n "$CPP" && test -d "$CPP"; then
5456 CPP=
5458 if test -z "$CPP"; then
5459 if test "${ac_cv_prog_CPP+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 # Double quotes because CPP needs to be expanded
5463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5465 ac_preproc_ok=false
5466 for ac_c_preproc_warn_flag in '' yes
5468 # Use a header file that comes with gcc, so configuring glibc
5469 # with a fresh cross-compiler works.
5470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5471 # <limits.h> exists even on freestanding compilers.
5472 # On the NeXT, cc -E runs the code through the compiler's parser,
5473 # not just through cpp. "Syntax error" is here to catch this case.
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5476 #ifdef __STDC__
5477 # include <limits.h>
5478 #else
5479 # include <assert.h>
5480 #endif
5481 Syntax error
5482 _ACEOF
5483 if ac_fn_c_try_cpp "$LINENO"; then :
5485 else
5486 # Broken: fails on valid input.
5487 continue
5489 rm -f conftest.err conftest.$ac_ext
5491 # OK, works on sane cases. Now check whether nonexistent headers
5492 # can be detected and how.
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 #include <ac_nonexistent.h>
5496 _ACEOF
5497 if ac_fn_c_try_cpp "$LINENO"; then :
5498 # Broken: success on invalid input.
5499 continue
5500 else
5501 # Passes both tests.
5502 ac_preproc_ok=:
5503 break
5505 rm -f conftest.err conftest.$ac_ext
5507 done
5508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5509 rm -f conftest.err conftest.$ac_ext
5510 if $ac_preproc_ok; then :
5511 break
5514 done
5515 ac_cv_prog_CPP=$CPP
5518 CPP=$ac_cv_prog_CPP
5519 else
5520 ac_cv_prog_CPP=$CPP
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5523 $as_echo "$CPP" >&6; }
5524 ac_preproc_ok=false
5525 for ac_c_preproc_warn_flag in '' yes
5527 # Use a header file that comes with gcc, so configuring glibc
5528 # with a fresh cross-compiler works.
5529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5530 # <limits.h> exists even on freestanding compilers.
5531 # On the NeXT, cc -E runs the code through the compiler's parser,
5532 # not just through cpp. "Syntax error" is here to catch this case.
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 #ifdef __STDC__
5536 # include <limits.h>
5537 #else
5538 # include <assert.h>
5539 #endif
5540 Syntax error
5541 _ACEOF
5542 if ac_fn_c_try_cpp "$LINENO"; then :
5544 else
5545 # Broken: fails on valid input.
5546 continue
5548 rm -f conftest.err conftest.$ac_ext
5550 # OK, works on sane cases. Now check whether nonexistent headers
5551 # can be detected and how.
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5554 #include <ac_nonexistent.h>
5555 _ACEOF
5556 if ac_fn_c_try_cpp "$LINENO"; then :
5557 # Broken: success on invalid input.
5558 continue
5559 else
5560 # Passes both tests.
5561 ac_preproc_ok=:
5562 break
5564 rm -f conftest.err conftest.$ac_ext
5566 done
5567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5568 rm -f conftest.err conftest.$ac_ext
5569 if $ac_preproc_ok; then :
5571 else
5572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5574 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5575 See \`config.log' for more details." "$LINENO" 5; }
5578 ac_ext=c
5579 ac_cpp='$CPP $CPPFLAGS'
5580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5585 $as_echo_n "checking for inline... " >&6; }
5586 if test "${ac_cv_c_inline+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 ac_cv_c_inline=no
5590 for ac_kw in inline __inline__ __inline; do
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #ifndef __cplusplus
5594 typedef int foo_t;
5595 static $ac_kw foo_t static_foo () {return 0; }
5596 $ac_kw foo_t foo () {return 0; }
5597 #endif
5599 _ACEOF
5600 if ac_fn_c_try_compile "$LINENO"; then :
5601 ac_cv_c_inline=$ac_kw
5603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5604 test "$ac_cv_c_inline" != no && break
5605 done
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5609 $as_echo "$ac_cv_c_inline" >&6; }
5611 case $ac_cv_c_inline in
5612 inline | yes) ;;
5614 case $ac_cv_c_inline in
5615 no) ac_val=;;
5616 *) ac_val=$ac_cv_c_inline;;
5617 esac
5618 cat >>confdefs.h <<_ACEOF
5619 #ifndef __cplusplus
5620 #define inline $ac_val
5621 #endif
5622 _ACEOF
5624 esac
5627 # Check whether --enable-largefile was given.
5628 if test "${enable_largefile+set}" = set; then :
5629 enableval=$enable_largefile;
5632 if test "$enable_largefile" != no; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5635 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5636 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 ac_cv_sys_largefile_CC=no
5640 if test "$GCC" != yes; then
5641 ac_save_CC=$CC
5642 while :; do
5643 # IRIX 6.2 and later do not support large files by default,
5644 # so use the C compiler's -n32 option if that helps.
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647 #include <sys/types.h>
5648 /* Check that off_t can represent 2**63 - 1 correctly.
5649 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5650 since some C++ compilers masquerading as C compilers
5651 incorrectly reject 9223372036854775807. */
5652 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5653 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5654 && LARGE_OFF_T % 2147483647 == 1)
5655 ? 1 : -1];
5657 main ()
5661 return 0;
5663 _ACEOF
5664 if ac_fn_c_try_compile "$LINENO"; then :
5665 break
5667 rm -f core conftest.err conftest.$ac_objext
5668 CC="$CC -n32"
5669 if ac_fn_c_try_compile "$LINENO"; then :
5670 ac_cv_sys_largefile_CC=' -n32'; break
5672 rm -f core conftest.err conftest.$ac_objext
5673 break
5674 done
5675 CC=$ac_save_CC
5676 rm -f conftest.$ac_ext
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5680 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5681 if test "$ac_cv_sys_largefile_CC" != no; then
5682 CC=$CC$ac_cv_sys_largefile_CC
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5686 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5687 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 while :; do
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 #include <sys/types.h>
5694 /* Check that off_t can represent 2**63 - 1 correctly.
5695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5696 since some C++ compilers masquerading as C compilers
5697 incorrectly reject 9223372036854775807. */
5698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5700 && LARGE_OFF_T % 2147483647 == 1)
5701 ? 1 : -1];
5703 main ()
5707 return 0;
5709 _ACEOF
5710 if ac_fn_c_try_compile "$LINENO"; then :
5711 ac_cv_sys_file_offset_bits=no; break
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 #define _FILE_OFFSET_BITS 64
5717 #include <sys/types.h>
5718 /* Check that off_t can represent 2**63 - 1 correctly.
5719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5720 since some C++ compilers masquerading as C compilers
5721 incorrectly reject 9223372036854775807. */
5722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5724 && LARGE_OFF_T % 2147483647 == 1)
5725 ? 1 : -1];
5727 main ()
5731 return 0;
5733 _ACEOF
5734 if ac_fn_c_try_compile "$LINENO"; then :
5735 ac_cv_sys_file_offset_bits=64; break
5737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738 ac_cv_sys_file_offset_bits=unknown
5739 break
5740 done
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5743 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5744 case $ac_cv_sys_file_offset_bits in #(
5745 no | unknown) ;;
5747 cat >>confdefs.h <<_ACEOF
5748 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5749 _ACEOF
5751 esac
5752 rm -rf conftest*
5753 if test $ac_cv_sys_file_offset_bits = unknown; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5755 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5756 if test "${ac_cv_sys_large_files+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 while :; do
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 #include <sys/types.h>
5763 /* Check that off_t can represent 2**63 - 1 correctly.
5764 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5765 since some C++ compilers masquerading as C compilers
5766 incorrectly reject 9223372036854775807. */
5767 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5769 && LARGE_OFF_T % 2147483647 == 1)
5770 ? 1 : -1];
5772 main ()
5776 return 0;
5778 _ACEOF
5779 if ac_fn_c_try_compile "$LINENO"; then :
5780 ac_cv_sys_large_files=no; break
5782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5785 #define _LARGE_FILES 1
5786 #include <sys/types.h>
5787 /* Check that off_t can represent 2**63 - 1 correctly.
5788 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5789 since some C++ compilers masquerading as C compilers
5790 incorrectly reject 9223372036854775807. */
5791 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5792 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5793 && LARGE_OFF_T % 2147483647 == 1)
5794 ? 1 : -1];
5796 main ()
5800 return 0;
5802 _ACEOF
5803 if ac_fn_c_try_compile "$LINENO"; then :
5804 ac_cv_sys_large_files=1; break
5806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807 ac_cv_sys_large_files=unknown
5808 break
5809 done
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5812 $as_echo "$ac_cv_sys_large_files" >&6; }
5813 case $ac_cv_sys_large_files in #(
5814 no | unknown) ;;
5816 cat >>confdefs.h <<_ACEOF
5817 #define _LARGE_FILES $ac_cv_sys_large_files
5818 _ACEOF
5820 esac
5821 rm -rf conftest*
5826 # sizeof(char) is 1 by definition.
5827 # The cast to long int works around a bug in the HP C Compiler
5828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5830 # This bug is HP SR number 8606223364.
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5832 $as_echo_n "checking size of void *... " >&6; }
5833 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5836 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5838 else
5839 if test "$ac_cv_type_void_p" = yes; then
5840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5842 { as_fn_set_status 77
5843 as_fn_error "cannot compute sizeof (void *)
5844 See \`config.log' for more details." "$LINENO" 5; }; }
5845 else
5846 ac_cv_sizeof_void_p=0
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5852 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5856 cat >>confdefs.h <<_ACEOF
5857 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5858 _ACEOF
5861 # The cast to long int works around a bug in the HP C Compiler
5862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5864 # This bug is HP SR number 8606223364.
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5866 $as_echo_n "checking size of short... " >&6; }
5867 if test "${ac_cv_sizeof_short+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5872 else
5873 if test "$ac_cv_type_short" = yes; then
5874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5876 { as_fn_set_status 77
5877 as_fn_error "cannot compute sizeof (short)
5878 See \`config.log' for more details." "$LINENO" 5; }; }
5879 else
5880 ac_cv_sizeof_short=0
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5886 $as_echo "$ac_cv_sizeof_short" >&6; }
5890 cat >>confdefs.h <<_ACEOF
5891 #define SIZEOF_SHORT $ac_cv_sizeof_short
5892 _ACEOF
5895 # The cast to long int works around a bug in the HP C Compiler
5896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5898 # This bug is HP SR number 8606223364.
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5900 $as_echo_n "checking size of int... " >&6; }
5901 if test "${ac_cv_sizeof_int+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5906 else
5907 if test "$ac_cv_type_int" = yes; then
5908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5910 { as_fn_set_status 77
5911 as_fn_error "cannot compute sizeof (int)
5912 See \`config.log' for more details." "$LINENO" 5; }; }
5913 else
5914 ac_cv_sizeof_int=0
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5920 $as_echo "$ac_cv_sizeof_int" >&6; }
5924 cat >>confdefs.h <<_ACEOF
5925 #define SIZEOF_INT $ac_cv_sizeof_int
5926 _ACEOF
5929 # The cast to long int works around a bug in the HP C Compiler
5930 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5931 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5932 # This bug is HP SR number 8606223364.
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5934 $as_echo_n "checking size of long... " >&6; }
5935 if test "${ac_cv_sizeof_long+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5940 else
5941 if test "$ac_cv_type_long" = yes; then
5942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5944 { as_fn_set_status 77
5945 as_fn_error "cannot compute sizeof (long)
5946 See \`config.log' for more details." "$LINENO" 5; }; }
5947 else
5948 ac_cv_sizeof_long=0
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5954 $as_echo "$ac_cv_sizeof_long" >&6; }
5958 cat >>confdefs.h <<_ACEOF
5959 #define SIZEOF_LONG $ac_cv_sizeof_long
5960 _ACEOF
5963 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5964 if test "x$ac_cv_type_long_long" = x""yes; then :
5966 cat >>confdefs.h <<_ACEOF
5967 #define HAVE_LONG_LONG 1
5968 _ACEOF
5970 # The cast to long int works around a bug in the HP C Compiler
5971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5973 # This bug is HP SR number 8606223364.
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5975 $as_echo_n "checking size of long long... " >&6; }
5976 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5981 else
5982 if test "$ac_cv_type_long_long" = yes; then
5983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5985 { as_fn_set_status 77
5986 as_fn_error "cannot compute sizeof (long long)
5987 See \`config.log' for more details." "$LINENO" 5; }; }
5988 else
5989 ac_cv_sizeof_long_long=0
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5995 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5999 cat >>confdefs.h <<_ACEOF
6000 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6001 _ACEOF
6006 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
6007 if test "x$ac_cv_type___int64" = x""yes; then :
6009 cat >>confdefs.h <<_ACEOF
6010 #define HAVE___INT64 1
6011 _ACEOF
6013 # The cast to long int works around a bug in the HP C Compiler
6014 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6015 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6016 # This bug is HP SR number 8606223364.
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6018 $as_echo_n "checking size of __int64... " >&6; }
6019 if test "${ac_cv_sizeof___int64+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6024 else
6025 if test "$ac_cv_type___int64" = yes; then
6026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6028 { as_fn_set_status 77
6029 as_fn_error "cannot compute sizeof (__int64)
6030 See \`config.log' for more details." "$LINENO" 5; }; }
6031 else
6032 ac_cv_sizeof___int64=0
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6038 $as_echo "$ac_cv_sizeof___int64" >&6; }
6042 cat >>confdefs.h <<_ACEOF
6043 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6044 _ACEOF
6049 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6050 case $ac_cv_c_int8_t in #(
6051 no|yes) ;; #(
6054 cat >>confdefs.h <<_ACEOF
6055 #define int8_t $ac_cv_c_int8_t
6056 _ACEOF
6058 esac
6060 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6061 case $ac_cv_c_int16_t in #(
6062 no|yes) ;; #(
6065 cat >>confdefs.h <<_ACEOF
6066 #define int16_t $ac_cv_c_int16_t
6067 _ACEOF
6069 esac
6071 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6072 case $ac_cv_c_int32_t in #(
6073 no|yes) ;; #(
6076 cat >>confdefs.h <<_ACEOF
6077 #define int32_t $ac_cv_c_int32_t
6078 _ACEOF
6080 esac
6082 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6083 case $ac_cv_c_int64_t in #(
6084 no|yes) ;; #(
6087 cat >>confdefs.h <<_ACEOF
6088 #define int64_t $ac_cv_c_int64_t
6089 _ACEOF
6091 esac
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6095 $as_echo_n "checking for long long int... " >&6; }
6096 if test "${ac_cv_type_long_long_int+set}" = set; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6102 /* For now, do not test the preprocessor; as of 2007 there are too many
6103 implementations with broken preprocessors. Perhaps this can
6104 be revisited in 2012. In the meantime, code should not expect
6105 #if to work with literals wider than 32 bits. */
6106 /* Test literals. */
6107 long long int ll = 9223372036854775807ll;
6108 long long int nll = -9223372036854775807LL;
6109 unsigned long long int ull = 18446744073709551615ULL;
6110 /* Test constant expressions. */
6111 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6112 ? 1 : -1)];
6113 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6114 ? 1 : -1)];
6115 int i = 63;
6117 main ()
6119 /* Test availability of runtime routines for shift and division. */
6120 long long int llmax = 9223372036854775807ll;
6121 unsigned long long int ullmax = 18446744073709551615ull;
6122 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6123 | (llmax / ll) | (llmax % ll)
6124 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6125 | (ullmax / ull) | (ullmax % ull));
6127 return 0;
6130 _ACEOF
6131 if ac_fn_c_try_link "$LINENO"; then :
6132 if test "$cross_compiling" = yes; then :
6133 ac_cv_type_long_long_int=yes
6134 else
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6137 #include <limits.h>
6138 #ifndef LLONG_MAX
6139 # define HALF \
6140 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6141 # define LLONG_MAX (HALF - 1 + HALF)
6142 #endif
6144 main ()
6146 long long int n = 1;
6147 int i;
6148 for (i = 0; ; i++)
6150 long long int m = n << i;
6151 if (m >> i != n)
6152 return 1;
6153 if (LLONG_MAX / 2 < m)
6154 break;
6156 return 0;
6158 return 0;
6160 _ACEOF
6161 if ac_fn_c_try_run "$LINENO"; then :
6162 ac_cv_type_long_long_int=yes
6163 else
6164 ac_cv_type_long_long_int=no
6166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6167 conftest.$ac_objext conftest.beam conftest.$ac_ext
6170 else
6171 ac_cv_type_long_long_int=no
6173 rm -f core conftest.err conftest.$ac_objext \
6174 conftest$ac_exeext conftest.$ac_ext
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6177 $as_echo "$ac_cv_type_long_long_int" >&6; }
6178 if test $ac_cv_type_long_long_int = yes; then
6180 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6186 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6187 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6189 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6191 else
6192 test $ac_cv_type_long_long_int = yes \
6193 && ac_type='long long int' \
6194 || ac_type='long int'
6196 cat >>confdefs.h <<_ACEOF
6197 #define intmax_t $ac_type
6198 _ACEOF
6204 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6205 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6207 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6209 else
6210 for ac_type in 'int' 'long int' 'long long int'; do
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 $ac_includes_default
6215 main ()
6217 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6218 test_array [0] = 0
6221 return 0;
6223 _ACEOF
6224 if ac_fn_c_try_compile "$LINENO"; then :
6226 cat >>confdefs.h <<_ACEOF
6227 #define intptr_t $ac_type
6228 _ACEOF
6230 ac_type=
6232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6233 test -z "$ac_type" && break
6234 done
6238 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6239 case $ac_cv_c_uint8_t in #(
6240 no|yes) ;; #(
6243 $as_echo "#define _UINT8_T 1" >>confdefs.h
6246 cat >>confdefs.h <<_ACEOF
6247 #define uint8_t $ac_cv_c_uint8_t
6248 _ACEOF
6250 esac
6252 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6253 case $ac_cv_c_uint16_t in #(
6254 no|yes) ;; #(
6258 cat >>confdefs.h <<_ACEOF
6259 #define uint16_t $ac_cv_c_uint16_t
6260 _ACEOF
6262 esac
6264 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6265 case $ac_cv_c_uint32_t in #(
6266 no|yes) ;; #(
6269 $as_echo "#define _UINT32_T 1" >>confdefs.h
6272 cat >>confdefs.h <<_ACEOF
6273 #define uint32_t $ac_cv_c_uint32_t
6274 _ACEOF
6276 esac
6278 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6279 case $ac_cv_c_uint64_t in #(
6280 no|yes) ;; #(
6283 $as_echo "#define _UINT64_T 1" >>confdefs.h
6286 cat >>confdefs.h <<_ACEOF
6287 #define uint64_t $ac_cv_c_uint64_t
6288 _ACEOF
6290 esac
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6294 $as_echo_n "checking for unsigned long long int... " >&6; }
6295 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6301 /* For now, do not test the preprocessor; as of 2007 there are too many
6302 implementations with broken preprocessors. Perhaps this can
6303 be revisited in 2012. In the meantime, code should not expect
6304 #if to work with literals wider than 32 bits. */
6305 /* Test literals. */
6306 long long int ll = 9223372036854775807ll;
6307 long long int nll = -9223372036854775807LL;
6308 unsigned long long int ull = 18446744073709551615ULL;
6309 /* Test constant expressions. */
6310 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6311 ? 1 : -1)];
6312 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6313 ? 1 : -1)];
6314 int i = 63;
6316 main ()
6318 /* Test availability of runtime routines for shift and division. */
6319 long long int llmax = 9223372036854775807ll;
6320 unsigned long long int ullmax = 18446744073709551615ull;
6321 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6322 | (llmax / ll) | (llmax % ll)
6323 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6324 | (ullmax / ull) | (ullmax % ull));
6326 return 0;
6329 _ACEOF
6330 if ac_fn_c_try_link "$LINENO"; then :
6331 ac_cv_type_unsigned_long_long_int=yes
6332 else
6333 ac_cv_type_unsigned_long_long_int=no
6335 rm -f core conftest.err conftest.$ac_objext \
6336 conftest$ac_exeext conftest.$ac_ext
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6339 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6340 if test $ac_cv_type_unsigned_long_long_int = yes; then
6342 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6348 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6349 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6351 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6353 else
6354 test $ac_cv_type_unsigned_long_long_int = yes \
6355 && ac_type='unsigned long long int' \
6356 || ac_type='unsigned long int'
6358 cat >>confdefs.h <<_ACEOF
6359 #define uintmax_t $ac_type
6360 _ACEOF
6366 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6367 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6369 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6371 else
6372 for ac_type in 'unsigned int' 'unsigned long int' \
6373 'unsigned long long int'; do
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6376 $ac_includes_default
6378 main ()
6380 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6381 test_array [0] = 0
6384 return 0;
6386 _ACEOF
6387 if ac_fn_c_try_compile "$LINENO"; then :
6389 cat >>confdefs.h <<_ACEOF
6390 #define uintptr_t $ac_type
6391 _ACEOF
6393 ac_type=
6395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6396 test -z "$ac_type" && break
6397 done
6414 # ---------------------
6415 # Warnings and checking
6416 # ---------------------
6418 # Check $CC warning features (if it's GCC).
6419 # We want to use -pedantic, but we don't want warnings about
6420 # * 'long long'
6421 # * variadic macros
6422 # * overlong strings
6423 # * C++11 narrowing conversions in { }
6424 # So, we only use -pedantic if we can disable those warnings.
6426 loose_warn=
6427 save_CFLAGS="$CFLAGS"
6428 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6429 # Do the check with the no- prefix removed since gcc silently
6430 # accepts any -Wno-* option on purpose
6431 case $real_option in
6432 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6433 *) option=$real_option ;;
6434 esac
6435 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6438 $as_echo_n "checking whether $CC supports $option... " >&6; }
6439 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6440 $as_echo_n "(cached) " >&6
6441 else
6442 CFLAGS="$option"
6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6447 main ()
6451 return 0;
6453 _ACEOF
6454 if ac_fn_c_try_compile "$LINENO"; then :
6455 eval "$as_acx_Woption=yes"
6456 else
6457 eval "$as_acx_Woption=no"
6459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462 eval ac_res=\$$as_acx_Woption
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6464 $as_echo "$ac_res" >&6; }
6465 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6466 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6468 done
6469 CFLAGS="$save_CFLAGS"
6471 c_loose_warn=
6472 save_CFLAGS="$CFLAGS"
6473 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6474 # Do the check with the no- prefix removed since gcc silently
6475 # accepts any -Wno-* option on purpose
6476 case $real_option in
6477 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6478 *) option=$real_option ;;
6479 esac
6480 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6483 $as_echo_n "checking whether $CC supports $option... " >&6; }
6484 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 CFLAGS="$option"
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489 /* end confdefs.h. */
6492 main ()
6496 return 0;
6498 _ACEOF
6499 if ac_fn_c_try_compile "$LINENO"; then :
6500 eval "$as_acx_Woption=yes"
6501 else
6502 eval "$as_acx_Woption=no"
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 eval ac_res=\$$as_acx_Woption
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6509 $as_echo "$ac_res" >&6; }
6510 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6511 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6513 done
6514 CFLAGS="$save_CFLAGS"
6516 strict_warn=
6517 save_CFLAGS="$CFLAGS"
6518 for real_option in -Wmissing-format-attribute; do
6519 # Do the check with the no- prefix removed since gcc silently
6520 # accepts any -Wno-* option on purpose
6521 case $real_option in
6522 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6523 *) option=$real_option ;;
6524 esac
6525 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6528 $as_echo_n "checking whether $CC supports $option... " >&6; }
6529 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 CFLAGS="$option"
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6537 main ()
6541 return 0;
6543 _ACEOF
6544 if ac_fn_c_try_compile "$LINENO"; then :
6545 eval "$as_acx_Woption=yes"
6546 else
6547 eval "$as_acx_Woption=no"
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 eval ac_res=\$$as_acx_Woption
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6554 $as_echo "$ac_res" >&6; }
6555 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6556 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6558 done
6559 CFLAGS="$save_CFLAGS"
6561 c_strict_warn=
6562 save_CFLAGS="$CFLAGS"
6563 for real_option in -Wold-style-definition -Wc++-compat; do
6564 # Do the check with the no- prefix removed since gcc silently
6565 # accepts any -Wno-* option on purpose
6566 case $real_option in
6567 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6568 *) option=$real_option ;;
6569 esac
6570 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6573 $as_echo_n "checking whether $CC supports $option... " >&6; }
6574 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 CFLAGS="$option"
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6582 main ()
6586 return 0;
6588 _ACEOF
6589 if ac_fn_c_try_compile "$LINENO"; then :
6590 eval "$as_acx_Woption=yes"
6591 else
6592 eval "$as_acx_Woption=no"
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 eval ac_res=\$$as_acx_Woption
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6599 $as_echo "$ac_res" >&6; }
6600 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6601 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6603 done
6604 CFLAGS="$save_CFLAGS"
6606 # Do the check with the no- prefix removed from the warning options
6607 # since gcc silently accepts any -Wno-* option on purpose
6608 if test "$GCC" = yes; then :
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6610 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6611 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 save_CFLAGS="$CFLAGS"
6615 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6620 main ()
6624 return 0;
6626 _ACEOF
6627 if ac_fn_c_try_compile "$LINENO"; then :
6628 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6629 else
6630 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 CFLAGS="$save_CFLAGS"
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6636 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6637 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6638 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6643 # Check whether --enable-werror-always was given.
6644 if test "${enable_werror_always+set}" = set; then :
6645 enableval=$enable_werror_always;
6646 else
6647 enable_werror_always=no
6650 if test $enable_werror_always = yes; then :
6651 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6656 # The above macros do nothing if the compiler is not GCC. However, the
6657 # Makefile has more goo to add other flags, so these variables are used
6658 # to enable warnings only for GCC.
6659 warn_cflags=
6660 warn_cxxflags=
6661 if test "x$GCC" = "xyes"; then
6662 warn_cflags='$(GCC_WARN_CFLAGS)'
6663 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6668 # Disable exceptions and RTTI if building with g++
6669 noexception_flags=
6670 save_CFLAGS="$CFLAGS"
6671 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6672 # Do the check with the no- prefix removed since gcc silently
6673 # accepts any -Wno-* option on purpose
6674 case $real_option in
6675 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6676 *) option=$real_option ;;
6677 esac
6678 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6681 $as_echo_n "checking whether $CC supports $option... " >&6; }
6682 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 CFLAGS="$option"
6686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6690 main ()
6694 return 0;
6696 _ACEOF
6697 if ac_fn_c_try_compile "$LINENO"; then :
6698 eval "$as_acx_Woption=yes"
6699 else
6700 eval "$as_acx_Woption=no"
6702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705 eval ac_res=\$$as_acx_Woption
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6707 $as_echo "$ac_res" >&6; }
6708 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6709 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6711 done
6712 CFLAGS="$save_CFLAGS"
6715 # Enable expensive internal checks
6716 is_release=
6717 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6718 is_release=yes
6721 # Check whether --enable-checking was given.
6722 if test "${enable_checking+set}" = set; then :
6723 enableval=$enable_checking; ac_checking_flags="${enableval}"
6724 else
6726 # Determine the default checks.
6727 if test x$is_release = x ; then
6728 ac_checking_flags=yes
6729 else
6730 ac_checking_flags=release
6734 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6735 for check in release $ac_checking_flags
6737 case $check in
6738 # these set all the flags to specific states
6739 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6740 ac_fold_checking= ; ac_gc_checking=1 ;
6741 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6742 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6743 ac_tree_checking=1 ; ac_valgrind_checking= ;
6744 ac_types_checking=1 ;;
6745 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6746 ac_fold_checking= ; ac_gc_checking= ;
6747 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6748 ac_rtlflag_checking= ; ac_runtime_checking= ;
6749 ac_tree_checking= ; ac_valgrind_checking= ;
6750 ac_types_checking= ;;
6751 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6752 ac_fold_checking=1 ; ac_gc_checking=1 ;
6753 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6754 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6755 ac_tree_checking=1 ; ac_valgrind_checking= ;
6756 ac_types_checking=1 ;;
6757 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6758 ac_fold_checking= ; ac_gc_checking= ;
6759 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6760 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6761 ac_tree_checking= ; ac_valgrind_checking= ;
6762 ac_types_checking= ;;
6763 # these enable particular checks
6764 assert) ac_assert_checking=1 ;;
6765 df) ac_df_checking=1 ;;
6766 fold) ac_fold_checking=1 ;;
6767 gc) ac_gc_checking=1 ;;
6768 gcac) ac_gc_always_collect=1 ;;
6769 gimple) ac_gimple_checking=1 ;;
6770 misc) ac_checking=1 ;;
6771 rtl) ac_rtl_checking=1 ;;
6772 rtlflag) ac_rtlflag_checking=1 ;;
6773 runtime) ac_runtime_checking=1 ;;
6774 tree) ac_tree_checking=1 ;;
6775 types) ac_types_checking=1 ;;
6776 valgrind) ac_valgrind_checking=1 ;;
6777 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6778 esac
6779 done
6780 IFS="$ac_save_IFS"
6782 nocommon_flag=""
6783 if test x$ac_checking != x ; then
6785 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6787 nocommon_flag=-fno-common
6790 if test x$ac_df_checking != x ; then
6792 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6795 if test x$ac_assert_checking != x ; then
6797 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6800 if test x$ac_gimple_checking != x ; then
6802 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6806 if test x$ac_runtime_checking != x ; then
6808 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6811 if test x$ac_tree_checking != x ; then
6813 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6815 TREEBROWSER=tree-browser.o
6816 TREECHECKING=yes
6818 if test x$ac_types_checking != x ; then
6820 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6825 if test x$ac_rtl_checking != x ; then
6827 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6830 if test x$ac_rtlflag_checking != x ; then
6832 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6835 if test x$ac_gc_checking != x ; then
6837 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6840 if test x$ac_gc_always_collect != x ; then
6842 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6845 if test x$ac_fold_checking != x ; then
6847 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6850 valgrind_path_defines=
6851 valgrind_command=
6853 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6854 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6855 have_valgrind_h=yes
6856 else
6857 have_valgrind_h=no
6862 if test x$ac_valgrind_checking != x ; then
6863 # It is certainly possible that there's valgrind but no valgrind.h.
6864 # GCC relies on making annotations so we must have both.
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6866 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869 #include <valgrind/memcheck.h>
6870 #ifndef VALGRIND_DISCARD
6871 #error VALGRIND_DISCARD not defined
6872 #endif
6873 _ACEOF
6874 if ac_fn_c_try_cpp "$LINENO"; then :
6875 gcc_cv_header_valgrind_memcheck_h=yes
6876 else
6877 gcc_cv_header_valgrind_memcheck_h=no
6879 rm -f conftest.err conftest.$ac_ext
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6881 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6883 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6886 #include <memcheck.h>
6887 #ifndef VALGRIND_DISCARD
6888 #error VALGRIND_DISCARD not defined
6889 #endif
6890 _ACEOF
6891 if ac_fn_c_try_cpp "$LINENO"; then :
6892 gcc_cv_header_memcheck_h=yes
6893 else
6894 gcc_cv_header_memcheck_h=no
6896 rm -f conftest.err conftest.$ac_ext
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6898 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6900 # Prepare PATH_SEPARATOR.
6901 # The user is always right.
6902 if test "${PATH_SEPARATOR+set}" != set; then
6903 echo "#! /bin/sh" >conf$$.sh
6904 echo "exit 0" >>conf$$.sh
6905 chmod +x conf$$.sh
6906 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6907 PATH_SEPARATOR=';'
6908 else
6909 PATH_SEPARATOR=:
6911 rm -f conf$$.sh
6914 # Find out how to test for executable files. Don't use a zero-byte file,
6915 # as systems may use methods other than mode bits to determine executability.
6916 cat >conf$$.file <<_ASEOF
6917 #! /bin/sh
6918 exit 0
6919 _ASEOF
6920 chmod +x conf$$.file
6921 if test -x conf$$.file >/dev/null 2>&1; then
6922 ac_executable_p="test -x"
6923 else
6924 ac_executable_p="test -f"
6926 rm -f conf$$.file
6928 # Extract the first word of "valgrind", so it can be a program name with args.
6929 set dummy valgrind; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 case "$valgrind_path" in
6936 [\\/]* | ?:[\\/]*)
6937 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6940 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6941 for ac_dir in $PATH; do
6942 IFS="$ac_save_IFS"
6943 test -z "$ac_dir" && ac_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6946 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6947 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6948 break 2
6951 done
6952 done
6953 IFS="$ac_save_IFS"
6955 esac
6957 valgrind_path="$ac_cv_path_valgrind_path"
6958 if test -n "$valgrind_path"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6960 $as_echo "$valgrind_path" >&6; }
6961 else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6966 if test "x$valgrind_path" = "x" \
6967 || (test $have_valgrind_h = no \
6968 && test $gcc_cv_header_memcheck_h = no \
6969 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6970 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6972 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6973 valgrind_command="$valgrind_path -q"
6975 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6977 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6979 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6982 if test $gcc_cv_header_memcheck_h = yes; then
6984 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6991 # Enable code coverage collection
6992 # Check whether --enable-coverage was given.
6993 if test "${enable_coverage+set}" = set; then :
6994 enableval=$enable_coverage; case "${enableval}" in
6995 yes|noopt)
6996 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6998 opt)
6999 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7002 # a.k.a. --disable-coverage
7003 coverage_flags=""
7006 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7008 esac
7009 else
7010 coverage_flags=""
7015 # Check whether --enable-gather-detailed-mem-stats was given.
7016 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7017 enableval=$enable_gather_detailed_mem_stats;
7018 else
7019 enable_gather_detailed_mem_stats=no
7022 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7024 cat >>confdefs.h <<_ACEOF
7025 #define GATHER_STATISTICS $gather_stats
7026 _ACEOF
7029 # -------------------------------
7030 # Miscenalleous configure options
7031 # -------------------------------
7033 # With stabs
7035 # Check whether --with-stabs was given.
7036 if test "${with_stabs+set}" = set; then :
7037 withval=$with_stabs; stabs="$with_stabs"
7038 else
7039 stabs=no
7043 # Determine whether or not multilibs are enabled.
7044 # Check whether --enable-multilib was given.
7045 if test "${enable_multilib+set}" = set; then :
7046 enableval=$enable_multilib;
7047 else
7048 enable_multilib=yes
7053 # Determine whether or not multiarch is enabled.
7054 # Check whether --enable-multiarch was given.
7055 if test "${enable_multiarch+set}" = set; then :
7056 enableval=$enable_multiarch; case "${enableval}" in
7057 yes|no|auto) enable_multiarch=$enableval;;
7058 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7059 esac
7060 else
7061 enable_multiarch=auto
7064 if test x${enable_multiarch} = xauto; then
7065 if test x${with_native_system_header_dir} != x; then
7066 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7067 enable_multiarch=no
7069 if test x$host != x$target && test "x$with_sysroot" = x; then
7070 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7071 enable_multiarch=no
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7075 $as_echo_n "checking for multiarch configuration... " >&6; }
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7078 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7080 # needed for setting the multiarch name for soft-float/hard-float ABIs
7084 # Enable __cxa_atexit for C++.
7085 # Check whether --enable-__cxa_atexit was given.
7086 if test "${enable___cxa_atexit+set}" = set; then :
7087 enableval=$enable___cxa_atexit;
7091 # Enable C extension for decimal float if target supports it.
7093 # Check whether --enable-decimal-float was given.
7094 if test "${enable_decimal_float+set}" = set; then :
7095 enableval=$enable_decimal_float;
7096 case $enable_decimal_float in
7097 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7098 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7099 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7100 esac
7102 else
7104 case $target in
7105 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7106 i?86*-*-gnu* | \
7107 i?86*-*-mingw* | x86_64*-*-mingw* | \
7108 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7109 enable_decimal_float=yes
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7113 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7114 enable_decimal_float=no
7116 esac
7121 # x86's use BID format instead of DPD
7122 case x$enable_decimal_float in
7123 xyes)
7124 case $target in
7125 i?86*-*-* | x86_64*-*-*)
7126 enable_decimal_float=bid
7129 enable_decimal_float=dpd
7131 esac
7132 default_decimal_float=$enable_decimal_float
7134 xno)
7135 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7136 # dependency on libdecnumber.
7137 default_decimal_float=dpd
7139 esac
7144 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7146 cat >>confdefs.h <<_ACEOF
7147 #define ENABLE_DECIMAL_FLOAT $dfp
7148 _ACEOF
7151 # Use default_decimal_float for dependency.
7152 enable_decimal_float=$default_decimal_float
7154 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7156 cat >>confdefs.h <<_ACEOF
7157 #define ENABLE_DECIMAL_BID_FORMAT $bid
7158 _ACEOF
7161 # Enable C extension for fixed-point arithmetic.
7162 # Check whether --enable-fixed-point was given.
7163 if test "${enable_fixed_point+set}" = set; then :
7164 enableval=$enable_fixed_point;
7165 else
7167 case $target in
7168 arm*)
7169 enable_fixed_point=yes
7172 mips*-*-*)
7173 enable_fixed_point=yes
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7177 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7178 enable_fixed_point=no
7180 esac
7186 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7188 cat >>confdefs.h <<_ACEOF
7189 #define ENABLE_FIXED_POINT $fixedpoint
7190 _ACEOF
7193 # Enable threads
7194 # Pass with no value to take the default
7195 # Pass with a value to specify a thread package
7196 # Check whether --enable-threads was given.
7197 if test "${enable_threads+set}" = set; then :
7198 enableval=$enable_threads;
7199 else
7200 enable_threads=''
7204 # Check whether --enable-tls was given.
7205 if test "${enable_tls+set}" = set; then :
7206 enableval=$enable_tls;
7207 case $enable_tls in
7208 yes | no) ;;
7209 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7210 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7211 esac
7213 else
7214 enable_tls=''
7218 # Check whether --enable-objc-gc was given.
7219 if test "${enable_objc_gc+set}" = set; then :
7220 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7221 objc_boehm_gc=''
7222 else
7223 objc_boehm_gc=1
7225 else
7226 objc_boehm_gc=''
7230 case ,${enable_languages}, in
7231 *,upc,) lang_upc_enabled="yes" ;;
7232 *) ;;
7233 esac
7236 # Check whether --with-upc-pts was given.
7237 if test "${with_upc_pts+set}" = set; then :
7238 withval=$with_upc_pts;
7239 if test x"$lang_upc_enabled" = x"yes" ; then
7240 case "$withval" in
7241 packed|struct) upc_pts_rep="$withval" ;;
7242 *) as_fn_error "$withval is an invalid option to --with-upc-pts" "$LINENO" 5
7244 esac
7245 else
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts is allowed only when UPC
7247 support has been enabled" >&5
7248 $as_echo "$as_me: WARNING: --with-upc-pts is allowed only when UPC
7249 support has been enabled" >&2;}
7252 else
7254 if test x"$lang_upc_enabled" = x"yes" ; then
7255 upc_pts_rep="packed"
7262 # Perl is required for checking pts representation
7263 # Extract the first word of "perl", so it can be a program name with args.
7264 set dummy perl; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if test "${ac_cv_prog_PERL+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 if test -n "$PERL"; then
7271 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_prog_PERL="perl"
7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7284 done
7285 done
7286 IFS=$as_save_IFS
7290 PERL=$ac_cv_prog_PERL
7291 if test -n "$PERL"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7293 $as_echo "$PERL" >&6; }
7294 else
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7302 # Check whether --with-upc-pts-vaddr-order was given.
7303 if test "${with_upc_pts_vaddr_order+set}" = set; then :
7304 withval=$with_upc_pts_vaddr_order;
7305 if test x"$lang_upc_enabled" = x"yes" ; then
7306 upc_vaddr_order="$withval"
7307 case "$upc_vaddr_order" in
7308 first|last) ;;
7309 *) as_fn_error "$withval is an invalid option to --with-upc-pts-vaddr-order" "$LINENO" 5 ;;
7310 esac
7311 else
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7313 support has been enabled" >&5
7314 $as_echo "$as_me: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7315 support has been enabled" >&2;}
7318 else
7320 if test x"$lang_upc_enabled" = x"yes" ; then
7321 # Default UPC PTS vaddr order to "first"
7322 upc_vaddr_order="first"
7329 # Check whether --with-upc-packed-bits was given.
7330 if test "${with_upc_packed_bits+set}" = set; then :
7331 withval=$with_upc_packed_bits;
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-packed-bits is deprecated.
7333 Use --with-upc-pts-packed-bits instead." >&5
7334 $as_echo "$as_me: WARNING: --with-upc-packed-bits is deprecated.
7335 Use --with-upc-pts-packed-bits instead." >&2;}
7336 with_upc_pts_packed_bits="$withval";
7342 # Check whether --with-upc-pts-packed-bits was given.
7343 if test "${with_upc_pts_packed_bits+set}" = set; then :
7344 withval=$with_upc_pts_packed_bits;
7345 if test x"$lang_upc_enabled" = x"yes" ; then
7346 if test x"$upc_pts_rep" = x"packed"; then
7347 UPC_PTS_PHASE_SIZE=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7348 print $1 if ($1+$2+$3 == 64) && $1>=1;'`
7349 UPC_PTS_THREAD_SIZE=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7350 print $2 if ($1+$2+$3 == 64) && $2>=1;'`
7351 UPC_PTS_VADDR_SIZE=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7352 print $3 if ($1+$2+$3 == 64) && $3>=20;'`
7353 if test -z "$UPC_PTS_PHASE_SIZE" \
7354 || test -z "$UPC_PTS_THREAD_SIZE" \
7355 || test -z "$UPC_PTS_VADDR_SIZE" ; then
7356 as_fn_error "--with-upc-pts-packed-bits=phase,thread,vaddr requires
7357 phase+thread+vaddr=64 and phase >= 1 and thread >= 1 and vaddr >= 20" "$LINENO" 5
7359 else
7360 as_fn_error "--with-upc-pts-packed-bits is only supported for
7361 the packed UPC pointer-to-shared representation" "$LINENO" 5
7363 else
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7365 support has been enabled" >&5
7366 $as_echo "$as_me: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7367 support has been enabled" >&2;}
7370 else
7372 if test x"$lang_upc_enabled" = x"yes" ; then
7373 # GNU UPC packed pointer representation defaults.
7374 case "$target" in
7375 i35686* )
7376 UPC_PTS_PHASE_SIZE=20
7377 UPC_PTS_THREAD_SIZE=12
7378 UPC_PTS_VADDR_SIZE=32
7381 UPC_PTS_PHASE_SIZE=20
7382 UPC_PTS_THREAD_SIZE=10
7383 UPC_PTS_VADDR_SIZE=34
7384 esac
7390 # Check whether --enable-upc-link-script was given.
7391 if test "${enable_upc_link_script+set}" = set; then :
7392 enableval=$enable_upc_link_script;
7393 if test x"$lang_upc_enabled" = x"yes" ; then
7394 case $enableval in
7395 yes | no) ;;
7397 as_fn_error "--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7398 esac
7399 else
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-upc-link-script is allowed only when UPC
7401 support has been enabled" >&5
7402 $as_echo "$as_me: WARNING: --enable-upc-link-script is allowed only when UPC
7403 support has been enabled" >&2;}
7406 else
7408 if test x"$lang_upc_enabled" = x"yes" ; then
7409 enable_upc_link_script=no
7415 if test x"$lang_upc_enabled" = x"yes" ; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared representation" >&5
7417 $as_echo_n "checking for UPC pointer-to-shared representation... " >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_pts_rep" >&5
7419 $as_echo "$upc_pts_rep" >&6; }
7420 case "$upc_pts_rep" in
7421 packed)
7423 $as_echo "#define HAVE_UPC_PTS_PACKED_REP 1" >>confdefs.h
7426 struct)
7428 $as_echo "#define HAVE_UPC_PTS_STRUCT_REP 1" >>confdefs.h
7431 esac
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared address field position" >&5
7433 $as_echo_n "checking for UPC pointer-to-shared address field position... " >&6; }
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_vaddr_order" >&5
7435 $as_echo "$upc_vaddr_order" >&6; }
7436 if test x"$upc_vaddr_order" = x"first"; then
7438 $as_echo "#define HAVE_UPC_PTS_VADDR_FIRST 1" >>confdefs.h
7441 if test x"$upc_pts_rep" = x"packed"; then
7443 cat >>confdefs.h <<_ACEOF
7444 #define UPC_PTS_PHASE_SIZE $UPC_PTS_PHASE_SIZE
7445 _ACEOF
7448 cat >>confdefs.h <<_ACEOF
7449 #define UPC_PTS_THREAD_SIZE $UPC_PTS_THREAD_SIZE
7450 _ACEOF
7453 cat >>confdefs.h <<_ACEOF
7454 #define UPC_PTS_VADDR_SIZE $UPC_PTS_VADDR_SIZE
7455 _ACEOF
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for packed UPC pointer-to-shared layout" >&5
7458 $as_echo_n "checking for packed UPC pointer-to-shared layout... " >&6; }
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7460 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&5
7461 $as_echo "\"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7462 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7465 $as_echo_n "checking for UPC link script support... " >&6; }
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_link_script" >&5
7467 $as_echo "$enable_upc_link_script" >&6; }
7468 if test "$enable_upc_link_script" = yes; then
7470 $as_echo "#define HAVE_UPC_LINK_SCRIPT 1" >>confdefs.h
7476 # Check whether --with-dwarf2 was given.
7477 if test "${with_dwarf2+set}" = set; then :
7478 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7479 else
7480 dwarf2=no
7484 # Check whether --enable-shared was given.
7485 if test "${enable_shared+set}" = set; then :
7486 enableval=$enable_shared;
7487 case $enable_shared in
7488 yes | no) ;;
7490 enable_shared=no
7491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7492 for pkg in $enableval; do
7493 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7494 enable_shared=yes
7496 done
7497 IFS="$ac_save_ifs"
7499 esac
7501 else
7502 enable_shared=yes
7508 # Check whether --with-native-system-header-dir was given.
7509 if test "${with_native_system_header_dir+set}" = set; then :
7510 withval=$with_native_system_header_dir;
7511 case ${with_native_system_header_dir} in
7512 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7513 /* | [A-Za-z]:[\\/]*) ;;
7514 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7515 esac
7516 configured_native_system_header_dir="${withval}"
7518 else
7519 configured_native_system_header_dir=
7524 # Check whether --with-build-sysroot was given.
7525 if test "${with_build_sysroot+set}" = set; then :
7526 withval=$with_build_sysroot; if test x"$withval" != x ; then
7527 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7529 else
7530 SYSROOT_CFLAGS_FOR_TARGET=
7535 if test "x$prefix" = xNONE; then
7536 test_prefix=/usr/local
7537 else
7538 test_prefix=$prefix
7540 if test "x$exec_prefix" = xNONE; then
7541 test_exec_prefix=$test_prefix
7542 else
7543 test_exec_prefix=$exec_prefix
7547 # Check whether --with-sysroot was given.
7548 if test "${with_sysroot+set}" = set; then :
7549 withval=$with_sysroot;
7550 case ${with_sysroot} in
7551 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7552 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7553 esac
7555 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7556 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7558 case ${TARGET_SYSTEM_ROOT} in
7559 "${test_prefix}"|"${test_prefix}/"*|\
7560 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7561 '${prefix}'|'${prefix}/'*|\
7562 '${exec_prefix}'|'${exec_prefix}/'*)
7563 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7564 TARGET_SYSTEM_ROOT_DEFINE="$t"
7566 esac
7568 else
7570 TARGET_SYSTEM_ROOT=
7571 TARGET_SYSTEM_ROOT_DEFINE=
7572 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7581 # Check whether --with-specs was given.
7582 if test "${with_specs+set}" = set; then :
7583 withval=$with_specs; CONFIGURE_SPECS=$withval
7584 else
7585 CONFIGURE_SPECS=
7593 # Check whether --with-pkgversion was given.
7594 if test "${with_pkgversion+set}" = set; then :
7595 withval=$with_pkgversion; case "$withval" in
7596 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7597 no) PKGVERSION= ;;
7598 *) PKGVERSION="($withval) " ;;
7599 esac
7600 else
7601 PKGVERSION="(GCC) "
7609 # Check whether --with-bugurl was given.
7610 if test "${with_bugurl+set}" = set; then :
7611 withval=$with_bugurl; case "$withval" in
7612 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7613 no) BUGURL=
7615 *) BUGURL="$withval"
7617 esac
7618 else
7619 BUGURL="http://gccupc.org/bugs"
7623 case ${BUGURL} in
7625 REPORT_BUGS_TO=
7626 REPORT_BUGS_TEXI=
7629 REPORT_BUGS_TO="<$BUGURL>"
7630 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7632 esac;
7637 # Sanity check enable_languages in case someone does not run the toplevel
7638 # configure # script.
7639 # Check whether --enable-languages was given.
7640 if test "${enable_languages+set}" = set; then :
7641 enableval=$enable_languages; case ,${enable_languages}, in
7642 ,,|,yes,)
7643 # go safe -- we cannot be much sure without the toplevel
7644 # configure's
7645 # analysis of which target libs are present and usable
7646 enable_languages=c
7648 *,all,*)
7649 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7651 *,c,*)
7654 enable_languages=c,${enable_languages}
7656 esac
7657 else
7658 enable_languages=c
7663 # Check whether --with-multilib-list was given.
7664 if test "${with_multilib_list+set}" = set; then :
7665 withval=$with_multilib_list; :
7666 else
7667 with_multilib_list=default
7671 # -------------------------
7672 # Checks for other programs
7673 # -------------------------
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7676 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7677 set x ${MAKE-make}
7678 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7679 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7680 $as_echo_n "(cached) " >&6
7681 else
7682 cat >conftest.make <<\_ACEOF
7683 SHELL = /bin/sh
7684 all:
7685 @echo '@@@%%%=$(MAKE)=@@@%%%'
7686 _ACEOF
7687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7688 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7689 *@@@%%%=?*=@@@%%%*)
7690 eval ac_cv_prog_make_${ac_make}_set=yes;;
7692 eval ac_cv_prog_make_${ac_make}_set=no;;
7693 esac
7694 rm -f conftest.make
7696 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7698 $as_echo "yes" >&6; }
7699 SET_MAKE=
7700 else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 SET_MAKE="MAKE=${MAKE-make}"
7707 # Find some useful tools
7708 for ac_prog in gawk mawk nawk awk
7710 # Extract the first word of "$ac_prog", so it can be a program name with args.
7711 set dummy $ac_prog; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_prog_AWK+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 if test -n "$AWK"; then
7718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 ac_cv_prog_AWK="$ac_prog"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 break 2
7731 done
7732 done
7733 IFS=$as_save_IFS
7737 AWK=$ac_cv_prog_AWK
7738 if test -n "$AWK"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7740 $as_echo "$AWK" >&6; }
7741 else
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7747 test -n "$AWK" && break
7748 done
7750 # We need awk to create options.c and options.h.
7751 # Bail out if it's missing.
7752 case ${AWK} in
7753 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7754 esac
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7757 $as_echo_n "checking whether ln -s works... " >&6; }
7758 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 rm -f conftestdata_t
7762 echo >conftestdata_f
7763 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7764 then
7765 gcc_cv_prog_LN_S="ln -s"
7766 else
7767 if ln conftestdata_f conftestdata_t 2>/dev/null
7768 then
7769 gcc_cv_prog_LN_S=ln
7770 else
7771 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7772 then
7773 gcc_cv_prog_LN_S="cp -p"
7774 else
7775 gcc_cv_prog_LN_S=cp
7779 rm -f conftestdata_f conftestdata_t
7782 LN_S="$gcc_cv_prog_LN_S"
7783 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7785 $as_echo "yes" >&6; }
7786 else
7787 if test "$gcc_cv_prog_LN_S" = "ln"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7789 $as_echo "no, using ln" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7792 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7797 $as_echo_n "checking whether ln works... " >&6; }
7798 if test "${acx_cv_prog_LN+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 rm -f conftestdata_t
7802 echo >conftestdata_f
7803 if ln conftestdata_f conftestdata_t 2>/dev/null
7804 then
7805 acx_cv_prog_LN=ln
7806 else
7807 acx_cv_prog_LN=no
7809 rm -f conftestdata_f conftestdata_t
7812 if test $acx_cv_prog_LN = no; then
7813 LN="$LN_S"
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7815 $as_echo "no, using $LN" >&6; }
7816 else
7817 LN="$acx_cv_prog_LN"
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7819 $as_echo "yes" >&6; }
7822 if test -n "$ac_tool_prefix"; then
7823 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7824 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 if test -n "$RANLIB"; then
7831 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7836 IFS=$as_save_IFS
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 break 2
7844 done
7845 done
7846 IFS=$as_save_IFS
7850 RANLIB=$ac_cv_prog_RANLIB
7851 if test -n "$RANLIB"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7853 $as_echo "$RANLIB" >&6; }
7854 else
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7861 if test -z "$ac_cv_prog_RANLIB"; then
7862 ac_ct_RANLIB=$RANLIB
7863 # Extract the first word of "ranlib", so it can be a program name with args.
7864 set dummy ranlib; ac_word=$2
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866 $as_echo_n "checking for $ac_word... " >&6; }
7867 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 if test -n "$ac_ct_RANLIB"; then
7871 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7872 else
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7880 ac_cv_prog_ac_ct_RANLIB="ranlib"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7884 done
7885 done
7886 IFS=$as_save_IFS
7890 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7891 if test -n "$ac_ct_RANLIB"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7893 $as_echo "$ac_ct_RANLIB" >&6; }
7894 else
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7899 if test "x$ac_ct_RANLIB" = x; then
7900 RANLIB=":"
7901 else
7902 case $cross_compiling:$ac_tool_warned in
7903 yes:)
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7906 ac_tool_warned=yes ;;
7907 esac
7908 RANLIB=$ac_ct_RANLIB
7910 else
7911 RANLIB="$ac_cv_prog_RANLIB"
7914 ranlib_flags=""
7917 # Find a good install program. We prefer a C program (faster),
7918 # so one script is as good as another. But avoid the broken or
7919 # incompatible versions:
7920 # SysV /etc/install, /usr/sbin/install
7921 # SunOS /usr/etc/install
7922 # IRIX /sbin/install
7923 # AIX /bin/install
7924 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7925 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7926 # ./install, which can be erroneously created by make from ./install.sh.
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7928 $as_echo_n "checking for a BSD compatible install... " >&6; }
7929 if test -z "$INSTALL"; then
7930 if test "${ac_cv_path_install+set}" = set; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7934 for ac_dir in $PATH; do
7935 # Account for people who put trailing slashes in PATH elements.
7936 case "$ac_dir/" in
7937 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7939 # OSF1 and SCO ODT 3.0 have their own names for install.
7940 for ac_prog in ginstall scoinst install; do
7941 if test -f $ac_dir/$ac_prog; then
7942 if test $ac_prog = install &&
7943 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7944 # AIX install. It has an incompatible calling convention.
7945 # OSF/1 installbsd also uses dspmsg, but is usable.
7947 else
7948 ac_cv_path_install="$ac_dir/$ac_prog -c"
7949 break 2
7952 done
7954 esac
7955 done
7956 IFS="$ac_save_IFS"
7959 if test "${ac_cv_path_install+set}" = set; then
7960 INSTALL="$ac_cv_path_install"
7961 else
7962 # As a last resort, use the slow shell script. We don't cache a
7963 # path for INSTALL within a source directory, because that will
7964 # break other packages using the cache if that directory is
7965 # removed, or if the path is relative.
7966 INSTALL="$ac_install_sh"
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7970 $as_echo "$INSTALL" >&6; }
7972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7973 # It thinks the first close brace ends the variable substitution.
7974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7979 # See if cmp has --ignore-initial.
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7981 $as_echo_n "checking for cmp's capabilities... " >&6; }
7982 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 echo abfoo >t1
7986 echo cdfoo >t2
7987 gcc_cv_prog_cmp_skip=slowcompare
7988 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7989 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7991 else
7992 gcc_cv_prog_cmp_skip=gnucompare
7995 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7996 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7997 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7999 else
8000 gcc_cv_prog_cmp_skip=fastcompare
8004 rm t1 t2
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8008 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8009 make_compare_target=$gcc_cv_prog_cmp_skip
8013 # See if we have the mktemp command.
8014 # Extract the first word of "mktemp", so it can be a program name with args.
8015 set dummy mktemp; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 if test -n "$have_mktemp_command"; then
8022 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_prog_have_mktemp_command="yes"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8035 done
8036 done
8037 IFS=$as_save_IFS
8039 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8042 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8043 if test -n "$have_mktemp_command"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8045 $as_echo "$have_mktemp_command" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8053 # See if makeinfo has been installed and is modern enough
8054 # that we can use it.
8056 # Extract the first word of "makeinfo", so it can be a program name with args.
8057 set dummy makeinfo; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 if test -n "$MAKEINFO"; then
8064 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8073 ac_cv_prog_MAKEINFO="makeinfo"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8077 done
8078 done
8079 IFS=$as_save_IFS
8083 MAKEINFO=$ac_cv_prog_MAKEINFO
8084 if test -n "$MAKEINFO"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8086 $as_echo "$MAKEINFO" >&6; }
8087 else
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8093 if test -n "$MAKEINFO"; then
8094 # Found it, now check the version.
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8096 $as_echo_n "checking for modern makeinfo... " >&6; }
8097 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8101 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8103 case $ac_prog_version in
8104 '') gcc_cv_prog_makeinfo_modern=no;;
8105 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8106 *) gcc_cv_prog_makeinfo_modern=no;;
8107 esac
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8111 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8112 else
8113 gcc_cv_prog_makeinfo_modern=no
8115 if test $gcc_cv_prog_makeinfo_modern = no; then
8116 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8119 if test $gcc_cv_prog_makeinfo_modern = no; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8121 *** Makeinfo is missing or too old.
8122 *** Info documentation will not be built." >&5
8123 $as_echo "$as_me: WARNING:
8124 *** Makeinfo is missing or too old.
8125 *** Info documentation will not be built." >&2;}
8126 BUILD_INFO=
8127 else
8128 BUILD_INFO=info
8132 # Is pod2man recent enough to regenerate manpages?
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8134 $as_echo_n "checking for recent Pod::Man... " >&6; }
8135 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8137 $as_echo "yes" >&6; }
8138 GENERATED_MANPAGES=generated-manpages
8139 else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8142 GENERATED_MANPAGES=
8146 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8148 # How about lex?
8149 for ac_prog in flex
8151 # Extract the first word of "$ac_prog", so it can be a program name with args.
8152 set dummy $ac_prog; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if test "${ac_cv_prog_FLEX+set}" = set; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158 if test -n "$FLEX"; then
8159 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8164 IFS=$as_save_IFS
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168 ac_cv_prog_FLEX="$ac_prog"
8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 break 2
8172 done
8173 done
8174 IFS=$as_save_IFS
8178 FLEX=$ac_cv_prog_FLEX
8179 if test -n "$FLEX"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8181 $as_echo "$FLEX" >&6; }
8182 else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8188 test -n "$FLEX" && break
8189 done
8190 test -n "$FLEX" || FLEX="$MISSING flex"
8193 # Bison?
8194 for ac_prog in bison
8196 # Extract the first word of "$ac_prog", so it can be a program name with args.
8197 set dummy $ac_prog; ac_word=$2
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199 $as_echo_n "checking for $ac_word... " >&6; }
8200 if test "${ac_cv_prog_BISON+set}" = set; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 if test -n "$BISON"; then
8204 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8205 else
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 for as_dir in $PATH
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8213 ac_cv_prog_BISON="$ac_prog"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8217 done
8218 done
8219 IFS=$as_save_IFS
8223 BISON=$ac_cv_prog_BISON
8224 if test -n "$BISON"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8226 $as_echo "$BISON" >&6; }
8227 else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8233 test -n "$BISON" && break
8234 done
8235 test -n "$BISON" || BISON="$MISSING bison"
8238 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8239 # check for build == host before using them.
8241 # NM
8242 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8243 && test -d ../binutils ; then
8244 NM='${objdir}/../binutils/nm-new'
8245 else
8246 # Extract the first word of "nm", so it can be a program name with args.
8247 set dummy nm; ac_word=$2
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if test "${ac_cv_prog_NM+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 if test -n "$NM"; then
8254 ac_cv_prog_NM="$NM" # Let the user override the test.
8255 else
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 for as_dir in $PATH
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263 ac_cv_prog_NM="nm"
8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 break 2
8267 done
8268 done
8269 IFS=$as_save_IFS
8271 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8274 NM=$ac_cv_prog_NM
8275 if test -n "$NM"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8277 $as_echo "$NM" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8286 # AR
8287 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8288 && test -d ../binutils ; then
8289 AR='${objdir}/../binutils/ar'
8290 else
8291 # Extract the first word of "ar", so it can be a program name with args.
8292 set dummy ar; ac_word=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if test "${ac_cv_prog_AR+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 if test -n "$AR"; then
8299 ac_cv_prog_AR="$AR" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308 ac_cv_prog_AR="ar"
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 break 2
8312 done
8313 done
8314 IFS=$as_save_IFS
8316 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8319 AR=$ac_cv_prog_AR
8320 if test -n "$AR"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8322 $as_echo "$AR" >&6; }
8323 else
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 $as_echo "no" >&6; }
8332 # --------------------
8333 # Checks for C headers
8334 # --------------------
8336 # Need to reject headers which give warnings, so that the -Werror bootstrap
8337 # works later. *sigh* This needs to come before all header checks.
8339 ac_c_preproc_warn_flag=yes
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8342 $as_echo_n "checking for ANSI C header files... " >&6; }
8343 if test "${ac_cv_header_stdc+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 #include <stdlib.h>
8349 #include <stdarg.h>
8350 #include <string.h>
8351 #include <float.h>
8354 main ()
8358 return 0;
8360 _ACEOF
8361 if ac_fn_c_try_compile "$LINENO"; then :
8362 ac_cv_header_stdc=yes
8363 else
8364 ac_cv_header_stdc=no
8366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 if test $ac_cv_header_stdc = yes; then
8369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 #include <string.h>
8374 _ACEOF
8375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8376 $EGREP "memchr" >/dev/null 2>&1; then :
8378 else
8379 ac_cv_header_stdc=no
8381 rm -f conftest*
8385 if test $ac_cv_header_stdc = yes; then
8386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8389 #include <stdlib.h>
8391 _ACEOF
8392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8393 $EGREP "free" >/dev/null 2>&1; then :
8395 else
8396 ac_cv_header_stdc=no
8398 rm -f conftest*
8402 if test $ac_cv_header_stdc = yes; then
8403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8404 if test "$cross_compiling" = yes; then :
8406 else
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409 #include <ctype.h>
8410 #include <stdlib.h>
8411 #if ((' ' & 0x0FF) == 0x020)
8412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8414 #else
8415 # define ISLOWER(c) \
8416 (('a' <= (c) && (c) <= 'i') \
8417 || ('j' <= (c) && (c) <= 'r') \
8418 || ('s' <= (c) && (c) <= 'z'))
8419 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8420 #endif
8422 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8424 main ()
8426 int i;
8427 for (i = 0; i < 256; i++)
8428 if (XOR (islower (i), ISLOWER (i))
8429 || toupper (i) != TOUPPER (i))
8430 return 2;
8431 return 0;
8433 _ACEOF
8434 if ac_fn_c_try_run "$LINENO"; then :
8436 else
8437 ac_cv_header_stdc=no
8439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8440 conftest.$ac_objext conftest.beam conftest.$ac_ext
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8446 $as_echo "$ac_cv_header_stdc" >&6; }
8447 if test $ac_cv_header_stdc = yes; then
8449 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8454 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8455 if test "${ac_cv_header_time+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 #include <sys/types.h>
8461 #include <sys/time.h>
8462 #include <time.h>
8465 main ()
8467 if ((struct tm *) 0)
8468 return 0;
8470 return 0;
8472 _ACEOF
8473 if ac_fn_c_try_compile "$LINENO"; then :
8474 ac_cv_header_time=yes
8475 else
8476 ac_cv_header_time=no
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8481 $as_echo "$ac_cv_header_time" >&6; }
8482 if test $ac_cv_header_time = yes; then
8484 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8489 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8490 if test "${gcc_cv_header_string+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 #include <string.h>
8496 #include <strings.h>
8498 main ()
8502 return 0;
8504 _ACEOF
8505 if ac_fn_c_try_compile "$LINENO"; then :
8506 gcc_cv_header_string=yes
8507 else
8508 gcc_cv_header_string=no
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8513 $as_echo "$gcc_cv_header_string" >&6; }
8514 if test $gcc_cv_header_string = yes; then
8516 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8521 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8522 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h. */
8527 #include <sys/types.h>
8528 #include <sys/wait.h>
8529 #ifndef WEXITSTATUS
8530 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8531 #endif
8532 #ifndef WIFEXITED
8533 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8534 #endif
8537 main ()
8539 int s;
8540 wait (&s);
8541 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8543 return 0;
8545 _ACEOF
8546 if ac_fn_c_try_compile "$LINENO"; then :
8547 ac_cv_header_sys_wait_h=yes
8548 else
8549 ac_cv_header_sys_wait_h=no
8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8554 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8555 if test $ac_cv_header_sys_wait_h = yes; then
8557 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8562 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8563 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8564 $as_echo_n "(cached) " >&6
8565 else
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8568 #include <sys/types.h>
8569 #include <termios.h>
8570 #ifdef TIOCGWINSZ
8572 #endif
8574 _ACEOF
8575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8576 $EGREP "yes" >/dev/null 2>&1; then :
8577 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8578 else
8579 ac_cv_sys_tiocgwinsz_in_termios_h=no
8581 rm -f conftest*
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8585 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8587 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8589 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8590 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8591 $as_echo_n "(cached) " >&6
8592 else
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8595 #include <sys/types.h>
8596 #include <sys/ioctl.h>
8597 #ifdef TIOCGWINSZ
8599 #endif
8601 _ACEOF
8602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8603 $EGREP "yes" >/dev/null 2>&1; then :
8604 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8605 else
8606 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8608 rm -f conftest*
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8612 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8614 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8616 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8621 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8622 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8623 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8624 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8625 do :
8626 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8627 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8628 eval as_val=\$$as_ac_Header
8629 if test "x$as_val" = x""yes; then :
8630 cat >>confdefs.h <<_ACEOF
8631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8632 _ACEOF
8635 done
8638 # Check for thread headers.
8639 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8640 if test "x$ac_cv_header_thread_h" = x""yes; then :
8641 have_thread_h=yes
8642 else
8643 have_thread_h=
8646 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8647 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8648 have_pthread_h=yes
8649 else
8650 have_pthread_h=
8654 # These tests can't be done till we know if we have limits.h.
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8656 $as_echo_n "checking for CHAR_BIT... " >&6; }
8657 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 #ifdef HAVE_LIMITS_H
8663 #include <limits.h>
8664 #endif
8665 #ifdef CHAR_BIT
8666 found
8667 #endif
8668 _ACEOF
8669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8670 $EGREP "found" >/dev/null 2>&1; then :
8671 gcc_cv_decl_char_bit=yes
8672 else
8673 gcc_cv_decl_char_bit=no
8675 rm -f conftest*
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8680 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8681 if test $gcc_cv_decl_char_bit = no; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8683 $as_echo_n "checking number of bits in a byte... " >&6; }
8684 if test "${gcc_cv_c_nbby+set}" = set; then :
8685 $as_echo_n "(cached) " >&6
8686 else
8688 gcc_cv_c_nbby=
8689 while test $i -lt 65; do
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8694 main ()
8696 switch(0) {
8697 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8698 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8701 return 0;
8703 _ACEOF
8704 if ac_fn_c_try_compile "$LINENO"; then :
8705 gcc_cv_c_nbby=$i; break
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 i=`expr $i + 1`
8709 done
8710 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8714 $as_echo "$gcc_cv_c_nbby" >&6; }
8715 if test $gcc_cv_c_nbby = failed; then
8716 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8717 else
8719 cat >>confdefs.h <<_ACEOF
8720 #define CHAR_BIT $gcc_cv_c_nbby
8721 _ACEOF
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8726 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8727 if test "${ac_cv_c_bigendian+set}" = set; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 ac_cv_c_bigendian=unknown
8731 # See if we're dealing with a universal compiler.
8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h. */
8734 #ifndef __APPLE_CC__
8735 not a universal capable compiler
8736 #endif
8737 typedef int dummy;
8739 _ACEOF
8740 if ac_fn_c_try_compile "$LINENO"; then :
8742 # Check for potential -arch flags. It is not universal unless
8743 # there are at least two -arch flags with different values.
8744 ac_arch=
8745 ac_prev=
8746 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8747 if test -n "$ac_prev"; then
8748 case $ac_word in
8749 i?86 | x86_64 | ppc | ppc64)
8750 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8751 ac_arch=$ac_word
8752 else
8753 ac_cv_c_bigendian=universal
8754 break
8757 esac
8758 ac_prev=
8759 elif test "x$ac_word" = "x-arch"; then
8760 ac_prev=arch
8762 done
8764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 if test $ac_cv_c_bigendian = unknown; then
8766 # See if sys/param.h defines the BYTE_ORDER macro.
8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8769 #include <sys/types.h>
8770 #include <sys/param.h>
8773 main ()
8775 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8776 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8777 && LITTLE_ENDIAN)
8778 bogus endian macros
8779 #endif
8782 return 0;
8784 _ACEOF
8785 if ac_fn_c_try_compile "$LINENO"; then :
8786 # It does; now see whether it defined to BIG_ENDIAN or not.
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #include <sys/types.h>
8790 #include <sys/param.h>
8793 main ()
8795 #if BYTE_ORDER != BIG_ENDIAN
8796 not big endian
8797 #endif
8800 return 0;
8802 _ACEOF
8803 if ac_fn_c_try_compile "$LINENO"; then :
8804 ac_cv_c_bigendian=yes
8805 else
8806 ac_cv_c_bigendian=no
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8812 if test $ac_cv_c_bigendian = unknown; then
8813 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8816 #include <limits.h>
8819 main ()
8821 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8822 bogus endian macros
8823 #endif
8826 return 0;
8828 _ACEOF
8829 if ac_fn_c_try_compile "$LINENO"; then :
8830 # It does; now see whether it defined to _BIG_ENDIAN or not.
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833 #include <limits.h>
8836 main ()
8838 #ifndef _BIG_ENDIAN
8839 not big endian
8840 #endif
8843 return 0;
8845 _ACEOF
8846 if ac_fn_c_try_compile "$LINENO"; then :
8847 ac_cv_c_bigendian=yes
8848 else
8849 ac_cv_c_bigendian=no
8851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 if test $ac_cv_c_bigendian = unknown; then
8856 # Compile a test program.
8857 if test "$cross_compiling" = yes; then :
8858 # Try to guess by grepping values from an object file.
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 short int ascii_mm[] =
8862 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8863 short int ascii_ii[] =
8864 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8865 int use_ascii (int i) {
8866 return ascii_mm[i] + ascii_ii[i];
8868 short int ebcdic_ii[] =
8869 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8870 short int ebcdic_mm[] =
8871 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8872 int use_ebcdic (int i) {
8873 return ebcdic_mm[i] + ebcdic_ii[i];
8875 extern int foo;
8878 main ()
8880 return use_ascii (foo) == use_ebcdic (foo);
8882 return 0;
8884 _ACEOF
8885 if ac_fn_c_try_compile "$LINENO"; then :
8886 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8887 ac_cv_c_bigendian=yes
8889 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8890 if test "$ac_cv_c_bigendian" = unknown; then
8891 ac_cv_c_bigendian=no
8892 else
8893 # finding both strings is unlikely to happen, but who knows?
8894 ac_cv_c_bigendian=unknown
8898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899 else
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8902 $ac_includes_default
8904 main ()
8907 /* Are we little or big endian? From Harbison&Steele. */
8908 union
8910 long int l;
8911 char c[sizeof (long int)];
8912 } u;
8913 u.l = 1;
8914 return u.c[sizeof (long int) - 1] == 1;
8917 return 0;
8919 _ACEOF
8920 if ac_fn_c_try_run "$LINENO"; then :
8921 ac_cv_c_bigendian=no
8922 else
8923 ac_cv_c_bigendian=yes
8925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8926 conftest.$ac_objext conftest.beam conftest.$ac_ext
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8932 $as_echo "$ac_cv_c_bigendian" >&6; }
8933 case $ac_cv_c_bigendian in #(
8934 yes)
8935 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8936 ;; #(
8938 ;; #(
8939 universal)
8941 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8943 ;; #(
8945 as_fn_error "unknown endianness
8946 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8947 esac
8950 # ----------------------
8951 # Checks for C++ headers
8952 # ----------------------
8954 ac_ext=cpp
8955 ac_cpp='$CXXCPP $CPPFLAGS'
8956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8960 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8961 if test -z "$CXXCPP"; then
8962 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 # Double quotes because CXXCPP needs to be expanded
8966 for CXXCPP in "$CXX -E" "/lib/cpp"
8968 ac_preproc_ok=false
8969 for ac_cxx_preproc_warn_flag in '' yes
8971 # Use a header file that comes with gcc, so configuring glibc
8972 # with a fresh cross-compiler works.
8973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8974 # <limits.h> exists even on freestanding compilers.
8975 # On the NeXT, cc -E runs the code through the compiler's parser,
8976 # not just through cpp. "Syntax error" is here to catch this case.
8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h. */
8979 #ifdef __STDC__
8980 # include <limits.h>
8981 #else
8982 # include <assert.h>
8983 #endif
8984 Syntax error
8985 _ACEOF
8986 if ac_fn_cxx_try_cpp "$LINENO"; then :
8988 else
8989 # Broken: fails on valid input.
8990 continue
8992 rm -f conftest.err conftest.$ac_ext
8994 # OK, works on sane cases. Now check whether nonexistent headers
8995 # can be detected and how.
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8998 #include <ac_nonexistent.h>
8999 _ACEOF
9000 if ac_fn_cxx_try_cpp "$LINENO"; then :
9001 # Broken: success on invalid input.
9002 continue
9003 else
9004 # Passes both tests.
9005 ac_preproc_ok=:
9006 break
9008 rm -f conftest.err conftest.$ac_ext
9010 done
9011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9012 rm -f conftest.err conftest.$ac_ext
9013 if $ac_preproc_ok; then :
9014 break
9017 done
9018 ac_cv_prog_CXXCPP=$CXXCPP
9021 CXXCPP=$ac_cv_prog_CXXCPP
9022 else
9023 ac_cv_prog_CXXCPP=$CXXCPP
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9026 $as_echo "$CXXCPP" >&6; }
9027 ac_preproc_ok=false
9028 for ac_cxx_preproc_warn_flag in '' yes
9030 # Use a header file that comes with gcc, so configuring glibc
9031 # with a fresh cross-compiler works.
9032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9033 # <limits.h> exists even on freestanding compilers.
9034 # On the NeXT, cc -E runs the code through the compiler's parser,
9035 # not just through cpp. "Syntax error" is here to catch this case.
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 #ifdef __STDC__
9039 # include <limits.h>
9040 #else
9041 # include <assert.h>
9042 #endif
9043 Syntax error
9044 _ACEOF
9045 if ac_fn_cxx_try_cpp "$LINENO"; then :
9047 else
9048 # Broken: fails on valid input.
9049 continue
9051 rm -f conftest.err conftest.$ac_ext
9053 # OK, works on sane cases. Now check whether nonexistent headers
9054 # can be detected and how.
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9057 #include <ac_nonexistent.h>
9058 _ACEOF
9059 if ac_fn_cxx_try_cpp "$LINENO"; then :
9060 # Broken: success on invalid input.
9061 continue
9062 else
9063 # Passes both tests.
9064 ac_preproc_ok=:
9065 break
9067 rm -f conftest.err conftest.$ac_ext
9069 done
9070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9071 rm -f conftest.err conftest.$ac_ext
9072 if $ac_preproc_ok; then :
9074 else
9075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9078 See \`config.log' for more details." >&5
9079 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9080 See \`config.log' for more details." >&2;}; }
9083 ac_ext=c
9084 ac_cpp='$CPP $CPPFLAGS'
9085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9090 ac_ext=cpp
9091 ac_cpp='$CXXCPP $CPPFLAGS'
9092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9099 for ac_header in unordered_map
9100 do :
9101 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9102 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9103 cat >>confdefs.h <<_ACEOF
9104 #define HAVE_UNORDERED_MAP 1
9105 _ACEOF
9108 done
9110 for ac_header in tr1/unordered_map
9111 do :
9112 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9113 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9114 cat >>confdefs.h <<_ACEOF
9115 #define HAVE_TR1_UNORDERED_MAP 1
9116 _ACEOF
9119 done
9121 for ac_header in ext/hash_map
9122 do :
9123 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9124 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9125 cat >>confdefs.h <<_ACEOF
9126 #define HAVE_EXT_HASH_MAP 1
9127 _ACEOF
9130 done
9133 ac_ext=c
9134 ac_cpp='$CPP $CPPFLAGS'
9135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9140 # --------
9141 # UNSORTED
9142 # --------
9145 # These libraries may be used by collect2.
9146 # We may need a special search path to get them linked.
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9148 $as_echo_n "checking for collect2 libraries... " >&6; }
9149 if test "${gcc_cv_collect2_libs+set}" = set; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 save_LIBS="$LIBS"
9153 for libs in '' -lld -lmld \
9154 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9155 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9157 LIBS="$libs"
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9161 /* Override any GCC internal prototype to avoid an error.
9162 Use char because int might match the return type of a GCC
9163 builtin and then its argument prototype would still apply. */
9164 #ifdef __cplusplus
9165 extern "C"
9166 #endif
9167 char ldopen ();
9169 main ()
9171 return ldopen ();
9173 return 0;
9175 _ACEOF
9176 if ac_fn_c_try_link "$LINENO"; then :
9177 gcc_cv_collect2_libs="$libs"; break
9179 rm -f core conftest.err conftest.$ac_objext \
9180 conftest$ac_exeext conftest.$ac_ext
9181 done
9182 LIBS="$save_LIBS"
9183 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9186 $as_echo "$gcc_cv_collect2_libs" >&6; }
9187 case $gcc_cv_collect2_libs in
9188 "none required") ;;
9189 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9190 esac
9193 # When building Ada code on Alpha, we need exc_resume which is usually in
9194 # -lexc. So test for it.
9195 save_LIBS="$LIBS"
9196 LIBS=
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9198 $as_echo_n "checking for library containing exc_resume... " >&6; }
9199 if test "${ac_cv_search_exc_resume+set}" = set; then :
9200 $as_echo_n "(cached) " >&6
9201 else
9202 ac_func_search_save_LIBS=$LIBS
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9206 /* Override any GCC internal prototype to avoid an error.
9207 Use char because int might match the return type of a GCC
9208 builtin and then its argument prototype would still apply. */
9209 #ifdef __cplusplus
9210 extern "C"
9211 #endif
9212 char exc_resume ();
9214 main ()
9216 return exc_resume ();
9218 return 0;
9220 _ACEOF
9221 for ac_lib in '' exc; do
9222 if test -z "$ac_lib"; then
9223 ac_res="none required"
9224 else
9225 ac_res=-l$ac_lib
9226 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9228 if ac_fn_c_try_link "$LINENO"; then :
9229 ac_cv_search_exc_resume=$ac_res
9231 rm -f core conftest.err conftest.$ac_objext \
9232 conftest$ac_exeext
9233 if test "${ac_cv_search_exc_resume+set}" = set; then :
9234 break
9236 done
9237 if test "${ac_cv_search_exc_resume+set}" = set; then :
9239 else
9240 ac_cv_search_exc_resume=no
9242 rm conftest.$ac_ext
9243 LIBS=$ac_func_search_save_LIBS
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9246 $as_echo "$ac_cv_search_exc_resume" >&6; }
9247 ac_res=$ac_cv_search_exc_resume
9248 if test "$ac_res" != no; then :
9249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9253 GNAT_LIBEXC="$LIBS"
9254 LIBS="$save_LIBS"
9257 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9258 save_LIBS="$LIBS"
9259 LIBS=
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9261 $as_echo_n "checking for library containing kstat_open... " >&6; }
9262 if test "${ac_cv_search_kstat_open+set}" = set; then :
9263 $as_echo_n "(cached) " >&6
9264 else
9265 ac_func_search_save_LIBS=$LIBS
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9269 /* Override any GCC internal prototype to avoid an error.
9270 Use char because int might match the return type of a GCC
9271 builtin and then its argument prototype would still apply. */
9272 #ifdef __cplusplus
9273 extern "C"
9274 #endif
9275 char kstat_open ();
9277 main ()
9279 return kstat_open ();
9281 return 0;
9283 _ACEOF
9284 for ac_lib in '' kstat; do
9285 if test -z "$ac_lib"; then
9286 ac_res="none required"
9287 else
9288 ac_res=-l$ac_lib
9289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9291 if ac_fn_c_try_link "$LINENO"; then :
9292 ac_cv_search_kstat_open=$ac_res
9294 rm -f core conftest.err conftest.$ac_objext \
9295 conftest$ac_exeext
9296 if test "${ac_cv_search_kstat_open+set}" = set; then :
9297 break
9299 done
9300 if test "${ac_cv_search_kstat_open+set}" = set; then :
9302 else
9303 ac_cv_search_kstat_open=no
9305 rm conftest.$ac_ext
9306 LIBS=$ac_func_search_save_LIBS
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9309 $as_echo "$ac_cv_search_kstat_open" >&6; }
9310 ac_res=$ac_cv_search_kstat_open
9311 if test "$ac_res" != no; then :
9312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9316 EXTRA_GCC_LIBS="$LIBS"
9317 LIBS="$save_LIBS"
9320 # Some systems put ldexp and frexp in libm instead of libc; assume
9321 # they're both in the same place. jcf-dump needs them.
9322 save_LIBS="$LIBS"
9323 LIBS=
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9325 $as_echo_n "checking for library containing ldexp... " >&6; }
9326 if test "${ac_cv_search_ldexp+set}" = set; then :
9327 $as_echo_n "(cached) " >&6
9328 else
9329 ac_func_search_save_LIBS=$LIBS
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9333 /* Override any GCC internal prototype to avoid an error.
9334 Use char because int might match the return type of a GCC
9335 builtin and then its argument prototype would still apply. */
9336 #ifdef __cplusplus
9337 extern "C"
9338 #endif
9339 char ldexp ();
9341 main ()
9343 return ldexp ();
9345 return 0;
9347 _ACEOF
9348 for ac_lib in '' m; do
9349 if test -z "$ac_lib"; then
9350 ac_res="none required"
9351 else
9352 ac_res=-l$ac_lib
9353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9355 if ac_fn_c_try_link "$LINENO"; then :
9356 ac_cv_search_ldexp=$ac_res
9358 rm -f core conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext
9360 if test "${ac_cv_search_ldexp+set}" = set; then :
9361 break
9363 done
9364 if test "${ac_cv_search_ldexp+set}" = set; then :
9366 else
9367 ac_cv_search_ldexp=no
9369 rm conftest.$ac_ext
9370 LIBS=$ac_func_search_save_LIBS
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9373 $as_echo "$ac_cv_search_ldexp" >&6; }
9374 ac_res=$ac_cv_search_ldexp
9375 if test "$ac_res" != no; then :
9376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9380 LDEXP_LIB="$LIBS"
9381 LIBS="$save_LIBS"
9384 # Use <inttypes.h> only if it exists,
9385 # doesn't clash with <sys/types.h>, and declares intmax_t.
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9387 $as_echo_n "checking for inttypes.h... " >&6; }
9388 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9389 $as_echo_n "(cached) " >&6
9390 else
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9393 #include <sys/types.h>
9394 #include <inttypes.h>
9396 main ()
9398 intmax_t i = -1;
9400 return 0;
9402 _ACEOF
9403 if ac_fn_c_try_compile "$LINENO"; then :
9404 gcc_cv_header_inttypes_h=yes
9405 else
9406 gcc_cv_header_inttypes_h=no
9408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9412 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9413 if test $gcc_cv_header_inttypes_h = yes; then
9415 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9421 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9422 sysconf strsignal getrusage nl_langinfo \
9423 gettimeofday mbstowcs wcswidth mmap setlocale \
9424 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
9425 do :
9426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9427 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9428 eval as_val=\$$as_ac_var
9429 if test "x$as_val" = x""yes; then :
9430 cat >>confdefs.h <<_ACEOF
9431 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9432 _ACEOF
9435 done
9438 if test x$ac_cv_func_mbstowcs = xyes; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9440 $as_echo_n "checking whether mbstowcs works... " >&6; }
9441 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 if test "$cross_compiling" = yes; then :
9445 gcc_cv_func_mbstowcs_works=yes
9446 else
9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9449 #include <stdlib.h>
9450 int main()
9452 mbstowcs(0, "", 0);
9453 return 0;
9455 _ACEOF
9456 if ac_fn_c_try_run "$LINENO"; then :
9457 gcc_cv_func_mbstowcs_works=yes
9458 else
9459 gcc_cv_func_mbstowcs_works=no
9461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9462 conftest.$ac_objext conftest.beam conftest.$ac_ext
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9467 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9468 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9470 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9475 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9476 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9478 else
9480 cat >>confdefs.h <<_ACEOF
9481 #define ssize_t int
9482 _ACEOF
9486 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9487 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9489 else
9491 cat >>confdefs.h <<_ACEOF
9492 #define caddr_t char *
9493 _ACEOF
9499 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9500 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9501 gcc_header_sys_mman_h=yes
9502 else
9503 gcc_header_sys_mman_h=no
9506 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9507 if test "x$ac_cv_func_mmap" = x""yes; then :
9508 gcc_func_mmap=yes
9509 else
9510 gcc_func_mmap=no
9513 if test "$gcc_header_sys_mman_h" != yes \
9514 || test "$gcc_func_mmap" != yes; then
9515 gcc_cv_func_mmap_file=no
9516 gcc_cv_func_mmap_dev_zero=no
9517 gcc_cv_func_mmap_anon=no
9518 else
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9520 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9521 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 # Add a system to this blacklist if
9525 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9526 # memory area containing the same data that you'd get if you applied
9527 # read() to the same fd. The only system known to have a problem here
9528 # is VMS, where text files have record structure.
9529 case "$host_os" in
9530 *vms* | ultrix*)
9531 gcc_cv_func_mmap_file=no ;;
9533 gcc_cv_func_mmap_file=yes;;
9534 esac
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9537 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9539 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9540 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9541 $as_echo_n "(cached) " >&6
9542 else
9543 # Add a system to this blacklist if it has mmap() but /dev/zero
9544 # does not exist, or if mmapping /dev/zero does not give anonymous
9545 # zeroed pages with both the following properties:
9546 # 1. If you map N consecutive pages in with one call, and then
9547 # unmap any subset of those pages, the pages that were not
9548 # explicitly unmapped remain accessible.
9549 # 2. If you map two adjacent blocks of memory and then unmap them
9550 # both at once, they must both go away.
9551 # Systems known to be in this category are Windows (all variants),
9552 # VMS, and Darwin.
9553 case "$host_os" in
9554 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9555 gcc_cv_func_mmap_dev_zero=no ;;
9557 gcc_cv_func_mmap_dev_zero=yes;;
9558 esac
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9561 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9563 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9565 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9566 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571 #include <sys/types.h>
9572 #include <sys/mman.h>
9573 #include <unistd.h>
9575 #ifndef MAP_ANONYMOUS
9576 #define MAP_ANONYMOUS MAP_ANON
9577 #endif
9580 main ()
9582 int n = MAP_ANONYMOUS;
9584 return 0;
9586 _ACEOF
9587 if ac_fn_c_try_compile "$LINENO"; then :
9588 gcc_cv_decl_map_anon=yes
9589 else
9590 gcc_cv_decl_map_anon=no
9592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9595 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9597 if test $gcc_cv_decl_map_anon = no; then
9598 gcc_cv_func_mmap_anon=no
9599 else
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9601 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9602 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9603 $as_echo_n "(cached) " >&6
9604 else
9605 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9606 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9607 # doesn't give anonymous zeroed pages with the same properties listed
9608 # above for use of /dev/zero.
9609 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9610 case "$host_os" in
9611 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9612 gcc_cv_func_mmap_anon=no ;;
9614 gcc_cv_func_mmap_anon=yes;;
9615 esac
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9618 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9622 if test $gcc_cv_func_mmap_file = yes; then
9624 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9627 if test $gcc_cv_func_mmap_dev_zero = yes; then
9629 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9632 if test $gcc_cv_func_mmap_anon = yes; then
9634 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9639 case "${host}" in
9640 *-*-*vms*)
9641 # Under VMS, vfork works very differently than on Unix. The standard test
9642 # won't work, and it isn't easily adaptable. It makes more sense to
9643 # just force it.
9644 ac_cv_func_vfork_works=yes
9646 esac
9647 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9648 if test "x$ac_cv_type_pid_t" = x""yes; then :
9650 else
9652 cat >>confdefs.h <<_ACEOF
9653 #define pid_t int
9654 _ACEOF
9658 for ac_header in vfork.h
9659 do :
9660 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9661 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9662 cat >>confdefs.h <<_ACEOF
9663 #define HAVE_VFORK_H 1
9664 _ACEOF
9667 done
9669 for ac_func in fork vfork
9670 do :
9671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9672 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9673 eval as_val=\$$as_ac_var
9674 if test "x$as_val" = x""yes; then :
9675 cat >>confdefs.h <<_ACEOF
9676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9677 _ACEOF
9680 done
9682 if test "x$ac_cv_func_fork" = xyes; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9684 $as_echo_n "checking for working fork... " >&6; }
9685 if test "${ac_cv_func_fork_works+set}" = set; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9688 if test "$cross_compiling" = yes; then :
9689 ac_cv_func_fork_works=cross
9690 else
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693 $ac_includes_default
9695 main ()
9698 /* By Ruediger Kuhlmann. */
9699 return fork () < 0;
9702 return 0;
9704 _ACEOF
9705 if ac_fn_c_try_run "$LINENO"; then :
9706 ac_cv_func_fork_works=yes
9707 else
9708 ac_cv_func_fork_works=no
9710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9711 conftest.$ac_objext conftest.beam conftest.$ac_ext
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9716 $as_echo "$ac_cv_func_fork_works" >&6; }
9718 else
9719 ac_cv_func_fork_works=$ac_cv_func_fork
9721 if test "x$ac_cv_func_fork_works" = xcross; then
9722 case $host in
9723 *-*-amigaos* | *-*-msdosdjgpp*)
9724 # Override, as these systems have only a dummy fork() stub
9725 ac_cv_func_fork_works=no
9728 ac_cv_func_fork_works=yes
9730 esac
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9732 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9734 ac_cv_func_vfork_works=$ac_cv_func_vfork
9735 if test "x$ac_cv_func_vfork" = xyes; then
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9737 $as_echo_n "checking for working vfork... " >&6; }
9738 if test "${ac_cv_func_vfork_works+set}" = set; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 if test "$cross_compiling" = yes; then :
9742 ac_cv_func_vfork_works=cross
9743 else
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9746 /* Thanks to Paul Eggert for this test. */
9747 $ac_includes_default
9748 #include <sys/wait.h>
9749 #ifdef HAVE_VFORK_H
9750 # include <vfork.h>
9751 #endif
9752 /* On some sparc systems, changes by the child to local and incoming
9753 argument registers are propagated back to the parent. The compiler
9754 is told about this with #include <vfork.h>, but some compilers
9755 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9756 static variable whose address is put into a register that is
9757 clobbered by the vfork. */
9758 static void
9759 #ifdef __cplusplus
9760 sparc_address_test (int arg)
9761 # else
9762 sparc_address_test (arg) int arg;
9763 #endif
9765 static pid_t child;
9766 if (!child) {
9767 child = vfork ();
9768 if (child < 0) {
9769 perror ("vfork");
9770 _exit(2);
9772 if (!child) {
9773 arg = getpid();
9774 write(-1, "", 0);
9775 _exit (arg);
9781 main ()
9783 pid_t parent = getpid ();
9784 pid_t child;
9786 sparc_address_test (0);
9788 child = vfork ();
9790 if (child == 0) {
9791 /* Here is another test for sparc vfork register problems. This
9792 test uses lots of local variables, at least as many local
9793 variables as main has allocated so far including compiler
9794 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9795 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9796 reuse the register of parent for one of the local variables,
9797 since it will think that parent can't possibly be used any more
9798 in this routine. Assigning to the local variable will thus
9799 munge parent in the parent process. */
9800 pid_t
9801 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9802 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9803 /* Convince the compiler that p..p7 are live; otherwise, it might
9804 use the same hardware register for all 8 local variables. */
9805 if (p != p1 || p != p2 || p != p3 || p != p4
9806 || p != p5 || p != p6 || p != p7)
9807 _exit(1);
9809 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9810 from child file descriptors. If the child closes a descriptor
9811 before it execs or exits, this munges the parent's descriptor
9812 as well. Test for this by closing stdout in the child. */
9813 _exit(close(fileno(stdout)) != 0);
9814 } else {
9815 int status;
9816 struct stat st;
9818 while (wait(&status) != child)
9820 return (
9821 /* Was there some problem with vforking? */
9822 child < 0
9824 /* Did the child fail? (This shouldn't happen.) */
9825 || status
9827 /* Did the vfork/compiler bug occur? */
9828 || parent != getpid()
9830 /* Did the file descriptor bug occur? */
9831 || fstat(fileno(stdout), &st) != 0
9835 _ACEOF
9836 if ac_fn_c_try_run "$LINENO"; then :
9837 ac_cv_func_vfork_works=yes
9838 else
9839 ac_cv_func_vfork_works=no
9841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9842 conftest.$ac_objext conftest.beam conftest.$ac_ext
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9847 $as_echo "$ac_cv_func_vfork_works" >&6; }
9850 if test "x$ac_cv_func_fork_works" = xcross; then
9851 ac_cv_func_vfork_works=$ac_cv_func_vfork
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9853 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9856 if test "x$ac_cv_func_vfork_works" = xyes; then
9858 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9860 else
9862 $as_echo "#define vfork fork" >>confdefs.h
9865 if test "x$ac_cv_func_fork_works" = xyes; then
9867 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9872 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9873 # iconv() prototype.
9874 ac_ext=cpp
9875 ac_cpp='$CXXCPP $CPPFLAGS'
9876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9881 if test "X$prefix" = "XNONE"; then
9882 acl_final_prefix="$ac_default_prefix"
9883 else
9884 acl_final_prefix="$prefix"
9886 if test "X$exec_prefix" = "XNONE"; then
9887 acl_final_exec_prefix='${prefix}'
9888 else
9889 acl_final_exec_prefix="$exec_prefix"
9891 acl_save_prefix="$prefix"
9892 prefix="$acl_final_prefix"
9893 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9894 prefix="$acl_save_prefix"
9897 # Check whether --with-gnu-ld was given.
9898 if test "${with_gnu_ld+set}" = set; then :
9899 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9900 else
9901 with_gnu_ld=no
9904 # Prepare PATH_SEPARATOR.
9905 # The user is always right.
9906 if test "${PATH_SEPARATOR+set}" != set; then
9907 echo "#! /bin/sh" >conf$$.sh
9908 echo "exit 0" >>conf$$.sh
9909 chmod +x conf$$.sh
9910 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9911 PATH_SEPARATOR=';'
9912 else
9913 PATH_SEPARATOR=:
9915 rm -f conf$$.sh
9917 ac_prog=ld
9918 if test "$GCC" = yes; then
9919 # Check if gcc -print-prog-name=ld gives a path.
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9921 $as_echo_n "checking for ld used by GCC... " >&6; }
9922 case $host in
9923 *-*-mingw*)
9924 # gcc leaves a trailing carriage return which upsets mingw
9925 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9927 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9928 esac
9929 case $ac_prog in
9930 # Accept absolute paths.
9931 [\\/]* | [A-Za-z]:[\\/]*)
9932 re_direlt='/[^/][^/]*/\.\./'
9933 # Canonicalize the path of ld
9934 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9935 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9936 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9937 done
9938 test -z "$LD" && LD="$ac_prog"
9941 # If it fails, then pretend we aren't using GCC.
9942 ac_prog=ld
9945 # If it is relative, then search for the first ld in PATH.
9946 with_gnu_ld=unknown
9948 esac
9949 elif test "$with_gnu_ld" = yes; then
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9951 $as_echo_n "checking for GNU ld... " >&6; }
9952 else
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9954 $as_echo_n "checking for non-GNU ld... " >&6; }
9956 if test "${acl_cv_path_LD+set}" = set; then :
9957 $as_echo_n "(cached) " >&6
9958 else
9959 if test -z "$LD"; then
9960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9961 for ac_dir in $PATH; do
9962 test -z "$ac_dir" && ac_dir=.
9963 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9964 acl_cv_path_LD="$ac_dir/$ac_prog"
9965 # Check to see if the program is GNU ld. I'd rather use --version,
9966 # but apparently some GNU ld's only accept -v.
9967 # Break only if it was the GNU/non-GNU ld that we prefer.
9968 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9969 test "$with_gnu_ld" != no && break
9970 else
9971 test "$with_gnu_ld" != yes && break
9974 done
9975 IFS="$ac_save_ifs"
9976 else
9977 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9981 LD="$acl_cv_path_LD"
9982 if test -n "$LD"; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9984 $as_echo "$LD" >&6; }
9985 else
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987 $as_echo "no" >&6; }
9989 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9991 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9992 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9993 $as_echo_n "(cached) " >&6
9994 else
9995 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9996 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9997 acl_cv_prog_gnu_ld=yes
9998 else
9999 acl_cv_prog_gnu_ld=no
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10003 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10004 with_gnu_ld=$acl_cv_prog_gnu_ld
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10009 $as_echo_n "checking for shared library run path origin... " >&6; }
10010 if test "${acl_cv_rpath+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10014 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10015 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10016 . ./conftest.sh
10017 rm -f ./conftest.sh
10018 acl_cv_rpath=done
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10022 $as_echo "$acl_cv_rpath" >&6; }
10023 wl="$acl_cv_wl"
10024 libext="$acl_cv_libext"
10025 shlibext="$acl_cv_shlibext"
10026 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10027 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10028 hardcode_direct="$acl_cv_hardcode_direct"
10029 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10030 # Check whether --enable-rpath was given.
10031 if test "${enable_rpath+set}" = set; then :
10032 enableval=$enable_rpath; :
10033 else
10034 enable_rpath=yes
10044 use_additional=yes
10046 acl_save_prefix="$prefix"
10047 prefix="$acl_final_prefix"
10048 acl_save_exec_prefix="$exec_prefix"
10049 exec_prefix="$acl_final_exec_prefix"
10051 eval additional_includedir=\"$includedir\"
10052 eval additional_libdir=\"$libdir\"
10054 exec_prefix="$acl_save_exec_prefix"
10055 prefix="$acl_save_prefix"
10058 # Check whether --with-libiconv-prefix was given.
10059 if test "${with_libiconv_prefix+set}" = set; then :
10060 withval=$with_libiconv_prefix;
10061 if test "X$withval" = "Xno"; then
10062 use_additional=no
10063 else
10064 if test "X$withval" = "X"; then
10066 acl_save_prefix="$prefix"
10067 prefix="$acl_final_prefix"
10068 acl_save_exec_prefix="$exec_prefix"
10069 exec_prefix="$acl_final_exec_prefix"
10071 eval additional_includedir=\"$includedir\"
10072 eval additional_libdir=\"$libdir\"
10074 exec_prefix="$acl_save_exec_prefix"
10075 prefix="$acl_save_prefix"
10077 else
10078 additional_includedir="$withval/include"
10079 additional_libdir="$withval/lib"
10085 LIBICONV=
10086 LTLIBICONV=
10087 INCICONV=
10088 rpathdirs=
10089 ltrpathdirs=
10090 names_already_handled=
10091 names_next_round='iconv '
10092 while test -n "$names_next_round"; do
10093 names_this_round="$names_next_round"
10094 names_next_round=
10095 for name in $names_this_round; do
10096 already_handled=
10097 for n in $names_already_handled; do
10098 if test "$n" = "$name"; then
10099 already_handled=yes
10100 break
10102 done
10103 if test -z "$already_handled"; then
10104 names_already_handled="$names_already_handled $name"
10105 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10106 eval value=\"\$HAVE_LIB$uppername\"
10107 if test -n "$value"; then
10108 if test "$value" = yes; then
10109 eval value=\"\$LIB$uppername\"
10110 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10111 eval value=\"\$LTLIB$uppername\"
10112 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10113 else
10116 else
10117 found_dir=
10118 found_la=
10119 found_so=
10120 found_a=
10121 if test $use_additional = yes; then
10122 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10123 found_dir="$additional_libdir"
10124 found_so="$additional_libdir/lib$name.$shlibext"
10125 if test -f "$additional_libdir/lib$name.la"; then
10126 found_la="$additional_libdir/lib$name.la"
10128 else
10129 if test -f "$additional_libdir/lib$name.$libext"; then
10130 found_dir="$additional_libdir"
10131 found_a="$additional_libdir/lib$name.$libext"
10132 if test -f "$additional_libdir/lib$name.la"; then
10133 found_la="$additional_libdir/lib$name.la"
10138 if test "X$found_dir" = "X"; then
10139 for x in $LDFLAGS $LTLIBICONV; do
10141 acl_save_prefix="$prefix"
10142 prefix="$acl_final_prefix"
10143 acl_save_exec_prefix="$exec_prefix"
10144 exec_prefix="$acl_final_exec_prefix"
10145 eval x=\"$x\"
10146 exec_prefix="$acl_save_exec_prefix"
10147 prefix="$acl_save_prefix"
10149 case "$x" in
10150 -L*)
10151 dir=`echo "X$x" | sed -e 's/^X-L//'`
10152 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10153 found_dir="$dir"
10154 found_so="$dir/lib$name.$shlibext"
10155 if test -f "$dir/lib$name.la"; then
10156 found_la="$dir/lib$name.la"
10158 else
10159 if test -f "$dir/lib$name.$libext"; then
10160 found_dir="$dir"
10161 found_a="$dir/lib$name.$libext"
10162 if test -f "$dir/lib$name.la"; then
10163 found_la="$dir/lib$name.la"
10168 esac
10169 if test "X$found_dir" != "X"; then
10170 break
10172 done
10174 if test "X$found_dir" != "X"; then
10175 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10176 if test "X$found_so" != "X"; then
10177 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10178 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10179 else
10180 haveit=
10181 for x in $ltrpathdirs; do
10182 if test "X$x" = "X$found_dir"; then
10183 haveit=yes
10184 break
10186 done
10187 if test -z "$haveit"; then
10188 ltrpathdirs="$ltrpathdirs $found_dir"
10190 if test "$hardcode_direct" = yes; then
10191 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10192 else
10193 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10194 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10195 haveit=
10196 for x in $rpathdirs; do
10197 if test "X$x" = "X$found_dir"; then
10198 haveit=yes
10199 break
10201 done
10202 if test -z "$haveit"; then
10203 rpathdirs="$rpathdirs $found_dir"
10205 else
10206 haveit=
10207 for x in $LDFLAGS $LIBICONV; do
10209 acl_save_prefix="$prefix"
10210 prefix="$acl_final_prefix"
10211 acl_save_exec_prefix="$exec_prefix"
10212 exec_prefix="$acl_final_exec_prefix"
10213 eval x=\"$x\"
10214 exec_prefix="$acl_save_exec_prefix"
10215 prefix="$acl_save_prefix"
10217 if test "X$x" = "X-L$found_dir"; then
10218 haveit=yes
10219 break
10221 done
10222 if test -z "$haveit"; then
10223 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10225 if test "$hardcode_minus_L" != no; then
10226 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10227 else
10228 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10233 else
10234 if test "X$found_a" != "X"; then
10235 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10236 else
10237 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10240 additional_includedir=
10241 case "$found_dir" in
10242 */lib | */lib/)
10243 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10244 additional_includedir="$basedir/include"
10246 esac
10247 if test "X$additional_includedir" != "X"; then
10248 if test "X$additional_includedir" != "X/usr/include"; then
10249 haveit=
10250 if test "X$additional_includedir" = "X/usr/local/include"; then
10251 if test -n "$GCC"; then
10252 case $host_os in
10253 linux*) haveit=yes;;
10254 esac
10257 if test -z "$haveit"; then
10258 for x in $CPPFLAGS $INCICONV; do
10260 acl_save_prefix="$prefix"
10261 prefix="$acl_final_prefix"
10262 acl_save_exec_prefix="$exec_prefix"
10263 exec_prefix="$acl_final_exec_prefix"
10264 eval x=\"$x\"
10265 exec_prefix="$acl_save_exec_prefix"
10266 prefix="$acl_save_prefix"
10268 if test "X$x" = "X-I$additional_includedir"; then
10269 haveit=yes
10270 break
10272 done
10273 if test -z "$haveit"; then
10274 if test -d "$additional_includedir"; then
10275 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10281 if test -n "$found_la"; then
10282 save_libdir="$libdir"
10283 case "$found_la" in
10284 */* | *\\*) . "$found_la" ;;
10285 *) . "./$found_la" ;;
10286 esac
10287 libdir="$save_libdir"
10288 for dep in $dependency_libs; do
10289 case "$dep" in
10290 -L*)
10291 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10292 if test "X$additional_libdir" != "X/usr/lib"; then
10293 haveit=
10294 if test "X$additional_libdir" = "X/usr/local/lib"; then
10295 if test -n "$GCC"; then
10296 case $host_os in
10297 linux*) haveit=yes;;
10298 esac
10301 if test -z "$haveit"; then
10302 haveit=
10303 for x in $LDFLAGS $LIBICONV; do
10305 acl_save_prefix="$prefix"
10306 prefix="$acl_final_prefix"
10307 acl_save_exec_prefix="$exec_prefix"
10308 exec_prefix="$acl_final_exec_prefix"
10309 eval x=\"$x\"
10310 exec_prefix="$acl_save_exec_prefix"
10311 prefix="$acl_save_prefix"
10313 if test "X$x" = "X-L$additional_libdir"; then
10314 haveit=yes
10315 break
10317 done
10318 if test -z "$haveit"; then
10319 if test -d "$additional_libdir"; then
10320 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10323 haveit=
10324 for x in $LDFLAGS $LTLIBICONV; do
10326 acl_save_prefix="$prefix"
10327 prefix="$acl_final_prefix"
10328 acl_save_exec_prefix="$exec_prefix"
10329 exec_prefix="$acl_final_exec_prefix"
10330 eval x=\"$x\"
10331 exec_prefix="$acl_save_exec_prefix"
10332 prefix="$acl_save_prefix"
10334 if test "X$x" = "X-L$additional_libdir"; then
10335 haveit=yes
10336 break
10338 done
10339 if test -z "$haveit"; then
10340 if test -d "$additional_libdir"; then
10341 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10347 -R*)
10348 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10349 if test "$enable_rpath" != no; then
10350 haveit=
10351 for x in $rpathdirs; do
10352 if test "X$x" = "X$dir"; then
10353 haveit=yes
10354 break
10356 done
10357 if test -z "$haveit"; then
10358 rpathdirs="$rpathdirs $dir"
10360 haveit=
10361 for x in $ltrpathdirs; do
10362 if test "X$x" = "X$dir"; then
10363 haveit=yes
10364 break
10366 done
10367 if test -z "$haveit"; then
10368 ltrpathdirs="$ltrpathdirs $dir"
10372 -l*)
10373 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10375 *.la)
10376 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10379 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10380 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10382 esac
10383 done
10385 else
10386 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10387 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10391 done
10392 done
10393 if test "X$rpathdirs" != "X"; then
10394 if test -n "$hardcode_libdir_separator"; then
10395 alldirs=
10396 for found_dir in $rpathdirs; do
10397 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10398 done
10399 acl_save_libdir="$libdir"
10400 libdir="$alldirs"
10401 eval flag=\"$hardcode_libdir_flag_spec\"
10402 libdir="$acl_save_libdir"
10403 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10404 else
10405 for found_dir in $rpathdirs; do
10406 acl_save_libdir="$libdir"
10407 libdir="$found_dir"
10408 eval flag=\"$hardcode_libdir_flag_spec\"
10409 libdir="$acl_save_libdir"
10410 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10411 done
10414 if test "X$ltrpathdirs" != "X"; then
10415 for found_dir in $ltrpathdirs; do
10416 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10417 done
10426 am_save_CPPFLAGS="$CPPFLAGS"
10428 for element in $INCICONV; do
10429 haveit=
10430 for x in $CPPFLAGS; do
10432 acl_save_prefix="$prefix"
10433 prefix="$acl_final_prefix"
10434 acl_save_exec_prefix="$exec_prefix"
10435 exec_prefix="$acl_final_exec_prefix"
10436 eval x=\"$x\"
10437 exec_prefix="$acl_save_exec_prefix"
10438 prefix="$acl_save_prefix"
10440 if test "X$x" = "X$element"; then
10441 haveit=yes
10442 break
10444 done
10445 if test -z "$haveit"; then
10446 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10448 done
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10452 $as_echo_n "checking for iconv... " >&6; }
10453 if test "${am_cv_func_iconv+set}" = set; then :
10454 $as_echo_n "(cached) " >&6
10455 else
10457 am_cv_func_iconv="no, consider installing GNU libiconv"
10458 am_cv_lib_iconv=no
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10461 #include <stdlib.h>
10462 #include <iconv.h>
10464 main ()
10466 iconv_t cd = iconv_open("","");
10467 iconv(cd,NULL,NULL,NULL,NULL);
10468 iconv_close(cd);
10470 return 0;
10472 _ACEOF
10473 if ac_fn_cxx_try_link "$LINENO"; then :
10474 am_cv_func_iconv=yes
10476 rm -f core conftest.err conftest.$ac_objext \
10477 conftest$ac_exeext conftest.$ac_ext
10478 if test "$am_cv_func_iconv" != yes; then
10479 am_save_LIBS="$LIBS"
10480 LIBS="$LIBS $LIBICONV"
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10483 #include <stdlib.h>
10484 #include <iconv.h>
10486 main ()
10488 iconv_t cd = iconv_open("","");
10489 iconv(cd,NULL,NULL,NULL,NULL);
10490 iconv_close(cd);
10492 return 0;
10494 _ACEOF
10495 if ac_fn_cxx_try_link "$LINENO"; then :
10496 am_cv_lib_iconv=yes
10497 am_cv_func_iconv=yes
10499 rm -f core conftest.err conftest.$ac_objext \
10500 conftest$ac_exeext conftest.$ac_ext
10501 LIBS="$am_save_LIBS"
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10506 $as_echo "$am_cv_func_iconv" >&6; }
10507 if test "$am_cv_func_iconv" = yes; then
10509 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10512 if test "$am_cv_lib_iconv" = yes; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10514 $as_echo_n "checking how to link with libiconv... " >&6; }
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10516 $as_echo "$LIBICONV" >&6; }
10517 else
10518 CPPFLAGS="$am_save_CPPFLAGS"
10519 LIBICONV=
10520 LTLIBICONV=
10525 if test "$am_cv_func_iconv" = yes; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10527 $as_echo_n "checking for iconv declaration... " >&6; }
10528 if test "${am_cv_proto_iconv+set}" = set; then :
10529 $as_echo_n "(cached) " >&6
10530 else
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h. */
10535 #include <stdlib.h>
10536 #include <iconv.h>
10537 extern
10538 #ifdef __cplusplus
10540 #endif
10541 #if defined(__STDC__) || defined(__cplusplus)
10542 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10543 #else
10544 size_t iconv();
10545 #endif
10548 main ()
10552 return 0;
10554 _ACEOF
10555 if ac_fn_cxx_try_compile "$LINENO"; then :
10556 am_cv_proto_iconv_arg1=""
10557 else
10558 am_cv_proto_iconv_arg1="const"
10560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10561 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);"
10564 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10566 }$am_cv_proto_iconv" >&5
10567 $as_echo "${ac_t:-
10568 }$am_cv_proto_iconv" >&6; }
10570 cat >>confdefs.h <<_ACEOF
10571 #define ICONV_CONST $am_cv_proto_iconv_arg1
10572 _ACEOF
10576 ac_ext=c
10577 ac_cpp='$CPP $CPPFLAGS'
10578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10583 # Until we have in-tree GNU iconv:
10584 LIBICONV_DEP=
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10589 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10590 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10591 $as_echo_n "(cached) " >&6
10592 else
10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h. */
10595 #include <locale.h>
10597 main ()
10599 return LC_MESSAGES
10601 return 0;
10603 _ACEOF
10604 if ac_fn_c_try_link "$LINENO"; then :
10605 am_cv_val_LC_MESSAGES=yes
10606 else
10607 am_cv_val_LC_MESSAGES=no
10609 rm -f core conftest.err conftest.$ac_objext \
10610 conftest$ac_exeext conftest.$ac_ext
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10613 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10614 if test $am_cv_val_LC_MESSAGES = yes; then
10616 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10623 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10624 if test "${am_cv_langinfo_codeset+set}" = set; then :
10625 $as_echo_n "(cached) " >&6
10626 else
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10629 #include <langinfo.h>
10631 main ()
10633 char* cs = nl_langinfo(CODESET);
10635 return 0;
10637 _ACEOF
10638 if ac_fn_c_try_link "$LINENO"; then :
10639 am_cv_langinfo_codeset=yes
10640 else
10641 am_cv_langinfo_codeset=no
10643 rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10648 $as_echo "$am_cv_langinfo_codeset" >&6; }
10649 if test $am_cv_langinfo_codeset = yes; then
10651 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10656 # We will need to find libiberty.h and ansidecl.h
10657 saved_CFLAGS="$CFLAGS"
10658 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10659 saved_CXXFLAGS="$CXXFLAGS"
10660 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10661 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10662 strsignal strstr stpcpy strverscmp \
10663 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10664 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
10666 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10668 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10669 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10674 #undef $ac_tr_decl
10675 #define $ac_tr_decl 1
10677 #include "ansidecl.h"
10678 #include "system.h"
10681 main ()
10683 #ifndef $ac_func
10684 char *(*pfn) = (char *(*)) $ac_func ;
10685 #endif
10687 return 0;
10689 _ACEOF
10690 if ac_fn_c_try_compile "$LINENO"; then :
10691 eval "gcc_cv_have_decl_$ac_func=yes"
10692 else
10693 eval "gcc_cv_have_decl_$ac_func=no"
10695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10698 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10700 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10701 #define $ac_tr_decl 1
10702 _ACEOF
10704 else
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10707 #define $ac_tr_decl 0
10708 _ACEOF
10712 done
10715 for ac_func in getrlimit setrlimit getrusage
10717 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10719 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10720 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10721 $as_echo_n "(cached) " >&6
10722 else
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10725 #undef $ac_tr_decl
10726 #define $ac_tr_decl 1
10728 #include "ansidecl.h"
10729 #include "system.h"
10730 #ifdef HAVE_SYS_RESOURCE_H
10731 #include <sys/resource.h>
10732 #endif
10736 main ()
10738 #ifndef $ac_func
10739 char *(*pfn) = (char *(*)) $ac_func ;
10740 #endif
10742 return 0;
10744 _ACEOF
10745 if ac_fn_c_try_compile "$LINENO"; then :
10746 eval "gcc_cv_have_decl_$ac_func=yes"
10747 else
10748 eval "gcc_cv_have_decl_$ac_func=no"
10750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10755 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10756 #define $ac_tr_decl 1
10757 _ACEOF
10759 else
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10762 #define $ac_tr_decl 0
10763 _ACEOF
10767 done
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10773 #include "ansidecl.h"
10774 #include "system.h"
10775 #ifdef HAVE_SYS_RESOURCE_H
10776 #include <sys/resource.h>
10777 #endif
10780 main ()
10782 rlim_t l = 0;
10784 return 0;
10786 _ACEOF
10787 if ac_fn_c_try_compile "$LINENO"; then :
10789 else
10791 $as_echo "#define rlim_t long" >>confdefs.h
10794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10796 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10797 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10798 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10799 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10800 for ac_func in ldgetname
10802 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10804 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10805 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10806 $as_echo_n "(cached) " >&6
10807 else
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10810 #undef $ac_tr_decl
10811 #define $ac_tr_decl 1
10813 #include "ansidecl.h"
10814 #include "system.h"
10815 #ifdef HAVE_LDFCN_H
10816 #undef FREAD
10817 #undef FWRITE
10818 #include <ldfcn.h>
10819 #endif
10823 main ()
10825 #ifndef $ac_func
10826 char *(*pfn) = (char *(*)) $ac_func ;
10827 #endif
10829 return 0;
10831 _ACEOF
10832 if ac_fn_c_try_compile "$LINENO"; then :
10833 eval "gcc_cv_have_decl_$ac_func=yes"
10834 else
10835 eval "gcc_cv_have_decl_$ac_func=no"
10837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10840 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10842 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10843 #define $ac_tr_decl 1
10844 _ACEOF
10846 else
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10849 #define $ac_tr_decl 0
10850 _ACEOF
10854 done
10857 for ac_func in times
10859 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10861 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10862 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10863 $as_echo_n "(cached) " >&6
10864 else
10865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10866 /* end confdefs.h. */
10867 #undef $ac_tr_decl
10868 #define $ac_tr_decl 1
10870 #include "ansidecl.h"
10871 #include "system.h"
10872 #ifdef HAVE_SYS_TIMES_H
10873 #include <sys/times.h>
10874 #endif
10878 main ()
10880 #ifndef $ac_func
10881 char *(*pfn) = (char *(*)) $ac_func ;
10882 #endif
10884 return 0;
10886 _ACEOF
10887 if ac_fn_c_try_compile "$LINENO"; then :
10888 eval "gcc_cv_have_decl_$ac_func=yes"
10889 else
10890 eval "gcc_cv_have_decl_$ac_func=no"
10892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10897 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10898 #define $ac_tr_decl 1
10899 _ACEOF
10901 else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10904 #define $ac_tr_decl 0
10905 _ACEOF
10909 done
10912 for ac_func in sigaltstack
10914 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10916 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10917 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10918 $as_echo_n "(cached) " >&6
10919 else
10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921 /* end confdefs.h. */
10922 #undef $ac_tr_decl
10923 #define $ac_tr_decl 1
10925 #include "ansidecl.h"
10926 #include "system.h"
10927 #include <signal.h>
10931 main ()
10933 #ifndef $ac_func
10934 char *(*pfn) = (char *(*)) $ac_func ;
10935 #endif
10937 return 0;
10939 _ACEOF
10940 if ac_fn_c_try_compile "$LINENO"; then :
10941 eval "gcc_cv_have_decl_$ac_func=yes"
10942 else
10943 eval "gcc_cv_have_decl_$ac_func=no"
10945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10948 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10950 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10951 #define $ac_tr_decl 1
10952 _ACEOF
10954 else
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10956 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10957 #define $ac_tr_decl 0
10958 _ACEOF
10962 done
10965 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10966 # prototype.
10967 ac_ext=cpp
10968 ac_cpp='$CXXCPP $CPPFLAGS'
10969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10973 for ac_func in madvise
10975 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10977 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10978 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10979 $as_echo_n "(cached) " >&6
10980 else
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10983 #undef $ac_tr_decl
10984 #define $ac_tr_decl 1
10986 #include "ansidecl.h"
10987 #include "system.h"
10991 main ()
10993 #ifndef $ac_func
10994 char *(*pfn) = (char *(*)) $ac_func ;
10995 #endif
10997 return 0;
10999 _ACEOF
11000 if ac_fn_cxx_try_compile "$LINENO"; then :
11001 eval "gcc_cv_have_decl_$ac_func=yes"
11002 else
11003 eval "gcc_cv_have_decl_$ac_func=no"
11005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11008 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11010 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11011 #define $ac_tr_decl 1
11012 _ACEOF
11014 else
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11017 #define $ac_tr_decl 0
11018 _ACEOF
11022 done
11024 ac_ext=c
11025 ac_cpp='$CPP $CPPFLAGS'
11026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11031 # More time-related stuff.
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11033 $as_echo_n "checking for struct tms... " >&6; }
11034 if test "${ac_cv_struct_tms+set}" = set; then :
11035 $as_echo_n "(cached) " >&6
11036 else
11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11041 #include "ansidecl.h"
11042 #include "system.h"
11043 #ifdef HAVE_SYS_TIMES_H
11044 #include <sys/times.h>
11045 #endif
11048 main ()
11050 struct tms tms;
11052 return 0;
11054 _ACEOF
11055 if ac_fn_c_try_compile "$LINENO"; then :
11056 ac_cv_struct_tms=yes
11057 else
11058 ac_cv_struct_tms=no
11060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11063 $as_echo "$ac_cv_struct_tms" >&6; }
11064 if test $ac_cv_struct_tms = yes; then
11066 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11070 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11071 # revisit after autoconf 2.50.
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11073 $as_echo_n "checking for clock_t... " >&6; }
11074 if test "${gcc_cv_type_clock_t+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11081 #include "ansidecl.h"
11082 #include "system.h"
11085 main ()
11087 clock_t x;
11089 return 0;
11091 _ACEOF
11092 if ac_fn_c_try_compile "$LINENO"; then :
11093 gcc_cv_type_clock_t=yes
11094 else
11095 gcc_cv_type_clock_t=no
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11100 $as_echo "$gcc_cv_type_clock_t" >&6; }
11101 if test $gcc_cv_type_clock_t = yes; then
11103 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11107 # Check if F_SETLKW is supported by fcntl.
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11109 $as_echo_n "checking for F_SETLKW... " >&6; }
11110 if test "${ac_cv_f_setlkw+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h. */
11117 #include <fcntl.h>
11119 main ()
11122 struct flock fl;
11123 fl.l_whence = 0;
11124 fl.l_start = 0;
11125 fl.l_len = 0;
11126 fl.l_pid = 0;
11127 return fcntl (1, F_SETLKW, &fl);
11129 return 0;
11131 _ACEOF
11132 if ac_fn_c_try_compile "$LINENO"; then :
11133 ac_cv_f_setlkw=yes
11134 else
11135 ac_cv_f_setlkw=no
11137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11140 $as_echo "$ac_cv_f_setlkw" >&6; }
11141 if test $ac_cv_f_setlkw = yes; then
11143 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11147 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11148 CFLAGS="$saved_CFLAGS"
11149 CXXFLAGS="$saved_CXXFLAGS"
11151 # mkdir takes a single argument on some systems.
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11153 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11154 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11160 #include <sys/types.h>
11161 #ifdef HAVE_SYS_STAT_H
11162 # include <sys/stat.h>
11163 #endif
11164 #ifdef HAVE_UNISTD_H
11165 # include <unistd.h>
11166 #endif
11167 #ifdef HAVE_DIRECT_H
11168 # include <direct.h>
11169 #endif
11171 main ()
11173 mkdir ("foo", 0);
11175 return 0;
11177 _ACEOF
11178 if ac_fn_c_try_compile "$LINENO"; then :
11179 gcc_cv_mkdir_takes_one_arg=no
11180 else
11181 gcc_cv_mkdir_takes_one_arg=yes
11183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11186 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11187 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11189 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11194 # File extensions
11195 manext='.1'
11196 objext='.o'
11200 # With Setjmp/Longjmp based exception handling.
11201 # Check whether --enable-sjlj-exceptions was given.
11202 if test "${enable_sjlj_exceptions+set}" = set; then :
11203 enableval=$enable_sjlj_exceptions; case $target in
11204 *-*-hpux10*)
11205 if test $enableval != yes; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11207 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11208 enableval=yes
11211 esac
11212 force_sjlj_exceptions=yes
11213 else
11214 case $target in
11215 *-*-hpux10*)
11216 force_sjlj_exceptions=yes
11217 enableval=yes
11220 force_sjlj_exceptions=no
11222 esac
11225 if test $force_sjlj_exceptions = yes; then
11226 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11228 cat >>confdefs.h <<_ACEOF
11229 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11230 _ACEOF
11234 # --------------------------------------------------------
11235 # Build, host, and target specific configuration fragments
11236 # --------------------------------------------------------
11238 # Collect build-machine-specific information.
11239 . ${srcdir}/config.build
11241 # Collect host-machine-specific information.
11242 . ${srcdir}/config.host
11244 target_gtfiles=
11246 # Collect target-machine-specific information.
11247 . ${srcdir}/config.gcc
11249 extra_objs="${host_extra_objs} ${extra_objs}"
11250 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11252 # Default the target-machine variables that were not explicitly set.
11253 if test x"$tm_file" = x
11254 then tm_file=$cpu_type/$cpu_type.h; fi
11256 if test x"$extra_headers" = x
11257 then extra_headers=; fi
11259 if test x$md_file = x
11260 then md_file=$cpu_type/$cpu_type.md; fi
11262 if test x$out_file = x
11263 then out_file=$cpu_type/$cpu_type.c; fi
11265 if test x"$tmake_file" = x
11266 then tmake_file=$cpu_type/t-$cpu_type
11269 # Support --enable-initfini-array.
11270 if test x$enable_initfini_array != xno; then
11271 tm_file="${tm_file} initfini-array.h"
11274 if test x"$dwarf2" = xyes
11275 then tm_file="$tm_file tm-dwarf2.h"
11278 # Say what files are being used for the output code and MD file.
11279 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11280 echo "Using \`$srcdir/config/$md_file' as machine description file."
11282 # If any of the xm_file variables contain nonexistent files, warn
11283 # about them and drop them.
11286 for x in $build_xm_file; do
11287 if test -f $srcdir/config/$x
11288 then bx="$bx $x"
11289 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11290 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11292 done
11293 build_xm_file="$bx"
11296 for x in $host_xm_file; do
11297 if test -f $srcdir/config/$x
11298 then hx="$hx $x"
11299 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11300 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11302 done
11303 host_xm_file="$hx"
11306 for x in $xm_file; do
11307 if test -f $srcdir/config/$x
11308 then tx="$tx $x"
11309 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11310 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11312 done
11313 xm_file="$tx"
11315 count=a
11316 for f in $tm_file; do
11317 count=${count}x
11318 done
11319 if test $count = ax; then
11320 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11321 else
11322 echo "Using the following target machine macro files:"
11323 for f in $tm_file; do
11324 echo " $srcdir/config/$f"
11325 done
11328 if test x$need_64bit_hwint = xyes; then
11330 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11334 if test x$use_long_long_for_widest_fast_int = xyes; then
11336 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11340 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11342 cat >>confdefs.h <<_ACEOF
11343 #define HAVE_GNU_LD $gnu_ld_bool
11344 _ACEOF
11347 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11349 cat >>confdefs.h <<_ACEOF
11350 #define HAVE_GNU_AS $gnu_as_bool
11351 _ACEOF
11354 count=a
11355 for f in $host_xm_file; do
11356 count=${count}x
11357 done
11358 if test $count = a; then
11360 elif test $count = ax; then
11361 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11362 else
11363 echo "Using the following host machine macro files:"
11364 for f in $host_xm_file; do
11365 echo " $srcdir/config/$f"
11366 done
11368 echo "Using ${out_host_hook_obj} for host machine hooks."
11370 if test "$host_xm_file" != "$build_xm_file"; then
11371 count=a
11372 for f in $build_xm_file; do
11373 count=${count}x
11374 done
11375 if test $count = a; then
11377 elif test $count = ax; then
11378 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11379 else
11380 echo "Using the following build machine macro files:"
11381 for f in $build_xm_file; do
11382 echo " $srcdir/config/$f"
11383 done
11387 if test -n "$configured_native_system_header_dir"; then
11388 native_system_header_dir=$configured_native_system_header_dir
11390 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11393 case ${host} in
11394 powerpc*-*-darwin*)
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11396 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11397 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11403 #include <sys/cdefs.h>
11404 #include <sys/signal.h>
11405 #include <ucontext.h>
11406 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11408 _ACEOF
11409 if ac_fn_c_try_compile "$LINENO"; then :
11410 gcc_cv_mcontext_underscores=no
11411 else
11412 gcc_cv_mcontext_underscores=yes
11414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11417 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11418 if test $gcc_cv_mcontext_underscores = yes; then
11420 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11424 esac
11426 # ---------
11427 # Threading
11428 # ---------
11430 # Check if a valid thread package
11431 case ${enable_threads} in
11432 "" | no)
11433 # No threads
11434 target_thread_file='single'
11436 yes)
11437 # default
11438 target_thread_file='single'
11440 aix | dce | lynx | mipssde | posix | rtems | \
11441 single | tpf | vxworks | win32)
11442 target_thread_file=${enable_threads}
11445 echo "${enable_threads} is an unknown thread package" 1>&2
11446 exit 1
11448 esac
11450 if test x${thread_file} = x; then
11451 # No thread file set by target-specific clauses in config.gcc,
11452 # so use file chosen by default logic above
11453 thread_file=${target_thread_file}
11456 # --------
11457 # UNSORTED
11458 # --------
11460 use_cxa_atexit=no
11461 if test x$enable___cxa_atexit = xyes || \
11462 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11463 if test x$host = x$target; then
11464 case $host in
11465 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11466 # keyed to flag_use_cxa_atexit
11467 *-*-mingw32*)
11468 use_cxa_atexit=yes
11470 powerpc-ibm-aix*)
11471 use_cxa_atexit=yes
11474 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11475 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11476 use_cxa_atexit=yes
11477 else
11478 echo "__cxa_atexit can't be enabled on this target"
11482 esac
11483 else
11484 # We can't check for __cxa_atexit when building a cross, so assume
11485 # it is available
11486 use_cxa_atexit=yes
11488 if test x$use_cxa_atexit = xyes; then
11490 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11495 # Look for a file containing extra machine modes.
11496 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11497 extra_modes_file='$(srcdir)'/config/${extra_modes}
11500 cat >>confdefs.h <<_ACEOF
11501 #define EXTRA_MODES_FILE "config/$extra_modes"
11502 _ACEOF
11506 # Convert extra_options into a form suitable for Makefile use.
11507 extra_opt_files=
11508 all_opt_files=
11509 for f in $extra_options; do
11510 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11511 all_opt_files="$all_opt_files $srcdir/config/$f"
11512 done
11515 # auto-host.h is the file containing items generated by autoconf and is
11516 # the first file included by config.h.
11517 # If host=build, it is correct to have bconfig include auto-host.h
11518 # as well. If host!=build, we are in error and need to do more
11519 # work to find out the build config parameters.
11520 if test x$host = x$build
11521 then
11522 build_auto=auto-host.h
11523 else
11524 # We create a subdir, then run autoconf in the subdir.
11525 # To prevent recursion we set host and build for the new
11526 # invocation of configure to the build for this invocation
11527 # of configure.
11528 tempdir=build.$$
11529 rm -rf $tempdir
11530 mkdir $tempdir
11531 cd $tempdir
11532 case ${srcdir} in
11533 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11534 *) realsrcdir=../${srcdir};;
11535 esac
11536 saved_CFLAGS="${CFLAGS}"
11537 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11538 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11539 ${realsrcdir}/configure \
11540 --enable-languages=${enable_languages-all} \
11541 --target=$target_alias --host=$build_alias --build=$build_alias
11542 CFLAGS="${saved_CFLAGS}"
11544 # We just finished tests for the build machine, so rename
11545 # the file auto-build.h in the gcc directory.
11546 mv auto-host.h ../auto-build.h
11547 cd ..
11548 rm -rf $tempdir
11549 build_auto=auto-build.h
11553 tm_file="${tm_file} defaults.h"
11554 tm_p_file="${tm_p_file} tm-preds.h"
11555 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11556 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11557 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11558 # put this back in temporarily.
11559 xm_file="auto-host.h ansidecl.h ${xm_file}"
11561 # --------
11562 # UNSORTED
11563 # --------
11565 # Compile in configure arguments.
11566 if test -f configargs.h ; then
11567 # Being re-configured.
11568 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11569 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11570 else
11571 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11574 # Double all backslashes and backslash all quotes to turn
11575 # gcc_config_arguments into a C string.
11576 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11577 $gcc_config_arguments
11579 gcc_config_arguments_str=`cat conftest.out`
11580 rm -f conftest.out
11582 cat > configargs.h <<EOF
11583 /* Generated automatically. */
11584 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11585 static const char thread_model[] = "$thread_file";
11587 static const struct {
11588 const char *name, *value;
11589 } configure_default_options[] = $configure_default_options;
11592 gcc_BASEVER=`cat $srcdir/BASE-VER`
11593 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11594 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11595 if test -f $srcdir/REVISION ; then
11596 gcc_REVISION=`cat $srcdir/REVISION`
11597 else
11598 gcc_REVISION=""
11600 cat > plugin-version.h <<EOF
11601 #include "configargs.h"
11603 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11604 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11605 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11606 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11608 static char basever[] = "$gcc_BASEVER";
11609 static char datestamp[] = "$gcc_DATESTAMP";
11610 static char devphase[] = "$gcc_DEVPHASE";
11611 static char revision[] = "$gcc_REVISION";
11613 /* FIXME plugins: We should make the version information more precise.
11614 One way to do is to add a checksum. */
11616 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11617 devphase, revision,
11618 configuration_arguments};
11621 # Internationalization
11622 # If we haven't got the data from the intl directory,
11623 # assume NLS is disabled.
11624 USE_NLS=no
11625 LIBINTL=
11626 LIBINTL_DEP=
11627 INCINTL=
11628 XGETTEXT=
11629 GMSGFMT=
11630 POSUB=
11632 if test -f ../intl/config.intl; then
11633 . ../intl/config.intl
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11636 $as_echo_n "checking whether NLS is requested... " >&6; }
11637 if test x"$USE_NLS" != xyes; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11640 else
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11642 $as_echo "yes" >&6; }
11644 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11648 $as_echo_n "checking for catalogs to be installed... " >&6; }
11649 # Look for .po and .gmo files in the source directory.
11650 CATALOGS=
11651 XLINGUAS=
11652 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11653 # If there aren't any .gmo files the shell will give us the
11654 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11655 # weeded out.
11656 case "$cat" in *\**)
11657 continue;;
11658 esac
11659 # The quadruple backslash is collapsed to a double backslash
11660 # by the backticks, then collapsed again by the double quotes,
11661 # leaving us with one backslash in the sed expression (right
11662 # before the dot that mustn't act as a wildcard).
11663 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11664 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11665 # The user is allowed to set LINGUAS to a list of languages to
11666 # install catalogs for. If it's empty that means "all of them."
11667 if test "x$LINGUAS" = x; then
11668 CATALOGS="$CATALOGS $cat"
11669 XLINGUAS="$XLINGUAS $lang"
11670 else
11671 case "$LINGUAS" in *$lang*)
11672 CATALOGS="$CATALOGS $cat"
11673 XLINGUAS="$XLINGUAS $lang"
11675 esac
11677 done
11678 LINGUAS="$XLINGUAS"
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11680 $as_echo "$LINGUAS" >&6; }
11683 DATADIRNAME=share
11685 INSTOBJEXT=.mo
11687 GENCAT=gencat
11689 CATOBJEXT=.gmo
11693 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11694 # -liconv on the link line twice.
11695 case "$LIBINTL" in *$LIBICONV*)
11696 LIBICONV= ;;
11697 esac
11699 # Check whether --enable-secureplt was given.
11700 if test "${enable_secureplt+set}" = set; then :
11701 enableval=$enable_secureplt;
11705 # Check whether --enable-leading-mingw64-underscores was given.
11706 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11707 enableval=$enable_leading_mingw64_underscores;
11710 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11712 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11716 # Check whether --enable-cld was given.
11717 if test "${enable_cld+set}" = set; then :
11718 enableval=$enable_cld;
11719 else
11720 enable_cld=no
11724 # Check whether --enable-frame-pointer was given.
11725 if test "${enable_frame_pointer+set}" = set; then :
11726 enableval=$enable_frame_pointer;
11727 else
11729 case $target_os in
11730 linux* | darwin[8912]*)
11731 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11732 # DWARF2.
11733 enable_frame_pointer=no
11736 enable_frame_pointer=yes
11738 esac
11743 # Windows32 Registry support for specifying GCC installation paths.
11744 # Check whether --enable-win32-registry was given.
11745 if test "${enable_win32_registry+set}" = set; then :
11746 enableval=$enable_win32_registry;
11750 case $host_os in
11751 win32 | pe | cygwin* | mingw32* | uwin*)
11752 if test "x$enable_win32_registry" != xno; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11754 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11755 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 ac_func_search_save_LIBS=$LIBS
11759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h. */
11762 /* Override any GCC internal prototype to avoid an error.
11763 Use char because int might match the return type of a GCC
11764 builtin and then its argument prototype would still apply. */
11765 #ifdef __cplusplus
11766 extern "C"
11767 #endif
11768 char RegOpenKeyExA ();
11770 main ()
11772 return RegOpenKeyExA ();
11774 return 0;
11776 _ACEOF
11777 for ac_lib in '' advapi32; do
11778 if test -z "$ac_lib"; then
11779 ac_res="none required"
11780 else
11781 ac_res=-l$ac_lib
11782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11784 if ac_fn_c_try_link "$LINENO"; then :
11785 ac_cv_search_RegOpenKeyExA=$ac_res
11787 rm -f core conftest.err conftest.$ac_objext \
11788 conftest$ac_exeext
11789 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11790 break
11792 done
11793 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11795 else
11796 ac_cv_search_RegOpenKeyExA=no
11798 rm conftest.$ac_ext
11799 LIBS=$ac_func_search_save_LIBS
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11802 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11803 ac_res=$ac_cv_search_RegOpenKeyExA
11804 if test "$ac_res" != no; then :
11805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11807 else
11808 enable_win32_registry=no
11813 if test "x$enable_win32_registry" != xno; then
11815 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11818 if test "x$enable_win32_registry" != xyes \
11819 && test "x$enable_win32_registry" != x; then
11821 cat >>confdefs.h <<_ACEOF
11822 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11823 _ACEOF
11828 esac
11830 # Get an absolute path to the GCC top-level source directory
11831 holddir=`${PWDCMD-pwd}`
11832 cd $srcdir
11833 topdir=`${PWDCMD-pwd}`
11834 cd $holddir
11836 # Conditionalize the makefile for this host machine.
11837 xmake_file=
11838 for f in ${host_xmake_file}
11840 if test -f ${srcdir}/config/$f
11841 then
11842 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11844 done
11846 # Conditionalize the makefile for this target machine.
11847 tmake_file_=
11848 for f in ${tmake_file}
11850 if test -f ${srcdir}/config/$f
11851 then
11852 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11854 done
11855 tmake_file="${tmake_file_}"
11857 out_object_file=`basename $out_file .c`.o
11858 common_out_object_file=`basename $common_out_file .c`.o
11860 tm_file_list="options.h"
11861 tm_include_list="options.h insn-constants.h"
11862 for f in $tm_file; do
11863 case $f in
11864 ./* )
11865 f=`echo $f | sed 's/^..//'`
11866 tm_file_list="${tm_file_list} $f"
11867 tm_include_list="${tm_include_list} $f"
11869 defaults.h )
11870 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11871 tm_include_list="${tm_include_list} $f"
11874 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11875 tm_include_list="${tm_include_list} config/$f"
11877 esac
11878 done
11880 tm_p_file_list=
11881 tm_p_include_list=
11882 for f in $tm_p_file; do
11883 case $f in
11884 tm-preds.h )
11885 tm_p_file_list="${tm_p_file_list} $f"
11886 tm_p_include_list="${tm_p_include_list} $f"
11889 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11890 tm_p_include_list="${tm_p_include_list} config/$f"
11891 esac
11892 done
11894 xm_file_list=
11895 xm_include_list=
11896 for f in $xm_file; do
11897 case $f in
11898 ansidecl.h )
11899 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11900 xm_include_list="${xm_include_list} $f"
11902 auto-host.h )
11903 xm_file_list="${xm_file_list} $f"
11904 xm_include_list="${xm_include_list} $f"
11907 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11908 xm_include_list="${xm_include_list} config/$f"
11910 esac
11911 done
11913 host_xm_file_list=
11914 host_xm_include_list=
11915 for f in $host_xm_file; do
11916 case $f in
11917 ansidecl.h )
11918 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11919 host_xm_include_list="${host_xm_include_list} $f"
11921 auto-host.h )
11922 host_xm_file_list="${host_xm_file_list} $f"
11923 host_xm_include_list="${host_xm_include_list} $f"
11926 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11927 host_xm_include_list="${host_xm_include_list} config/$f"
11929 esac
11930 done
11932 build_xm_file_list=
11933 for f in $build_xm_file; do
11934 case $f in
11935 ansidecl.h )
11936 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11937 build_xm_include_list="${build_xm_include_list} $f"
11939 auto-build.h | auto-host.h )
11940 build_xm_file_list="${build_xm_file_list} $f"
11941 build_xm_include_list="${build_xm_include_list} $f"
11944 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11945 build_xm_include_list="${build_xm_include_list} config/$f"
11947 esac
11948 done
11950 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11951 # cross-compiler which does not use the native headers and libraries.
11952 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11953 CROSS=
11954 ALL=all.internal
11955 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11957 if test "x$with_build_sysroot" != x; then
11958 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11959 else
11960 # This value is used, even on a native system, because
11961 # CROSS_SYSTEM_HEADER_DIR is just
11962 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11963 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11966 if test x$host != x$target
11967 then
11968 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11969 ALL=all.cross
11970 SYSTEM_HEADER_DIR=$build_system_header_dir
11971 case "$host","$target" in
11972 # Darwin crosses can use the host system's libraries and headers,
11973 # because of the fat library support. Of course, it must be the
11974 # same version of Darwin on both sides. Allow the user to
11975 # just say --target=foo-darwin without a version number to mean
11976 # "the version on this system".
11977 *-*-darwin*,*-*-darwin*)
11978 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11979 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11980 if test $hostos = $targetos -o $targetos = darwin ; then
11981 CROSS=
11982 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11983 with_headers=yes
11987 i?86-*-*,x86_64-*-* \
11988 | powerpc*-*-*,powerpc64*-*-*)
11989 CROSS="$CROSS -DNATIVE_CROSS" ;;
11990 esac
11992 case $target in
11993 *-*-mingw*)
11994 if test "x$with_headers" = x; then
11995 with_headers=yes
12000 esac
12001 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12002 SYSTEM_HEADER_DIR=$build_system_header_dir
12005 # If this is a cross-compiler that does not
12006 # have its own set of headers then define
12007 # inhibit_libc
12009 # If this is using newlib, without having the headers available now,
12010 # then define inhibit_libc in LIBGCC2_CFLAGS.
12011 # This prevents libgcc2 from containing any code which requires libc
12012 # support.
12013 : ${inhibit_libc=false}
12014 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12015 test x$with_newlib = xyes ; } &&
12016 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12017 inhibit_libc=true
12021 # When building gcc with a cross-compiler, we need to adjust things so
12022 # that the generator programs are still built with the native compiler.
12023 # Also, we cannot run fixincludes.
12025 # These are the normal (build=host) settings:
12026 CC_FOR_BUILD='$(CC)'
12027 CXX_FOR_BUILD='$(CXX)'
12028 BUILD_CFLAGS='$(ALL_CFLAGS)'
12029 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12030 BUILD_LDFLAGS='$(LDFLAGS)'
12031 STMP_FIXINC=stmp-fixinc
12033 # And these apply if build != host, or we are generating coverage data
12034 if test x$build != x$host || test "x$coverage_flags" != x
12035 then
12036 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12037 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12040 # Expand extra_headers to include complete path.
12041 # This substitutes for lots of t-* files.
12042 extra_headers_list=
12043 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12044 for file in ${extra_headers} ; do
12045 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12046 done
12048 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12049 if test x"$use_gcc_tgmath" = xyes
12050 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12053 # Define collect2 in Makefile.
12054 case $host_can_use_collect2 in
12055 no) collect2= ;;
12056 *) collect2='collect2$(exeext)' ;;
12057 esac
12060 # Add a definition of USE_COLLECT2 if system wants one.
12061 case $use_collect2 in
12062 no) use_collect2= ;;
12063 "") ;;
12065 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12066 xm_defines="${xm_defines} USE_COLLECT2"
12067 case $host_can_use_collect2 in
12069 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12071 esac
12073 esac
12076 cat >>confdefs.h <<_ACEOF
12077 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12078 _ACEOF
12081 # ---------------------------
12082 # Assembler & linker features
12083 # ---------------------------
12085 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12086 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12087 # However when ld-new is first executed from the build tree, libtool will
12088 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12089 # to the build tree. While doing this we need to use the previous-stage
12090 # linker, or we have an infinite loop. The presence of a shell script as
12091 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12092 # the gcc/collect-ld script. So we need to know how libtool works, or
12093 # exec-tool will fail.
12096 case `pwd` in
12097 *\ * | *\ *)
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12099 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12100 esac
12104 macro_version='2.2.7a'
12105 macro_revision='1.3134'
12119 ltmain="$ac_aux_dir/ltmain.sh"
12121 # Backslashify metacharacters that are still active within
12122 # double-quoted strings.
12123 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12125 # Same as above, but do not quote variable references.
12126 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12128 # Sed substitution to delay expansion of an escaped shell variable in a
12129 # double_quote_subst'ed string.
12130 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12132 # Sed substitution to delay expansion of an escaped single quote.
12133 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12135 # Sed substitution to avoid accidental globbing in evaled expressions
12136 no_glob_subst='s/\*/\\\*/g'
12138 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12139 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12140 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12143 $as_echo_n "checking how to print strings... " >&6; }
12144 # Test print first, because it will be a builtin if present.
12145 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12146 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12147 ECHO='print -r --'
12148 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12149 ECHO='printf %s\n'
12150 else
12151 # Use this function as a fallback that always works.
12152 func_fallback_echo ()
12154 eval 'cat <<_LTECHO_EOF
12156 _LTECHO_EOF'
12158 ECHO='func_fallback_echo'
12161 # func_echo_all arg...
12162 # Invoke $ECHO with all args, space-separated.
12163 func_echo_all ()
12165 $ECHO ""
12168 case "$ECHO" in
12169 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12170 $as_echo "printf" >&6; } ;;
12171 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12172 $as_echo "print -r" >&6; } ;;
12173 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12174 $as_echo "cat" >&6; } ;;
12175 esac
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12191 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12192 if test "${ac_cv_path_SED+set}" = set; then :
12193 $as_echo_n "(cached) " >&6
12194 else
12195 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12196 for ac_i in 1 2 3 4 5 6 7; do
12197 ac_script="$ac_script$as_nl$ac_script"
12198 done
12199 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12200 { ac_script=; unset ac_script;}
12201 if test -z "$SED"; then
12202 ac_path_SED_found=false
12203 # Loop through the user's path and test for each of PROGNAME-LIST
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12207 IFS=$as_save_IFS
12208 test -z "$as_dir" && as_dir=.
12209 for ac_prog in sed gsed; do
12210 for ac_exec_ext in '' $ac_executable_extensions; do
12211 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12212 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12213 # Check for GNU ac_path_SED and select it if it is found.
12214 # Check for GNU $ac_path_SED
12215 case `"$ac_path_SED" --version 2>&1` in
12216 *GNU*)
12217 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12219 ac_count=0
12220 $as_echo_n 0123456789 >"conftest.in"
12221 while :
12223 cat "conftest.in" "conftest.in" >"conftest.tmp"
12224 mv "conftest.tmp" "conftest.in"
12225 cp "conftest.in" "conftest.nl"
12226 $as_echo '' >> "conftest.nl"
12227 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12229 as_fn_arith $ac_count + 1 && ac_count=$as_val
12230 if test $ac_count -gt ${ac_path_SED_max-0}; then
12231 # Best one so far, save it but keep looking for a better one
12232 ac_cv_path_SED="$ac_path_SED"
12233 ac_path_SED_max=$ac_count
12235 # 10*(2^10) chars as input seems more than enough
12236 test $ac_count -gt 10 && break
12237 done
12238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12239 esac
12241 $ac_path_SED_found && break 3
12242 done
12243 done
12244 done
12245 IFS=$as_save_IFS
12246 if test -z "$ac_cv_path_SED"; then
12247 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12249 else
12250 ac_cv_path_SED=$SED
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12255 $as_echo "$ac_cv_path_SED" >&6; }
12256 SED="$ac_cv_path_SED"
12257 rm -f conftest.sed
12259 test -z "$SED" && SED=sed
12260 Xsed="$SED -e 1s/^X//"
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12273 $as_echo_n "checking for fgrep... " >&6; }
12274 if test "${ac_cv_path_FGREP+set}" = set; then :
12275 $as_echo_n "(cached) " >&6
12276 else
12277 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12278 then ac_cv_path_FGREP="$GREP -F"
12279 else
12280 if test -z "$FGREP"; then
12281 ac_path_FGREP_found=false
12282 # Loop through the user's path and test for each of PROGNAME-LIST
12283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12286 IFS=$as_save_IFS
12287 test -z "$as_dir" && as_dir=.
12288 for ac_prog in fgrep; do
12289 for ac_exec_ext in '' $ac_executable_extensions; do
12290 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12291 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12292 # Check for GNU ac_path_FGREP and select it if it is found.
12293 # Check for GNU $ac_path_FGREP
12294 case `"$ac_path_FGREP" --version 2>&1` in
12295 *GNU*)
12296 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12298 ac_count=0
12299 $as_echo_n 0123456789 >"conftest.in"
12300 while :
12302 cat "conftest.in" "conftest.in" >"conftest.tmp"
12303 mv "conftest.tmp" "conftest.in"
12304 cp "conftest.in" "conftest.nl"
12305 $as_echo 'FGREP' >> "conftest.nl"
12306 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12308 as_fn_arith $ac_count + 1 && ac_count=$as_val
12309 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12310 # Best one so far, save it but keep looking for a better one
12311 ac_cv_path_FGREP="$ac_path_FGREP"
12312 ac_path_FGREP_max=$ac_count
12314 # 10*(2^10) chars as input seems more than enough
12315 test $ac_count -gt 10 && break
12316 done
12317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12318 esac
12320 $ac_path_FGREP_found && break 3
12321 done
12322 done
12323 done
12324 IFS=$as_save_IFS
12325 if test -z "$ac_cv_path_FGREP"; then
12326 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12328 else
12329 ac_cv_path_FGREP=$FGREP
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12335 $as_echo "$ac_cv_path_FGREP" >&6; }
12336 FGREP="$ac_cv_path_FGREP"
12339 test -z "$GREP" && GREP=grep
12359 # Check whether --with-gnu-ld was given.
12360 if test "${with_gnu_ld+set}" = set; then :
12361 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12362 else
12363 with_gnu_ld=no
12366 ac_prog=ld
12367 if test "$GCC" = yes; then
12368 # Check if gcc -print-prog-name=ld gives a path.
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12370 $as_echo_n "checking for ld used by $CC... " >&6; }
12371 case $host in
12372 *-*-mingw*)
12373 # gcc leaves a trailing carriage return which upsets mingw
12374 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12376 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12377 esac
12378 case $ac_prog in
12379 # Accept absolute paths.
12380 [\\/]* | ?:[\\/]*)
12381 re_direlt='/[^/][^/]*/\.\./'
12382 # Canonicalize the pathname of ld
12383 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12384 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12385 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12386 done
12387 test -z "$LD" && LD="$ac_prog"
12390 # If it fails, then pretend we aren't using GCC.
12391 ac_prog=ld
12394 # If it is relative, then search for the first ld in PATH.
12395 with_gnu_ld=unknown
12397 esac
12398 elif test "$with_gnu_ld" = yes; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12400 $as_echo_n "checking for GNU ld... " >&6; }
12401 else
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12403 $as_echo_n "checking for non-GNU ld... " >&6; }
12405 if test "${lt_cv_path_LD+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 if test -z "$LD"; then
12409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12410 for ac_dir in $PATH; do
12411 IFS="$lt_save_ifs"
12412 test -z "$ac_dir" && ac_dir=.
12413 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12414 lt_cv_path_LD="$ac_dir/$ac_prog"
12415 # Check to see if the program is GNU ld. I'd rather use --version,
12416 # but apparently some variants of GNU ld only accept -v.
12417 # Break only if it was the GNU/non-GNU ld that we prefer.
12418 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12419 *GNU* | *'with BFD'*)
12420 test "$with_gnu_ld" != no && break
12423 test "$with_gnu_ld" != yes && break
12425 esac
12427 done
12428 IFS="$lt_save_ifs"
12429 else
12430 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12434 LD="$lt_cv_path_LD"
12435 if test -n "$LD"; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12437 $as_echo "$LD" >&6; }
12438 else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 $as_echo "no" >&6; }
12442 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12444 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12445 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12446 $as_echo_n "(cached) " >&6
12447 else
12448 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12449 case `$LD -v 2>&1 </dev/null` in
12450 *GNU* | *'with BFD'*)
12451 lt_cv_prog_gnu_ld=yes
12454 lt_cv_prog_gnu_ld=no
12456 esac
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12459 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12460 with_gnu_ld=$lt_cv_prog_gnu_ld
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12471 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12472 if test "${lt_cv_path_NM+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 if test -n "$NM"; then
12476 # Let the user override the test.
12477 lt_cv_path_NM="$NM"
12478 else
12479 lt_nm_to_check="${ac_tool_prefix}nm"
12480 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12481 lt_nm_to_check="$lt_nm_to_check nm"
12483 for lt_tmp_nm in $lt_nm_to_check; do
12484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12485 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12486 IFS="$lt_save_ifs"
12487 test -z "$ac_dir" && ac_dir=.
12488 tmp_nm="$ac_dir/$lt_tmp_nm"
12489 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12490 # Check to see if the nm accepts a BSD-compat flag.
12491 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12492 # nm: unknown option "B" ignored
12493 # Tru64's nm complains that /dev/null is an invalid object file
12494 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12495 */dev/null* | *'Invalid file or object type'*)
12496 lt_cv_path_NM="$tmp_nm -B"
12497 break
12500 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12501 */dev/null*)
12502 lt_cv_path_NM="$tmp_nm -p"
12503 break
12506 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12507 continue # so that we can try to find one that supports BSD flags
12509 esac
12511 esac
12513 done
12514 IFS="$lt_save_ifs"
12515 done
12516 : ${lt_cv_path_NM=no}
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12520 $as_echo "$lt_cv_path_NM" >&6; }
12521 if test "$lt_cv_path_NM" != "no"; then
12522 NM="$lt_cv_path_NM"
12523 else
12524 # Didn't find any BSD compatible name lister, look for dumpbin.
12525 if test -n "$DUMPBIN"; then :
12526 # Let the user override the test.
12527 else
12528 if test -n "$ac_tool_prefix"; then
12529 for ac_prog in dumpbin "link -dump"
12531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534 $as_echo_n "checking for $ac_word... " >&6; }
12535 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 if test -n "$DUMPBIN"; then
12539 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12540 else
12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542 for as_dir in $PATH
12544 IFS=$as_save_IFS
12545 test -z "$as_dir" && as_dir=.
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12548 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12550 break 2
12552 done
12553 done
12554 IFS=$as_save_IFS
12558 DUMPBIN=$ac_cv_prog_DUMPBIN
12559 if test -n "$DUMPBIN"; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12561 $as_echo "$DUMPBIN" >&6; }
12562 else
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12568 test -n "$DUMPBIN" && break
12569 done
12571 if test -z "$DUMPBIN"; then
12572 ac_ct_DUMPBIN=$DUMPBIN
12573 for ac_prog in dumpbin "link -dump"
12575 # Extract the first word of "$ac_prog", so it can be a program name with args.
12576 set dummy $ac_prog; ac_word=$2
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578 $as_echo_n "checking for $ac_word... " >&6; }
12579 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12580 $as_echo_n "(cached) " >&6
12581 else
12582 if test -n "$ac_ct_DUMPBIN"; then
12583 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12584 else
12585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12588 IFS=$as_save_IFS
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12592 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12594 break 2
12596 done
12597 done
12598 IFS=$as_save_IFS
12602 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12603 if test -n "$ac_ct_DUMPBIN"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12605 $as_echo "$ac_ct_DUMPBIN" >&6; }
12606 else
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12612 test -n "$ac_ct_DUMPBIN" && break
12613 done
12615 if test "x$ac_ct_DUMPBIN" = x; then
12616 DUMPBIN=":"
12617 else
12618 case $cross_compiling:$ac_tool_warned in
12619 yes:)
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12622 ac_tool_warned=yes ;;
12623 esac
12624 DUMPBIN=$ac_ct_DUMPBIN
12628 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12629 *COFF*)
12630 DUMPBIN="$DUMPBIN -symbols"
12633 DUMPBIN=:
12635 esac
12638 if test "$DUMPBIN" != ":"; then
12639 NM="$DUMPBIN"
12642 test -z "$NM" && NM=nm
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12650 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12651 if test "${lt_cv_nm_interface+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12654 lt_cv_nm_interface="BSD nm"
12655 echo "int some_variable = 0;" > conftest.$ac_ext
12656 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12657 (eval "$ac_compile" 2>conftest.err)
12658 cat conftest.err >&5
12659 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12660 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12661 cat conftest.err >&5
12662 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12663 cat conftest.out >&5
12664 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12665 lt_cv_nm_interface="MS dumpbin"
12667 rm -f conftest*
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12670 $as_echo "$lt_cv_nm_interface" >&6; }
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12673 $as_echo_n "checking whether ln -s works... " >&6; }
12674 LN_S=$as_ln_s
12675 if test "$LN_S" = "ln -s"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12677 $as_echo "yes" >&6; }
12678 else
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12680 $as_echo "no, using $LN_S" >&6; }
12683 # find the maximum length of command line arguments
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12685 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12686 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12687 $as_echo_n "(cached) " >&6
12688 else
12690 teststring="ABCD"
12692 case $build_os in
12693 msdosdjgpp*)
12694 # On DJGPP, this test can blow up pretty badly due to problems in libc
12695 # (any single argument exceeding 2000 bytes causes a buffer overrun
12696 # during glob expansion). Even if it were fixed, the result of this
12697 # check would be larger than it should be.
12698 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12701 gnu*)
12702 # Under GNU Hurd, this test is not required because there is
12703 # no limit to the length of command line arguments.
12704 # Libtool will interpret -1 as no limit whatsoever
12705 lt_cv_sys_max_cmd_len=-1;
12708 cygwin* | mingw* | cegcc*)
12709 # On Win9x/ME, this test blows up -- it succeeds, but takes
12710 # about 5 minutes as the teststring grows exponentially.
12711 # Worse, since 9x/ME are not pre-emptively multitasking,
12712 # you end up with a "frozen" computer, even though with patience
12713 # the test eventually succeeds (with a max line length of 256k).
12714 # Instead, let's just punt: use the minimum linelength reported by
12715 # all of the supported platforms: 8192 (on NT/2K/XP).
12716 lt_cv_sys_max_cmd_len=8192;
12719 mint*)
12720 # On MiNT this can take a long time and run out of memory.
12721 lt_cv_sys_max_cmd_len=8192;
12724 amigaos*)
12725 # On AmigaOS with pdksh, this test takes hours, literally.
12726 # So we just punt and use a minimum line length of 8192.
12727 lt_cv_sys_max_cmd_len=8192;
12730 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12731 # This has been around since 386BSD, at least. Likely further.
12732 if test -x /sbin/sysctl; then
12733 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12734 elif test -x /usr/sbin/sysctl; then
12735 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12736 else
12737 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12739 # And add a safety zone
12740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12744 interix*)
12745 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12746 lt_cv_sys_max_cmd_len=196608
12749 osf*)
12750 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12751 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12752 # nice to cause kernel panics so lets avoid the loop below.
12753 # First set a reasonable default.
12754 lt_cv_sys_max_cmd_len=16384
12756 if test -x /sbin/sysconfig; then
12757 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12758 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12759 esac
12762 sco3.2v5*)
12763 lt_cv_sys_max_cmd_len=102400
12765 sysv5* | sco5v6* | sysv4.2uw2*)
12766 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12767 if test -n "$kargmax"; then
12768 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12769 else
12770 lt_cv_sys_max_cmd_len=32768
12774 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12775 if test -n "$lt_cv_sys_max_cmd_len"; then
12776 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12778 else
12779 # Make teststring a little bigger before we do anything with it.
12780 # a 1K string should be a reasonable start.
12781 for i in 1 2 3 4 5 6 7 8 ; do
12782 teststring=$teststring$teststring
12783 done
12784 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12785 # If test is not a shell built-in, we'll probably end up computing a
12786 # maximum length that is only half of the actual maximum length, but
12787 # we can't tell.
12788 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12789 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12790 test $i != 17 # 1/2 MB should be enough
12792 i=`expr $i + 1`
12793 teststring=$teststring$teststring
12794 done
12795 # Only check the string length outside the loop.
12796 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12797 teststring=
12798 # Add a significant safety factor because C++ compilers can tack on
12799 # massive amounts of additional arguments before passing them to the
12800 # linker. It appears as though 1/2 is a usable value.
12801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12804 esac
12808 if test -n $lt_cv_sys_max_cmd_len ; then
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12810 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12811 else
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12813 $as_echo "none" >&6; }
12815 max_cmd_len=$lt_cv_sys_max_cmd_len
12822 : ${CP="cp -f"}
12823 : ${MV="mv -f"}
12824 : ${RM="rm -f"}
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12827 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12828 # Try some XSI features
12829 xsi_shell=no
12830 ( _lt_dummy="a/b/c"
12831 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12832 = c,a/b,, \
12833 && eval 'test $(( 1 + 1 )) -eq 2 \
12834 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12835 && xsi_shell=yes
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12837 $as_echo "$xsi_shell" >&6; }
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12841 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12842 lt_shell_append=no
12843 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12844 >/dev/null 2>&1 \
12845 && lt_shell_append=yes
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12847 $as_echo "$lt_shell_append" >&6; }
12850 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12851 lt_unset=unset
12852 else
12853 lt_unset=false
12860 # test EBCDIC or ASCII
12861 case `echo X|tr X '\101'` in
12862 A) # ASCII based system
12863 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12864 lt_SP2NL='tr \040 \012'
12865 lt_NL2SP='tr \015\012 \040\040'
12867 *) # EBCDIC based system
12868 lt_SP2NL='tr \100 \n'
12869 lt_NL2SP='tr \r\n \100\100'
12871 esac
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12882 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12883 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12884 $as_echo_n "(cached) " >&6
12885 else
12886 lt_cv_ld_reload_flag='-r'
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12889 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12890 reload_flag=$lt_cv_ld_reload_flag
12891 case $reload_flag in
12892 "" | " "*) ;;
12893 *) reload_flag=" $reload_flag" ;;
12894 esac
12895 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12896 case $host_os in
12897 darwin*)
12898 if test "$GCC" = yes; then
12899 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12900 else
12901 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12904 esac
12914 if test -n "$ac_tool_prefix"; then
12915 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12916 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918 $as_echo_n "checking for $ac_word... " >&6; }
12919 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12920 $as_echo_n "(cached) " >&6
12921 else
12922 if test -n "$OBJDUMP"; then
12923 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12924 else
12925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926 for as_dir in $PATH
12928 IFS=$as_save_IFS
12929 test -z "$as_dir" && as_dir=.
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12932 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12934 break 2
12936 done
12937 done
12938 IFS=$as_save_IFS
12942 OBJDUMP=$ac_cv_prog_OBJDUMP
12943 if test -n "$OBJDUMP"; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12945 $as_echo "$OBJDUMP" >&6; }
12946 else
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948 $as_echo "no" >&6; }
12953 if test -z "$ac_cv_prog_OBJDUMP"; then
12954 ac_ct_OBJDUMP=$OBJDUMP
12955 # Extract the first word of "objdump", so it can be a program name with args.
12956 set dummy objdump; ac_word=$2
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12958 $as_echo_n "checking for $ac_word... " >&6; }
12959 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12960 $as_echo_n "(cached) " >&6
12961 else
12962 if test -n "$ac_ct_OBJDUMP"; then
12963 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12964 else
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $PATH
12968 IFS=$as_save_IFS
12969 test -z "$as_dir" && as_dir=.
12970 for ac_exec_ext in '' $ac_executable_extensions; do
12971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12972 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12974 break 2
12976 done
12977 done
12978 IFS=$as_save_IFS
12982 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12983 if test -n "$ac_ct_OBJDUMP"; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12985 $as_echo "$ac_ct_OBJDUMP" >&6; }
12986 else
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988 $as_echo "no" >&6; }
12991 if test "x$ac_ct_OBJDUMP" = x; then
12992 OBJDUMP="false"
12993 else
12994 case $cross_compiling:$ac_tool_warned in
12995 yes:)
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12998 ac_tool_warned=yes ;;
12999 esac
13000 OBJDUMP=$ac_ct_OBJDUMP
13002 else
13003 OBJDUMP="$ac_cv_prog_OBJDUMP"
13006 test -z "$OBJDUMP" && OBJDUMP=objdump
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13017 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13018 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13019 $as_echo_n "(cached) " >&6
13020 else
13021 lt_cv_file_magic_cmd='$MAGIC_CMD'
13022 lt_cv_file_magic_test_file=
13023 lt_cv_deplibs_check_method='unknown'
13024 # Need to set the preceding variable on all platforms that support
13025 # interlibrary dependencies.
13026 # 'none' -- dependencies not supported.
13027 # `unknown' -- same as none, but documents that we really don't know.
13028 # 'pass_all' -- all dependencies passed with no checks.
13029 # 'test_compile' -- check by making test program.
13030 # 'file_magic [[regex]]' -- check by looking for files in library path
13031 # which responds to the $file_magic_cmd with a given extended regex.
13032 # If you have `file' or equivalent on your system and you're not sure
13033 # whether `pass_all' will *always* work, you probably want this one.
13035 case $host_os in
13036 aix[4-9]*)
13037 lt_cv_deplibs_check_method=pass_all
13040 beos*)
13041 lt_cv_deplibs_check_method=pass_all
13044 bsdi[45]*)
13045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13046 lt_cv_file_magic_cmd='/usr/bin/file -L'
13047 lt_cv_file_magic_test_file=/shlib/libc.so
13050 cygwin*)
13051 # func_win32_libid is a shell function defined in ltmain.sh
13052 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13053 lt_cv_file_magic_cmd='func_win32_libid'
13056 mingw* | pw32*)
13057 # Base MSYS/MinGW do not provide the 'file' command needed by
13058 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13059 # unless we find 'file', for example because we are cross-compiling.
13060 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13061 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13062 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13063 lt_cv_file_magic_cmd='func_win32_libid'
13064 else
13065 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13066 lt_cv_file_magic_cmd='$OBJDUMP -f'
13070 cegcc*)
13071 # use the weaker test based on 'objdump'. See mingw*.
13072 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13073 lt_cv_file_magic_cmd='$OBJDUMP -f'
13076 darwin* | rhapsody*)
13077 lt_cv_deplibs_check_method=pass_all
13080 freebsd* | dragonfly*)
13081 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13082 case $host_cpu in
13083 i*86 )
13084 # Not sure whether the presence of OpenBSD here was a mistake.
13085 # Let's accept both of them until this is cleared up.
13086 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13087 lt_cv_file_magic_cmd=/usr/bin/file
13088 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13090 esac
13091 else
13092 lt_cv_deplibs_check_method=pass_all
13096 gnu*)
13097 lt_cv_deplibs_check_method=pass_all
13100 haiku*)
13101 lt_cv_deplibs_check_method=pass_all
13104 hpux10.20* | hpux11*)
13105 lt_cv_file_magic_cmd=/usr/bin/file
13106 case $host_cpu in
13107 ia64*)
13108 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13109 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13111 hppa*64*)
13112 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]'
13113 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13116 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13117 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13119 esac
13122 interix[3-9]*)
13123 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13127 irix5* | irix6* | nonstopux*)
13128 case $LD in
13129 *-32|*"-32 ") libmagic=32-bit;;
13130 *-n32|*"-n32 ") libmagic=N32;;
13131 *-64|*"-64 ") libmagic=64-bit;;
13132 *) libmagic=never-match;;
13133 esac
13134 lt_cv_deplibs_check_method=pass_all
13137 # This must be Linux ELF.
13138 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13139 lt_cv_deplibs_check_method=pass_all
13142 netbsd*)
13143 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13144 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13145 else
13146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13150 newos6*)
13151 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13152 lt_cv_file_magic_cmd=/usr/bin/file
13153 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13156 *nto* | *qnx*)
13157 lt_cv_deplibs_check_method=pass_all
13160 openbsd*)
13161 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13163 else
13164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13168 osf3* | osf4* | osf5*)
13169 lt_cv_deplibs_check_method=pass_all
13172 rdos*)
13173 lt_cv_deplibs_check_method=pass_all
13176 solaris*)
13177 lt_cv_deplibs_check_method=pass_all
13180 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13181 lt_cv_deplibs_check_method=pass_all
13184 sysv4 | sysv4.3*)
13185 case $host_vendor in
13186 motorola)
13187 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]'
13188 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13190 ncr)
13191 lt_cv_deplibs_check_method=pass_all
13193 sequent)
13194 lt_cv_file_magic_cmd='/bin/file'
13195 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13197 sni)
13198 lt_cv_file_magic_cmd='/bin/file'
13199 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13200 lt_cv_file_magic_test_file=/lib/libc.so
13202 siemens)
13203 lt_cv_deplibs_check_method=pass_all
13206 lt_cv_deplibs_check_method=pass_all
13208 esac
13211 tpf*)
13212 lt_cv_deplibs_check_method=pass_all
13214 esac
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13218 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13219 file_magic_cmd=$lt_cv_file_magic_cmd
13220 deplibs_check_method=$lt_cv_deplibs_check_method
13221 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13234 if test -n "$ac_tool_prefix"; then
13235 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13236 set dummy ${ac_tool_prefix}ar; ac_word=$2
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238 $as_echo_n "checking for $ac_word... " >&6; }
13239 if test "${ac_cv_prog_AR+set}" = set; then :
13240 $as_echo_n "(cached) " >&6
13241 else
13242 if test -n "$AR"; then
13243 ac_cv_prog_AR="$AR" # Let the user override the test.
13244 else
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13252 ac_cv_prog_AR="${ac_tool_prefix}ar"
13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13254 break 2
13256 done
13257 done
13258 IFS=$as_save_IFS
13262 AR=$ac_cv_prog_AR
13263 if test -n "$AR"; then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13265 $as_echo "$AR" >&6; }
13266 else
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13273 if test -z "$ac_cv_prog_AR"; then
13274 ac_ct_AR=$AR
13275 # Extract the first word of "ar", so it can be a program name with args.
13276 set dummy ar; ac_word=$2
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13278 $as_echo_n "checking for $ac_word... " >&6; }
13279 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 if test -n "$ac_ct_AR"; then
13283 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13284 else
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13288 IFS=$as_save_IFS
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13292 ac_cv_prog_ac_ct_AR="ar"
13293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13294 break 2
13296 done
13297 done
13298 IFS=$as_save_IFS
13302 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13303 if test -n "$ac_ct_AR"; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13305 $as_echo "$ac_ct_AR" >&6; }
13306 else
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13311 if test "x$ac_ct_AR" = x; then
13312 AR="false"
13313 else
13314 case $cross_compiling:$ac_tool_warned in
13315 yes:)
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13318 ac_tool_warned=yes ;;
13319 esac
13320 AR=$ac_ct_AR
13322 else
13323 AR="$ac_cv_prog_AR"
13326 test -z "$AR" && AR=ar
13327 test -z "$AR_FLAGS" && AR_FLAGS=cru
13339 if test -n "$ac_tool_prefix"; then
13340 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13341 set dummy ${ac_tool_prefix}strip; ac_word=$2
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13343 $as_echo_n "checking for $ac_word... " >&6; }
13344 if test "${ac_cv_prog_STRIP+set}" = set; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13347 if test -n "$STRIP"; then
13348 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13349 else
13350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13351 for as_dir in $PATH
13353 IFS=$as_save_IFS
13354 test -z "$as_dir" && as_dir=.
13355 for ac_exec_ext in '' $ac_executable_extensions; do
13356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13357 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13359 break 2
13361 done
13362 done
13363 IFS=$as_save_IFS
13367 STRIP=$ac_cv_prog_STRIP
13368 if test -n "$STRIP"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13370 $as_echo "$STRIP" >&6; }
13371 else
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13378 if test -z "$ac_cv_prog_STRIP"; then
13379 ac_ct_STRIP=$STRIP
13380 # Extract the first word of "strip", so it can be a program name with args.
13381 set dummy strip; ac_word=$2
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383 $as_echo_n "checking for $ac_word... " >&6; }
13384 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13385 $as_echo_n "(cached) " >&6
13386 else
13387 if test -n "$ac_ct_STRIP"; then
13388 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13389 else
13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13393 IFS=$as_save_IFS
13394 test -z "$as_dir" && as_dir=.
13395 for ac_exec_ext in '' $ac_executable_extensions; do
13396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13397 ac_cv_prog_ac_ct_STRIP="strip"
13398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13399 break 2
13401 done
13402 done
13403 IFS=$as_save_IFS
13407 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13408 if test -n "$ac_ct_STRIP"; then
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13410 $as_echo "$ac_ct_STRIP" >&6; }
13411 else
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13413 $as_echo "no" >&6; }
13416 if test "x$ac_ct_STRIP" = x; then
13417 STRIP=":"
13418 else
13419 case $cross_compiling:$ac_tool_warned in
13420 yes:)
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13423 ac_tool_warned=yes ;;
13424 esac
13425 STRIP=$ac_ct_STRIP
13427 else
13428 STRIP="$ac_cv_prog_STRIP"
13431 test -z "$STRIP" && STRIP=:
13438 if test -n "$ac_tool_prefix"; then
13439 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13440 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13442 $as_echo_n "checking for $ac_word... " >&6; }
13443 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13444 $as_echo_n "(cached) " >&6
13445 else
13446 if test -n "$RANLIB"; then
13447 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13448 else
13449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13450 for as_dir in $PATH
13452 IFS=$as_save_IFS
13453 test -z "$as_dir" && as_dir=.
13454 for ac_exec_ext in '' $ac_executable_extensions; do
13455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13456 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13458 break 2
13460 done
13461 done
13462 IFS=$as_save_IFS
13466 RANLIB=$ac_cv_prog_RANLIB
13467 if test -n "$RANLIB"; then
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13469 $as_echo "$RANLIB" >&6; }
13470 else
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472 $as_echo "no" >&6; }
13477 if test -z "$ac_cv_prog_RANLIB"; then
13478 ac_ct_RANLIB=$RANLIB
13479 # Extract the first word of "ranlib", so it can be a program name with args.
13480 set dummy ranlib; ac_word=$2
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13482 $as_echo_n "checking for $ac_word... " >&6; }
13483 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13484 $as_echo_n "(cached) " >&6
13485 else
13486 if test -n "$ac_ct_RANLIB"; then
13487 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13488 else
13489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13490 for as_dir in $PATH
13492 IFS=$as_save_IFS
13493 test -z "$as_dir" && as_dir=.
13494 for ac_exec_ext in '' $ac_executable_extensions; do
13495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13496 ac_cv_prog_ac_ct_RANLIB="ranlib"
13497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13498 break 2
13500 done
13501 done
13502 IFS=$as_save_IFS
13506 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13507 if test -n "$ac_ct_RANLIB"; then
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13509 $as_echo "$ac_ct_RANLIB" >&6; }
13510 else
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13512 $as_echo "no" >&6; }
13515 if test "x$ac_ct_RANLIB" = x; then
13516 RANLIB=":"
13517 else
13518 case $cross_compiling:$ac_tool_warned in
13519 yes:)
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13522 ac_tool_warned=yes ;;
13523 esac
13524 RANLIB=$ac_ct_RANLIB
13526 else
13527 RANLIB="$ac_cv_prog_RANLIB"
13530 test -z "$RANLIB" && RANLIB=:
13537 # Determine commands to create old-style static archives.
13538 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13539 old_postinstall_cmds='chmod 644 $oldlib'
13540 old_postuninstall_cmds=
13542 if test -n "$RANLIB"; then
13543 case $host_os in
13544 openbsd*)
13545 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13548 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13550 esac
13551 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13554 case $host_os in
13555 darwin*)
13556 lock_old_archive_extraction=yes ;;
13558 lock_old_archive_extraction=no ;;
13559 esac
13599 # If no C compiler was specified, use CC.
13600 LTCC=${LTCC-"$CC"}
13602 # If no C compiler flags were specified, use CFLAGS.
13603 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13605 # Allow CC to be a program name with arguments.
13606 compiler=$CC
13609 # Check for command to grab the raw symbol name followed by C symbol from nm.
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13611 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13612 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13613 $as_echo_n "(cached) " >&6
13614 else
13616 # These are sane defaults that work on at least a few old systems.
13617 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13619 # Character class describing NM global symbol codes.
13620 symcode='[BCDEGRST]'
13622 # Regexp to match symbols that can be accessed directly from C.
13623 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13625 # Define system-specific variables.
13626 case $host_os in
13627 aix*)
13628 symcode='[BCDT]'
13630 cygwin* | mingw* | pw32* | cegcc*)
13631 symcode='[ABCDGISTW]'
13633 hpux*)
13634 if test "$host_cpu" = ia64; then
13635 symcode='[ABCDEGRST]'
13638 irix* | nonstopux*)
13639 symcode='[BCDEGRST]'
13641 osf*)
13642 symcode='[BCDEGQRST]'
13644 solaris*)
13645 symcode='[BDRT]'
13647 sco3.2v5*)
13648 symcode='[DT]'
13650 sysv4.2uw2*)
13651 symcode='[DT]'
13653 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13654 symcode='[ABDT]'
13656 sysv4)
13657 symcode='[DFNSTU]'
13659 esac
13661 # If we're using GNU nm, then use its standard symbol codes.
13662 case `$NM -V 2>&1` in
13663 *GNU* | *'with BFD'*)
13664 symcode='[ABCDGIRSTW]' ;;
13665 esac
13667 # Transform an extracted symbol line into a proper C declaration.
13668 # Some systems (esp. on ia64) link data and code symbols differently,
13669 # so use this general approach.
13670 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13672 # Transform an extracted symbol line into symbol name and symbol address
13673 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13674 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'"
13676 # Handle CRLF in mingw tool chain
13677 opt_cr=
13678 case $build_os in
13679 mingw*)
13680 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13682 esac
13684 # Try without a prefix underscore, then with it.
13685 for ac_symprfx in "" "_"; do
13687 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13688 symxfrm="\\1 $ac_symprfx\\2 \\2"
13690 # Write the raw and C identifiers.
13691 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13692 # Fake it for dumpbin and say T for any non-static function
13693 # and D for any global variable.
13694 # Also find C++ and __fastcall symbols from MSVC++,
13695 # which start with @ or ?.
13696 lt_cv_sys_global_symbol_pipe="$AWK '"\
13697 " {last_section=section; section=\$ 3};"\
13698 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13699 " \$ 0!~/External *\|/{next};"\
13700 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13701 " {if(hide[section]) next};"\
13702 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13703 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13704 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13705 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13706 " ' prfx=^$ac_symprfx"
13707 else
13708 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13711 # Check to see that the pipe works correctly.
13712 pipe_works=no
13714 rm -f conftest*
13715 cat > conftest.$ac_ext <<_LT_EOF
13716 #ifdef __cplusplus
13717 extern "C" {
13718 #endif
13719 char nm_test_var;
13720 void nm_test_func(void);
13721 void nm_test_func(void){}
13722 #ifdef __cplusplus
13724 #endif
13725 int main(){nm_test_var='a';nm_test_func();return(0);}
13726 _LT_EOF
13728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13729 (eval $ac_compile) 2>&5
13730 ac_status=$?
13731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13732 test $ac_status = 0; }; then
13733 # Now try to grab the symbols.
13734 nlist=conftest.nm
13735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13736 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13737 ac_status=$?
13738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13739 test $ac_status = 0; } && test -s "$nlist"; then
13740 # Try sorting and uniquifying the output.
13741 if sort "$nlist" | uniq > "$nlist"T; then
13742 mv -f "$nlist"T "$nlist"
13743 else
13744 rm -f "$nlist"T
13747 # Make sure that we snagged all the symbols we need.
13748 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13749 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13750 cat <<_LT_EOF > conftest.$ac_ext
13751 #ifdef __cplusplus
13752 extern "C" {
13753 #endif
13755 _LT_EOF
13756 # Now generate the symbol file.
13757 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13759 cat <<_LT_EOF >> conftest.$ac_ext
13761 /* The mapping between symbol names and symbols. */
13762 const struct {
13763 const char *name;
13764 void *address;
13766 lt__PROGRAM__LTX_preloaded_symbols[] =
13768 { "@PROGRAM@", (void *) 0 },
13769 _LT_EOF
13770 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13771 cat <<\_LT_EOF >> conftest.$ac_ext
13772 {0, (void *) 0}
13775 /* This works around a problem in FreeBSD linker */
13776 #ifdef FREEBSD_WORKAROUND
13777 static const void *lt_preloaded_setup() {
13778 return lt__PROGRAM__LTX_preloaded_symbols;
13780 #endif
13782 #ifdef __cplusplus
13784 #endif
13785 _LT_EOF
13786 # Now try linking the two files.
13787 mv conftest.$ac_objext conftstm.$ac_objext
13788 lt_save_LIBS="$LIBS"
13789 lt_save_CFLAGS="$CFLAGS"
13790 LIBS="conftstm.$ac_objext"
13791 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13793 (eval $ac_link) 2>&5
13794 ac_status=$?
13795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13796 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13797 pipe_works=yes
13799 LIBS="$lt_save_LIBS"
13800 CFLAGS="$lt_save_CFLAGS"
13801 else
13802 echo "cannot find nm_test_func in $nlist" >&5
13804 else
13805 echo "cannot find nm_test_var in $nlist" >&5
13807 else
13808 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13810 else
13811 echo "$progname: failed program was:" >&5
13812 cat conftest.$ac_ext >&5
13814 rm -rf conftest* conftst*
13816 # Do not use the global_symbol_pipe unless it works.
13817 if test "$pipe_works" = yes; then
13818 break
13819 else
13820 lt_cv_sys_global_symbol_pipe=
13822 done
13826 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13827 lt_cv_sys_global_symbol_to_cdecl=
13829 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13831 $as_echo "failed" >&6; }
13832 else
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13834 $as_echo "ok" >&6; }
13858 # Check whether --enable-libtool-lock was given.
13859 if test "${enable_libtool_lock+set}" = set; then :
13860 enableval=$enable_libtool_lock;
13863 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13865 # Some flags need to be propagated to the compiler or linker for good
13866 # libtool support.
13867 case $host in
13868 ia64-*-hpux*)
13869 # Find out which ABI we are using.
13870 echo 'int i;' > conftest.$ac_ext
13871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13872 (eval $ac_compile) 2>&5
13873 ac_status=$?
13874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13875 test $ac_status = 0; }; then
13876 case `/usr/bin/file conftest.$ac_objext` in
13877 *ELF-32*)
13878 HPUX_IA64_MODE="32"
13880 *ELF-64*)
13881 HPUX_IA64_MODE="64"
13883 esac
13885 rm -rf conftest*
13887 *-*-irix6*)
13888 # Find out which ABI we are using.
13889 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13891 (eval $ac_compile) 2>&5
13892 ac_status=$?
13893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13894 test $ac_status = 0; }; then
13895 if test "$lt_cv_prog_gnu_ld" = yes; then
13896 case `/usr/bin/file conftest.$ac_objext` in
13897 *32-bit*)
13898 LD="${LD-ld} -melf32bsmip"
13900 *N32*)
13901 LD="${LD-ld} -melf32bmipn32"
13903 *64-bit*)
13904 LD="${LD-ld} -melf64bmip"
13906 esac
13907 else
13908 case `/usr/bin/file conftest.$ac_objext` in
13909 *32-bit*)
13910 LD="${LD-ld} -32"
13912 *N32*)
13913 LD="${LD-ld} -n32"
13915 *64-bit*)
13916 LD="${LD-ld} -64"
13918 esac
13921 rm -rf conftest*
13924 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13925 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13926 # Find out which ABI we are using.
13927 echo 'int i;' > conftest.$ac_ext
13928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13929 (eval $ac_compile) 2>&5
13930 ac_status=$?
13931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13932 test $ac_status = 0; }; then
13933 case `/usr/bin/file conftest.o` in
13934 *32-bit*)
13935 case $host in
13936 x86_64-*kfreebsd*-gnu)
13937 LD="${LD-ld} -m elf_i386_fbsd"
13939 x86_64-*linux*)
13940 case `/usr/bin/file conftest.o` in
13941 *x86-64*)
13942 LD="${LD-ld} -m elf32_x86_64"
13945 LD="${LD-ld} -m elf_i386"
13947 esac
13949 ppc64-*linux*|powerpc64-*linux*)
13950 LD="${LD-ld} -m elf32ppclinux"
13952 s390x-*linux*)
13953 LD="${LD-ld} -m elf_s390"
13955 sparc64-*linux*)
13956 LD="${LD-ld} -m elf32_sparc"
13958 esac
13960 *64-bit*)
13961 case $host in
13962 x86_64-*kfreebsd*-gnu)
13963 LD="${LD-ld} -m elf_x86_64_fbsd"
13965 x86_64-*linux*)
13966 LD="${LD-ld} -m elf_x86_64"
13968 ppc*-*linux*|powerpc*-*linux*)
13969 LD="${LD-ld} -m elf64ppc"
13971 s390*-*linux*|s390*-*tpf*)
13972 LD="${LD-ld} -m elf64_s390"
13974 sparc*-*linux*)
13975 LD="${LD-ld} -m elf64_sparc"
13977 esac
13979 esac
13981 rm -rf conftest*
13984 *-*-sco3.2v5*)
13985 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13986 SAVE_CFLAGS="$CFLAGS"
13987 CFLAGS="$CFLAGS -belf"
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13989 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13990 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13991 $as_echo_n "(cached) " >&6
13992 else
13993 ac_ext=c
13994 ac_cpp='$CPP $CPPFLAGS'
13995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h. */
14003 main ()
14007 return 0;
14009 _ACEOF
14010 if ac_fn_c_try_link "$LINENO"; then :
14011 lt_cv_cc_needs_belf=yes
14012 else
14013 lt_cv_cc_needs_belf=no
14015 rm -f core conftest.err conftest.$ac_objext \
14016 conftest$ac_exeext conftest.$ac_ext
14017 ac_ext=c
14018 ac_cpp='$CPP $CPPFLAGS'
14019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14025 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14026 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14027 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14028 CFLAGS="$SAVE_CFLAGS"
14031 sparc*-*solaris*)
14032 # Find out which ABI we are using.
14033 echo 'int i;' > conftest.$ac_ext
14034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14035 (eval $ac_compile) 2>&5
14036 ac_status=$?
14037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14038 test $ac_status = 0; }; then
14039 case `/usr/bin/file conftest.o` in
14040 *64-bit*)
14041 case $lt_cv_prog_gnu_ld in
14042 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14044 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14045 LD="${LD-ld} -64"
14048 esac
14050 esac
14052 rm -rf conftest*
14054 esac
14056 need_locks="$enable_libtool_lock"
14059 case $host_os in
14060 rhapsody* | darwin*)
14061 if test -n "$ac_tool_prefix"; then
14062 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14063 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14065 $as_echo_n "checking for $ac_word... " >&6; }
14066 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14067 $as_echo_n "(cached) " >&6
14068 else
14069 if test -n "$DSYMUTIL"; then
14070 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14071 else
14072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14073 for as_dir in $PATH
14075 IFS=$as_save_IFS
14076 test -z "$as_dir" && as_dir=.
14077 for ac_exec_ext in '' $ac_executable_extensions; do
14078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14079 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14081 break 2
14083 done
14084 done
14085 IFS=$as_save_IFS
14089 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14090 if test -n "$DSYMUTIL"; then
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14092 $as_echo "$DSYMUTIL" >&6; }
14093 else
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095 $as_echo "no" >&6; }
14100 if test -z "$ac_cv_prog_DSYMUTIL"; then
14101 ac_ct_DSYMUTIL=$DSYMUTIL
14102 # Extract the first word of "dsymutil", so it can be a program name with args.
14103 set dummy dsymutil; ac_word=$2
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14105 $as_echo_n "checking for $ac_word... " >&6; }
14106 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14107 $as_echo_n "(cached) " >&6
14108 else
14109 if test -n "$ac_ct_DSYMUTIL"; then
14110 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14111 else
14112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14113 for as_dir in $PATH
14115 IFS=$as_save_IFS
14116 test -z "$as_dir" && as_dir=.
14117 for ac_exec_ext in '' $ac_executable_extensions; do
14118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14119 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14121 break 2
14123 done
14124 done
14125 IFS=$as_save_IFS
14129 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14130 if test -n "$ac_ct_DSYMUTIL"; then
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14132 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14133 else
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14135 $as_echo "no" >&6; }
14138 if test "x$ac_ct_DSYMUTIL" = x; then
14139 DSYMUTIL=":"
14140 else
14141 case $cross_compiling:$ac_tool_warned in
14142 yes:)
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14145 ac_tool_warned=yes ;;
14146 esac
14147 DSYMUTIL=$ac_ct_DSYMUTIL
14149 else
14150 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14153 if test -n "$ac_tool_prefix"; then
14154 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14155 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14157 $as_echo_n "checking for $ac_word... " >&6; }
14158 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14159 $as_echo_n "(cached) " >&6
14160 else
14161 if test -n "$NMEDIT"; then
14162 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14163 else
14164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14165 for as_dir in $PATH
14167 IFS=$as_save_IFS
14168 test -z "$as_dir" && as_dir=.
14169 for ac_exec_ext in '' $ac_executable_extensions; do
14170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14171 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14173 break 2
14175 done
14176 done
14177 IFS=$as_save_IFS
14181 NMEDIT=$ac_cv_prog_NMEDIT
14182 if test -n "$NMEDIT"; then
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14184 $as_echo "$NMEDIT" >&6; }
14185 else
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14187 $as_echo "no" >&6; }
14192 if test -z "$ac_cv_prog_NMEDIT"; then
14193 ac_ct_NMEDIT=$NMEDIT
14194 # Extract the first word of "nmedit", so it can be a program name with args.
14195 set dummy nmedit; ac_word=$2
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14197 $as_echo_n "checking for $ac_word... " >&6; }
14198 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14199 $as_echo_n "(cached) " >&6
14200 else
14201 if test -n "$ac_ct_NMEDIT"; then
14202 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14203 else
14204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14205 for as_dir in $PATH
14207 IFS=$as_save_IFS
14208 test -z "$as_dir" && as_dir=.
14209 for ac_exec_ext in '' $ac_executable_extensions; do
14210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14211 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14213 break 2
14215 done
14216 done
14217 IFS=$as_save_IFS
14221 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14222 if test -n "$ac_ct_NMEDIT"; then
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14224 $as_echo "$ac_ct_NMEDIT" >&6; }
14225 else
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14227 $as_echo "no" >&6; }
14230 if test "x$ac_ct_NMEDIT" = x; then
14231 NMEDIT=":"
14232 else
14233 case $cross_compiling:$ac_tool_warned in
14234 yes:)
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14237 ac_tool_warned=yes ;;
14238 esac
14239 NMEDIT=$ac_ct_NMEDIT
14241 else
14242 NMEDIT="$ac_cv_prog_NMEDIT"
14245 if test -n "$ac_tool_prefix"; then
14246 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14247 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14249 $as_echo_n "checking for $ac_word... " >&6; }
14250 if test "${ac_cv_prog_LIPO+set}" = set; then :
14251 $as_echo_n "(cached) " >&6
14252 else
14253 if test -n "$LIPO"; then
14254 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14255 else
14256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14257 for as_dir in $PATH
14259 IFS=$as_save_IFS
14260 test -z "$as_dir" && as_dir=.
14261 for ac_exec_ext in '' $ac_executable_extensions; do
14262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14263 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14265 break 2
14267 done
14268 done
14269 IFS=$as_save_IFS
14273 LIPO=$ac_cv_prog_LIPO
14274 if test -n "$LIPO"; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14276 $as_echo "$LIPO" >&6; }
14277 else
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279 $as_echo "no" >&6; }
14284 if test -z "$ac_cv_prog_LIPO"; then
14285 ac_ct_LIPO=$LIPO
14286 # Extract the first word of "lipo", so it can be a program name with args.
14287 set dummy lipo; ac_word=$2
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14289 $as_echo_n "checking for $ac_word... " >&6; }
14290 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14291 $as_echo_n "(cached) " >&6
14292 else
14293 if test -n "$ac_ct_LIPO"; then
14294 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14295 else
14296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14297 for as_dir in $PATH
14299 IFS=$as_save_IFS
14300 test -z "$as_dir" && as_dir=.
14301 for ac_exec_ext in '' $ac_executable_extensions; do
14302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14303 ac_cv_prog_ac_ct_LIPO="lipo"
14304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14305 break 2
14307 done
14308 done
14309 IFS=$as_save_IFS
14313 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14314 if test -n "$ac_ct_LIPO"; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14316 $as_echo "$ac_ct_LIPO" >&6; }
14317 else
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14319 $as_echo "no" >&6; }
14322 if test "x$ac_ct_LIPO" = x; then
14323 LIPO=":"
14324 else
14325 case $cross_compiling:$ac_tool_warned in
14326 yes:)
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14329 ac_tool_warned=yes ;;
14330 esac
14331 LIPO=$ac_ct_LIPO
14333 else
14334 LIPO="$ac_cv_prog_LIPO"
14337 if test -n "$ac_tool_prefix"; then
14338 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14339 set dummy ${ac_tool_prefix}otool; ac_word=$2
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14341 $as_echo_n "checking for $ac_word... " >&6; }
14342 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14343 $as_echo_n "(cached) " >&6
14344 else
14345 if test -n "$OTOOL"; then
14346 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14347 else
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14351 IFS=$as_save_IFS
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
14354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14355 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14357 break 2
14359 done
14360 done
14361 IFS=$as_save_IFS
14365 OTOOL=$ac_cv_prog_OTOOL
14366 if test -n "$OTOOL"; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14368 $as_echo "$OTOOL" >&6; }
14369 else
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371 $as_echo "no" >&6; }
14376 if test -z "$ac_cv_prog_OTOOL"; then
14377 ac_ct_OTOOL=$OTOOL
14378 # Extract the first word of "otool", so it can be a program name with args.
14379 set dummy otool; ac_word=$2
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14381 $as_echo_n "checking for $ac_word... " >&6; }
14382 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14383 $as_echo_n "(cached) " >&6
14384 else
14385 if test -n "$ac_ct_OTOOL"; then
14386 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14387 else
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 for as_dir in $PATH
14391 IFS=$as_save_IFS
14392 test -z "$as_dir" && as_dir=.
14393 for ac_exec_ext in '' $ac_executable_extensions; do
14394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14395 ac_cv_prog_ac_ct_OTOOL="otool"
14396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14397 break 2
14399 done
14400 done
14401 IFS=$as_save_IFS
14405 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14406 if test -n "$ac_ct_OTOOL"; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14408 $as_echo "$ac_ct_OTOOL" >&6; }
14409 else
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14411 $as_echo "no" >&6; }
14414 if test "x$ac_ct_OTOOL" = x; then
14415 OTOOL=":"
14416 else
14417 case $cross_compiling:$ac_tool_warned in
14418 yes:)
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14421 ac_tool_warned=yes ;;
14422 esac
14423 OTOOL=$ac_ct_OTOOL
14425 else
14426 OTOOL="$ac_cv_prog_OTOOL"
14429 if test -n "$ac_tool_prefix"; then
14430 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14431 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14433 $as_echo_n "checking for $ac_word... " >&6; }
14434 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14435 $as_echo_n "(cached) " >&6
14436 else
14437 if test -n "$OTOOL64"; then
14438 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14439 else
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 for as_dir in $PATH
14443 IFS=$as_save_IFS
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
14446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14447 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14449 break 2
14451 done
14452 done
14453 IFS=$as_save_IFS
14457 OTOOL64=$ac_cv_prog_OTOOL64
14458 if test -n "$OTOOL64"; then
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14460 $as_echo "$OTOOL64" >&6; }
14461 else
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14463 $as_echo "no" >&6; }
14468 if test -z "$ac_cv_prog_OTOOL64"; then
14469 ac_ct_OTOOL64=$OTOOL64
14470 # Extract the first word of "otool64", so it can be a program name with args.
14471 set dummy otool64; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14473 $as_echo_n "checking for $ac_word... " >&6; }
14474 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14475 $as_echo_n "(cached) " >&6
14476 else
14477 if test -n "$ac_ct_OTOOL64"; then
14478 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14479 else
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14483 IFS=$as_save_IFS
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
14486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14487 ac_cv_prog_ac_ct_OTOOL64="otool64"
14488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14489 break 2
14491 done
14492 done
14493 IFS=$as_save_IFS
14497 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14498 if test -n "$ac_ct_OTOOL64"; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14500 $as_echo "$ac_ct_OTOOL64" >&6; }
14501 else
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14503 $as_echo "no" >&6; }
14506 if test "x$ac_ct_OTOOL64" = x; then
14507 OTOOL64=":"
14508 else
14509 case $cross_compiling:$ac_tool_warned in
14510 yes:)
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14513 ac_tool_warned=yes ;;
14514 esac
14515 OTOOL64=$ac_ct_OTOOL64
14517 else
14518 OTOOL64="$ac_cv_prog_OTOOL64"
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14548 $as_echo_n "checking for -single_module linker flag... " >&6; }
14549 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14550 $as_echo_n "(cached) " >&6
14551 else
14552 lt_cv_apple_cc_single_mod=no
14553 if test -z "${LT_MULTI_MODULE}"; then
14554 # By default we will add the -single_module flag. You can override
14555 # by either setting the environment variable LT_MULTI_MODULE
14556 # non-empty at configure time, or by adding -multi_module to the
14557 # link flags.
14558 rm -rf libconftest.dylib*
14559 echo "int foo(void){return 1;}" > conftest.c
14560 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14561 -dynamiclib -Wl,-single_module conftest.c" >&5
14562 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14563 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14564 _lt_result=$?
14565 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14566 lt_cv_apple_cc_single_mod=yes
14567 else
14568 cat conftest.err >&5
14570 rm -rf libconftest.dylib*
14571 rm -f conftest.*
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14575 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14577 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14578 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14579 $as_echo_n "(cached) " >&6
14580 else
14581 lt_cv_ld_exported_symbols_list=no
14582 save_LDFLAGS=$LDFLAGS
14583 echo "_main" > conftest.sym
14584 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14589 main ()
14593 return 0;
14595 _ACEOF
14596 if ac_fn_c_try_link "$LINENO"; then :
14597 lt_cv_ld_exported_symbols_list=yes
14598 else
14599 lt_cv_ld_exported_symbols_list=no
14601 rm -f core conftest.err conftest.$ac_objext \
14602 conftest$ac_exeext conftest.$ac_ext
14603 LDFLAGS="$save_LDFLAGS"
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14607 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14609 $as_echo_n "checking for -force_load linker flag... " >&6; }
14610 if test "${lt_cv_ld_force_load+set}" = set; then :
14611 $as_echo_n "(cached) " >&6
14612 else
14613 lt_cv_ld_force_load=no
14614 cat > conftest.c << _LT_EOF
14615 int forced_loaded() { return 2;}
14616 _LT_EOF
14617 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14618 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14619 echo "$AR cru libconftest.a conftest.o" >&5
14620 $AR cru libconftest.a conftest.o 2>&5
14621 cat > conftest.c << _LT_EOF
14622 int main() { return 0;}
14623 _LT_EOF
14624 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14625 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14626 _lt_result=$?
14627 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14628 lt_cv_ld_force_load=yes
14629 else
14630 cat conftest.err >&5
14632 rm -f conftest.err libconftest.a conftest conftest.c
14633 rm -rf conftest.dSYM
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14637 $as_echo "$lt_cv_ld_force_load" >&6; }
14638 case $host_os in
14639 rhapsody* | darwin1.[012])
14640 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14641 darwin1.*)
14642 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14643 darwin*) # darwin 5.x on
14644 # if running on 10.5 or later, the deployment target defaults
14645 # to the OS version, if on x86, and 10.4, the deployment
14646 # target defaults to 10.4. Don't you love it?
14647 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14648 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14649 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14650 10.[012]*)
14651 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14652 10.*)
14653 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14654 esac
14656 esac
14657 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14658 _lt_dar_single_mod='$single_module'
14660 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14661 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14662 else
14663 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14665 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14666 _lt_dsymutil='~$DSYMUTIL $lib || :'
14667 else
14668 _lt_dsymutil=
14671 esac
14673 for ac_header in dlfcn.h
14674 do :
14675 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14676 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14677 cat >>confdefs.h <<_ACEOF
14678 #define HAVE_DLFCN_H 1
14679 _ACEOF
14682 done
14688 # Set options
14692 enable_dlopen=no
14695 enable_win32_dll=no
14698 # Check whether --enable-shared was given.
14699 if test "${enable_shared+set}" = set; then :
14700 enableval=$enable_shared; p=${PACKAGE-default}
14701 case $enableval in
14702 yes) enable_shared=yes ;;
14703 no) enable_shared=no ;;
14705 enable_shared=no
14706 # Look at the argument we got. We use all the common list separators.
14707 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14708 for pkg in $enableval; do
14709 IFS="$lt_save_ifs"
14710 if test "X$pkg" = "X$p"; then
14711 enable_shared=yes
14713 done
14714 IFS="$lt_save_ifs"
14716 esac
14717 else
14718 enable_shared=yes
14729 # Check whether --enable-static was given.
14730 if test "${enable_static+set}" = set; then :
14731 enableval=$enable_static; p=${PACKAGE-default}
14732 case $enableval in
14733 yes) enable_static=yes ;;
14734 no) enable_static=no ;;
14736 enable_static=no
14737 # Look at the argument we got. We use all the common list separators.
14738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14739 for pkg in $enableval; do
14740 IFS="$lt_save_ifs"
14741 if test "X$pkg" = "X$p"; then
14742 enable_static=yes
14744 done
14745 IFS="$lt_save_ifs"
14747 esac
14748 else
14749 enable_static=yes
14761 # Check whether --with-pic was given.
14762 if test "${with_pic+set}" = set; then :
14763 withval=$with_pic; pic_mode="$withval"
14764 else
14765 pic_mode=default
14769 test -z "$pic_mode" && pic_mode=default
14777 # Check whether --enable-fast-install was given.
14778 if test "${enable_fast_install+set}" = set; then :
14779 enableval=$enable_fast_install; p=${PACKAGE-default}
14780 case $enableval in
14781 yes) enable_fast_install=yes ;;
14782 no) enable_fast_install=no ;;
14784 enable_fast_install=no
14785 # Look at the argument we got. We use all the common list separators.
14786 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14787 for pkg in $enableval; do
14788 IFS="$lt_save_ifs"
14789 if test "X$pkg" = "X$p"; then
14790 enable_fast_install=yes
14792 done
14793 IFS="$lt_save_ifs"
14795 esac
14796 else
14797 enable_fast_install=yes
14810 # This can be used to rebuild libtool when needed
14811 LIBTOOL_DEPS="$ltmain"
14813 # Always use our own libtool.
14814 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14841 test -z "$LN_S" && LN_S="ln -s"
14856 if test -n "${ZSH_VERSION+set}" ; then
14857 setopt NO_GLOB_SUBST
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14861 $as_echo_n "checking for objdir... " >&6; }
14862 if test "${lt_cv_objdir+set}" = set; then :
14863 $as_echo_n "(cached) " >&6
14864 else
14865 rm -f .libs 2>/dev/null
14866 mkdir .libs 2>/dev/null
14867 if test -d .libs; then
14868 lt_cv_objdir=.libs
14869 else
14870 # MS-DOS does not allow filenames that begin with a dot.
14871 lt_cv_objdir=_libs
14873 rmdir .libs 2>/dev/null
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14876 $as_echo "$lt_cv_objdir" >&6; }
14877 objdir=$lt_cv_objdir
14883 cat >>confdefs.h <<_ACEOF
14884 #define LT_OBJDIR "$lt_cv_objdir/"
14885 _ACEOF
14890 case $host_os in
14891 aix3*)
14892 # AIX sometimes has problems with the GCC collect2 program. For some
14893 # reason, if we set the COLLECT_NAMES environment variable, the problems
14894 # vanish in a puff of smoke.
14895 if test "X${COLLECT_NAMES+set}" != Xset; then
14896 COLLECT_NAMES=
14897 export COLLECT_NAMES
14900 esac
14902 # Global variables:
14903 ofile=libtool
14904 can_build_shared=yes
14906 # All known linkers require a `.a' archive for static linking (except MSVC,
14907 # which needs '.lib').
14908 libext=a
14910 with_gnu_ld="$lt_cv_prog_gnu_ld"
14912 old_CC="$CC"
14913 old_CFLAGS="$CFLAGS"
14915 # Set sane defaults for various variables
14916 test -z "$CC" && CC=cc
14917 test -z "$LTCC" && LTCC=$CC
14918 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14919 test -z "$LD" && LD=ld
14920 test -z "$ac_objext" && ac_objext=o
14922 for cc_temp in $compiler""; do
14923 case $cc_temp in
14924 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14925 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14926 \-*) ;;
14927 *) break;;
14928 esac
14929 done
14930 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14933 # Only perform the check for file, if the check method requires it
14934 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14935 case $deplibs_check_method in
14936 file_magic*)
14937 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14939 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14940 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14941 $as_echo_n "(cached) " >&6
14942 else
14943 case $MAGIC_CMD in
14944 [\\/*] | ?:[\\/]*)
14945 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14948 lt_save_MAGIC_CMD="$MAGIC_CMD"
14949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14950 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14951 for ac_dir in $ac_dummy; do
14952 IFS="$lt_save_ifs"
14953 test -z "$ac_dir" && ac_dir=.
14954 if test -f $ac_dir/${ac_tool_prefix}file; then
14955 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14956 if test -n "$file_magic_test_file"; then
14957 case $deplibs_check_method in
14958 "file_magic "*)
14959 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14961 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14962 $EGREP "$file_magic_regex" > /dev/null; then
14964 else
14965 cat <<_LT_EOF 1>&2
14967 *** Warning: the command libtool uses to detect shared libraries,
14968 *** $file_magic_cmd, produces output that libtool cannot recognize.
14969 *** The result is that libtool may fail to recognize shared libraries
14970 *** as such. This will affect the creation of libtool libraries that
14971 *** depend on shared libraries, but programs linked with such libtool
14972 *** libraries will work regardless of this problem. Nevertheless, you
14973 *** may want to report the problem to your system manager and/or to
14974 *** bug-libtool@gnu.org
14976 _LT_EOF
14977 fi ;;
14978 esac
14980 break
14982 done
14983 IFS="$lt_save_ifs"
14984 MAGIC_CMD="$lt_save_MAGIC_CMD"
14986 esac
14989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14990 if test -n "$MAGIC_CMD"; then
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14992 $as_echo "$MAGIC_CMD" >&6; }
14993 else
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14995 $as_echo "no" >&6; }
15002 if test -z "$lt_cv_path_MAGIC_CMD"; then
15003 if test -n "$ac_tool_prefix"; then
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15005 $as_echo_n "checking for file... " >&6; }
15006 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15007 $as_echo_n "(cached) " >&6
15008 else
15009 case $MAGIC_CMD in
15010 [\\/*] | ?:[\\/]*)
15011 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15014 lt_save_MAGIC_CMD="$MAGIC_CMD"
15015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15016 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15017 for ac_dir in $ac_dummy; do
15018 IFS="$lt_save_ifs"
15019 test -z "$ac_dir" && ac_dir=.
15020 if test -f $ac_dir/file; then
15021 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15022 if test -n "$file_magic_test_file"; then
15023 case $deplibs_check_method in
15024 "file_magic "*)
15025 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15027 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15028 $EGREP "$file_magic_regex" > /dev/null; then
15030 else
15031 cat <<_LT_EOF 1>&2
15033 *** Warning: the command libtool uses to detect shared libraries,
15034 *** $file_magic_cmd, produces output that libtool cannot recognize.
15035 *** The result is that libtool may fail to recognize shared libraries
15036 *** as such. This will affect the creation of libtool libraries that
15037 *** depend on shared libraries, but programs linked with such libtool
15038 *** libraries will work regardless of this problem. Nevertheless, you
15039 *** may want to report the problem to your system manager and/or to
15040 *** bug-libtool@gnu.org
15042 _LT_EOF
15043 fi ;;
15044 esac
15046 break
15048 done
15049 IFS="$lt_save_ifs"
15050 MAGIC_CMD="$lt_save_MAGIC_CMD"
15052 esac
15055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15056 if test -n "$MAGIC_CMD"; then
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15058 $as_echo "$MAGIC_CMD" >&6; }
15059 else
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15061 $as_echo "no" >&6; }
15065 else
15066 MAGIC_CMD=:
15072 esac
15074 # Use C for the default configuration in the libtool script
15076 lt_save_CC="$CC"
15077 ac_ext=c
15078 ac_cpp='$CPP $CPPFLAGS'
15079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15084 # Source file extension for C test sources.
15085 ac_ext=c
15087 # Object file extension for compiled C test sources.
15088 objext=o
15089 objext=$objext
15091 # Code to be used in simple compile tests
15092 lt_simple_compile_test_code="int some_variable = 0;"
15094 # Code to be used in simple link tests
15095 lt_simple_link_test_code='int main(){return(0);}'
15103 # If no C compiler was specified, use CC.
15104 LTCC=${LTCC-"$CC"}
15106 # If no C compiler flags were specified, use CFLAGS.
15107 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15109 # Allow CC to be a program name with arguments.
15110 compiler=$CC
15112 # Save the default compiler, since it gets overwritten when the other
15113 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15114 compiler_DEFAULT=$CC
15116 # save warnings/boilerplate of simple test code
15117 ac_outfile=conftest.$ac_objext
15118 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15119 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15120 _lt_compiler_boilerplate=`cat conftest.err`
15121 $RM conftest*
15123 ac_outfile=conftest.$ac_objext
15124 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15125 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15126 _lt_linker_boilerplate=`cat conftest.err`
15127 $RM -r conftest*
15130 ## CAVEAT EMPTOR:
15131 ## There is no encapsulation within the following macros, do not change
15132 ## the running order or otherwise move them around unless you know exactly
15133 ## what you are doing...
15134 if test -n "$compiler"; then
15136 lt_prog_compiler_no_builtin_flag=
15138 if test "$GCC" = yes; then
15139 case $cc_basename in
15140 nvcc*)
15141 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15143 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15144 esac
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15147 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15148 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15149 $as_echo_n "(cached) " >&6
15150 else
15151 lt_cv_prog_compiler_rtti_exceptions=no
15152 ac_outfile=conftest.$ac_objext
15153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15154 lt_compiler_flag="-fno-rtti -fno-exceptions"
15155 # Insert the option either (1) after the last *FLAGS variable, or
15156 # (2) before a word containing "conftest.", or (3) at the end.
15157 # Note that $ac_compile itself does not contain backslashes and begins
15158 # with a dollar sign (not a hyphen), so the echo should work correctly.
15159 # The option is referenced via a variable to avoid confusing sed.
15160 lt_compile=`echo "$ac_compile" | $SED \
15161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15163 -e 's:$: $lt_compiler_flag:'`
15164 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15165 (eval "$lt_compile" 2>conftest.err)
15166 ac_status=$?
15167 cat conftest.err >&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 if (exit $ac_status) && test -s "$ac_outfile"; then
15170 # The compiler can only warn and ignore the option if not recognized
15171 # So say no if there are warnings other than the usual output.
15172 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15175 lt_cv_prog_compiler_rtti_exceptions=yes
15178 $RM conftest*
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15182 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15184 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15185 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15186 else
15197 lt_prog_compiler_wl=
15198 lt_prog_compiler_pic=
15199 lt_prog_compiler_static=
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15202 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15204 if test "$GCC" = yes; then
15205 lt_prog_compiler_wl='-Wl,'
15206 lt_prog_compiler_static='-static'
15208 case $host_os in
15209 aix*)
15210 # All AIX code is PIC.
15211 if test "$host_cpu" = ia64; then
15212 # AIX 5 now supports IA64 processor
15213 lt_prog_compiler_static='-Bstatic'
15215 lt_prog_compiler_pic='-fPIC'
15218 amigaos*)
15219 case $host_cpu in
15220 powerpc)
15221 # see comment about AmigaOS4 .so support
15222 lt_prog_compiler_pic='-fPIC'
15224 m68k)
15225 # FIXME: we need at least 68020 code to build shared libraries, but
15226 # adding the `-m68020' flag to GCC prevents building anything better,
15227 # like `-m68040'.
15228 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15230 esac
15233 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15234 # PIC is the default for these OSes.
15237 mingw* | cygwin* | pw32* | os2* | cegcc*)
15238 # This hack is so that the source file can tell whether it is being
15239 # built for inclusion in a dll (and should export symbols for example).
15240 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15241 # (--disable-auto-import) libraries
15242 lt_prog_compiler_pic='-DDLL_EXPORT'
15245 darwin* | rhapsody*)
15246 # PIC is the default on this platform
15247 # Common symbols not allowed in MH_DYLIB files
15248 lt_prog_compiler_pic='-fno-common'
15251 haiku*)
15252 # PIC is the default for Haiku.
15253 # The "-static" flag exists, but is broken.
15254 lt_prog_compiler_static=
15257 hpux*)
15258 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15259 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15260 # sets the default TLS model and affects inlining.
15261 case $host_cpu in
15262 hppa*64*)
15263 # +Z the default
15266 lt_prog_compiler_pic='-fPIC'
15268 esac
15271 interix[3-9]*)
15272 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15273 # Instead, we relocate shared libraries at runtime.
15276 msdosdjgpp*)
15277 # Just because we use GCC doesn't mean we suddenly get shared libraries
15278 # on systems that don't support them.
15279 lt_prog_compiler_can_build_shared=no
15280 enable_shared=no
15283 *nto* | *qnx*)
15284 # QNX uses GNU C++, but need to define -shared option too, otherwise
15285 # it will coredump.
15286 lt_prog_compiler_pic='-fPIC -shared'
15289 sysv4*MP*)
15290 if test -d /usr/nec; then
15291 lt_prog_compiler_pic=-Kconform_pic
15296 lt_prog_compiler_pic='-fPIC'
15298 esac
15300 case $cc_basename in
15301 nvcc*) # Cuda Compiler Driver 2.2
15302 lt_prog_compiler_wl='-Xlinker '
15303 lt_prog_compiler_pic='-Xcompiler -fPIC'
15305 esac
15306 else
15307 # PORTME Check for flag to pass linker flags through the system compiler.
15308 case $host_os in
15309 aix*)
15310 lt_prog_compiler_wl='-Wl,'
15311 if test "$host_cpu" = ia64; then
15312 # AIX 5 now supports IA64 processor
15313 lt_prog_compiler_static='-Bstatic'
15314 else
15315 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15319 mingw* | cygwin* | pw32* | os2* | cegcc*)
15320 # This hack is so that the source file can tell whether it is being
15321 # built for inclusion in a dll (and should export symbols for example).
15322 lt_prog_compiler_pic='-DDLL_EXPORT'
15325 hpux9* | hpux10* | hpux11*)
15326 lt_prog_compiler_wl='-Wl,'
15327 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15328 # not for PA HP-UX.
15329 case $host_cpu in
15330 hppa*64*|ia64*)
15331 # +Z the default
15334 lt_prog_compiler_pic='+Z'
15336 esac
15337 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15338 lt_prog_compiler_static='${wl}-a ${wl}archive'
15341 irix5* | irix6* | nonstopux*)
15342 lt_prog_compiler_wl='-Wl,'
15343 # PIC (with -KPIC) is the default.
15344 lt_prog_compiler_static='-non_shared'
15347 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15348 case $cc_basename in
15349 # old Intel for x86_64 which still supported -KPIC.
15350 ecc*)
15351 lt_prog_compiler_wl='-Wl,'
15352 lt_prog_compiler_pic='-KPIC'
15353 lt_prog_compiler_static='-static'
15355 # icc used to be incompatible with GCC.
15356 # ICC 10 doesn't accept -KPIC any more.
15357 icc* | ifort*)
15358 lt_prog_compiler_wl='-Wl,'
15359 lt_prog_compiler_pic='-fPIC'
15360 lt_prog_compiler_static='-static'
15362 # Lahey Fortran 8.1.
15363 lf95*)
15364 lt_prog_compiler_wl='-Wl,'
15365 lt_prog_compiler_pic='--shared'
15366 lt_prog_compiler_static='--static'
15368 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15369 # Portland Group compilers (*not* the Pentium gcc compiler,
15370 # which looks to be a dead project)
15371 lt_prog_compiler_wl='-Wl,'
15372 lt_prog_compiler_pic='-fpic'
15373 lt_prog_compiler_static='-Bstatic'
15375 ccc*)
15376 lt_prog_compiler_wl='-Wl,'
15377 # All Alpha code is PIC.
15378 lt_prog_compiler_static='-non_shared'
15380 xl* | bgxl* | bgf* | mpixl*)
15381 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15382 lt_prog_compiler_wl='-Wl,'
15383 lt_prog_compiler_pic='-qpic'
15384 lt_prog_compiler_static='-qstaticlink'
15387 case `$CC -V 2>&1 | sed 5q` in
15388 *Sun\ F* | *Sun*Fortran*)
15389 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15390 lt_prog_compiler_pic='-KPIC'
15391 lt_prog_compiler_static='-Bstatic'
15392 lt_prog_compiler_wl=''
15394 *Sun\ C*)
15395 # Sun C 5.9
15396 lt_prog_compiler_pic='-KPIC'
15397 lt_prog_compiler_static='-Bstatic'
15398 lt_prog_compiler_wl='-Wl,'
15400 esac
15402 esac
15405 newsos6)
15406 lt_prog_compiler_pic='-KPIC'
15407 lt_prog_compiler_static='-Bstatic'
15410 *nto* | *qnx*)
15411 # QNX uses GNU C++, but need to define -shared option too, otherwise
15412 # it will coredump.
15413 lt_prog_compiler_pic='-fPIC -shared'
15416 osf3* | osf4* | osf5*)
15417 lt_prog_compiler_wl='-Wl,'
15418 # All OSF/1 code is PIC.
15419 lt_prog_compiler_static='-non_shared'
15422 rdos*)
15423 lt_prog_compiler_static='-non_shared'
15426 solaris*)
15427 lt_prog_compiler_pic='-KPIC'
15428 lt_prog_compiler_static='-Bstatic'
15429 case $cc_basename in
15430 f77* | f90* | f95*)
15431 lt_prog_compiler_wl='-Qoption ld ';;
15433 lt_prog_compiler_wl='-Wl,';;
15434 esac
15437 sunos4*)
15438 lt_prog_compiler_wl='-Qoption ld '
15439 lt_prog_compiler_pic='-PIC'
15440 lt_prog_compiler_static='-Bstatic'
15443 sysv4 | sysv4.2uw2* | sysv4.3*)
15444 lt_prog_compiler_wl='-Wl,'
15445 lt_prog_compiler_pic='-KPIC'
15446 lt_prog_compiler_static='-Bstatic'
15449 sysv4*MP*)
15450 if test -d /usr/nec ;then
15451 lt_prog_compiler_pic='-Kconform_pic'
15452 lt_prog_compiler_static='-Bstatic'
15456 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15457 lt_prog_compiler_wl='-Wl,'
15458 lt_prog_compiler_pic='-KPIC'
15459 lt_prog_compiler_static='-Bstatic'
15462 unicos*)
15463 lt_prog_compiler_wl='-Wl,'
15464 lt_prog_compiler_can_build_shared=no
15467 uts4*)
15468 lt_prog_compiler_pic='-pic'
15469 lt_prog_compiler_static='-Bstatic'
15473 lt_prog_compiler_can_build_shared=no
15475 esac
15478 case $host_os in
15479 # For platforms which do not support PIC, -DPIC is meaningless:
15480 *djgpp*)
15481 lt_prog_compiler_pic=
15484 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15486 esac
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15488 $as_echo "$lt_prog_compiler_pic" >&6; }
15496 # Check to make sure the PIC flag actually works.
15498 if test -n "$lt_prog_compiler_pic"; then
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15500 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15501 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15502 $as_echo_n "(cached) " >&6
15503 else
15504 lt_cv_prog_compiler_pic_works=no
15505 ac_outfile=conftest.$ac_objext
15506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15507 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15508 # Insert the option either (1) after the last *FLAGS variable, or
15509 # (2) before a word containing "conftest.", or (3) at the end.
15510 # Note that $ac_compile itself does not contain backslashes and begins
15511 # with a dollar sign (not a hyphen), so the echo should work correctly.
15512 # The option is referenced via a variable to avoid confusing sed.
15513 lt_compile=`echo "$ac_compile" | $SED \
15514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15516 -e 's:$: $lt_compiler_flag:'`
15517 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15518 (eval "$lt_compile" 2>conftest.err)
15519 ac_status=$?
15520 cat conftest.err >&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 if (exit $ac_status) && test -s "$ac_outfile"; then
15523 # The compiler can only warn and ignore the option if not recognized
15524 # So say no if there are warnings other than the usual output.
15525 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15527 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15528 lt_cv_prog_compiler_pic_works=yes
15531 $RM conftest*
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15535 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15537 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15538 case $lt_prog_compiler_pic in
15539 "" | " "*) ;;
15540 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15541 esac
15542 else
15543 lt_prog_compiler_pic=
15544 lt_prog_compiler_can_build_shared=no
15555 # Check to make sure the static flag actually works.
15557 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15559 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15560 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15561 $as_echo_n "(cached) " >&6
15562 else
15563 lt_cv_prog_compiler_static_works=no
15564 save_LDFLAGS="$LDFLAGS"
15565 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15566 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15567 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15568 # The linker can only warn and ignore the option if not recognized
15569 # So say no if there are warnings
15570 if test -s conftest.err; then
15571 # Append any errors to the config.log.
15572 cat conftest.err 1>&5
15573 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15575 if diff conftest.exp conftest.er2 >/dev/null; then
15576 lt_cv_prog_compiler_static_works=yes
15578 else
15579 lt_cv_prog_compiler_static_works=yes
15582 $RM -r conftest*
15583 LDFLAGS="$save_LDFLAGS"
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15587 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15589 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15591 else
15592 lt_prog_compiler_static=
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15602 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15603 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15604 $as_echo_n "(cached) " >&6
15605 else
15606 lt_cv_prog_compiler_c_o=no
15607 $RM -r conftest 2>/dev/null
15608 mkdir conftest
15609 cd conftest
15610 mkdir out
15611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15613 lt_compiler_flag="-o out/conftest2.$ac_objext"
15614 # Insert the option either (1) after the last *FLAGS variable, or
15615 # (2) before a word containing "conftest.", or (3) at the end.
15616 # Note that $ac_compile itself does not contain backslashes and begins
15617 # with a dollar sign (not a hyphen), so the echo should work correctly.
15618 lt_compile=`echo "$ac_compile" | $SED \
15619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15621 -e 's:$: $lt_compiler_flag:'`
15622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15623 (eval "$lt_compile" 2>out/conftest.err)
15624 ac_status=$?
15625 cat out/conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15628 then
15629 # The compiler can only warn and ignore the option if not recognized
15630 # So say no if there are warnings
15631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15634 lt_cv_prog_compiler_c_o=yes
15637 chmod u+w . 2>&5
15638 $RM conftest*
15639 # SGI C++ compiler will create directory out/ii_files/ for
15640 # template instantiation
15641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15642 $RM out/* && rmdir out
15643 cd ..
15644 $RM -r conftest
15645 $RM conftest*
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15649 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15657 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15658 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15659 $as_echo_n "(cached) " >&6
15660 else
15661 lt_cv_prog_compiler_c_o=no
15662 $RM -r conftest 2>/dev/null
15663 mkdir conftest
15664 cd conftest
15665 mkdir out
15666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15668 lt_compiler_flag="-o out/conftest2.$ac_objext"
15669 # Insert the option either (1) after the last *FLAGS variable, or
15670 # (2) before a word containing "conftest.", or (3) at the end.
15671 # Note that $ac_compile itself does not contain backslashes and begins
15672 # with a dollar sign (not a hyphen), so the echo should work correctly.
15673 lt_compile=`echo "$ac_compile" | $SED \
15674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15676 -e 's:$: $lt_compiler_flag:'`
15677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15678 (eval "$lt_compile" 2>out/conftest.err)
15679 ac_status=$?
15680 cat out/conftest.err >&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15683 then
15684 # The compiler can only warn and ignore the option if not recognized
15685 # So say no if there are warnings
15686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15689 lt_cv_prog_compiler_c_o=yes
15692 chmod u+w . 2>&5
15693 $RM conftest*
15694 # SGI C++ compiler will create directory out/ii_files/ for
15695 # template instantiation
15696 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15697 $RM out/* && rmdir out
15698 cd ..
15699 $RM -r conftest
15700 $RM conftest*
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15704 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15709 hard_links="nottested"
15710 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15711 # do not overwrite the value of need_locks provided by the user
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15713 $as_echo_n "checking if we can lock with hard links... " >&6; }
15714 hard_links=yes
15715 $RM conftest*
15716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15717 touch conftest.a
15718 ln conftest.a conftest.b 2>&5 || hard_links=no
15719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15721 $as_echo "$hard_links" >&6; }
15722 if test "$hard_links" = no; then
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15724 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15725 need_locks=warn
15727 else
15728 need_locks=no
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15737 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15739 runpath_var=
15740 allow_undefined_flag=
15741 always_export_symbols=no
15742 archive_cmds=
15743 archive_expsym_cmds=
15744 compiler_needs_object=no
15745 enable_shared_with_static_runtimes=no
15746 export_dynamic_flag_spec=
15747 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15748 hardcode_automatic=no
15749 hardcode_direct=no
15750 hardcode_direct_absolute=no
15751 hardcode_libdir_flag_spec=
15752 hardcode_libdir_flag_spec_ld=
15753 hardcode_libdir_separator=
15754 hardcode_minus_L=no
15755 hardcode_shlibpath_var=unsupported
15756 inherit_rpath=no
15757 link_all_deplibs=unknown
15758 module_cmds=
15759 module_expsym_cmds=
15760 old_archive_from_new_cmds=
15761 old_archive_from_expsyms_cmds=
15762 thread_safe_flag_spec=
15763 whole_archive_flag_spec=
15764 # include_expsyms should be a list of space-separated symbols to be *always*
15765 # included in the symbol list
15766 include_expsyms=
15767 # exclude_expsyms can be an extended regexp of symbols to exclude
15768 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15769 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15770 # as well as any symbol that contains `d'.
15771 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15772 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15773 # platforms (ab)use it in PIC code, but their linkers get confused if
15774 # the symbol is explicitly referenced. Since portable code cannot
15775 # rely on this symbol name, it's probably fine to never include it in
15776 # preloaded symbol tables.
15777 # Exclude shared library initialization/finalization symbols.
15778 extract_expsyms_cmds=
15780 case $host_os in
15781 cygwin* | mingw* | pw32* | cegcc*)
15782 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15783 # When not using gcc, we currently assume that we are using
15784 # Microsoft Visual C++.
15785 if test "$GCC" != yes; then
15786 with_gnu_ld=no
15789 interix*)
15790 # we just hope/assume this is gcc and not c89 (= MSVC++)
15791 with_gnu_ld=yes
15793 openbsd*)
15794 with_gnu_ld=no
15796 esac
15798 ld_shlibs=yes
15800 # On some targets, GNU ld is compatible enough with the native linker
15801 # that we're better off using the native interface for both.
15802 lt_use_gnu_ld_interface=no
15803 if test "$with_gnu_ld" = yes; then
15804 case $host_os in
15805 aix*)
15806 # The AIX port of GNU ld has always aspired to compatibility
15807 # with the native linker. However, as the warning in the GNU ld
15808 # block says, versions before 2.19.5* couldn't really create working
15809 # shared libraries, regardless of the interface used.
15810 case `$LD -v 2>&1` in
15811 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15812 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15813 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15815 lt_use_gnu_ld_interface=yes
15817 esac
15820 lt_use_gnu_ld_interface=yes
15822 esac
15825 if test "$lt_use_gnu_ld_interface" = yes; then
15826 # If archive_cmds runs LD, not CC, wlarc should be empty
15827 wlarc='${wl}'
15829 # Set some defaults for GNU ld with shared library support. These
15830 # are reset later if shared libraries are not supported. Putting them
15831 # here allows them to be overridden if necessary.
15832 runpath_var=LD_RUN_PATH
15833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15834 export_dynamic_flag_spec='${wl}--export-dynamic'
15835 # ancient GNU ld didn't support --whole-archive et. al.
15836 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15837 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15838 else
15839 whole_archive_flag_spec=
15841 supports_anon_versioning=no
15842 case `$LD -v 2>&1` in
15843 *GNU\ gold*) supports_anon_versioning=yes ;;
15844 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15845 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15846 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15847 *\ 2.11.*) ;; # other 2.11 versions
15848 *) supports_anon_versioning=yes ;;
15849 esac
15851 # See if GNU ld supports shared libraries.
15852 case $host_os in
15853 aix[3-9]*)
15854 # On AIX/PPC, the GNU linker is very broken
15855 if test "$host_cpu" != ia64; then
15856 ld_shlibs=no
15857 cat <<_LT_EOF 1>&2
15859 *** Warning: the GNU linker, at least up to release 2.19, is reported
15860 *** to be unable to reliably create shared libraries on AIX.
15861 *** Therefore, libtool is disabling shared libraries support. If you
15862 *** really care for shared libraries, you may want to install binutils
15863 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15864 *** You will then need to restart the configuration process.
15866 _LT_EOF
15870 amigaos*)
15871 case $host_cpu in
15872 powerpc)
15873 # see comment about AmigaOS4 .so support
15874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15875 archive_expsym_cmds=''
15877 m68k)
15878 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)'
15879 hardcode_libdir_flag_spec='-L$libdir'
15880 hardcode_minus_L=yes
15882 esac
15885 beos*)
15886 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15887 allow_undefined_flag=unsupported
15888 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15889 # support --undefined. This deserves some investigation. FIXME
15890 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15891 else
15892 ld_shlibs=no
15896 cygwin* | mingw* | pw32* | cegcc*)
15897 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15898 # as there is no search path for DLLs.
15899 hardcode_libdir_flag_spec='-L$libdir'
15900 export_dynamic_flag_spec='${wl}--export-all-symbols'
15901 allow_undefined_flag=unsupported
15902 always_export_symbols=no
15903 enable_shared_with_static_runtimes=yes
15904 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15906 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15908 # If the export-symbols file already is a .def file (1st line
15909 # is EXPORTS), use it as is; otherwise, prepend...
15910 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15911 cp $export_symbols $output_objdir/$soname.def;
15912 else
15913 echo EXPORTS > $output_objdir/$soname.def;
15914 cat $export_symbols >> $output_objdir/$soname.def;
15916 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15917 else
15918 ld_shlibs=no
15922 haiku*)
15923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15924 link_all_deplibs=yes
15927 interix[3-9]*)
15928 hardcode_direct=no
15929 hardcode_shlibpath_var=no
15930 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15931 export_dynamic_flag_spec='${wl}-E'
15932 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15933 # Instead, shared libraries are loaded at an image base (0x10000000 by
15934 # default) and relocated if they conflict, which is a slow very memory
15935 # consuming and fragmenting process. To avoid this, we pick a random,
15936 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15937 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15938 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15939 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'
15942 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15943 tmp_diet=no
15944 if test "$host_os" = linux-dietlibc; then
15945 case $cc_basename in
15946 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15947 esac
15949 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15950 && test "$tmp_diet" = no
15951 then
15952 tmp_addflag=
15953 tmp_sharedflag='-shared'
15954 case $cc_basename,$host_cpu in
15955 pgcc*) # Portland Group C compiler
15956 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'
15957 tmp_addflag=' $pic_flag'
15959 pgf77* | pgf90* | pgf95* | pgfortran*)
15960 # Portland Group f77 and f90 compilers
15961 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'
15962 tmp_addflag=' $pic_flag -Mnomain' ;;
15963 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15964 tmp_addflag=' -i_dynamic' ;;
15965 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15966 tmp_addflag=' -i_dynamic -nofor_main' ;;
15967 ifc* | ifort*) # Intel Fortran compiler
15968 tmp_addflag=' -nofor_main' ;;
15969 lf95*) # Lahey Fortran 8.1
15970 whole_archive_flag_spec=
15971 tmp_sharedflag='--shared' ;;
15972 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15973 tmp_sharedflag='-qmkshrobj'
15974 tmp_addflag= ;;
15975 nvcc*) # Cuda Compiler Driver 2.2
15976 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'
15977 compiler_needs_object=yes
15979 esac
15980 case `$CC -V 2>&1 | sed 5q` in
15981 *Sun\ C*) # Sun C 5.9
15982 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'
15983 compiler_needs_object=yes
15984 tmp_sharedflag='-G' ;;
15985 *Sun\ F*) # Sun Fortran 8.3
15986 tmp_sharedflag='-G' ;;
15987 esac
15988 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15990 if test "x$supports_anon_versioning" = xyes; then
15991 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15993 echo "local: *; };" >> $output_objdir/$libname.ver~
15994 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15997 case $cc_basename in
15998 xlf* | bgf* | bgxlf* | mpixlf*)
15999 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16000 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16001 hardcode_libdir_flag_spec=
16002 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16003 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16004 if test "x$supports_anon_versioning" = xyes; then
16005 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16007 echo "local: *; };" >> $output_objdir/$libname.ver~
16008 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16011 esac
16012 else
16013 ld_shlibs=no
16017 netbsd*)
16018 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16019 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16020 wlarc=
16021 else
16022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16023 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16027 solaris*)
16028 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16029 ld_shlibs=no
16030 cat <<_LT_EOF 1>&2
16032 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16033 *** create shared libraries on Solaris systems. Therefore, libtool
16034 *** is disabling shared libraries support. We urge you to upgrade GNU
16035 *** binutils to release 2.9.1 or newer. Another option is to modify
16036 *** your PATH or compiler configuration so that the native linker is
16037 *** used, and then restart.
16039 _LT_EOF
16040 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16043 else
16044 ld_shlibs=no
16048 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16049 case `$LD -v 2>&1` in
16050 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16051 ld_shlibs=no
16052 cat <<_LT_EOF 1>&2
16054 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16055 *** reliably create shared libraries on SCO systems. Therefore, libtool
16056 *** is disabling shared libraries support. We urge you to upgrade GNU
16057 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16058 *** your PATH or compiler configuration so that the native linker is
16059 *** used, and then restart.
16061 _LT_EOF
16064 # For security reasons, it is highly recommended that you always
16065 # use absolute paths for naming shared libraries, and exclude the
16066 # DT_RUNPATH tag from executables and libraries. But doing so
16067 # requires that you compile everything twice, which is a pain.
16068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16071 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16072 else
16073 ld_shlibs=no
16076 esac
16079 sunos4*)
16080 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16081 wlarc=
16082 hardcode_direct=yes
16083 hardcode_shlibpath_var=no
16087 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16089 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16090 else
16091 ld_shlibs=no
16094 esac
16096 if test "$ld_shlibs" = no; then
16097 runpath_var=
16098 hardcode_libdir_flag_spec=
16099 export_dynamic_flag_spec=
16100 whole_archive_flag_spec=
16102 else
16103 # PORTME fill in a description of your system's linker (not GNU ld)
16104 case $host_os in
16105 aix3*)
16106 allow_undefined_flag=unsupported
16107 always_export_symbols=yes
16108 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'
16109 # Note: this linker hardcodes the directories in LIBPATH if there
16110 # are no directories specified by -L.
16111 hardcode_minus_L=yes
16112 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16113 # Neither direct hardcoding nor static linking is supported with a
16114 # broken collect2.
16115 hardcode_direct=unsupported
16119 aix[4-9]*)
16120 if test "$host_cpu" = ia64; then
16121 # On IA64, the linker does run time linking by default, so we don't
16122 # have to do anything special.
16123 aix_use_runtimelinking=no
16124 exp_sym_flag='-Bexport'
16125 no_entry_flag=""
16126 else
16127 # If we're using GNU nm, then we don't want the "-C" option.
16128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16129 # Also, AIX nm treats weak defined symbols like other global
16130 # defined symbols, whereas GNU nm marks them as "W".
16131 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16132 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'
16133 else
16134 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'
16136 aix_use_runtimelinking=no
16138 # Test if we are trying to use run time linking or normal
16139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16140 # need to do runtime linking.
16141 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16142 for ld_flag in $LDFLAGS; do
16143 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16144 aix_use_runtimelinking=yes
16145 break
16147 done
16149 esac
16151 exp_sym_flag='-bexport'
16152 no_entry_flag='-bnoentry'
16155 # When large executables or shared objects are built, AIX ld can
16156 # have problems creating the table of contents. If linking a library
16157 # or program results in "error TOC overflow" add -mminimal-toc to
16158 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16159 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16161 archive_cmds=''
16162 hardcode_direct=yes
16163 hardcode_direct_absolute=yes
16164 hardcode_libdir_separator=':'
16165 link_all_deplibs=yes
16166 file_list_spec='${wl}-f,'
16168 if test "$GCC" = yes; then
16169 case $host_os in aix4.[012]|aix4.[012].*)
16170 # We only want to do this on AIX 4.2 and lower, the check
16171 # below for broken collect2 doesn't work under 4.3+
16172 collect2name=`${CC} -print-prog-name=collect2`
16173 if test -f "$collect2name" &&
16174 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16175 then
16176 # We have reworked collect2
16178 else
16179 # We have old collect2
16180 hardcode_direct=unsupported
16181 # It fails to find uninstalled libraries when the uninstalled
16182 # path is not listed in the libpath. Setting hardcode_minus_L
16183 # to unsupported forces relinking
16184 hardcode_minus_L=yes
16185 hardcode_libdir_flag_spec='-L$libdir'
16186 hardcode_libdir_separator=
16189 esac
16190 shared_flag='-shared'
16191 if test "$aix_use_runtimelinking" = yes; then
16192 shared_flag="$shared_flag "'${wl}-G'
16194 else
16195 # not using gcc
16196 if test "$host_cpu" = ia64; then
16197 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16198 # chokes on -Wl,-G. The following line is correct:
16199 shared_flag='-G'
16200 else
16201 if test "$aix_use_runtimelinking" = yes; then
16202 shared_flag='${wl}-G'
16203 else
16204 shared_flag='${wl}-bM:SRE'
16209 export_dynamic_flag_spec='${wl}-bexpall'
16210 # It seems that -bexpall does not export symbols beginning with
16211 # underscore (_), so it is better to generate a list of symbols to export.
16212 always_export_symbols=yes
16213 if test "$aix_use_runtimelinking" = yes; then
16214 # Warning - without using the other runtime loading flags (-brtl),
16215 # -berok will link without error, but may produce a broken library.
16216 allow_undefined_flag='-berok'
16217 # Determine the default libpath from the value encoded in an
16218 # empty executable.
16219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220 /* end confdefs.h. */
16223 main ()
16227 return 0;
16229 _ACEOF
16230 if ac_fn_c_try_link "$LINENO"; then :
16232 lt_aix_libpath_sed='
16233 /Import File Strings/,/^$/ {
16234 /^0/ {
16235 s/^0 *\(.*\)$/\1/
16239 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16240 # Check for a 64-bit object if we didn't find anything.
16241 if test -z "$aix_libpath"; then
16242 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16245 rm -f core conftest.err conftest.$ac_objext \
16246 conftest$ac_exeext conftest.$ac_ext
16247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16249 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16250 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"
16251 else
16252 if test "$host_cpu" = ia64; then
16253 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16254 allow_undefined_flag="-z nodefs"
16255 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"
16256 else
16257 # Determine the default libpath from the value encoded in an
16258 # empty executable.
16259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260 /* end confdefs.h. */
16263 main ()
16267 return 0;
16269 _ACEOF
16270 if ac_fn_c_try_link "$LINENO"; then :
16272 lt_aix_libpath_sed='
16273 /Import File Strings/,/^$/ {
16274 /^0/ {
16275 s/^0 *\(.*\)$/\1/
16279 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16280 # Check for a 64-bit object if we didn't find anything.
16281 if test -z "$aix_libpath"; then
16282 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16285 rm -f core conftest.err conftest.$ac_objext \
16286 conftest$ac_exeext conftest.$ac_ext
16287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16289 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16290 # Warning - without using the other run time loading flags,
16291 # -berok will link without error, but may produce a broken library.
16292 no_undefined_flag=' ${wl}-bernotok'
16293 allow_undefined_flag=' ${wl}-berok'
16294 if test "$with_gnu_ld" = yes; then
16295 # We only use this code for GNU lds that support --whole-archive.
16296 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16297 else
16298 # Exported symbols can be pulled into shared objects from archives
16299 whole_archive_flag_spec='$convenience'
16301 archive_cmds_need_lc=yes
16302 # This is similar to how AIX traditionally builds its shared libraries.
16303 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'
16308 amigaos*)
16309 case $host_cpu in
16310 powerpc)
16311 # see comment about AmigaOS4 .so support
16312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16313 archive_expsym_cmds=''
16315 m68k)
16316 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)'
16317 hardcode_libdir_flag_spec='-L$libdir'
16318 hardcode_minus_L=yes
16320 esac
16323 bsdi[45]*)
16324 export_dynamic_flag_spec=-rdynamic
16327 cygwin* | mingw* | pw32* | cegcc*)
16328 # When not using gcc, we currently assume that we are using
16329 # Microsoft Visual C++.
16330 # hardcode_libdir_flag_spec is actually meaningless, as there is
16331 # no search path for DLLs.
16332 hardcode_libdir_flag_spec=' '
16333 allow_undefined_flag=unsupported
16334 # Tell ltmain to make .lib files, not .a files.
16335 libext=lib
16336 # Tell ltmain to make .dll files, not .so files.
16337 shrext_cmds=".dll"
16338 # FIXME: Setting linknames here is a bad hack.
16339 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16340 # The linker will automatically build a .lib file if we build a DLL.
16341 old_archive_from_new_cmds='true'
16342 # FIXME: Should let the user specify the lib program.
16343 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16344 fix_srcfile_path='`cygpath -w "$srcfile"`'
16345 enable_shared_with_static_runtimes=yes
16348 darwin* | rhapsody*)
16351 archive_cmds_need_lc=no
16352 hardcode_direct=no
16353 hardcode_automatic=yes
16354 hardcode_shlibpath_var=unsupported
16355 if test "$lt_cv_ld_force_load" = "yes"; then
16356 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\"`'
16357 else
16358 whole_archive_flag_spec=''
16360 link_all_deplibs=yes
16361 allow_undefined_flag="$_lt_dar_allow_undefined"
16362 case $cc_basename in
16363 ifort*) _lt_dar_can_shared=yes ;;
16364 *) _lt_dar_can_shared=$GCC ;;
16365 esac
16366 if test "$_lt_dar_can_shared" = "yes"; then
16367 output_verbose_link_cmd=func_echo_all
16368 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16369 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16370 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}"
16371 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}"
16373 else
16374 ld_shlibs=no
16379 dgux*)
16380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16381 hardcode_libdir_flag_spec='-L$libdir'
16382 hardcode_shlibpath_var=no
16385 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16386 # support. Future versions do this automatically, but an explicit c++rt0.o
16387 # does not break anything, and helps significantly (at the cost of a little
16388 # extra space).
16389 freebsd2.2*)
16390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16391 hardcode_libdir_flag_spec='-R$libdir'
16392 hardcode_direct=yes
16393 hardcode_shlibpath_var=no
16396 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16397 freebsd2.*)
16398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16399 hardcode_direct=yes
16400 hardcode_minus_L=yes
16401 hardcode_shlibpath_var=no
16404 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16405 freebsd* | dragonfly*)
16406 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16407 hardcode_libdir_flag_spec='-R$libdir'
16408 hardcode_direct=yes
16409 hardcode_shlibpath_var=no
16412 hpux9*)
16413 if test "$GCC" = yes; then
16414 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'
16415 else
16416 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'
16418 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16419 hardcode_libdir_separator=:
16420 hardcode_direct=yes
16422 # hardcode_minus_L: Not really in the search PATH,
16423 # but as the default location of the library.
16424 hardcode_minus_L=yes
16425 export_dynamic_flag_spec='${wl}-E'
16428 hpux10*)
16429 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16430 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16431 else
16432 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16434 if test "$with_gnu_ld" = no; then
16435 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16436 hardcode_libdir_flag_spec_ld='+b $libdir'
16437 hardcode_libdir_separator=:
16438 hardcode_direct=yes
16439 hardcode_direct_absolute=yes
16440 export_dynamic_flag_spec='${wl}-E'
16441 # hardcode_minus_L: Not really in the search PATH,
16442 # but as the default location of the library.
16443 hardcode_minus_L=yes
16447 hpux11*)
16448 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16449 case $host_cpu in
16450 hppa*64*)
16451 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16453 ia64*)
16454 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16457 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16459 esac
16460 else
16461 case $host_cpu in
16462 hppa*64*)
16463 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16465 ia64*)
16466 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16470 # Older versions of the 11.00 compiler do not understand -b yet
16471 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16473 $as_echo_n "checking if $CC understands -b... " >&6; }
16474 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16475 $as_echo_n "(cached) " >&6
16476 else
16477 lt_cv_prog_compiler__b=no
16478 save_LDFLAGS="$LDFLAGS"
16479 LDFLAGS="$LDFLAGS -b"
16480 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16481 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16482 # The linker can only warn and ignore the option if not recognized
16483 # So say no if there are warnings
16484 if test -s conftest.err; then
16485 # Append any errors to the config.log.
16486 cat conftest.err 1>&5
16487 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16489 if diff conftest.exp conftest.er2 >/dev/null; then
16490 lt_cv_prog_compiler__b=yes
16492 else
16493 lt_cv_prog_compiler__b=yes
16496 $RM -r conftest*
16497 LDFLAGS="$save_LDFLAGS"
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16501 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16503 if test x"$lt_cv_prog_compiler__b" = xyes; then
16504 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16505 else
16506 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16510 esac
16512 if test "$with_gnu_ld" = no; then
16513 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16514 hardcode_libdir_separator=:
16516 case $host_cpu in
16517 hppa*64*|ia64*)
16518 hardcode_direct=no
16519 hardcode_shlibpath_var=no
16522 hardcode_direct=yes
16523 hardcode_direct_absolute=yes
16524 export_dynamic_flag_spec='${wl}-E'
16526 # hardcode_minus_L: Not really in the search PATH,
16527 # but as the default location of the library.
16528 hardcode_minus_L=yes
16530 esac
16534 irix5* | irix6* | nonstopux*)
16535 if test "$GCC" = yes; then
16536 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'
16537 # Try to use the -exported_symbol ld option, if it does not
16538 # work, assume that -exports_file does not work either and
16539 # implicitly export all symbols.
16540 save_LDFLAGS="$LDFLAGS"
16541 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16543 /* end confdefs.h. */
16544 int foo(void) {}
16545 _ACEOF
16546 if ac_fn_c_try_link "$LINENO"; then :
16547 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'
16550 rm -f core conftest.err conftest.$ac_objext \
16551 conftest$ac_exeext conftest.$ac_ext
16552 LDFLAGS="$save_LDFLAGS"
16553 else
16554 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'
16555 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'
16557 archive_cmds_need_lc='no'
16558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16559 hardcode_libdir_separator=:
16560 inherit_rpath=yes
16561 link_all_deplibs=yes
16564 netbsd*)
16565 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16566 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16567 else
16568 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16570 hardcode_libdir_flag_spec='-R$libdir'
16571 hardcode_direct=yes
16572 hardcode_shlibpath_var=no
16575 newsos6)
16576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16577 hardcode_direct=yes
16578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16579 hardcode_libdir_separator=:
16580 hardcode_shlibpath_var=no
16583 *nto* | *qnx*)
16586 openbsd*)
16587 if test -f /usr/libexec/ld.so; then
16588 hardcode_direct=yes
16589 hardcode_shlibpath_var=no
16590 hardcode_direct_absolute=yes
16591 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16593 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16594 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16595 export_dynamic_flag_spec='${wl}-E'
16596 else
16597 case $host_os in
16598 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16600 hardcode_libdir_flag_spec='-R$libdir'
16603 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16604 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16606 esac
16608 else
16609 ld_shlibs=no
16613 os2*)
16614 hardcode_libdir_flag_spec='-L$libdir'
16615 hardcode_minus_L=yes
16616 allow_undefined_flag=unsupported
16617 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'
16618 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16621 osf3*)
16622 if test "$GCC" = yes; then
16623 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16624 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'
16625 else
16626 allow_undefined_flag=' -expect_unresolved \*'
16627 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'
16629 archive_cmds_need_lc='no'
16630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16631 hardcode_libdir_separator=:
16634 osf4* | osf5*) # as osf3* with the addition of -msym flag
16635 if test "$GCC" = yes; then
16636 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16637 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'
16638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16639 else
16640 allow_undefined_flag=' -expect_unresolved \*'
16641 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'
16642 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~
16643 $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'
16645 # Both c and cxx compiler support -rpath directly
16646 hardcode_libdir_flag_spec='-rpath $libdir'
16648 archive_cmds_need_lc='no'
16649 hardcode_libdir_separator=:
16652 solaris*)
16653 no_undefined_flag=' -z defs'
16654 if test "$GCC" = yes; then
16655 wlarc='${wl}'
16656 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16657 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16658 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16659 else
16660 case `$CC -V 2>&1` in
16661 *"Compilers 5.0"*)
16662 wlarc=''
16663 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16665 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16668 wlarc='${wl}'
16669 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16670 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16671 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16673 esac
16675 hardcode_libdir_flag_spec='-R$libdir'
16676 hardcode_shlibpath_var=no
16677 case $host_os in
16678 solaris2.[0-5] | solaris2.[0-5].*) ;;
16680 # The compiler driver will combine and reorder linker options,
16681 # but understands `-z linker_flag'. GCC discards it without `$wl',
16682 # but is careful enough not to reorder.
16683 # Supported since Solaris 2.6 (maybe 2.5.1?)
16684 if test "$GCC" = yes; then
16685 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16686 else
16687 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16690 esac
16691 link_all_deplibs=yes
16694 sunos4*)
16695 if test "x$host_vendor" = xsequent; then
16696 # Use $CC to link under sequent, because it throws in some extra .o
16697 # files that make .init and .fini sections work.
16698 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16699 else
16700 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16702 hardcode_libdir_flag_spec='-L$libdir'
16703 hardcode_direct=yes
16704 hardcode_minus_L=yes
16705 hardcode_shlibpath_var=no
16708 sysv4)
16709 case $host_vendor in
16710 sni)
16711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16712 hardcode_direct=yes # is this really true???
16714 siemens)
16715 ## LD is ld it makes a PLAMLIB
16716 ## CC just makes a GrossModule.
16717 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16718 reload_cmds='$CC -r -o $output$reload_objs'
16719 hardcode_direct=no
16721 motorola)
16722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16723 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16725 esac
16726 runpath_var='LD_RUN_PATH'
16727 hardcode_shlibpath_var=no
16730 sysv4.3*)
16731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16732 hardcode_shlibpath_var=no
16733 export_dynamic_flag_spec='-Bexport'
16736 sysv4*MP*)
16737 if test -d /usr/nec; then
16738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16739 hardcode_shlibpath_var=no
16740 runpath_var=LD_RUN_PATH
16741 hardcode_runpath_var=yes
16742 ld_shlibs=yes
16746 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16747 no_undefined_flag='${wl}-z,text'
16748 archive_cmds_need_lc=no
16749 hardcode_shlibpath_var=no
16750 runpath_var='LD_RUN_PATH'
16752 if test "$GCC" = yes; then
16753 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16754 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16755 else
16756 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16757 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16761 sysv5* | sco3.2v5* | sco5v6*)
16762 # Note: We can NOT use -z defs as we might desire, because we do not
16763 # link with -lc, and that would cause any symbols used from libc to
16764 # always be unresolved, which means just about no library would
16765 # ever link correctly. If we're not using GNU ld we use -z text
16766 # though, which does catch some bad symbols but isn't as heavy-handed
16767 # as -z defs.
16768 no_undefined_flag='${wl}-z,text'
16769 allow_undefined_flag='${wl}-z,nodefs'
16770 archive_cmds_need_lc=no
16771 hardcode_shlibpath_var=no
16772 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16773 hardcode_libdir_separator=':'
16774 link_all_deplibs=yes
16775 export_dynamic_flag_spec='${wl}-Bexport'
16776 runpath_var='LD_RUN_PATH'
16778 if test "$GCC" = yes; then
16779 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16780 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16781 else
16782 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16783 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16787 uts4*)
16788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16789 hardcode_libdir_flag_spec='-L$libdir'
16790 hardcode_shlibpath_var=no
16794 ld_shlibs=no
16796 esac
16798 if test x$host_vendor = xsni; then
16799 case $host in
16800 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16801 export_dynamic_flag_spec='${wl}-Blargedynsym'
16803 esac
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16808 $as_echo "$ld_shlibs" >&6; }
16809 test "$ld_shlibs" = no && can_build_shared=no
16811 with_gnu_ld=$with_gnu_ld
16828 # Do we need to explicitly link libc?
16830 case "x$archive_cmds_need_lc" in
16831 x|xyes)
16832 # Assume -lc should be added
16833 archive_cmds_need_lc=yes
16835 if test "$enable_shared" = yes && test "$GCC" = yes; then
16836 case $archive_cmds in
16837 *'~'*)
16838 # FIXME: we may have to deal with multi-command sequences.
16840 '$CC '*)
16841 # Test whether the compiler implicitly links with -lc since on some
16842 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16843 # to ld, don't add -lc before -lgcc.
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16845 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16846 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16847 $as_echo_n "(cached) " >&6
16848 else
16849 $RM conftest*
16850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16853 (eval $ac_compile) 2>&5
16854 ac_status=$?
16855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16856 test $ac_status = 0; } 2>conftest.err; then
16857 soname=conftest
16858 lib=conftest
16859 libobjs=conftest.$ac_objext
16860 deplibs=
16861 wl=$lt_prog_compiler_wl
16862 pic_flag=$lt_prog_compiler_pic
16863 compiler_flags=-v
16864 linker_flags=-v
16865 verstring=
16866 output_objdir=.
16867 libname=conftest
16868 lt_save_allow_undefined_flag=$allow_undefined_flag
16869 allow_undefined_flag=
16870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16871 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16872 ac_status=$?
16873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16874 test $ac_status = 0; }
16875 then
16876 lt_cv_archive_cmds_need_lc=no
16877 else
16878 lt_cv_archive_cmds_need_lc=yes
16880 allow_undefined_flag=$lt_save_allow_undefined_flag
16881 else
16882 cat conftest.err 1>&5
16884 $RM conftest*
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16888 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16889 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16891 esac
16894 esac
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17053 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17055 if test "$GCC" = yes; then
17056 case $host_os in
17057 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17058 *) lt_awk_arg="/^libraries:/" ;;
17059 esac
17060 case $host_os in
17061 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17062 *) lt_sed_strip_eq="s,=/,/,g" ;;
17063 esac
17064 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17065 case $lt_search_path_spec in
17066 *\;*)
17067 # if the path contains ";" then we assume it to be the separator
17068 # otherwise default to the standard path separator (i.e. ":") - it is
17069 # assumed that no part of a normal pathname contains ";" but that should
17070 # okay in the real world where ";" in dirpaths is itself problematic.
17071 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17074 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17076 esac
17077 # Ok, now we have the path, separated by spaces, we can step through it
17078 # and add multilib dir if necessary.
17079 lt_tmp_lt_search_path_spec=
17080 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17081 for lt_sys_path in $lt_search_path_spec; do
17082 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17083 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17084 else
17085 test -d "$lt_sys_path" && \
17086 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17088 done
17089 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17090 BEGIN {RS=" "; FS="/|\n";} {
17091 lt_foo="";
17092 lt_count=0;
17093 for (lt_i = NF; lt_i > 0; lt_i--) {
17094 if ($lt_i != "" && $lt_i != ".") {
17095 if ($lt_i == "..") {
17096 lt_count++;
17097 } else {
17098 if (lt_count == 0) {
17099 lt_foo="/" $lt_i lt_foo;
17100 } else {
17101 lt_count--;
17106 if (lt_foo != "") { lt_freq[lt_foo]++; }
17107 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17109 # AWK program above erroneously prepends '/' to C:/dos/paths
17110 # for these hosts.
17111 case $host_os in
17112 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17113 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17114 esac
17115 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17116 else
17117 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17119 library_names_spec=
17120 libname_spec='lib$name'
17121 soname_spec=
17122 shrext_cmds=".so"
17123 postinstall_cmds=
17124 postuninstall_cmds=
17125 finish_cmds=
17126 finish_eval=
17127 shlibpath_var=
17128 shlibpath_overrides_runpath=unknown
17129 version_type=none
17130 dynamic_linker="$host_os ld.so"
17131 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17132 need_lib_prefix=unknown
17133 hardcode_into_libs=no
17135 # when you set need_version to no, make sure it does not cause -set_version
17136 # flags to be left without arguments
17137 need_version=unknown
17139 case $host_os in
17140 aix3*)
17141 version_type=linux
17142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17143 shlibpath_var=LIBPATH
17145 # AIX 3 has no versioning support, so we append a major version to the name.
17146 soname_spec='${libname}${release}${shared_ext}$major'
17149 aix[4-9]*)
17150 version_type=linux
17151 need_lib_prefix=no
17152 need_version=no
17153 hardcode_into_libs=yes
17154 if test "$host_cpu" = ia64; then
17155 # AIX 5 supports IA64
17156 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17157 shlibpath_var=LD_LIBRARY_PATH
17158 else
17159 # With GCC up to 2.95.x, collect2 would create an import file
17160 # for dependence libraries. The import file would start with
17161 # the line `#! .'. This would cause the generated library to
17162 # depend on `.', always an invalid library. This was fixed in
17163 # development snapshots of GCC prior to 3.0.
17164 case $host_os in
17165 aix4 | aix4.[01] | aix4.[01].*)
17166 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17167 echo ' yes '
17168 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17170 else
17171 can_build_shared=no
17174 esac
17175 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17176 # soname into executable. Probably we can add versioning support to
17177 # collect2, so additional links can be useful in future.
17178 if test "$aix_use_runtimelinking" = yes; then
17179 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17180 # instead of lib<name>.a to let people know that these are not
17181 # typical AIX shared libraries.
17182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183 else
17184 # We preserve .a as extension for shared libraries through AIX4.2
17185 # and later when we are not doing run time linking.
17186 library_names_spec='${libname}${release}.a $libname.a'
17187 soname_spec='${libname}${release}${shared_ext}$major'
17189 shlibpath_var=LIBPATH
17193 amigaos*)
17194 case $host_cpu in
17195 powerpc)
17196 # Since July 2007 AmigaOS4 officially supports .so libraries.
17197 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17200 m68k)
17201 library_names_spec='$libname.ixlibrary $libname.a'
17202 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17203 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'
17205 esac
17208 beos*)
17209 library_names_spec='${libname}${shared_ext}'
17210 dynamic_linker="$host_os ld.so"
17211 shlibpath_var=LIBRARY_PATH
17214 bsdi[45]*)
17215 version_type=linux
17216 need_version=no
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17218 soname_spec='${libname}${release}${shared_ext}$major'
17219 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17220 shlibpath_var=LD_LIBRARY_PATH
17221 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17222 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17223 # the default ld.so.conf also contains /usr/contrib/lib and
17224 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17225 # libtool to hard-code these into programs
17228 cygwin* | mingw* | pw32* | cegcc*)
17229 version_type=windows
17230 shrext_cmds=".dll"
17231 need_version=no
17232 need_lib_prefix=no
17234 case $GCC,$host_os in
17235 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17236 library_names_spec='$libname.dll.a'
17237 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17238 postinstall_cmds='base_file=`basename \${file}`~
17239 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17240 dldir=$destdir/`dirname \$dlpath`~
17241 test -d \$dldir || mkdir -p \$dldir~
17242 $install_prog $dir/$dlname \$dldir/$dlname~
17243 chmod a+x \$dldir/$dlname~
17244 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17245 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17247 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17248 dlpath=$dir/\$dldll~
17249 $RM \$dlpath'
17250 shlibpath_overrides_runpath=yes
17252 case $host_os in
17253 cygwin*)
17254 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17255 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17257 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17259 mingw* | cegcc*)
17260 # MinGW DLLs use traditional 'lib' prefix
17261 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17263 pw32*)
17264 # pw32 DLLs use 'pw' prefix rather than 'lib'
17265 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17267 esac
17271 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17273 esac
17274 dynamic_linker='Win32 ld.exe'
17275 # FIXME: first we should search . and the directory the executable is in
17276 shlibpath_var=PATH
17279 darwin* | rhapsody*)
17280 dynamic_linker="$host_os dyld"
17281 version_type=darwin
17282 need_lib_prefix=no
17283 need_version=no
17284 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17285 soname_spec='${libname}${release}${major}$shared_ext'
17286 shlibpath_overrides_runpath=yes
17287 shlibpath_var=DYLD_LIBRARY_PATH
17288 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17290 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17291 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17294 dgux*)
17295 version_type=linux
17296 need_lib_prefix=no
17297 need_version=no
17298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17299 soname_spec='${libname}${release}${shared_ext}$major'
17300 shlibpath_var=LD_LIBRARY_PATH
17303 freebsd* | dragonfly*)
17304 # DragonFly does not have aout. When/if they implement a new
17305 # versioning mechanism, adjust this.
17306 if test -x /usr/bin/objformat; then
17307 objformat=`/usr/bin/objformat`
17308 else
17309 case $host_os in
17310 freebsd[23].*) objformat=aout ;;
17311 *) objformat=elf ;;
17312 esac
17314 version_type=freebsd-$objformat
17315 case $version_type in
17316 freebsd-elf*)
17317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17318 need_version=no
17319 need_lib_prefix=no
17321 freebsd-*)
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17323 need_version=yes
17325 esac
17326 shlibpath_var=LD_LIBRARY_PATH
17327 case $host_os in
17328 freebsd2.*)
17329 shlibpath_overrides_runpath=yes
17331 freebsd3.[01]* | freebsdelf3.[01]*)
17332 shlibpath_overrides_runpath=yes
17333 hardcode_into_libs=yes
17335 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17336 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17337 shlibpath_overrides_runpath=no
17338 hardcode_into_libs=yes
17340 *) # from 4.6 on, and DragonFly
17341 shlibpath_overrides_runpath=yes
17342 hardcode_into_libs=yes
17344 esac
17347 gnu*)
17348 version_type=linux
17349 need_lib_prefix=no
17350 need_version=no
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17352 soname_spec='${libname}${release}${shared_ext}$major'
17353 shlibpath_var=LD_LIBRARY_PATH
17354 hardcode_into_libs=yes
17357 haiku*)
17358 version_type=linux
17359 need_lib_prefix=no
17360 need_version=no
17361 dynamic_linker="$host_os runtime_loader"
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17363 soname_spec='${libname}${release}${shared_ext}$major'
17364 shlibpath_var=LIBRARY_PATH
17365 shlibpath_overrides_runpath=yes
17366 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17367 hardcode_into_libs=yes
17370 hpux9* | hpux10* | hpux11*)
17371 # Give a soname corresponding to the major version so that dld.sl refuses to
17372 # link against other versions.
17373 version_type=sunos
17374 need_lib_prefix=no
17375 need_version=no
17376 case $host_cpu in
17377 ia64*)
17378 shrext_cmds='.so'
17379 hardcode_into_libs=yes
17380 dynamic_linker="$host_os dld.so"
17381 shlibpath_var=LD_LIBRARY_PATH
17382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17384 soname_spec='${libname}${release}${shared_ext}$major'
17385 if test "X$HPUX_IA64_MODE" = X32; then
17386 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17387 else
17388 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17392 hppa*64*)
17393 shrext_cmds='.sl'
17394 hardcode_into_libs=yes
17395 dynamic_linker="$host_os dld.sl"
17396 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17399 soname_spec='${libname}${release}${shared_ext}$major'
17400 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17404 shrext_cmds='.sl'
17405 dynamic_linker="$host_os dld.sl"
17406 shlibpath_var=SHLIB_PATH
17407 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409 soname_spec='${libname}${release}${shared_ext}$major'
17411 esac
17412 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17413 postinstall_cmds='chmod 555 $lib'
17414 # or fails outright, so override atomically:
17415 install_override_mode=555
17418 interix[3-9]*)
17419 version_type=linux
17420 need_lib_prefix=no
17421 need_version=no
17422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17423 soname_spec='${libname}${release}${shared_ext}$major'
17424 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17425 shlibpath_var=LD_LIBRARY_PATH
17426 shlibpath_overrides_runpath=no
17427 hardcode_into_libs=yes
17430 irix5* | irix6* | nonstopux*)
17431 case $host_os in
17432 nonstopux*) version_type=nonstopux ;;
17434 if test "$lt_cv_prog_gnu_ld" = yes; then
17435 version_type=linux
17436 else
17437 version_type=irix
17438 fi ;;
17439 esac
17440 need_lib_prefix=no
17441 need_version=no
17442 soname_spec='${libname}${release}${shared_ext}$major'
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17444 case $host_os in
17445 irix5* | nonstopux*)
17446 libsuff= shlibsuff=
17449 case $LD in # libtool.m4 will add one of these switches to LD
17450 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17451 libsuff= shlibsuff= libmagic=32-bit;;
17452 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17453 libsuff=32 shlibsuff=N32 libmagic=N32;;
17454 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17455 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17456 *) libsuff= shlibsuff= libmagic=never-match;;
17457 esac
17459 esac
17460 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17461 shlibpath_overrides_runpath=no
17462 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17463 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17464 hardcode_into_libs=yes
17467 # No shared lib support for Linux oldld, aout, or coff.
17468 linux*oldld* | linux*aout* | linux*coff*)
17469 dynamic_linker=no
17472 # This must be Linux ELF.
17473 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17474 version_type=linux
17475 need_lib_prefix=no
17476 need_version=no
17477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17478 soname_spec='${libname}${release}${shared_ext}$major'
17479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17480 shlibpath_var=LD_LIBRARY_PATH
17481 shlibpath_overrides_runpath=no
17483 # Some binutils ld are patched to set DT_RUNPATH
17484 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17485 $as_echo_n "(cached) " >&6
17486 else
17487 lt_cv_shlibpath_overrides_runpath=no
17488 save_LDFLAGS=$LDFLAGS
17489 save_libdir=$libdir
17490 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17491 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17493 /* end confdefs.h. */
17496 main ()
17500 return 0;
17502 _ACEOF
17503 if ac_fn_c_try_link "$LINENO"; then :
17504 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17505 lt_cv_shlibpath_overrides_runpath=yes
17508 rm -f core conftest.err conftest.$ac_objext \
17509 conftest$ac_exeext conftest.$ac_ext
17510 LDFLAGS=$save_LDFLAGS
17511 libdir=$save_libdir
17515 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17517 # This implies no fast_install, which is unacceptable.
17518 # Some rework will be needed to allow for fast_install
17519 # before this can be enabled.
17520 hardcode_into_libs=yes
17522 # Append ld.so.conf contents to the search path
17523 if test -f /etc/ld.so.conf; then
17524 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' ' '`
17525 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17528 # We used to test for /lib/ld.so.1 and disable shared libraries on
17529 # powerpc, because MkLinux only supported shared libraries with the
17530 # GNU dynamic linker. Since this was broken with cross compilers,
17531 # most powerpc-linux boxes support dynamic linking these days and
17532 # people can always --disable-shared, the test was removed, and we
17533 # assume the GNU/Linux dynamic linker is in use.
17534 dynamic_linker='GNU/Linux ld.so'
17537 netbsd*)
17538 version_type=sunos
17539 need_lib_prefix=no
17540 need_version=no
17541 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17544 dynamic_linker='NetBSD (a.out) ld.so'
17545 else
17546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17547 soname_spec='${libname}${release}${shared_ext}$major'
17548 dynamic_linker='NetBSD ld.elf_so'
17550 shlibpath_var=LD_LIBRARY_PATH
17551 shlibpath_overrides_runpath=yes
17552 hardcode_into_libs=yes
17555 newsos6)
17556 version_type=linux
17557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17558 shlibpath_var=LD_LIBRARY_PATH
17559 shlibpath_overrides_runpath=yes
17562 *nto* | *qnx*)
17563 version_type=qnx
17564 need_lib_prefix=no
17565 need_version=no
17566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567 soname_spec='${libname}${release}${shared_ext}$major'
17568 shlibpath_var=LD_LIBRARY_PATH
17569 shlibpath_overrides_runpath=no
17570 hardcode_into_libs=yes
17571 dynamic_linker='ldqnx.so'
17574 openbsd*)
17575 version_type=sunos
17576 sys_lib_dlsearch_path_spec="/usr/lib"
17577 need_lib_prefix=no
17578 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17579 case $host_os in
17580 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17581 *) need_version=no ;;
17582 esac
17583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17585 shlibpath_var=LD_LIBRARY_PATH
17586 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17587 case $host_os in
17588 openbsd2.[89] | openbsd2.[89].*)
17589 shlibpath_overrides_runpath=no
17592 shlibpath_overrides_runpath=yes
17594 esac
17595 else
17596 shlibpath_overrides_runpath=yes
17600 os2*)
17601 libname_spec='$name'
17602 shrext_cmds=".dll"
17603 need_lib_prefix=no
17604 library_names_spec='$libname${shared_ext} $libname.a'
17605 dynamic_linker='OS/2 ld.exe'
17606 shlibpath_var=LIBPATH
17609 osf3* | osf4* | osf5*)
17610 version_type=osf
17611 need_lib_prefix=no
17612 need_version=no
17613 soname_spec='${libname}${release}${shared_ext}$major'
17614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17615 shlibpath_var=LD_LIBRARY_PATH
17616 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17617 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17620 rdos*)
17621 dynamic_linker=no
17624 solaris*)
17625 version_type=linux
17626 need_lib_prefix=no
17627 need_version=no
17628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17629 soname_spec='${libname}${release}${shared_ext}$major'
17630 shlibpath_var=LD_LIBRARY_PATH
17631 shlibpath_overrides_runpath=yes
17632 hardcode_into_libs=yes
17633 # ldd complains unless libraries are executable
17634 postinstall_cmds='chmod +x $lib'
17637 sunos4*)
17638 version_type=sunos
17639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17640 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17641 shlibpath_var=LD_LIBRARY_PATH
17642 shlibpath_overrides_runpath=yes
17643 if test "$with_gnu_ld" = yes; then
17644 need_lib_prefix=no
17646 need_version=yes
17649 sysv4 | sysv4.3*)
17650 version_type=linux
17651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17652 soname_spec='${libname}${release}${shared_ext}$major'
17653 shlibpath_var=LD_LIBRARY_PATH
17654 case $host_vendor in
17655 sni)
17656 shlibpath_overrides_runpath=no
17657 need_lib_prefix=no
17658 runpath_var=LD_RUN_PATH
17660 siemens)
17661 need_lib_prefix=no
17663 motorola)
17664 need_lib_prefix=no
17665 need_version=no
17666 shlibpath_overrides_runpath=no
17667 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17669 esac
17672 sysv4*MP*)
17673 if test -d /usr/nec ;then
17674 version_type=linux
17675 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17676 soname_spec='$libname${shared_ext}.$major'
17677 shlibpath_var=LD_LIBRARY_PATH
17681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17682 version_type=freebsd-elf
17683 need_lib_prefix=no
17684 need_version=no
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17686 soname_spec='${libname}${release}${shared_ext}$major'
17687 shlibpath_var=LD_LIBRARY_PATH
17688 shlibpath_overrides_runpath=yes
17689 hardcode_into_libs=yes
17690 if test "$with_gnu_ld" = yes; then
17691 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17692 else
17693 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17694 case $host_os in
17695 sco3.2v5*)
17696 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17698 esac
17700 sys_lib_dlsearch_path_spec='/usr/lib'
17703 tpf*)
17704 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17705 version_type=linux
17706 need_lib_prefix=no
17707 need_version=no
17708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17709 shlibpath_var=LD_LIBRARY_PATH
17710 shlibpath_overrides_runpath=no
17711 hardcode_into_libs=yes
17714 uts4*)
17715 version_type=linux
17716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17717 soname_spec='${libname}${release}${shared_ext}$major'
17718 shlibpath_var=LD_LIBRARY_PATH
17722 dynamic_linker=no
17724 esac
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17726 $as_echo "$dynamic_linker" >&6; }
17727 test "$dynamic_linker" = no && can_build_shared=no
17729 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17730 if test "$GCC" = yes; then
17731 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17734 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17735 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17737 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17738 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17833 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17834 hardcode_action=
17835 if test -n "$hardcode_libdir_flag_spec" ||
17836 test -n "$runpath_var" ||
17837 test "X$hardcode_automatic" = "Xyes" ; then
17839 # We can hardcode non-existent directories.
17840 if test "$hardcode_direct" != no &&
17841 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17842 # have to relink, otherwise we might link with an installed library
17843 # when we should be linking with a yet-to-be-installed one
17844 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17845 test "$hardcode_minus_L" != no; then
17846 # Linking always hardcodes the temporary library directory.
17847 hardcode_action=relink
17848 else
17849 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17850 hardcode_action=immediate
17852 else
17853 # We cannot hardcode anything, or else we can only hardcode existing
17854 # directories.
17855 hardcode_action=unsupported
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17858 $as_echo "$hardcode_action" >&6; }
17860 if test "$hardcode_action" = relink ||
17861 test "$inherit_rpath" = yes; then
17862 # Fast installation is not supported
17863 enable_fast_install=no
17864 elif test "$shlibpath_overrides_runpath" = yes ||
17865 test "$enable_shared" = no; then
17866 # Fast installation is not necessary
17867 enable_fast_install=needless
17875 if test "x$enable_dlopen" != xyes; then
17876 enable_dlopen=unknown
17877 enable_dlopen_self=unknown
17878 enable_dlopen_self_static=unknown
17879 else
17880 lt_cv_dlopen=no
17881 lt_cv_dlopen_libs=
17883 case $host_os in
17884 beos*)
17885 lt_cv_dlopen="load_add_on"
17886 lt_cv_dlopen_libs=
17887 lt_cv_dlopen_self=yes
17890 mingw* | pw32* | cegcc*)
17891 lt_cv_dlopen="LoadLibrary"
17892 lt_cv_dlopen_libs=
17895 cygwin*)
17896 lt_cv_dlopen="dlopen"
17897 lt_cv_dlopen_libs=
17900 darwin*)
17901 # if libdl is installed we need to link against it
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17903 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17904 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17905 $as_echo_n "(cached) " >&6
17906 else
17907 ac_check_lib_save_LIBS=$LIBS
17908 LIBS="-ldl $LIBS"
17909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17910 /* end confdefs.h. */
17912 /* Override any GCC internal prototype to avoid an error.
17913 Use char because int might match the return type of a GCC
17914 builtin and then its argument prototype would still apply. */
17915 #ifdef __cplusplus
17916 extern "C"
17917 #endif
17918 char dlopen ();
17920 main ()
17922 return dlopen ();
17924 return 0;
17926 _ACEOF
17927 if ac_fn_c_try_link "$LINENO"; then :
17928 ac_cv_lib_dl_dlopen=yes
17929 else
17930 ac_cv_lib_dl_dlopen=no
17932 rm -f core conftest.err conftest.$ac_objext \
17933 conftest$ac_exeext conftest.$ac_ext
17934 LIBS=$ac_check_lib_save_LIBS
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17937 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17938 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17939 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17940 else
17942 lt_cv_dlopen="dyld"
17943 lt_cv_dlopen_libs=
17944 lt_cv_dlopen_self=yes
17951 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17952 if test "x$ac_cv_func_shl_load" = x""yes; then :
17953 lt_cv_dlopen="shl_load"
17954 else
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17956 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17957 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17958 $as_echo_n "(cached) " >&6
17959 else
17960 ac_check_lib_save_LIBS=$LIBS
17961 LIBS="-ldld $LIBS"
17962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963 /* end confdefs.h. */
17965 /* Override any GCC internal prototype to avoid an error.
17966 Use char because int might match the return type of a GCC
17967 builtin and then its argument prototype would still apply. */
17968 #ifdef __cplusplus
17969 extern "C"
17970 #endif
17971 char shl_load ();
17973 main ()
17975 return shl_load ();
17977 return 0;
17979 _ACEOF
17980 if ac_fn_c_try_link "$LINENO"; then :
17981 ac_cv_lib_dld_shl_load=yes
17982 else
17983 ac_cv_lib_dld_shl_load=no
17985 rm -f core conftest.err conftest.$ac_objext \
17986 conftest$ac_exeext conftest.$ac_ext
17987 LIBS=$ac_check_lib_save_LIBS
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17990 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17991 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17992 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17993 else
17994 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17995 if test "x$ac_cv_func_dlopen" = x""yes; then :
17996 lt_cv_dlopen="dlopen"
17997 else
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17999 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18000 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18001 $as_echo_n "(cached) " >&6
18002 else
18003 ac_check_lib_save_LIBS=$LIBS
18004 LIBS="-ldl $LIBS"
18005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18006 /* end confdefs.h. */
18008 /* Override any GCC internal prototype to avoid an error.
18009 Use char because int might match the return type of a GCC
18010 builtin and then its argument prototype would still apply. */
18011 #ifdef __cplusplus
18012 extern "C"
18013 #endif
18014 char dlopen ();
18016 main ()
18018 return dlopen ();
18020 return 0;
18022 _ACEOF
18023 if ac_fn_c_try_link "$LINENO"; then :
18024 ac_cv_lib_dl_dlopen=yes
18025 else
18026 ac_cv_lib_dl_dlopen=no
18028 rm -f core conftest.err conftest.$ac_objext \
18029 conftest$ac_exeext conftest.$ac_ext
18030 LIBS=$ac_check_lib_save_LIBS
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18033 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18034 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18035 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18036 else
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18038 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18039 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18040 $as_echo_n "(cached) " >&6
18041 else
18042 ac_check_lib_save_LIBS=$LIBS
18043 LIBS="-lsvld $LIBS"
18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18047 /* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18050 #ifdef __cplusplus
18051 extern "C"
18052 #endif
18053 char dlopen ();
18055 main ()
18057 return dlopen ();
18059 return 0;
18061 _ACEOF
18062 if ac_fn_c_try_link "$LINENO"; then :
18063 ac_cv_lib_svld_dlopen=yes
18064 else
18065 ac_cv_lib_svld_dlopen=no
18067 rm -f core conftest.err conftest.$ac_objext \
18068 conftest$ac_exeext conftest.$ac_ext
18069 LIBS=$ac_check_lib_save_LIBS
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18072 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18073 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18075 else
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18077 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18078 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18079 $as_echo_n "(cached) " >&6
18080 else
18081 ac_check_lib_save_LIBS=$LIBS
18082 LIBS="-ldld $LIBS"
18083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18084 /* end confdefs.h. */
18086 /* Override any GCC internal prototype to avoid an error.
18087 Use char because int might match the return type of a GCC
18088 builtin and then its argument prototype would still apply. */
18089 #ifdef __cplusplus
18090 extern "C"
18091 #endif
18092 char dld_link ();
18094 main ()
18096 return dld_link ();
18098 return 0;
18100 _ACEOF
18101 if ac_fn_c_try_link "$LINENO"; then :
18102 ac_cv_lib_dld_dld_link=yes
18103 else
18104 ac_cv_lib_dld_dld_link=no
18106 rm -f core conftest.err conftest.$ac_objext \
18107 conftest$ac_exeext conftest.$ac_ext
18108 LIBS=$ac_check_lib_save_LIBS
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18111 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18112 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18113 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18132 esac
18134 if test "x$lt_cv_dlopen" != xno; then
18135 enable_dlopen=yes
18136 else
18137 enable_dlopen=no
18140 case $lt_cv_dlopen in
18141 dlopen)
18142 save_CPPFLAGS="$CPPFLAGS"
18143 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18145 save_LDFLAGS="$LDFLAGS"
18146 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18148 save_LIBS="$LIBS"
18149 LIBS="$lt_cv_dlopen_libs $LIBS"
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18152 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18153 if test "${lt_cv_dlopen_self+set}" = set; then :
18154 $as_echo_n "(cached) " >&6
18155 else
18156 if test "$cross_compiling" = yes; then :
18157 lt_cv_dlopen_self=cross
18158 else
18159 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18160 lt_status=$lt_dlunknown
18161 cat > conftest.$ac_ext <<_LT_EOF
18162 #line 18162 "configure"
18163 #include "confdefs.h"
18165 #if HAVE_DLFCN_H
18166 #include <dlfcn.h>
18167 #endif
18169 #include <stdio.h>
18171 #ifdef RTLD_GLOBAL
18172 # define LT_DLGLOBAL RTLD_GLOBAL
18173 #else
18174 # ifdef DL_GLOBAL
18175 # define LT_DLGLOBAL DL_GLOBAL
18176 # else
18177 # define LT_DLGLOBAL 0
18178 # endif
18179 #endif
18181 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18182 find out it does not work in some platform. */
18183 #ifndef LT_DLLAZY_OR_NOW
18184 # ifdef RTLD_LAZY
18185 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18186 # else
18187 # ifdef DL_LAZY
18188 # define LT_DLLAZY_OR_NOW DL_LAZY
18189 # else
18190 # ifdef RTLD_NOW
18191 # define LT_DLLAZY_OR_NOW RTLD_NOW
18192 # else
18193 # ifdef DL_NOW
18194 # define LT_DLLAZY_OR_NOW DL_NOW
18195 # else
18196 # define LT_DLLAZY_OR_NOW 0
18197 # endif
18198 # endif
18199 # endif
18200 # endif
18201 #endif
18203 /* When -fvisbility=hidden is used, assume the code has been annotated
18204 correspondingly for the symbols needed. */
18205 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18206 void fnord () __attribute__((visibility("default")));
18207 #endif
18209 void fnord () { int i=42; }
18210 int main ()
18212 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18213 int status = $lt_dlunknown;
18215 if (self)
18217 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18218 else
18220 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18221 else puts (dlerror ());
18223 /* dlclose (self); */
18225 else
18226 puts (dlerror ());
18228 return status;
18230 _LT_EOF
18231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18232 (eval $ac_link) 2>&5
18233 ac_status=$?
18234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18235 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18236 (./conftest; exit; ) >&5 2>/dev/null
18237 lt_status=$?
18238 case x$lt_status in
18239 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18240 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18241 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18242 esac
18243 else :
18244 # compilation failed
18245 lt_cv_dlopen_self=no
18248 rm -fr conftest*
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18253 $as_echo "$lt_cv_dlopen_self" >&6; }
18255 if test "x$lt_cv_dlopen_self" = xyes; then
18256 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18258 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18259 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18260 $as_echo_n "(cached) " >&6
18261 else
18262 if test "$cross_compiling" = yes; then :
18263 lt_cv_dlopen_self_static=cross
18264 else
18265 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18266 lt_status=$lt_dlunknown
18267 cat > conftest.$ac_ext <<_LT_EOF
18268 #line 18268 "configure"
18269 #include "confdefs.h"
18271 #if HAVE_DLFCN_H
18272 #include <dlfcn.h>
18273 #endif
18275 #include <stdio.h>
18277 #ifdef RTLD_GLOBAL
18278 # define LT_DLGLOBAL RTLD_GLOBAL
18279 #else
18280 # ifdef DL_GLOBAL
18281 # define LT_DLGLOBAL DL_GLOBAL
18282 # else
18283 # define LT_DLGLOBAL 0
18284 # endif
18285 #endif
18287 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18288 find out it does not work in some platform. */
18289 #ifndef LT_DLLAZY_OR_NOW
18290 # ifdef RTLD_LAZY
18291 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18292 # else
18293 # ifdef DL_LAZY
18294 # define LT_DLLAZY_OR_NOW DL_LAZY
18295 # else
18296 # ifdef RTLD_NOW
18297 # define LT_DLLAZY_OR_NOW RTLD_NOW
18298 # else
18299 # ifdef DL_NOW
18300 # define LT_DLLAZY_OR_NOW DL_NOW
18301 # else
18302 # define LT_DLLAZY_OR_NOW 0
18303 # endif
18304 # endif
18305 # endif
18306 # endif
18307 #endif
18309 /* When -fvisbility=hidden is used, assume the code has been annotated
18310 correspondingly for the symbols needed. */
18311 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18312 void fnord () __attribute__((visibility("default")));
18313 #endif
18315 void fnord () { int i=42; }
18316 int main ()
18318 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18319 int status = $lt_dlunknown;
18321 if (self)
18323 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18324 else
18326 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18327 else puts (dlerror ());
18329 /* dlclose (self); */
18331 else
18332 puts (dlerror ());
18334 return status;
18336 _LT_EOF
18337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18338 (eval $ac_link) 2>&5
18339 ac_status=$?
18340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18341 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18342 (./conftest; exit; ) >&5 2>/dev/null
18343 lt_status=$?
18344 case x$lt_status in
18345 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18346 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18347 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18348 esac
18349 else :
18350 # compilation failed
18351 lt_cv_dlopen_self_static=no
18354 rm -fr conftest*
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18359 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18362 CPPFLAGS="$save_CPPFLAGS"
18363 LDFLAGS="$save_LDFLAGS"
18364 LIBS="$save_LIBS"
18366 esac
18368 case $lt_cv_dlopen_self in
18369 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18370 *) enable_dlopen_self=unknown ;;
18371 esac
18373 case $lt_cv_dlopen_self_static in
18374 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18375 *) enable_dlopen_self_static=unknown ;;
18376 esac
18395 striplib=
18396 old_striplib=
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18398 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18399 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18400 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18401 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18403 $as_echo "yes" >&6; }
18404 else
18405 # FIXME - insert some real tests, host_os isn't really good enough
18406 case $host_os in
18407 darwin*)
18408 if test -n "$STRIP" ; then
18409 striplib="$STRIP -x"
18410 old_striplib="$STRIP -S"
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18412 $as_echo "yes" >&6; }
18413 else
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18415 $as_echo "no" >&6; }
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18420 $as_echo "no" >&6; }
18422 esac
18436 # Report which library types will actually be built
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18438 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18440 $as_echo "$can_build_shared" >&6; }
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18443 $as_echo_n "checking whether to build shared libraries... " >&6; }
18444 test "$can_build_shared" = "no" && enable_shared=no
18446 # On AIX, shared libraries and static libraries use the same namespace, and
18447 # are all built from PIC.
18448 case $host_os in
18449 aix3*)
18450 test "$enable_shared" = yes && enable_static=no
18451 if test -n "$RANLIB"; then
18452 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18453 postinstall_cmds='$RANLIB $lib'
18457 aix[4-9]*)
18458 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18459 test "$enable_shared" = yes && enable_static=no
18462 esac
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18464 $as_echo "$enable_shared" >&6; }
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18467 $as_echo_n "checking whether to build static libraries... " >&6; }
18468 # Make sure either enable_shared or enable_static is yes.
18469 test "$enable_shared" = yes || enable_static=yes
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18471 $as_echo "$enable_static" >&6; }
18477 ac_ext=c
18478 ac_cpp='$CPP $CPPFLAGS'
18479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18483 CC="$lt_save_CC"
18485 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18486 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18487 (test "X$CXX" != "Xg++"))) ; then
18488 ac_ext=cpp
18489 ac_cpp='$CXXCPP $CPPFLAGS'
18490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18494 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18495 if test -z "$CXXCPP"; then
18496 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18497 $as_echo_n "(cached) " >&6
18498 else
18499 # Double quotes because CXXCPP needs to be expanded
18500 for CXXCPP in "$CXX -E" "/lib/cpp"
18502 ac_preproc_ok=false
18503 for ac_cxx_preproc_warn_flag in '' yes
18505 # Use a header file that comes with gcc, so configuring glibc
18506 # with a fresh cross-compiler works.
18507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18508 # <limits.h> exists even on freestanding compilers.
18509 # On the NeXT, cc -E runs the code through the compiler's parser,
18510 # not just through cpp. "Syntax error" is here to catch this case.
18511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18513 #ifdef __STDC__
18514 # include <limits.h>
18515 #else
18516 # include <assert.h>
18517 #endif
18518 Syntax error
18519 _ACEOF
18520 if ac_fn_cxx_try_cpp "$LINENO"; then :
18522 else
18523 # Broken: fails on valid input.
18524 continue
18526 rm -f conftest.err conftest.$ac_ext
18528 # OK, works on sane cases. Now check whether nonexistent headers
18529 # can be detected and how.
18530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18531 /* end confdefs.h. */
18532 #include <ac_nonexistent.h>
18533 _ACEOF
18534 if ac_fn_cxx_try_cpp "$LINENO"; then :
18535 # Broken: success on invalid input.
18536 continue
18537 else
18538 # Passes both tests.
18539 ac_preproc_ok=:
18540 break
18542 rm -f conftest.err conftest.$ac_ext
18544 done
18545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18546 rm -f conftest.err conftest.$ac_ext
18547 if $ac_preproc_ok; then :
18548 break
18551 done
18552 ac_cv_prog_CXXCPP=$CXXCPP
18555 CXXCPP=$ac_cv_prog_CXXCPP
18556 else
18557 ac_cv_prog_CXXCPP=$CXXCPP
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18560 $as_echo "$CXXCPP" >&6; }
18561 ac_preproc_ok=false
18562 for ac_cxx_preproc_warn_flag in '' yes
18564 # Use a header file that comes with gcc, so configuring glibc
18565 # with a fresh cross-compiler works.
18566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18567 # <limits.h> exists even on freestanding compilers.
18568 # On the NeXT, cc -E runs the code through the compiler's parser,
18569 # not just through cpp. "Syntax error" is here to catch this case.
18570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571 /* end confdefs.h. */
18572 #ifdef __STDC__
18573 # include <limits.h>
18574 #else
18575 # include <assert.h>
18576 #endif
18577 Syntax error
18578 _ACEOF
18579 if ac_fn_cxx_try_cpp "$LINENO"; then :
18581 else
18582 # Broken: fails on valid input.
18583 continue
18585 rm -f conftest.err conftest.$ac_ext
18587 # OK, works on sane cases. Now check whether nonexistent headers
18588 # can be detected and how.
18589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h. */
18591 #include <ac_nonexistent.h>
18592 _ACEOF
18593 if ac_fn_cxx_try_cpp "$LINENO"; then :
18594 # Broken: success on invalid input.
18595 continue
18596 else
18597 # Passes both tests.
18598 ac_preproc_ok=:
18599 break
18601 rm -f conftest.err conftest.$ac_ext
18603 done
18604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18605 rm -f conftest.err conftest.$ac_ext
18606 if $ac_preproc_ok; then :
18608 else
18609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18611 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18612 See \`config.log' for more details." "$LINENO" 5; }
18615 ac_ext=c
18616 ac_cpp='$CPP $CPPFLAGS'
18617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18621 else
18622 _lt_caught_CXX_error=yes
18625 ac_ext=cpp
18626 ac_cpp='$CXXCPP $CPPFLAGS'
18627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18631 archive_cmds_need_lc_CXX=no
18632 allow_undefined_flag_CXX=
18633 always_export_symbols_CXX=no
18634 archive_expsym_cmds_CXX=
18635 compiler_needs_object_CXX=no
18636 export_dynamic_flag_spec_CXX=
18637 hardcode_direct_CXX=no
18638 hardcode_direct_absolute_CXX=no
18639 hardcode_libdir_flag_spec_CXX=
18640 hardcode_libdir_flag_spec_ld_CXX=
18641 hardcode_libdir_separator_CXX=
18642 hardcode_minus_L_CXX=no
18643 hardcode_shlibpath_var_CXX=unsupported
18644 hardcode_automatic_CXX=no
18645 inherit_rpath_CXX=no
18646 module_cmds_CXX=
18647 module_expsym_cmds_CXX=
18648 link_all_deplibs_CXX=unknown
18649 old_archive_cmds_CXX=$old_archive_cmds
18650 reload_flag_CXX=$reload_flag
18651 reload_cmds_CXX=$reload_cmds
18652 no_undefined_flag_CXX=
18653 whole_archive_flag_spec_CXX=
18654 enable_shared_with_static_runtimes_CXX=no
18656 # Source file extension for C++ test sources.
18657 ac_ext=cpp
18659 # Object file extension for compiled C++ test sources.
18660 objext=o
18661 objext_CXX=$objext
18663 # No sense in running all these tests if we already determined that
18664 # the CXX compiler isn't working. Some variables (like enable_shared)
18665 # are currently assumed to apply to all compilers on this platform,
18666 # and will be corrupted by setting them based on a non-working compiler.
18667 if test "$_lt_caught_CXX_error" != yes; then
18668 # Code to be used in simple compile tests
18669 lt_simple_compile_test_code="int some_variable = 0;"
18671 # Code to be used in simple link tests
18672 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18674 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18681 # If no C compiler was specified, use CC.
18682 LTCC=${LTCC-"$CC"}
18684 # If no C compiler flags were specified, use CFLAGS.
18685 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18687 # Allow CC to be a program name with arguments.
18688 compiler=$CC
18691 # save warnings/boilerplate of simple test code
18692 ac_outfile=conftest.$ac_objext
18693 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18694 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18695 _lt_compiler_boilerplate=`cat conftest.err`
18696 $RM conftest*
18698 ac_outfile=conftest.$ac_objext
18699 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18700 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18701 _lt_linker_boilerplate=`cat conftest.err`
18702 $RM -r conftest*
18705 # Allow CC to be a program name with arguments.
18706 lt_save_CC=$CC
18707 lt_save_LD=$LD
18708 lt_save_GCC=$GCC
18709 GCC=$GXX
18710 lt_save_with_gnu_ld=$with_gnu_ld
18711 lt_save_path_LD=$lt_cv_path_LD
18712 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18713 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18714 else
18715 $as_unset lt_cv_prog_gnu_ld
18717 if test -n "${lt_cv_path_LDCXX+set}"; then
18718 lt_cv_path_LD=$lt_cv_path_LDCXX
18719 else
18720 $as_unset lt_cv_path_LD
18722 test -z "${LDCXX+set}" || LD=$LDCXX
18723 CC=${CXX-"c++"}
18724 compiler=$CC
18725 compiler_CXX=$CC
18726 for cc_temp in $compiler""; do
18727 case $cc_temp in
18728 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18729 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18730 \-*) ;;
18731 *) break;;
18732 esac
18733 done
18734 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18737 if test -n "$compiler"; then
18738 # We don't want -fno-exception when compiling C++ code, so set the
18739 # no_builtin_flag separately
18740 if test "$GXX" = yes; then
18741 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18742 else
18743 lt_prog_compiler_no_builtin_flag_CXX=
18746 if test "$GXX" = yes; then
18747 # Set up default GNU C++ configuration
18751 # Check whether --with-gnu-ld was given.
18752 if test "${with_gnu_ld+set}" = set; then :
18753 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18754 else
18755 with_gnu_ld=no
18758 ac_prog=ld
18759 if test "$GCC" = yes; then
18760 # Check if gcc -print-prog-name=ld gives a path.
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18762 $as_echo_n "checking for ld used by $CC... " >&6; }
18763 case $host in
18764 *-*-mingw*)
18765 # gcc leaves a trailing carriage return which upsets mingw
18766 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18768 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18769 esac
18770 case $ac_prog in
18771 # Accept absolute paths.
18772 [\\/]* | ?:[\\/]*)
18773 re_direlt='/[^/][^/]*/\.\./'
18774 # Canonicalize the pathname of ld
18775 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18776 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18777 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18778 done
18779 test -z "$LD" && LD="$ac_prog"
18782 # If it fails, then pretend we aren't using GCC.
18783 ac_prog=ld
18786 # If it is relative, then search for the first ld in PATH.
18787 with_gnu_ld=unknown
18789 esac
18790 elif test "$with_gnu_ld" = yes; then
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18792 $as_echo_n "checking for GNU ld... " >&6; }
18793 else
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18795 $as_echo_n "checking for non-GNU ld... " >&6; }
18797 if test "${lt_cv_path_LD+set}" = set; then :
18798 $as_echo_n "(cached) " >&6
18799 else
18800 if test -z "$LD"; then
18801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18802 for ac_dir in $PATH; do
18803 IFS="$lt_save_ifs"
18804 test -z "$ac_dir" && ac_dir=.
18805 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18806 lt_cv_path_LD="$ac_dir/$ac_prog"
18807 # Check to see if the program is GNU ld. I'd rather use --version,
18808 # but apparently some variants of GNU ld only accept -v.
18809 # Break only if it was the GNU/non-GNU ld that we prefer.
18810 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18811 *GNU* | *'with BFD'*)
18812 test "$with_gnu_ld" != no && break
18815 test "$with_gnu_ld" != yes && break
18817 esac
18819 done
18820 IFS="$lt_save_ifs"
18821 else
18822 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18826 LD="$lt_cv_path_LD"
18827 if test -n "$LD"; then
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18829 $as_echo "$LD" >&6; }
18830 else
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18832 $as_echo "no" >&6; }
18834 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18836 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18837 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18838 $as_echo_n "(cached) " >&6
18839 else
18840 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18841 case `$LD -v 2>&1 </dev/null` in
18842 *GNU* | *'with BFD'*)
18843 lt_cv_prog_gnu_ld=yes
18846 lt_cv_prog_gnu_ld=no
18848 esac
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18851 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18852 with_gnu_ld=$lt_cv_prog_gnu_ld
18860 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18861 # archiving commands below assume that GNU ld is being used.
18862 if test "$with_gnu_ld" = yes; then
18863 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18864 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'
18866 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18867 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18869 # If archive_cmds runs LD, not CC, wlarc should be empty
18870 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18871 # investigate it a little bit more. (MM)
18872 wlarc='${wl}'
18874 # ancient GNU ld didn't support --whole-archive et. al.
18875 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18876 $GREP 'no-whole-archive' > /dev/null; then
18877 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18878 else
18879 whole_archive_flag_spec_CXX=
18881 else
18882 with_gnu_ld=no
18883 wlarc=
18885 # A generic and very simple default shared library creation
18886 # command for GNU C++ for the case where it uses the native
18887 # linker, instead of GNU ld. If possible, this setting should
18888 # overridden to take advantage of the native linker features on
18889 # the platform it is being used on.
18890 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18893 # Commands to make compiler produce verbose output that lists
18894 # what "hidden" libraries, object files and flags are used when
18895 # linking a shared library.
18896 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18898 else
18899 GXX=no
18900 with_gnu_ld=no
18901 wlarc=
18904 # PORTME: fill in a description of your system's C++ link characteristics
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18906 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18907 ld_shlibs_CXX=yes
18908 case $host_os in
18909 aix3*)
18910 # FIXME: insert proper C++ library support
18911 ld_shlibs_CXX=no
18913 aix[4-9]*)
18914 if test "$host_cpu" = ia64; then
18915 # On IA64, the linker does run time linking by default, so we don't
18916 # have to do anything special.
18917 aix_use_runtimelinking=no
18918 exp_sym_flag='-Bexport'
18919 no_entry_flag=""
18920 else
18921 aix_use_runtimelinking=no
18923 # Test if we are trying to use run time linking or normal
18924 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18925 # need to do runtime linking.
18926 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18927 for ld_flag in $LDFLAGS; do
18928 case $ld_flag in
18929 *-brtl*)
18930 aix_use_runtimelinking=yes
18931 break
18933 esac
18934 done
18936 esac
18938 exp_sym_flag='-bexport'
18939 no_entry_flag='-bnoentry'
18942 # When large executables or shared objects are built, AIX ld can
18943 # have problems creating the table of contents. If linking a library
18944 # or program results in "error TOC overflow" add -mminimal-toc to
18945 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18946 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18948 archive_cmds_CXX=''
18949 hardcode_direct_CXX=yes
18950 hardcode_direct_absolute_CXX=yes
18951 hardcode_libdir_separator_CXX=':'
18952 link_all_deplibs_CXX=yes
18953 file_list_spec_CXX='${wl}-f,'
18955 if test "$GXX" = yes; then
18956 case $host_os in aix4.[012]|aix4.[012].*)
18957 # We only want to do this on AIX 4.2 and lower, the check
18958 # below for broken collect2 doesn't work under 4.3+
18959 collect2name=`${CC} -print-prog-name=collect2`
18960 if test -f "$collect2name" &&
18961 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18962 then
18963 # We have reworked collect2
18965 else
18966 # We have old collect2
18967 hardcode_direct_CXX=unsupported
18968 # It fails to find uninstalled libraries when the uninstalled
18969 # path is not listed in the libpath. Setting hardcode_minus_L
18970 # to unsupported forces relinking
18971 hardcode_minus_L_CXX=yes
18972 hardcode_libdir_flag_spec_CXX='-L$libdir'
18973 hardcode_libdir_separator_CXX=
18975 esac
18976 shared_flag='-shared'
18977 if test "$aix_use_runtimelinking" = yes; then
18978 shared_flag="$shared_flag "'${wl}-G'
18980 else
18981 # not using gcc
18982 if test "$host_cpu" = ia64; then
18983 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18984 # chokes on -Wl,-G. The following line is correct:
18985 shared_flag='-G'
18986 else
18987 if test "$aix_use_runtimelinking" = yes; then
18988 shared_flag='${wl}-G'
18989 else
18990 shared_flag='${wl}-bM:SRE'
18995 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18996 # It seems that -bexpall does not export symbols beginning with
18997 # underscore (_), so it is better to generate a list of symbols to
18998 # export.
18999 always_export_symbols_CXX=yes
19000 if test "$aix_use_runtimelinking" = yes; then
19001 # Warning - without using the other runtime loading flags (-brtl),
19002 # -berok will link without error, but may produce a broken library.
19003 allow_undefined_flag_CXX='-berok'
19004 # Determine the default libpath from the value encoded in an empty
19005 # executable.
19006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19007 /* end confdefs.h. */
19010 main ()
19014 return 0;
19016 _ACEOF
19017 if ac_fn_cxx_try_link "$LINENO"; then :
19019 lt_aix_libpath_sed='
19020 /Import File Strings/,/^$/ {
19021 /^0/ {
19022 s/^0 *\(.*\)$/\1/
19026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19027 # Check for a 64-bit object if we didn't find anything.
19028 if test -z "$aix_libpath"; then
19029 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19032 rm -f core conftest.err conftest.$ac_objext \
19033 conftest$ac_exeext conftest.$ac_ext
19034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19036 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19038 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"
19039 else
19040 if test "$host_cpu" = ia64; then
19041 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19042 allow_undefined_flag_CXX="-z nodefs"
19043 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"
19044 else
19045 # Determine the default libpath from the value encoded in an
19046 # empty executable.
19047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h. */
19051 main ()
19055 return 0;
19057 _ACEOF
19058 if ac_fn_cxx_try_link "$LINENO"; then :
19060 lt_aix_libpath_sed='
19061 /Import File Strings/,/^$/ {
19062 /^0/ {
19063 s/^0 *\(.*\)$/\1/
19067 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19068 # Check for a 64-bit object if we didn't find anything.
19069 if test -z "$aix_libpath"; then
19070 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19073 rm -f core conftest.err conftest.$ac_objext \
19074 conftest$ac_exeext conftest.$ac_ext
19075 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19077 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19078 # Warning - without using the other run time loading flags,
19079 # -berok will link without error, but may produce a broken library.
19080 no_undefined_flag_CXX=' ${wl}-bernotok'
19081 allow_undefined_flag_CXX=' ${wl}-berok'
19082 if test "$with_gnu_ld" = yes; then
19083 # We only use this code for GNU lds that support --whole-archive.
19084 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19085 else
19086 # Exported symbols can be pulled into shared objects from archives
19087 whole_archive_flag_spec_CXX='$convenience'
19089 archive_cmds_need_lc_CXX=yes
19090 # This is similar to how AIX traditionally builds its shared
19091 # libraries.
19092 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'
19097 beos*)
19098 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19099 allow_undefined_flag_CXX=unsupported
19100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19101 # support --undefined. This deserves some investigation. FIXME
19102 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19103 else
19104 ld_shlibs_CXX=no
19108 chorus*)
19109 case $cc_basename in
19111 # FIXME: insert proper C++ library support
19112 ld_shlibs_CXX=no
19114 esac
19117 cygwin* | mingw* | pw32* | cegcc*)
19118 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19119 # as there is no search path for DLLs.
19120 hardcode_libdir_flag_spec_CXX='-L$libdir'
19121 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19122 allow_undefined_flag_CXX=unsupported
19123 always_export_symbols_CXX=no
19124 enable_shared_with_static_runtimes_CXX=yes
19126 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19127 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'
19128 # If the export-symbols file already is a .def file (1st line
19129 # is EXPORTS), use it as is; otherwise, prepend...
19130 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19131 cp $export_symbols $output_objdir/$soname.def;
19132 else
19133 echo EXPORTS > $output_objdir/$soname.def;
19134 cat $export_symbols >> $output_objdir/$soname.def;
19136 $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'
19137 else
19138 ld_shlibs_CXX=no
19141 darwin* | rhapsody*)
19144 archive_cmds_need_lc_CXX=no
19145 hardcode_direct_CXX=no
19146 hardcode_automatic_CXX=yes
19147 hardcode_shlibpath_var_CXX=unsupported
19148 if test "$lt_cv_ld_force_load" = "yes"; then
19149 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\"`'
19150 else
19151 whole_archive_flag_spec_CXX=''
19153 link_all_deplibs_CXX=yes
19154 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19155 case $cc_basename in
19156 ifort*) _lt_dar_can_shared=yes ;;
19157 *) _lt_dar_can_shared=$GCC ;;
19158 esac
19159 if test "$_lt_dar_can_shared" = "yes"; then
19160 output_verbose_link_cmd=func_echo_all
19161 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}"
19162 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19163 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}"
19164 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}"
19165 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19166 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}"
19167 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}"
19170 else
19171 ld_shlibs_CXX=no
19176 dgux*)
19177 case $cc_basename in
19178 ec++*)
19179 # FIXME: insert proper C++ library support
19180 ld_shlibs_CXX=no
19182 ghcx*)
19183 # Green Hills C++ Compiler
19184 # FIXME: insert proper C++ library support
19185 ld_shlibs_CXX=no
19188 # FIXME: insert proper C++ library support
19189 ld_shlibs_CXX=no
19191 esac
19194 freebsd2.*)
19195 # C++ shared libraries reported to be fairly broken before
19196 # switch to ELF
19197 ld_shlibs_CXX=no
19200 freebsd-elf*)
19201 archive_cmds_need_lc_CXX=no
19204 freebsd* | dragonfly*)
19205 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19206 # conventions
19207 ld_shlibs_CXX=yes
19210 gnu*)
19213 haiku*)
19214 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19215 link_all_deplibs_CXX=yes
19218 hpux9*)
19219 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19220 hardcode_libdir_separator_CXX=:
19221 export_dynamic_flag_spec_CXX='${wl}-E'
19222 hardcode_direct_CXX=yes
19223 hardcode_minus_L_CXX=yes # Not in the search PATH,
19224 # but as the default
19225 # location of the library.
19227 case $cc_basename in
19228 CC*)
19229 # FIXME: insert proper C++ library support
19230 ld_shlibs_CXX=no
19232 aCC*)
19233 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'
19234 # Commands to make compiler produce verbose output that lists
19235 # what "hidden" libraries, object files and flags are used when
19236 # linking a shared library.
19238 # There doesn't appear to be a way to prevent this compiler from
19239 # explicitly linking system object files so we need to strip them
19240 # from the output so that they don't get included in the library
19241 # dependencies.
19242 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"'
19245 if test "$GXX" = yes; then
19246 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'
19247 else
19248 # FIXME: insert proper C++ library support
19249 ld_shlibs_CXX=no
19252 esac
19255 hpux10*|hpux11*)
19256 if test $with_gnu_ld = no; then
19257 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19258 hardcode_libdir_separator_CXX=:
19260 case $host_cpu in
19261 hppa*64*|ia64*)
19264 export_dynamic_flag_spec_CXX='${wl}-E'
19266 esac
19268 case $host_cpu in
19269 hppa*64*|ia64*)
19270 hardcode_direct_CXX=no
19271 hardcode_shlibpath_var_CXX=no
19274 hardcode_direct_CXX=yes
19275 hardcode_direct_absolute_CXX=yes
19276 hardcode_minus_L_CXX=yes # Not in the search PATH,
19277 # but as the default
19278 # location of the library.
19280 esac
19282 case $cc_basename in
19283 CC*)
19284 # FIXME: insert proper C++ library support
19285 ld_shlibs_CXX=no
19287 aCC*)
19288 case $host_cpu in
19289 hppa*64*)
19290 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19292 ia64*)
19293 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19296 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19298 esac
19299 # Commands to make compiler produce verbose output that lists
19300 # what "hidden" libraries, object files and flags are used when
19301 # linking a shared library.
19303 # There doesn't appear to be a way to prevent this compiler from
19304 # explicitly linking system object files so we need to strip them
19305 # from the output so that they don't get included in the library
19306 # dependencies.
19307 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"'
19310 if test "$GXX" = yes; then
19311 if test $with_gnu_ld = no; then
19312 case $host_cpu in
19313 hppa*64*)
19314 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19316 ia64*)
19317 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19320 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'
19322 esac
19324 else
19325 # FIXME: insert proper C++ library support
19326 ld_shlibs_CXX=no
19329 esac
19332 interix[3-9]*)
19333 hardcode_direct_CXX=no
19334 hardcode_shlibpath_var_CXX=no
19335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19336 export_dynamic_flag_spec_CXX='${wl}-E'
19337 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19338 # Instead, shared libraries are loaded at an image base (0x10000000 by
19339 # default) and relocated if they conflict, which is a slow very memory
19340 # consuming and fragmenting process. To avoid this, we pick a random,
19341 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19342 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19343 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'
19344 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'
19346 irix5* | irix6*)
19347 case $cc_basename in
19348 CC*)
19349 # SGI C++
19350 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'
19352 # Archives containing C++ object files must be created using
19353 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19354 # necessary to make sure instantiated templates are included
19355 # in the archive.
19356 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19359 if test "$GXX" = yes; then
19360 if test "$with_gnu_ld" = no; then
19361 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'
19362 else
19363 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'
19366 link_all_deplibs_CXX=yes
19368 esac
19369 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19370 hardcode_libdir_separator_CXX=:
19371 inherit_rpath_CXX=yes
19374 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19375 case $cc_basename in
19376 KCC*)
19377 # Kuck and Associates, Inc. (KAI) C++ Compiler
19379 # KCC will only create a shared library if the output file
19380 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19381 # to its proper name (with version) after linking.
19382 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'
19383 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'
19384 # Commands to make compiler produce verbose output that lists
19385 # what "hidden" libraries, object files and flags are used when
19386 # linking a shared library.
19388 # There doesn't appear to be a way to prevent this compiler from
19389 # explicitly linking system object files so we need to strip them
19390 # from the output so that they don't get included in the library
19391 # dependencies.
19392 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"'
19394 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19395 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19397 # Archives containing C++ object files must be created using
19398 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19399 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19401 icpc* | ecpc* )
19402 # Intel C++
19403 with_gnu_ld=yes
19404 # version 8.0 and above of icpc choke on multiply defined symbols
19405 # if we add $predep_objects and $postdep_objects, however 7.1 and
19406 # earlier do not add the objects themselves.
19407 case `$CC -V 2>&1` in
19408 *"Version 7."*)
19409 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19410 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'
19412 *) # Version 8.0 or newer
19413 tmp_idyn=
19414 case $host_cpu in
19415 ia64*) tmp_idyn=' -i_dynamic';;
19416 esac
19417 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19418 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'
19420 esac
19421 archive_cmds_need_lc_CXX=no
19422 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19423 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19424 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19426 pgCC* | pgcpp*)
19427 # Portland Group C++ compiler
19428 case `$CC -V` in
19429 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19430 prelink_cmds_CXX='tpldir=Template.dir~
19431 rm -rf $tpldir~
19432 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19433 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19434 old_archive_cmds_CXX='tpldir=Template.dir~
19435 rm -rf $tpldir~
19436 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19437 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19438 $RANLIB $oldlib'
19439 archive_cmds_CXX='tpldir=Template.dir~
19440 rm -rf $tpldir~
19441 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19442 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19443 archive_expsym_cmds_CXX='tpldir=Template.dir~
19444 rm -rf $tpldir~
19445 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19446 $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'
19448 *) # Version 6 and above use weak symbols
19449 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19450 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'
19452 esac
19454 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19455 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19456 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'
19458 cxx*)
19459 # Compaq C++
19460 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19461 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'
19463 runpath_var=LD_RUN_PATH
19464 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19465 hardcode_libdir_separator_CXX=:
19467 # Commands to make compiler produce verbose output that lists
19468 # what "hidden" libraries, object files and flags are used when
19469 # linking a shared library.
19471 # There doesn't appear to be a way to prevent this compiler from
19472 # explicitly linking system object files so we need to strip them
19473 # from the output so that they don't get included in the library
19474 # dependencies.
19475 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'
19477 xl* | mpixl* | bgxl*)
19478 # IBM XL 8.0 on PPC, with GNU ld
19479 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19480 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19481 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19482 if test "x$supports_anon_versioning" = xyes; then
19483 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19484 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19485 echo "local: *; };" >> $output_objdir/$libname.ver~
19486 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19490 case `$CC -V 2>&1 | sed 5q` in
19491 *Sun\ C*)
19492 # Sun C++ 5.9
19493 no_undefined_flag_CXX=' -zdefs'
19494 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19495 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'
19496 hardcode_libdir_flag_spec_CXX='-R$libdir'
19497 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'
19498 compiler_needs_object_CXX=yes
19500 # Not sure whether something based on
19501 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19502 # would be better.
19503 output_verbose_link_cmd='func_echo_all'
19505 # Archives containing C++ object files must be created using
19506 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19507 # necessary to make sure instantiated templates are included
19508 # in the archive.
19509 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19511 esac
19513 esac
19516 lynxos*)
19517 # FIXME: insert proper C++ library support
19518 ld_shlibs_CXX=no
19521 m88k*)
19522 # FIXME: insert proper C++ library support
19523 ld_shlibs_CXX=no
19526 mvs*)
19527 case $cc_basename in
19528 cxx*)
19529 # FIXME: insert proper C++ library support
19530 ld_shlibs_CXX=no
19533 # FIXME: insert proper C++ library support
19534 ld_shlibs_CXX=no
19536 esac
19539 netbsd*)
19540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19541 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19542 wlarc=
19543 hardcode_libdir_flag_spec_CXX='-R$libdir'
19544 hardcode_direct_CXX=yes
19545 hardcode_shlibpath_var_CXX=no
19547 # Workaround some broken pre-1.5 toolchains
19548 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19551 *nto* | *qnx*)
19552 ld_shlibs_CXX=yes
19555 openbsd2*)
19556 # C++ shared libraries are fairly broken
19557 ld_shlibs_CXX=no
19560 openbsd*)
19561 if test -f /usr/libexec/ld.so; then
19562 hardcode_direct_CXX=yes
19563 hardcode_shlibpath_var_CXX=no
19564 hardcode_direct_absolute_CXX=yes
19565 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19566 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19567 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19568 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19569 export_dynamic_flag_spec_CXX='${wl}-E'
19570 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19572 output_verbose_link_cmd=func_echo_all
19573 else
19574 ld_shlibs_CXX=no
19578 osf3* | osf4* | osf5*)
19579 case $cc_basename in
19580 KCC*)
19581 # Kuck and Associates, Inc. (KAI) C++ Compiler
19583 # KCC will only create a shared library if the output file
19584 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19585 # to its proper name (with version) after linking.
19586 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'
19588 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19589 hardcode_libdir_separator_CXX=:
19591 # Archives containing C++ object files must be created using
19592 # the KAI C++ compiler.
19593 case $host in
19594 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19595 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19596 esac
19598 RCC*)
19599 # Rational C++ 2.4.1
19600 # FIXME: insert proper C++ library support
19601 ld_shlibs_CXX=no
19603 cxx*)
19604 case $host in
19605 osf3*)
19606 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19607 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'
19608 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19611 allow_undefined_flag_CXX=' -expect_unresolved \*'
19612 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'
19613 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19614 echo "-hidden">> $lib.exp~
19615 $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~
19616 $RM $lib.exp'
19617 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19619 esac
19621 hardcode_libdir_separator_CXX=:
19623 # Commands to make compiler produce verbose output that lists
19624 # what "hidden" libraries, object files and flags are used when
19625 # linking a shared library.
19627 # There doesn't appear to be a way to prevent this compiler from
19628 # explicitly linking system object files so we need to strip them
19629 # from the output so that they don't get included in the library
19630 # dependencies.
19631 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"'
19634 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19635 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19636 case $host in
19637 osf3*)
19638 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'
19641 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'
19643 esac
19645 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19646 hardcode_libdir_separator_CXX=:
19648 # Commands to make compiler produce verbose output that lists
19649 # what "hidden" libraries, object files and flags are used when
19650 # linking a shared library.
19651 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19653 else
19654 # FIXME: insert proper C++ library support
19655 ld_shlibs_CXX=no
19658 esac
19661 psos*)
19662 # FIXME: insert proper C++ library support
19663 ld_shlibs_CXX=no
19666 sunos4*)
19667 case $cc_basename in
19668 CC*)
19669 # Sun C++ 4.x
19670 # FIXME: insert proper C++ library support
19671 ld_shlibs_CXX=no
19673 lcc*)
19674 # Lucid
19675 # FIXME: insert proper C++ library support
19676 ld_shlibs_CXX=no
19679 # FIXME: insert proper C++ library support
19680 ld_shlibs_CXX=no
19682 esac
19685 solaris*)
19686 case $cc_basename in
19687 CC*)
19688 # Sun C++ 4.2, 5.x and Centerline C++
19689 archive_cmds_need_lc_CXX=yes
19690 no_undefined_flag_CXX=' -zdefs'
19691 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19692 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19693 $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'
19695 hardcode_libdir_flag_spec_CXX='-R$libdir'
19696 hardcode_shlibpath_var_CXX=no
19697 case $host_os in
19698 solaris2.[0-5] | solaris2.[0-5].*) ;;
19700 # The compiler driver will combine and reorder linker options,
19701 # but understands `-z linker_flag'.
19702 # Supported since Solaris 2.6 (maybe 2.5.1?)
19703 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19705 esac
19706 link_all_deplibs_CXX=yes
19708 output_verbose_link_cmd='func_echo_all'
19710 # Archives containing C++ object files must be created using
19711 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19712 # necessary to make sure instantiated templates are included
19713 # in the archive.
19714 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19716 gcx*)
19717 # Green Hills C++ Compiler
19718 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19720 # The C++ compiler must be used to create the archive.
19721 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19724 # GNU C++ compiler with Solaris linker
19725 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19726 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19727 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19728 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19729 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19730 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19732 # Commands to make compiler produce verbose output that lists
19733 # what "hidden" libraries, object files and flags are used when
19734 # linking a shared library.
19735 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19736 else
19737 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19738 # platform.
19739 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19740 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19741 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19743 # Commands to make compiler produce verbose output that lists
19744 # what "hidden" libraries, object files and flags are used when
19745 # linking a shared library.
19746 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19749 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19750 case $host_os in
19751 solaris2.[0-5] | solaris2.[0-5].*) ;;
19753 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19755 esac
19758 esac
19761 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19762 no_undefined_flag_CXX='${wl}-z,text'
19763 archive_cmds_need_lc_CXX=no
19764 hardcode_shlibpath_var_CXX=no
19765 runpath_var='LD_RUN_PATH'
19767 case $cc_basename in
19768 CC*)
19769 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19770 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19773 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19774 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19776 esac
19779 sysv5* | sco3.2v5* | sco5v6*)
19780 # Note: We can NOT use -z defs as we might desire, because we do not
19781 # link with -lc, and that would cause any symbols used from libc to
19782 # always be unresolved, which means just about no library would
19783 # ever link correctly. If we're not using GNU ld we use -z text
19784 # though, which does catch some bad symbols but isn't as heavy-handed
19785 # as -z defs.
19786 no_undefined_flag_CXX='${wl}-z,text'
19787 allow_undefined_flag_CXX='${wl}-z,nodefs'
19788 archive_cmds_need_lc_CXX=no
19789 hardcode_shlibpath_var_CXX=no
19790 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19791 hardcode_libdir_separator_CXX=':'
19792 link_all_deplibs_CXX=yes
19793 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19794 runpath_var='LD_RUN_PATH'
19796 case $cc_basename in
19797 CC*)
19798 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19799 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19800 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19801 '"$old_archive_cmds_CXX"
19802 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19803 '"$reload_cmds_CXX"
19806 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19807 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19809 esac
19812 tandem*)
19813 case $cc_basename in
19814 NCC*)
19815 # NonStop-UX NCC 3.20
19816 # FIXME: insert proper C++ library support
19817 ld_shlibs_CXX=no
19820 # FIXME: insert proper C++ library support
19821 ld_shlibs_CXX=no
19823 esac
19826 vxworks*)
19827 # FIXME: insert proper C++ library support
19828 ld_shlibs_CXX=no
19832 # FIXME: insert proper C++ library support
19833 ld_shlibs_CXX=no
19835 esac
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19838 $as_echo "$ld_shlibs_CXX" >&6; }
19839 test "$ld_shlibs_CXX" = no && can_build_shared=no
19841 GCC_CXX="$GXX"
19842 LD_CXX="$LD"
19844 ## CAVEAT EMPTOR:
19845 ## There is no encapsulation within the following macros, do not change
19846 ## the running order or otherwise move them around unless you know exactly
19847 ## what you are doing...
19848 # Dependencies to place before and after the object being linked:
19849 predep_objects_CXX=
19850 postdep_objects_CXX=
19851 predeps_CXX=
19852 postdeps_CXX=
19853 compiler_lib_search_path_CXX=
19855 cat > conftest.$ac_ext <<_LT_EOF
19856 class Foo
19858 public:
19859 Foo (void) { a = 0; }
19860 private:
19861 int a;
19863 _LT_EOF
19865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19866 (eval $ac_compile) 2>&5
19867 ac_status=$?
19868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19869 test $ac_status = 0; }; then
19870 # Parse the compiler output and extract the necessary
19871 # objects, libraries and library flags.
19873 # Sentinel used to keep track of whether or not we are before
19874 # the conftest object file.
19875 pre_test_object_deps_done=no
19877 for p in `eval "$output_verbose_link_cmd"`; do
19878 case $p in
19880 -L* | -R* | -l*)
19881 # Some compilers place space between "-{L,R}" and the path.
19882 # Remove the space.
19883 if test $p = "-L" ||
19884 test $p = "-R"; then
19885 prev=$p
19886 continue
19887 else
19888 prev=
19891 if test "$pre_test_object_deps_done" = no; then
19892 case $p in
19893 -L* | -R*)
19894 # Internal compiler library paths should come after those
19895 # provided the user. The postdeps already come after the
19896 # user supplied libs so there is no need to process them.
19897 if test -z "$compiler_lib_search_path_CXX"; then
19898 compiler_lib_search_path_CXX="${prev}${p}"
19899 else
19900 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19903 # The "-l" case would never come before the object being
19904 # linked, so don't bother handling this case.
19905 esac
19906 else
19907 if test -z "$postdeps_CXX"; then
19908 postdeps_CXX="${prev}${p}"
19909 else
19910 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19915 *.$objext)
19916 # This assumes that the test object file only shows up
19917 # once in the compiler output.
19918 if test "$p" = "conftest.$objext"; then
19919 pre_test_object_deps_done=yes
19920 continue
19923 if test "$pre_test_object_deps_done" = no; then
19924 if test -z "$predep_objects_CXX"; then
19925 predep_objects_CXX="$p"
19926 else
19927 predep_objects_CXX="$predep_objects_CXX $p"
19929 else
19930 if test -z "$postdep_objects_CXX"; then
19931 postdep_objects_CXX="$p"
19932 else
19933 postdep_objects_CXX="$postdep_objects_CXX $p"
19938 *) ;; # Ignore the rest.
19940 esac
19941 done
19943 # Clean up.
19944 rm -f a.out a.exe
19945 else
19946 echo "libtool.m4: error: problem compiling CXX test program"
19949 $RM -f confest.$objext
19951 # PORTME: override above test on systems where it is broken
19952 case $host_os in
19953 interix[3-9]*)
19954 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19955 # hack all around it, let's just trust "g++" to DTRT.
19956 predep_objects_CXX=
19957 postdep_objects_CXX=
19958 postdeps_CXX=
19961 linux*)
19962 case `$CC -V 2>&1 | sed 5q` in
19963 *Sun\ C*)
19964 # Sun C++ 5.9
19966 # The more standards-conforming stlport4 library is
19967 # incompatible with the Cstd library. Avoid specifying
19968 # it if it's in CXXFLAGS. Ignore libCrun as
19969 # -library=stlport4 depends on it.
19970 case " $CXX $CXXFLAGS " in
19971 *" -library=stlport4 "*)
19972 solaris_use_stlport4=yes
19974 esac
19976 if test "$solaris_use_stlport4" != yes; then
19977 postdeps_CXX='-library=Cstd -library=Crun'
19980 esac
19983 solaris*)
19984 case $cc_basename in
19985 CC*)
19986 # The more standards-conforming stlport4 library is
19987 # incompatible with the Cstd library. Avoid specifying
19988 # it if it's in CXXFLAGS. Ignore libCrun as
19989 # -library=stlport4 depends on it.
19990 case " $CXX $CXXFLAGS " in
19991 *" -library=stlport4 "*)
19992 solaris_use_stlport4=yes
19994 esac
19996 # Adding this requires a known-good setup of shared libraries for
19997 # Sun compiler versions before 5.6, else PIC objects from an old
19998 # archive will be linked into the output, leading to subtle bugs.
19999 if test "$solaris_use_stlport4" != yes; then
20000 postdeps_CXX='-library=Cstd -library=Crun'
20003 esac
20005 esac
20008 case " $postdeps_CXX " in
20009 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20010 esac
20011 compiler_lib_search_dirs_CXX=
20012 if test -n "${compiler_lib_search_path_CXX}"; then
20013 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20046 lt_prog_compiler_wl_CXX=
20047 lt_prog_compiler_pic_CXX=
20048 lt_prog_compiler_static_CXX=
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20051 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20053 # C++ specific cases for pic, static, wl, etc.
20054 if test "$GXX" = yes; then
20055 lt_prog_compiler_wl_CXX='-Wl,'
20056 lt_prog_compiler_static_CXX='-static'
20058 case $host_os in
20059 aix*)
20060 # All AIX code is PIC.
20061 if test "$host_cpu" = ia64; then
20062 # AIX 5 now supports IA64 processor
20063 lt_prog_compiler_static_CXX='-Bstatic'
20065 lt_prog_compiler_pic_CXX='-fPIC'
20068 amigaos*)
20069 case $host_cpu in
20070 powerpc)
20071 # see comment about AmigaOS4 .so support
20072 lt_prog_compiler_pic_CXX='-fPIC'
20074 m68k)
20075 # FIXME: we need at least 68020 code to build shared libraries, but
20076 # adding the `-m68020' flag to GCC prevents building anything better,
20077 # like `-m68040'.
20078 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20080 esac
20083 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20084 # PIC is the default for these OSes.
20086 mingw* | cygwin* | os2* | pw32* | cegcc*)
20087 # This hack is so that the source file can tell whether it is being
20088 # built for inclusion in a dll (and should export symbols for example).
20089 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20090 # (--disable-auto-import) libraries
20091 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20093 darwin* | rhapsody*)
20094 # PIC is the default on this platform
20095 # Common symbols not allowed in MH_DYLIB files
20096 lt_prog_compiler_pic_CXX='-fno-common'
20098 *djgpp*)
20099 # DJGPP does not support shared libraries at all
20100 lt_prog_compiler_pic_CXX=
20102 haiku*)
20103 # PIC is the default for Haiku.
20104 # The "-static" flag exists, but is broken.
20105 lt_prog_compiler_static_CXX=
20107 interix[3-9]*)
20108 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20109 # Instead, we relocate shared libraries at runtime.
20111 sysv4*MP*)
20112 if test -d /usr/nec; then
20113 lt_prog_compiler_pic_CXX=-Kconform_pic
20116 hpux*)
20117 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20118 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20119 # sets the default TLS model and affects inlining.
20120 case $host_cpu in
20121 hppa*64*)
20124 lt_prog_compiler_pic_CXX='-fPIC'
20126 esac
20128 *qnx* | *nto*)
20129 # QNX uses GNU C++, but need to define -shared option too, otherwise
20130 # it will coredump.
20131 lt_prog_compiler_pic_CXX='-fPIC -shared'
20134 lt_prog_compiler_pic_CXX='-fPIC'
20136 esac
20137 else
20138 case $host_os in
20139 aix[4-9]*)
20140 # All AIX code is PIC.
20141 if test "$host_cpu" = ia64; then
20142 # AIX 5 now supports IA64 processor
20143 lt_prog_compiler_static_CXX='-Bstatic'
20144 else
20145 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20148 chorus*)
20149 case $cc_basename in
20150 cxch68*)
20151 # Green Hills C++ Compiler
20152 # _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"
20154 esac
20156 dgux*)
20157 case $cc_basename in
20158 ec++*)
20159 lt_prog_compiler_pic_CXX='-KPIC'
20161 ghcx*)
20162 # Green Hills C++ Compiler
20163 lt_prog_compiler_pic_CXX='-pic'
20167 esac
20169 freebsd* | dragonfly*)
20170 # FreeBSD uses GNU C++
20172 hpux9* | hpux10* | hpux11*)
20173 case $cc_basename in
20174 CC*)
20175 lt_prog_compiler_wl_CXX='-Wl,'
20176 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20177 if test "$host_cpu" != ia64; then
20178 lt_prog_compiler_pic_CXX='+Z'
20181 aCC*)
20182 lt_prog_compiler_wl_CXX='-Wl,'
20183 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20184 case $host_cpu in
20185 hppa*64*|ia64*)
20186 # +Z the default
20189 lt_prog_compiler_pic_CXX='+Z'
20191 esac
20195 esac
20197 interix*)
20198 # This is c89, which is MS Visual C++ (no shared libs)
20199 # Anyone wants to do a port?
20201 irix5* | irix6* | nonstopux*)
20202 case $cc_basename in
20203 CC*)
20204 lt_prog_compiler_wl_CXX='-Wl,'
20205 lt_prog_compiler_static_CXX='-non_shared'
20206 # CC pic flag -KPIC is the default.
20210 esac
20212 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20213 case $cc_basename in
20214 KCC*)
20215 # KAI C++ Compiler
20216 lt_prog_compiler_wl_CXX='--backend -Wl,'
20217 lt_prog_compiler_pic_CXX='-fPIC'
20219 ecpc* )
20220 # old Intel C++ for x86_64 which still supported -KPIC.
20221 lt_prog_compiler_wl_CXX='-Wl,'
20222 lt_prog_compiler_pic_CXX='-KPIC'
20223 lt_prog_compiler_static_CXX='-static'
20225 icpc* )
20226 # Intel C++, used to be incompatible with GCC.
20227 # ICC 10 doesn't accept -KPIC any more.
20228 lt_prog_compiler_wl_CXX='-Wl,'
20229 lt_prog_compiler_pic_CXX='-fPIC'
20230 lt_prog_compiler_static_CXX='-static'
20232 pgCC* | pgcpp*)
20233 # Portland Group C++ compiler
20234 lt_prog_compiler_wl_CXX='-Wl,'
20235 lt_prog_compiler_pic_CXX='-fpic'
20236 lt_prog_compiler_static_CXX='-Bstatic'
20238 cxx*)
20239 # Compaq C++
20240 # Make sure the PIC flag is empty. It appears that all Alpha
20241 # Linux and Compaq Tru64 Unix objects are PIC.
20242 lt_prog_compiler_pic_CXX=
20243 lt_prog_compiler_static_CXX='-non_shared'
20245 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20246 # IBM XL 8.0, 9.0 on PPC and BlueGene
20247 lt_prog_compiler_wl_CXX='-Wl,'
20248 lt_prog_compiler_pic_CXX='-qpic'
20249 lt_prog_compiler_static_CXX='-qstaticlink'
20252 case `$CC -V 2>&1 | sed 5q` in
20253 *Sun\ C*)
20254 # Sun C++ 5.9
20255 lt_prog_compiler_pic_CXX='-KPIC'
20256 lt_prog_compiler_static_CXX='-Bstatic'
20257 lt_prog_compiler_wl_CXX='-Qoption ld '
20259 esac
20261 esac
20263 lynxos*)
20265 m88k*)
20267 mvs*)
20268 case $cc_basename in
20269 cxx*)
20270 lt_prog_compiler_pic_CXX='-W c,exportall'
20274 esac
20276 netbsd*)
20278 *qnx* | *nto*)
20279 # QNX uses GNU C++, but need to define -shared option too, otherwise
20280 # it will coredump.
20281 lt_prog_compiler_pic_CXX='-fPIC -shared'
20283 osf3* | osf4* | osf5*)
20284 case $cc_basename in
20285 KCC*)
20286 lt_prog_compiler_wl_CXX='--backend -Wl,'
20288 RCC*)
20289 # Rational C++ 2.4.1
20290 lt_prog_compiler_pic_CXX='-pic'
20292 cxx*)
20293 # Digital/Compaq C++
20294 lt_prog_compiler_wl_CXX='-Wl,'
20295 # Make sure the PIC flag is empty. It appears that all Alpha
20296 # Linux and Compaq Tru64 Unix objects are PIC.
20297 lt_prog_compiler_pic_CXX=
20298 lt_prog_compiler_static_CXX='-non_shared'
20302 esac
20304 psos*)
20306 solaris*)
20307 case $cc_basename in
20308 CC*)
20309 # Sun C++ 4.2, 5.x and Centerline C++
20310 lt_prog_compiler_pic_CXX='-KPIC'
20311 lt_prog_compiler_static_CXX='-Bstatic'
20312 lt_prog_compiler_wl_CXX='-Qoption ld '
20314 gcx*)
20315 # Green Hills C++ Compiler
20316 lt_prog_compiler_pic_CXX='-PIC'
20320 esac
20322 sunos4*)
20323 case $cc_basename in
20324 CC*)
20325 # Sun C++ 4.x
20326 lt_prog_compiler_pic_CXX='-pic'
20327 lt_prog_compiler_static_CXX='-Bstatic'
20329 lcc*)
20330 # Lucid
20331 lt_prog_compiler_pic_CXX='-pic'
20335 esac
20337 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20338 case $cc_basename in
20339 CC*)
20340 lt_prog_compiler_wl_CXX='-Wl,'
20341 lt_prog_compiler_pic_CXX='-KPIC'
20342 lt_prog_compiler_static_CXX='-Bstatic'
20344 esac
20346 tandem*)
20347 case $cc_basename in
20348 NCC*)
20349 # NonStop-UX NCC 3.20
20350 lt_prog_compiler_pic_CXX='-KPIC'
20354 esac
20356 vxworks*)
20359 lt_prog_compiler_can_build_shared_CXX=no
20361 esac
20364 case $host_os in
20365 # For platforms which do not support PIC, -DPIC is meaningless:
20366 *djgpp*)
20367 lt_prog_compiler_pic_CXX=
20370 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20372 esac
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20374 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20379 # Check to make sure the PIC flag actually works.
20381 if test -n "$lt_prog_compiler_pic_CXX"; then
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20383 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20384 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20385 $as_echo_n "(cached) " >&6
20386 else
20387 lt_cv_prog_compiler_pic_works_CXX=no
20388 ac_outfile=conftest.$ac_objext
20389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20390 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20391 # Insert the option either (1) after the last *FLAGS variable, or
20392 # (2) before a word containing "conftest.", or (3) at the end.
20393 # Note that $ac_compile itself does not contain backslashes and begins
20394 # with a dollar sign (not a hyphen), so the echo should work correctly.
20395 # The option is referenced via a variable to avoid confusing sed.
20396 lt_compile=`echo "$ac_compile" | $SED \
20397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20399 -e 's:$: $lt_compiler_flag:'`
20400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20401 (eval "$lt_compile" 2>conftest.err)
20402 ac_status=$?
20403 cat conftest.err >&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 if (exit $ac_status) && test -s "$ac_outfile"; then
20406 # The compiler can only warn and ignore the option if not recognized
20407 # So say no if there are warnings other than the usual output.
20408 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20410 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20411 lt_cv_prog_compiler_pic_works_CXX=yes
20414 $RM conftest*
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20418 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20420 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20421 case $lt_prog_compiler_pic_CXX in
20422 "" | " "*) ;;
20423 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20424 esac
20425 else
20426 lt_prog_compiler_pic_CXX=
20427 lt_prog_compiler_can_build_shared_CXX=no
20435 # Check to make sure the static flag actually works.
20437 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20439 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20440 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20441 $as_echo_n "(cached) " >&6
20442 else
20443 lt_cv_prog_compiler_static_works_CXX=no
20444 save_LDFLAGS="$LDFLAGS"
20445 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20446 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20447 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20448 # The linker can only warn and ignore the option if not recognized
20449 # So say no if there are warnings
20450 if test -s conftest.err; then
20451 # Append any errors to the config.log.
20452 cat conftest.err 1>&5
20453 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20455 if diff conftest.exp conftest.er2 >/dev/null; then
20456 lt_cv_prog_compiler_static_works_CXX=yes
20458 else
20459 lt_cv_prog_compiler_static_works_CXX=yes
20462 $RM -r conftest*
20463 LDFLAGS="$save_LDFLAGS"
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20467 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20469 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20471 else
20472 lt_prog_compiler_static_CXX=
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20479 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20480 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20481 $as_echo_n "(cached) " >&6
20482 else
20483 lt_cv_prog_compiler_c_o_CXX=no
20484 $RM -r conftest 2>/dev/null
20485 mkdir conftest
20486 cd conftest
20487 mkdir out
20488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20490 lt_compiler_flag="-o out/conftest2.$ac_objext"
20491 # Insert the option either (1) after the last *FLAGS variable, or
20492 # (2) before a word containing "conftest.", or (3) at the end.
20493 # Note that $ac_compile itself does not contain backslashes and begins
20494 # with a dollar sign (not a hyphen), so the echo should work correctly.
20495 lt_compile=`echo "$ac_compile" | $SED \
20496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20498 -e 's:$: $lt_compiler_flag:'`
20499 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20500 (eval "$lt_compile" 2>out/conftest.err)
20501 ac_status=$?
20502 cat out/conftest.err >&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20505 then
20506 # The compiler can only warn and ignore the option if not recognized
20507 # So say no if there are warnings
20508 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20509 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20510 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20511 lt_cv_prog_compiler_c_o_CXX=yes
20514 chmod u+w . 2>&5
20515 $RM conftest*
20516 # SGI C++ compiler will create directory out/ii_files/ for
20517 # template instantiation
20518 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20519 $RM out/* && rmdir out
20520 cd ..
20521 $RM -r conftest
20522 $RM conftest*
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20526 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20531 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20532 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20533 $as_echo_n "(cached) " >&6
20534 else
20535 lt_cv_prog_compiler_c_o_CXX=no
20536 $RM -r conftest 2>/dev/null
20537 mkdir conftest
20538 cd conftest
20539 mkdir out
20540 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20542 lt_compiler_flag="-o out/conftest2.$ac_objext"
20543 # Insert the option either (1) after the last *FLAGS variable, or
20544 # (2) before a word containing "conftest.", or (3) at the end.
20545 # Note that $ac_compile itself does not contain backslashes and begins
20546 # with a dollar sign (not a hyphen), so the echo should work correctly.
20547 lt_compile=`echo "$ac_compile" | $SED \
20548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20550 -e 's:$: $lt_compiler_flag:'`
20551 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20552 (eval "$lt_compile" 2>out/conftest.err)
20553 ac_status=$?
20554 cat out/conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20557 then
20558 # The compiler can only warn and ignore the option if not recognized
20559 # So say no if there are warnings
20560 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20561 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20562 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20563 lt_cv_prog_compiler_c_o_CXX=yes
20566 chmod u+w . 2>&5
20567 $RM conftest*
20568 # SGI C++ compiler will create directory out/ii_files/ for
20569 # template instantiation
20570 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20571 $RM out/* && rmdir out
20572 cd ..
20573 $RM -r conftest
20574 $RM conftest*
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20578 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20583 hard_links="nottested"
20584 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20585 # do not overwrite the value of need_locks provided by the user
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20587 $as_echo_n "checking if we can lock with hard links... " >&6; }
20588 hard_links=yes
20589 $RM conftest*
20590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20591 touch conftest.a
20592 ln conftest.a conftest.b 2>&5 || hard_links=no
20593 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20595 $as_echo "$hard_links" >&6; }
20596 if test "$hard_links" = no; then
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20598 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20599 need_locks=warn
20601 else
20602 need_locks=no
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20608 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20610 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20611 case $host_os in
20612 aix[4-9]*)
20613 # If we're using GNU nm, then we don't want the "-C" option.
20614 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20615 # Also, AIX nm treats weak defined symbols like other global defined
20616 # symbols, whereas GNU nm marks them as "W".
20617 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20618 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'
20619 else
20620 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'
20623 pw32*)
20624 export_symbols_cmds_CXX="$ltdll_cmds"
20626 cygwin* | mingw* | cegcc*)
20627 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'
20630 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20632 esac
20633 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20636 $as_echo "$ld_shlibs_CXX" >&6; }
20637 test "$ld_shlibs_CXX" = no && can_build_shared=no
20639 with_gnu_ld_CXX=$with_gnu_ld
20647 # Do we need to explicitly link libc?
20649 case "x$archive_cmds_need_lc_CXX" in
20650 x|xyes)
20651 # Assume -lc should be added
20652 archive_cmds_need_lc_CXX=yes
20654 if test "$enable_shared" = yes && test "$GCC" = yes; then
20655 case $archive_cmds_CXX in
20656 *'~'*)
20657 # FIXME: we may have to deal with multi-command sequences.
20659 '$CC '*)
20660 # Test whether the compiler implicitly links with -lc since on some
20661 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20662 # to ld, don't add -lc before -lgcc.
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20664 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20665 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20666 $as_echo_n "(cached) " >&6
20667 else
20668 $RM conftest*
20669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20672 (eval $ac_compile) 2>&5
20673 ac_status=$?
20674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20675 test $ac_status = 0; } 2>conftest.err; then
20676 soname=conftest
20677 lib=conftest
20678 libobjs=conftest.$ac_objext
20679 deplibs=
20680 wl=$lt_prog_compiler_wl_CXX
20681 pic_flag=$lt_prog_compiler_pic_CXX
20682 compiler_flags=-v
20683 linker_flags=-v
20684 verstring=
20685 output_objdir=.
20686 libname=conftest
20687 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20688 allow_undefined_flag_CXX=
20689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20690 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20691 ac_status=$?
20692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20693 test $ac_status = 0; }
20694 then
20695 lt_cv_archive_cmds_need_lc_CXX=no
20696 else
20697 lt_cv_archive_cmds_need_lc_CXX=yes
20699 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20700 else
20701 cat conftest.err 1>&5
20703 $RM conftest*
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20707 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20708 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20710 esac
20713 esac
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20779 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20781 library_names_spec=
20782 libname_spec='lib$name'
20783 soname_spec=
20784 shrext_cmds=".so"
20785 postinstall_cmds=
20786 postuninstall_cmds=
20787 finish_cmds=
20788 finish_eval=
20789 shlibpath_var=
20790 shlibpath_overrides_runpath=unknown
20791 version_type=none
20792 dynamic_linker="$host_os ld.so"
20793 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20794 need_lib_prefix=unknown
20795 hardcode_into_libs=no
20797 # when you set need_version to no, make sure it does not cause -set_version
20798 # flags to be left without arguments
20799 need_version=unknown
20801 case $host_os in
20802 aix3*)
20803 version_type=linux
20804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20805 shlibpath_var=LIBPATH
20807 # AIX 3 has no versioning support, so we append a major version to the name.
20808 soname_spec='${libname}${release}${shared_ext}$major'
20811 aix[4-9]*)
20812 version_type=linux
20813 need_lib_prefix=no
20814 need_version=no
20815 hardcode_into_libs=yes
20816 if test "$host_cpu" = ia64; then
20817 # AIX 5 supports IA64
20818 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20819 shlibpath_var=LD_LIBRARY_PATH
20820 else
20821 # With GCC up to 2.95.x, collect2 would create an import file
20822 # for dependence libraries. The import file would start with
20823 # the line `#! .'. This would cause the generated library to
20824 # depend on `.', always an invalid library. This was fixed in
20825 # development snapshots of GCC prior to 3.0.
20826 case $host_os in
20827 aix4 | aix4.[01] | aix4.[01].*)
20828 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20829 echo ' yes '
20830 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20832 else
20833 can_build_shared=no
20836 esac
20837 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20838 # soname into executable. Probably we can add versioning support to
20839 # collect2, so additional links can be useful in future.
20840 if test "$aix_use_runtimelinking" = yes; then
20841 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20842 # instead of lib<name>.a to let people know that these are not
20843 # typical AIX shared libraries.
20844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20845 else
20846 # We preserve .a as extension for shared libraries through AIX4.2
20847 # and later when we are not doing run time linking.
20848 library_names_spec='${libname}${release}.a $libname.a'
20849 soname_spec='${libname}${release}${shared_ext}$major'
20851 shlibpath_var=LIBPATH
20855 amigaos*)
20856 case $host_cpu in
20857 powerpc)
20858 # Since July 2007 AmigaOS4 officially supports .so libraries.
20859 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20862 m68k)
20863 library_names_spec='$libname.ixlibrary $libname.a'
20864 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20865 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'
20867 esac
20870 beos*)
20871 library_names_spec='${libname}${shared_ext}'
20872 dynamic_linker="$host_os ld.so"
20873 shlibpath_var=LIBRARY_PATH
20876 bsdi[45]*)
20877 version_type=linux
20878 need_version=no
20879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20880 soname_spec='${libname}${release}${shared_ext}$major'
20881 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20882 shlibpath_var=LD_LIBRARY_PATH
20883 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20884 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20885 # the default ld.so.conf also contains /usr/contrib/lib and
20886 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20887 # libtool to hard-code these into programs
20890 cygwin* | mingw* | pw32* | cegcc*)
20891 version_type=windows
20892 shrext_cmds=".dll"
20893 need_version=no
20894 need_lib_prefix=no
20896 case $GCC,$host_os in
20897 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20898 library_names_spec='$libname.dll.a'
20899 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20900 postinstall_cmds='base_file=`basename \${file}`~
20901 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20902 dldir=$destdir/`dirname \$dlpath`~
20903 test -d \$dldir || mkdir -p \$dldir~
20904 $install_prog $dir/$dlname \$dldir/$dlname~
20905 chmod a+x \$dldir/$dlname~
20906 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20907 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20909 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20910 dlpath=$dir/\$dldll~
20911 $RM \$dlpath'
20912 shlibpath_overrides_runpath=yes
20914 case $host_os in
20915 cygwin*)
20916 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20917 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20920 mingw* | cegcc*)
20921 # MinGW DLLs use traditional 'lib' prefix
20922 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20924 pw32*)
20925 # pw32 DLLs use 'pw' prefix rather than 'lib'
20926 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20928 esac
20932 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20934 esac
20935 dynamic_linker='Win32 ld.exe'
20936 # FIXME: first we should search . and the directory the executable is in
20937 shlibpath_var=PATH
20940 darwin* | rhapsody*)
20941 dynamic_linker="$host_os dyld"
20942 version_type=darwin
20943 need_lib_prefix=no
20944 need_version=no
20945 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20946 soname_spec='${libname}${release}${major}$shared_ext'
20947 shlibpath_overrides_runpath=yes
20948 shlibpath_var=DYLD_LIBRARY_PATH
20949 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20951 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20954 dgux*)
20955 version_type=linux
20956 need_lib_prefix=no
20957 need_version=no
20958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20959 soname_spec='${libname}${release}${shared_ext}$major'
20960 shlibpath_var=LD_LIBRARY_PATH
20963 freebsd* | dragonfly*)
20964 # DragonFly does not have aout. When/if they implement a new
20965 # versioning mechanism, adjust this.
20966 if test -x /usr/bin/objformat; then
20967 objformat=`/usr/bin/objformat`
20968 else
20969 case $host_os in
20970 freebsd[23].*) objformat=aout ;;
20971 *) objformat=elf ;;
20972 esac
20974 version_type=freebsd-$objformat
20975 case $version_type in
20976 freebsd-elf*)
20977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20978 need_version=no
20979 need_lib_prefix=no
20981 freebsd-*)
20982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20983 need_version=yes
20985 esac
20986 shlibpath_var=LD_LIBRARY_PATH
20987 case $host_os in
20988 freebsd2.*)
20989 shlibpath_overrides_runpath=yes
20991 freebsd3.[01]* | freebsdelf3.[01]*)
20992 shlibpath_overrides_runpath=yes
20993 hardcode_into_libs=yes
20995 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20996 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20997 shlibpath_overrides_runpath=no
20998 hardcode_into_libs=yes
21000 *) # from 4.6 on, and DragonFly
21001 shlibpath_overrides_runpath=yes
21002 hardcode_into_libs=yes
21004 esac
21007 gnu*)
21008 version_type=linux
21009 need_lib_prefix=no
21010 need_version=no
21011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21012 soname_spec='${libname}${release}${shared_ext}$major'
21013 shlibpath_var=LD_LIBRARY_PATH
21014 hardcode_into_libs=yes
21017 haiku*)
21018 version_type=linux
21019 need_lib_prefix=no
21020 need_version=no
21021 dynamic_linker="$host_os runtime_loader"
21022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21023 soname_spec='${libname}${release}${shared_ext}$major'
21024 shlibpath_var=LIBRARY_PATH
21025 shlibpath_overrides_runpath=yes
21026 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21027 hardcode_into_libs=yes
21030 hpux9* | hpux10* | hpux11*)
21031 # Give a soname corresponding to the major version so that dld.sl refuses to
21032 # link against other versions.
21033 version_type=sunos
21034 need_lib_prefix=no
21035 need_version=no
21036 case $host_cpu in
21037 ia64*)
21038 shrext_cmds='.so'
21039 hardcode_into_libs=yes
21040 dynamic_linker="$host_os dld.so"
21041 shlibpath_var=LD_LIBRARY_PATH
21042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21044 soname_spec='${libname}${release}${shared_ext}$major'
21045 if test "X$HPUX_IA64_MODE" = X32; then
21046 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21047 else
21048 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21052 hppa*64*)
21053 shrext_cmds='.sl'
21054 hardcode_into_libs=yes
21055 dynamic_linker="$host_os dld.sl"
21056 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21059 soname_spec='${libname}${release}${shared_ext}$major'
21060 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21061 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21064 shrext_cmds='.sl'
21065 dynamic_linker="$host_os dld.sl"
21066 shlibpath_var=SHLIB_PATH
21067 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21069 soname_spec='${libname}${release}${shared_ext}$major'
21071 esac
21072 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21073 postinstall_cmds='chmod 555 $lib'
21074 # or fails outright, so override atomically:
21075 install_override_mode=555
21078 interix[3-9]*)
21079 version_type=linux
21080 need_lib_prefix=no
21081 need_version=no
21082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21083 soname_spec='${libname}${release}${shared_ext}$major'
21084 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21085 shlibpath_var=LD_LIBRARY_PATH
21086 shlibpath_overrides_runpath=no
21087 hardcode_into_libs=yes
21090 irix5* | irix6* | nonstopux*)
21091 case $host_os in
21092 nonstopux*) version_type=nonstopux ;;
21094 if test "$lt_cv_prog_gnu_ld" = yes; then
21095 version_type=linux
21096 else
21097 version_type=irix
21098 fi ;;
21099 esac
21100 need_lib_prefix=no
21101 need_version=no
21102 soname_spec='${libname}${release}${shared_ext}$major'
21103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21104 case $host_os in
21105 irix5* | nonstopux*)
21106 libsuff= shlibsuff=
21109 case $LD in # libtool.m4 will add one of these switches to LD
21110 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21111 libsuff= shlibsuff= libmagic=32-bit;;
21112 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21113 libsuff=32 shlibsuff=N32 libmagic=N32;;
21114 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21115 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21116 *) libsuff= shlibsuff= libmagic=never-match;;
21117 esac
21119 esac
21120 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21121 shlibpath_overrides_runpath=no
21122 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21123 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21124 hardcode_into_libs=yes
21127 # No shared lib support for Linux oldld, aout, or coff.
21128 linux*oldld* | linux*aout* | linux*coff*)
21129 dynamic_linker=no
21132 # This must be Linux ELF.
21133 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21134 version_type=linux
21135 need_lib_prefix=no
21136 need_version=no
21137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21138 soname_spec='${libname}${release}${shared_ext}$major'
21139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21140 shlibpath_var=LD_LIBRARY_PATH
21141 shlibpath_overrides_runpath=no
21143 # Some binutils ld are patched to set DT_RUNPATH
21144 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21145 $as_echo_n "(cached) " >&6
21146 else
21147 lt_cv_shlibpath_overrides_runpath=no
21148 save_LDFLAGS=$LDFLAGS
21149 save_libdir=$libdir
21150 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21151 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h. */
21156 main ()
21160 return 0;
21162 _ACEOF
21163 if ac_fn_cxx_try_link "$LINENO"; then :
21164 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21165 lt_cv_shlibpath_overrides_runpath=yes
21168 rm -f core conftest.err conftest.$ac_objext \
21169 conftest$ac_exeext conftest.$ac_ext
21170 LDFLAGS=$save_LDFLAGS
21171 libdir=$save_libdir
21175 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21177 # This implies no fast_install, which is unacceptable.
21178 # Some rework will be needed to allow for fast_install
21179 # before this can be enabled.
21180 hardcode_into_libs=yes
21182 # Append ld.so.conf contents to the search path
21183 if test -f /etc/ld.so.conf; then
21184 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' ' '`
21185 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21188 # We used to test for /lib/ld.so.1 and disable shared libraries on
21189 # powerpc, because MkLinux only supported shared libraries with the
21190 # GNU dynamic linker. Since this was broken with cross compilers,
21191 # most powerpc-linux boxes support dynamic linking these days and
21192 # people can always --disable-shared, the test was removed, and we
21193 # assume the GNU/Linux dynamic linker is in use.
21194 dynamic_linker='GNU/Linux ld.so'
21197 netbsd*)
21198 version_type=sunos
21199 need_lib_prefix=no
21200 need_version=no
21201 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21204 dynamic_linker='NetBSD (a.out) ld.so'
21205 else
21206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21207 soname_spec='${libname}${release}${shared_ext}$major'
21208 dynamic_linker='NetBSD ld.elf_so'
21210 shlibpath_var=LD_LIBRARY_PATH
21211 shlibpath_overrides_runpath=yes
21212 hardcode_into_libs=yes
21215 newsos6)
21216 version_type=linux
21217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21218 shlibpath_var=LD_LIBRARY_PATH
21219 shlibpath_overrides_runpath=yes
21222 *nto* | *qnx*)
21223 version_type=qnx
21224 need_lib_prefix=no
21225 need_version=no
21226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21227 soname_spec='${libname}${release}${shared_ext}$major'
21228 shlibpath_var=LD_LIBRARY_PATH
21229 shlibpath_overrides_runpath=no
21230 hardcode_into_libs=yes
21231 dynamic_linker='ldqnx.so'
21234 openbsd*)
21235 version_type=sunos
21236 sys_lib_dlsearch_path_spec="/usr/lib"
21237 need_lib_prefix=no
21238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21239 case $host_os in
21240 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21241 *) need_version=no ;;
21242 esac
21243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21245 shlibpath_var=LD_LIBRARY_PATH
21246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21247 case $host_os in
21248 openbsd2.[89] | openbsd2.[89].*)
21249 shlibpath_overrides_runpath=no
21252 shlibpath_overrides_runpath=yes
21254 esac
21255 else
21256 shlibpath_overrides_runpath=yes
21260 os2*)
21261 libname_spec='$name'
21262 shrext_cmds=".dll"
21263 need_lib_prefix=no
21264 library_names_spec='$libname${shared_ext} $libname.a'
21265 dynamic_linker='OS/2 ld.exe'
21266 shlibpath_var=LIBPATH
21269 osf3* | osf4* | osf5*)
21270 version_type=osf
21271 need_lib_prefix=no
21272 need_version=no
21273 soname_spec='${libname}${release}${shared_ext}$major'
21274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21275 shlibpath_var=LD_LIBRARY_PATH
21276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21277 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21280 rdos*)
21281 dynamic_linker=no
21284 solaris*)
21285 version_type=linux
21286 need_lib_prefix=no
21287 need_version=no
21288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21289 soname_spec='${libname}${release}${shared_ext}$major'
21290 shlibpath_var=LD_LIBRARY_PATH
21291 shlibpath_overrides_runpath=yes
21292 hardcode_into_libs=yes
21293 # ldd complains unless libraries are executable
21294 postinstall_cmds='chmod +x $lib'
21297 sunos4*)
21298 version_type=sunos
21299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21301 shlibpath_var=LD_LIBRARY_PATH
21302 shlibpath_overrides_runpath=yes
21303 if test "$with_gnu_ld" = yes; then
21304 need_lib_prefix=no
21306 need_version=yes
21309 sysv4 | sysv4.3*)
21310 version_type=linux
21311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21312 soname_spec='${libname}${release}${shared_ext}$major'
21313 shlibpath_var=LD_LIBRARY_PATH
21314 case $host_vendor in
21315 sni)
21316 shlibpath_overrides_runpath=no
21317 need_lib_prefix=no
21318 runpath_var=LD_RUN_PATH
21320 siemens)
21321 need_lib_prefix=no
21323 motorola)
21324 need_lib_prefix=no
21325 need_version=no
21326 shlibpath_overrides_runpath=no
21327 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21329 esac
21332 sysv4*MP*)
21333 if test -d /usr/nec ;then
21334 version_type=linux
21335 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21336 soname_spec='$libname${shared_ext}.$major'
21337 shlibpath_var=LD_LIBRARY_PATH
21341 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21342 version_type=freebsd-elf
21343 need_lib_prefix=no
21344 need_version=no
21345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21346 soname_spec='${libname}${release}${shared_ext}$major'
21347 shlibpath_var=LD_LIBRARY_PATH
21348 shlibpath_overrides_runpath=yes
21349 hardcode_into_libs=yes
21350 if test "$with_gnu_ld" = yes; then
21351 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21352 else
21353 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21354 case $host_os in
21355 sco3.2v5*)
21356 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21358 esac
21360 sys_lib_dlsearch_path_spec='/usr/lib'
21363 tpf*)
21364 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21365 version_type=linux
21366 need_lib_prefix=no
21367 need_version=no
21368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21369 shlibpath_var=LD_LIBRARY_PATH
21370 shlibpath_overrides_runpath=no
21371 hardcode_into_libs=yes
21374 uts4*)
21375 version_type=linux
21376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21377 soname_spec='${libname}${release}${shared_ext}$major'
21378 shlibpath_var=LD_LIBRARY_PATH
21382 dynamic_linker=no
21384 esac
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21386 $as_echo "$dynamic_linker" >&6; }
21387 test "$dynamic_linker" = no && can_build_shared=no
21389 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21390 if test "$GCC" = yes; then
21391 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21394 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21395 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21397 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21398 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21439 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21440 hardcode_action_CXX=
21441 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21442 test -n "$runpath_var_CXX" ||
21443 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21445 # We can hardcode non-existent directories.
21446 if test "$hardcode_direct_CXX" != no &&
21447 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21448 # have to relink, otherwise we might link with an installed library
21449 # when we should be linking with a yet-to-be-installed one
21450 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21451 test "$hardcode_minus_L_CXX" != no; then
21452 # Linking always hardcodes the temporary library directory.
21453 hardcode_action_CXX=relink
21454 else
21455 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21456 hardcode_action_CXX=immediate
21458 else
21459 # We cannot hardcode anything, or else we can only hardcode existing
21460 # directories.
21461 hardcode_action_CXX=unsupported
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21464 $as_echo "$hardcode_action_CXX" >&6; }
21466 if test "$hardcode_action_CXX" = relink ||
21467 test "$inherit_rpath_CXX" = yes; then
21468 # Fast installation is not supported
21469 enable_fast_install=no
21470 elif test "$shlibpath_overrides_runpath" = yes ||
21471 test "$enable_shared" = no; then
21472 # Fast installation is not necessary
21473 enable_fast_install=needless
21482 fi # test -n "$compiler"
21484 CC=$lt_save_CC
21485 LDCXX=$LD
21486 LD=$lt_save_LD
21487 GCC=$lt_save_GCC
21488 with_gnu_ld=$lt_save_with_gnu_ld
21489 lt_cv_path_LDCXX=$lt_cv_path_LD
21490 lt_cv_path_LD=$lt_save_path_LD
21491 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21492 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21493 fi # test "$_lt_caught_CXX_error" != yes
21495 ac_ext=c
21496 ac_cpp='$CPP $CPPFLAGS'
21497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21516 # Only expand once:
21522 # Identify the assembler which will work hand-in-glove with the newly
21523 # built GCC, so that we can examine its features. This is the assembler
21524 # which will be driven by the driver program.
21526 # If build != host, and we aren't building gas in-tree, we identify a
21527 # build->target assembler and hope that it will have the same features
21528 # as the host->target assembler we'll be using.
21529 gcc_cv_gas_major_version=
21530 gcc_cv_gas_minor_version=
21531 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21533 if test "${gcc_cv_as+set}" = set; then :
21535 else
21537 if test -x "$DEFAULT_ASSEMBLER"; then
21538 gcc_cv_as="$DEFAULT_ASSEMBLER"
21539 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21540 && test -f ../gas/Makefile \
21541 && test x$build = x$host; then
21542 gcc_cv_as=../gas/as-new$build_exeext
21543 elif test -x as$build_exeext; then
21544 # Build using assembler in the current directory.
21545 gcc_cv_as=./as$build_exeext
21546 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21547 gcc_cv_as="$AS_FOR_TARGET"
21548 else
21549 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21550 set dummy $AS_FOR_TARGET; ac_word=$2
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21552 $as_echo_n "checking for $ac_word... " >&6; }
21553 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21554 $as_echo_n "(cached) " >&6
21555 else
21556 case $gcc_cv_as in
21557 [\\/]* | ?:[\\/]*)
21558 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21562 for as_dir in $PATH
21564 IFS=$as_save_IFS
21565 test -z "$as_dir" && as_dir=.
21566 for ac_exec_ext in '' $ac_executable_extensions; do
21567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21568 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21570 break 2
21572 done
21573 done
21574 IFS=$as_save_IFS
21577 esac
21579 gcc_cv_as=$ac_cv_path_gcc_cv_as
21580 if test -n "$gcc_cv_as"; then
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21582 $as_echo "$gcc_cv_as" >&6; }
21583 else
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21585 $as_echo "no" >&6; }
21592 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21594 case "$ORIGINAL_AS_FOR_TARGET" in
21595 ./as | ./as$build_exeext) ;;
21596 *) ac_config_files="$ac_config_files as:exec-tool.in"
21598 esac
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21601 $as_echo_n "checking what assembler to use... " >&6; }
21602 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21603 # Single tree build which includes gas. We want to prefer it
21604 # over whatever linker top-level may have detected, since
21605 # we'll use what we're building after installation anyway.
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21607 $as_echo "newly built gas" >&6; }
21608 in_tree_gas=yes
21609 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21610 for f in $gcc_cv_as_bfd_srcdir/configure \
21611 $gcc_cv_as_gas_srcdir/configure \
21612 $gcc_cv_as_gas_srcdir/configure.in \
21613 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21614 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21615 if test x$gcc_cv_gas_version != x; then
21616 break
21618 done
21619 case $gcc_cv_gas_version in
21620 VERSION=[0-9]*) ;;
21621 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21622 esac
21623 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21624 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21625 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21626 case $gcc_cv_gas_patch_version in
21627 "") gcc_cv_gas_patch_version="0" ;;
21628 esac
21629 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21630 + $gcc_cv_gas_minor_version \) \* 1000 \
21631 + $gcc_cv_gas_patch_version`
21633 in_tree_gas_is_elf=no
21634 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21635 || (grep 'obj_format = multi' ../gas/Makefile \
21636 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21637 then
21638 in_tree_gas_is_elf=yes
21640 else
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21642 $as_echo "$gcc_cv_as" >&6; }
21643 in_tree_gas=no
21646 # Identify the linker which will work hand-in-glove with the newly
21647 # built GCC, so that we can examine its features. This is the linker
21648 # which will be driven by the driver program.
21650 # If build != host, and we aren't building gas in-tree, we identify a
21651 # build->target linker and hope that it will have the same features
21652 # as the host->target linker we'll be using.
21653 gcc_cv_gld_major_version=
21654 gcc_cv_gld_minor_version=
21655 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21656 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21658 if test "${gcc_cv_ld+set}" = set; then :
21660 else
21662 if test -x "$DEFAULT_LINKER"; then
21663 gcc_cv_ld="$DEFAULT_LINKER"
21664 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21665 && test -f ../ld/Makefile \
21666 && test x$build = x$host; then
21667 gcc_cv_ld=../ld/ld-new$build_exeext
21668 elif test -x collect-ld$build_exeext; then
21669 # Build using linker in the current directory.
21670 gcc_cv_ld=./collect-ld$build_exeext
21671 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21672 gcc_cv_ld="$LD_FOR_TARGET"
21673 else
21674 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21675 set dummy $LD_FOR_TARGET; ac_word=$2
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21677 $as_echo_n "checking for $ac_word... " >&6; }
21678 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21679 $as_echo_n "(cached) " >&6
21680 else
21681 case $gcc_cv_ld in
21682 [\\/]* | ?:[\\/]*)
21683 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21687 for as_dir in $PATH
21689 IFS=$as_save_IFS
21690 test -z "$as_dir" && as_dir=.
21691 for ac_exec_ext in '' $ac_executable_extensions; do
21692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21693 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21695 break 2
21697 done
21698 done
21699 IFS=$as_save_IFS
21702 esac
21704 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21705 if test -n "$gcc_cv_ld"; then
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21707 $as_echo "$gcc_cv_ld" >&6; }
21708 else
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21710 $as_echo "no" >&6; }
21717 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21718 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21719 # if the PLUGIN_LD is set ld-new, just have it as ld
21720 # as that is the installed named.
21721 if test x$PLUGIN_LD_SUFFIX = xld-new \
21722 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21723 PLUGIN_LD_SUFFIX=ld
21726 # Check whether --with-plugin-ld was given.
21727 if test "${with_plugin_ld+set}" = set; then :
21728 withval=$with_plugin_ld; if test x"$withval" != x; then
21729 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21730 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21736 cat >>confdefs.h <<_ACEOF
21737 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21738 _ACEOF
21741 # Check to see if we are using gold instead of ld
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21743 $as_echo_n "checking whether we are using gold... " >&6; }
21744 ld_is_gold=no
21745 if test x$gcc_cv_ld != x; then
21746 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21747 | grep "GNU gold" > /dev/null; then
21748 ld_is_gold=yes
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21752 $as_echo "$ld_is_gold" >&6; }
21754 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21756 case "$ORIGINAL_LD_FOR_TARGET" in
21757 ./collect-ld | ./collect-ld$build_exeext) ;;
21758 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21760 esac
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21763 $as_echo_n "checking what linker to use... " >&6; }
21764 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21765 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21766 # Single tree build which includes ld. We want to prefer it
21767 # over whatever linker top-level may have detected, since
21768 # we'll use what we're building after installation anyway.
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21770 $as_echo "newly built ld" >&6; }
21771 in_tree_ld=yes
21772 in_tree_ld_is_elf=no
21773 if (grep 'EMUL = .*elf' ../ld/Makefile \
21774 || grep 'EMUL = .*linux' ../ld/Makefile \
21775 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21776 in_tree_ld_is_elf=yes
21777 elif test "$ld_is_gold" = yes; then
21778 in_tree_ld_is_elf=yes
21780 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
21782 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21783 if test x$gcc_cv_gld_version != x; then
21784 break
21786 done
21787 case $gcc_cv_gld_version in
21788 VERSION=[0-9]*) ;;
21789 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21790 esac
21791 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21792 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21793 else
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21795 $as_echo "$gcc_cv_ld" >&6; }
21796 in_tree_ld=no
21799 # Figure out what nm we will be using.
21800 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21801 if test "${gcc_cv_nm+set}" = set; then :
21803 else
21805 if test -f $gcc_cv_binutils_srcdir/configure.in \
21806 && test -f ../binutils/Makefile \
21807 && test x$build = x$host; then
21808 gcc_cv_nm=../binutils/nm-new$build_exeext
21809 elif test -x nm$build_exeext; then
21810 gcc_cv_nm=./nm$build_exeext
21811 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21812 gcc_cv_nm="$NM_FOR_TARGET"
21813 else
21814 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21815 set dummy $NM_FOR_TARGET; ac_word=$2
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21817 $as_echo_n "checking for $ac_word... " >&6; }
21818 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21819 $as_echo_n "(cached) " >&6
21820 else
21821 case $gcc_cv_nm in
21822 [\\/]* | ?:[\\/]*)
21823 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21827 for as_dir in $PATH
21829 IFS=$as_save_IFS
21830 test -z "$as_dir" && as_dir=.
21831 for ac_exec_ext in '' $ac_executable_extensions; do
21832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21833 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21835 break 2
21837 done
21838 done
21839 IFS=$as_save_IFS
21842 esac
21844 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21845 if test -n "$gcc_cv_nm"; then
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21847 $as_echo "$gcc_cv_nm" >&6; }
21848 else
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850 $as_echo "no" >&6; }
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21858 $as_echo_n "checking what nm to use... " >&6; }
21859 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21860 # Single tree build which includes binutils.
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21862 $as_echo "newly built nm" >&6; }
21863 in_tree_nm=yes
21864 else
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21866 $as_echo "$gcc_cv_nm" >&6; }
21867 in_tree_nm=no
21870 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21872 case "$ORIGINAL_NM_FOR_TARGET" in
21873 ./nm | ./nm$build_exeext) ;;
21874 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21876 esac
21879 # Figure out what objdump we will be using.
21880 if test "${gcc_cv_objdump+set}" = set; then :
21882 else
21884 if test -f $gcc_cv_binutils_srcdir/configure.in \
21885 && test -f ../binutils/Makefile \
21886 && test x$build = x$host; then
21887 # Single tree build which includes binutils.
21888 gcc_cv_objdump=../binutils/objdump$build_exeext
21889 elif test -x objdump$build_exeext; then
21890 gcc_cv_objdump=./objdump$build_exeext
21891 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21892 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21893 else
21894 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21895 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21897 $as_echo_n "checking for $ac_word... " >&6; }
21898 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21899 $as_echo_n "(cached) " >&6
21900 else
21901 case $gcc_cv_objdump in
21902 [\\/]* | ?:[\\/]*)
21903 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21907 for as_dir in $PATH
21909 IFS=$as_save_IFS
21910 test -z "$as_dir" && as_dir=.
21911 for ac_exec_ext in '' $ac_executable_extensions; do
21912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21913 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21915 break 2
21917 done
21918 done
21919 IFS=$as_save_IFS
21922 esac
21924 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21925 if test -n "$gcc_cv_objdump"; then
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21927 $as_echo "$gcc_cv_objdump" >&6; }
21928 else
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21930 $as_echo "no" >&6; }
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21938 $as_echo_n "checking what objdump to use... " >&6; }
21939 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21940 # Single tree build which includes binutils.
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21942 $as_echo "newly built objdump" >&6; }
21943 elif test x$gcc_cv_objdump = x; then
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21945 $as_echo "not found" >&6; }
21946 else
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21948 $as_echo "$gcc_cv_objdump" >&6; }
21951 # Figure out what readelf we will be using.
21952 if test "${gcc_cv_readelf+set}" = set; then :
21954 else
21956 if test -f $gcc_cv_binutils_srcdir/configure.in \
21957 && test -f ../binutils/Makefile \
21958 && test x$build = x$host; then
21959 # Single tree build which includes binutils.
21960 gcc_cv_readelf=../binutils/readelf$build_exeext
21961 elif test -x readelf$build_exeext; then
21962 gcc_cv_readelf=./readelf$build_exeext
21963 else
21964 # Extract the first word of "readelf", so it can be a program name with args.
21965 set dummy readelf; ac_word=$2
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21967 $as_echo_n "checking for $ac_word... " >&6; }
21968 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21969 $as_echo_n "(cached) " >&6
21970 else
21971 case $gcc_cv_readelf in
21972 [\\/]* | ?:[\\/]*)
21973 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21977 for as_dir in $PATH
21979 IFS=$as_save_IFS
21980 test -z "$as_dir" && as_dir=.
21981 for ac_exec_ext in '' $ac_executable_extensions; do
21982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21983 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21985 break 2
21987 done
21988 done
21989 IFS=$as_save_IFS
21992 esac
21994 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21995 if test -n "$gcc_cv_readelf"; then
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21997 $as_echo "$gcc_cv_readelf" >&6; }
21998 else
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22000 $as_echo "no" >&6; }
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22008 $as_echo_n "checking what readelf to use... " >&6; }
22009 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22010 # Single tree build which includes binutils.
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22012 $as_echo "newly built readelf" >&6; }
22013 elif test x$gcc_cv_readelf = x; then
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22015 $as_echo "not found" >&6; }
22016 else
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22018 $as_echo "$gcc_cv_readelf" >&6; }
22021 # Figure out what assembler alignment features are present.
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22023 $as_echo_n "checking assembler flags... " >&6; }
22024 if test "${gcc_cv_as_flags+set}" = set; then :
22025 $as_echo_n "(cached) " >&6
22026 else
22027 case "$target" in
22028 i[34567]86-*-linux*)
22029 gcc_cv_as_flags="--32"
22031 powerpc*-*-darwin*)
22032 gcc_cv_as_flags="-arch ppc"
22035 gcc_cv_as_flags=" "
22037 esac
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22040 $as_echo "$gcc_cv_as_flags" >&6; }
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22043 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22044 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22045 $as_echo_n "(cached) " >&6
22046 else
22047 gcc_cv_as_balign_and_p2align=no
22048 if test $in_tree_gas = yes; then
22049 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22050 then gcc_cv_as_balign_and_p2align=yes
22052 elif test x$gcc_cv_as != x; then
22053 $as_echo '.balign 4
22054 .p2align 2' > conftest.s
22055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22057 (eval $ac_try) 2>&5
22058 ac_status=$?
22059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22060 test $ac_status = 0; }; }
22061 then
22062 gcc_cv_as_balign_and_p2align=yes
22063 else
22064 echo "configure: failed program was" >&5
22065 cat conftest.s >&5
22067 rm -f conftest.o conftest.s
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22071 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22072 if test $gcc_cv_as_balign_and_p2align = yes; then
22074 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22079 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22080 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22081 $as_echo_n "(cached) " >&6
22082 else
22083 gcc_cv_as_max_skip_p2align=no
22084 if test $in_tree_gas = yes; then
22085 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22086 then gcc_cv_as_max_skip_p2align=yes
22088 elif test x$gcc_cv_as != x; then
22089 $as_echo '.p2align 4,,7' > conftest.s
22090 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22092 (eval $ac_try) 2>&5
22093 ac_status=$?
22094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22095 test $ac_status = 0; }; }
22096 then
22097 gcc_cv_as_max_skip_p2align=yes
22098 else
22099 echo "configure: failed program was" >&5
22100 cat conftest.s >&5
22102 rm -f conftest.o conftest.s
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22106 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22107 if test $gcc_cv_as_max_skip_p2align = yes; then
22109 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22114 $as_echo_n "checking assembler for .literal16... " >&6; }
22115 if test "${gcc_cv_as_literal16+set}" = set; then :
22116 $as_echo_n "(cached) " >&6
22117 else
22118 gcc_cv_as_literal16=no
22119 if test $in_tree_gas = yes; then
22120 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22121 then gcc_cv_as_literal16=yes
22123 elif test x$gcc_cv_as != x; then
22124 $as_echo '.literal16' > conftest.s
22125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22127 (eval $ac_try) 2>&5
22128 ac_status=$?
22129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22130 test $ac_status = 0; }; }
22131 then
22132 gcc_cv_as_literal16=yes
22133 else
22134 echo "configure: failed program was" >&5
22135 cat conftest.s >&5
22137 rm -f conftest.o conftest.s
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22141 $as_echo "$gcc_cv_as_literal16" >&6; }
22142 if test $gcc_cv_as_literal16 = yes; then
22144 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22149 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22150 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22151 $as_echo_n "(cached) " >&6
22152 else
22153 gcc_cv_as_subsection_m1=no
22154 if test $in_tree_gas = yes; then
22155 if test $in_tree_gas_is_elf = yes \
22156 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22157 then gcc_cv_as_subsection_m1=yes
22159 elif test x$gcc_cv_as != x; then
22160 $as_echo 'conftest_label1: .word 0
22161 .subsection -1
22162 conftest_label2: .word 0
22163 .previous' > conftest.s
22164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22166 (eval $ac_try) 2>&5
22167 ac_status=$?
22168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22169 test $ac_status = 0; }; }
22170 then
22171 if test x$gcc_cv_nm != x; then
22172 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22173 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22174 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22175 then :
22176 else gcc_cv_as_subsection_m1=yes
22178 rm -f conftest.nm1 conftest.nm2
22180 else
22181 echo "configure: failed program was" >&5
22182 cat conftest.s >&5
22184 rm -f conftest.o conftest.s
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22188 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22189 if test $gcc_cv_as_subsection_m1 = yes; then
22191 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22196 $as_echo_n "checking assembler for .weak... " >&6; }
22197 if test "${gcc_cv_as_weak+set}" = set; then :
22198 $as_echo_n "(cached) " >&6
22199 else
22200 gcc_cv_as_weak=no
22201 if test $in_tree_gas = yes; then
22202 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22203 then gcc_cv_as_weak=yes
22205 elif test x$gcc_cv_as != x; then
22206 $as_echo ' .weak foobar' > conftest.s
22207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22209 (eval $ac_try) 2>&5
22210 ac_status=$?
22211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22212 test $ac_status = 0; }; }
22213 then
22214 gcc_cv_as_weak=yes
22215 else
22216 echo "configure: failed program was" >&5
22217 cat conftest.s >&5
22219 rm -f conftest.o conftest.s
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22223 $as_echo "$gcc_cv_as_weak" >&6; }
22224 if test $gcc_cv_as_weak = yes; then
22226 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22231 $as_echo_n "checking assembler for .weakref... " >&6; }
22232 if test "${gcc_cv_as_weakref+set}" = set; then :
22233 $as_echo_n "(cached) " >&6
22234 else
22235 gcc_cv_as_weakref=no
22236 if test $in_tree_gas = yes; then
22237 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22238 then gcc_cv_as_weakref=yes
22240 elif test x$gcc_cv_as != x; then
22241 $as_echo ' .weakref foobar, barfnot' > conftest.s
22242 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22244 (eval $ac_try) 2>&5
22245 ac_status=$?
22246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22247 test $ac_status = 0; }; }
22248 then
22249 gcc_cv_as_weakref=yes
22250 else
22251 echo "configure: failed program was" >&5
22252 cat conftest.s >&5
22254 rm -f conftest.o conftest.s
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22258 $as_echo "$gcc_cv_as_weakref" >&6; }
22259 if test $gcc_cv_as_weakref = yes; then
22261 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22266 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22267 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22268 $as_echo_n "(cached) " >&6
22269 else
22270 gcc_cv_as_nsubspa_comdat=no
22271 if test $in_tree_gas = yes; then
22272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22273 then gcc_cv_as_nsubspa_comdat=yes
22275 elif test x$gcc_cv_as != x; then
22276 $as_echo ' .SPACE $TEXT$
22277 .NSUBSPA $CODE$,COMDAT' > conftest.s
22278 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22280 (eval $ac_try) 2>&5
22281 ac_status=$?
22282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22283 test $ac_status = 0; }; }
22284 then
22285 gcc_cv_as_nsubspa_comdat=yes
22286 else
22287 echo "configure: failed program was" >&5
22288 cat conftest.s >&5
22290 rm -f conftest.o conftest.s
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22294 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22295 if test $gcc_cv_as_nsubspa_comdat = yes; then
22297 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22301 # .hidden needs to be supported in both the assembler and the linker,
22302 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22303 # This is irritatingly difficult to feature test for; we have to check the
22304 # date string after the version number. If we've got an in-tree
22305 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22306 # to be safe.
22307 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22309 $as_echo_n "checking assembler for .hidden... " >&6; }
22310 if test "${gcc_cv_as_hidden+set}" = set; then :
22311 $as_echo_n "(cached) " >&6
22312 else
22313 gcc_cv_as_hidden=no
22314 if test $in_tree_gas = yes; then
22315 if test $in_tree_gas_is_elf = yes \
22316 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22317 then gcc_cv_as_hidden=yes
22319 elif test x$gcc_cv_as != x; then
22320 $as_echo ' .hidden foobar
22321 foobar:' > conftest.s
22322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22324 (eval $ac_try) 2>&5
22325 ac_status=$?
22326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22327 test $ac_status = 0; }; }
22328 then
22330 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22331 # STV_HIDDEN, so disable .hidden support if so.
22332 case "${target}" in
22333 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22334 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22335 cat > conftest.s <<EOF
22336 .globl hidden
22337 .hidden hidden
22338 hidden:
22339 .globl default
22340 .set default,hidden
22342 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22343 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22344 grep '\.hidden default' > /dev/null; then
22345 gcc_cv_as_hidden=no
22346 else
22347 gcc_cv_as_hidden=yes
22349 else
22350 # Assume bug is present if objdump is missing.
22351 gcc_cv_as_hidden=no
22355 gcc_cv_as_hidden=yes
22357 esac
22358 else
22359 echo "configure: failed program was" >&5
22360 cat conftest.s >&5
22362 rm -f conftest.o conftest.s
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22366 $as_echo "$gcc_cv_as_hidden" >&6; }
22368 case "${target}" in
22369 *-*-darwin*)
22370 # Darwin as has some visibility support, though with a different syntax.
22371 gcc_cv_as_hidden=yes
22373 esac
22375 # gnu_indirect_function type is an extension proposed at
22376 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22377 # selection of function implementation
22378 # Check whether --enable-gnu-indirect-function was given.
22379 if test "${enable_gnu_indirect_function+set}" = set; then :
22380 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22381 yes | no) ;;
22382 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22383 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22384 esac
22385 else
22386 enable_gnu_indirect_function="$default_gnu_indirect_function"
22390 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22392 cat >>confdefs.h <<_ACEOF
22393 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22394 _ACEOF
22398 if test $in_tree_ld != yes ; then
22399 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22400 if echo "$ld_ver" | grep GNU > /dev/null; then
22401 if test x"$ld_is_gold" = xyes; then
22402 # GNU gold --version looks like this:
22404 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22406 # We extract the binutils version which is more familiar and specific
22407 # than the gold version.
22408 ld_vers=`echo $ld_ver | sed -n \
22409 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22410 else
22411 # GNU ld --version looks like this:
22413 # GNU ld (GNU Binutils) 2.21.51.20110225
22414 ld_vers=`echo $ld_ver | sed -n \
22415 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22417 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'`
22418 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22419 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22420 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22421 else
22422 case "${target}" in
22423 *-*-solaris2*)
22424 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22425 # format.
22427 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22428 # /usr/ccs/bin/ld has been configured.
22429 ld_ver=`$gcc_cv_ld -V 2>&1`
22430 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22431 ld_vers=`echo $ld_ver | sed -n \
22432 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22433 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22434 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22437 esac
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22442 $as_echo_n "checking linker for .hidden support... " >&6; }
22443 if test "${gcc_cv_ld_hidden+set}" = set; then :
22444 $as_echo_n "(cached) " >&6
22445 else
22446 if test $in_tree_ld = yes ; then
22447 gcc_cv_ld_hidden=no
22448 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 \
22449 && test $in_tree_ld_is_elf = yes; then
22450 gcc_cv_ld_hidden=yes
22452 else
22453 gcc_cv_ld_hidden=yes
22454 if test x"$ld_is_gold" = xyes; then
22456 elif echo "$ld_ver" | grep GNU > /dev/null; then
22457 case "${target}" in
22458 mmix-knuth-mmixware)
22459 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22460 gcc_cv_ld_hidden=no
22462 esac
22463 if test 0"$ld_date" -lt 20020404; then
22464 if test -n "$ld_date"; then
22465 # If there was date string, but was earlier than 2002-04-04, fail
22466 gcc_cv_ld_hidden=no
22467 elif test -z "$ld_vers"; then
22468 # If there was no date string nor ld version number, something is wrong
22469 gcc_cv_ld_hidden=no
22470 else
22471 test -z "$ld_vers_patch" && ld_vers_patch=0
22472 if test "$ld_vers_major" -lt 2; then
22473 gcc_cv_ld_hidden=no
22474 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22475 gcc_cv_ld_hidden="no"
22476 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22477 gcc_cv_ld_hidden=no
22481 else
22482 case "${target}" in
22483 *-*-darwin*)
22484 # Darwin ld has some visibility support.
22485 gcc_cv_ld_hidden=yes
22487 hppa64*-*-hpux* | ia64*-*-hpux*)
22488 gcc_cv_ld_hidden=yes
22490 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22491 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22492 # .symbolic was only added in Solaris 9 12/02.
22493 gcc_cv_ld_hidden=yes
22496 gcc_cv_ld_hidden=no
22498 esac
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22503 $as_echo "$gcc_cv_ld_hidden" >&6; }
22504 libgcc_visibility=no
22507 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22508 libgcc_visibility=yes
22510 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22515 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22516 gcc_cv_ld_ro_rw_mix=unknown
22517 if test $in_tree_ld = yes ; then
22518 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 \
22519 && test $in_tree_ld_is_elf = yes; then
22520 gcc_cv_ld_ro_rw_mix=read-write
22522 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22523 echo '.section myfoosect, "a"' > conftest1.s
22524 echo '.section myfoosect, "aw"' > conftest2.s
22525 echo '.byte 1' >> conftest2.s
22526 echo '.section myfoosect, "a"' > conftest3.s
22527 echo '.byte 0' >> conftest3.s
22528 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22529 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22530 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22531 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22532 conftest2.o conftest3.o > /dev/null 2>&1; then
22533 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22534 | sed -e '/myfoosect/!d' -e N`
22535 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22536 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22537 gcc_cv_ld_ro_rw_mix=read-only
22538 else
22539 gcc_cv_ld_ro_rw_mix=read-write
22543 rm -f conftest.* conftest[123].*
22545 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22547 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22551 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22553 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22554 case "${target}" in
22555 *-*-solaris2*)
22557 # Solaris 2 ld -V output looks like this for a regular version:
22559 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22561 # but test versions add stuff at the end:
22563 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22565 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22566 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22567 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22568 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22569 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22570 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22573 esac
22576 # Check whether --enable-initfini-array was given.
22577 if test "${enable_initfini_array+set}" = set; then :
22578 enableval=$enable_initfini_array;
22579 else
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22582 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22583 if test "${gcc_cv_initfini_array+set}" = set; then :
22584 $as_echo_n "(cached) " >&6
22585 else
22586 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22587 case "${target}" in
22588 ia64-*)
22589 if test "$cross_compiling" = yes; then :
22590 gcc_cv_initfini_array=no
22591 else
22592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22593 /* end confdefs.h. */
22595 #ifndef __ELF__
22596 #error Not an ELF OS
22597 #endif
22598 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22599 if it can be used. */
22600 static int x = -1;
22601 int main (void) { return x; }
22602 int foo (void) { x = 0; }
22603 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22605 _ACEOF
22606 if ac_fn_c_try_run "$LINENO"; then :
22607 gcc_cv_initfini_array=yes
22608 else
22609 gcc_cv_initfini_array=no
22611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22612 conftest.$ac_objext conftest.beam conftest.$ac_ext
22616 gcc_cv_initfini_array=no
22617 if test $in_tree_ld = yes ; then
22618 if test "$gcc_cv_gld_major_version" -eq 2 \
22619 -a "$gcc_cv_gld_minor_version" -ge 22 \
22620 -o "$gcc_cv_gld_major_version" -gt 2 \
22621 && test $in_tree_ld_is_elf = yes; then
22622 gcc_cv_initfini_array=yes
22624 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22625 cat > conftest.s <<\EOF
22626 .section .dtors,"a",%progbits
22627 .balign 4
22628 .byte 'A', 'A', 'A', 'A'
22629 .section .ctors,"a",%progbits
22630 .balign 4
22631 .byte 'B', 'B', 'B', 'B'
22632 .section .fini_array.65530,"a",%progbits
22633 .balign 4
22634 .byte 'C', 'C', 'C', 'C'
22635 .section .init_array.65530,"a",%progbits
22636 .balign 4
22637 .byte 'D', 'D', 'D', 'D'
22638 .section .dtors.64528,"a",%progbits
22639 .balign 4
22640 .byte 'E', 'E', 'E', 'E'
22641 .section .ctors.64528,"a",%progbits
22642 .balign 4
22643 .byte 'F', 'F', 'F', 'F'
22644 .section .fini_array.01005,"a",%progbits
22645 .balign 4
22646 .byte 'G', 'G', 'G', 'G'
22647 .section .init_array.01005,"a",%progbits
22648 .balign 4
22649 .byte 'H', 'H', 'H', 'H'
22650 .text
22651 .globl _start
22652 _start:
22654 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22655 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22656 && $gcc_cv_objdump -s -j .init_array conftest \
22657 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22658 && $gcc_cv_objdump -s -j .fini_array conftest \
22659 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22660 gcc_cv_initfini_array=yes
22662 rm -f conftest conftest.*
22664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22665 /* end confdefs.h. */
22667 #ifndef __ELF__
22668 # error Not an ELF OS
22669 #endif
22670 #include <stdlib.h>
22671 #if defined __GLIBC_PREREQ
22672 # if __GLIBC_PREREQ (2, 4)
22673 # else
22674 # error GLIBC 2.4 required
22675 # endif
22676 #else
22677 # if defined __sun__ && defined __svr4__
22678 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22679 # else
22680 # error The C library not known to support .init_array/.fini_array
22681 # endif
22682 #endif
22684 _ACEOF
22685 if ac_fn_c_try_cpp "$LINENO"; then :
22687 else
22688 gcc_cv_initfini_array=no
22690 rm -f conftest.err conftest.$ac_ext;;
22691 esac
22692 else
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22694 $as_echo_n "checking cross compile... guessing... " >&6; }
22695 gcc_cv_initfini_array=no
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22699 $as_echo "$gcc_cv_initfini_array" >&6; }
22700 enable_initfini_array=$gcc_cv_initfini_array
22704 if test $enable_initfini_array = yes; then
22706 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22710 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22712 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22713 if test "${gcc_cv_as_leb128+set}" = set; then :
22714 $as_echo_n "(cached) " >&6
22715 else
22716 gcc_cv_as_leb128=no
22717 if test $in_tree_gas = yes; then
22718 if test $in_tree_gas_is_elf = yes \
22719 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22720 then gcc_cv_as_leb128=yes
22722 elif test x$gcc_cv_as != x; then
22723 $as_echo ' .data
22724 .uleb128 L2 - L1
22726 .uleb128 1280
22727 .sleb128 -1010
22728 L2:' > conftest.s
22729 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22731 (eval $ac_try) 2>&5
22732 ac_status=$?
22733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22734 test $ac_status = 0; }; }
22735 then
22736 # GAS versions before 2.11 do not support uleb128,
22737 # despite appearing to.
22738 # ??? There exists an elf-specific test that will crash
22739 # the assembler. Perhaps it's better to figure out whether
22740 # arbitrary sections are supported and try the test.
22741 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22742 if echo "$as_ver" | grep GNU > /dev/null; then
22743 as_vers=`echo $as_ver | sed -n \
22744 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22745 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22746 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22747 if test $as_major -eq 2 && test $as_minor -lt 11
22748 then :
22749 else gcc_cv_as_leb128=yes
22752 else
22753 echo "configure: failed program was" >&5
22754 cat conftest.s >&5
22756 rm -f conftest.o conftest.s
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22760 $as_echo "$gcc_cv_as_leb128" >&6; }
22761 if test $gcc_cv_as_leb128 = yes; then
22763 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22767 # Check if we have assembler support for unwind directives.
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22769 $as_echo_n "checking assembler for cfi directives... " >&6; }
22770 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22771 $as_echo_n "(cached) " >&6
22772 else
22773 gcc_cv_as_cfi_directive=no
22774 if test x$gcc_cv_as != x; then
22775 $as_echo ' .text
22776 .cfi_startproc
22777 .cfi_offset 0, 0
22778 .cfi_same_value 1
22779 .cfi_def_cfa 1, 2
22780 .cfi_escape 1, 2, 3, 4, 5
22781 .cfi_endproc' > conftest.s
22782 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22784 (eval $ac_try) 2>&5
22785 ac_status=$?
22786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22787 test $ac_status = 0; }; }
22788 then
22789 case "$target" in
22790 *-*-solaris*)
22791 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22792 # read-only and read-write sections, we need to make sure that the
22793 # assembler used emits read-write .eh_frame sections.
22794 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22795 if test "x$gcc_cv_objdump" != x; then
22796 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22797 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22798 gcc_cv_as_cfi_directive=no
22799 else
22800 case "$target" in
22801 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22802 # On Solaris/x86, make sure that GCC and gas agree on using
22803 # read-only .eh_frame sections for 64-bit.
22804 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22805 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22806 sed -e /.eh_frame/!d -e N | \
22807 grep READONLY > /dev/null; then
22808 gcc_cv_as_cfi_directive=yes
22809 else
22810 gcc_cv_as_cfi_directive=no
22814 gcc_cv_as_cfi_directive=yes
22816 esac
22818 else
22819 # no objdump, err on the side of caution
22820 gcc_cv_as_cfi_directive=no
22822 else
22823 gcc_cv_as_cfi_directive=yes
22826 *-*-*)
22827 gcc_cv_as_cfi_directive=yes
22829 esac
22830 else
22831 echo "configure: failed program was" >&5
22832 cat conftest.s >&5
22834 rm -f conftest.o conftest.s
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22838 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22840 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22842 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22843 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22844 $as_echo_n "(cached) " >&6
22845 else
22846 gcc_cv_as_cfi_advance_working=no
22847 if test x$gcc_cv_as != x; then
22848 $as_echo ' .text
22849 .cfi_startproc
22850 .cfi_adjust_cfa_offset 64
22851 .skip 75040, 0
22852 .cfi_adjust_cfa_offset 128
22853 .cfi_endproc' > conftest.s
22854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22856 (eval $ac_try) 2>&5
22857 ac_status=$?
22858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22859 test $ac_status = 0; }; }
22860 then
22862 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22863 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22864 gcc_cv_as_cfi_advance_working=yes
22867 else
22868 echo "configure: failed program was" >&5
22869 cat conftest.s >&5
22871 rm -f conftest.o conftest.s
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22875 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22877 else
22878 # no objdump, err on the side of caution
22879 gcc_cv_as_cfi_advance_working=no
22883 cat >>confdefs.h <<_ACEOF
22884 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22885 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22886 _ACEOF
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22891 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22892 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22893 $as_echo_n "(cached) " >&6
22894 else
22895 gcc_cv_as_cfi_personality_directive=no
22896 if test x$gcc_cv_as != x; then
22897 $as_echo ' .text
22898 .cfi_startproc
22899 .cfi_personality 0, symbol
22900 .cfi_endproc' > conftest.s
22901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22903 (eval $ac_try) 2>&5
22904 ac_status=$?
22905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22906 test $ac_status = 0; }; }
22907 then
22908 gcc_cv_as_cfi_personality_directive=yes
22909 else
22910 echo "configure: failed program was" >&5
22911 cat conftest.s >&5
22913 rm -f conftest.o conftest.s
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22917 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22920 cat >>confdefs.h <<_ACEOF
22921 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22922 then echo 1; else echo 0; fi`
22923 _ACEOF
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22927 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22928 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22929 $as_echo_n "(cached) " >&6
22930 else
22931 gcc_cv_as_cfi_sections_directive=no
22932 if test x$gcc_cv_as != x; then
22933 $as_echo ' .text
22934 .cfi_sections .debug_frame, .eh_frame
22935 .cfi_startproc
22936 .cfi_endproc' > conftest.s
22937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22939 (eval $ac_try) 2>&5
22940 ac_status=$?
22941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22942 test $ac_status = 0; }; }
22943 then
22944 case $target_os in
22945 win32 | pe | cygwin* | mingw32* | uwin*)
22946 # Need to check that we generated the correct relocation for the
22947 # .debug_frame section. This was fixed for binutils 2.21.
22948 gcc_cv_as_cfi_sections_directive=no
22949 if test "x$gcc_cv_objdump" != x; then
22950 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22951 grep secrel > /dev/null; then
22952 gcc_cv_as_cfi_sections_directive=yes
22957 gcc_cv_as_cfi_sections_directive=yes
22959 esac
22960 else
22961 echo "configure: failed program was" >&5
22962 cat conftest.s >&5
22964 rm -f conftest.o conftest.s
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22968 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22972 cat >>confdefs.h <<_ACEOF
22973 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22974 then echo 1; else echo 0; fi`
22975 _ACEOF
22978 # GAS versions up to and including 2.11.0 may mis-optimize
22979 # .eh_frame data.
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22981 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22982 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22983 $as_echo_n "(cached) " >&6
22984 else
22985 gcc_cv_as_eh_frame=no
22986 if test $in_tree_gas = yes; then
22987 if test $in_tree_gas_is_elf = yes \
22988 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22989 then gcc_cv_as_eh_frame=yes
22991 elif test x$gcc_cv_as != x; then
22992 $as_echo ' .text
22993 .LFB1:
22994 .4byte 0
22995 .L1:
22996 .4byte 0
22997 .LFE1:
22998 .section .eh_frame,"aw",@progbits
22999 __FRAME_BEGIN__:
23000 .4byte .LECIE1-.LSCIE1
23001 .LSCIE1:
23002 .4byte 0x0
23003 .byte 0x1
23004 .ascii "z\0"
23005 .byte 0x1
23006 .byte 0x78
23007 .byte 0x1a
23008 .byte 0x0
23009 .byte 0x4
23010 .4byte 1
23011 .p2align 1
23012 .LECIE1:
23013 .LSFDE1:
23014 .4byte .LEFDE1-.LASFDE1
23015 .LASFDE1:
23016 .4byte .LASFDE1-__FRAME_BEGIN__
23017 .4byte .LFB1
23018 .4byte .LFE1-.LFB1
23019 .byte 0x4
23020 .4byte .LFE1-.LFB1
23021 .byte 0x4
23022 .4byte .L1-.LFB1
23023 .LEFDE1:' > conftest.s
23024 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23026 (eval $ac_try) 2>&5
23027 ac_status=$?
23028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23029 test $ac_status = 0; }; }
23030 then
23031 cat > conftest.lit <<EOF
23032 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23033 0010 01000000 12000000 18000000 00000000 ................
23034 0020 08000000 04080000 0044 .........D
23036 cat > conftest.big <<EOF
23037 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23038 0010 00000001 00000012 00000018 00000000 ................
23039 0020 00000008 04000000 0844 .........D
23041 # If the assembler didn't choke, and we can objdump,
23042 # and we got the correct data, then succeed.
23043 # The text in the here-document typically retains its unix-style line
23044 # endings, while the output of objdump will use host line endings.
23045 # Therefore, use diff -b for the comparisons.
23046 if test x$gcc_cv_objdump != x \
23047 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23048 | tail -3 > conftest.got \
23049 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23050 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23051 then
23052 gcc_cv_as_eh_frame=yes
23053 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23055 (eval $ac_try) 2>&5
23056 ac_status=$?
23057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23058 test $ac_status = 0; }; }; then
23059 gcc_cv_as_eh_frame=buggy
23060 else
23061 # Uh oh, what do we do now?
23062 gcc_cv_as_eh_frame=no
23064 else
23065 echo "configure: failed program was" >&5
23066 cat conftest.s >&5
23068 rm -f conftest.o conftest.s
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23072 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23075 if test $gcc_cv_as_eh_frame = buggy; then
23077 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23082 $as_echo_n "checking assembler for section merging support... " >&6; }
23083 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23084 $as_echo_n "(cached) " >&6
23085 else
23086 gcc_cv_as_shf_merge=no
23087 if test $in_tree_gas = yes; then
23088 if test $in_tree_gas_is_elf = yes \
23089 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23090 then gcc_cv_as_shf_merge=yes
23092 elif test x$gcc_cv_as != x; then
23093 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23096 (eval $ac_try) 2>&5
23097 ac_status=$?
23098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23099 test $ac_status = 0; }; }
23100 then
23101 gcc_cv_as_shf_merge=yes
23102 else
23103 echo "configure: failed program was" >&5
23104 cat conftest.s >&5
23106 rm -f conftest.o conftest.s
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23110 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23112 if test $gcc_cv_as_shf_merge = no; then
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23114 $as_echo_n "checking assembler for section merging support... " >&6; }
23115 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23116 $as_echo_n "(cached) " >&6
23117 else
23118 gcc_cv_as_shf_merge=no
23119 if test $in_tree_gas = yes; then
23120 if test $in_tree_gas_is_elf = yes \
23121 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23122 then gcc_cv_as_shf_merge=yes
23124 elif test x$gcc_cv_as != x; then
23125 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23128 (eval $ac_try) 2>&5
23129 ac_status=$?
23130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23131 test $ac_status = 0; }; }
23132 then
23133 gcc_cv_as_shf_merge=yes
23134 else
23135 echo "configure: failed program was" >&5
23136 cat conftest.s >&5
23138 rm -f conftest.o conftest.s
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23142 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23146 cat >>confdefs.h <<_ACEOF
23147 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23148 _ACEOF
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23152 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23153 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23154 $as_echo_n "(cached) " >&6
23155 else
23156 gcc_cv_as_comdat_group=no
23157 if test $in_tree_gas = yes; then
23158 if test $in_tree_gas_is_elf = yes \
23159 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23160 then gcc_cv_as_comdat_group=yes
23162 elif test x$gcc_cv_as != x; then
23163 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23166 (eval $ac_try) 2>&5
23167 ac_status=$?
23168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23169 test $ac_status = 0; }; }
23170 then
23171 gcc_cv_as_comdat_group=yes
23172 else
23173 echo "configure: failed program was" >&5
23174 cat conftest.s >&5
23176 rm -f conftest.o conftest.s
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23180 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23182 if test $gcc_cv_as_comdat_group = yes; then
23183 gcc_cv_as_comdat_group_percent=no
23184 gcc_cv_as_comdat_group_group=no
23185 else
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23187 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23188 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23189 $as_echo_n "(cached) " >&6
23190 else
23191 gcc_cv_as_comdat_group_percent=no
23192 if test $in_tree_gas = yes; then
23193 if test $in_tree_gas_is_elf = yes \
23194 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23195 then gcc_cv_as_comdat_group_percent=yes
23197 elif test x$gcc_cv_as != x; then
23198 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23201 (eval $ac_try) 2>&5
23202 ac_status=$?
23203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23204 test $ac_status = 0; }; }
23205 then
23206 gcc_cv_as_comdat_group_percent=yes
23207 else
23208 echo "configure: failed program was" >&5
23209 cat conftest.s >&5
23211 rm -f conftest.o conftest.s
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23215 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23217 if test $gcc_cv_as_comdat_group_percent = yes; then
23218 gcc_cv_as_comdat_group_group=no
23219 else
23220 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23221 gcc_cv_as_comdat_group_group=no
23223 case "${target}" in
23224 # Sun as uses a completely different syntax.
23225 *-*-solaris2*)
23226 case "${target}" in
23227 sparc*-*-solaris2*)
23228 conftest_s='
23229 .group foo,".text%foo",#comdat
23230 .section ".text%foo", #alloc,#execinstr,#progbits
23231 .globl foo
23232 foo:
23235 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23236 conftest_s='
23237 .group foo,.text%foo,#comdat
23238 .section .text%foo, "ax", @progbits
23239 .globl foo
23240 foo:
23243 esac
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23245 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23246 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23247 $as_echo_n "(cached) " >&6
23248 else
23249 gcc_cv_as_comdat_group_group=no
23250 if test x$gcc_cv_as != x; then
23251 $as_echo "$conftest_s" > conftest.s
23252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23254 (eval $ac_try) 2>&5
23255 ac_status=$?
23256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23257 test $ac_status = 0; }; }
23258 then
23259 gcc_cv_as_comdat_group_group=yes
23260 else
23261 echo "configure: failed program was" >&5
23262 cat conftest.s >&5
23264 rm -f conftest.o conftest.s
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23268 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23271 esac
23274 if test x"$ld_is_gold" = xyes; then
23275 comdat_group=yes
23276 elif test $in_tree_ld = yes ; then
23277 comdat_group=no
23278 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 \
23279 && test $in_tree_ld_is_elf = yes; then
23280 comdat_group=yes
23282 elif echo "$ld_ver" | grep GNU > /dev/null; then
23283 comdat_group=yes
23284 if test 0"$ld_date" -lt 20050308; then
23285 if test -n "$ld_date"; then
23286 # If there was date string, but was earlier than 2005-03-08, fail
23287 comdat_group=no
23288 elif test "$ld_vers_major" -lt 2; then
23289 comdat_group=no
23290 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23291 comdat_group=no
23294 else
23295 case "${target}" in
23296 *-*-solaris2.1[1-9]*)
23297 comdat_group=no
23298 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23299 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23300 # version 1.688.
23302 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23303 # least ld version 1.2267.
23304 if test "$ld_vers_major" -gt 1; then
23305 comdat_group=yes
23306 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23307 comdat_group=yes
23308 elif test "$ld_vers_minor" -ge 2267; then
23309 comdat_group=yes
23313 # Assume linkers other than GNU ld don't support COMDAT group.
23314 comdat_group=no
23316 esac
23318 # Allow overriding the automatic COMDAT group tests above.
23319 # Check whether --enable-comdat was given.
23320 if test "${enable_comdat+set}" = set; then :
23321 enableval=$enable_comdat; comdat_group="$enable_comdat"
23324 if test $comdat_group = no; then
23325 gcc_cv_as_comdat_group=no
23326 gcc_cv_as_comdat_group_percent=no
23327 gcc_cv_as_comdat_group_group=no
23330 cat >>confdefs.h <<_ACEOF
23331 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23332 || test $gcc_cv_as_comdat_group_percent = yes \
23333 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23334 _ACEOF
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23338 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23339 if test "${gcc_cv_as_discriminator+set}" = set; then :
23340 $as_echo_n "(cached) " >&6
23341 else
23342 gcc_cv_as_discriminator=no
23343 if test $in_tree_gas = yes; then
23344 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23345 then gcc_cv_as_discriminator=yes
23347 elif test x$gcc_cv_as != x; then
23348 $as_echo ' .text
23349 .file 1 "conf.c"
23350 .loc 1 1 0 discriminator 1' > conftest.s
23351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23353 (eval $ac_try) 2>&5
23354 ac_status=$?
23355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23356 test $ac_status = 0; }; }
23357 then
23358 gcc_cv_as_discriminator=yes
23359 else
23360 echo "configure: failed program was" >&5
23361 cat conftest.s >&5
23363 rm -f conftest.o conftest.s
23366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23367 $as_echo "$gcc_cv_as_discriminator" >&6; }
23368 if test $gcc_cv_as_discriminator = yes; then
23370 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23374 # Thread-local storage - the check is heavily parameterized.
23375 conftest_s=
23376 tls_first_major=
23377 tls_first_minor=
23378 tls_as_opt=
23379 case "$target" in
23380 alpha*-*-*)
23381 conftest_s='
23382 .section ".tdata","awT",@progbits
23383 foo: .long 25
23384 .text
23385 ldq $27,__tls_get_addr($29) !literal!1
23386 lda $16,foo($29) !tlsgd!1
23387 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23388 ldq $27,__tls_get_addr($29) !literal!2
23389 lda $16,foo($29) !tlsldm!2
23390 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23391 ldq $1,foo($29) !gotdtprel
23392 ldah $2,foo($29) !dtprelhi
23393 lda $3,foo($2) !dtprello
23394 lda $4,foo($29) !dtprel
23395 ldq $1,foo($29) !gottprel
23396 ldah $2,foo($29) !tprelhi
23397 lda $3,foo($2) !tprello
23398 lda $4,foo($29) !tprel'
23399 tls_first_major=2
23400 tls_first_minor=13
23401 tls_as_opt=--fatal-warnings
23403 cris-*-*|crisv32-*-*)
23404 conftest_s='
23405 .section ".tdata","awT",@progbits
23406 x: .long 25
23407 .text
23408 move.d x:IE,$r10
23409 nop'
23410 tls_first_major=2
23411 tls_first_minor=20
23412 tls_as_opt=--fatal-warnings
23414 frv*-*-*)
23415 conftest_s='
23416 .section ".tdata","awT",@progbits
23417 x: .long 25
23418 .text
23419 call #gettlsoff(x)'
23420 tls_first_major=2
23421 tls_first_minor=14
23423 hppa*-*-linux*)
23424 conftest_s='
23425 t1: .reg %r20
23426 t2: .reg %r21
23427 gp: .reg %r19
23428 .section ".tdata","awT",@progbits
23429 foo: .long 25
23430 .text
23431 .align 4
23432 addil LT%foo-$tls_gdidx$,gp
23433 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23434 b __tls_get_addr
23436 addil LT%foo-$tls_ldidx$,gp
23437 b __tls_get_addr
23438 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23439 addil LR%foo-$tls_dtpoff$,%ret0
23440 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23441 mfctl %cr27,%t1
23442 addil LT%foo-$tls_ieoff$,gp
23443 ldw RT%foo-$tls_ieoff$(%r1),%t2
23444 add %t1,%t2,%t3
23445 mfctl %cr27,%t1
23446 addil LR%foo-$tls_leoff$,%t1
23447 ldo RR%foo-$tls_leoff$(%r1),%t2'
23448 tls_first_major=2
23449 tls_first_minor=15
23450 tls_as_opt=--fatal-warnings
23452 arm*-*-*)
23453 conftest_s='
23454 .section ".tdata","awT",%progbits
23455 foo: .long 25
23456 .text
23457 .word foo(gottpoff)
23458 .word foo(tpoff)
23459 .word foo(tlsgd)
23460 .word foo(tlsldm)
23461 .word foo(tlsldo)'
23462 tls_first_major=2
23463 tls_first_minor=17
23465 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23466 case "$target" in
23467 i[34567]86-*-solaris2.*)
23468 on_solaris=yes
23469 tga_func=___tls_get_addr
23471 x86_64-*-solaris2.1[0-9]*)
23472 on_solaris=yes
23473 tga_func=__tls_get_addr
23476 on_solaris=no
23478 esac
23479 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23480 conftest_s='
23481 .section .tdata,"awt",@progbits'
23482 tls_first_major=0
23483 tls_first_minor=0
23485 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23487 else
23488 conftest_s='
23489 .section ".tdata","awT",@progbits'
23490 tls_first_major=2
23491 tls_first_minor=14
23492 tls_as_opt="--fatal-warnings"
23494 conftest_s="$conftest_s
23495 foo: .long 25
23496 .text
23497 movl %gs:0, %eax
23498 leal foo@tlsgd(,%ebx,1), %eax
23499 leal foo@tlsldm(%ebx), %eax
23500 leal foo@dtpoff(%eax), %edx
23501 movl foo@gottpoff(%ebx), %eax
23502 subl foo@gottpoff(%ebx), %eax
23503 addl foo@gotntpoff(%ebx), %eax
23504 movl foo@indntpoff, %eax
23505 movl \$foo@tpoff, %eax
23506 subl \$foo@tpoff, %eax
23507 leal foo@ntpoff(%ecx), %eax"
23509 x86_64-*-*)
23510 conftest_s='
23511 .section ".tdata","awT",@progbits
23512 foo: .long 25
23513 .text
23514 movq %fs:0, %rax
23515 leaq foo@TLSGD(%rip), %rdi
23516 leaq foo@TLSLD(%rip), %rdi
23517 leaq foo@DTPOFF(%rax), %rdx
23518 movq foo@GOTTPOFF(%rip), %rax
23519 movq $foo@TPOFF, %rax'
23520 tls_first_major=2
23521 tls_first_minor=14
23522 tls_as_opt=--fatal-warnings
23524 ia64-*-*)
23525 conftest_s='
23526 .section ".tdata","awT",@progbits
23527 foo: data8 25
23528 .text
23529 addl r16 = @ltoff(@dtpmod(foo#)), gp
23530 addl r17 = @ltoff(@dtprel(foo#)), gp
23531 addl r18 = @ltoff(@tprel(foo#)), gp
23532 addl r19 = @dtprel(foo#), gp
23533 adds r21 = @dtprel(foo#), r13
23534 movl r23 = @dtprel(foo#)
23535 addl r20 = @tprel(foo#), gp
23536 adds r22 = @tprel(foo#), r13
23537 movl r24 = @tprel(foo#)'
23538 tls_first_major=2
23539 tls_first_minor=13
23540 tls_as_opt=--fatal-warnings
23542 microblaze*-*-*)
23543 conftest_s='
23544 .section .tdata,"awT",@progbits
23546 .word 2
23547 .text
23548 addik r5,r20,x@TLSGD
23549 addik r5,r20,x@TLSLDM'
23550 tls_first_major=2
23551 tls_first_minor=20
23552 tls_as_opt='--fatal-warnings'
23554 mips*-*-*)
23555 conftest_s='
23556 .section .tdata,"awT",@progbits
23558 .word 2
23559 .text
23560 addiu $4, $28, %tlsgd(x)
23561 addiu $4, $28, %tlsldm(x)
23562 lui $4, %dtprel_hi(x)
23563 addiu $4, $4, %dtprel_lo(x)
23564 lw $4, %gottprel(x)($28)
23565 lui $4, %tprel_hi(x)
23566 addiu $4, $4, %tprel_lo(x)'
23567 tls_first_major=2
23568 tls_first_minor=16
23569 tls_as_opt='-32 --fatal-warnings'
23571 m68k-*-*)
23572 conftest_s='
23573 .section .tdata,"awT",@progbits
23575 .word 2
23576 .text
23577 foo:
23578 move.l x@TLSGD(%a5),%a0
23579 move.l x@TLSLDM(%a5),%a0
23580 move.l x@TLSLDO(%a5),%a0
23581 move.l x@TLSIE(%a5),%a0
23582 move.l x@TLSLE(%a5),%a0'
23583 tls_first_major=2
23584 tls_first_minor=19
23585 tls_as_opt='--fatal-warnings'
23587 aarch64*-*-*)
23588 conftest_s='
23589 .section ".tdata","awT",%progbits
23590 foo: .long 25
23591 .text
23592 adrp x0, :tlsgd:x
23593 add x0, x0, #:tlsgd_lo12:x
23594 bl __tls_get_addr
23595 nop'
23596 tls_first_major=2
23597 tls_first_minor=20
23598 tls_as_opt='--fatal-warnings'
23600 powerpc-ibm-aix*)
23601 conftest_s='
23602 .extern __get_tpointer
23603 .toc
23604 LC..1:
23605 .tc a[TC],a[TL]@le
23606 .csect .text[PR]
23607 .tlstest:
23608 lwz 9,LC..1(2)
23609 bla __get_tpointer
23610 lwzx 3,9,3
23611 .globl a
23612 .csect a[TL],4
23614 .space 4'
23615 tls_first_major=0
23616 tls_first_minor=0
23618 powerpc64*-*-*)
23619 conftest_s='
23620 .section ".tdata","awT",@progbits
23621 .align 3
23622 ld0: .space 8
23623 ld1: .space 8
23624 x1: .space 8
23625 x2: .space 8
23626 x3: .space 8
23627 .text
23628 addi 3,2,ld0@got@tlsgd
23629 bl .__tls_get_addr
23631 addi 3,2,ld1@toc
23632 bl .__tls_get_addr
23634 addi 3,2,x1@got@tlsld
23635 bl .__tls_get_addr
23637 addi 9,3,x1@dtprel
23638 bl .__tls_get_addr
23640 addis 9,3,x2@dtprel@ha
23641 addi 9,9,x2@dtprel@l
23642 bl .__tls_get_addr
23644 ld 9,x3@got@dtprel(2)
23645 add 9,9,3
23646 bl .__tls_get_addr
23647 nop'
23648 tls_first_major=2
23649 tls_first_minor=14
23650 tls_as_opt="-a64 --fatal-warnings"
23652 powerpc*-*-*)
23653 conftest_s='
23654 .section ".tdata","awT",@progbits
23655 .align 2
23656 ld0: .space 4
23657 ld1: .space 4
23658 x1: .space 4
23659 x2: .space 4
23660 x3: .space 4
23661 .text
23662 addi 3,31,ld0@got@tlsgd
23663 bl __tls_get_addr
23664 addi 3,31,x1@got@tlsld
23665 bl __tls_get_addr
23666 addi 9,3,x1@dtprel
23667 addis 9,3,x2@dtprel@ha
23668 addi 9,9,x2@dtprel@l
23669 lwz 9,x3@got@tprel(31)
23670 add 9,9,x@tls
23671 addi 9,2,x1@tprel
23672 addis 9,2,x2@tprel@ha
23673 addi 9,9,x2@tprel@l'
23674 tls_first_major=2
23675 tls_first_minor=14
23676 tls_as_opt="-a32 --fatal-warnings"
23678 s390-*-*)
23679 conftest_s='
23680 .section ".tdata","awT",@progbits
23681 foo: .long 25
23682 .text
23683 .long foo@TLSGD
23684 .long foo@TLSLDM
23685 .long foo@DTPOFF
23686 .long foo@NTPOFF
23687 .long foo@GOTNTPOFF
23688 .long foo@INDNTPOFF
23689 l %r1,foo@GOTNTPOFF(%r12)
23690 l %r1,0(%r1):tls_load:foo
23691 bas %r14,0(%r1,%r13):tls_gdcall:foo
23692 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23693 tls_first_major=2
23694 tls_first_minor=14
23695 tls_as_opt="-m31 --fatal-warnings"
23697 s390x-*-*)
23698 conftest_s='
23699 .section ".tdata","awT",@progbits
23700 foo: .long 25
23701 .text
23702 .quad foo@TLSGD
23703 .quad foo@TLSLDM
23704 .quad foo@DTPOFF
23705 .quad foo@NTPOFF
23706 .quad foo@GOTNTPOFF
23707 lg %r1,foo@GOTNTPOFF(%r12)
23708 larl %r1,foo@INDNTPOFF
23709 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23710 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23711 tls_first_major=2
23712 tls_first_minor=14
23713 tls_as_opt="-m64 -Aesame --fatal-warnings"
23715 sh-*-* | sh[34]-*-*)
23716 conftest_s='
23717 .section ".tdata","awT",@progbits
23718 foo: .long 25
23719 .text
23720 .long foo@TLSGD
23721 .long foo@TLSLDM
23722 .long foo@DTPOFF
23723 .long foo@GOTTPOFF
23724 .long foo@TPOFF'
23725 tls_first_major=2
23726 tls_first_minor=13
23727 tls_as_opt=--fatal-warnings
23729 sparc*-*-*)
23730 case "$target" in
23731 sparc*-sun-solaris2.*)
23732 on_solaris=yes
23733 tga_func=__tls_get_addr
23736 on_solaris=no
23738 esac
23739 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23740 conftest_s='
23741 .section ".tdata",#alloc,#write,#tls'
23742 tls_first_major=0
23743 tls_first_minor=0
23744 else
23745 conftest_s='
23746 .section ".tdata","awT",@progbits'
23747 tls_first_major=2
23748 tls_first_minor=14
23749 tls_as_opt="-32 --fatal-warnings"
23751 conftest_s="$conftest_s
23752 foo: .long 25
23753 .text
23754 sethi %tgd_hi22(foo), %o0
23755 add %o0, %tgd_lo10(foo), %o1
23756 add %l7, %o1, %o0, %tgd_add(foo)
23757 call __tls_get_addr, %tgd_call(foo)
23758 sethi %tldm_hi22(foo), %l1
23759 add %l1, %tldm_lo10(foo), %l2
23760 add %l7, %l2, %o0, %tldm_add(foo)
23761 call __tls_get_addr, %tldm_call(foo)
23762 sethi %tldo_hix22(foo), %l3
23763 xor %l3, %tldo_lox10(foo), %l4
23764 add %o0, %l4, %l5, %tldo_add(foo)
23765 sethi %tie_hi22(foo), %o3
23766 add %o3, %tie_lo10(foo), %o3
23767 ld [%l7 + %o3], %o2, %tie_ld(foo)
23768 add %g7, %o2, %o4, %tie_add(foo)
23769 sethi %tle_hix22(foo), %l1
23770 xor %l1, %tle_lox10(foo), %o5
23771 ld [%g7 + %o5], %o1"
23773 tilepro*-*-*)
23774 conftest_s='
23775 .section ".tdata","awT",@progbits
23776 foo: .long 25
23777 .text
23778 addli r0, zero, tls_gd(foo)
23779 auli r0, zero, tls_gd_ha16(foo)
23780 addli r0, r0, tls_gd_lo16(foo)
23781 jal __tls_get_addr
23782 addli r0, zero, tls_ie(foo)
23783 auli r0, r0, tls_ie_ha16(foo)
23784 addli r0, r0, tls_ie_lo16(foo)'
23785 tls_first_major=2
23786 tls_first_minor=22
23787 tls_as_opt="--fatal-warnings"
23789 tilegx*-*-*)
23790 conftest_s='
23791 .section ".tdata","awT",@progbits
23792 foo: .long 25
23793 .text
23794 shl16insli r0, zero, hw0_last_tls_gd(foo)
23795 shl16insli r0, zero, hw1_last_tls_gd(foo)
23796 shl16insli r0, r0, hw0_tls_gd(foo)
23797 jal __tls_get_addr
23798 shl16insli r0, zero, hw1_last_tls_ie(foo)
23799 shl16insli r0, r0, hw0_tls_ie(foo)'
23800 tls_first_major=2
23801 tls_first_minor=22
23802 tls_as_opt="--fatal-warnings"
23804 xtensa*-*-*)
23805 conftest_s='
23806 .section ".tdata","awT",@progbits
23807 foo: .long 25
23808 .text
23809 movi a8, foo@TLSFUNC
23810 movi a10, foo@TLSARG
23811 callx8.tls a8, foo@TLSCALL'
23812 tls_first_major=2
23813 tls_first_minor=19
23815 esac
23816 set_have_as_tls=no
23817 if test "x$enable_tls" = xno ; then
23818 : # TLS explicitly disabled.
23819 elif test "x$enable_tls" = xyes ; then
23820 set_have_as_tls=yes # TLS explicitly enabled.
23821 elif test -z "$tls_first_major"; then
23822 : # If we don't have a check, assume no support.
23823 else
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23825 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23826 if test "${gcc_cv_as_tls+set}" = set; then :
23827 $as_echo_n "(cached) " >&6
23828 else
23829 gcc_cv_as_tls=no
23830 if test $in_tree_gas = yes; then
23831 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23832 then gcc_cv_as_tls=yes
23834 elif test x$gcc_cv_as != x; then
23835 $as_echo "$conftest_s" > conftest.s
23836 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23838 (eval $ac_try) 2>&5
23839 ac_status=$?
23840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23841 test $ac_status = 0; }; }
23842 then
23843 gcc_cv_as_tls=yes
23844 else
23845 echo "configure: failed program was" >&5
23846 cat conftest.s >&5
23848 rm -f conftest.o conftest.s
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23852 $as_echo "$gcc_cv_as_tls" >&6; }
23853 if test $gcc_cv_as_tls = yes; then
23854 set_have_as_tls=yes
23857 case "$target" in
23858 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23859 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23860 # Sun style that Sun ld and GCC don't support any longer.
23861 *-*-solaris2.*)
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23863 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23864 ld_tls_support=no
23865 # Check ld and ld.so.1 TLS support.
23866 if echo "$ld_ver" | grep GNU > /dev/null; then
23867 # Assume all interesting versions of GNU ld have TLS support.
23868 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23869 ld_tls_support=yes
23870 else
23871 case "$target" in
23872 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23873 i?86-*-solaris2.9)
23874 min_tls_ld_vers_minor=374
23876 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23877 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23878 min_tls_ld_vers_minor=343
23880 esac
23881 if test "$ld_vers_major" -gt 1 || \
23882 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23883 ld_tls_support=yes
23884 else
23885 set_have_as_tls=no
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23889 $as_echo "$ld_tls_support" >&6; }
23891 save_LIBS="$LIBS"
23892 save_LDFLAGS="$LDFLAGS"
23893 LIBS=
23894 LDFLAGS=
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23897 $as_echo_n "checking library containing $tga_func... " >&6; }
23898 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23899 # (32-bit x86) only lived in libthread, so check for that. Keep
23900 # set_have_as_tls if found, disable if not.
23901 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23903 $as_echo_n "checking for library containing $tga_func... " >&6; }
23904 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23905 $as_echo_n "(cached) " >&6
23906 else
23907 ac_func_search_save_LIBS=$LIBS
23908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23909 /* end confdefs.h. */
23911 /* Override any GCC internal prototype to avoid an error.
23912 Use char because int might match the return type of a GCC
23913 builtin and then its argument prototype would still apply. */
23914 #ifdef __cplusplus
23915 extern "C"
23916 #endif
23917 char $tga_func ();
23919 main ()
23921 return $tga_func ();
23923 return 0;
23925 _ACEOF
23926 for ac_lib in '' thread; do
23927 if test -z "$ac_lib"; then
23928 ac_res="none required"
23929 else
23930 ac_res=-l$ac_lib
23931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23933 if ac_fn_c_try_link "$LINENO"; then :
23934 eval "$as_ac_Search=\$ac_res"
23936 rm -f core conftest.err conftest.$ac_objext \
23937 conftest$ac_exeext
23938 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23939 break
23941 done
23942 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23944 else
23945 eval "$as_ac_Search=no"
23947 rm conftest.$ac_ext
23948 LIBS=$ac_func_search_save_LIBS
23950 eval ac_res=\$$as_ac_Search
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23952 $as_echo "$ac_res" >&6; }
23953 eval ac_res=\$$as_ac_Search
23954 if test "$ac_res" != no; then :
23955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23957 else
23958 set_have_as_tls=no
23961 # Clear LIBS if we cannot support TLS.
23962 if test $set_have_as_tls = no; then
23963 LIBS=
23965 # Always define LIB_TLS_SPEC, even without TLS support.
23967 cat >>confdefs.h <<_ACEOF
23968 #define LIB_TLS_SPEC "$LIBS"
23969 _ACEOF
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23972 $as_echo "$LIBS" >&6; }
23974 LIBS="$save_LIBS"
23975 LDFLAGS="$save_LDFLAGS"
23977 esac
23978 if test $set_have_as_tls = yes ; then
23980 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23984 # Target-specific assembler checks.
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23987 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23988 gcc_cv_ld_static_dynamic=no
23989 gcc_cv_ld_static_option='-Bstatic'
23990 gcc_cv_ld_dynamic_option='-Bdynamic'
23991 if test $in_tree_ld = yes ; then
23992 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
23993 gcc_cv_ld_static_dynamic=yes
23995 elif test x$gcc_cv_ld != x; then
23996 # Check if linker supports -Bstatic/-Bdynamic option
23997 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23998 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23999 gcc_cv_ld_static_dynamic=yes
24000 else
24001 case "$target" in
24002 # AIX ld uses -b flags
24003 *-*-aix4.[23]* | *-*-aix[5-9]*)
24004 gcc_cv_ld_static_dynamic=yes
24005 gcc_cv_ld_static_option="-bstatic"
24006 gcc_cv_ld_dynamic_option="-bdynamic"
24008 # HP-UX ld uses -a flags to select between shared and archive.
24009 *-*-hpux*)
24010 if test x"$gnu_ld" = xno; then
24011 gcc_cv_ld_static_dynamic=yes
24012 gcc_cv_ld_static_option="-aarchive_shared"
24013 gcc_cv_ld_dynamic_option="-adefault"
24016 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24017 *-*-solaris2*)
24018 gcc_cv_ld_static_dynamic=yes
24020 esac
24023 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24025 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24028 cat >>confdefs.h <<_ACEOF
24029 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24030 _ACEOF
24033 cat >>confdefs.h <<_ACEOF
24034 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24035 _ACEOF
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24039 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24041 if test x"$demangler_in_ld" = xyes; then
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24043 $as_echo_n "checking linker --demangle support... " >&6; }
24044 gcc_cv_ld_demangle=no
24045 if test $in_tree_ld = yes; then
24046 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 \
24047 gcc_cv_ld_demangle=yes
24049 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24050 # Check if the GNU linker supports --demangle option
24051 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24052 gcc_cv_ld_demangle=yes
24055 if test x"$gcc_cv_ld_demangle" = xyes; then
24057 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24061 $as_echo "$gcc_cv_ld_demangle" >&6; }
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24065 $as_echo_n "checking linker plugin support... " >&6; }
24066 gcc_cv_lto_plugin=0
24067 if test -f liblto_plugin.la; then
24068 save_ld_ver="$ld_ver"
24069 save_ld_vers_major="$ld_vers_major"
24070 save_ld_vers_minor="$ld_vers_minor"
24071 save_ld_is_gold="$ld_is_gold"
24073 ld_is_gold=no
24075 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24076 ld_ver="GNU ld"
24077 # FIXME: ld_is_gold?
24078 ld_vers_major="$gcc_cv_gld_major_version"
24079 ld_vers_minor="$gcc_cv_gld_minor_version"
24080 else
24081 # Determine plugin linker version.
24082 # FIXME: Partial duplicate from above, generalize.
24083 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24084 if echo "$ld_ver" | grep GNU > /dev/null; then
24085 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24086 ld_is_gold=yes
24087 ld_vers=`echo $ld_ver | sed -n \
24088 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24089 else
24090 ld_vers=`echo $ld_ver | sed -n \
24091 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24093 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24094 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24098 # Determine plugin support.
24099 if echo "$ld_ver" | grep GNU > /dev/null; then
24100 # Require GNU ld or gold 2.21+ for plugin support by default.
24101 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24102 gcc_cv_lto_plugin=2
24103 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24104 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24105 gcc_cv_lto_plugin=1
24109 ld_ver="$save_ld_ver"
24110 ld_vers_major="$save_ld_vers_major"
24111 ld_vers_minor="$save_ld_vers_minor"
24112 ld_is_gold="$save_ld_is_gold"
24115 cat >>confdefs.h <<_ACEOF
24116 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24117 _ACEOF
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24120 $as_echo "$gcc_cv_lto_plugin" >&6; }
24122 case "$target" in
24123 # All TARGET_ABI_OSF targets.
24124 alpha*-*-linux* | alpha*-*-*bsd*)
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24126 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24127 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24128 $as_echo_n "(cached) " >&6
24129 else
24130 gcc_cv_as_alpha_explicit_relocs=no
24131 if test $in_tree_gas = yes; then
24132 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24133 then gcc_cv_as_alpha_explicit_relocs=yes
24135 elif test x$gcc_cv_as != x; then
24136 $as_echo ' .set nomacro
24137 .text
24138 extbl $3, $2, $3 !lituse_bytoff!1
24139 ldq $2, a($29) !literal!1
24140 ldq $4, b($29) !literal!2
24141 ldq_u $3, 0($2) !lituse_base!1
24142 ldq $27, f($29) !literal!5
24143 jsr $26, ($27), f !lituse_jsr!5
24144 ldah $29, 0($26) !gpdisp!3
24145 lda $0, c($29) !gprel
24146 ldah $1, d($29) !gprelhigh
24147 lda $1, d($1) !gprellow
24148 lda $29, 0($29) !gpdisp!3' > conftest.s
24149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24151 (eval $ac_try) 2>&5
24152 ac_status=$?
24153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24154 test $ac_status = 0; }; }
24155 then
24156 gcc_cv_as_alpha_explicit_relocs=yes
24157 else
24158 echo "configure: failed program was" >&5
24159 cat conftest.s >&5
24161 rm -f conftest.o conftest.s
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24165 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24166 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24168 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24172 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24173 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24174 $as_echo_n "(cached) " >&6
24175 else
24176 gcc_cv_as_alpha_jsrdirect_relocs=no
24177 if test $in_tree_gas = yes; then
24178 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24179 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24181 elif test x$gcc_cv_as != x; then
24182 $as_echo ' .set nomacro
24183 .text
24184 ldq $27, a($29) !literal!1
24185 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24188 (eval $ac_try) 2>&5
24189 ac_status=$?
24190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24191 test $ac_status = 0; }; }
24192 then
24193 gcc_cv_as_alpha_jsrdirect_relocs=yes
24194 else
24195 echo "configure: failed program was" >&5
24196 cat conftest.s >&5
24198 rm -f conftest.o conftest.s
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24202 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24203 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24205 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24210 cris-*-*)
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24212 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24213 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24214 $as_echo_n "(cached) " >&6
24215 else
24216 gcc_cv_as_cris_no_mul_bug=no
24217 if test $in_tree_gas = yes; then
24218 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24219 then gcc_cv_as_cris_no_mul_bug=yes
24221 elif test x$gcc_cv_as != x; then
24222 $as_echo '.text' > conftest.s
24223 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24225 (eval $ac_try) 2>&5
24226 ac_status=$?
24227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24228 test $ac_status = 0; }; }
24229 then
24230 gcc_cv_as_cris_no_mul_bug=yes
24231 else
24232 echo "configure: failed program was" >&5
24233 cat conftest.s >&5
24235 rm -f conftest.o conftest.s
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24239 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24240 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24242 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24247 sparc*-*-*)
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24249 $as_echo_n "checking assembler for .register... " >&6; }
24250 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24251 $as_echo_n "(cached) " >&6
24252 else
24253 gcc_cv_as_sparc_register_op=no
24254 if test x$gcc_cv_as != x; then
24255 $as_echo '.register %g2, #scratch' > conftest.s
24256 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24258 (eval $ac_try) 2>&5
24259 ac_status=$?
24260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24261 test $ac_status = 0; }; }
24262 then
24263 gcc_cv_as_sparc_register_op=yes
24264 else
24265 echo "configure: failed program was" >&5
24266 cat conftest.s >&5
24268 rm -f conftest.o conftest.s
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24272 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24273 if test $gcc_cv_as_sparc_register_op = yes; then
24275 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24280 $as_echo_n "checking assembler for #nobits... " >&6; }
24281 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24282 $as_echo_n "(cached) " >&6
24283 else
24284 gcc_cv_as_sparc_nobits=no
24285 if test x$gcc_cv_as != x; then
24286 $as_echo '.section "nobits",#alloc,#write,#nobits
24287 .section "progbits",#alloc,#write,#progbits' > conftest.s
24288 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24290 (eval $ac_try) 2>&5
24291 ac_status=$?
24292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24293 test $ac_status = 0; }; }
24294 then
24295 gcc_cv_as_sparc_nobits=yes
24296 else
24297 echo "configure: failed program was" >&5
24298 cat conftest.s >&5
24300 rm -f conftest.o conftest.s
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24304 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24307 cat >>confdefs.h <<_ACEOF
24308 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24309 _ACEOF
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24313 $as_echo_n "checking assembler for -relax option... " >&6; }
24314 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24315 $as_echo_n "(cached) " >&6
24316 else
24317 gcc_cv_as_sparc_relax=no
24318 if test x$gcc_cv_as != x; then
24319 $as_echo '.text' > conftest.s
24320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24322 (eval $ac_try) 2>&5
24323 ac_status=$?
24324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24325 test $ac_status = 0; }; }
24326 then
24327 gcc_cv_as_sparc_relax=yes
24328 else
24329 echo "configure: failed program was" >&5
24330 cat conftest.s >&5
24332 rm -f conftest.o conftest.s
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24336 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24337 if test $gcc_cv_as_sparc_relax = yes; then
24339 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24344 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24345 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24346 $as_echo_n "(cached) " >&6
24347 else
24348 gcc_cv_as_sparc_gotdata_op=no
24349 if test x$gcc_cv_as != x; then
24350 $as_echo '.text
24351 .align 4
24352 foo:
24354 bar:
24355 sethi %gdop_hix22(foo), %g1
24356 xor %g1, %gdop_lox10(foo), %g1
24357 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x$gcc_cv_ld != x \
24366 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24367 if test x$gcc_cv_objdump != x; then
24368 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24369 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24370 gcc_cv_as_sparc_gotdata_op=no
24371 else
24372 gcc_cv_as_sparc_gotdata_op=yes
24376 rm -f conftest
24377 else
24378 echo "configure: failed program was" >&5
24379 cat conftest.s >&5
24381 rm -f conftest.o conftest.s
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24385 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24386 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24388 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24393 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24394 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24395 $as_echo_n "(cached) " >&6
24396 else
24397 gcc_cv_as_sparc_ua_pcrel=no
24398 if test x$gcc_cv_as != x; then
24399 $as_echo '.text
24400 foo:
24402 .data
24403 .align 4
24404 .byte 0
24405 .uaword %r_disp32(foo)' > conftest.s
24406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24408 (eval $ac_try) 2>&5
24409 ac_status=$?
24410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24411 test $ac_status = 0; }; }
24412 then
24413 if test x$gcc_cv_ld != x \
24414 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24415 gcc_cv_as_sparc_ua_pcrel=yes
24417 rm -f conftest
24418 else
24419 echo "configure: failed program was" >&5
24420 cat conftest.s >&5
24422 rm -f conftest.o conftest.s
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24426 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24427 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24429 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24433 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24434 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24435 $as_echo_n "(cached) " >&6
24436 else
24437 gcc_cv_as_sparc_ua_pcrel_hidden=no
24438 if test x$gcc_cv_as != x; then
24439 $as_echo '.data
24440 .align 4
24441 .byte 0x31
24442 .uaword %r_disp32(foo)
24443 .byte 0x32, 0x33, 0x34
24444 .global foo
24445 .hidden foo
24446 foo:
24447 .skip 4' > conftest.s
24448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24450 (eval $ac_try) 2>&5
24451 ac_status=$?
24452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24453 test $ac_status = 0; }; }
24454 then
24455 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24456 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24457 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24458 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24459 if $gcc_cv_objdump -R conftest 2> /dev/null \
24460 | grep 'DISP32' > /dev/null 2>&1; then
24462 else
24463 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24466 rm -f conftest
24467 else
24468 echo "configure: failed program was" >&5
24469 cat conftest.s >&5
24471 rm -f conftest.o conftest.s
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24475 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24476 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24478 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24482 fi # unaligned pcrel relocs
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24485 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24486 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24487 $as_echo_n "(cached) " >&6
24488 else
24489 gcc_cv_as_sparc_offsetable_lo10=no
24490 if test x$gcc_cv_as != x; then
24491 $as_echo '.text
24492 or %g1, %lo(ab) + 12, %g1
24493 or %g1, %lo(ab + 12), %g1' > conftest.s
24494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24496 (eval $ac_try) 2>&5
24497 ac_status=$?
24498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24499 test $ac_status = 0; }; }
24500 then
24501 if test x$gcc_cv_objdump != x \
24502 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24503 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24504 gcc_cv_as_sparc_offsetable_lo10=yes
24506 else
24507 echo "configure: failed program was" >&5
24508 cat conftest.s >&5
24510 rm -f conftest.o conftest.s
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24514 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24515 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24517 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24522 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24523 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24524 $as_echo_n "(cached) " >&6
24525 else
24526 gcc_cv_as_sparc_fmaf=no
24527 if test x$gcc_cv_as != x; then
24528 $as_echo '.text
24529 .register %g2, #scratch
24530 .register %g3, #scratch
24531 .align 4
24532 fmaddd %f0, %f2, %f4, %f6
24533 addxccc %g1, %g2, %g3
24534 fsrl32 %f2, %f4, %f8
24535 fnaddd %f10, %f12, %f14' > conftest.s
24536 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24538 (eval $ac_try) 2>&5
24539 ac_status=$?
24540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24541 test $ac_status = 0; }; }
24542 then
24543 gcc_cv_as_sparc_fmaf=yes
24544 else
24545 echo "configure: failed program was" >&5
24546 cat conftest.s >&5
24548 rm -f conftest.o conftest.s
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24552 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24553 if test $gcc_cv_as_sparc_fmaf = yes; then
24555 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24560 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24561 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24562 $as_echo_n "(cached) " >&6
24563 else
24564 gcc_cv_as_sparc_sparc4=no
24565 if test x$gcc_cv_as != x; then
24566 $as_echo '.text
24567 .register %g2, #scratch
24568 .register %g3, #scratch
24569 .align 4
24570 cxbe %g2, %g3, 1f
24571 1: cwbneg %g2, %g3, 1f
24572 1: sha1
24574 aes_kexpand0 %f4, %f6, %f8
24575 des_round %f38, %f40, %f42, %f44
24576 camellia_f %f54, %f56, %f58, %f60
24577 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24578 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24580 (eval $ac_try) 2>&5
24581 ac_status=$?
24582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24583 test $ac_status = 0; }; }
24584 then
24585 gcc_cv_as_sparc_sparc4=yes
24586 else
24587 echo "configure: failed program was" >&5
24588 cat conftest.s >&5
24590 rm -f conftest.o conftest.s
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24594 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24595 if test $gcc_cv_as_sparc_sparc4 = yes; then
24597 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24602 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24603 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24604 $as_echo_n "(cached) " >&6
24605 else
24606 gcc_cv_as_sparc_leon=no
24607 if test x$gcc_cv_as != x; then
24608 $as_echo '.text
24609 .register %g2, #scratch
24610 .register %g3, #scratch
24611 .align 4
24612 smac %g2, %g3, %g1
24613 umac %g2, %g3, %g1
24614 cas [%g2], %g3, %g1' > conftest.s
24615 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24617 (eval $ac_try) 2>&5
24618 ac_status=$?
24619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24620 test $ac_status = 0; }; }
24621 then
24622 gcc_cv_as_sparc_leon=yes
24623 else
24624 echo "configure: failed program was" >&5
24625 cat conftest.s >&5
24627 rm -f conftest.o conftest.s
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24631 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24632 if test $gcc_cv_as_sparc_leon = yes; then
24634 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24639 i[34567]86-*-* | x86_64-*-*)
24640 case $target_os in
24641 cygwin*)
24642 # Full C++ conformance when using a shared libstdc++-v3 requires some
24643 # support from the Cygwin DLL, which in more recent versions exports
24644 # wrappers to aid in interposing and redirecting operators new, delete,
24645 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24646 # are configuring for a version of Cygwin that exports the wrappers.
24647 if test x$host = x$target && test x$host_cpu = xi686; then
24648 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24649 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24650 gcc_ac_cygwin_dll_wrappers=yes
24651 else
24652 gcc_ac_cygwin_dll_wrappers=no
24655 else
24656 # Can't check presence of libc functions during cross-compile, so
24657 # we just have to assume we're building for an up-to-date target.
24658 gcc_ac_cygwin_dll_wrappers=yes
24661 cat >>confdefs.h <<_ACEOF
24662 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24663 _ACEOF
24665 esac
24666 case $target_os in
24667 cygwin* | pe | mingw32* | interix*)
24668 # Recent binutils allows the three-operand form of ".comm" on PE. This
24669 # definition is used unconditionally to initialise the default state of
24670 # the target option variable that governs usage of the feature.
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24672 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24673 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24674 $as_echo_n "(cached) " >&6
24675 else
24676 gcc_cv_as_comm_has_align=no
24677 if test $in_tree_gas = yes; then
24678 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24679 then gcc_cv_as_comm_has_align=yes
24681 elif test x$gcc_cv_as != x; then
24682 $as_echo '.comm foo,1,32' > conftest.s
24683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24685 (eval $ac_try) 2>&5
24686 ac_status=$?
24687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24688 test $ac_status = 0; }; }
24689 then
24690 gcc_cv_as_comm_has_align=yes
24691 else
24692 echo "configure: failed program was" >&5
24693 cat conftest.s >&5
24695 rm -f conftest.o conftest.s
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24699 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24702 cat >>confdefs.h <<_ACEOF
24703 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24704 _ACEOF
24706 # Used for DWARF 2 in PE
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24708 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24709 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24710 $as_echo_n "(cached) " >&6
24711 else
24712 gcc_cv_as_ix86_pe_secrel32=no
24713 if test $in_tree_gas = yes; then
24714 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24715 then gcc_cv_as_ix86_pe_secrel32=yes
24717 elif test x$gcc_cv_as != x; then
24718 $as_echo '.text
24719 foo: nop
24720 .data
24721 .secrel32 foo' > conftest.s
24722 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24724 (eval $ac_try) 2>&5
24725 ac_status=$?
24726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24727 test $ac_status = 0; }; }
24728 then
24729 if test x$gcc_cv_ld != x \
24730 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24731 gcc_cv_as_ix86_pe_secrel32=yes
24733 rm -f conftest
24734 else
24735 echo "configure: failed program was" >&5
24736 cat conftest.s >&5
24738 rm -f conftest.o conftest.s
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24742 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24743 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24745 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24748 # Test if the assembler supports the extended form of the .section
24749 # directive that specifies section alignment. LTO support uses this,
24750 # but normally only after installation, so we warn but don't fail the
24751 # configure if LTO is enabled but the assembler does not support it.
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24753 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24754 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24755 $as_echo_n "(cached) " >&6
24756 else
24757 gcc_cv_as_section_has_align=no
24758 if test $in_tree_gas = yes; then
24759 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24760 then gcc_cv_as_section_has_align=yes
24762 elif test x$gcc_cv_as != x; then
24763 $as_echo '.section lto_test,"dr0"' > conftest.s
24764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24766 (eval $ac_try) 2>&5
24767 ac_status=$?
24768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24769 test $ac_status = 0; }; }
24770 then
24771 gcc_cv_as_section_has_align=yes
24772 else
24773 echo "configure: failed program was" >&5
24774 cat conftest.s >&5
24776 rm -f conftest.o conftest.s
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24780 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24782 if test x$gcc_cv_as_section_has_align != xyes; then
24783 case ",$enable_languages," in
24784 *,lto,*)
24785 { $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
24786 $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;}
24788 esac
24790 # Test if the assembler supports the section flag 'e' for specifying
24791 # an excluded section.
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24793 $as_echo_n "checking assembler for .section with e... " >&6; }
24794 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24795 $as_echo_n "(cached) " >&6
24796 else
24797 gcc_cv_as_section_has_e=no
24798 if test $in_tree_gas = yes; then
24799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24800 then gcc_cv_as_section_has_e=yes
24802 elif test x$gcc_cv_as != x; then
24803 $as_echo '.section foo1,"e"
24804 .byte 0,0,0,0' > conftest.s
24805 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24807 (eval $ac_try) 2>&5
24808 ac_status=$?
24809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24810 test $ac_status = 0; }; }
24811 then
24812 gcc_cv_as_section_has_e=yes
24813 else
24814 echo "configure: failed program was" >&5
24815 cat conftest.s >&5
24817 rm -f conftest.o conftest.s
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24821 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24824 cat >>confdefs.h <<_ACEOF
24825 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24826 _ACEOF
24829 esac
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24832 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24833 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24834 $as_echo_n "(cached) " >&6
24835 else
24836 gcc_cv_as_ix86_filds=no
24837 if test x$gcc_cv_as != x; then
24838 $as_echo 'filds mem; fists mem' > conftest.s
24839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24841 (eval $ac_try) 2>&5
24842 ac_status=$?
24843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24844 test $ac_status = 0; }; }
24845 then
24846 gcc_cv_as_ix86_filds=yes
24847 else
24848 echo "configure: failed program was" >&5
24849 cat conftest.s >&5
24851 rm -f conftest.o conftest.s
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24855 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24856 if test $gcc_cv_as_ix86_filds = yes; then
24858 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24863 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24864 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24865 $as_echo_n "(cached) " >&6
24866 else
24867 gcc_cv_as_ix86_fildq=no
24868 if test x$gcc_cv_as != x; then
24869 $as_echo 'fildq mem; fistpq mem' > conftest.s
24870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24872 (eval $ac_try) 2>&5
24873 ac_status=$?
24874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24875 test $ac_status = 0; }; }
24876 then
24877 gcc_cv_as_ix86_fildq=yes
24878 else
24879 echo "configure: failed program was" >&5
24880 cat conftest.s >&5
24882 rm -f conftest.o conftest.s
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24886 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24887 if test $gcc_cv_as_ix86_fildq = yes; then
24889 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24894 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24895 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24896 $as_echo_n "(cached) " >&6
24897 else
24898 gcc_cv_as_ix86_cmov_sun_syntax=no
24899 if test x$gcc_cv_as != x; then
24900 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24903 (eval $ac_try) 2>&5
24904 ac_status=$?
24905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24906 test $ac_status = 0; }; }
24907 then
24908 gcc_cv_as_ix86_cmov_sun_syntax=yes
24909 else
24910 echo "configure: failed program was" >&5
24911 cat conftest.s >&5
24913 rm -f conftest.o conftest.s
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24917 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24918 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24920 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24925 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24926 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24927 $as_echo_n "(cached) " >&6
24928 else
24929 gcc_cv_as_ix86_ffreep=no
24930 if test x$gcc_cv_as != x; then
24931 $as_echo 'ffreep %st(1)' > conftest.s
24932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24934 (eval $ac_try) 2>&5
24935 ac_status=$?
24936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24937 test $ac_status = 0; }; }
24938 then
24939 gcc_cv_as_ix86_ffreep=yes
24940 else
24941 echo "configure: failed program was" >&5
24942 cat conftest.s >&5
24944 rm -f conftest.o conftest.s
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24948 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24949 if test $gcc_cv_as_ix86_ffreep = yes; then
24951 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24956 $as_echo_n "checking assembler for .quad directive... " >&6; }
24957 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24958 $as_echo_n "(cached) " >&6
24959 else
24960 gcc_cv_as_ix86_quad=no
24961 if test x$gcc_cv_as != x; then
24962 $as_echo '.quad 0' > conftest.s
24963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24965 (eval $ac_try) 2>&5
24966 ac_status=$?
24967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24968 test $ac_status = 0; }; }
24969 then
24970 gcc_cv_as_ix86_quad=yes
24971 else
24972 echo "configure: failed program was" >&5
24973 cat conftest.s >&5
24975 rm -f conftest.o conftest.s
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24979 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24980 if test $gcc_cv_as_ix86_quad = yes; then
24982 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24987 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24988 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24989 $as_echo_n "(cached) " >&6
24990 else
24991 gcc_cv_as_ix86_sahf=no
24992 if test x$gcc_cv_as != x; then
24993 $as_echo '.code64
24994 sahf' > conftest.s
24995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24997 (eval $ac_try) 2>&5
24998 ac_status=$?
24999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25000 test $ac_status = 0; }; }
25001 then
25002 gcc_cv_as_ix86_sahf=yes
25003 else
25004 echo "configure: failed program was" >&5
25005 cat conftest.s >&5
25007 rm -f conftest.o conftest.s
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25011 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25012 if test $gcc_cv_as_ix86_sahf = yes; then
25014 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25019 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25020 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25021 $as_echo_n "(cached) " >&6
25022 else
25023 gcc_cv_as_ix86_interunit_movq=no
25024 if test x$gcc_cv_as != x; then
25025 $as_echo '.code64
25026 movq %mm0, %rax
25027 movq %rax, %xmm0' > conftest.s
25028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25030 (eval $ac_try) 2>&5
25031 ac_status=$?
25032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25033 test $ac_status = 0; }; }
25034 then
25035 gcc_cv_as_ix86_interunit_movq=yes
25036 else
25037 echo "configure: failed program was" >&5
25038 cat conftest.s >&5
25040 rm -f conftest.o conftest.s
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25044 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25045 if test $gcc_cv_as_ix86_interunit_movq = yes; then
25047 $as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25052 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25053 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25054 $as_echo_n "(cached) " >&6
25055 else
25056 gcc_cv_as_ix86_hle=no
25057 if test x$gcc_cv_as != x; then
25058 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25061 (eval $ac_try) 2>&5
25062 ac_status=$?
25063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25064 test $ac_status = 0; }; }
25065 then
25066 gcc_cv_as_ix86_hle=yes
25067 else
25068 echo "configure: failed program was" >&5
25069 cat conftest.s >&5
25071 rm -f conftest.o conftest.s
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25075 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25076 if test $gcc_cv_as_ix86_hle = yes; then
25078 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25083 $as_echo_n "checking assembler for swap suffix... " >&6; }
25084 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25085 $as_echo_n "(cached) " >&6
25086 else
25087 gcc_cv_as_ix86_swap=no
25088 if test x$gcc_cv_as != x; then
25089 $as_echo 'movl.s %esp, %ebp' > conftest.s
25090 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25092 (eval $ac_try) 2>&5
25093 ac_status=$?
25094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25095 test $ac_status = 0; }; }
25096 then
25097 gcc_cv_as_ix86_swap=yes
25098 else
25099 echo "configure: failed program was" >&5
25100 cat conftest.s >&5
25102 rm -f conftest.o conftest.s
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25106 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25107 if test $gcc_cv_as_ix86_swap = yes; then
25109 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25114 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25115 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25116 $as_echo_n "(cached) " >&6
25117 else
25118 gcc_cv_as_ix86_diff_sect_delta=no
25119 if test x$gcc_cv_as != x; then
25120 $as_echo '.section .rodata
25121 .L1:
25122 .long .L2-.L1
25123 .long .L3-.L1
25124 .text
25125 .L3: nop
25126 .L2: nop' > conftest.s
25127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25129 (eval $ac_try) 2>&5
25130 ac_status=$?
25131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25132 test $ac_status = 0; }; }
25133 then
25134 gcc_cv_as_ix86_diff_sect_delta=yes
25135 else
25136 echo "configure: failed program was" >&5
25137 cat conftest.s >&5
25139 rm -f conftest.o conftest.s
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25143 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25144 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25146 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25150 # These two are used unconditionally by i386.[ch]; it is to be defined
25151 # to 1 if the feature is present, 0 otherwise.
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25153 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25154 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25155 $as_echo_n "(cached) " >&6
25156 else
25157 gcc_cv_as_ix86_gotoff_in_data=no
25158 if test $in_tree_gas = yes; then
25159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25160 then gcc_cv_as_ix86_gotoff_in_data=yes
25162 elif test x$gcc_cv_as != x; then
25163 $as_echo ' .text
25164 .L0:
25166 .data
25167 .long .L0@GOTOFF' > conftest.s
25168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25170 (eval $ac_try) 2>&5
25171 ac_status=$?
25172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25173 test $ac_status = 0; }; }
25174 then
25175 gcc_cv_as_ix86_gotoff_in_data=yes
25176 else
25177 echo "configure: failed program was" >&5
25178 cat conftest.s >&5
25180 rm -f conftest.o conftest.s
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25184 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25187 cat >>confdefs.h <<_ACEOF
25188 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25189 _ACEOF
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25193 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25194 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25195 $as_echo_n "(cached) " >&6
25196 else
25197 gcc_cv_as_ix86_rep_lock_prefix=no
25198 if test x$gcc_cv_as != x; then
25199 $as_echo 'rep movsl
25200 rep ret
25201 rep nop
25202 rep bsf %ecx, %eax
25203 rep bsr %ecx, %eax
25204 lock addl %edi, (%eax,%esi)
25205 lock orl $0, (%esp)' > 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_ix86_rep_lock_prefix=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_ix86_rep_lock_prefix" >&5
25222 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25223 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25225 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25230 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25231 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25232 $as_echo_n "(cached) " >&6
25233 else
25234 gcc_cv_as_ix86_tlsgdplt=no
25235 if test x$gcc_cv_as != x; then
25236 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25237 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25239 (eval $ac_try) 2>&5
25240 ac_status=$?
25241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25242 test $ac_status = 0; }; }
25243 then
25244 if test x$gcc_cv_ld != x \
25245 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25246 gcc_cv_as_ix86_tlsgdplt=yes
25248 rm -f conftest
25249 else
25250 echo "configure: failed program was" >&5
25251 cat conftest.s >&5
25253 rm -f conftest.o conftest.s
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25257 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25258 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25260 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25265 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25266 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25267 $as_echo_n "(cached) " >&6
25268 else
25269 gcc_cv_as_ix86_tlsldmplt=no
25270 if test x$gcc_cv_as != x; then
25271 $as_echo 'tls_ld:
25272 call tls_ld@tlsldmplt' > conftest.s
25273 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25278 test $ac_status = 0; }; }
25279 then
25280 if test x$gcc_cv_ld != x \
25281 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25282 gcc_cv_as_ix86_tlsldmplt=yes
25284 rm -f conftest
25285 else
25286 echo "configure: failed program was" >&5
25287 cat conftest.s >&5
25289 rm -f conftest.o conftest.s
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25293 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25294 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25296 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25302 ia64*-*-*)
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25304 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25305 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25306 $as_echo_n "(cached) " >&6
25307 else
25308 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25309 if test $in_tree_gas = yes; then
25310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25311 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25313 elif test x$gcc_cv_as != x; then
25314 $as_echo ' .text
25315 addl r15 = @ltoffx(x#), gp
25317 ld8.mov r16 = [r15], x#' > conftest.s
25318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25320 (eval $ac_try) 2>&5
25321 ac_status=$?
25322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25323 test $ac_status = 0; }; }
25324 then
25325 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25326 else
25327 echo "configure: failed program was" >&5
25328 cat conftest.s >&5
25330 rm -f conftest.o conftest.s
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25334 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25335 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25337 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25343 powerpc*-*-*)
25344 case $target in
25345 *-*-aix*) conftest_s=' .machine "pwr5"
25346 .csect .text[PR]
25347 mfcr 3,128';;
25348 *-*-darwin*)
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25350 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25351 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25352 $as_echo_n "(cached) " >&6
25353 else
25354 gcc_cv_as_machine_directive=no
25355 if test x$gcc_cv_as != x; then
25356 $as_echo ' .machine ppc7400' > conftest.s
25357 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25363 then
25364 gcc_cv_as_machine_directive=yes
25365 else
25366 echo "configure: failed program was" >&5
25367 cat conftest.s >&5
25369 rm -f conftest.o conftest.s
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25373 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25375 if test x$gcc_cv_as_machine_directive != xyes; then
25376 echo "*** This target requires an assembler supporting \".machine\"" >&2
25377 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25378 test x$build = x$target && exit 1
25380 conftest_s=' .text
25381 mfcr r3,128';;
25382 *) conftest_s=' .machine power4
25383 .text
25384 mfcr 3,128';;
25385 esac
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25388 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25389 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25390 $as_echo_n "(cached) " >&6
25391 else
25392 gcc_cv_as_powerpc_mfcrf=no
25393 if test $in_tree_gas = yes; then
25394 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25395 then gcc_cv_as_powerpc_mfcrf=yes
25397 elif test x$gcc_cv_as != x; then
25398 $as_echo "$conftest_s" > conftest.s
25399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25401 (eval $ac_try) 2>&5
25402 ac_status=$?
25403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25404 test $ac_status = 0; }; }
25405 then
25406 gcc_cv_as_powerpc_mfcrf=yes
25407 else
25408 echo "configure: failed program was" >&5
25409 cat conftest.s >&5
25411 rm -f conftest.o conftest.s
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25415 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25416 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25418 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25422 case $target in
25423 *-*-aix*) conftest_s=' .machine "pwr5"
25424 .csect .text[PR]
25425 popcntb 3,3';;
25426 *) conftest_s=' .machine power5
25427 .text
25428 popcntb 3,3';;
25429 esac
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25432 $as_echo_n "checking assembler for popcntb support... " >&6; }
25433 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25434 $as_echo_n "(cached) " >&6
25435 else
25436 gcc_cv_as_powerpc_popcntb=no
25437 if test $in_tree_gas = yes; then
25438 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25439 then gcc_cv_as_powerpc_popcntb=yes
25441 elif test x$gcc_cv_as != x; then
25442 $as_echo "$conftest_s" > conftest.s
25443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25445 (eval $ac_try) 2>&5
25446 ac_status=$?
25447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25448 test $ac_status = 0; }; }
25449 then
25450 gcc_cv_as_powerpc_popcntb=yes
25451 else
25452 echo "configure: failed program was" >&5
25453 cat conftest.s >&5
25455 rm -f conftest.o conftest.s
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25459 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25460 if test $gcc_cv_as_powerpc_popcntb = yes; then
25462 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25466 case $target in
25467 *-*-aix*) conftest_s=' .machine "pwr5x"
25468 .csect .text[PR]
25469 frin 1,1';;
25470 *) conftest_s=' .machine power5
25471 .text
25472 frin 1,1';;
25473 esac
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25476 $as_echo_n "checking assembler for fp round support... " >&6; }
25477 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25478 $as_echo_n "(cached) " >&6
25479 else
25480 gcc_cv_as_powerpc_fprnd=no
25481 if test $in_tree_gas = yes; then
25482 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25483 then gcc_cv_as_powerpc_fprnd=yes
25485 elif test x$gcc_cv_as != x; then
25486 $as_echo "$conftest_s" > conftest.s
25487 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25489 (eval $ac_try) 2>&5
25490 ac_status=$?
25491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25492 test $ac_status = 0; }; }
25493 then
25494 gcc_cv_as_powerpc_fprnd=yes
25495 else
25496 echo "configure: failed program was" >&5
25497 cat conftest.s >&5
25499 rm -f conftest.o conftest.s
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25503 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25504 if test $gcc_cv_as_powerpc_fprnd = yes; then
25506 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25510 case $target in
25511 *-*-aix*) conftest_s=' .machine "pwr6"
25512 .csect .text[PR]
25513 mffgpr 1,3';;
25514 *) conftest_s=' .machine power6
25515 .text
25516 mffgpr 1,3';;
25517 esac
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25520 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25521 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25522 $as_echo_n "(cached) " >&6
25523 else
25524 gcc_cv_as_powerpc_mfpgpr=no
25525 if test $in_tree_gas = yes; then
25526 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25527 then gcc_cv_as_powerpc_mfpgpr=yes
25529 elif test x$gcc_cv_as != x; then
25530 $as_echo "$conftest_s" > conftest.s
25531 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25533 (eval $ac_try) 2>&5
25534 ac_status=$?
25535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25536 test $ac_status = 0; }; }
25537 then
25538 gcc_cv_as_powerpc_mfpgpr=yes
25539 else
25540 echo "configure: failed program was" >&5
25541 cat conftest.s >&5
25543 rm -f conftest.o conftest.s
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25547 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25548 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25550 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25554 case $target in
25555 *-*-aix*) conftest_s=' .csect .text[PR]
25556 LCF..0:
25557 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25558 *-*-darwin*)
25559 conftest_s=' .text
25560 LCF0:
25561 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25562 *) conftest_s=' .text
25563 .LCF0:
25564 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25565 esac
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25568 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25569 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25570 $as_echo_n "(cached) " >&6
25571 else
25572 gcc_cv_as_powerpc_rel16=no
25573 if test $in_tree_gas = yes; then
25574 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25575 then gcc_cv_as_powerpc_rel16=yes
25577 elif test x$gcc_cv_as != x; then
25578 $as_echo "$conftest_s" > conftest.s
25579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25581 (eval $ac_try) 2>&5
25582 ac_status=$?
25583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25584 test $ac_status = 0; }; }
25585 then
25586 gcc_cv_as_powerpc_rel16=yes
25587 else
25588 echo "configure: failed program was" >&5
25589 cat conftest.s >&5
25591 rm -f conftest.o conftest.s
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25595 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25596 if test $gcc_cv_as_powerpc_rel16 = yes; then
25598 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25602 case $target in
25603 *-*-aix*) conftest_s=' .machine "pwr6"
25604 .csect .text[PR]
25605 cmpb 3,4,5';;
25606 *) conftest_s=' .machine power6
25607 .text
25608 cmpb 3,4,5';;
25609 esac
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25612 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25613 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25614 $as_echo_n "(cached) " >&6
25615 else
25616 gcc_cv_as_powerpc_cmpb=no
25617 if test $in_tree_gas = yes; then
25618 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25619 then gcc_cv_as_powerpc_cmpb=yes
25621 elif test x$gcc_cv_as != x; then
25622 $as_echo "$conftest_s" > conftest.s
25623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25625 (eval $ac_try) 2>&5
25626 ac_status=$?
25627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25628 test $ac_status = 0; }; }
25629 then
25630 gcc_cv_as_powerpc_cmpb=yes
25631 else
25632 echo "configure: failed program was" >&5
25633 cat conftest.s >&5
25635 rm -f conftest.o conftest.s
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25639 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25640 if test $gcc_cv_as_powerpc_cmpb = yes; then
25642 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25646 case $target in
25647 *-*-aix*) conftest_s=' .machine "pwr6"
25648 .csect .text[PR]
25649 dadd 1,2,3';;
25650 *) conftest_s=' .machine power6
25651 .text
25652 dadd 1,2,3';;
25653 esac
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25656 $as_echo_n "checking assembler for decimal float support... " >&6; }
25657 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25658 $as_echo_n "(cached) " >&6
25659 else
25660 gcc_cv_as_powerpc_dfp=no
25661 if test $in_tree_gas = yes; then
25662 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25663 then gcc_cv_as_powerpc_dfp=yes
25665 elif test x$gcc_cv_as != x; then
25666 $as_echo "$conftest_s" > conftest.s
25667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25669 (eval $ac_try) 2>&5
25670 ac_status=$?
25671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25672 test $ac_status = 0; }; }
25673 then
25674 gcc_cv_as_powerpc_dfp=yes
25675 else
25676 echo "configure: failed program was" >&5
25677 cat conftest.s >&5
25679 rm -f conftest.o conftest.s
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25683 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25684 if test $gcc_cv_as_powerpc_dfp = yes; then
25686 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25690 case $target in
25691 *-*-aix*) conftest_s=' .machine "pwr7"
25692 .csect .text[PR]
25693 lxvd2x 1,2,3';;
25694 *) conftest_s=' .machine power7
25695 .text
25696 lxvd2x 1,2,3';;
25697 esac
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25700 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25701 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25702 $as_echo_n "(cached) " >&6
25703 else
25704 gcc_cv_as_powerpc_vsx=no
25705 if test $in_tree_gas = yes; then
25706 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25707 then gcc_cv_as_powerpc_vsx=yes
25709 elif test x$gcc_cv_as != x; then
25710 $as_echo "$conftest_s" > conftest.s
25711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25713 (eval $ac_try) 2>&5
25714 ac_status=$?
25715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25716 test $ac_status = 0; }; }
25717 then
25718 gcc_cv_as_powerpc_vsx=yes
25719 else
25720 echo "configure: failed program was" >&5
25721 cat conftest.s >&5
25723 rm -f conftest.o conftest.s
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25727 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25728 if test $gcc_cv_as_powerpc_vsx = yes; then
25730 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25734 case $target in
25735 *-*-aix*) conftest_s=' .machine "pwr7"
25736 .csect .text[PR]
25737 popcntd 3,3';;
25738 *) conftest_s=' .machine power7
25739 .text
25740 popcntd 3,3';;
25741 esac
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25744 $as_echo_n "checking assembler for popcntd support... " >&6; }
25745 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25746 $as_echo_n "(cached) " >&6
25747 else
25748 gcc_cv_as_powerpc_popcntd=no
25749 if test $in_tree_gas = yes; then
25750 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25751 then gcc_cv_as_powerpc_popcntd=yes
25753 elif test x$gcc_cv_as != x; then
25754 $as_echo "$conftest_s" > conftest.s
25755 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25757 (eval $ac_try) 2>&5
25758 ac_status=$?
25759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25760 test $ac_status = 0; }; }
25761 then
25762 gcc_cv_as_powerpc_popcntd=yes
25763 else
25764 echo "configure: failed program was" >&5
25765 cat conftest.s >&5
25767 rm -f conftest.o conftest.s
25770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25771 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25772 if test $gcc_cv_as_powerpc_popcntd = yes; then
25774 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25778 case $target in
25779 *-*-aix*) conftest_s=' .machine "pwr8"
25780 .csect .text[PR]';;
25781 *) conftest_s=' .machine power8
25782 .text';;
25783 esac
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25786 $as_echo_n "checking assembler for power8 support... " >&6; }
25787 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25788 $as_echo_n "(cached) " >&6
25789 else
25790 gcc_cv_as_powerpc_power8=no
25791 if test $in_tree_gas = yes; then
25792 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25793 then gcc_cv_as_powerpc_power8=yes
25795 elif test x$gcc_cv_as != x; then
25796 $as_echo "$conftest_s" > conftest.s
25797 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25799 (eval $ac_try) 2>&5
25800 ac_status=$?
25801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25802 test $ac_status = 0; }; }
25803 then
25804 gcc_cv_as_powerpc_power8=yes
25805 else
25806 echo "configure: failed program was" >&5
25807 cat conftest.s >&5
25809 rm -f conftest.o conftest.s
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25813 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25814 if test $gcc_cv_as_powerpc_power8 = yes; then
25816 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25820 case $target in
25821 *-*-aix*) conftest_s=' .csect .text[PR]
25822 lwsync';;
25823 *) conftest_s=' .text
25824 lwsync';;
25825 esac
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25828 $as_echo_n "checking assembler for lwsync support... " >&6; }
25829 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25830 $as_echo_n "(cached) " >&6
25831 else
25832 gcc_cv_as_powerpc_lwsync=no
25833 if test $in_tree_gas = yes; then
25834 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25835 then gcc_cv_as_powerpc_lwsync=yes
25837 elif test x$gcc_cv_as != x; then
25838 $as_echo "$conftest_s" > conftest.s
25839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25841 (eval $ac_try) 2>&5
25842 ac_status=$?
25843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25844 test $ac_status = 0; }; }
25845 then
25846 gcc_cv_as_powerpc_lwsync=yes
25847 else
25848 echo "configure: failed program was" >&5
25849 cat conftest.s >&5
25851 rm -f conftest.o conftest.s
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25855 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25856 if test $gcc_cv_as_powerpc_lwsync = yes; then
25858 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25862 case $target in
25863 *-*-aix*) conftest_s=' .machine "476"
25864 .csect .text[PR]
25865 dci 0';;
25866 *) conftest_s=' .machine "476"
25867 .text
25868 dci 0';;
25869 esac
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25872 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25873 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25874 $as_echo_n "(cached) " >&6
25875 else
25876 gcc_cv_as_powerpc_dci=no
25877 if test $in_tree_gas = yes; then
25878 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25879 then gcc_cv_as_powerpc_dci=yes
25881 elif test x$gcc_cv_as != x; then
25882 $as_echo "$conftest_s" > conftest.s
25883 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25885 (eval $ac_try) 2>&5
25886 ac_status=$?
25887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25888 test $ac_status = 0; }; }
25889 then
25890 gcc_cv_as_powerpc_dci=yes
25891 else
25892 echo "configure: failed program was" >&5
25893 cat conftest.s >&5
25895 rm -f conftest.o conftest.s
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25899 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25900 if test $gcc_cv_as_powerpc_dci = yes; then
25902 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25907 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25908 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25909 $as_echo_n "(cached) " >&6
25910 else
25911 gcc_cv_as_powerpc_gnu_attribute=no
25912 if test $in_tree_gas = yes; then
25913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25914 then gcc_cv_as_powerpc_gnu_attribute=yes
25916 elif test x$gcc_cv_as != x; then
25917 $as_echo '.gnu_attribute 4,1' > conftest.s
25918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25920 (eval $ac_try) 2>&5
25921 ac_status=$?
25922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25923 test $ac_status = 0; }; }
25924 then
25925 gcc_cv_as_powerpc_gnu_attribute=yes
25926 else
25927 echo "configure: failed program was" >&5
25928 cat conftest.s >&5
25930 rm -f conftest.o conftest.s
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25934 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25935 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25937 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25942 $as_echo_n "checking assembler for tls marker support... " >&6; }
25943 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25944 $as_echo_n "(cached) " >&6
25945 else
25946 gcc_cv_as_powerpc_tls_markers=no
25947 if test $in_tree_gas = yes; then
25948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25949 then gcc_cv_as_powerpc_tls_markers=yes
25951 elif test x$gcc_cv_as != x; then
25952 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25955 (eval $ac_try) 2>&5
25956 ac_status=$?
25957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25958 test $ac_status = 0; }; }
25959 then
25960 gcc_cv_as_powerpc_tls_markers=yes
25961 else
25962 echo "configure: failed program was" >&5
25963 cat conftest.s >&5
25965 rm -f conftest.o conftest.s
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25969 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25970 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25972 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25976 case $target in
25977 *-*-aix*)
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25979 $as_echo_n "checking assembler for .ref support... " >&6; }
25980 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25981 $as_echo_n "(cached) " >&6
25982 else
25983 gcc_cv_as_aix_ref=no
25984 if test $in_tree_gas = yes; then
25985 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25986 then gcc_cv_as_aix_ref=yes
25988 elif test x$gcc_cv_as != x; then
25989 $as_echo ' .csect stuff[rw]
25990 stuff:
25991 .long 1
25992 .extern sym
25993 .ref sym
25994 ' > conftest.s
25995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25997 (eval $ac_try) 2>&5
25998 ac_status=$?
25999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26000 test $ac_status = 0; }; }
26001 then
26002 gcc_cv_as_aix_ref=yes
26003 else
26004 echo "configure: failed program was" >&5
26005 cat conftest.s >&5
26007 rm -f conftest.o conftest.s
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26011 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26012 if test $gcc_cv_as_aix_ref = yes; then
26014 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26018 esac
26021 mips*-*-*)
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26023 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26024 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26025 $as_echo_n "(cached) " >&6
26026 else
26027 gcc_cv_as_mips_explicit_relocs=no
26028 if test $in_tree_gas = yes; then
26029 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26030 then gcc_cv_as_mips_explicit_relocs=yes
26032 elif test x$gcc_cv_as != x; then
26033 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26036 (eval $ac_try) 2>&5
26037 ac_status=$?
26038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26039 test $ac_status = 0; }; }
26040 then
26041 gcc_cv_as_mips_explicit_relocs=yes
26042 else
26043 echo "configure: failed program was" >&5
26044 cat conftest.s >&5
26046 rm -f conftest.o conftest.s
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26050 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26051 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26052 if test x$target_cpu_default = x
26053 then target_cpu_default=MASK_EXPLICIT_RELOCS
26054 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26058 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26059 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26060 $as_echo_n "(cached) " >&6
26061 else
26062 gcc_cv_as_mips_no_shared=no
26063 if test $in_tree_gas = yes; then
26064 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26065 then gcc_cv_as_mips_no_shared=yes
26067 elif test x$gcc_cv_as != x; then
26068 $as_echo 'nop' > conftest.s
26069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26071 (eval $ac_try) 2>&5
26072 ac_status=$?
26073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26074 test $ac_status = 0; }; }
26075 then
26076 gcc_cv_as_mips_no_shared=yes
26077 else
26078 echo "configure: failed program was" >&5
26079 cat conftest.s >&5
26081 rm -f conftest.o conftest.s
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26085 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26086 if test $gcc_cv_as_mips_no_shared = yes; then
26088 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26093 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26094 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26095 $as_echo_n "(cached) " >&6
26096 else
26097 gcc_cv_as_mips_gnu_attribute=no
26098 if test $in_tree_gas = yes; then
26099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26100 then gcc_cv_as_mips_gnu_attribute=yes
26102 elif test x$gcc_cv_as != x; then
26103 $as_echo '.gnu_attribute 4,1' > conftest.s
26104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26106 (eval $ac_try) 2>&5
26107 ac_status=$?
26108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26109 test $ac_status = 0; }; }
26110 then
26111 gcc_cv_as_mips_gnu_attribute=yes
26112 else
26113 echo "configure: failed program was" >&5
26114 cat conftest.s >&5
26116 rm -f conftest.o conftest.s
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26120 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26121 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26123 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26128 $as_echo_n "checking assembler for .micromips support... " >&6; }
26129 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26130 $as_echo_n "(cached) " >&6
26131 else
26132 gcc_cv_as_micromips_support=no
26133 if test x$gcc_cv_as != x; then
26134 $as_echo '.set micromips' > conftest.s
26135 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26137 (eval $ac_try) 2>&5
26138 ac_status=$?
26139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26140 test $ac_status = 0; }; }
26141 then
26142 gcc_cv_as_micromips_support=yes
26143 else
26144 echo "configure: failed program was" >&5
26145 cat conftest.s >&5
26147 rm -f conftest.o conftest.s
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26151 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26152 if test $gcc_cv_as_micromips_support = yes; then
26154 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26159 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26160 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26161 $as_echo_n "(cached) " >&6
26162 else
26163 gcc_cv_as_mips_dtprelword=no
26164 if test $in_tree_gas = yes; then
26165 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26166 then gcc_cv_as_mips_dtprelword=yes
26168 elif test x$gcc_cv_as != x; then
26169 $as_echo '.section .tdata,"awT",@progbits
26171 .word 2
26172 .text
26173 .dtprelword x+0x8000' > conftest.s
26174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26176 (eval $ac_try) 2>&5
26177 ac_status=$?
26178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26179 test $ac_status = 0; }; }
26180 then
26181 gcc_cv_as_mips_dtprelword=yes
26182 else
26183 echo "configure: failed program was" >&5
26184 cat conftest.s >&5
26186 rm -f conftest.o conftest.s
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26190 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26191 if test $gcc_cv_as_mips_dtprelword = yes; then
26193 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26198 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26199 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26200 $as_echo_n "(cached) " >&6
26201 else
26202 gcc_cv_as_mips_dspr1_mult=no
26203 if test x$gcc_cv_as != x; then
26204 $as_echo ' .set mips32r2
26205 .set nodspr2
26206 .set dsp
26207 madd $ac3,$4,$5
26208 maddu $ac3,$4,$5
26209 msub $ac3,$4,$5
26210 msubu $ac3,$4,$5
26211 mult $ac3,$4,$5
26212 multu $ac3,$4,$5' > conftest.s
26213 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26215 (eval $ac_try) 2>&5
26216 ac_status=$?
26217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26218 test $ac_status = 0; }; }
26219 then
26220 gcc_cv_as_mips_dspr1_mult=yes
26221 else
26222 echo "configure: failed program was" >&5
26223 cat conftest.s >&5
26225 rm -f conftest.o conftest.s
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26229 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26230 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26232 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26237 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26238 gcc_cv_as_ld_jalr_reloc=no
26239 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26240 if test $in_tree_ld = yes ; then
26241 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 \
26242 && test $in_tree_ld_is_elf = yes; then
26243 gcc_cv_as_ld_jalr_reloc=yes
26245 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26246 echo ' .ent x' > conftest.s
26247 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26248 echo ' ld $25,%call16(y)($28)' >> conftest.s
26249 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26250 echo '1: jalr $25' >> conftest.s
26251 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26252 echo '1: jalr $25' >> conftest.s
26253 echo ' .end x' >> conftest.s
26254 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26255 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26256 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26257 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26258 gcc_cv_as_ld_jalr_reloc=yes
26261 rm -f conftest.*
26264 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26265 if test x$target_cpu_default = x; then
26266 target_cpu_default=MASK_RELAX_PIC_CALLS
26267 else
26268 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26272 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26275 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26276 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26277 $as_echo_n "(cached) " >&6
26278 else
26279 gcc_cv_ld_mips_personality_relaxation=no
26280 if test $in_tree_ld = yes ; then
26281 if test "$gcc_cv_gld_major_version" -eq 2 \
26282 -a "$gcc_cv_gld_minor_version" -ge 21 \
26283 -o "$gcc_cv_gld_major_version" -gt 2; then
26284 gcc_cv_ld_mips_personality_relaxation=yes
26286 elif test x$gcc_cv_as != x \
26287 -a x$gcc_cv_ld != x \
26288 -a x$gcc_cv_readelf != x ; then
26289 cat > conftest.s <<EOF
26290 .cfi_startproc
26291 .cfi_personality 0x80,indirect_ptr
26292 .ent test
26293 test:
26295 .end test
26296 .cfi_endproc
26298 .section .data,"aw",@progbits
26299 indirect_ptr:
26300 .dc.a personality
26302 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26303 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26304 if $gcc_cv_readelf -d conftest 2>&1 \
26305 | grep TEXTREL > /dev/null 2>&1; then
26307 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26308 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26310 else
26311 gcc_cv_ld_mips_personality_relaxation=yes
26315 rm -f conftest.s conftest.o conftest
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26318 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26319 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26321 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26326 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26327 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26328 $as_echo_n "(cached) " >&6
26329 else
26330 gcc_cv_as_mips_nan=no
26331 if test x$gcc_cv_as != x; then
26332 $as_echo '' > conftest.s
26333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26335 (eval $ac_try) 2>&5
26336 ac_status=$?
26337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26338 test $ac_status = 0; }; }
26339 then
26340 gcc_cv_as_mips_nan=yes
26341 else
26342 echo "configure: failed program was" >&5
26343 cat conftest.s >&5
26345 rm -f conftest.o conftest.s
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26349 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26350 if test $gcc_cv_as_mips_nan = yes; then
26352 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26355 if test x$gcc_cv_as_mips_nan = xno \
26356 && test x$with_nan != x; then
26357 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26360 esac
26362 # Mips and HP-UX need the GNU assembler.
26363 # Linux on IA64 might be able to use the Intel assembler.
26365 case "$target" in
26366 mips*-*-* | *-*-hpux* )
26367 if test x$gas_flag = xyes \
26368 || test x"$host" != x"$build" \
26369 || test ! -x "$gcc_cv_as" \
26370 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26372 else
26373 echo "*** This configuration requires the GNU assembler" >&2
26374 exit 1
26377 esac
26379 # ??? Not all targets support dwarf2 debug_line, even within a version
26380 # of gas. Moreover, we need to emit a valid instruction to trigger any
26381 # info to the output file. So, as supported targets are added to gas 2.11,
26382 # add some instruction here to (also) show we expect this might work.
26383 # ??? Once 2.11 is released, probably need to add first known working
26384 # version to the per-target configury.
26385 case "$cpu_type" in
26386 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26387 | mips | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 \
26388 | xtensa)
26389 insn="nop"
26391 ia64 | s390)
26392 insn="nop 0"
26394 mmix)
26395 insn="swym 0"
26397 esac
26398 if test x"$insn" != x; then
26399 conftest_s="\
26400 .file 1 \"conftest.s\"
26401 .loc 1 3 0
26402 $insn"
26403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26404 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26405 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26406 $as_echo_n "(cached) " >&6
26407 else
26408 gcc_cv_as_dwarf2_debug_line=no
26409 if test $in_tree_gas = yes; then
26410 if test $in_tree_gas_is_elf = yes \
26411 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26412 then gcc_cv_as_dwarf2_debug_line=yes
26414 elif test x$gcc_cv_as != x; then
26415 $as_echo "$conftest_s" > conftest.s
26416 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26418 (eval $ac_try) 2>&5
26419 ac_status=$?
26420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26421 test $ac_status = 0; }; }
26422 then
26423 if test x$gcc_cv_objdump != x \
26424 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26425 | grep debug_line > /dev/null 2>&1; then
26426 gcc_cv_as_dwarf2_debug_line=yes
26428 else
26429 echo "configure: failed program was" >&5
26430 cat conftest.s >&5
26432 rm -f conftest.o conftest.s
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26436 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26439 # The .debug_line file table must be in the exact order that
26440 # we specified the files, since these indices are also used
26441 # by DW_AT_decl_file. Approximate this test by testing if
26442 # the assembler bitches if the same index is assigned twice.
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26444 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26445 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26446 $as_echo_n "(cached) " >&6
26447 else
26448 gcc_cv_as_dwarf2_file_buggy=no
26449 if test x$gcc_cv_as != x; then
26450 $as_echo ' .file 1 "foo.s"
26451 .file 1 "bar.s"' > conftest.s
26452 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26454 (eval $ac_try) 2>&5
26455 ac_status=$?
26456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26457 test $ac_status = 0; }; }
26458 then
26459 gcc_cv_as_dwarf2_file_buggy=yes
26460 else
26461 echo "configure: failed program was" >&5
26462 cat conftest.s >&5
26464 rm -f conftest.o conftest.s
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26468 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26471 if test $gcc_cv_as_dwarf2_debug_line = yes \
26472 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26474 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26479 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26480 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26481 $as_echo_n "(cached) " >&6
26482 else
26483 gcc_cv_as_gdwarf2_flag=no
26484 if test $in_tree_gas = yes; then
26485 if test $in_tree_gas_is_elf = yes \
26486 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26487 then gcc_cv_as_gdwarf2_flag=yes
26489 elif test x$gcc_cv_as != x; then
26490 $as_echo "$insn" > conftest.s
26491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26493 (eval $ac_try) 2>&5
26494 ac_status=$?
26495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26496 test $ac_status = 0; }; }
26497 then
26498 gcc_cv_as_gdwarf2_flag=yes
26499 else
26500 echo "configure: failed program was" >&5
26501 cat conftest.s >&5
26503 rm -f conftest.o conftest.s
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26507 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26508 if test $gcc_cv_as_gdwarf2_flag = yes; then
26510 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26515 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26516 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26517 $as_echo_n "(cached) " >&6
26518 else
26519 gcc_cv_as_gstabs_flag=no
26520 if test $in_tree_gas = yes; then
26521 if test $in_tree_gas_is_elf = yes \
26522 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26523 then gcc_cv_as_gstabs_flag=yes
26525 elif test x$gcc_cv_as != x; then
26526 $as_echo "$insn" > conftest.s
26527 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26529 (eval $ac_try) 2>&5
26530 ac_status=$?
26531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26532 test $ac_status = 0; }; }
26533 then
26534 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26535 # and warns about it, but still exits successfully. So check for
26536 # this.
26537 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26539 (eval $ac_try) 2>&5
26540 ac_status=$?
26541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26542 test $ac_status = 0; }; }
26543 then :
26544 else gcc_cv_as_gstabs_flag=yes
26546 else
26547 echo "configure: failed program was" >&5
26548 cat conftest.s >&5
26550 rm -f conftest.o conftest.s
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26554 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26555 if test $gcc_cv_as_gstabs_flag = yes; then
26557 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26562 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26563 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26564 $as_echo_n "(cached) " >&6
26565 else
26566 gcc_cv_as_debug_prefix_map_flag=no
26567 if test $in_tree_gas = yes; then
26568 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26569 then gcc_cv_as_debug_prefix_map_flag=yes
26571 elif test x$gcc_cv_as != x; then
26572 $as_echo "$insn" > conftest.s
26573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26575 (eval $ac_try) 2>&5
26576 ac_status=$?
26577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26578 test $ac_status = 0; }; }
26579 then
26580 gcc_cv_as_debug_prefix_map_flag=yes
26581 else
26582 echo "configure: failed program was" >&5
26583 cat conftest.s >&5
26585 rm -f conftest.o conftest.s
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26589 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26590 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26592 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26598 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26599 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26600 $as_echo_n "(cached) " >&6
26601 else
26602 gcc_cv_as_lcomm_with_alignment=no
26603 if test x$gcc_cv_as != x; then
26604 $as_echo '.lcomm bar,4,16' > conftest.s
26605 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26607 (eval $ac_try) 2>&5
26608 ac_status=$?
26609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26610 test $ac_status = 0; }; }
26611 then
26612 gcc_cv_as_lcomm_with_alignment=yes
26613 else
26614 echo "configure: failed program was" >&5
26615 cat conftest.s >&5
26617 rm -f conftest.o conftest.s
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26621 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26622 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26624 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26628 # Check whether --enable-gnu-unique-object was given.
26629 if test "${enable_gnu_unique_object+set}" = set; then :
26630 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26631 yes | no) ;;
26632 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26633 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26634 esac
26635 else
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26637 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26638 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26639 $as_echo_n "(cached) " >&6
26640 else
26641 gcc_cv_as_gnu_unique_object=no
26642 if test $in_tree_gas = yes; then
26643 if test $in_tree_gas_is_elf = yes \
26644 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26645 then gcc_cv_as_gnu_unique_object=yes
26647 elif test x$gcc_cv_as != x; then
26648 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26649 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26651 (eval $ac_try) 2>&5
26652 ac_status=$?
26653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26654 test $ac_status = 0; }; }
26655 then
26656 gcc_cv_as_gnu_unique_object=yes
26657 else
26658 echo "configure: failed program was" >&5
26659 cat conftest.s >&5
26661 rm -f conftest.o conftest.s
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26665 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26666 if test $gcc_cv_as_gnu_unique_object = yes; then
26667 # We need to unquote above to to use the definition from config.gcc.
26668 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26669 if test x$host = x$build -a x$host = x$target &&
26670 ldd --version 2>/dev/null &&
26671 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26672 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26673 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26674 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26675 if test "$glibcnum" -ge 2011 ; then
26676 enable_gnu_unique_object=yes
26682 if test x$enable_gnu_unique_object = xyes; then
26684 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26689 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26690 if test "${gcc_cv_as_line_zero+set}" = set; then :
26691 $as_echo_n "(cached) " >&6
26692 else
26693 gcc_cv_as_line_zero=no
26694 if test $in_tree_gas = yes; then
26695 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26696 then gcc_cv_as_line_zero=yes
26698 elif test "x$gcc_cv_as" != x; then
26699 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26700 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26702 (eval $ac_try) 2>&5
26703 ac_status=$?
26704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26705 test $ac_status = 0; }; } &&
26706 test "x`cat conftest.out`" = x
26707 then
26708 gcc_cv_as_line_zero=yes
26709 else
26710 echo "configure: failed program was" >&5
26711 cat conftest.s >&5
26712 echo "configure: error output was" >&5
26713 cat conftest.out >&5
26715 rm -f conftest.o conftest.s conftest.out
26718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26719 $as_echo "$gcc_cv_as_line_zero" >&6; }
26720 if test "x$gcc_cv_as_line_zero" = xyes; then
26722 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26727 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26728 gcc_cv_ld_eh_frame_hdr=no
26729 if test $in_tree_ld = yes ; then
26730 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 \
26731 && test $in_tree_ld_is_elf = yes; then
26732 gcc_cv_ld_eh_frame_hdr=yes
26734 elif test x$gcc_cv_ld != x; then
26735 if echo "$ld_ver" | grep GNU > /dev/null; then
26736 # Check if linker supports --eh-frame-hdr option
26737 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26738 gcc_cv_ld_eh_frame_hdr=yes
26740 else
26741 case "$target" in
26742 *-*-solaris2*)
26743 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26744 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26745 gcc_cv_ld_eh_frame_hdr=yes
26748 esac
26752 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26754 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26758 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26761 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26762 gcc_cv_ld_eh_frame_ciev3=no
26763 if test $in_tree_ld = yes ; then
26764 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 \
26765 && test $in_tree_ld_is_elf = yes; then
26766 gcc_cv_ld_eh_frame_ciev3=yes
26768 elif test x$gcc_cv_ld != x; then
26769 if echo "$ld_ver" | grep GNU > /dev/null; then
26770 gcc_cv_ld_eh_frame_ciev3=yes
26771 if test 0"$ld_date" -lt 20040513; then
26772 if test -n "$ld_date"; then
26773 # If there was date string, but was earlier than 2004-05-13, fail
26774 gcc_cv_ld_eh_frame_ciev3=no
26775 elif test "$ld_vers_major" -lt 2; then
26776 gcc_cv_ld_eh_frame_ciev3=no
26777 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26778 gcc_cv_ld_eh_frame_ciev3=no
26781 else
26782 case "$target" in
26783 *-*-solaris2*)
26784 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26785 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26786 gcc_cv_ld_eh_frame_ciev3=yes
26789 esac
26793 cat >>confdefs.h <<_ACEOF
26794 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26795 _ACEOF
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26798 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26801 $as_echo_n "checking linker position independent executable support... " >&6; }
26802 gcc_cv_ld_pie=no
26803 if test $in_tree_ld = yes ; then
26804 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 \
26805 && test $in_tree_ld_is_elf = yes; then
26806 gcc_cv_ld_pie=yes
26808 elif test x$gcc_cv_ld != x; then
26809 # Check if linker supports -pie option
26810 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26811 gcc_cv_ld_pie=yes
26814 if test x"$gcc_cv_ld_pie" = xyes; then
26816 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26820 $as_echo "$gcc_cv_ld_pie" >&6; }
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26823 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26824 gcc_cv_ld_eh_gc_sections=no
26825 if test $in_tree_ld = yes ; then
26826 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 \
26827 && test $in_tree_ld_is_elf = yes; then
26828 gcc_cv_ld_eh_gc_sections=yes
26830 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26831 cat > conftest.s <<EOF
26832 .section .text
26833 .globl _start
26834 .type _start, @function
26835 _start:
26836 .long foo
26837 .size _start, .-_start
26838 .section .text.foo,"ax",@progbits
26839 .type foo, @function
26840 foo:
26841 .long 0
26842 .size foo, .-foo
26843 .section .gcc_except_table.foo,"a",@progbits
26844 .L0:
26845 .long 0
26846 .section .eh_frame,"a",@progbits
26847 .long .L0
26849 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26850 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26851 | grep "gc-sections option ignored" > /dev/null; then
26852 gcc_cv_ld_eh_gc_sections=no
26853 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26854 | grep gcc_except_table > /dev/null; then
26855 gcc_cv_ld_eh_gc_sections=yes
26856 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26857 if test x$gcc_cv_as_comdat_group != xyes; then
26858 gcc_cv_ld_eh_gc_sections=no
26859 cat > conftest.s <<EOF
26860 .section .text
26861 .globl _start
26862 .type _start, @function
26863 _start:
26864 .long foo
26865 .size _start, .-_start
26866 .section .gnu.linkonce.t.foo,"ax",@progbits
26867 .type foo, @function
26868 foo:
26869 .long 0
26870 .size foo, .-foo
26871 .section .gcc_except_table.foo,"a",@progbits
26872 .L0:
26873 .long 0
26874 .section .eh_frame,"a",@progbits
26875 .long .L0
26877 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26878 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26879 | grep "gc-sections option ignored" > /dev/null; then
26880 gcc_cv_ld_eh_gc_sections=no
26881 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26882 | grep gcc_except_table > /dev/null; then
26883 gcc_cv_ld_eh_gc_sections=yes
26889 rm -f conftest.s conftest.o conftest
26891 case "$target" in
26892 hppa*-*-linux*)
26893 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26894 gcc_cv_ld_eh_gc_sections=no
26896 esac
26897 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26899 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26903 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26906 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26907 gcc_cv_ld_eh_gc_sections_bug=no
26908 if test $in_tree_ld = yes ; then
26909 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 \
26910 && test $in_tree_ld_is_elf = yes; then
26911 gcc_cv_ld_eh_gc_sections_bug=yes
26913 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
26914 gcc_cv_ld_eh_gc_sections_bug=yes
26915 cat > conftest.s <<EOF
26916 .section .text
26917 .globl _start
26918 .type _start, @function
26919 _start:
26920 .long foo
26921 .size _start, .-_start
26922 .section .text.startup.foo,"ax",@progbits
26923 .type foo, @function
26924 foo:
26925 .long 0
26926 .size foo, .-foo
26927 .section .gcc_except_table.foo,"a",@progbits
26928 .L0:
26929 .long 0
26930 .section .eh_frame,"a",@progbits
26931 .long .L0
26933 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26934 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26935 | grep "gc-sections option ignored" > /dev/null; then
26937 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26938 | grep gcc_except_table > /dev/null; then
26939 gcc_cv_ld_eh_gc_sections_bug=no
26942 rm -f conftest.s conftest.o conftest
26944 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26946 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26950 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26952 # --------
26953 # UNSORTED
26954 # --------
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26957 $as_echo_n "checking linker --as-needed support... " >&6; }
26958 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26959 $as_echo_n "(cached) " >&6
26960 else
26961 gcc_cv_ld_as_needed=no
26962 gcc_cv_ld_as_needed_option='--as-needed'
26963 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26964 if test $in_tree_ld = yes ; then
26965 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 \
26966 && test $in_tree_ld_is_elf = yes; then
26967 gcc_cv_ld_as_needed=yes
26969 elif test x$gcc_cv_ld != x; then
26970 # Check if linker supports --as-needed and --no-as-needed options
26971 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26972 gcc_cv_ld_as_needed=yes
26973 else
26974 case "$target" in
26975 # Solaris 2 ld always supports -z ignore/-z record.
26976 *-*-solaris2*)
26977 gcc_cv_ld_as_needed=yes
26978 gcc_cv_ld_as_needed_option="-z ignore"
26979 gcc_cv_ld_no_as_needed_option="-z record"
26981 esac
26984 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26985 # dl_iterate_phdr, i.e. since Solaris 11.
26986 case "$target" in
26987 *-*-solaris2.1[1-9]*)
26988 case "$target" in
26989 i?86-*-* | x86_64-*-*)
26990 if echo "$ld_ver" | grep GNU > /dev/null; then
26991 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26992 gcc_cv_ld_as_needed=no
26995 esac
26997 *-*-solaris2*)
26998 gcc_cv_ld_as_needed=no
27000 esac
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27004 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27005 if test x"$gcc_cv_ld_as_needed" = xyes; then
27007 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27010 cat >>confdefs.h <<_ACEOF
27011 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27012 _ACEOF
27015 cat >>confdefs.h <<_ACEOF
27016 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27017 _ACEOF
27021 case "$target:$tm_file" in
27022 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27023 case "$target" in
27024 *le-*-linux*)
27025 emul_name="-melf64lppc"
27027 *-*-linux*)
27028 emul_name="-melf64ppc"
27030 *-*-freebsd*)
27031 emul_name="-melf64ppc_fbsd"
27033 esac
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27035 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27036 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27037 $as_echo_n "(cached) " >&6
27038 else
27039 gcc_cv_ld_no_dot_syms=no
27040 if test x"$ld_is_gold" = xyes; then
27041 gcc_cv_ld_no_dot_syms=yes
27042 elif test $in_tree_ld = yes ; then
27043 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
27044 gcc_cv_ld_no_dot_syms=yes
27046 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27047 cat > conftest1.s <<EOF
27048 .text
27049 bl .foo
27051 cat > conftest2.s <<EOF
27052 .section ".opd","aw"
27053 .align 3
27054 .globl foo
27055 .type foo,@function
27056 foo:
27057 .quad .LEfoo,.TOC.@tocbase,0
27058 .text
27059 .LEfoo:
27061 .size foo,.-.LEfoo
27063 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27064 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27065 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27066 gcc_cv_ld_no_dot_syms=yes
27068 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27073 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27074 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27076 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27081 $as_echo_n "checking linker large toc support... " >&6; }
27082 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27083 $as_echo_n "(cached) " >&6
27084 else
27085 gcc_cv_ld_large_toc=no
27086 if test x"$ld_is_gold" = xyes; then
27087 gcc_cv_ld_large_toc=yes
27088 elif test $in_tree_ld = yes ; then
27089 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
27090 gcc_cv_ld_large_toc=yes
27092 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27093 cat > conftest.s <<EOF
27094 .section ".tbss","awT",@nobits
27095 .align 3
27096 ie0: .space 8
27097 .global _start
27098 .text
27099 _start:
27100 addis 9,13,ie0@got@tprel@ha
27101 ld 9,ie0@got@tprel@l(9)
27103 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27104 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27105 gcc_cv_ld_large_toc=yes
27107 rm -f conftest conftest.o conftest.s
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27112 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27113 if test x"$gcc_cv_ld_large_toc" = xyes; then
27115 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27119 esac
27121 case "$target" in
27122 *-*-aix*)
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27124 $as_echo_n "checking linker large toc support... " >&6; }
27125 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27126 $as_echo_n "(cached) " >&6
27127 else
27128 gcc_cv_ld_large_toc=no
27129 if test x$gcc_cv_as != x ; then
27130 cat > conftest.s <<EOF
27131 .toc
27132 LC..1:
27133 .tc a[TC],a[RW]
27134 .extern a[RW]
27135 .csect .text[PR]
27136 .largetoctest:
27137 addis 9,LC..1@u(2)
27138 ld 3,LC..1@l(9)
27140 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27141 gcc_cv_ld_large_toc=yes
27143 rm -f conftest conftest.o conftest.s
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27148 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27149 if test x"$gcc_cv_ld_large_toc" = xyes; then
27151 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27155 esac
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27158 $as_echo_n "checking linker --build-id support... " >&6; }
27159 if test "${gcc_cv_ld_buildid+set}" = set; then :
27160 $as_echo_n "(cached) " >&6
27161 else
27162 gcc_cv_ld_buildid=no
27163 if test $in_tree_ld = yes ; then
27164 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27165 "$gcc_cv_gld_minor_version" -ge 18 -o \
27166 "$gcc_cv_gld_major_version" -gt 2 \
27167 && test $in_tree_ld_is_elf = yes; then
27168 gcc_cv_ld_buildid=yes
27170 elif test x$gcc_cv_ld != x; then
27171 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27172 gcc_cv_ld_buildid=yes
27176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27177 $as_echo "$gcc_cv_ld_buildid" >&6; }
27178 if test x"$gcc_cv_ld_buildid" = xyes; then
27180 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27184 # Check whether --enable-linker-build-id was given.
27185 if test "${enable_linker_build_id+set}" = set; then :
27186 enableval=$enable_linker_build_id;
27187 else
27188 enable_linker_build_id=no
27192 if test x"$enable_linker_build_id" = xyes; then
27193 if test x"$gcc_cv_ld_buildid" = xyes; then
27195 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27197 else
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27199 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27203 # In binutils 2.21, GNU ld gained support for new emulations fully
27204 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27206 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27207 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27208 $as_echo_n "(cached) " >&6
27209 else
27210 gcc_cv_ld_sol2_emulation=no
27211 if test $in_tree_ld = yes ; then
27212 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27213 "$gcc_cv_gld_minor_version" -ge 21 -o \
27214 "$gcc_cv_gld_major_version" -gt 2 \
27215 && test $in_tree_ld_is_elf = yes; then
27216 gcc_cv_ld_sol2_emulation=yes
27218 elif test x$gcc_cv_ld != x; then
27219 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27220 grep _sol2 > /dev/null; then
27221 gcc_cv_ld_sol2_emulation=yes
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27226 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27227 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27229 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27234 $as_echo_n "checking linker --sysroot support... " >&6; }
27235 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27236 $as_echo_n "(cached) " >&6
27237 else
27238 gcc_cv_ld_sysroot=no
27239 if test $in_tree_ld = yes ; then
27240 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
27241 gcc_cv_ld_sysroot=yes
27243 elif test x$gcc_cv_ld != x; then
27244 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27245 gcc_cv_ld_sysroot=yes
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27250 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27251 if test x"$gcc_cv_ld_sysroot" = xyes; then
27253 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27257 if test x$with_sysroot = x && test x$host = x$target \
27258 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27259 && test "$prefix" != "NONE"; then
27261 cat >>confdefs.h <<_ACEOF
27262 #define PREFIX_INCLUDE_DIR "$prefix/include"
27263 _ACEOF
27267 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
27268 if test "x$with_headers" != x; then
27269 target_header_dir=$with_headers
27270 elif test "x$with_sysroot" = x; then
27271 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
27272 elif test "x$with_build_sysroot" != "x"; then
27273 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
27274 elif test "x$with_sysroot" = xyes; then
27275 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
27276 else
27277 target_header_dir="${with_sysroot}${native_system_header_dir}"
27279 else
27280 target_header_dir=${native_system_header_dir}
27283 # Test for stack protector support in target C library.
27284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27285 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27286 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27287 $as_echo_n "(cached) " >&6
27288 else
27289 gcc_cv_libc_provides_ssp=no
27290 case "$target" in
27291 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27292 # glibc 2.4 and later provides __stack_chk_fail and
27293 # either __stack_chk_guard, or TLS access to stack guard canary.
27294 if test -f $target_header_dir/features.h \
27295 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27296 $target_header_dir/features.h > /dev/null; then
27297 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
27298 $target_header_dir/features.h > /dev/null; then
27299 gcc_cv_libc_provides_ssp=yes
27300 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
27301 $target_header_dir/features.h > /dev/null \
27302 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
27303 $target_header_dir/features.h > /dev/null; then
27304 gcc_cv_libc_provides_ssp=yes
27305 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27306 $target_header_dir/features.h > /dev/null && \
27307 test -f $target_header_dir/bits/uClibc_config.h && \
27308 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27309 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27310 gcc_cv_libc_provides_ssp=yes
27312 # all versions of Bionic support stack protector
27313 elif test -f $target_header_dir/sys/cdefs.h \
27314 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27315 $target_header_dir/sys/cdefs.h > /dev/null; then
27316 gcc_cv_libc_provides_ssp=yes
27319 *-*-gnu*)
27320 # Avoid complicated tests (see
27321 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27322 # simply assert that glibc does provide this, which is true for all
27323 # realistically usable GNU/Hurd configurations.
27324 gcc_cv_libc_provides_ssp=yes;;
27325 *-*-darwin* | *-*-freebsd*)
27326 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27327 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27328 gcc_cv_libc_provides_ssp=yes
27329 else
27330 echo "no __stack_chk_fail on this target"
27334 *) gcc_cv_libc_provides_ssp=no ;;
27335 esac
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27338 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27340 if test x$gcc_cv_libc_provides_ssp = xyes; then
27342 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27346 # Test for <sys/sdt.h> on the target.
27348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27349 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27350 have_sys_sdt_h=no
27351 if test -f $target_header_dir/sys/sdt.h; then
27352 have_sys_sdt_h=yes
27354 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27358 $as_echo "$have_sys_sdt_h" >&6; }
27360 # Check if TFmode long double should be used by default or not.
27361 # Some glibc targets used DFmode long double, but with glibc 2.4
27362 # and later they can use TFmode.
27363 case "$target" in
27364 powerpc*-*-linux* | \
27365 sparc*-*-linux* | \
27366 s390*-*-linux* | \
27367 alpha*-*-linux*)
27369 # Check whether --with-long-double-128 was given.
27370 if test "${with_long_double_128+set}" = set; then :
27371 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27372 else
27373 gcc_cv_target_ldbl128=no
27374 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27375 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27376 && gcc_cv_target_ldbl128=yes
27381 esac
27382 if test x$gcc_cv_target_ldbl128 = xyes; then
27384 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27389 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27390 gcc_cv_target_dl_iterate_phdr=unknown
27391 case "$target" in
27392 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27393 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27394 # libdl there, both complicating its use and breaking compatibility
27395 # between Solaris 10 updates.
27396 *-*-solaris2.1[1-9]*)
27397 # <link.h> needs both a dl_iterate_phdr declaration and support for
27398 # compilation with largefile support.
27399 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27400 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27401 gcc_cv_target_dl_iterate_phdr=yes
27402 else
27403 gcc_cv_target_dl_iterate_phdr=no
27406 esac
27408 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27410 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27414 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27416 # We no longer support different GC mechanisms. Emit an error if
27417 # the user configures with --with-gc.
27419 # Check whether --with-gc was given.
27420 if test "${with_gc+set}" = set; then :
27421 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27425 # Libraries to use on the host. This will normally be set by the top
27426 # level Makefile. Here we simply capture the value for our Makefile.
27427 if test -z "${HOST_LIBS+set}"; then
27428 HOST_LIBS=
27432 # Use the system's zlib library.
27433 zlibdir=-L../zlib
27434 zlibinc="-I\$(srcdir)/../zlib"
27436 # Check whether --with-system-zlib was given.
27437 if test "${with_system_zlib+set}" = set; then :
27438 withval=$with_system_zlib; zlibdir=
27439 zlibinc=
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27448 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27449 # Check whether --enable-maintainer-mode was given.
27450 if test "${enable_maintainer_mode+set}" = set; then :
27451 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27452 else
27453 maintainer_mode=no
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27458 $as_echo "$maintainer_mode" >&6; }
27460 if test "$maintainer_mode" = "yes"; then
27461 MAINT=''
27462 else
27463 MAINT='#'
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27468 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27469 # Check whether --enable-link-mutex was given.
27470 if test "${enable_link_mutex+set}" = set; then :
27471 enableval=$enable_link_mutex; do_link_mutex=$enableval
27472 else
27473 do_link_mutex=no
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27477 $as_echo "$do_link_mutex" >&6; }
27479 if test "$do_link_mutex" = "yes"; then
27480 DO_LINK_MUTEX=true
27481 else
27482 DO_LINK_MUTEX=false
27486 # --------------
27487 # Language hooks
27488 # --------------
27490 # Make empty files to contain the specs and options for each language.
27491 # Then add #include lines to for a compiler that has specs and/or options.
27493 subdirs=
27494 lang_opt_files=
27495 lang_specs_files=
27496 lang_tree_files=
27497 # These (without "all_") are set in each config-lang.in.
27498 # `language' must be a single word so is spelled singularly.
27499 all_languages=
27500 all_compilers=
27501 all_outputs='Makefile'
27502 # List of language makefile fragments.
27503 all_lang_makefrags=
27504 # Additional files for gengtype
27505 all_gtfiles="$target_gtfiles"
27507 # These are the languages that are set in --enable-languages,
27508 # and are available in the GCC tree.
27509 all_selected_languages=
27511 # Add the language fragments.
27512 # Languages are added via two mechanisms. Some information must be
27513 # recorded in makefile variables, these are defined in config-lang.in.
27514 # We accumulate them and plug them into the main Makefile.
27515 # The other mechanism is a set of hooks for each of the main targets
27516 # like `clean', `install', etc.
27518 language_hooks="Make-hooks"
27520 for lang in ${srcdir}/*/config-lang.in
27522 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27524 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27525 if test "x$lang_alias" = x
27526 then
27527 echo "$lang doesn't set \$language." 1>&2
27528 exit 1
27530 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27531 subdirs="$subdirs $subdir"
27533 # $gcc_subdir is where the gcc integration files are to be found
27534 # for a language, both for internal compiler purposes (compiler
27535 # sources implementing front-end to GCC tree converters), and for
27536 # build infrastructure purposes (Make-lang.in, etc.)
27538 # This will be <subdir> (relative to $srcdir) if a line like
27539 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27540 # is found in <langdir>/config-lang.in, and will remain <langdir>
27541 # otherwise.
27543 # Except for the language alias (fetched above), the regular
27544 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27545 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27546 # only this and the language alias.
27548 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27549 if [ "$gcc_subdir" = "" ]; then
27550 gcc_subdir="$subdir"
27553 case ",$enable_languages," in
27554 *,$lang_alias,*)
27555 all_selected_languages="$all_selected_languages $lang_alias"
27556 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27557 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27560 esac
27562 language=
27563 boot_language=
27564 compilers=
27565 outputs=
27566 gtfiles=
27567 subdir_requires=
27568 . ${srcdir}/$gcc_subdir/config-lang.in
27569 if test "x$language" = x
27570 then
27571 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27572 exit 1
27575 ok=:
27576 case ",$enable_languages," in
27577 *,$lang_alias,*) ;;
27579 for i in $subdir_requires; do
27580 test -f "${srcdir}/$i/config-lang.in" && continue
27581 ok=false
27582 break
27583 done
27585 esac
27586 $ok || continue
27588 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27589 if test -f $srcdir/$gcc_subdir/lang.opt; then
27590 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27591 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27593 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27594 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27596 all_languages="$all_languages $language"
27597 all_compilers="$all_compilers $compilers"
27598 all_outputs="$all_outputs $outputs"
27599 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27600 case ",$enable_languages," in
27601 *,lto,*)
27603 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27605 enable_lto=yes
27608 *) ;;
27609 esac
27610 done
27612 check_languages=
27613 for language in $all_selected_languages
27615 check_languages="$check_languages check-$language"
27616 done
27618 # We link each language in with a set of hooks, reached indirectly via
27619 # lang.${target}. Only do so for selected languages.
27621 rm -f Make-hooks
27622 touch Make-hooks
27623 target_list="all.cross start.encap rest.encap tags \
27624 install-common install-man install-info install-pdf install-html dvi \
27625 pdf html uninstall info man srcextra srcman srcinfo \
27626 mostlyclean clean distclean maintainer-clean install-plugin"
27628 for t in $target_list
27631 for lang in $all_selected_languages
27633 x="$x $lang.$t"
27634 done
27635 echo "lang.$t: $x" >> Make-hooks
27636 done
27638 # --------
27639 # Option include files
27640 # --------
27642 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27643 option_includes="option-includes.mk"
27646 # --------
27647 # UNSORTED
27648 # --------
27650 # Create .gdbinit.
27652 echo "dir ." > .gdbinit
27653 echo "dir ${srcdir}" >> .gdbinit
27654 if test x$gdb_needs_out_file_path = xyes
27655 then
27656 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27658 if test "x$subdirs" != x; then
27659 for s in $subdirs
27661 echo "dir ${srcdir}/$s" >> .gdbinit
27662 done
27664 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27666 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27670 # Find a directory in which to install a shared libgcc.
27672 # Check whether --enable-version-specific-runtime-libs was given.
27673 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27674 enableval=$enable_version_specific_runtime_libs;
27678 # Substitute configuration variables
27741 # Echo link setup.
27742 if test x${build} = x${host} ; then
27743 if test x${host} = x${target} ; then
27744 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27745 else
27746 echo "Links are now set up to build a cross-compiler" 1>&2
27747 echo " from ${host} to ${target}." 1>&2
27749 else
27750 if test x${host} = x${target} ; then
27751 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27752 echo " for ${target}." 1>&2
27753 else
27754 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27755 echo " from ${host} to ${target}." 1>&2
27767 if test "x${CLOOGLIBS}" != "x" ; then
27769 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27773 # Check for plugin support
27774 # Check whether --enable-plugin was given.
27775 if test "${enable_plugin+set}" = set; then :
27776 enableval=$enable_plugin; enable_plugin=$enableval
27777 else
27778 enable_plugin=yes; default_plugin=yes
27782 pluginlibs=
27784 case "${host}" in
27785 *-*-darwin*)
27786 if test x$build = x$host; then
27787 export_sym_check="nm${exeext} -g"
27788 elif test x$host = x$target; then
27789 export_sym_check="$gcc_cv_nm -g"
27790 else
27791 export_sym_check=
27795 if test x$build = x$host; then
27796 export_sym_check="objdump${exeext} -T"
27797 elif test x$host = x$target; then
27798 export_sym_check="$gcc_cv_objdump -T"
27799 else
27800 export_sym_check=
27803 esac
27805 if test x"$enable_plugin" = x"yes"; then
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27808 $as_echo_n "checking for exported symbols... " >&6; }
27809 if test "x$export_sym_check" != x; then
27810 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27811 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27812 if $export_sym_check conftest | grep foobar > /dev/null; then
27813 : # No need to use a flag
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27815 $as_echo "yes" >&6; }
27816 else
27817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27818 $as_echo "yes" >&6; }
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27820 $as_echo_n "checking for -rdynamic... " >&6; }
27821 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27822 if $export_sym_check conftest | grep foobar > /dev/null; then
27823 plugin_rdynamic=yes
27824 pluginlibs="-rdynamic"
27825 else
27826 plugin_rdynamic=no
27827 enable_plugin=no
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27830 $as_echo "$plugin_rdynamic" >&6; }
27832 else
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27834 $as_echo "unable to check" >&6; }
27837 # Check -ldl
27838 saved_LIBS="$LIBS"
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27840 $as_echo_n "checking for library containing dlopen... " >&6; }
27841 if test "${ac_cv_search_dlopen+set}" = set; then :
27842 $as_echo_n "(cached) " >&6
27843 else
27844 ac_func_search_save_LIBS=$LIBS
27845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27846 /* end confdefs.h. */
27848 /* Override any GCC internal prototype to avoid an error.
27849 Use char because int might match the return type of a GCC
27850 builtin and then its argument prototype would still apply. */
27851 #ifdef __cplusplus
27852 extern "C"
27853 #endif
27854 char dlopen ();
27856 main ()
27858 return dlopen ();
27860 return 0;
27862 _ACEOF
27863 for ac_lib in '' dl; do
27864 if test -z "$ac_lib"; then
27865 ac_res="none required"
27866 else
27867 ac_res=-l$ac_lib
27868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27870 if ac_fn_c_try_link "$LINENO"; then :
27871 ac_cv_search_dlopen=$ac_res
27873 rm -f core conftest.err conftest.$ac_objext \
27874 conftest$ac_exeext
27875 if test "${ac_cv_search_dlopen+set}" = set; then :
27876 break
27878 done
27879 if test "${ac_cv_search_dlopen+set}" = set; then :
27881 else
27882 ac_cv_search_dlopen=no
27884 rm conftest.$ac_ext
27885 LIBS=$ac_func_search_save_LIBS
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27888 $as_echo "$ac_cv_search_dlopen" >&6; }
27889 ac_res=$ac_cv_search_dlopen
27890 if test "$ac_res" != no; then :
27891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27895 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27896 pluginlibs="$pluginlibs -ldl"
27898 LIBS="$saved_LIBS"
27900 # Check that we can build shared objects with -fPIC -shared
27901 saved_LDFLAGS="$LDFLAGS"
27902 saved_CFLAGS="$CFLAGS"
27903 case "${host}" in
27904 *-*-darwin*)
27905 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27906 CFLAGS="$CFLAGS -fPIC"
27907 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27910 CFLAGS="$CFLAGS -fPIC"
27911 LDFLAGS="$LDFLAGS -fPIC -shared"
27913 esac
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27915 $as_echo_n "checking for -fPIC -shared... " >&6; }
27916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27917 /* end confdefs.h. */
27918 extern int X;
27920 main ()
27922 return X == 0;
27924 return 0;
27926 _ACEOF
27927 if ac_fn_c_try_link "$LINENO"; then :
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27929 $as_echo "yes" >&6; }; have_pic_shared=yes
27930 else
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27932 $as_echo "no" >&6; }; have_pic_shared=no
27934 rm -f core conftest.err conftest.$ac_objext \
27935 conftest$ac_exeext conftest.$ac_ext
27936 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27937 pluginlibs=
27938 enable_plugin=no
27940 LDFLAGS="$saved_LDFLAGS"
27941 CFLAGS="$saved_CFLAGS"
27943 # If plugin support had been requested but not available, fail.
27944 if test x"$enable_plugin" = x"no" ; then
27945 if test x"$default_plugin" != x"yes"; then
27946 as_fn_error "
27947 Building GCC with plugin support requires a host that supports
27948 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27955 if test x"$enable_plugin" = x"yes"; then
27957 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27962 # Check whether --enable-libquadmath-support was given.
27963 if test "${enable_libquadmath_support+set}" = set; then :
27964 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27965 else
27966 ENABLE_LIBQUADMATH_SUPPORT=yes
27969 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27971 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27976 # Specify what hash style to use by default.
27978 # Check whether --with-linker-hash-style was given.
27979 if test "${with_linker_hash_style+set}" = set; then :
27980 withval=$with_linker_hash_style; case x"$withval" in
27981 xsysv)
27982 LINKER_HASH_STYLE=sysv
27984 xgnu)
27985 LINKER_HASH_STYLE=gnu
27987 xboth)
27988 LINKER_HASH_STYLE=both
27991 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27993 esac
27994 else
27995 LINKER_HASH_STYLE=''
27998 if test x"${LINKER_HASH_STYLE}" != x; then
28000 cat >>confdefs.h <<_ACEOF
28001 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28002 _ACEOF
28006 # Configure the subdirectories
28007 # AC_CONFIG_SUBDIRS($subdirs)
28009 # Create the Makefile
28010 # and configure language subdirectories
28011 ac_config_files="$ac_config_files $all_outputs"
28014 ac_config_commands="$ac_config_commands default"
28016 cat >confcache <<\_ACEOF
28017 # This file is a shell script that caches the results of configure
28018 # tests run on this system so they can be shared between configure
28019 # scripts and configure runs, see configure's option --config-cache.
28020 # It is not useful on other systems. If it contains results you don't
28021 # want to keep, you may remove or edit it.
28023 # config.status only pays attention to the cache file if you give it
28024 # the --recheck option to rerun configure.
28026 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28027 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28028 # following values.
28030 _ACEOF
28032 # The following way of writing the cache mishandles newlines in values,
28033 # but we know of no workaround that is simple, portable, and efficient.
28034 # So, we kill variables containing newlines.
28035 # Ultrix sh set writes to stderr and can't be redirected directly,
28036 # and sets the high bit in the cache file unless we assign to the vars.
28038 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28039 eval ac_val=\$$ac_var
28040 case $ac_val in #(
28041 *${as_nl}*)
28042 case $ac_var in #(
28043 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28045 esac
28046 case $ac_var in #(
28047 _ | IFS | as_nl) ;; #(
28048 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28049 *) { eval $ac_var=; unset $ac_var;} ;;
28050 esac ;;
28051 esac
28052 done
28054 (set) 2>&1 |
28055 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28056 *${as_nl}ac_space=\ *)
28057 # `set' does not quote correctly, so add quotes: double-quote
28058 # substitution turns \\\\ into \\, and sed turns \\ into \.
28059 sed -n \
28060 "s/'/'\\\\''/g;
28061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28062 ;; #(
28064 # `set' quotes correctly as required by POSIX, so do not add quotes.
28065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28067 esac |
28068 sort
28070 sed '
28071 /^ac_cv_env_/b end
28072 t clear
28073 :clear
28074 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28075 t end
28076 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28077 :end' >>confcache
28078 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28079 if test -w "$cache_file"; then
28080 test "x$cache_file" != "x/dev/null" &&
28081 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28082 $as_echo "$as_me: updating cache $cache_file" >&6;}
28083 cat confcache >$cache_file
28084 else
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28086 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28089 rm -f confcache
28091 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28092 # Let make expand exec_prefix.
28093 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28095 DEFS=-DHAVE_CONFIG_H
28097 ac_libobjs=
28098 ac_ltlibobjs=
28099 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28100 # 1. Remove the extension, and $U if already installed.
28101 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28102 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28103 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28104 # will be set to the directory where LIBOBJS objects are built.
28105 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28106 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28107 done
28108 LIBOBJS=$ac_libobjs
28110 LTLIBOBJS=$ac_ltlibobjs
28115 : ${CONFIG_STATUS=./config.status}
28116 ac_write_fail=0
28117 ac_clean_files_save=$ac_clean_files
28118 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28120 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28121 as_write_fail=0
28122 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28123 #! $SHELL
28124 # Generated by $as_me.
28125 # Run this file to recreate the current configuration.
28126 # Compiler output produced by configure, useful for debugging
28127 # configure, is in config.log if it exists.
28129 debug=false
28130 ac_cs_recheck=false
28131 ac_cs_silent=false
28133 SHELL=\${CONFIG_SHELL-$SHELL}
28134 export SHELL
28135 _ASEOF
28136 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28137 ## -------------------- ##
28138 ## M4sh Initialization. ##
28139 ## -------------------- ##
28141 # Be more Bourne compatible
28142 DUALCASE=1; export DUALCASE # for MKS sh
28143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28144 emulate sh
28145 NULLCMD=:
28146 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28147 # is contrary to our usage. Disable this feature.
28148 alias -g '${1+"$@"}'='"$@"'
28149 setopt NO_GLOB_SUBST
28150 else
28151 case `(set -o) 2>/dev/null` in #(
28152 *posix*) :
28153 set -o posix ;; #(
28154 *) :
28156 esac
28160 as_nl='
28162 export as_nl
28163 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28164 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28165 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28166 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28167 # Prefer a ksh shell builtin over an external printf program on Solaris,
28168 # but without wasting forks for bash or zsh.
28169 if test -z "$BASH_VERSION$ZSH_VERSION" \
28170 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28171 as_echo='print -r --'
28172 as_echo_n='print -rn --'
28173 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28174 as_echo='printf %s\n'
28175 as_echo_n='printf %s'
28176 else
28177 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28178 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28179 as_echo_n='/usr/ucb/echo -n'
28180 else
28181 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28182 as_echo_n_body='eval
28183 arg=$1;
28184 case $arg in #(
28185 *"$as_nl"*)
28186 expr "X$arg" : "X\\(.*\\)$as_nl";
28187 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28188 esac;
28189 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28191 export as_echo_n_body
28192 as_echo_n='sh -c $as_echo_n_body as_echo'
28194 export as_echo_body
28195 as_echo='sh -c $as_echo_body as_echo'
28198 # The user is always right.
28199 if test "${PATH_SEPARATOR+set}" != set; then
28200 PATH_SEPARATOR=:
28201 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28202 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28203 PATH_SEPARATOR=';'
28208 # IFS
28209 # We need space, tab and new line, in precisely that order. Quoting is
28210 # there to prevent editors from complaining about space-tab.
28211 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28212 # splitting by setting IFS to empty value.)
28213 IFS=" "" $as_nl"
28215 # Find who we are. Look in the path if we contain no directory separator.
28216 case $0 in #((
28217 *[\\/]* ) as_myself=$0 ;;
28218 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28219 for as_dir in $PATH
28221 IFS=$as_save_IFS
28222 test -z "$as_dir" && as_dir=.
28223 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28224 done
28225 IFS=$as_save_IFS
28228 esac
28229 # We did not find ourselves, most probably we were run as `sh COMMAND'
28230 # in which case we are not to be found in the path.
28231 if test "x$as_myself" = x; then
28232 as_myself=$0
28234 if test ! -f "$as_myself"; then
28235 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28236 exit 1
28239 # Unset variables that we do not need and which cause bugs (e.g. in
28240 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28241 # suppresses any "Segmentation fault" message there. '((' could
28242 # trigger a bug in pdksh 5.2.14.
28243 for as_var in BASH_ENV ENV MAIL MAILPATH
28244 do eval test x\${$as_var+set} = xset \
28245 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28246 done
28247 PS1='$ '
28248 PS2='> '
28249 PS4='+ '
28251 # NLS nuisances.
28252 LC_ALL=C
28253 export LC_ALL
28254 LANGUAGE=C
28255 export LANGUAGE
28257 # CDPATH.
28258 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28261 # as_fn_error ERROR [LINENO LOG_FD]
28262 # ---------------------------------
28263 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28264 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28265 # script with status $?, using 1 if that was 0.
28266 as_fn_error ()
28268 as_status=$?; test $as_status -eq 0 && as_status=1
28269 if test "$3"; then
28270 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28271 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28273 $as_echo "$as_me: error: $1" >&2
28274 as_fn_exit $as_status
28275 } # as_fn_error
28278 # as_fn_set_status STATUS
28279 # -----------------------
28280 # Set $? to STATUS, without forking.
28281 as_fn_set_status ()
28283 return $1
28284 } # as_fn_set_status
28286 # as_fn_exit STATUS
28287 # -----------------
28288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28289 as_fn_exit ()
28291 set +e
28292 as_fn_set_status $1
28293 exit $1
28294 } # as_fn_exit
28296 # as_fn_unset VAR
28297 # ---------------
28298 # Portably unset VAR.
28299 as_fn_unset ()
28301 { eval $1=; unset $1;}
28303 as_unset=as_fn_unset
28304 # as_fn_append VAR VALUE
28305 # ----------------------
28306 # Append the text in VALUE to the end of the definition contained in VAR. Take
28307 # advantage of any shell optimizations that allow amortized linear growth over
28308 # repeated appends, instead of the typical quadratic growth present in naive
28309 # implementations.
28310 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28311 eval 'as_fn_append ()
28313 eval $1+=\$2
28315 else
28316 as_fn_append ()
28318 eval $1=\$$1\$2
28320 fi # as_fn_append
28322 # as_fn_arith ARG...
28323 # ------------------
28324 # Perform arithmetic evaluation on the ARGs, and store the result in the
28325 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28326 # must be portable across $(()) and expr.
28327 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28328 eval 'as_fn_arith ()
28330 as_val=$(( $* ))
28332 else
28333 as_fn_arith ()
28335 as_val=`expr "$@" || test $? -eq 1`
28337 fi # as_fn_arith
28340 if expr a : '\(a\)' >/dev/null 2>&1 &&
28341 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28342 as_expr=expr
28343 else
28344 as_expr=false
28347 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28348 as_basename=basename
28349 else
28350 as_basename=false
28353 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28354 as_dirname=dirname
28355 else
28356 as_dirname=false
28359 as_me=`$as_basename -- "$0" ||
28360 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28361 X"$0" : 'X\(//\)$' \| \
28362 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28363 $as_echo X/"$0" |
28364 sed '/^.*\/\([^/][^/]*\)\/*$/{
28365 s//\1/
28368 /^X\/\(\/\/\)$/{
28369 s//\1/
28372 /^X\/\(\/\).*/{
28373 s//\1/
28376 s/.*/./; q'`
28378 # Avoid depending upon Character Ranges.
28379 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28380 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28381 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28382 as_cr_digits='0123456789'
28383 as_cr_alnum=$as_cr_Letters$as_cr_digits
28385 ECHO_C= ECHO_N= ECHO_T=
28386 case `echo -n x` in #(((((
28387 -n*)
28388 case `echo 'xy\c'` in
28389 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28390 xy) ECHO_C='\c';;
28391 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28392 ECHO_T=' ';;
28393 esac;;
28395 ECHO_N='-n';;
28396 esac
28398 rm -f conf$$ conf$$.exe conf$$.file
28399 if test -d conf$$.dir; then
28400 rm -f conf$$.dir/conf$$.file
28401 else
28402 rm -f conf$$.dir
28403 mkdir conf$$.dir 2>/dev/null
28405 if (echo >conf$$.file) 2>/dev/null; then
28406 if ln -s conf$$.file conf$$ 2>/dev/null; then
28407 as_ln_s='ln -s'
28408 # ... but there are two gotchas:
28409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28411 # In both cases, we have to default to `cp -p'.
28412 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28413 as_ln_s='cp -p'
28414 elif ln conf$$.file conf$$ 2>/dev/null; then
28415 as_ln_s=ln
28416 else
28417 as_ln_s='cp -p'
28419 else
28420 as_ln_s='cp -p'
28422 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28423 rmdir conf$$.dir 2>/dev/null
28426 # as_fn_mkdir_p
28427 # -------------
28428 # Create "$as_dir" as a directory, including parents if necessary.
28429 as_fn_mkdir_p ()
28432 case $as_dir in #(
28433 -*) as_dir=./$as_dir;;
28434 esac
28435 test -d "$as_dir" || eval $as_mkdir_p || {
28436 as_dirs=
28437 while :; do
28438 case $as_dir in #(
28439 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28440 *) as_qdir=$as_dir;;
28441 esac
28442 as_dirs="'$as_qdir' $as_dirs"
28443 as_dir=`$as_dirname -- "$as_dir" ||
28444 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28445 X"$as_dir" : 'X\(//\)[^/]' \| \
28446 X"$as_dir" : 'X\(//\)$' \| \
28447 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28448 $as_echo X"$as_dir" |
28449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28450 s//\1/
28453 /^X\(\/\/\)[^/].*/{
28454 s//\1/
28457 /^X\(\/\/\)$/{
28458 s//\1/
28461 /^X\(\/\).*/{
28462 s//\1/
28465 s/.*/./; q'`
28466 test -d "$as_dir" && break
28467 done
28468 test -z "$as_dirs" || eval "mkdir $as_dirs"
28469 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28472 } # as_fn_mkdir_p
28473 if mkdir -p . 2>/dev/null; then
28474 as_mkdir_p='mkdir -p "$as_dir"'
28475 else
28476 test -d ./-p && rmdir ./-p
28477 as_mkdir_p=false
28480 if test -x / >/dev/null 2>&1; then
28481 as_test_x='test -x'
28482 else
28483 if ls -dL / >/dev/null 2>&1; then
28484 as_ls_L_option=L
28485 else
28486 as_ls_L_option=
28488 as_test_x='
28489 eval sh -c '\''
28490 if test -d "$1"; then
28491 test -d "$1/.";
28492 else
28493 case $1 in #(
28494 -*)set "./$1";;
28495 esac;
28496 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28497 ???[sx]*):;;*)false;;esac;fi
28498 '\'' sh
28501 as_executable_p=$as_test_x
28503 # Sed expression to map a string onto a valid CPP name.
28504 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28506 # Sed expression to map a string onto a valid variable name.
28507 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28510 exec 6>&1
28511 ## ----------------------------------- ##
28512 ## Main body of $CONFIG_STATUS script. ##
28513 ## ----------------------------------- ##
28514 _ASEOF
28515 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28518 # Save the log message, to keep $0 and so on meaningful, and to
28519 # report actual input values of CONFIG_FILES etc. instead of their
28520 # values after options handling.
28521 ac_log="
28522 This file was extended by $as_me, which was
28523 generated by GNU Autoconf 2.64. Invocation command line was
28525 CONFIG_FILES = $CONFIG_FILES
28526 CONFIG_HEADERS = $CONFIG_HEADERS
28527 CONFIG_LINKS = $CONFIG_LINKS
28528 CONFIG_COMMANDS = $CONFIG_COMMANDS
28529 $ $0 $@
28531 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28534 _ACEOF
28536 case $ac_config_files in *"
28537 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28538 esac
28540 case $ac_config_headers in *"
28541 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28542 esac
28545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28546 # Files that config.status was made for.
28547 config_files="$ac_config_files"
28548 config_headers="$ac_config_headers"
28549 config_commands="$ac_config_commands"
28551 _ACEOF
28553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28554 ac_cs_usage="\
28555 \`$as_me' instantiates files and other configuration actions
28556 from templates according to the current configuration. Unless the files
28557 and actions are specified as TAGs, all are instantiated by default.
28559 Usage: $0 [OPTION]... [TAG]...
28561 -h, --help print this help, then exit
28562 -V, --version print version number and configuration settings, then exit
28563 -q, --quiet, --silent
28564 do not print progress messages
28565 -d, --debug don't remove temporary files
28566 --recheck update $as_me by reconfiguring in the same conditions
28567 --file=FILE[:TEMPLATE]
28568 instantiate the configuration file FILE
28569 --header=FILE[:TEMPLATE]
28570 instantiate the configuration header FILE
28572 Configuration files:
28573 $config_files
28575 Configuration headers:
28576 $config_headers
28578 Configuration commands:
28579 $config_commands
28581 Report bugs to the package provider."
28583 _ACEOF
28584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28585 ac_cs_version="\\
28586 config.status
28587 configured by $0, generated by GNU Autoconf 2.64,
28588 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28590 Copyright (C) 2009 Free Software Foundation, Inc.
28591 This config.status script is free software; the Free Software Foundation
28592 gives unlimited permission to copy, distribute and modify it."
28594 ac_pwd='$ac_pwd'
28595 srcdir='$srcdir'
28596 AWK='$AWK'
28597 test -n "\$AWK" || AWK=awk
28598 _ACEOF
28600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28601 # The default lists apply if the user does not specify any file.
28602 ac_need_defaults=:
28603 while test $# != 0
28605 case $1 in
28606 --*=*)
28607 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28608 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28609 ac_shift=:
28612 ac_option=$1
28613 ac_optarg=$2
28614 ac_shift=shift
28616 esac
28618 case $ac_option in
28619 # Handling of the options.
28620 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28621 ac_cs_recheck=: ;;
28622 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28623 $as_echo "$ac_cs_version"; exit ;;
28624 --debug | --debu | --deb | --de | --d | -d )
28625 debug=: ;;
28626 --file | --fil | --fi | --f )
28627 $ac_shift
28628 case $ac_optarg in
28629 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28630 esac
28631 as_fn_append CONFIG_FILES " '$ac_optarg'"
28632 ac_need_defaults=false;;
28633 --header | --heade | --head | --hea )
28634 $ac_shift
28635 case $ac_optarg in
28636 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28637 esac
28638 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28639 ac_need_defaults=false;;
28640 --he | --h)
28641 # Conflict between --help and --header
28642 as_fn_error "ambiguous option: \`$1'
28643 Try \`$0 --help' for more information.";;
28644 --help | --hel | -h )
28645 $as_echo "$ac_cs_usage"; exit ;;
28646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28647 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28648 ac_cs_silent=: ;;
28650 # This is an error.
28651 -*) as_fn_error "unrecognized option: \`$1'
28652 Try \`$0 --help' for more information." ;;
28654 *) as_fn_append ac_config_targets " $1"
28655 ac_need_defaults=false ;;
28657 esac
28658 shift
28659 done
28661 ac_configure_extra_args=
28663 if $ac_cs_silent; then
28664 exec 6>/dev/null
28665 ac_configure_extra_args="$ac_configure_extra_args --silent"
28668 _ACEOF
28669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28670 if \$ac_cs_recheck; then
28671 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28672 shift
28673 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28674 CONFIG_SHELL='$SHELL'
28675 export CONFIG_SHELL
28676 exec "\$@"
28679 _ACEOF
28680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28681 exec 5>>config.log
28683 echo
28684 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28685 ## Running $as_me. ##
28686 _ASBOX
28687 $as_echo "$ac_log"
28688 } >&5
28690 _ACEOF
28691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28693 # INIT-COMMANDS
28695 subdirs='$subdirs'
28697 _ACEOF
28699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28701 # Handling of arguments.
28702 for ac_config_target in $ac_config_targets
28704 case $ac_config_target in
28705 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28706 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28707 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28708 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28709 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28710 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28712 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28713 esac
28714 done
28717 # If the user did not use the arguments to specify the items to instantiate,
28718 # then the envvar interface is used. Set only those that are not.
28719 # We use the long form for the default assignment because of an extremely
28720 # bizarre bug on SunOS 4.1.3.
28721 if $ac_need_defaults; then
28722 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28723 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28724 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28727 # Have a temporary directory for convenience. Make it in the build tree
28728 # simply because there is no reason against having it here, and in addition,
28729 # creating and moving files from /tmp can sometimes cause problems.
28730 # Hook for its removal unless debugging.
28731 # Note that there is a small window in which the directory will not be cleaned:
28732 # after its creation but before its name has been assigned to `$tmp'.
28733 $debug ||
28735 tmp=
28736 trap 'exit_status=$?
28737 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28739 trap 'as_fn_exit 1' 1 2 13 15
28741 # Create a (secure) tmp directory for tmp files.
28744 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28745 test -n "$tmp" && test -d "$tmp"
28746 } ||
28748 tmp=./conf$$-$RANDOM
28749 (umask 077 && mkdir "$tmp")
28750 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28752 # Set up the scripts for CONFIG_FILES section.
28753 # No need to generate them if there are no CONFIG_FILES.
28754 # This happens for instance with `./config.status config.h'.
28755 if test -n "$CONFIG_FILES"; then
28757 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28758 ac_cs_awk_getline=:
28759 ac_cs_awk_pipe_init=
28760 ac_cs_awk_read_file='
28761 while ((getline aline < (F[key])) > 0)
28762 print(aline)
28763 close(F[key])'
28764 ac_cs_awk_pipe_fini=
28765 else
28766 ac_cs_awk_getline=false
28767 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28768 ac_cs_awk_read_file='
28769 print "|#_!!_#|"
28770 print "cat " F[key] " &&"
28771 '$ac_cs_awk_pipe_init
28772 # The final `:' finishes the AND list.
28773 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28775 ac_cr=`echo X | tr X '\015'`
28776 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28777 # But we know of no other shell where ac_cr would be empty at this
28778 # point, so we can use a bashism as a fallback.
28779 if test "x$ac_cr" = x; then
28780 eval ac_cr=\$\'\\r\'
28782 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28783 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28784 ac_cs_awk_cr='\r'
28785 else
28786 ac_cs_awk_cr=$ac_cr
28789 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28790 _ACEOF
28792 # Create commands to substitute file output variables.
28794 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28795 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28796 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28797 echo "_ACAWK" &&
28798 echo "_ACEOF"
28799 } >conf$$files.sh &&
28800 . ./conf$$files.sh ||
28801 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28802 rm -f conf$$files.sh
28805 echo "cat >conf$$subs.awk <<_ACEOF" &&
28806 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28807 echo "_ACEOF"
28808 } >conf$$subs.sh ||
28809 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28810 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28811 ac_delim='%!_!# '
28812 for ac_last_try in false false false false false :; do
28813 . ./conf$$subs.sh ||
28814 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28816 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28817 if test $ac_delim_n = $ac_delim_num; then
28818 break
28819 elif $ac_last_try; then
28820 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28821 else
28822 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28824 done
28825 rm -f conf$$subs.sh
28827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28828 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28829 _ACEOF
28830 sed -n '
28832 s/^/S["/; s/!.*/"]=/
28835 s/^[^!]*!//
28836 :repl
28837 t repl
28838 s/'"$ac_delim"'$//
28839 t delim
28842 s/\(.\{148\}\).*/\1/
28843 t more1
28844 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28847 b repl
28848 :more1
28849 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28852 s/.\{148\}//
28853 t nl
28854 :delim
28856 s/\(.\{148\}\).*/\1/
28857 t more2
28858 s/["\\]/\\&/g; s/^/"/; s/$/"/
28861 :more2
28862 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28865 s/.\{148\}//
28866 t delim
28867 ' <conf$$subs.awk | sed '
28868 /^[^""]/{
28870 s/\n//
28872 ' >>$CONFIG_STATUS || ac_write_fail=1
28873 rm -f conf$$subs.awk
28874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28875 _ACAWK
28876 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28877 for (key in S) S_is_set[key] = 1
28878 FS = "\a"
28879 \$ac_cs_awk_pipe_init
28882 line = $ 0
28883 nfields = split(line, field, "@")
28884 substed = 0
28885 len = length(field[1])
28886 for (i = 2; i < nfields; i++) {
28887 key = field[i]
28888 keylen = length(key)
28889 if (S_is_set[key]) {
28890 value = S[key]
28891 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28892 len += length(value) + length(field[++i])
28893 substed = 1
28894 } else
28895 len += 1 + keylen
28897 if (nfields == 3 && !substed) {
28898 key = field[2]
28899 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28900 \$ac_cs_awk_read_file
28901 next
28904 print line
28906 \$ac_cs_awk_pipe_fini
28907 _ACAWK
28908 _ACEOF
28909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28910 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28911 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28912 else
28914 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28915 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28916 _ACEOF
28918 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28919 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28920 # trailing colons and then remove the whole line if VPATH becomes empty
28921 # (actually we leave an empty line to preserve line numbers).
28922 if test "x$srcdir" = x.; then
28923 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28924 s/:*\$(srcdir):*/:/
28925 s/:*\${srcdir}:*/:/
28926 s/:*@srcdir@:*/:/
28927 s/^\([^=]*=[ ]*\):*/\1/
28928 s/:*$//
28929 s/^[^=]*=[ ]*$//
28933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28934 fi # test -n "$CONFIG_FILES"
28936 # Set up the scripts for CONFIG_HEADERS section.
28937 # No need to generate them if there are no CONFIG_HEADERS.
28938 # This happens for instance with `./config.status Makefile'.
28939 if test -n "$CONFIG_HEADERS"; then
28940 cat >"$tmp/defines.awk" <<\_ACAWK ||
28941 BEGIN {
28942 _ACEOF
28944 # Transform confdefs.h into an awk script `defines.awk', embedded as
28945 # here-document in config.status, that substitutes the proper values into
28946 # config.h.in to produce config.h.
28948 # Create a delimiter string that does not exist in confdefs.h, to ease
28949 # handling of long lines.
28950 ac_delim='%!_!# '
28951 for ac_last_try in false false :; do
28952 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28953 if test -z "$ac_t"; then
28954 break
28955 elif $ac_last_try; then
28956 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28957 else
28958 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28960 done
28962 # For the awk script, D is an array of macro values keyed by name,
28963 # likewise P contains macro parameters if any. Preserve backslash
28964 # newline sequences.
28966 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28967 sed -n '
28968 s/.\{148\}/&'"$ac_delim"'/g
28969 t rset
28970 :rset
28971 s/^[ ]*#[ ]*define[ ][ ]*/ /
28972 t def
28974 :def
28975 s/\\$//
28976 t bsnl
28977 s/["\\]/\\&/g
28978 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28979 D["\1"]=" \3"/p
28980 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28982 :bsnl
28983 s/["\\]/\\&/g
28984 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28985 D["\1"]=" \3\\\\\\n"\\/p
28986 t cont
28987 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28988 t cont
28990 :cont
28992 s/.\{148\}/&'"$ac_delim"'/g
28993 t clear
28994 :clear
28995 s/\\$//
28996 t bsnlc
28997 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28999 :bsnlc
29000 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29001 b cont
29002 ' <confdefs.h | sed '
29003 s/'"$ac_delim"'/"\\\
29004 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29007 for (key in D) D_is_set[key] = 1
29008 FS = "\a"
29010 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29011 line = \$ 0
29012 split(line, arg, " ")
29013 if (arg[1] == "#") {
29014 defundef = arg[2]
29015 mac1 = arg[3]
29016 } else {
29017 defundef = substr(arg[1], 2)
29018 mac1 = arg[2]
29020 split(mac1, mac2, "(") #)
29021 macro = mac2[1]
29022 prefix = substr(line, 1, index(line, defundef) - 1)
29023 if (D_is_set[macro]) {
29024 # Preserve the white space surrounding the "#".
29025 print prefix "define", macro P[macro] D[macro]
29026 next
29027 } else {
29028 # Replace #undef with comments. This is necessary, for example,
29029 # in the case of _POSIX_SOURCE, which is predefined and required
29030 # on some systems where configure will not decide to define it.
29031 if (defundef == "undef") {
29032 print "/*", prefix defundef, macro, "*/"
29033 next
29037 { print }
29038 _ACAWK
29039 _ACEOF
29040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29041 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29042 fi # test -n "$CONFIG_HEADERS"
29045 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29046 shift
29047 for ac_tag
29049 case $ac_tag in
29050 :[FHLC]) ac_mode=$ac_tag; continue;;
29051 esac
29052 case $ac_mode$ac_tag in
29053 :[FHL]*:*);;
29054 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29055 :[FH]-) ac_tag=-:-;;
29056 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29057 esac
29058 ac_save_IFS=$IFS
29059 IFS=:
29060 set x $ac_tag
29061 IFS=$ac_save_IFS
29062 shift
29063 ac_file=$1
29064 shift
29066 case $ac_mode in
29067 :L) ac_source=$1;;
29068 :[FH])
29069 ac_file_inputs=
29070 for ac_f
29072 case $ac_f in
29073 -) ac_f="$tmp/stdin";;
29074 *) # Look for the file first in the build tree, then in the source tree
29075 # (if the path is not absolute). The absolute path cannot be DOS-style,
29076 # because $ac_f cannot contain `:'.
29077 test -f "$ac_f" ||
29078 case $ac_f in
29079 [\\/$]*) false;;
29080 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29081 esac ||
29082 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29083 esac
29084 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29085 as_fn_append ac_file_inputs " '$ac_f'"
29086 done
29088 # Let's still pretend it is `configure' which instantiates (i.e., don't
29089 # use $as_me), people would be surprised to read:
29090 # /* config.h. Generated by config.status. */
29091 configure_input='Generated from '`
29092 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29093 `' by configure.'
29094 if test x"$ac_file" != x-; then
29095 configure_input="$ac_file. $configure_input"
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29097 $as_echo "$as_me: creating $ac_file" >&6;}
29099 # Neutralize special characters interpreted by sed in replacement strings.
29100 case $configure_input in #(
29101 *\&* | *\|* | *\\* )
29102 ac_sed_conf_input=`$as_echo "$configure_input" |
29103 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29104 *) ac_sed_conf_input=$configure_input;;
29105 esac
29107 case $ac_tag in
29108 *:-:* | *:-) cat >"$tmp/stdin" \
29109 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29110 esac
29112 esac
29114 ac_dir=`$as_dirname -- "$ac_file" ||
29115 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29116 X"$ac_file" : 'X\(//\)[^/]' \| \
29117 X"$ac_file" : 'X\(//\)$' \| \
29118 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29119 $as_echo X"$ac_file" |
29120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29121 s//\1/
29124 /^X\(\/\/\)[^/].*/{
29125 s//\1/
29128 /^X\(\/\/\)$/{
29129 s//\1/
29132 /^X\(\/\).*/{
29133 s//\1/
29136 s/.*/./; q'`
29137 as_dir="$ac_dir"; as_fn_mkdir_p
29138 ac_builddir=.
29140 case "$ac_dir" in
29141 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29143 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29144 # A ".." for each directory in $ac_dir_suffix.
29145 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29146 case $ac_top_builddir_sub in
29147 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29148 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29149 esac ;;
29150 esac
29151 ac_abs_top_builddir=$ac_pwd
29152 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29153 # for backward compatibility:
29154 ac_top_builddir=$ac_top_build_prefix
29156 case $srcdir in
29157 .) # We are building in place.
29158 ac_srcdir=.
29159 ac_top_srcdir=$ac_top_builddir_sub
29160 ac_abs_top_srcdir=$ac_pwd ;;
29161 [\\/]* | ?:[\\/]* ) # Absolute name.
29162 ac_srcdir=$srcdir$ac_dir_suffix;
29163 ac_top_srcdir=$srcdir
29164 ac_abs_top_srcdir=$srcdir ;;
29165 *) # Relative name.
29166 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29167 ac_top_srcdir=$ac_top_build_prefix$srcdir
29168 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29169 esac
29170 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29173 case $ac_mode in
29176 # CONFIG_FILE
29179 _ACEOF
29181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29182 # If the template does not know about datarootdir, expand it.
29183 # FIXME: This hack should be removed a few years after 2.60.
29184 ac_datarootdir_hack=; ac_datarootdir_seen=
29185 ac_sed_dataroot='
29186 /datarootdir/ {
29190 /@datadir@/p
29191 /@docdir@/p
29192 /@infodir@/p
29193 /@localedir@/p
29194 /@mandir@/p'
29195 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29196 *datarootdir*) ac_datarootdir_seen=yes;;
29197 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29199 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29200 _ACEOF
29201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29202 ac_datarootdir_hack='
29203 s&@datadir@&$datadir&g
29204 s&@docdir@&$docdir&g
29205 s&@infodir@&$infodir&g
29206 s&@localedir@&$localedir&g
29207 s&@mandir@&$mandir&g
29208 s&\\\${datarootdir}&$datarootdir&g' ;;
29209 esac
29210 _ACEOF
29212 # Neutralize VPATH when `$srcdir' = `.'.
29213 # Shell code in configure.ac might set extrasub.
29214 # FIXME: do we really want to maintain this feature?
29215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29216 ac_sed_extra="$ac_vpsub
29217 $extrasub
29218 _ACEOF
29219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29222 s|@configure_input@|$ac_sed_conf_input|;t t
29223 s&@top_builddir@&$ac_top_builddir_sub&;t t
29224 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29225 s&@srcdir@&$ac_srcdir&;t t
29226 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29227 s&@top_srcdir@&$ac_top_srcdir&;t t
29228 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29229 s&@builddir@&$ac_builddir&;t t
29230 s&@abs_builddir@&$ac_abs_builddir&;t t
29231 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29232 $ac_datarootdir_hack
29234 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29235 if $ac_cs_awk_getline; then
29236 $AWK -f "$tmp/subs.awk"
29237 else
29238 $AWK -f "$tmp/subs.awk" | $SHELL
29239 fi >$tmp/out \
29240 || as_fn_error "could not create $ac_file" "$LINENO" 5
29242 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29243 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29244 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29246 which seems to be undefined. Please make sure it is defined." >&5
29247 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29248 which seems to be undefined. Please make sure it is defined." >&2;}
29250 rm -f "$tmp/stdin"
29251 case $ac_file in
29252 -) cat "$tmp/out" && rm -f "$tmp/out";;
29253 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29254 esac \
29255 || as_fn_error "could not create $ac_file" "$LINENO" 5
29259 # CONFIG_HEADER
29261 if test x"$ac_file" != x-; then
29263 $as_echo "/* $configure_input */" \
29264 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29265 } >"$tmp/config.h" \
29266 || as_fn_error "could not create $ac_file" "$LINENO" 5
29267 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29269 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29270 else
29271 rm -f "$ac_file"
29272 mv "$tmp/config.h" "$ac_file" \
29273 || as_fn_error "could not create $ac_file" "$LINENO" 5
29275 else
29276 $as_echo "/* $configure_input */" \
29277 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29278 || as_fn_error "could not create -" "$LINENO" 5
29282 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29283 $as_echo "$as_me: executing $ac_file commands" >&6;}
29285 esac
29288 case $ac_file$ac_mode in
29289 "as":F) chmod +x as ;;
29290 "collect-ld":F) chmod +x collect-ld ;;
29291 "nm":F) chmod +x nm ;;
29292 "default":C)
29293 case ${CONFIG_HEADERS} in
29294 *auto-host.h:config.in*)
29295 echo > cstamp-h ;;
29296 esac
29297 # Make sure all the subdirs exist.
29298 for d in $subdirs doc build common c-family
29300 test -d $d || mkdir $d
29301 done
29304 esac
29305 done # for ac_tag
29308 as_fn_exit 0
29309 _ACEOF
29310 ac_clean_files=$ac_clean_files_save
29312 test $ac_write_fail = 0 ||
29313 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29316 # configure is writing to config.log, and then calls config.status.
29317 # config.status does its own redirection, appending to config.log.
29318 # Unfortunately, on DOS this fails, as config.log is still kept open
29319 # by configure, so config.status won't be able to write to it; its
29320 # output is simply discarded. So we exec the FD to /dev/null,
29321 # effectively closing config.log, so it can be properly (re)opened and
29322 # appended to by config.status. When coming back to configure, we
29323 # need to make the FD available again.
29324 if test "$no_create" != yes; then
29325 ac_cs_success=:
29326 ac_config_status_args=
29327 test "$silent" = yes &&
29328 ac_config_status_args="$ac_config_status_args --quiet"
29329 exec 5>/dev/null
29330 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29331 exec 5>>config.log
29332 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29333 # would make configure fail if this is the last instruction.
29334 $ac_cs_success || as_fn_exit $?
29336 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29338 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}