Fix EH handling issue in last change:
[official-gcc.git] / gcc / configure
blobdef377fea0d3106d3f174b70ada518878df4b005
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
677 libgcc_visibility
678 gcc_cv_readelf
679 gcc_cv_objdump
680 ORIGINAL_NM_FOR_TARGET
681 gcc_cv_nm
682 ORIGINAL_LD_FOR_TARGET
683 ORIGINAL_PLUGIN_LD_FOR_TARGET
684 gcc_cv_ld
685 ORIGINAL_AS_FOR_TARGET
686 gcc_cv_as
687 enable_fast_install
688 objdir
689 OTOOL64
690 OTOOL
691 LIPO
692 NMEDIT
693 DSYMUTIL
694 STRIP
695 OBJDUMP
696 ac_ct_DUMPBIN
697 DUMPBIN
699 FGREP
701 LIBTOOL
702 collect2
703 STMP_FIXINC
704 BUILD_LDFLAGS
705 BUILD_CXXFLAGS
706 BUILD_CFLAGS
707 CXX_FOR_BUILD
708 CC_FOR_BUILD
709 inhibit_libc
710 SYSTEM_HEADER_DIR
712 CROSS
713 CATOBJEXT
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATALOGS
718 POSUB
719 GMSGFMT
720 XGETTEXT
721 INCINTL
722 LIBINTL_DEP
723 LIBINTL
724 USE_NLS
725 extra_opt_files
726 extra_modes_file
727 NATIVE_SYSTEM_HEADER_DIR
728 objext
729 manext
730 LIBICONV_DEP
731 LTLIBICONV
732 LIBICONV
733 LDEXP_LIB
734 EXTRA_GCC_LIBS
735 GNAT_LIBEXC
736 COLLECT2_LIBS
737 CXXCPP
740 BISON
741 FLEX
742 GENERATED_MANPAGES
743 BUILD_INFO
744 MAKEINFO
745 have_mktemp_command
746 make_compare_target
747 INSTALL_DATA
748 INSTALL_PROGRAM
749 INSTALL
750 ranlib_flags
751 RANLIB
753 LN_S
755 SET_MAKE
756 REPORT_BUGS_TEXI
757 REPORT_BUGS_TO
758 PKGVERSION
759 CONFIGURE_SPECS
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
762 TARGET_SYSTEM_ROOT
763 SYSROOT_CFLAGS_FOR_TARGET
764 enable_shared
765 enable_fixed_point
766 enable_decimal_float
767 with_float
768 with_cpu
769 enable_multiarch
770 enable_multilib
771 coverage_flags
772 valgrind_command
773 valgrind_path_defines
774 valgrind_path
775 TREECHECKING
776 TREEBROWSER
777 nocommon_flag
778 noexception_flags
779 warn_cxxflags
780 warn_cflags
781 c_strict_warn
782 strict_warn
783 c_loose_warn
784 loose_warn
785 EGREP
786 GREP
788 PICFLAG_FOR_TARGET
789 OUTPUT_OPTION
790 NO_MINUS_C_MINUS_O
791 GNATMAKE
792 GNATBIND
793 ac_ct_CXX
794 CXXFLAGS
796 OBJEXT
797 EXEEXT
798 ac_ct_CC
799 CPPFLAGS
800 LDFLAGS
801 CFLAGS
803 GENINSRC
804 target_subdir
805 host_subdir
806 build_subdir
807 build_libsubdir
808 target_noncanonical
809 target_os
810 target_vendor
811 target_cpu
812 target
813 host_os
814 host_vendor
815 host_cpu
816 host
817 build_os
818 build_vendor
819 build_cpu
820 build
821 target_alias
822 host_alias
823 build_alias
824 LIBS
825 ECHO_T
826 ECHO_N
827 ECHO_C
828 DEFS
829 mandir
830 localedir
831 libdir
832 psdir
833 pdfdir
834 dvidir
835 htmldir
836 infodir
837 docdir
838 oldincludedir
839 includedir
840 localstatedir
841 sharedstatedir
842 sysconfdir
843 datadir
844 datarootdir
845 libexecdir
846 sbindir
847 bindir
848 program_transform_name
849 prefix
850 exec_prefix
851 PACKAGE_URL
852 PACKAGE_BUGREPORT
853 PACKAGE_STRING
854 PACKAGE_VERSION
855 PACKAGE_TARNAME
856 PACKAGE_NAME
857 PATH_SEPARATOR
858 SHELL'
859 ac_subst_files='option_includes
860 language_hooks'
861 ac_user_opts='
862 enable_option_checking
863 with_build_libsubdir
864 with_local_prefix
865 with_gxx_include_dir
866 with_cpp_install_dir
867 enable_generated_files_in_srcdir
868 with_gnu_ld
869 with_ld
870 with_demangler_in_ld
871 with_gnu_as
872 with_as
873 enable_largefile
874 enable_werror_always
875 enable_checking
876 enable_coverage
877 enable_gather_detailed_mem_stats
878 with_stabs
879 enable_multilib
880 enable_multiarch
881 enable___cxa_atexit
882 enable_decimal_float
883 enable_fixed_point
884 enable_threads
885 enable_tls
886 enable_objc_gc
887 with_dwarf2
888 enable_shared
889 with_native_system_header_dir
890 with_build_sysroot
891 with_sysroot
892 with_specs
893 with_pkgversion
894 with_bugurl
895 enable_languages
896 with_multilib_list
897 enable_rpath
898 with_libiconv_prefix
899 enable_sjlj_exceptions
900 enable_secureplt
901 enable_leading_mingw64_underscores
902 enable_cld
903 enable_frame_pointer
904 enable_win32_registry
905 enable_static
906 with_pic
907 enable_fast_install
908 enable_libtool_lock
909 with_plugin_ld
910 enable_gnu_indirect_function
911 enable_initfini_array
912 enable_comdat
913 enable_gnu_unique_object
914 enable_linker_build_id
915 with_long_double_128
916 with_gc
917 with_system_zlib
918 enable_maintainer_mode
919 enable_version_specific_runtime_libs
920 enable_plugin
921 enable_libquadmath_support
922 with_linker_hash_style
924 ac_precious_vars='build_alias
925 host_alias
926 target_alias
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
933 CXXFLAGS
936 CXXCPP
937 GMPLIBS
938 GMPINC
939 ISLLIBS
940 ISLINC
941 CLOOGLIBS
942 CLOOGINC'
945 # Initialize some variables set by options.
946 ac_init_help=
947 ac_init_version=false
948 ac_unrecognized_opts=
949 ac_unrecognized_sep=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
952 cache_file=/dev/null
953 exec_prefix=NONE
954 no_create=
955 no_recursion=
956 prefix=NONE
957 program_prefix=NONE
958 program_suffix=NONE
959 program_transform_name=s,x,x,
960 silent=
961 site=
962 srcdir=
963 verbose=
964 x_includes=NONE
965 x_libraries=NONE
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir='${exec_prefix}/bin'
974 sbindir='${exec_prefix}/sbin'
975 libexecdir='${exec_prefix}/libexec'
976 datarootdir='${prefix}/share'
977 datadir='${datarootdir}'
978 sysconfdir='${prefix}/etc'
979 sharedstatedir='${prefix}/com'
980 localstatedir='${prefix}/var'
981 includedir='${prefix}/include'
982 oldincludedir='/usr/include'
983 docdir='${datarootdir}/doc/${PACKAGE}'
984 infodir='${datarootdir}/info'
985 htmldir='${docdir}'
986 dvidir='${docdir}'
987 pdfdir='${docdir}'
988 psdir='${docdir}'
989 libdir='${exec_prefix}/lib'
990 localedir='${datarootdir}/locale'
991 mandir='${datarootdir}/man'
993 ac_prev=
994 ac_dashdash=
995 for ac_option
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1000 ac_prev=
1001 continue
1004 case $ac_option in
1005 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 *) ac_optarg=yes ;;
1007 esac
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1011 case $ac_dashdash$ac_option in
1013 ac_dashdash=yes ;;
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 ac_prev=bindir ;;
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1035 -datadir | --datadir | --datadi | --datad)
1036 ac_prev=datadir ;;
1037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038 datadir=$ac_optarg ;;
1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1047 -disable-* | --disable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error "invalid feature name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval enable_$ac_useropt=no ;;
1063 -docdir | --docdir | --docdi | --doc | --do)
1064 ac_prev=docdir ;;
1065 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1066 docdir=$ac_optarg ;;
1068 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069 ac_prev=dvidir ;;
1070 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1071 dvidir=$ac_optarg ;;
1073 -enable-* | --enable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=\$ac_optarg ;;
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 ac_prev=sbindir ;;
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 | --sbi=* | --sb=*)
1236 sbindir=$ac_optarg ;;
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1241 | --sha | --sh)
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 | --sha=* | --sh=*)
1247 sharedstatedir=$ac_optarg ;;
1249 -site | --site | --sit)
1250 ac_prev=site ;;
1251 -site=* | --site=* | --sit=*)
1252 site=$ac_optarg ;;
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 ac_prev=srcdir ;;
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 verbose=yes ;;
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1277 -with-* | --with-*)
1278 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 as_fn_error "invalid package name: $ac_useropt"
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1286 "with_$ac_useropt"
1287 "*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval with_$ac_useropt=\$ac_optarg ;;
1293 -without-* | --without-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error "invalid package name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1302 "with_$ac_useropt"
1303 "*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval with_$ac_useropt=no ;;
1309 --x)
1310 # Obsolete; use --with-x.
1311 with_x=yes ;;
1313 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314 | --x-incl | --x-inc | --x-in | --x-i)
1315 ac_prev=x_includes ;;
1316 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318 x_includes=$ac_optarg ;;
1320 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322 ac_prev=x_libraries ;;
1323 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325 x_libraries=$ac_optarg ;;
1327 -*) as_fn_error "unrecognized option: \`$ac_option'
1328 Try \`$0 --help' for more information."
1331 *=*)
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 case $ac_envvar in #(
1335 '' | [0-9]* | *[!_$as_cr_alnum]* )
1336 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1337 esac
1338 eval $ac_envvar=\$ac_optarg
1339 export $ac_envvar ;;
1342 # FIXME: should be removed in autoconf 3.0.
1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 esac
1350 done
1352 if test -n "$ac_prev"; then
1353 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354 as_fn_error "missing argument to $ac_option"
1357 if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1359 no) ;;
1360 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1361 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1362 esac
1365 # Check all directory arguments for consistency.
1366 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1371 eval ac_val=\$$ac_var
1372 # Remove trailing slashes.
1373 case $ac_val in
1374 */ )
1375 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376 eval $ac_var=\$ac_val;;
1377 esac
1378 # Be sure to have absolute directory names.
1379 case $ac_val in
1380 [\\/$]* | ?:[\\/]* ) continue;;
1381 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1382 esac
1383 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1384 done
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1389 build=$build_alias
1390 host=$host_alias
1391 target=$target_alias
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x; then
1395 if test "x$build_alias" = x; then
1396 cross_compiling=maybe
1397 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1398 If a cross compiler is detected then cross compile mode will be used." >&2
1399 elif test "x$build_alias" != "x$host_alias"; then
1400 cross_compiling=yes
1404 ac_tool_prefix=
1405 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407 test "$silent" = yes && exec 6>/dev/null
1410 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di=`ls -di .` &&
1412 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1413 as_fn_error "working directory cannot be determined"
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 as_fn_error "pwd does not report name of working directory"
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1436 /^X\(\/\/\)$/{
1437 s//\1/
1440 /^X\(\/\).*/{
1441 s//\1/
1444 s/.*/./; q'`
1445 srcdir=$ac_confdir
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 srcdir=..
1449 else
1450 ac_srcdir_defaulted=no
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 ac_abs_confdir=`(
1458 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1459 pwd)`
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 srcdir=.
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1467 case $srcdir in
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 esac
1470 for ac_var in $ac_precious_vars; do
1471 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_env_${ac_var}_value=\$${ac_var}
1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 done
1478 # Report the --help message.
1480 if test "$ac_init_help" = "long"; then
1481 # Omit some internal or obsolete options to make the list less imposing.
1482 # This message is too long to be a string in the A/UX 3.1 sh.
1483 cat <<_ACEOF
1484 \`configure' configures this package to adapt to many kinds of systems.
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE. See below for descriptions of some of the useful variables.
1491 Defaults for the options are specified in brackets.
1493 Configuration:
1494 -h, --help display this help and exit
1495 --help=short display options specific to this package
1496 --help=recursive display the short help of all the included packages
1497 -V, --version display version information and exit
1498 -q, --quiet, --silent do not print \`checking...' messages
1499 --cache-file=FILE cache test results in FILE [disabled]
1500 -C, --config-cache alias for \`--cache-file=config.cache'
1501 -n, --no-create do not create output files
1502 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1504 Installation directories:
1505 --prefix=PREFIX install architecture-independent files in PREFIX
1506 [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 [PREFIX]
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1515 For better control, use the options below.
1517 Fine tuning of the installation directories:
1518 --bindir=DIR user executables [EPREFIX/bin]
1519 --sbindir=DIR system admin executables [EPREFIX/sbin]
1520 --libexecdir=DIR program executables [EPREFIX/libexec]
1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
1537 _ACEOF
1539 cat <<\_ACEOF
1541 Program names:
1542 --program-prefix=PREFIX prepend PREFIX to installed program names
1543 --program-suffix=SUFFIX append SUFFIX to installed program names
1544 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1546 System types:
1547 --build=BUILD configure for building on BUILD [guessed]
1548 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1549 --target=TARGET configure for building compilers for TARGET [HOST]
1550 _ACEOF
1553 if test -n "$ac_init_help"; then
1555 cat <<\_ACEOF
1557 Optional Features:
1558 --disable-option-checking ignore unrecognized --enable/--with options
1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1561 --enable-generated-files-in-srcdir
1562 put copies of generated files in source dir intended
1563 for creating source tarballs for users without
1564 texinfo bison or flex
1565 --disable-largefile omit support for large files
1566 --enable-werror-always enable -Werror despite compiler version
1567 --enable-checking[=LIST]
1568 enable expensive run-time checks. With LIST, enable
1569 only specific categories of checks. Categories are:
1570 yes,no,all,none,release. Flags are:
1571 assert,df,fold,gc,gcac,gimple,misc,
1572 rtlflag,rtl,runtime,tree,valgrind,types
1573 --enable-coverage[=LEVEL]
1574 enable compiler's code coverage collection. Use to
1575 measure compiler performance and locate unused parts
1576 of the compiler. With LEVEL, specify optimization.
1577 Values are opt, noopt, default is noopt
1578 --enable-gather-detailed-mem-stats
1579 enable detailed memory allocation stats gathering
1580 --enable-multilib enable library support for multiple ABIs
1581 --enable-multiarch enable support for multiarch paths
1582 --enable-__cxa_atexit enable __cxa_atexit for C++
1583 --enable-decimal-float={no,yes,bid,dpd}
1584 enable decimal float extension to C. Selecting 'bid'
1585 or 'dpd' choses which decimal floating point format
1586 to use
1587 --enable-fixed-point enable fixed-point arithmetic extension to C
1588 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1589 package
1590 --enable-tls enable or disable generation of tls code overriding
1591 the assembler check for tls support
1592 --enable-objc-gc enable the use of Boehm's garbage collector with the
1593 GNU Objective-C runtime
1594 --disable-shared don't provide a shared libgcc
1595 --enable-languages=LIST specify which front-ends to build
1596 --disable-rpath do not hardcode runtime library paths
1597 --enable-sjlj-exceptions
1598 arrange to use setjmp/longjmp exception handling
1599 --enable-secureplt enable -msecure-plt by default for PowerPC
1600 --enable-leading-mingw64-underscores
1601 enable leading underscores on 64 bit mingw targets
1602 --enable-cld enable -mcld by default for 32bit x86
1603 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1605 --disable-win32-registry
1606 disable lookup of installation paths in the Registry
1607 on Windows hosts
1608 --enable-win32-registry enable registry lookup (default)
1609 --enable-win32-registry=KEY
1610 use KEY instead of GCC version as the last portion
1611 of the registry key
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-static[=PKGS] build static libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-libtool-lock avoid locking (might break parallel builds)
1617 --enable-gnu-indirect-function
1618 enable the use of the @gnu_indirect_function to
1619 glibc systems
1620 --enable-initfini-array use .init_array/.fini_array sections
1621 --enable-comdat enable COMDAT group support
1622 --enable-gnu-unique-object
1623 enable the use of the @gnu_unique_object ELF
1624 extension on glibc systems
1625 --enable-linker-build-id
1626 compiler will always pass --build-id to linker
1627 --enable-maintainer-mode
1628 enable make rules and dependencies not useful (and
1629 sometimes confusing) to the casual installer
1630 --enable-version-specific-runtime-libs
1631 specify that runtime libraries should be installed
1632 in a compiler-specific directory
1633 --enable-plugin enable plugin support
1634 --disable-libquadmath-support
1635 disable libquadmath support for Fortran
1637 Optional Packages:
1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1640 --with-build-libsubdir=DIR Directory where to find libraries for build system
1641 --with-local-prefix=DIR specifies directory to put local include
1642 --with-gxx-include-dir=DIR
1643 specifies directory to put g++ header files
1644 --with-cpp-install-dir=DIR
1645 install the user visible C preprocessor in DIR
1646 (relative to PREFIX) as well as PREFIX/bin
1647 --with-gnu-ld arrange to work with GNU ld
1648 --with-ld arrange to use the specified ld (full pathname)
1649 --with-demangler-in-ld try to use demangler in GNU ld
1650 --with-gnu-as arrange to work with GNU as
1651 --with-as arrange to use the specified as (full pathname)
1652 --with-stabs arrange to use stabs instead of host debug format
1653 --with-dwarf2 force the default debug format to be DWARF 2
1654 --with-native-system-header-dir=dir
1655 use dir as the directory to look for standard
1656 system header files in. Defaults to /usr/include.
1657 --with-build-sysroot=sysroot
1658 use sysroot as the system root during the build
1659 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1660 --with-specs=SPECS add SPECS to driver command-line processing
1661 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1662 --with-bugurl=URL Direct users to URL to report a bug
1663 --with-multilib-list select multilibs (SH and x86-64 only)
1664 --with-gnu-ld assume the C compiler uses GNU ld default=no
1665 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1666 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1667 --with-pic try to use only PIC/non-PIC objects [default=use
1668 both]
1669 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1670 --with-plugin-ld=[ARG] specify the plugin linker
1671 --with-long-double-128 use 128-bit long double by default
1672 --with-gc={page,zone} this option is not supported anymore. It used to
1673 choose the garbage collection mechanism to use with
1674 the compiler
1675 --with-system-zlib use installed libz
1676 --with-linker-hash-style={sysv,gnu,both}
1677 specify the linker hash style
1679 Some influential environment variables:
1680 CC C compiler command
1681 CFLAGS C compiler flags
1682 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1683 nonstandard directory <lib dir>
1684 LIBS libraries to pass to the linker, e.g. -l<library>
1685 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1686 you have headers in a nonstandard directory <include dir>
1687 CXX C++ compiler command
1688 CXXFLAGS C++ compiler flags
1689 CPP C preprocessor
1690 CXXCPP C++ preprocessor
1691 GMPLIBS How to link GMP
1692 GMPINC How to find GMP include files
1693 ISLLIBS How to link ISL
1694 ISLINC How to find ISL include files
1695 CLOOGLIBS How to link CLOOG
1696 CLOOGINC How to find CLOOG include files
1698 Use these variables to override the choices made by `configure' or to help
1699 it to find libraries and programs with nonstandard names/locations.
1701 Report bugs to the package provider.
1702 _ACEOF
1703 ac_status=$?
1706 if test "$ac_init_help" = "recursive"; then
1707 # If there are subdirs, report their specific --help.
1708 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1709 test -d "$ac_dir" ||
1710 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711 continue
1712 ac_builddir=.
1714 case "$ac_dir" in
1715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1718 # A ".." for each directory in $ac_dir_suffix.
1719 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1720 case $ac_top_builddir_sub in
1721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1723 esac ;;
1724 esac
1725 ac_abs_top_builddir=$ac_pwd
1726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1727 # for backward compatibility:
1728 ac_top_builddir=$ac_top_build_prefix
1730 case $srcdir in
1731 .) # We are building in place.
1732 ac_srcdir=.
1733 ac_top_srcdir=$ac_top_builddir_sub
1734 ac_abs_top_srcdir=$ac_pwd ;;
1735 [\\/]* | ?:[\\/]* ) # Absolute name.
1736 ac_srcdir=$srcdir$ac_dir_suffix;
1737 ac_top_srcdir=$srcdir
1738 ac_abs_top_srcdir=$srcdir ;;
1739 *) # Relative name.
1740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1741 ac_top_srcdir=$ac_top_build_prefix$srcdir
1742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1743 esac
1744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1746 cd "$ac_dir" || { ac_status=$?; continue; }
1747 # Check for guested configure.
1748 if test -f "$ac_srcdir/configure.gnu"; then
1749 echo &&
1750 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1751 elif test -f "$ac_srcdir/configure"; then
1752 echo &&
1753 $SHELL "$ac_srcdir/configure" --help=recursive
1754 else
1755 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1756 fi || ac_status=$?
1757 cd "$ac_pwd" || { ac_status=$?; break; }
1758 done
1761 test -n "$ac_init_help" && exit $ac_status
1762 if $ac_init_version; then
1763 cat <<\_ACEOF
1764 configure
1765 generated by GNU Autoconf 2.64
1767 Copyright (C) 2009 Free Software Foundation, Inc.
1768 This configure script is free software; the Free Software Foundation
1769 gives unlimited permission to copy, distribute and modify it.
1770 _ACEOF
1771 exit
1774 ## ------------------------ ##
1775 ## Autoconf initialization. ##
1776 ## ------------------------ ##
1778 # ac_fn_c_try_compile LINENO
1779 # --------------------------
1780 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_compile ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext
1785 if { { ac_try="$ac_compile"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_compile") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest.$ac_objext; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1809 ac_retval=1
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 return $ac_retval
1814 } # ac_fn_c_try_compile
1816 # ac_fn_cxx_try_compile LINENO
1817 # ----------------------------
1818 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_cxx_try_compile ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext
1823 if { { ac_try="$ac_compile"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_compile") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_cxx_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest.$ac_objext; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1847 ac_retval=1
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 return $ac_retval
1852 } # ac_fn_cxx_try_compile
1854 # ac_fn_c_try_cpp LINENO
1855 # ----------------------
1856 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_c_try_cpp ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 if { { ac_try="$ac_cpp conftest.$ac_ext"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } >/dev/null && {
1876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1877 test ! -s conftest.err
1878 }; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 return $ac_retval
1889 } # ac_fn_c_try_cpp
1891 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1894 # the include files in INCLUDES and setting the cache variable VAR
1895 # accordingly.
1896 ac_fn_c_check_header_mongrel ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 $as_echo_n "(cached) " >&6
1905 eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 else
1909 # Is the header compilable?
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1911 $as_echo_n "checking $2 usability... " >&6; }
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 ac_header_compiler=yes
1919 else
1920 ac_header_compiler=no
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1924 $as_echo "$ac_header_compiler" >&6; }
1926 # Is the header present?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1928 $as_echo_n "checking $2 presence... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1931 #include <$2>
1932 _ACEOF
1933 if ac_fn_c_try_cpp "$LINENO"; then :
1934 ac_header_preproc=yes
1935 else
1936 ac_header_preproc=no
1938 rm -f conftest.err conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1940 $as_echo "$ac_header_preproc" >&6; }
1942 # So? What about this header?
1943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1944 yes:no: )
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1946 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950 no:yes:* )
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1952 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1954 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1956 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1958 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1962 esac
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1966 $as_echo_n "(cached) " >&6
1967 else
1968 eval "$3=\$ac_header_compiler"
1970 eval ac_res=\$$3
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 } # ac_fn_c_check_header_mongrel
1978 # ac_fn_c_try_run LINENO
1979 # ----------------------
1980 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1981 # that executables *can* be run.
1982 ac_fn_c_try_run ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if { { ac_try="$ac_link"
1986 case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_link") 2>&5
1993 ac_status=$?
1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1996 { { case "(($ac_try" in
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_try") 2>&5
2003 ac_status=$?
2004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005 test $ac_status = 0; }; }; then :
2006 ac_retval=0
2007 else
2008 $as_echo "$as_me: program exited with status $ac_status" >&5
2009 $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2012 ac_retval=$ac_status
2014 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2015 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016 return $ac_retval
2018 } # ac_fn_c_try_run
2020 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2021 # -------------------------------------------------------
2022 # Tests whether HEADER exists and can be compiled using the include files in
2023 # INCLUDES, setting the cache variable VAR accordingly.
2024 ac_fn_c_check_header_compile ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2030 $as_echo_n "(cached) " >&6
2031 else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2035 #include <$2>
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038 eval "$3=yes"
2039 else
2040 eval "$3=no"
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 eval ac_res=\$$3
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049 } # ac_fn_c_check_header_compile
2051 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2052 # --------------------------------------------
2053 # Tries to find the compile-time value of EXPR in a program that includes
2054 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2055 # computed
2056 ac_fn_c_compute_int ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 if test "$cross_compiling" = yes; then
2060 # Depending upon the size, compute the lo and hi bounds.
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2065 main ()
2067 static int test_array [1 - 2 * !(($2) >= 0)];
2068 test_array [0] = 0
2071 return 0;
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_lo=0 ac_mid=0
2076 while :; do
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2081 main ()
2083 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2084 test_array [0] = 0
2087 return 0;
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091 ac_hi=$ac_mid; break
2092 else
2093 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2094 if test $ac_lo -le $ac_mid; then
2095 ac_lo= ac_hi=
2096 break
2098 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 done
2102 else
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2107 main ()
2109 static int test_array [1 - 2 * !(($2) < 0)];
2110 test_array [0] = 0
2113 return 0;
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_hi=-1 ac_mid=-1
2118 while :; do
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2123 main ()
2125 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2126 test_array [0] = 0
2129 return 0;
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_lo=$ac_mid; break
2134 else
2135 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2136 if test $ac_mid -le $ac_hi; then
2137 ac_lo= ac_hi=
2138 break
2140 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 done
2144 else
2145 ac_lo= ac_hi=
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 # Binary search between lo and hi bounds.
2151 while test "x$ac_lo" != "x$ac_hi"; do
2152 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2157 main ()
2159 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2160 test_array [0] = 0
2163 return 0;
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167 ac_hi=$ac_mid
2168 else
2169 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 done
2173 case $ac_lo in #((
2174 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2175 '') ac_retval=1 ;;
2176 esac
2177 else
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2181 static long int longval () { return $2; }
2182 static unsigned long int ulongval () { return $2; }
2183 #include <stdio.h>
2184 #include <stdlib.h>
2186 main ()
2189 FILE *f = fopen ("conftest.val", "w");
2190 if (! f)
2191 return 1;
2192 if (($2) < 0)
2194 long int i = longval ();
2195 if (i != ($2))
2196 return 1;
2197 fprintf (f, "%ld", i);
2199 else
2201 unsigned long int i = ulongval ();
2202 if (i != ($2))
2203 return 1;
2204 fprintf (f, "%lu", i);
2206 /* Do not output a trailing newline, as this causes \r\n confusion
2207 on some platforms. */
2208 return ferror (f) || fclose (f) != 0;
2211 return 0;
2213 _ACEOF
2214 if ac_fn_c_try_run "$LINENO"; then :
2215 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2216 else
2217 ac_retval=1
2219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2220 conftest.$ac_objext conftest.beam conftest.$ac_ext
2221 rm -f conftest.val
2224 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2225 return $ac_retval
2227 } # ac_fn_c_compute_int
2229 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2230 # -------------------------------------------
2231 # Tests whether TYPE exists after having included INCLUDES, setting cache
2232 # variable VAR accordingly.
2233 ac_fn_c_check_type ()
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237 $as_echo_n "checking for $2... " >&6; }
2238 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2239 $as_echo_n "(cached) " >&6
2240 else
2241 eval "$3=no"
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2246 main ()
2248 if (sizeof ($2))
2249 return 0;
2251 return 0;
2253 _ACEOF
2254 if ac_fn_c_try_compile "$LINENO"; then :
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2259 main ()
2261 if (sizeof (($2)))
2262 return 0;
2264 return 0;
2266 _ACEOF
2267 if ac_fn_c_try_compile "$LINENO"; then :
2269 else
2270 eval "$3=yes"
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 eval ac_res=\$$3
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2281 } # ac_fn_c_check_type
2283 # ac_fn_c_find_intX_t LINENO BITS VAR
2284 # -----------------------------------
2285 # Finds a signed integer type with width BITS, setting cache variable VAR
2286 # accordingly.
2287 ac_fn_c_find_intX_t ()
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2291 $as_echo_n "checking for int$2_t... " >&6; }
2292 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2293 $as_echo_n "(cached) " >&6
2294 else
2295 eval "$3=no"
2296 for ac_type in int$2_t 'int' 'long int' \
2297 'long long int' 'short int' 'signed char'; do
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 $ac_includes_default
2302 main ()
2304 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2305 test_array [0] = 0
2308 return 0;
2310 _ACEOF
2311 if ac_fn_c_try_compile "$LINENO"; then :
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314 $ac_includes_default
2316 main ()
2318 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2319 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2320 test_array [0] = 0
2323 return 0;
2325 _ACEOF
2326 if ac_fn_c_try_compile "$LINENO"; then :
2328 else
2329 case $ac_type in #(
2330 int$2_t) :
2331 eval "$3=yes" ;; #(
2332 *) :
2333 eval "$3=\$ac_type" ;;
2334 esac
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 eval as_val=\$$3
2340 if test "x$as_val" = x""no; then :
2342 else
2343 break
2345 done
2347 eval ac_res=\$$3
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2352 } # ac_fn_c_find_intX_t
2354 # ac_fn_c_try_link LINENO
2355 # -----------------------
2356 # Try to link conftest.$ac_ext, and return whether this succeeded.
2357 ac_fn_c_try_link ()
2359 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360 rm -f conftest.$ac_objext conftest$ac_exeext
2361 if { { ac_try="$ac_link"
2362 case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2365 esac
2366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367 $as_echo "$ac_try_echo"; } >&5
2368 (eval "$ac_link") 2>conftest.err
2369 ac_status=$?
2370 if test -s conftest.err; then
2371 grep -v '^ *+' conftest.err >conftest.er1
2372 cat conftest.er1 >&5
2373 mv -f conftest.er1 conftest.err
2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376 test $ac_status = 0; } && {
2377 test -z "$ac_c_werror_flag" ||
2378 test ! -s conftest.err
2379 } && test -s conftest$ac_exeext && {
2380 test "$cross_compiling" = yes ||
2381 $as_test_x conftest$ac_exeext
2382 }; then :
2383 ac_retval=0
2384 else
2385 $as_echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2388 ac_retval=1
2390 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2391 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2392 # interfere with the next link command; also delete a directory that is
2393 # left behind by Apple's compiler. We do this before executing the actions.
2394 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2395 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2396 return $ac_retval
2398 } # ac_fn_c_try_link
2400 # ac_fn_c_find_uintX_t LINENO BITS VAR
2401 # ------------------------------------
2402 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2403 # accordingly.
2404 ac_fn_c_find_uintX_t ()
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2408 $as_echo_n "checking for uint$2_t... " >&6; }
2409 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2410 $as_echo_n "(cached) " >&6
2411 else
2412 eval "$3=no"
2413 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2414 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2417 $ac_includes_default
2419 main ()
2421 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2422 test_array [0] = 0
2425 return 0;
2427 _ACEOF
2428 if ac_fn_c_try_compile "$LINENO"; then :
2429 case $ac_type in #(
2430 uint$2_t) :
2431 eval "$3=yes" ;; #(
2432 *) :
2433 eval "$3=\$ac_type" ;;
2434 esac
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 eval as_val=\$$3
2438 if test "x$as_val" = x""no; then :
2440 else
2441 break
2443 done
2445 eval ac_res=\$$3
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2447 $as_echo "$ac_res" >&6; }
2448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2450 } # ac_fn_c_find_uintX_t
2452 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2453 # ----------------------------------------------
2454 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2455 ac_fn_c_check_header_preproc ()
2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2459 $as_echo_n "checking for $2... " >&6; }
2460 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h. */
2465 #include <$2>
2466 _ACEOF
2467 if ac_fn_c_try_cpp "$LINENO"; then :
2468 eval "$3=yes"
2469 else
2470 eval "$3=no"
2472 rm -f conftest.err conftest.$ac_ext
2474 eval ac_res=\$$3
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476 $as_echo "$ac_res" >&6; }
2477 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2479 } # ac_fn_c_check_header_preproc
2481 # ac_fn_cxx_try_cpp LINENO
2482 # ------------------------
2483 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2484 ac_fn_cxx_try_cpp ()
2486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2487 if { { ac_try="$ac_cpp conftest.$ac_ext"
2488 case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491 esac
2492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2493 $as_echo "$ac_try_echo"; } >&5
2494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2495 ac_status=$?
2496 if test -s conftest.err; then
2497 grep -v '^ *+' conftest.err >conftest.er1
2498 cat conftest.er1 >&5
2499 mv -f conftest.er1 conftest.err
2501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2502 test $ac_status = 0; } >/dev/null && {
2503 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2504 test ! -s conftest.err
2505 }; then :
2506 ac_retval=0
2507 else
2508 $as_echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2511 ac_retval=1
2513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2514 return $ac_retval
2516 } # ac_fn_cxx_try_cpp
2518 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2519 # ------------------------------------------------
2520 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2521 ac_fn_cxx_check_header_preproc ()
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2525 $as_echo_n "checking for $2... " >&6; }
2526 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h. */
2531 #include <$2>
2532 _ACEOF
2533 if ac_fn_cxx_try_cpp "$LINENO"; then :
2534 eval "$3=yes"
2535 else
2536 eval "$3=no"
2538 rm -f conftest.err conftest.$ac_ext
2540 eval ac_res=\$$3
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2545 } # ac_fn_cxx_check_header_preproc
2547 # ac_fn_c_check_func LINENO FUNC VAR
2548 # ----------------------------------
2549 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2550 ac_fn_c_check_func ()
2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2554 $as_echo_n "checking for $2... " >&6; }
2555 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2560 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2562 #define $2 innocuous_$2
2564 /* System header to define __stub macros and hopefully few prototypes,
2565 which can conflict with char $2 (); below.
2566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2567 <limits.h> exists even on freestanding compilers. */
2569 #ifdef __STDC__
2570 # include <limits.h>
2571 #else
2572 # include <assert.h>
2573 #endif
2575 #undef $2
2577 /* Override any GCC internal prototype to avoid an error.
2578 Use char because int might match the return type of a GCC
2579 builtin and then its argument prototype would still apply. */
2580 #ifdef __cplusplus
2581 extern "C"
2582 #endif
2583 char $2 ();
2584 /* The GNU C library defines this for functions which it implements
2585 to always fail with ENOSYS. Some functions are actually named
2586 something starting with __ and the normal name is an alias. */
2587 #if defined __stub_$2 || defined __stub___$2
2588 choke me
2589 #endif
2592 main ()
2594 return $2 ();
2596 return 0;
2598 _ACEOF
2599 if ac_fn_c_try_link "$LINENO"; then :
2600 eval "$3=yes"
2601 else
2602 eval "$3=no"
2604 rm -f core conftest.err conftest.$ac_objext \
2605 conftest$ac_exeext conftest.$ac_ext
2607 eval ac_res=\$$3
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2609 $as_echo "$ac_res" >&6; }
2610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2612 } # ac_fn_c_check_func
2614 # ac_fn_cxx_try_link LINENO
2615 # -------------------------
2616 # Try to link conftest.$ac_ext, and return whether this succeeded.
2617 ac_fn_cxx_try_link ()
2619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2620 rm -f conftest.$ac_objext conftest$ac_exeext
2621 if { { ac_try="$ac_link"
2622 case "(($ac_try" in
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2625 esac
2626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627 $as_echo "$ac_try_echo"; } >&5
2628 (eval "$ac_link") 2>conftest.err
2629 ac_status=$?
2630 if test -s conftest.err; then
2631 grep -v '^ *+' conftest.err >conftest.er1
2632 cat conftest.er1 >&5
2633 mv -f conftest.er1 conftest.err
2635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2636 test $ac_status = 0; } && {
2637 test -z "$ac_cxx_werror_flag" ||
2638 test ! -s conftest.err
2639 } && test -s conftest$ac_exeext && {
2640 test "$cross_compiling" = yes ||
2641 $as_test_x conftest$ac_exeext
2642 }; then :
2643 ac_retval=0
2644 else
2645 $as_echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2648 ac_retval=1
2650 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2651 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2652 # interfere with the next link command; also delete a directory that is
2653 # left behind by Apple's compiler. We do this before executing the actions.
2654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2656 return $ac_retval
2658 } # ac_fn_cxx_try_link
2659 cat >config.log <<_ACEOF
2660 This file contains any messages produced by compilers while
2661 running configure, to aid debugging if configure makes a mistake.
2663 It was created by $as_me, which was
2664 generated by GNU Autoconf 2.64. Invocation command line was
2666 $ $0 $@
2668 _ACEOF
2669 exec 5>>config.log
2671 cat <<_ASUNAME
2672 ## --------- ##
2673 ## Platform. ##
2674 ## --------- ##
2676 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2677 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2678 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2679 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2680 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2682 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2683 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2685 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2686 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2687 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2688 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2689 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2690 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2691 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2693 _ASUNAME
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 $as_echo "PATH: $as_dir"
2701 done
2702 IFS=$as_save_IFS
2704 } >&5
2706 cat >&5 <<_ACEOF
2709 ## ----------- ##
2710 ## Core tests. ##
2711 ## ----------- ##
2713 _ACEOF
2716 # Keep a trace of the command line.
2717 # Strip out --no-create and --no-recursion so they do not pile up.
2718 # Strip out --silent because we don't want to record it for future runs.
2719 # Also quote any args containing shell meta-characters.
2720 # Make two passes to allow for proper duplicate-argument suppression.
2721 ac_configure_args=
2722 ac_configure_args0=
2723 ac_configure_args1=
2724 ac_must_keep_next=false
2725 for ac_pass in 1 2
2727 for ac_arg
2729 case $ac_arg in
2730 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2731 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2732 | -silent | --silent | --silen | --sile | --sil)
2733 continue ;;
2734 *\'*)
2735 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2736 esac
2737 case $ac_pass in
2738 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2740 as_fn_append ac_configure_args1 " '$ac_arg'"
2741 if test $ac_must_keep_next = true; then
2742 ac_must_keep_next=false # Got value, back to normal.
2743 else
2744 case $ac_arg in
2745 *=* | --config-cache | -C | -disable-* | --disable-* \
2746 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2747 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2748 | -with-* | --with-* | -without-* | --without-* | --x)
2749 case "$ac_configure_args0 " in
2750 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2751 esac
2753 -* ) ac_must_keep_next=true ;;
2754 esac
2756 as_fn_append ac_configure_args " '$ac_arg'"
2758 esac
2759 done
2760 done
2761 { ac_configure_args0=; unset ac_configure_args0;}
2762 { ac_configure_args1=; unset ac_configure_args1;}
2764 # When interrupted or exit'd, cleanup temporary files, and complete
2765 # config.log. We remove comments because anyway the quotes in there
2766 # would cause problems or look ugly.
2767 # WARNING: Use '\'' to represent an apostrophe within the trap.
2768 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2769 trap 'exit_status=$?
2770 # Save into config.log some information that might help in debugging.
2772 echo
2774 cat <<\_ASBOX
2775 ## ---------------- ##
2776 ## Cache variables. ##
2777 ## ---------------- ##
2778 _ASBOX
2779 echo
2780 # The following way of writing the cache mishandles newlines in values,
2782 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2783 eval ac_val=\$$ac_var
2784 case $ac_val in #(
2785 *${as_nl}*)
2786 case $ac_var in #(
2787 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2788 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2789 esac
2790 case $ac_var in #(
2791 _ | IFS | as_nl) ;; #(
2792 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2793 *) { eval $ac_var=; unset $ac_var;} ;;
2794 esac ;;
2795 esac
2796 done
2797 (set) 2>&1 |
2798 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2799 *${as_nl}ac_space=\ *)
2800 sed -n \
2801 "s/'\''/'\''\\\\'\'''\''/g;
2802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2803 ;; #(
2805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2807 esac |
2808 sort
2810 echo
2812 cat <<\_ASBOX
2813 ## ----------------- ##
2814 ## Output variables. ##
2815 ## ----------------- ##
2816 _ASBOX
2817 echo
2818 for ac_var in $ac_subst_vars
2820 eval ac_val=\$$ac_var
2821 case $ac_val in
2822 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2823 esac
2824 $as_echo "$ac_var='\''$ac_val'\''"
2825 done | sort
2826 echo
2828 if test -n "$ac_subst_files"; then
2829 cat <<\_ASBOX
2830 ## ------------------- ##
2831 ## File substitutions. ##
2832 ## ------------------- ##
2833 _ASBOX
2834 echo
2835 for ac_var in $ac_subst_files
2837 eval ac_val=\$$ac_var
2838 case $ac_val in
2839 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2840 esac
2841 $as_echo "$ac_var='\''$ac_val'\''"
2842 done | sort
2843 echo
2846 if test -s confdefs.h; then
2847 cat <<\_ASBOX
2848 ## ----------- ##
2849 ## confdefs.h. ##
2850 ## ----------- ##
2851 _ASBOX
2852 echo
2853 cat confdefs.h
2854 echo
2856 test "$ac_signal" != 0 &&
2857 $as_echo "$as_me: caught signal $ac_signal"
2858 $as_echo "$as_me: exit $exit_status"
2859 } >&5
2860 rm -f core *.core core.conftest.* &&
2861 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2862 exit $exit_status
2864 for ac_signal in 1 2 13 15; do
2865 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2866 done
2867 ac_signal=0
2869 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2870 rm -f -r conftest* confdefs.h
2872 $as_echo "/* confdefs.h */" > confdefs.h
2874 # Predefined preprocessor variables.
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_NAME "$PACKAGE_NAME"
2878 _ACEOF
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2882 _ACEOF
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2886 _ACEOF
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_STRING "$PACKAGE_STRING"
2890 _ACEOF
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2894 _ACEOF
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_URL "$PACKAGE_URL"
2898 _ACEOF
2901 # Let the site file select an alternate cache file if it wants to.
2902 # Prefer an explicitly selected file to automatically selected ones.
2903 ac_site_file1=NONE
2904 ac_site_file2=NONE
2905 if test -n "$CONFIG_SITE"; then
2906 ac_site_file1=$CONFIG_SITE
2907 elif test "x$prefix" != xNONE; then
2908 ac_site_file1=$prefix/share/config.site
2909 ac_site_file2=$prefix/etc/config.site
2910 else
2911 ac_site_file1=$ac_default_prefix/share/config.site
2912 ac_site_file2=$ac_default_prefix/etc/config.site
2914 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2916 test "x$ac_site_file" = xNONE && continue
2917 if test -r "$ac_site_file"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2919 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2920 sed 's/^/| /' "$ac_site_file" >&5
2921 . "$ac_site_file"
2923 done
2925 if test -r "$cache_file"; then
2926 # Some versions of bash will fail to source /dev/null (special
2927 # files actually), so we avoid doing that.
2928 if test -f "$cache_file"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2930 $as_echo "$as_me: loading cache $cache_file" >&6;}
2931 case $cache_file in
2932 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2933 *) . "./$cache_file";;
2934 esac
2936 else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2938 $as_echo "$as_me: creating cache $cache_file" >&6;}
2939 >$cache_file
2942 # Check that the precious variables saved in the cache have kept the same
2943 # value.
2944 ac_cache_corrupted=false
2945 for ac_var in $ac_precious_vars; do
2946 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2947 eval ac_new_set=\$ac_env_${ac_var}_set
2948 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2949 eval ac_new_val=\$ac_env_${ac_var}_value
2950 case $ac_old_set,$ac_new_set in
2951 set,)
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2953 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2954 ac_cache_corrupted=: ;;
2955 ,set)
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2957 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2958 ac_cache_corrupted=: ;;
2959 ,);;
2961 if test "x$ac_old_val" != "x$ac_new_val"; then
2962 # differences in whitespace do not lead to failure.
2963 ac_old_val_w=`echo x $ac_old_val`
2964 ac_new_val_w=`echo x $ac_new_val`
2965 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2967 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2968 ac_cache_corrupted=:
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2971 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2972 eval $ac_var=\$ac_old_val
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2975 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2977 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2978 fi;;
2979 esac
2980 # Pass precious variables to config.status.
2981 if test "$ac_new_set" = set; then
2982 case $ac_new_val in
2983 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2984 *) ac_arg=$ac_var=$ac_new_val ;;
2985 esac
2986 case " $ac_configure_args " in
2987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2988 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2989 esac
2991 done
2992 if $ac_cache_corrupted; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2996 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2997 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2999 ## -------------------- ##
3000 ## Main body of script. ##
3001 ## -------------------- ##
3003 ac_ext=c
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3017 gcc_version=`cat $srcdir/BASE-VER`
3019 # Determine the host, build, and target systems
3020 ac_aux_dir=
3021 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3022 for ac_t in install-sh install.sh shtool; do
3023 if test -f "$ac_dir/$ac_t"; then
3024 ac_aux_dir=$ac_dir
3025 ac_install_sh="$ac_aux_dir/$ac_t -c"
3026 break 2
3028 done
3029 done
3030 if test -z "$ac_aux_dir"; then
3031 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3034 # These three variables are undocumented and unsupported,
3035 # and are intended to be withdrawn in a future Autoconf release.
3036 # They can cause serious problems if a builder's source tree is in a directory
3037 # whose full name contains unusual characters.
3038 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3039 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3040 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3043 # Make sure we can run config.sub.
3044 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3045 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3048 $as_echo_n "checking build system type... " >&6; }
3049 if test "${ac_cv_build+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 ac_build_alias=$build_alias
3053 test "x$ac_build_alias" = x &&
3054 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3055 test "x$ac_build_alias" = x &&
3056 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3057 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3058 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3062 $as_echo "$ac_cv_build" >&6; }
3063 case $ac_cv_build in
3064 *-*-*) ;;
3065 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3066 esac
3067 build=$ac_cv_build
3068 ac_save_IFS=$IFS; IFS='-'
3069 set x $ac_cv_build
3070 shift
3071 build_cpu=$1
3072 build_vendor=$2
3073 shift; shift
3074 # Remember, the first character of IFS is used to create $*,
3075 # except with old shells:
3076 build_os=$*
3077 IFS=$ac_save_IFS
3078 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3082 $as_echo_n "checking host system type... " >&6; }
3083 if test "${ac_cv_host+set}" = set; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test "x$host_alias" = x; then
3087 ac_cv_host=$ac_cv_build
3088 else
3089 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3090 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3095 $as_echo "$ac_cv_host" >&6; }
3096 case $ac_cv_host in
3097 *-*-*) ;;
3098 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3099 esac
3100 host=$ac_cv_host
3101 ac_save_IFS=$IFS; IFS='-'
3102 set x $ac_cv_host
3103 shift
3104 host_cpu=$1
3105 host_vendor=$2
3106 shift; shift
3107 # Remember, the first character of IFS is used to create $*,
3108 # except with old shells:
3109 host_os=$*
3110 IFS=$ac_save_IFS
3111 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3115 $as_echo_n "checking target system type... " >&6; }
3116 if test "${ac_cv_target+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test "x$target_alias" = x; then
3120 ac_cv_target=$ac_cv_host
3121 else
3122 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3123 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3128 $as_echo "$ac_cv_target" >&6; }
3129 case $ac_cv_target in
3130 *-*-*) ;;
3131 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3132 esac
3133 target=$ac_cv_target
3134 ac_save_IFS=$IFS; IFS='-'
3135 set x $ac_cv_target
3136 shift
3137 target_cpu=$1
3138 target_vendor=$2
3139 shift; shift
3140 # Remember, the first character of IFS is used to create $*,
3141 # except with old shells:
3142 target_os=$*
3143 IFS=$ac_save_IFS
3144 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3147 # The aliases save the names the user supplied, while $host etc.
3148 # will get canonicalized.
3149 test -n "$target_alias" &&
3150 test "$program_prefix$program_suffix$program_transform_name" = \
3151 NONENONEs,x,x, &&
3152 program_prefix=${target_alias}-
3154 # Determine the noncanonical target name, for directory use.
3155 case ${build_alias} in
3156 "") build_noncanonical=${build} ;;
3157 *) build_noncanonical=${build_alias} ;;
3158 esac
3160 case ${host_alias} in
3161 "") host_noncanonical=${build_noncanonical} ;;
3162 *) host_noncanonical=${host_alias} ;;
3163 esac
3165 case ${target_alias} in
3166 "") target_noncanonical=${host_noncanonical} ;;
3167 *) target_noncanonical=${target_alias} ;;
3168 esac
3173 # Determine the target- and build-specific subdirectories
3175 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3176 # have matching libraries, they should use host libraries: Makefile.tpl
3177 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3178 # However, they still use the build modules, because the corresponding
3179 # host modules (e.g. bison) are only built for the host when bootstrap
3180 # finishes. So:
3181 # - build_subdir is where we find build modules, and never changes.
3182 # - build_libsubdir is where we find build libraries, and can be overridden.
3184 # Prefix 'build-' so this never conflicts with target_subdir.
3185 build_subdir="build-${build_noncanonical}"
3187 # Check whether --with-build-libsubdir was given.
3188 if test "${with_build_libsubdir+set}" = set; then :
3189 withval=$with_build_libsubdir; build_libsubdir="$withval"
3190 else
3191 build_libsubdir="$build_subdir"
3194 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3195 if ( test $srcdir = . && test -d gcc ) \
3196 || test -d $srcdir/../host-${host_noncanonical}; then
3197 host_subdir="host-${host_noncanonical}"
3198 else
3199 host_subdir=.
3201 # No prefix.
3202 target_subdir=${target_noncanonical}
3205 # Set program_transform_name
3206 test "$program_prefix" != NONE &&
3207 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3208 # Use a double $ so make ignores it.
3209 test "$program_suffix" != NONE &&
3210 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3211 # Double any \ or $.
3212 # By default was `s,x,x', remove it if useless.
3213 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3214 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3217 # Check for bogus environment variables.
3218 # Test if LIBRARY_PATH contains the notation for the current directory
3219 # since this would lead to problems installing/building glibc.
3220 # LIBRARY_PATH contains the current directory if one of the following
3221 # is true:
3222 # - one of the terminals (":" and ";") is the first or last sign
3223 # - two terminals occur directly after each other
3224 # - the path contains an element with a dot in it
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3226 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3227 case ${LIBRARY_PATH} in
3228 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3229 library_path_setting="contains current directory"
3232 library_path_setting="ok"
3234 esac
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3236 $as_echo "$library_path_setting" >&6; }
3237 if test "$library_path_setting" != "ok"; then
3238 as_fn_error "
3239 *** LIBRARY_PATH shouldn't contain the current directory when
3240 *** building gcc. Please change the environment variable
3241 *** and run configure again." "$LINENO" 5
3244 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3245 # since this would lead to problems installing/building glibc.
3246 # GCC_EXEC_PREFIX contains the current directory if one of the following
3247 # is true:
3248 # - one of the terminals (":" and ";") is the first or last sign
3249 # - two terminals occur directly after each other
3250 # - the path contains an element with a dot in it
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3252 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3253 case ${GCC_EXEC_PREFIX} in
3254 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3255 gcc_exec_prefix_setting="contains current directory"
3258 gcc_exec_prefix_setting="ok"
3260 esac
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3262 $as_echo "$gcc_exec_prefix_setting" >&6; }
3263 if test "$gcc_exec_prefix_setting" != "ok"; then
3264 as_fn_error "
3265 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3266 *** building gcc. Please change the environment variable
3267 *** and run configure again." "$LINENO" 5
3270 # -----------
3271 # Directories
3272 # -----------
3274 # Specify the local prefix
3275 local_prefix=
3277 # Check whether --with-local-prefix was given.
3278 if test "${with_local_prefix+set}" = set; then :
3279 withval=$with_local_prefix; case "${withval}" in
3280 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3281 no) ;;
3282 *) local_prefix=$with_local_prefix ;;
3283 esac
3287 # Default local prefix if it is empty
3288 if test x$local_prefix = x; then
3289 local_prefix=/usr/local
3292 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3293 # passed in by the toplevel make and thus we'd get different behavior
3294 # depending on where we built the sources.
3295 gcc_gxx_include_dir=
3296 # Specify the g++ header file directory
3298 # Check whether --with-gxx-include-dir was given.
3299 if test "${with_gxx_include_dir+set}" = set; then :
3300 withval=$with_gxx_include_dir; case "${withval}" in
3301 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3302 no) ;;
3303 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3304 esac
3308 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3309 if test x${gcc_gxx_include_dir} = x; then
3310 if test x${enable_version_specific_runtime_libs} = xyes; then
3311 gcc_gxx_include_dir='${libsubdir}/include/c++'
3312 else
3313 libstdcxx_incdir='include/c++/$(version)'
3314 if test x$host != x$target; then
3315 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3317 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3321 gcc_gxx_include_dir_add_sysroot=0
3322 if test "${with_sysroot+set}" = set; then
3323 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3324 if test "${gcc_gxx_without_sysroot}"; then
3325 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3326 gcc_gxx_include_dir_add_sysroot=1
3331 # Check whether --with-cpp_install_dir was given.
3332 if test "${with_cpp_install_dir+set}" = set; then :
3333 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3334 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3335 elif test x$withval != xno; then
3336 cpp_install_dir=$withval
3341 # We would like to our source tree to be readonly. However when releases or
3342 # pre-releases are generated, the flex/bison generated files as well as the
3343 # various formats of manuals need to be included along with the rest of the
3344 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3345 # just that.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3348 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3349 # Check whether --enable-generated-files-in-srcdir was given.
3350 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3351 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3352 else
3353 generated_files_in_srcdir=no
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3358 $as_echo "$generated_files_in_srcdir" >&6; }
3360 if test "$generated_files_in_srcdir" = "yes"; then
3361 GENINSRC=''
3362 else
3363 GENINSRC='#'
3367 # -------------------
3368 # Find default linker
3369 # -------------------
3371 # With GNU ld
3373 # Check whether --with-gnu-ld was given.
3374 if test "${with_gnu_ld+set}" = set; then :
3375 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3376 else
3377 gnu_ld_flag=no
3381 # With pre-defined ld
3383 # Check whether --with-ld was given.
3384 if test "${with_ld+set}" = set; then :
3385 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3388 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3389 if test ! -x "$DEFAULT_LINKER"; then
3390 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3391 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3392 gnu_ld_flag=yes
3395 cat >>confdefs.h <<_ACEOF
3396 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3397 _ACEOF
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3402 $as_echo_n "checking whether a default linker was specified... " >&6; }
3403 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3404 if test x"$gnu_ld_flag" = x"no"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3406 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3407 else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3409 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3411 else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3416 # With demangler in GNU ld
3418 # Check whether --with-demangler-in-ld was given.
3419 if test "${with_demangler_in_ld+set}" = set; then :
3420 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3421 else
3422 demangler_in_ld=yes
3426 # ----------------------
3427 # Find default assembler
3428 # ----------------------
3430 # With GNU as
3432 # Check whether --with-gnu-as was given.
3433 if test "${with_gnu_as+set}" = set; then :
3434 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3435 else
3436 gas_flag=no
3441 # Check whether --with-as was given.
3442 if test "${with_as+set}" = set; then :
3443 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3446 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3447 if test ! -x "$DEFAULT_ASSEMBLER"; then
3448 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3449 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3450 gas_flag=yes
3453 cat >>confdefs.h <<_ACEOF
3454 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3455 _ACEOF
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3460 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3461 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3462 if test x"$gas_flag" = x"no"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3464 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3467 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3474 # ---------------
3475 # Find C compiler
3476 # ---------------
3478 # If a non-executable a.out is present (e.g. created by GNU as above even if
3479 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3480 # file, even when creating an executable, so an execution test fails.
3481 # Remove possible default executable files to avoid this.
3483 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3484 # Autoconf includes it.
3485 rm -f a.out a.exe b.out
3487 # Find the native compiler
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 if test -n "$ac_tool_prefix"; then
3494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3495 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_CC+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 if test -n "$CC"; then
3502 ac_cv_prog_CC="$CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3515 done
3516 done
3517 IFS=$as_save_IFS
3521 CC=$ac_cv_prog_CC
3522 if test -n "$CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3532 if test -z "$ac_cv_prog_CC"; then
3533 ac_ct_CC=$CC
3534 # Extract the first word of "gcc", so it can be a program name with args.
3535 set dummy gcc; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 if test -n "$ac_ct_CC"; then
3542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551 ac_cv_prog_ac_ct_CC="gcc"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3555 done
3556 done
3557 IFS=$as_save_IFS
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3565 else
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3570 if test "x$ac_ct_CC" = x; then
3571 CC=""
3572 else
3573 case $cross_compiling:$ac_tool_warned in
3574 yes:)
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3577 ac_tool_warned=yes ;;
3578 esac
3579 CC=$ac_ct_CC
3581 else
3582 CC="$ac_cv_prog_CC"
3585 if test -z "$CC"; then
3586 if test -n "$ac_tool_prefix"; then
3587 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3588 set dummy ${ac_tool_prefix}cc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 ac_cv_prog_CC="${ac_tool_prefix}cc"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 break 2
3608 done
3609 done
3610 IFS=$as_save_IFS
3614 CC=$ac_cv_prog_CC
3615 if test -n "$CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3618 else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3626 if test -z "$CC"; then
3627 # Extract the first word of "cc", so it can be a program name with args.
3628 set dummy cc; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3633 else
3634 if test -n "$CC"; then
3635 ac_cv_prog_CC="$CC" # Let the user override the test.
3636 else
3637 ac_prog_rejected=no
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3646 ac_prog_rejected=yes
3647 continue
3649 ac_cv_prog_CC="cc"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3653 done
3654 done
3655 IFS=$as_save_IFS
3657 if test $ac_prog_rejected = yes; then
3658 # We found a bogon in the path, so make sure we never use it.
3659 set dummy $ac_cv_prog_CC
3660 shift
3661 if test $# != 0; then
3662 # We chose a different compiler from the bogus one.
3663 # However, it has the same basename, so the bogon will be chosen
3664 # first if we set CC to just the basename; use the full file name.
3665 shift
3666 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3682 if test -z "$CC"; then
3683 if test -n "$ac_tool_prefix"; then
3684 for ac_prog in cl.exe
3686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_CC+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if test -n "$CC"; then
3694 ac_cv_prog_CC="$CC" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3707 done
3708 done
3709 IFS=$as_save_IFS
3713 CC=$ac_cv_prog_CC
3714 if test -n "$CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3717 else
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3723 test -n "$CC" && break
3724 done
3726 if test -z "$CC"; then
3727 ac_ct_CC=$CC
3728 for ac_prog in cl.exe
3730 # Extract the first word of "$ac_prog", so it can be a program name with args.
3731 set dummy $ac_prog; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test -n "$ac_ct_CC"; then
3738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_ac_ct_CC="$ac_prog"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3751 done
3752 done
3753 IFS=$as_save_IFS
3757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 $as_echo "$ac_ct_CC" >&6; }
3761 else
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3767 test -n "$ac_ct_CC" && break
3768 done
3770 if test "x$ac_ct_CC" = x; then
3771 CC=""
3772 else
3773 case $cross_compiling:$ac_tool_warned in
3774 yes:)
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777 ac_tool_warned=yes ;;
3778 esac
3779 CC=$ac_ct_CC
3786 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error "no acceptable C compiler found in \$PATH
3789 See \`config.log' for more details." "$LINENO" 5; }
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3793 set X $ac_compile
3794 ac_compiler=$2
3795 for ac_option in --version -v -V -qversion; do
3796 { { ac_try="$ac_compiler $ac_option >&5"
3797 case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804 ac_status=$?
3805 if test -s conftest.err; then
3806 sed '10a\
3807 ... rest of stderr output deleted ...
3808 10q' conftest.err >conftest.er1
3809 cat conftest.er1 >&5
3810 rm -f conftest.er1 conftest.err
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }
3814 done
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3820 main ()
3824 return 0;
3826 _ACEOF
3827 ac_clean_files_save=$ac_clean_files
3828 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3829 # Try to create an executable without -o first, disregard a.out.
3830 # It will help us diagnose broken compilers, and finding out an intuition
3831 # of exeext.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3833 $as_echo_n "checking for C compiler default output file name... " >&6; }
3834 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3836 # The possible output files:
3837 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3839 ac_rmfiles=
3840 for ac_file in $ac_files
3842 case $ac_file in
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3845 esac
3846 done
3847 rm -f $ac_rmfiles
3849 if { { ac_try="$ac_link_default"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link_default") 2>&5
3857 ac_status=$?
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3861 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3862 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3863 # so that the user can short-circuit this test for compilers unknown to
3864 # Autoconf.
3865 for ac_file in $ac_files ''
3867 test -f "$ac_file" || continue
3868 case $ac_file in
3869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3871 [ab].out )
3872 # We found the default executable, but exeext='' is most
3873 # certainly right.
3874 break;;
3875 *.* )
3876 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3877 then :; else
3878 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880 # We set ac_cv_exeext here because the later test for it is not
3881 # safe: cross compilers may not add the suffix if given an `-o'
3882 # argument, so we may need to know it at that point already.
3883 # Even if this section looks crufty: it has the advantage of
3884 # actually working.
3885 break;;
3887 break;;
3888 esac
3889 done
3890 test "$ac_cv_exeext" = no && ac_cv_exeext=
3892 else
3893 ac_file=''
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 $as_echo "$ac_file" >&6; }
3897 if test -z "$ac_file"; then :
3898 $as_echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 { as_fn_set_status 77
3904 as_fn_error "C compiler cannot create executables
3905 See \`config.log' for more details." "$LINENO" 5; }; }
3907 ac_exeext=$ac_cv_exeext
3909 # Check that the compiler produces executables we can run. If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3912 $as_echo_n "checking whether the C compiler works... " >&6; }
3913 # If not cross compiling, check that we can run a simple program.
3914 if test "$cross_compiling" != yes; then
3915 if { ac_try='./$ac_file'
3916 { { case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922 (eval "$ac_try") 2>&5
3923 ac_status=$?
3924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }; }; then
3926 cross_compiling=no
3927 else
3928 if test "$cross_compiling" = maybe; then
3929 cross_compiling=yes
3930 else
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error "cannot run C compiled programs.
3934 If you meant to cross compile, use \`--host'.
3935 See \`config.log' for more details." "$LINENO" 5; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3942 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3943 ac_clean_files=$ac_clean_files_save
3944 # Check that the compiler produces executables we can run. If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 $as_echo "$cross_compiling" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3961 ac_status=$?
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3965 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe'), while it won't with
3967 # `rm'.
3968 for ac_file in conftest.exe conftest conftest.*; do
3969 test -f "$ac_file" || continue
3970 case $ac_file in
3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973 break;;
3974 * ) break;;
3975 esac
3976 done
3977 else
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error "cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details." "$LINENO" 5; }
3983 rm -f conftest$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3987 rm -f conftest.$ac_ext
3988 EXEEXT=$ac_cv_exeext
3989 ac_exeext=$EXEEXT
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3991 $as_echo_n "checking for suffix of object files... " >&6; }
3992 if test "${ac_cv_objext+set}" = set; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3999 main ()
4003 return 0;
4005 _ACEOF
4006 rm -f conftest.o conftest.obj
4007 if { { ac_try="$ac_compile"
4008 case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_compile") 2>&5
4015 ac_status=$?
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }; then :
4018 for ac_file in conftest.o conftest.obj conftest.*; do
4019 test -f "$ac_file" || continue;
4020 case $ac_file in
4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4022 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4023 break;;
4024 esac
4025 done
4026 else
4027 $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error "cannot compute suffix of object files: cannot compile
4033 See \`config.log' for more details." "$LINENO" 5; }
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4038 $as_echo "$ac_cv_objext" >&6; }
4039 OBJEXT=$ac_cv_objext
4040 ac_objext=$OBJEXT
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4042 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4043 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4050 main ()
4052 #ifndef __GNUC__
4053 choke me
4054 #endif
4057 return 0;
4059 _ACEOF
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061 ac_compiler_gnu=yes
4062 else
4063 ac_compiler_gnu=no
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4070 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4071 if test $ac_compiler_gnu = yes; then
4072 GCC=yes
4073 else
4074 GCC=
4076 ac_test_CFLAGS=${CFLAGS+set}
4077 ac_save_CFLAGS=$CFLAGS
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4079 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4080 if test "${ac_cv_prog_cc_g+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 ac_save_c_werror_flag=$ac_c_werror_flag
4084 ac_c_werror_flag=yes
4085 ac_cv_prog_cc_g=no
4086 CFLAGS="-g"
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4091 main ()
4095 return 0;
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_cv_prog_cc_g=yes
4100 else
4101 CFLAGS=""
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4106 main ()
4110 return 0;
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4115 else
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4117 CFLAGS="-g"
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4122 main ()
4126 return 0;
4128 _ACEOF
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130 ac_cv_prog_cc_g=yes
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4140 $as_echo "$ac_cv_prog_cc_g" >&6; }
4141 if test "$ac_test_CFLAGS" = set; then
4142 CFLAGS=$ac_save_CFLAGS
4143 elif test $ac_cv_prog_cc_g = yes; then
4144 if test "$GCC" = yes; then
4145 CFLAGS="-g -O2"
4146 else
4147 CFLAGS="-g"
4149 else
4150 if test "$GCC" = yes; then
4151 CFLAGS="-O2"
4152 else
4153 CFLAGS=
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4157 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4158 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 ac_cv_prog_cc_c89=no
4162 ac_save_CC=$CC
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165 #include <stdarg.h>
4166 #include <stdio.h>
4167 #include <sys/types.h>
4168 #include <sys/stat.h>
4169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4170 struct buf { int x; };
4171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4172 static char *e (p, i)
4173 char **p;
4174 int i;
4176 return p[i];
4178 static char *f (char * (*g) (char **, int), char **p, ...)
4180 char *s;
4181 va_list v;
4182 va_start (v,p);
4183 s = g (p, va_arg (v,int));
4184 va_end (v);
4185 return s;
4188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4189 function prototypes and stuff, but not '\xHH' hex character constants.
4190 These don't provoke an error unfortunately, instead are silently treated
4191 as 'x'. The following induces an error, until -std is added to get
4192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4193 array size at least. It's necessary to write '\x00'==0 to get something
4194 that's true only with -std. */
4195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4198 inside strings and character constants. */
4199 #define FOO(x) 'x'
4200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202 int test (int i, double x);
4203 struct s1 {int (*f) (int a);};
4204 struct s2 {int (*f) (double a);};
4205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4206 int argc;
4207 char **argv;
4209 main ()
4211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4213 return 0;
4215 _ACEOF
4216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 CC="$ac_save_CC $ac_arg"
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_cv_prog_cc_c89=$ac_arg
4223 rm -f core conftest.err conftest.$ac_objext
4224 test "x$ac_cv_prog_cc_c89" != "xno" && break
4225 done
4226 rm -f conftest.$ac_ext
4227 CC=$ac_save_CC
4230 # AC_CACHE_VAL
4231 case "x$ac_cv_prog_cc_c89" in
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 $as_echo "none needed" >&6; } ;;
4235 xno)
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 $as_echo "unsupported" >&6; } ;;
4239 CC="$CC $ac_cv_prog_cc_c89"
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4241 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4242 esac
4243 if test "x$ac_cv_prog_cc_c89" != xno; then :
4247 ac_ext=c
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253 if test "x$CC" != xcc; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4255 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4258 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4260 set dummy $CC; ac_cc=`$as_echo "$2" |
4261 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4262 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4269 main ()
4273 return 0;
4275 _ACEOF
4276 # Make sure it works both with $CC and with simple cc.
4277 # We do the test twice because some compilers refuse to overwrite an
4278 # existing .o file with -o, though they will create one.
4279 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4280 rm -f conftest2.*
4281 if { { case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287 (eval "$ac_try") 2>&5
4288 ac_status=$?
4289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290 test $ac_status = 0; } &&
4291 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_try") 2>&5
4298 ac_status=$?
4299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; };
4301 then
4302 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4303 if test "x$CC" != xcc; then
4304 # Test first that cc exists at all.
4305 if { ac_try='cc -c conftest.$ac_ext >&5'
4306 { { case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_try") 2>&5
4313 ac_status=$?
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }; }; then
4316 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4317 rm -f conftest2.*
4318 if { { case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; } &&
4328 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_try") 2>&5
4335 ac_status=$?
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; };
4338 then
4339 # cc works too.
4341 else
4342 # cc exists but doesn't like -o.
4343 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4347 else
4348 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4350 rm -f core conftest*
4353 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355 $as_echo "yes" >&6; }
4356 else
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4360 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4364 # expand $ac_aux_dir to an absolute path
4365 am_aux_dir=`cd $ac_aux_dir && pwd`
4367 # FIXME: we rely on the cache variable name because
4368 # there is no other way.
4369 set dummy $CC
4370 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4371 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4372 if test "$am_t" != yes; then
4373 # Losing compiler, so override with the script.
4374 # FIXME: It is wrong to rewrite CC.
4375 # But if we don't then we get into trouble of one sort or another.
4376 # A longer-term fix would be to have automake use am__CC in this case,
4377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378 CC="$am_aux_dir/compile $CC"
4382 ac_ext=cpp
4383 ac_cpp='$CXXCPP $CPPFLAGS'
4384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4387 if test -z "$CXX"; then
4388 if test -n "$CCC"; then
4389 CXX=$CCC
4390 else
4391 if test -n "$ac_tool_prefix"; then
4392 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_CXX+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if test -n "$CXX"; then
4402 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4415 done
4416 done
4417 IFS=$as_save_IFS
4421 CXX=$ac_cv_prog_CXX
4422 if test -n "$CXX"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4424 $as_echo "$CXX" >&6; }
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$CXX" && break
4432 done
4434 if test -z "$CXX"; then
4435 ac_ct_CXX=$CXX
4436 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy $ac_prog; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test -n "$ac_ct_CXX"; then
4446 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_CXX="$ac_prog"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4459 done
4460 done
4461 IFS=$as_save_IFS
4465 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4466 if test -n "$ac_ct_CXX"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4468 $as_echo "$ac_ct_CXX" >&6; }
4469 else
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4475 test -n "$ac_ct_CXX" && break
4476 done
4478 if test "x$ac_ct_CXX" = x; then
4479 CXX="g++"
4480 else
4481 case $cross_compiling:$ac_tool_warned in
4482 yes:)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487 CXX=$ac_ct_CXX
4493 # Provide some information about the compiler.
4494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4495 set X $ac_compile
4496 ac_compiler=$2
4497 for ac_option in --version -v -V -qversion; do
4498 { { ac_try="$ac_compiler $ac_option >&5"
4499 case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502 esac
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4506 ac_status=$?
4507 if test -s conftest.err; then
4508 sed '10a\
4509 ... rest of stderr output deleted ...
4510 10q' conftest.err >conftest.er1
4511 cat conftest.er1 >&5
4512 rm -f conftest.er1 conftest.err
4514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515 test $ac_status = 0; }
4516 done
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4519 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4527 main ()
4529 #ifndef __GNUC__
4530 choke me
4531 #endif
4534 return 0;
4536 _ACEOF
4537 if ac_fn_cxx_try_compile "$LINENO"; then :
4538 ac_compiler_gnu=yes
4539 else
4540 ac_compiler_gnu=no
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4547 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4548 if test $ac_compiler_gnu = yes; then
4549 GXX=yes
4550 else
4551 GXX=
4553 ac_test_CXXFLAGS=${CXXFLAGS+set}
4554 ac_save_CXXFLAGS=$CXXFLAGS
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4556 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4557 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4561 ac_cxx_werror_flag=yes
4562 ac_cv_prog_cxx_g=no
4563 CXXFLAGS="-g"
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4568 main ()
4572 return 0;
4574 _ACEOF
4575 if ac_fn_cxx_try_compile "$LINENO"; then :
4576 ac_cv_prog_cxx_g=yes
4577 else
4578 CXXFLAGS=""
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4583 main ()
4587 return 0;
4589 _ACEOF
4590 if ac_fn_cxx_try_compile "$LINENO"; then :
4592 else
4593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4594 CXXFLAGS="-g"
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4599 main ()
4603 return 0;
4605 _ACEOF
4606 if ac_fn_cxx_try_compile "$LINENO"; then :
4607 ac_cv_prog_cxx_g=yes
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4617 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4618 if test "$ac_test_CXXFLAGS" = set; then
4619 CXXFLAGS=$ac_save_CXXFLAGS
4620 elif test $ac_cv_prog_cxx_g = yes; then
4621 if test "$GXX" = yes; then
4622 CXXFLAGS="-g -O2"
4623 else
4624 CXXFLAGS="-g"
4626 else
4627 if test "$GXX" = yes; then
4628 CXXFLAGS="-O2"
4629 else
4630 CXXFLAGS=
4633 ac_ext=c
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642 if test -n "$ac_tool_prefix"; then
4643 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -n "$GNATBIND"; then
4651 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4664 done
4665 done
4666 IFS=$as_save_IFS
4670 GNATBIND=$ac_cv_prog_GNATBIND
4671 if test -n "$GNATBIND"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4673 $as_echo "$GNATBIND" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4681 if test -z "$ac_cv_prog_GNATBIND"; then
4682 ac_ct_GNATBIND=$GNATBIND
4683 # Extract the first word of "gnatbind", so it can be a program name with args.
4684 set dummy gnatbind; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if test -n "$ac_ct_GNATBIND"; then
4691 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4704 done
4705 done
4706 IFS=$as_save_IFS
4710 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4711 if test -n "$ac_ct_GNATBIND"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4713 $as_echo "$ac_ct_GNATBIND" >&6; }
4714 else
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4719 if test "x$ac_ct_GNATBIND" = x; then
4720 GNATBIND="no"
4721 else
4722 case $cross_compiling:$ac_tool_warned in
4723 yes:)
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726 ac_tool_warned=yes ;;
4727 esac
4728 GNATBIND=$ac_ct_GNATBIND
4730 else
4731 GNATBIND="$ac_cv_prog_GNATBIND"
4734 if test -n "$ac_tool_prefix"; then
4735 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4736 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$GNATMAKE"; then
4743 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4756 done
4757 done
4758 IFS=$as_save_IFS
4762 GNATMAKE=$ac_cv_prog_GNATMAKE
4763 if test -n "$GNATMAKE"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4765 $as_echo "$GNATMAKE" >&6; }
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4773 if test -z "$ac_cv_prog_GNATMAKE"; then
4774 ac_ct_GNATMAKE=$GNATMAKE
4775 # Extract the first word of "gnatmake", so it can be a program name with args.
4776 set dummy gnatmake; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test -n "$ac_ct_GNATMAKE"; then
4783 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4796 done
4797 done
4798 IFS=$as_save_IFS
4802 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4803 if test -n "$ac_ct_GNATMAKE"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4805 $as_echo "$ac_ct_GNATMAKE" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4811 if test "x$ac_ct_GNATMAKE" = x; then
4812 GNATMAKE="no"
4813 else
4814 case $cross_compiling:$ac_tool_warned in
4815 yes:)
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned=yes ;;
4819 esac
4820 GNATMAKE=$ac_ct_GNATMAKE
4822 else
4823 GNATMAKE="$ac_cv_prog_GNATMAKE"
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4827 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4828 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 cat >conftest.adb <<EOF
4832 procedure conftest is begin null; end conftest;
4834 acx_cv_cc_gcc_supports_ada=no
4835 # There is a bug in old released versions of GCC which causes the
4836 # driver to exit successfully when the appropriate language module
4837 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4838 # Therefore we must check for the error message as well as an
4839 # unsuccessful exit.
4840 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4841 # given a .adb file, but produce no object file. So we must check
4842 # if an object file was really produced to guard against this.
4843 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4844 if test x"$errors" = x && test -f conftest.$ac_objext; then
4845 acx_cv_cc_gcc_supports_ada=yes
4847 rm -f conftest.*
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4850 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4852 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4853 have_gnat=yes
4854 else
4855 have_gnat=no
4859 # autoconf is lame and doesn't give us any substitution variable for this.
4860 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4861 NO_MINUS_C_MINUS_O=yes
4862 else
4863 OUTPUT_OPTION='-o $@'
4868 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4869 # optimizations to be activated explicitly by the toplevel.
4870 case "$CC" in
4871 */prev-gcc/xgcc*) ;;
4872 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4873 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4874 esac
4878 # Determine PICFLAG for target gnatlib.
4883 case "${target}" in
4884 # PIC is the default on some targets or must not be used.
4885 *-*-darwin*)
4886 # PIC is the default on this platform
4887 # Common symbols not allowed in MH_DYLIB files
4888 PICFLAG_FOR_TARGET=-fno-common
4890 alpha*-dec-osf5*)
4891 # PIC is the default.
4893 hppa*64*-*-hpux*)
4894 # PIC is the default for 64-bit PA HP-UX.
4896 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4898 i[34567]86-*-mingw* | x86_64-*-mingw*)
4900 i[34567]86-*-interix[3-9]*)
4901 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4902 # Instead, we relocate shared libraries at runtime.
4904 i[34567]86-*-nto-qnx*)
4905 # QNX uses GNU C++, but need to define -shared option too, otherwise
4906 # it will coredump.
4907 PICFLAG_FOR_TARGET='-fPIC -shared'
4909 i[34567]86-pc-msdosdjgpp*)
4910 # DJGPP does not support shared libraries at all.
4912 ia64*-*-hpux*)
4913 # On IA64 HP-UX, PIC is the default but the pic flag
4914 # sets the default TLS model and affects inlining.
4915 PICFLAG_FOR_TARGET=-fPIC
4917 mips-sgi-irix6*)
4918 # PIC is the default.
4920 rs6000-ibm-aix* | powerpc-ibm-aix*)
4921 # All AIX code is PIC.
4924 # Some targets support both -fPIC and -fpic, but prefer the latter.
4925 # FIXME: Why?
4926 i[34567]86-*-* | x86_64-*-*)
4927 PICFLAG_FOR_TARGET=-fpic
4929 m68k-*-*)
4930 PICFLAG_FOR_TARGET=-fpic
4932 # FIXME: Override -fPIC default in libgcc only?
4933 sh-*-linux* | sh[2346lbe]*-*-linux*)
4934 PICFLAG_FOR_TARGET=-fpic
4936 # FIXME: Simplify to sh*-*-netbsd*?
4937 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4938 sh64-*-netbsd* | sh64l*-*-netbsd*)
4939 PICFLAG_FOR_TARGET=-fpic
4941 # Default to -fPIC unless specified otherwise.
4943 PICFLAG_FOR_TARGET=-fPIC
4945 esac
4947 # If the user explicitly uses -fpic/-fPIC, keep that.
4948 case "${CFLAGS_FOR_TARGET}" in
4949 *-fpic*)
4950 PICFLAG_FOR_TARGET=-fpic
4952 *-fPIC*)
4953 PICFLAG_FOR_TARGET=-fPIC
4955 esac
4959 # -------------------------
4960 # Check C compiler features
4961 # -------------------------
4964 ac_ext=c
4965 ac_cpp='$CPP $CPPFLAGS'
4966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4970 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4971 # On Suns, sometimes $CPP names a directory.
4972 if test -n "$CPP" && test -d "$CPP"; then
4973 CPP=
4975 if test -z "$CPP"; then
4976 if test "${ac_cv_prog_CPP+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 # Double quotes because CPP needs to be expanded
4980 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4982 ac_preproc_ok=false
4983 for ac_c_preproc_warn_flag in '' yes
4985 # Use a header file that comes with gcc, so configuring glibc
4986 # with a fresh cross-compiler works.
4987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988 # <limits.h> exists even on freestanding compilers.
4989 # On the NeXT, cc -E runs the code through the compiler's parser,
4990 # not just through cpp. "Syntax error" is here to catch this case.
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 #ifdef __STDC__
4994 # include <limits.h>
4995 #else
4996 # include <assert.h>
4997 #endif
4998 Syntax error
4999 _ACEOF
5000 if ac_fn_c_try_cpp "$LINENO"; then :
5002 else
5003 # Broken: fails on valid input.
5004 continue
5006 rm -f conftest.err conftest.$ac_ext
5008 # OK, works on sane cases. Now check whether nonexistent headers
5009 # can be detected and how.
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 #include <ac_nonexistent.h>
5013 _ACEOF
5014 if ac_fn_c_try_cpp "$LINENO"; then :
5015 # Broken: success on invalid input.
5016 continue
5017 else
5018 # Passes both tests.
5019 ac_preproc_ok=:
5020 break
5022 rm -f conftest.err conftest.$ac_ext
5024 done
5025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026 rm -f conftest.err conftest.$ac_ext
5027 if $ac_preproc_ok; then :
5028 break
5031 done
5032 ac_cv_prog_CPP=$CPP
5035 CPP=$ac_cv_prog_CPP
5036 else
5037 ac_cv_prog_CPP=$CPP
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5040 $as_echo "$CPP" >&6; }
5041 ac_preproc_ok=false
5042 for ac_c_preproc_warn_flag in '' yes
5044 # Use a header file that comes with gcc, so configuring glibc
5045 # with a fresh cross-compiler works.
5046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5047 # <limits.h> exists even on freestanding compilers.
5048 # On the NeXT, cc -E runs the code through the compiler's parser,
5049 # not just through cpp. "Syntax error" is here to catch this case.
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 #ifdef __STDC__
5053 # include <limits.h>
5054 #else
5055 # include <assert.h>
5056 #endif
5057 Syntax error
5058 _ACEOF
5059 if ac_fn_c_try_cpp "$LINENO"; then :
5061 else
5062 # Broken: fails on valid input.
5063 continue
5065 rm -f conftest.err conftest.$ac_ext
5067 # OK, works on sane cases. Now check whether nonexistent headers
5068 # can be detected and how.
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071 #include <ac_nonexistent.h>
5072 _ACEOF
5073 if ac_fn_c_try_cpp "$LINENO"; then :
5074 # Broken: success on invalid input.
5075 continue
5076 else
5077 # Passes both tests.
5078 ac_preproc_ok=:
5079 break
5081 rm -f conftest.err conftest.$ac_ext
5083 done
5084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5085 rm -f conftest.err conftest.$ac_ext
5086 if $ac_preproc_ok; then :
5088 else
5089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5091 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5092 See \`config.log' for more details." "$LINENO" 5; }
5095 ac_ext=c
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5103 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5104 if test "${ac_cv_path_GREP+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 if test -z "$GREP"; then
5108 ac_path_GREP_found=false
5109 # Loop through the user's path and test for each of PROGNAME-LIST
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_prog in grep ggrep; do
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5118 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5119 # Check for GNU ac_path_GREP and select it if it is found.
5120 # Check for GNU $ac_path_GREP
5121 case `"$ac_path_GREP" --version 2>&1` in
5122 *GNU*)
5123 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5125 ac_count=0
5126 $as_echo_n 0123456789 >"conftest.in"
5127 while :
5129 cat "conftest.in" "conftest.in" >"conftest.tmp"
5130 mv "conftest.tmp" "conftest.in"
5131 cp "conftest.in" "conftest.nl"
5132 $as_echo 'GREP' >> "conftest.nl"
5133 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5135 as_fn_arith $ac_count + 1 && ac_count=$as_val
5136 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5137 # Best one so far, save it but keep looking for a better one
5138 ac_cv_path_GREP="$ac_path_GREP"
5139 ac_path_GREP_max=$ac_count
5141 # 10*(2^10) chars as input seems more than enough
5142 test $ac_count -gt 10 && break
5143 done
5144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5145 esac
5147 $ac_path_GREP_found && break 3
5148 done
5149 done
5150 done
5151 IFS=$as_save_IFS
5152 if test -z "$ac_cv_path_GREP"; then
5153 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5155 else
5156 ac_cv_path_GREP=$GREP
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5161 $as_echo "$ac_cv_path_GREP" >&6; }
5162 GREP="$ac_cv_path_GREP"
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5166 $as_echo_n "checking for egrep... " >&6; }
5167 if test "${ac_cv_path_EGREP+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5171 then ac_cv_path_EGREP="$GREP -E"
5172 else
5173 if test -z "$EGREP"; then
5174 ac_path_EGREP_found=false
5175 # Loop through the user's path and test for each of PROGNAME-LIST
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_prog in egrep; do
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5184 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5185 # Check for GNU ac_path_EGREP and select it if it is found.
5186 # Check for GNU $ac_path_EGREP
5187 case `"$ac_path_EGREP" --version 2>&1` in
5188 *GNU*)
5189 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5191 ac_count=0
5192 $as_echo_n 0123456789 >"conftest.in"
5193 while :
5195 cat "conftest.in" "conftest.in" >"conftest.tmp"
5196 mv "conftest.tmp" "conftest.in"
5197 cp "conftest.in" "conftest.nl"
5198 $as_echo 'EGREP' >> "conftest.nl"
5199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5201 as_fn_arith $ac_count + 1 && ac_count=$as_val
5202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5203 # Best one so far, save it but keep looking for a better one
5204 ac_cv_path_EGREP="$ac_path_EGREP"
5205 ac_path_EGREP_max=$ac_count
5207 # 10*(2^10) chars as input seems more than enough
5208 test $ac_count -gt 10 && break
5209 done
5210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5211 esac
5213 $ac_path_EGREP_found && break 3
5214 done
5215 done
5216 done
5217 IFS=$as_save_IFS
5218 if test -z "$ac_cv_path_EGREP"; then
5219 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5221 else
5222 ac_cv_path_EGREP=$EGREP
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5228 $as_echo "$ac_cv_path_EGREP" >&6; }
5229 EGREP="$ac_cv_path_EGREP"
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5233 $as_echo_n "checking for ANSI C header files... " >&6; }
5234 if test "${ac_cv_header_stdc+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 #include <stdlib.h>
5240 #include <stdarg.h>
5241 #include <string.h>
5242 #include <float.h>
5245 main ()
5249 return 0;
5251 _ACEOF
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253 ac_cv_header_stdc=yes
5254 else
5255 ac_cv_header_stdc=no
5257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 if test $ac_cv_header_stdc = yes; then
5260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 #include <string.h>
5265 _ACEOF
5266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5267 $EGREP "memchr" >/dev/null 2>&1; then :
5269 else
5270 ac_cv_header_stdc=no
5272 rm -f conftest*
5276 if test $ac_cv_header_stdc = yes; then
5277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280 #include <stdlib.h>
5282 _ACEOF
5283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5284 $EGREP "free" >/dev/null 2>&1; then :
5286 else
5287 ac_cv_header_stdc=no
5289 rm -f conftest*
5293 if test $ac_cv_header_stdc = yes; then
5294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5295 if test "$cross_compiling" = yes; then :
5297 else
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300 #include <ctype.h>
5301 #include <stdlib.h>
5302 #if ((' ' & 0x0FF) == 0x020)
5303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5305 #else
5306 # define ISLOWER(c) \
5307 (('a' <= (c) && (c) <= 'i') \
5308 || ('j' <= (c) && (c) <= 'r') \
5309 || ('s' <= (c) && (c) <= 'z'))
5310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5311 #endif
5313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5315 main ()
5317 int i;
5318 for (i = 0; i < 256; i++)
5319 if (XOR (islower (i), ISLOWER (i))
5320 || toupper (i) != TOUPPER (i))
5321 return 2;
5322 return 0;
5324 _ACEOF
5325 if ac_fn_c_try_run "$LINENO"; then :
5327 else
5328 ac_cv_header_stdc=no
5330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5331 conftest.$ac_objext conftest.beam conftest.$ac_ext
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5337 $as_echo "$ac_cv_header_stdc" >&6; }
5338 if test $ac_cv_header_stdc = yes; then
5340 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5344 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5345 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5346 inttypes.h stdint.h unistd.h
5347 do :
5348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5351 eval as_val=\$$as_ac_Header
5352 if test "x$as_val" = x""yes; then :
5353 cat >>confdefs.h <<_ACEOF
5354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5355 _ACEOF
5359 done
5363 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5364 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5365 MINIX=yes
5366 else
5367 MINIX=
5371 if test "$MINIX" = yes; then
5373 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5376 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5379 $as_echo "#define _MINIX 1" >>confdefs.h
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5385 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5386 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5392 # define __EXTENSIONS__ 1
5393 $ac_includes_default
5395 main ()
5399 return 0;
5401 _ACEOF
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 ac_cv_safe_to_define___extensions__=yes
5404 else
5405 ac_cv_safe_to_define___extensions__=no
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5410 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5411 test $ac_cv_safe_to_define___extensions__ = yes &&
5412 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5414 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5416 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5418 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5420 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5423 ac_ext=c
5424 ac_cpp='$CPP $CPPFLAGS'
5425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5429 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5430 # On Suns, sometimes $CPP names a directory.
5431 if test -n "$CPP" && test -d "$CPP"; then
5432 CPP=
5434 if test -z "$CPP"; then
5435 if test "${ac_cv_prog_CPP+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 # Double quotes because CPP needs to be expanded
5439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5441 ac_preproc_ok=false
5442 for ac_c_preproc_warn_flag in '' yes
5444 # Use a header file that comes with gcc, so configuring glibc
5445 # with a fresh cross-compiler works.
5446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5447 # <limits.h> exists even on freestanding compilers.
5448 # On the NeXT, cc -E runs the code through the compiler's parser,
5449 # not just through cpp. "Syntax error" is here to catch this case.
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 #ifdef __STDC__
5453 # include <limits.h>
5454 #else
5455 # include <assert.h>
5456 #endif
5457 Syntax error
5458 _ACEOF
5459 if ac_fn_c_try_cpp "$LINENO"; then :
5461 else
5462 # Broken: fails on valid input.
5463 continue
5465 rm -f conftest.err conftest.$ac_ext
5467 # OK, works on sane cases. Now check whether nonexistent headers
5468 # can be detected and how.
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <ac_nonexistent.h>
5472 _ACEOF
5473 if ac_fn_c_try_cpp "$LINENO"; then :
5474 # Broken: success on invalid input.
5475 continue
5476 else
5477 # Passes both tests.
5478 ac_preproc_ok=:
5479 break
5481 rm -f conftest.err conftest.$ac_ext
5483 done
5484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5485 rm -f conftest.err conftest.$ac_ext
5486 if $ac_preproc_ok; then :
5487 break
5490 done
5491 ac_cv_prog_CPP=$CPP
5494 CPP=$ac_cv_prog_CPP
5495 else
5496 ac_cv_prog_CPP=$CPP
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5499 $as_echo "$CPP" >&6; }
5500 ac_preproc_ok=false
5501 for ac_c_preproc_warn_flag in '' yes
5503 # Use a header file that comes with gcc, so configuring glibc
5504 # with a fresh cross-compiler works.
5505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5506 # <limits.h> exists even on freestanding compilers.
5507 # On the NeXT, cc -E runs the code through the compiler's parser,
5508 # not just through cpp. "Syntax error" is here to catch this case.
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5511 #ifdef __STDC__
5512 # include <limits.h>
5513 #else
5514 # include <assert.h>
5515 #endif
5516 Syntax error
5517 _ACEOF
5518 if ac_fn_c_try_cpp "$LINENO"; then :
5520 else
5521 # Broken: fails on valid input.
5522 continue
5524 rm -f conftest.err conftest.$ac_ext
5526 # OK, works on sane cases. Now check whether nonexistent headers
5527 # can be detected and how.
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #include <ac_nonexistent.h>
5531 _ACEOF
5532 if ac_fn_c_try_cpp "$LINENO"; then :
5533 # Broken: success on invalid input.
5534 continue
5535 else
5536 # Passes both tests.
5537 ac_preproc_ok=:
5538 break
5540 rm -f conftest.err conftest.$ac_ext
5542 done
5543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5544 rm -f conftest.err conftest.$ac_ext
5545 if $ac_preproc_ok; then :
5547 else
5548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5550 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5551 See \`config.log' for more details." "$LINENO" 5; }
5554 ac_ext=c
5555 ac_cpp='$CPP $CPPFLAGS'
5556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5561 $as_echo_n "checking for inline... " >&6; }
5562 if test "${ac_cv_c_inline+set}" = set; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 ac_cv_c_inline=no
5566 for ac_kw in inline __inline__ __inline; do
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #ifndef __cplusplus
5570 typedef int foo_t;
5571 static $ac_kw foo_t static_foo () {return 0; }
5572 $ac_kw foo_t foo () {return 0; }
5573 #endif
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 ac_cv_c_inline=$ac_kw
5579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 test "$ac_cv_c_inline" != no && break
5581 done
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5585 $as_echo "$ac_cv_c_inline" >&6; }
5587 case $ac_cv_c_inline in
5588 inline | yes) ;;
5590 case $ac_cv_c_inline in
5591 no) ac_val=;;
5592 *) ac_val=$ac_cv_c_inline;;
5593 esac
5594 cat >>confdefs.h <<_ACEOF
5595 #ifndef __cplusplus
5596 #define inline $ac_val
5597 #endif
5598 _ACEOF
5600 esac
5603 # Check whether --enable-largefile was given.
5604 if test "${enable_largefile+set}" = set; then :
5605 enableval=$enable_largefile;
5608 if test "$enable_largefile" != no; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5611 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5612 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 ac_cv_sys_largefile_CC=no
5616 if test "$GCC" != yes; then
5617 ac_save_CC=$CC
5618 while :; do
5619 # IRIX 6.2 and later do not support large files by default,
5620 # so use the C compiler's -n32 option if that helps.
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 /* Check that off_t can represent 2**63 - 1 correctly.
5625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5626 since some C++ compilers masquerading as C compilers
5627 incorrectly reject 9223372036854775807. */
5628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5630 && LARGE_OFF_T % 2147483647 == 1)
5631 ? 1 : -1];
5633 main ()
5637 return 0;
5639 _ACEOF
5640 if ac_fn_c_try_compile "$LINENO"; then :
5641 break
5643 rm -f core conftest.err conftest.$ac_objext
5644 CC="$CC -n32"
5645 if ac_fn_c_try_compile "$LINENO"; then :
5646 ac_cv_sys_largefile_CC=' -n32'; break
5648 rm -f core conftest.err conftest.$ac_objext
5649 break
5650 done
5651 CC=$ac_save_CC
5652 rm -f conftest.$ac_ext
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5656 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5657 if test "$ac_cv_sys_largefile_CC" != no; then
5658 CC=$CC$ac_cv_sys_largefile_CC
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5662 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5663 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 while :; do
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <sys/types.h>
5670 /* Check that off_t can represent 2**63 - 1 correctly.
5671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5672 since some C++ compilers masquerading as C compilers
5673 incorrectly reject 9223372036854775807. */
5674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5676 && LARGE_OFF_T % 2147483647 == 1)
5677 ? 1 : -1];
5679 main ()
5683 return 0;
5685 _ACEOF
5686 if ac_fn_c_try_compile "$LINENO"; then :
5687 ac_cv_sys_file_offset_bits=no; break
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #define _FILE_OFFSET_BITS 64
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=64; break
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 ac_cv_sys_file_offset_bits=unknown
5715 break
5716 done
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5719 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5720 case $ac_cv_sys_file_offset_bits in #(
5721 no | unknown) ;;
5723 cat >>confdefs.h <<_ACEOF
5724 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5725 _ACEOF
5727 esac
5728 rm -rf conftest*
5729 if test $ac_cv_sys_file_offset_bits = unknown; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5731 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5732 if test "${ac_cv_sys_large_files+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 while :; do
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #include <sys/types.h>
5739 /* Check that off_t can represent 2**63 - 1 correctly.
5740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5741 since some C++ compilers masquerading as C compilers
5742 incorrectly reject 9223372036854775807. */
5743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5745 && LARGE_OFF_T % 2147483647 == 1)
5746 ? 1 : -1];
5748 main ()
5752 return 0;
5754 _ACEOF
5755 if ac_fn_c_try_compile "$LINENO"; then :
5756 ac_cv_sys_large_files=no; break
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #define _LARGE_FILES 1
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=1; break
5782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783 ac_cv_sys_large_files=unknown
5784 break
5785 done
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5788 $as_echo "$ac_cv_sys_large_files" >&6; }
5789 case $ac_cv_sys_large_files in #(
5790 no | unknown) ;;
5792 cat >>confdefs.h <<_ACEOF
5793 #define _LARGE_FILES $ac_cv_sys_large_files
5794 _ACEOF
5796 esac
5797 rm -rf conftest*
5802 # sizeof(char) is 1 by definition.
5803 # The cast to long int works around a bug in the HP C Compiler
5804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5806 # This bug is HP SR number 8606223364.
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5808 $as_echo_n "checking size of void *... " >&6; }
5809 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5814 else
5815 if test "$ac_cv_type_void_p" = yes; then
5816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5818 { as_fn_set_status 77
5819 as_fn_error "cannot compute sizeof (void *)
5820 See \`config.log' for more details." "$LINENO" 5; }; }
5821 else
5822 ac_cv_sizeof_void_p=0
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5828 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5832 cat >>confdefs.h <<_ACEOF
5833 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5834 _ACEOF
5837 # The cast to long int works around a bug in the HP C Compiler
5838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5840 # This bug is HP SR number 8606223364.
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5842 $as_echo_n "checking size of short... " >&6; }
5843 if test "${ac_cv_sizeof_short+set}" = set; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5848 else
5849 if test "$ac_cv_type_short" = yes; then
5850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5852 { as_fn_set_status 77
5853 as_fn_error "cannot compute sizeof (short)
5854 See \`config.log' for more details." "$LINENO" 5; }; }
5855 else
5856 ac_cv_sizeof_short=0
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5862 $as_echo "$ac_cv_sizeof_short" >&6; }
5866 cat >>confdefs.h <<_ACEOF
5867 #define SIZEOF_SHORT $ac_cv_sizeof_short
5868 _ACEOF
5871 # The cast to long int works around a bug in the HP C Compiler
5872 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5873 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5874 # This bug is HP SR number 8606223364.
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5876 $as_echo_n "checking size of int... " >&6; }
5877 if test "${ac_cv_sizeof_int+set}" = set; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5882 else
5883 if test "$ac_cv_type_int" = yes; then
5884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5886 { as_fn_set_status 77
5887 as_fn_error "cannot compute sizeof (int)
5888 See \`config.log' for more details." "$LINENO" 5; }; }
5889 else
5890 ac_cv_sizeof_int=0
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5896 $as_echo "$ac_cv_sizeof_int" >&6; }
5900 cat >>confdefs.h <<_ACEOF
5901 #define SIZEOF_INT $ac_cv_sizeof_int
5902 _ACEOF
5905 # The cast to long int works around a bug in the HP C Compiler
5906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5908 # This bug is HP SR number 8606223364.
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5910 $as_echo_n "checking size of long... " >&6; }
5911 if test "${ac_cv_sizeof_long+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5916 else
5917 if test "$ac_cv_type_long" = yes; then
5918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5920 { as_fn_set_status 77
5921 as_fn_error "cannot compute sizeof (long)
5922 See \`config.log' for more details." "$LINENO" 5; }; }
5923 else
5924 ac_cv_sizeof_long=0
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5930 $as_echo "$ac_cv_sizeof_long" >&6; }
5934 cat >>confdefs.h <<_ACEOF
5935 #define SIZEOF_LONG $ac_cv_sizeof_long
5936 _ACEOF
5939 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5940 if test "x$ac_cv_type_long_long" = x""yes; then :
5942 cat >>confdefs.h <<_ACEOF
5943 #define HAVE_LONG_LONG 1
5944 _ACEOF
5946 # The cast to long int works around a bug in the HP C Compiler
5947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5949 # This bug is HP SR number 8606223364.
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5951 $as_echo_n "checking size of long long... " >&6; }
5952 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5957 else
5958 if test "$ac_cv_type_long_long" = yes; then
5959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5961 { as_fn_set_status 77
5962 as_fn_error "cannot compute sizeof (long long)
5963 See \`config.log' for more details." "$LINENO" 5; }; }
5964 else
5965 ac_cv_sizeof_long_long=0
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5971 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5975 cat >>confdefs.h <<_ACEOF
5976 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5977 _ACEOF
5982 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5983 if test "x$ac_cv_type___int64" = x""yes; then :
5985 cat >>confdefs.h <<_ACEOF
5986 #define HAVE___INT64 1
5987 _ACEOF
5989 # The cast to long int works around a bug in the HP C Compiler
5990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5992 # This bug is HP SR number 8606223364.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5994 $as_echo_n "checking size of __int64... " >&6; }
5995 if test "${ac_cv_sizeof___int64+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6000 else
6001 if test "$ac_cv_type___int64" = yes; then
6002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6004 { as_fn_set_status 77
6005 as_fn_error "cannot compute sizeof (__int64)
6006 See \`config.log' for more details." "$LINENO" 5; }; }
6007 else
6008 ac_cv_sizeof___int64=0
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6014 $as_echo "$ac_cv_sizeof___int64" >&6; }
6018 cat >>confdefs.h <<_ACEOF
6019 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6020 _ACEOF
6025 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6026 case $ac_cv_c_int8_t in #(
6027 no|yes) ;; #(
6030 cat >>confdefs.h <<_ACEOF
6031 #define int8_t $ac_cv_c_int8_t
6032 _ACEOF
6034 esac
6036 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6037 case $ac_cv_c_int16_t in #(
6038 no|yes) ;; #(
6041 cat >>confdefs.h <<_ACEOF
6042 #define int16_t $ac_cv_c_int16_t
6043 _ACEOF
6045 esac
6047 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6048 case $ac_cv_c_int32_t in #(
6049 no|yes) ;; #(
6052 cat >>confdefs.h <<_ACEOF
6053 #define int32_t $ac_cv_c_int32_t
6054 _ACEOF
6056 esac
6058 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6059 case $ac_cv_c_int64_t in #(
6060 no|yes) ;; #(
6063 cat >>confdefs.h <<_ACEOF
6064 #define int64_t $ac_cv_c_int64_t
6065 _ACEOF
6067 esac
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6071 $as_echo_n "checking for long long int... " >&6; }
6072 if test "${ac_cv_type_long_long_int+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6078 /* For now, do not test the preprocessor; as of 2007 there are too many
6079 implementations with broken preprocessors. Perhaps this can
6080 be revisited in 2012. In the meantime, code should not expect
6081 #if to work with literals wider than 32 bits. */
6082 /* Test literals. */
6083 long long int ll = 9223372036854775807ll;
6084 long long int nll = -9223372036854775807LL;
6085 unsigned long long int ull = 18446744073709551615ULL;
6086 /* Test constant expressions. */
6087 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6088 ? 1 : -1)];
6089 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6090 ? 1 : -1)];
6091 int i = 63;
6093 main ()
6095 /* Test availability of runtime routines for shift and division. */
6096 long long int llmax = 9223372036854775807ll;
6097 unsigned long long int ullmax = 18446744073709551615ull;
6098 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6099 | (llmax / ll) | (llmax % ll)
6100 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6101 | (ullmax / ull) | (ullmax % ull));
6103 return 0;
6106 _ACEOF
6107 if ac_fn_c_try_link "$LINENO"; then :
6108 if test "$cross_compiling" = yes; then :
6109 ac_cv_type_long_long_int=yes
6110 else
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #include <limits.h>
6114 #ifndef LLONG_MAX
6115 # define HALF \
6116 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6117 # define LLONG_MAX (HALF - 1 + HALF)
6118 #endif
6120 main ()
6122 long long int n = 1;
6123 int i;
6124 for (i = 0; ; i++)
6126 long long int m = n << i;
6127 if (m >> i != n)
6128 return 1;
6129 if (LLONG_MAX / 2 < m)
6130 break;
6132 return 0;
6134 return 0;
6136 _ACEOF
6137 if ac_fn_c_try_run "$LINENO"; then :
6138 ac_cv_type_long_long_int=yes
6139 else
6140 ac_cv_type_long_long_int=no
6142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6143 conftest.$ac_objext conftest.beam conftest.$ac_ext
6146 else
6147 ac_cv_type_long_long_int=no
6149 rm -f core conftest.err conftest.$ac_objext \
6150 conftest$ac_exeext conftest.$ac_ext
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6153 $as_echo "$ac_cv_type_long_long_int" >&6; }
6154 if test $ac_cv_type_long_long_int = yes; then
6156 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6162 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6163 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6165 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6167 else
6168 test $ac_cv_type_long_long_int = yes \
6169 && ac_type='long long int' \
6170 || ac_type='long int'
6172 cat >>confdefs.h <<_ACEOF
6173 #define intmax_t $ac_type
6174 _ACEOF
6180 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6181 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6183 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6185 else
6186 for ac_type in 'int' 'long int' 'long long int'; do
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6189 $ac_includes_default
6191 main ()
6193 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6194 test_array [0] = 0
6197 return 0;
6199 _ACEOF
6200 if ac_fn_c_try_compile "$LINENO"; then :
6202 cat >>confdefs.h <<_ACEOF
6203 #define intptr_t $ac_type
6204 _ACEOF
6206 ac_type=
6208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209 test -z "$ac_type" && break
6210 done
6214 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6215 case $ac_cv_c_uint8_t in #(
6216 no|yes) ;; #(
6219 $as_echo "#define _UINT8_T 1" >>confdefs.h
6222 cat >>confdefs.h <<_ACEOF
6223 #define uint8_t $ac_cv_c_uint8_t
6224 _ACEOF
6226 esac
6228 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6229 case $ac_cv_c_uint16_t in #(
6230 no|yes) ;; #(
6234 cat >>confdefs.h <<_ACEOF
6235 #define uint16_t $ac_cv_c_uint16_t
6236 _ACEOF
6238 esac
6240 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6241 case $ac_cv_c_uint32_t in #(
6242 no|yes) ;; #(
6245 $as_echo "#define _UINT32_T 1" >>confdefs.h
6248 cat >>confdefs.h <<_ACEOF
6249 #define uint32_t $ac_cv_c_uint32_t
6250 _ACEOF
6252 esac
6254 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6255 case $ac_cv_c_uint64_t in #(
6256 no|yes) ;; #(
6259 $as_echo "#define _UINT64_T 1" >>confdefs.h
6262 cat >>confdefs.h <<_ACEOF
6263 #define uint64_t $ac_cv_c_uint64_t
6264 _ACEOF
6266 esac
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6270 $as_echo_n "checking for unsigned long long int... " >&6; }
6271 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6277 /* For now, do not test the preprocessor; as of 2007 there are too many
6278 implementations with broken preprocessors. Perhaps this can
6279 be revisited in 2012. In the meantime, code should not expect
6280 #if to work with literals wider than 32 bits. */
6281 /* Test literals. */
6282 long long int ll = 9223372036854775807ll;
6283 long long int nll = -9223372036854775807LL;
6284 unsigned long long int ull = 18446744073709551615ULL;
6285 /* Test constant expressions. */
6286 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6287 ? 1 : -1)];
6288 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6289 ? 1 : -1)];
6290 int i = 63;
6292 main ()
6294 /* Test availability of runtime routines for shift and division. */
6295 long long int llmax = 9223372036854775807ll;
6296 unsigned long long int ullmax = 18446744073709551615ull;
6297 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6298 | (llmax / ll) | (llmax % ll)
6299 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6300 | (ullmax / ull) | (ullmax % ull));
6302 return 0;
6305 _ACEOF
6306 if ac_fn_c_try_link "$LINENO"; then :
6307 ac_cv_type_unsigned_long_long_int=yes
6308 else
6309 ac_cv_type_unsigned_long_long_int=no
6311 rm -f core conftest.err conftest.$ac_objext \
6312 conftest$ac_exeext conftest.$ac_ext
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6315 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6316 if test $ac_cv_type_unsigned_long_long_int = yes; then
6318 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6324 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6325 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6327 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6329 else
6330 test $ac_cv_type_unsigned_long_long_int = yes \
6331 && ac_type='unsigned long long int' \
6332 || ac_type='unsigned long int'
6334 cat >>confdefs.h <<_ACEOF
6335 #define uintmax_t $ac_type
6336 _ACEOF
6342 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6343 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6345 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6347 else
6348 for ac_type in 'unsigned int' 'unsigned long int' \
6349 'unsigned long long int'; do
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 $ac_includes_default
6354 main ()
6356 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6357 test_array [0] = 0
6360 return 0;
6362 _ACEOF
6363 if ac_fn_c_try_compile "$LINENO"; then :
6365 cat >>confdefs.h <<_ACEOF
6366 #define uintptr_t $ac_type
6367 _ACEOF
6369 ac_type=
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 test -z "$ac_type" && break
6373 done
6390 # ---------------------
6391 # Warnings and checking
6392 # ---------------------
6394 # Check $CC warning features (if it's GCC).
6395 # We want to use -pedantic, but we don't want warnings about
6396 # * 'long long'
6397 # * variadic macros
6398 # * overlong strings
6399 # * C++11 narrowing conversions in { }
6400 # So, we only use -pedantic if we can disable those warnings.
6402 loose_warn=
6403 save_CFLAGS="$CFLAGS"
6404 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6405 # Do the check with the no- prefix removed since gcc silently
6406 # accepts any -Wno-* option on purpose
6407 case $real_option in
6408 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6409 *) option=$real_option ;;
6410 esac
6411 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6414 $as_echo_n "checking whether $CC supports $option... " >&6; }
6415 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 CFLAGS="$option"
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6423 main ()
6427 return 0;
6429 _ACEOF
6430 if ac_fn_c_try_compile "$LINENO"; then :
6431 eval "$as_acx_Woption=yes"
6432 else
6433 eval "$as_acx_Woption=no"
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438 eval ac_res=\$$as_acx_Woption
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6440 $as_echo "$ac_res" >&6; }
6441 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6442 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6444 done
6445 CFLAGS="$save_CFLAGS"
6447 c_loose_warn=
6448 save_CFLAGS="$CFLAGS"
6449 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6450 # Do the check with the no- prefix removed since gcc silently
6451 # accepts any -Wno-* option on purpose
6452 case $real_option in
6453 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6454 *) option=$real_option ;;
6455 esac
6456 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6459 $as_echo_n "checking whether $CC supports $option... " >&6; }
6460 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 CFLAGS="$option"
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6468 main ()
6472 return 0;
6474 _ACEOF
6475 if ac_fn_c_try_compile "$LINENO"; then :
6476 eval "$as_acx_Woption=yes"
6477 else
6478 eval "$as_acx_Woption=no"
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 eval ac_res=\$$as_acx_Woption
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6485 $as_echo "$ac_res" >&6; }
6486 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6487 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6489 done
6490 CFLAGS="$save_CFLAGS"
6492 strict_warn=
6493 save_CFLAGS="$CFLAGS"
6494 for real_option in -Wmissing-format-attribute; do
6495 # Do the check with the no- prefix removed since gcc silently
6496 # accepts any -Wno-* option on purpose
6497 case $real_option in
6498 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6499 *) option=$real_option ;;
6500 esac
6501 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6504 $as_echo_n "checking whether $CC supports $option... " >&6; }
6505 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 CFLAGS="$option"
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6513 main ()
6517 return 0;
6519 _ACEOF
6520 if ac_fn_c_try_compile "$LINENO"; then :
6521 eval "$as_acx_Woption=yes"
6522 else
6523 eval "$as_acx_Woption=no"
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 eval ac_res=\$$as_acx_Woption
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6530 $as_echo "$ac_res" >&6; }
6531 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6532 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6534 done
6535 CFLAGS="$save_CFLAGS"
6537 c_strict_warn=
6538 save_CFLAGS="$CFLAGS"
6539 for real_option in -Wold-style-definition -Wc++-compat; do
6540 # Do the check with the no- prefix removed since gcc silently
6541 # accepts any -Wno-* option on purpose
6542 case $real_option in
6543 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6544 *) option=$real_option ;;
6545 esac
6546 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6549 $as_echo_n "checking whether $CC supports $option... " >&6; }
6550 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 CFLAGS="$option"
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6558 main ()
6562 return 0;
6564 _ACEOF
6565 if ac_fn_c_try_compile "$LINENO"; then :
6566 eval "$as_acx_Woption=yes"
6567 else
6568 eval "$as_acx_Woption=no"
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 eval ac_res=\$$as_acx_Woption
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6575 $as_echo "$ac_res" >&6; }
6576 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6577 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6579 done
6580 CFLAGS="$save_CFLAGS"
6582 # Do the check with the no- prefix removed from the warning options
6583 # since gcc silently accepts any -Wno-* option on purpose
6584 if test "$GCC" = yes; then :
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6586 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6587 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 save_CFLAGS="$CFLAGS"
6591 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6596 main ()
6600 return 0;
6602 _ACEOF
6603 if ac_fn_c_try_compile "$LINENO"; then :
6604 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6605 else
6606 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 CFLAGS="$save_CFLAGS"
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6612 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6613 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6614 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6619 # Check whether --enable-werror-always was given.
6620 if test "${enable_werror_always+set}" = set; then :
6621 enableval=$enable_werror_always;
6622 else
6623 enable_werror_always=no
6626 if test $enable_werror_always = yes; then :
6627 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6632 # The above macros do nothing if the compiler is not GCC. However, the
6633 # Makefile has more goo to add other flags, so these variables are used
6634 # to enable warnings only for GCC.
6635 warn_cflags=
6636 warn_cxxflags=
6637 if test "x$GCC" = "xyes"; then
6638 warn_cflags='$(GCC_WARN_CFLAGS)'
6639 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6644 # Disable exceptions and RTTI if building with g++
6645 noexception_flags=
6646 save_CFLAGS="$CFLAGS"
6647 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6648 # Do the check with the no- prefix removed since gcc silently
6649 # accepts any -Wno-* option on purpose
6650 case $real_option in
6651 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6652 *) option=$real_option ;;
6653 esac
6654 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6657 $as_echo_n "checking whether $CC supports $option... " >&6; }
6658 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 CFLAGS="$option"
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6666 main ()
6670 return 0;
6672 _ACEOF
6673 if ac_fn_c_try_compile "$LINENO"; then :
6674 eval "$as_acx_Woption=yes"
6675 else
6676 eval "$as_acx_Woption=no"
6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681 eval ac_res=\$$as_acx_Woption
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6683 $as_echo "$ac_res" >&6; }
6684 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6685 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6687 done
6688 CFLAGS="$save_CFLAGS"
6691 # Enable expensive internal checks
6692 is_release=
6693 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6694 is_release=yes
6697 # Check whether --enable-checking was given.
6698 if test "${enable_checking+set}" = set; then :
6699 enableval=$enable_checking; ac_checking_flags="${enableval}"
6700 else
6702 # Determine the default checks.
6703 if test x$is_release = x ; then
6704 ac_checking_flags=yes
6705 else
6706 ac_checking_flags=release
6710 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6711 for check in release $ac_checking_flags
6713 case $check in
6714 # these set all the flags to specific states
6715 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6716 ac_fold_checking= ; ac_gc_checking=1 ;
6717 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6718 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6719 ac_tree_checking=1 ; ac_valgrind_checking= ;
6720 ac_types_checking=1 ;;
6721 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6722 ac_fold_checking= ; ac_gc_checking= ;
6723 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6724 ac_rtlflag_checking= ; ac_runtime_checking= ;
6725 ac_tree_checking= ; ac_valgrind_checking= ;
6726 ac_types_checking= ;;
6727 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6728 ac_fold_checking=1 ; ac_gc_checking=1 ;
6729 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6730 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6731 ac_tree_checking=1 ; ac_valgrind_checking= ;
6732 ac_types_checking=1 ;;
6733 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6734 ac_fold_checking= ; ac_gc_checking= ;
6735 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6736 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6737 ac_tree_checking= ; ac_valgrind_checking= ;
6738 ac_types_checking= ;;
6739 # these enable particular checks
6740 assert) ac_assert_checking=1 ;;
6741 df) ac_df_checking=1 ;;
6742 fold) ac_fold_checking=1 ;;
6743 gc) ac_gc_checking=1 ;;
6744 gcac) ac_gc_always_collect=1 ;;
6745 gimple) ac_gimple_checking=1 ;;
6746 misc) ac_checking=1 ;;
6747 rtl) ac_rtl_checking=1 ;;
6748 rtlflag) ac_rtlflag_checking=1 ;;
6749 runtime) ac_runtime_checking=1 ;;
6750 tree) ac_tree_checking=1 ;;
6751 types) ac_types_checking=1 ;;
6752 valgrind) ac_valgrind_checking=1 ;;
6753 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6754 esac
6755 done
6756 IFS="$ac_save_IFS"
6758 nocommon_flag=""
6759 if test x$ac_checking != x ; then
6761 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6763 nocommon_flag=-fno-common
6766 if test x$ac_df_checking != x ; then
6768 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6771 if test x$ac_assert_checking != x ; then
6773 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6776 if test x$ac_gimple_checking != x ; then
6778 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6782 if test x$ac_runtime_checking != x ; then
6784 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6787 if test x$ac_tree_checking != x ; then
6789 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6791 TREEBROWSER=tree-browser.o
6792 TREECHECKING=yes
6794 if test x$ac_types_checking != x ; then
6796 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6801 if test x$ac_rtl_checking != x ; then
6803 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6806 if test x$ac_rtlflag_checking != x ; then
6808 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6811 if test x$ac_gc_checking != x ; then
6813 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6816 if test x$ac_gc_always_collect != x ; then
6818 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6821 if test x$ac_fold_checking != x ; then
6823 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6826 valgrind_path_defines=
6827 valgrind_command=
6829 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6830 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6831 have_valgrind_h=yes
6832 else
6833 have_valgrind_h=no
6838 if test x$ac_valgrind_checking != x ; then
6839 # It is certainly possible that there's valgrind but no valgrind.h.
6840 # GCC relies on making annotations so we must have both.
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6842 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845 #include <valgrind/memcheck.h>
6846 #ifndef VALGRIND_DISCARD
6847 #error VALGRIND_DISCARD not defined
6848 #endif
6849 _ACEOF
6850 if ac_fn_c_try_cpp "$LINENO"; then :
6851 gcc_cv_header_valgrind_memcheck_h=yes
6852 else
6853 gcc_cv_header_valgrind_memcheck_h=no
6855 rm -f conftest.err conftest.$ac_ext
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6857 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6859 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h. */
6862 #include <memcheck.h>
6863 #ifndef VALGRIND_DISCARD
6864 #error VALGRIND_DISCARD not defined
6865 #endif
6866 _ACEOF
6867 if ac_fn_c_try_cpp "$LINENO"; then :
6868 gcc_cv_header_memcheck_h=yes
6869 else
6870 gcc_cv_header_memcheck_h=no
6872 rm -f conftest.err conftest.$ac_ext
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6874 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6876 # Prepare PATH_SEPARATOR.
6877 # The user is always right.
6878 if test "${PATH_SEPARATOR+set}" != set; then
6879 echo "#! /bin/sh" >conf$$.sh
6880 echo "exit 0" >>conf$$.sh
6881 chmod +x conf$$.sh
6882 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6883 PATH_SEPARATOR=';'
6884 else
6885 PATH_SEPARATOR=:
6887 rm -f conf$$.sh
6890 # Find out how to test for executable files. Don't use a zero-byte file,
6891 # as systems may use methods other than mode bits to determine executability.
6892 cat >conf$$.file <<_ASEOF
6893 #! /bin/sh
6894 exit 0
6895 _ASEOF
6896 chmod +x conf$$.file
6897 if test -x conf$$.file >/dev/null 2>&1; then
6898 ac_executable_p="test -x"
6899 else
6900 ac_executable_p="test -f"
6902 rm -f conf$$.file
6904 # Extract the first word of "valgrind", so it can be a program name with args.
6905 set dummy valgrind; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 case "$valgrind_path" in
6912 [\\/]* | ?:[\\/]*)
6913 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6916 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6917 for ac_dir in $PATH; do
6918 IFS="$ac_save_IFS"
6919 test -z "$ac_dir" && ac_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6922 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6923 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6924 break 2
6927 done
6928 done
6929 IFS="$ac_save_IFS"
6931 esac
6933 valgrind_path="$ac_cv_path_valgrind_path"
6934 if test -n "$valgrind_path"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6936 $as_echo "$valgrind_path" >&6; }
6937 else
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 $as_echo "no" >&6; }
6942 if test "x$valgrind_path" = "x" \
6943 || (test $have_valgrind_h = no \
6944 && test $gcc_cv_header_memcheck_h = no \
6945 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6946 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6948 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6949 valgrind_command="$valgrind_path -q"
6951 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6953 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6955 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6958 if test $gcc_cv_header_memcheck_h = yes; then
6960 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6967 # Enable code coverage collection
6968 # Check whether --enable-coverage was given.
6969 if test "${enable_coverage+set}" = set; then :
6970 enableval=$enable_coverage; case "${enableval}" in
6971 yes|noopt)
6972 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6974 opt)
6975 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6978 # a.k.a. --disable-coverage
6979 coverage_flags=""
6982 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6984 esac
6985 else
6986 coverage_flags=""
6991 # Check whether --enable-gather-detailed-mem-stats was given.
6992 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6993 enableval=$enable_gather_detailed_mem_stats;
6994 else
6995 enable_gather_detailed_mem_stats=no
6998 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7000 cat >>confdefs.h <<_ACEOF
7001 #define GATHER_STATISTICS $gather_stats
7002 _ACEOF
7005 # -------------------------------
7006 # Miscenalleous configure options
7007 # -------------------------------
7009 # With stabs
7011 # Check whether --with-stabs was given.
7012 if test "${with_stabs+set}" = set; then :
7013 withval=$with_stabs; stabs="$with_stabs"
7014 else
7015 stabs=no
7019 # Determine whether or not multilibs are enabled.
7020 # Check whether --enable-multilib was given.
7021 if test "${enable_multilib+set}" = set; then :
7022 enableval=$enable_multilib;
7023 else
7024 enable_multilib=yes
7029 # Determine whether or not multiarch is enabled.
7030 # Check whether --enable-multiarch was given.
7031 if test "${enable_multiarch+set}" = set; then :
7032 enableval=$enable_multiarch; case "${enableval}" in
7033 yes|no|auto) enable_multiarch=$enableval;;
7034 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7035 esac
7036 else
7037 enable_multiarch=auto
7040 if test x${enable_multiarch} = xauto; then
7041 if test x${with_native_system_header_dir} != x; then
7042 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7043 enable_multiarch=no
7045 if test x$host != x$target && test "x$with_sysroot" = x; then
7046 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7047 enable_multiarch=no
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7051 $as_echo_n "checking for multiarch configuration... " >&6; }
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7054 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7056 # needed for setting the multiarch name for soft-float/hard-float ABIs
7060 # Enable __cxa_atexit for C++.
7061 # Check whether --enable-__cxa_atexit was given.
7062 if test "${enable___cxa_atexit+set}" = set; then :
7063 enableval=$enable___cxa_atexit;
7067 # Enable C extension for decimal float if target supports it.
7069 # Check whether --enable-decimal-float was given.
7070 if test "${enable_decimal_float+set}" = set; then :
7071 enableval=$enable_decimal_float;
7072 case $enable_decimal_float in
7073 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7074 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7075 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7076 esac
7078 else
7080 case $target in
7081 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7082 i?86*-*-gnu* | \
7083 i?86*-*-mingw* | x86_64*-*-mingw* | \
7084 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7085 enable_decimal_float=yes
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7089 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7090 enable_decimal_float=no
7092 esac
7097 # x86's use BID format instead of DPD
7098 case x$enable_decimal_float in
7099 xyes)
7100 case $target in
7101 i?86*-*-* | x86_64*-*-*)
7102 enable_decimal_float=bid
7105 enable_decimal_float=dpd
7107 esac
7108 default_decimal_float=$enable_decimal_float
7110 xno)
7111 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7112 # dependency on libdecnumber.
7113 default_decimal_float=dpd
7115 esac
7120 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7122 cat >>confdefs.h <<_ACEOF
7123 #define ENABLE_DECIMAL_FLOAT $dfp
7124 _ACEOF
7127 # Use default_decimal_float for dependency.
7128 enable_decimal_float=$default_decimal_float
7130 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7132 cat >>confdefs.h <<_ACEOF
7133 #define ENABLE_DECIMAL_BID_FORMAT $bid
7134 _ACEOF
7137 # Enable C extension for fixed-point arithmetic.
7138 # Check whether --enable-fixed-point was given.
7139 if test "${enable_fixed_point+set}" = set; then :
7140 enableval=$enable_fixed_point;
7141 else
7143 case $target in
7144 arm*)
7145 enable_fixed_point=yes
7148 mips*-*-*)
7149 enable_fixed_point=yes
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7153 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7154 enable_fixed_point=no
7156 esac
7162 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7164 cat >>confdefs.h <<_ACEOF
7165 #define ENABLE_FIXED_POINT $fixedpoint
7166 _ACEOF
7169 # Enable threads
7170 # Pass with no value to take the default
7171 # Pass with a value to specify a thread package
7172 # Check whether --enable-threads was given.
7173 if test "${enable_threads+set}" = set; then :
7174 enableval=$enable_threads;
7175 else
7176 enable_threads=''
7180 # Check whether --enable-tls was given.
7181 if test "${enable_tls+set}" = set; then :
7182 enableval=$enable_tls;
7183 case $enable_tls in
7184 yes | no) ;;
7185 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7186 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7187 esac
7189 else
7190 enable_tls=''
7194 # Check whether --enable-objc-gc was given.
7195 if test "${enable_objc_gc+set}" = set; then :
7196 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7197 objc_boehm_gc=''
7198 else
7199 objc_boehm_gc=1
7201 else
7202 objc_boehm_gc=''
7207 # Check whether --with-dwarf2 was given.
7208 if test "${with_dwarf2+set}" = set; then :
7209 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7210 else
7211 dwarf2=no
7215 # Check whether --enable-shared was given.
7216 if test "${enable_shared+set}" = set; then :
7217 enableval=$enable_shared;
7218 case $enable_shared in
7219 yes | no) ;;
7221 enable_shared=no
7222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7223 for pkg in $enableval; do
7224 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7225 enable_shared=yes
7227 done
7228 IFS="$ac_save_ifs"
7230 esac
7232 else
7233 enable_shared=yes
7239 # Check whether --with-native-system-header-dir was given.
7240 if test "${with_native_system_header_dir+set}" = set; then :
7241 withval=$with_native_system_header_dir;
7242 case ${with_native_system_header_dir} in
7243 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7244 /* | [A-Za-z]:[\\/]*) ;;
7245 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7246 esac
7247 configured_native_system_header_dir="${withval}"
7249 else
7250 configured_native_system_header_dir=
7255 # Check whether --with-build-sysroot was given.
7256 if test "${with_build_sysroot+set}" = set; then :
7257 withval=$with_build_sysroot; if test x"$withval" != x ; then
7258 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7260 else
7261 SYSROOT_CFLAGS_FOR_TARGET=
7266 if test "x$prefix" = xNONE; then
7267 test_prefix=/usr/local
7268 else
7269 test_prefix=$prefix
7271 if test "x$exec_prefix" = xNONE; then
7272 test_exec_prefix=$test_prefix
7273 else
7274 test_exec_prefix=$exec_prefix
7278 # Check whether --with-sysroot was given.
7279 if test "${with_sysroot+set}" = set; then :
7280 withval=$with_sysroot;
7281 case ${with_sysroot} in
7282 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7283 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7284 esac
7286 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7287 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7289 case ${TARGET_SYSTEM_ROOT} in
7290 "${test_prefix}"|"${test_prefix}/"*|\
7291 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7292 '${prefix}'|'${prefix}/'*|\
7293 '${exec_prefix}'|'${exec_prefix}/'*)
7294 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7295 TARGET_SYSTEM_ROOT_DEFINE="$t"
7297 esac
7299 else
7301 TARGET_SYSTEM_ROOT=
7302 TARGET_SYSTEM_ROOT_DEFINE=
7303 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7312 # Check whether --with-specs was given.
7313 if test "${with_specs+set}" = set; then :
7314 withval=$with_specs; CONFIGURE_SPECS=$withval
7315 else
7316 CONFIGURE_SPECS=
7324 # Check whether --with-pkgversion was given.
7325 if test "${with_pkgversion+set}" = set; then :
7326 withval=$with_pkgversion; case "$withval" in
7327 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7328 no) PKGVERSION= ;;
7329 *) PKGVERSION="($withval) " ;;
7330 esac
7331 else
7332 PKGVERSION="(GCC) "
7340 # Check whether --with-bugurl was given.
7341 if test "${with_bugurl+set}" = set; then :
7342 withval=$with_bugurl; case "$withval" in
7343 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7344 no) BUGURL=
7346 *) BUGURL="$withval"
7348 esac
7349 else
7350 BUGURL="http://gcc.gnu.org/bugs.html"
7354 case ${BUGURL} in
7356 REPORT_BUGS_TO=
7357 REPORT_BUGS_TEXI=
7360 REPORT_BUGS_TO="<$BUGURL>"
7361 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7363 esac;
7368 # Sanity check enable_languages in case someone does not run the toplevel
7369 # configure # script.
7370 # Check whether --enable-languages was given.
7371 if test "${enable_languages+set}" = set; then :
7372 enableval=$enable_languages; case ,${enable_languages}, in
7373 ,,|,yes,)
7374 # go safe -- we cannot be much sure without the toplevel
7375 # configure's
7376 # analysis of which target libs are present and usable
7377 enable_languages=c
7379 *,all,*)
7380 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7382 *,c,*)
7385 enable_languages=c,${enable_languages}
7387 esac
7388 else
7389 enable_languages=c
7394 # Check whether --with-multilib-list was given.
7395 if test "${with_multilib_list+set}" = set; then :
7396 withval=$with_multilib_list; :
7397 else
7398 with_multilib_list=default
7402 # -------------------------
7403 # Checks for other programs
7404 # -------------------------
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7407 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7408 set x ${MAKE-make}
7409 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7410 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7413 cat >conftest.make <<\_ACEOF
7414 SHELL = /bin/sh
7415 all:
7416 @echo '@@@%%%=$(MAKE)=@@@%%%'
7417 _ACEOF
7418 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7419 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7420 *@@@%%%=?*=@@@%%%*)
7421 eval ac_cv_prog_make_${ac_make}_set=yes;;
7423 eval ac_cv_prog_make_${ac_make}_set=no;;
7424 esac
7425 rm -f conftest.make
7427 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7429 $as_echo "yes" >&6; }
7430 SET_MAKE=
7431 else
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7434 SET_MAKE="MAKE=${MAKE-make}"
7438 # Find some useful tools
7439 for ac_prog in gawk mawk nawk awk
7441 # Extract the first word of "$ac_prog", so it can be a program name with args.
7442 set dummy $ac_prog; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if test "${ac_cv_prog_AWK+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 if test -n "$AWK"; then
7449 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_prog_AWK="$ac_prog"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7462 done
7463 done
7464 IFS=$as_save_IFS
7468 AWK=$ac_cv_prog_AWK
7469 if test -n "$AWK"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7471 $as_echo "$AWK" >&6; }
7472 else
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7478 test -n "$AWK" && break
7479 done
7481 # We need awk to create options.c and options.h.
7482 # Bail out if it's missing.
7483 case ${AWK} in
7484 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7485 esac
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7488 $as_echo_n "checking whether ln -s works... " >&6; }
7489 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 rm -f conftestdata_t
7493 echo >conftestdata_f
7494 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7495 then
7496 gcc_cv_prog_LN_S="ln -s"
7497 else
7498 if ln conftestdata_f conftestdata_t 2>/dev/null
7499 then
7500 gcc_cv_prog_LN_S=ln
7501 else
7502 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7503 then
7504 gcc_cv_prog_LN_S="cp -p"
7505 else
7506 gcc_cv_prog_LN_S=cp
7510 rm -f conftestdata_f conftestdata_t
7513 LN_S="$gcc_cv_prog_LN_S"
7514 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7516 $as_echo "yes" >&6; }
7517 else
7518 if test "$gcc_cv_prog_LN_S" = "ln"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7520 $as_echo "no, using ln" >&6; }
7521 else
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7523 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7528 $as_echo_n "checking whether ln works... " >&6; }
7529 if test "${acx_cv_prog_LN+set}" = set; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 rm -f conftestdata_t
7533 echo >conftestdata_f
7534 if ln conftestdata_f conftestdata_t 2>/dev/null
7535 then
7536 acx_cv_prog_LN=ln
7537 else
7538 acx_cv_prog_LN=no
7540 rm -f conftestdata_f conftestdata_t
7543 if test $acx_cv_prog_LN = no; then
7544 LN="$LN_S"
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7546 $as_echo "no, using $LN" >&6; }
7547 else
7548 LN="$acx_cv_prog_LN"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7550 $as_echo "yes" >&6; }
7553 if test -n "$ac_tool_prefix"; then
7554 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7555 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$RANLIB"; then
7562 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7575 done
7576 done
7577 IFS=$as_save_IFS
7581 RANLIB=$ac_cv_prog_RANLIB
7582 if test -n "$RANLIB"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7584 $as_echo "$RANLIB" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7592 if test -z "$ac_cv_prog_RANLIB"; then
7593 ac_ct_RANLIB=$RANLIB
7594 # Extract the first word of "ranlib", so it can be a program name with args.
7595 set dummy ranlib; ac_word=$2
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597 $as_echo_n "checking for $ac_word... " >&6; }
7598 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 if test -n "$ac_ct_RANLIB"; then
7602 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7603 else
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_prog_ac_ct_RANLIB="ranlib"
7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7615 done
7616 done
7617 IFS=$as_save_IFS
7621 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7622 if test -n "$ac_ct_RANLIB"; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7624 $as_echo "$ac_ct_RANLIB" >&6; }
7625 else
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627 $as_echo "no" >&6; }
7630 if test "x$ac_ct_RANLIB" = x; then
7631 RANLIB=":"
7632 else
7633 case $cross_compiling:$ac_tool_warned in
7634 yes:)
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7637 ac_tool_warned=yes ;;
7638 esac
7639 RANLIB=$ac_ct_RANLIB
7641 else
7642 RANLIB="$ac_cv_prog_RANLIB"
7645 ranlib_flags=""
7648 # Find a good install program. We prefer a C program (faster),
7649 # so one script is as good as another. But avoid the broken or
7650 # incompatible versions:
7651 # SysV /etc/install, /usr/sbin/install
7652 # SunOS /usr/etc/install
7653 # IRIX /sbin/install
7654 # AIX /bin/install
7655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7657 # ./install, which can be erroneously created by make from ./install.sh.
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7659 $as_echo_n "checking for a BSD compatible install... " >&6; }
7660 if test -z "$INSTALL"; then
7661 if test "${ac_cv_path_install+set}" = set; then :
7662 $as_echo_n "(cached) " >&6
7663 else
7664 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7665 for ac_dir in $PATH; do
7666 # Account for people who put trailing slashes in PATH elements.
7667 case "$ac_dir/" in
7668 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7670 # OSF1 and SCO ODT 3.0 have their own names for install.
7671 for ac_prog in ginstall scoinst install; do
7672 if test -f $ac_dir/$ac_prog; then
7673 if test $ac_prog = install &&
7674 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7675 # AIX install. It has an incompatible calling convention.
7676 # OSF/1 installbsd also uses dspmsg, but is usable.
7678 else
7679 ac_cv_path_install="$ac_dir/$ac_prog -c"
7680 break 2
7683 done
7685 esac
7686 done
7687 IFS="$ac_save_IFS"
7690 if test "${ac_cv_path_install+set}" = set; then
7691 INSTALL="$ac_cv_path_install"
7692 else
7693 # As a last resort, use the slow shell script. We don't cache a
7694 # path for INSTALL within a source directory, because that will
7695 # break other packages using the cache if that directory is
7696 # removed, or if the path is relative.
7697 INSTALL="$ac_install_sh"
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7701 $as_echo "$INSTALL" >&6; }
7703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7704 # It thinks the first close brace ends the variable substitution.
7705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7707 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7710 # See if cmp has --ignore-initial.
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7712 $as_echo_n "checking for cmp's capabilities... " >&6; }
7713 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 echo abfoo >t1
7717 echo cdfoo >t2
7718 gcc_cv_prog_cmp_skip=slowcompare
7719 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7720 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7722 else
7723 gcc_cv_prog_cmp_skip=gnucompare
7726 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7727 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7728 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7730 else
7731 gcc_cv_prog_cmp_skip=fastcompare
7735 rm t1 t2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7739 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7740 make_compare_target=$gcc_cv_prog_cmp_skip
7744 # See if we have the mktemp command.
7745 # Extract the first word of "mktemp", so it can be a program name with args.
7746 set dummy mktemp; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 if test -n "$have_mktemp_command"; then
7753 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7754 else
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7758 IFS=$as_save_IFS
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7762 ac_cv_prog_have_mktemp_command="yes"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 break 2
7766 done
7767 done
7768 IFS=$as_save_IFS
7770 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7773 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7774 if test -n "$have_mktemp_command"; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7776 $as_echo "$have_mktemp_command" >&6; }
7777 else
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779 $as_echo "no" >&6; }
7784 # See if makeinfo has been installed and is modern enough
7785 # that we can use it.
7787 # Extract the first word of "makeinfo", so it can be a program name with args.
7788 set dummy makeinfo; ac_word=$2
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790 $as_echo_n "checking for $ac_word... " >&6; }
7791 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7792 $as_echo_n "(cached) " >&6
7793 else
7794 if test -n "$MAKEINFO"; then
7795 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7796 else
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7800 IFS=$as_save_IFS
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7804 ac_cv_prog_MAKEINFO="makeinfo"
7805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 break 2
7808 done
7809 done
7810 IFS=$as_save_IFS
7814 MAKEINFO=$ac_cv_prog_MAKEINFO
7815 if test -n "$MAKEINFO"; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7817 $as_echo "$MAKEINFO" >&6; }
7818 else
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7824 if test -n "$MAKEINFO"; then
7825 # Found it, now check the version.
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7827 $as_echo_n "checking for modern makeinfo... " >&6; }
7828 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7829 $as_echo_n "(cached) " >&6
7830 else
7831 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7832 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7834 case $ac_prog_version in
7835 '') gcc_cv_prog_makeinfo_modern=no;;
7836 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7837 *) gcc_cv_prog_makeinfo_modern=no;;
7838 esac
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7842 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7843 else
7844 gcc_cv_prog_makeinfo_modern=no
7846 if test $gcc_cv_prog_makeinfo_modern = no; then
7847 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7850 if test $gcc_cv_prog_makeinfo_modern = no; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7852 *** Makeinfo is missing or too old.
7853 *** Info documentation will not be built." >&5
7854 $as_echo "$as_me: WARNING:
7855 *** Makeinfo is missing or too old.
7856 *** Info documentation will not be built." >&2;}
7857 BUILD_INFO=
7858 else
7859 BUILD_INFO=info
7863 # Is pod2man recent enough to regenerate manpages?
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7865 $as_echo_n "checking for recent Pod::Man... " >&6; }
7866 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7868 $as_echo "yes" >&6; }
7869 GENERATED_MANPAGES=generated-manpages
7870 else
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7873 GENERATED_MANPAGES=
7877 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7879 # How about lex?
7880 for ac_prog in flex
7882 # Extract the first word of "$ac_prog", so it can be a program name with args.
7883 set dummy $ac_prog; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if test "${ac_cv_prog_FLEX+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 if test -n "$FLEX"; then
7890 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899 ac_cv_prog_FLEX="$ac_prog"
7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 break 2
7903 done
7904 done
7905 IFS=$as_save_IFS
7909 FLEX=$ac_cv_prog_FLEX
7910 if test -n "$FLEX"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7912 $as_echo "$FLEX" >&6; }
7913 else
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7919 test -n "$FLEX" && break
7920 done
7921 test -n "$FLEX" || FLEX="$MISSING flex"
7924 # Bison?
7925 for ac_prog in bison
7927 # Extract the first word of "$ac_prog", so it can be a program name with args.
7928 set dummy $ac_prog; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if test "${ac_cv_prog_BISON+set}" = set; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 if test -n "$BISON"; then
7935 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7936 else
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 for as_dir in $PATH
7940 IFS=$as_save_IFS
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7944 ac_cv_prog_BISON="$ac_prog"
7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 break 2
7948 done
7949 done
7950 IFS=$as_save_IFS
7954 BISON=$ac_cv_prog_BISON
7955 if test -n "$BISON"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7957 $as_echo "$BISON" >&6; }
7958 else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7964 test -n "$BISON" && break
7965 done
7966 test -n "$BISON" || BISON="$MISSING bison"
7969 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7970 # check for build == host before using them.
7972 # NM
7973 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7974 && test -d ../binutils ; then
7975 NM='${objdir}/../binutils/nm-new'
7976 else
7977 # Extract the first word of "nm", so it can be a program name with args.
7978 set dummy nm; ac_word=$2
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 $as_echo_n "checking for $ac_word... " >&6; }
7981 if test "${ac_cv_prog_NM+set}" = set; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 if test -n "$NM"; then
7985 ac_cv_prog_NM="$NM" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7994 ac_cv_prog_NM="nm"
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
7998 done
7999 done
8000 IFS=$as_save_IFS
8002 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8005 NM=$ac_cv_prog_NM
8006 if test -n "$NM"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8008 $as_echo "$NM" >&6; }
8009 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8017 # AR
8018 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8019 && test -d ../binutils ; then
8020 AR='${objdir}/../binutils/ar'
8021 else
8022 # Extract the first word of "ar", so it can be a program name with args.
8023 set dummy ar; ac_word=$2
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if test "${ac_cv_prog_AR+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 if test -n "$AR"; then
8030 ac_cv_prog_AR="$AR" # Let the user override the test.
8031 else
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 for as_dir in $PATH
8035 IFS=$as_save_IFS
8036 test -z "$as_dir" && as_dir=.
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039 ac_cv_prog_AR="ar"
8040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 break 2
8043 done
8044 done
8045 IFS=$as_save_IFS
8047 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8050 AR=$ac_cv_prog_AR
8051 if test -n "$AR"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8053 $as_echo "$AR" >&6; }
8054 else
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8063 # --------------------
8064 # Checks for C headers
8065 # --------------------
8067 # Need to reject headers which give warnings, so that the -Werror bootstrap
8068 # works later. *sigh* This needs to come before all header checks.
8070 ac_c_preproc_warn_flag=yes
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8073 $as_echo_n "checking for ANSI C header files... " >&6; }
8074 if test "${ac_cv_header_stdc+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8079 #include <stdlib.h>
8080 #include <stdarg.h>
8081 #include <string.h>
8082 #include <float.h>
8085 main ()
8089 return 0;
8091 _ACEOF
8092 if ac_fn_c_try_compile "$LINENO"; then :
8093 ac_cv_header_stdc=yes
8094 else
8095 ac_cv_header_stdc=no
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 if test $ac_cv_header_stdc = yes; then
8100 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8103 #include <string.h>
8105 _ACEOF
8106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8107 $EGREP "memchr" >/dev/null 2>&1; then :
8109 else
8110 ac_cv_header_stdc=no
8112 rm -f conftest*
8116 if test $ac_cv_header_stdc = yes; then
8117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 #include <stdlib.h>
8122 _ACEOF
8123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8124 $EGREP "free" >/dev/null 2>&1; then :
8126 else
8127 ac_cv_header_stdc=no
8129 rm -f conftest*
8133 if test $ac_cv_header_stdc = yes; then
8134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8135 if test "$cross_compiling" = yes; then :
8137 else
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8140 #include <ctype.h>
8141 #include <stdlib.h>
8142 #if ((' ' & 0x0FF) == 0x020)
8143 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8144 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8145 #else
8146 # define ISLOWER(c) \
8147 (('a' <= (c) && (c) <= 'i') \
8148 || ('j' <= (c) && (c) <= 'r') \
8149 || ('s' <= (c) && (c) <= 'z'))
8150 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8151 #endif
8153 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8155 main ()
8157 int i;
8158 for (i = 0; i < 256; i++)
8159 if (XOR (islower (i), ISLOWER (i))
8160 || toupper (i) != TOUPPER (i))
8161 return 2;
8162 return 0;
8164 _ACEOF
8165 if ac_fn_c_try_run "$LINENO"; then :
8167 else
8168 ac_cv_header_stdc=no
8170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8171 conftest.$ac_objext conftest.beam conftest.$ac_ext
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8177 $as_echo "$ac_cv_header_stdc" >&6; }
8178 if test $ac_cv_header_stdc = yes; then
8180 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8185 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8186 if test "${ac_cv_header_time+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8191 #include <sys/types.h>
8192 #include <sys/time.h>
8193 #include <time.h>
8196 main ()
8198 if ((struct tm *) 0)
8199 return 0;
8201 return 0;
8203 _ACEOF
8204 if ac_fn_c_try_compile "$LINENO"; then :
8205 ac_cv_header_time=yes
8206 else
8207 ac_cv_header_time=no
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8212 $as_echo "$ac_cv_header_time" >&6; }
8213 if test $ac_cv_header_time = yes; then
8215 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8220 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8221 if test "${gcc_cv_header_string+set}" = set; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8226 #include <string.h>
8227 #include <strings.h>
8229 main ()
8233 return 0;
8235 _ACEOF
8236 if ac_fn_c_try_compile "$LINENO"; then :
8237 gcc_cv_header_string=yes
8238 else
8239 gcc_cv_header_string=no
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8244 $as_echo "$gcc_cv_header_string" >&6; }
8245 if test $gcc_cv_header_string = yes; then
8247 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8252 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8253 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8258 #include <sys/types.h>
8259 #include <sys/wait.h>
8260 #ifndef WEXITSTATUS
8261 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8262 #endif
8263 #ifndef WIFEXITED
8264 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8265 #endif
8268 main ()
8270 int s;
8271 wait (&s);
8272 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8274 return 0;
8276 _ACEOF
8277 if ac_fn_c_try_compile "$LINENO"; then :
8278 ac_cv_header_sys_wait_h=yes
8279 else
8280 ac_cv_header_sys_wait_h=no
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8285 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8286 if test $ac_cv_header_sys_wait_h = yes; then
8288 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8292 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8293 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8294 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8295 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8296 do :
8297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8298 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8299 eval as_val=\$$as_ac_Header
8300 if test "x$as_val" = x""yes; then :
8301 cat >>confdefs.h <<_ACEOF
8302 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8303 _ACEOF
8306 done
8309 # Check for thread headers.
8310 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8311 if test "x$ac_cv_header_thread_h" = x""yes; then :
8312 have_thread_h=yes
8313 else
8314 have_thread_h=
8317 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8318 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8319 have_pthread_h=yes
8320 else
8321 have_pthread_h=
8325 # These tests can't be done till we know if we have limits.h.
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8327 $as_echo_n "checking for CHAR_BIT... " >&6; }
8328 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8329 $as_echo_n "(cached) " >&6
8330 else
8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332 /* end confdefs.h. */
8333 #ifdef HAVE_LIMITS_H
8334 #include <limits.h>
8335 #endif
8336 #ifdef CHAR_BIT
8337 found
8338 #endif
8339 _ACEOF
8340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8341 $EGREP "found" >/dev/null 2>&1; then :
8342 gcc_cv_decl_char_bit=yes
8343 else
8344 gcc_cv_decl_char_bit=no
8346 rm -f conftest*
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8351 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8352 if test $gcc_cv_decl_char_bit = no; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8354 $as_echo_n "checking number of bits in a byte... " >&6; }
8355 if test "${gcc_cv_c_nbby+set}" = set; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8359 gcc_cv_c_nbby=
8360 while test $i -lt 65; do
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8365 main ()
8367 switch(0) {
8368 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8369 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8372 return 0;
8374 _ACEOF
8375 if ac_fn_c_try_compile "$LINENO"; then :
8376 gcc_cv_c_nbby=$i; break
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 i=`expr $i + 1`
8380 done
8381 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8385 $as_echo "$gcc_cv_c_nbby" >&6; }
8386 if test $gcc_cv_c_nbby = failed; then
8387 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8388 else
8390 cat >>confdefs.h <<_ACEOF
8391 #define CHAR_BIT $gcc_cv_c_nbby
8392 _ACEOF
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8397 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8398 if test "${ac_cv_c_bigendian+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 ac_cv_c_bigendian=unknown
8402 # See if we're dealing with a universal compiler.
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8405 #ifndef __APPLE_CC__
8406 not a universal capable compiler
8407 #endif
8408 typedef int dummy;
8410 _ACEOF
8411 if ac_fn_c_try_compile "$LINENO"; then :
8413 # Check for potential -arch flags. It is not universal unless
8414 # there are at least two -arch flags with different values.
8415 ac_arch=
8416 ac_prev=
8417 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8418 if test -n "$ac_prev"; then
8419 case $ac_word in
8420 i?86 | x86_64 | ppc | ppc64)
8421 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8422 ac_arch=$ac_word
8423 else
8424 ac_cv_c_bigendian=universal
8425 break
8428 esac
8429 ac_prev=
8430 elif test "x$ac_word" = "x-arch"; then
8431 ac_prev=arch
8433 done
8435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8436 if test $ac_cv_c_bigendian = unknown; then
8437 # See if sys/param.h defines the BYTE_ORDER macro.
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #include <sys/types.h>
8441 #include <sys/param.h>
8444 main ()
8446 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8447 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8448 && LITTLE_ENDIAN)
8449 bogus endian macros
8450 #endif
8453 return 0;
8455 _ACEOF
8456 if ac_fn_c_try_compile "$LINENO"; then :
8457 # It does; now see whether it defined to BIG_ENDIAN or not.
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 #include <sys/types.h>
8461 #include <sys/param.h>
8464 main ()
8466 #if BYTE_ORDER != BIG_ENDIAN
8467 not big endian
8468 #endif
8471 return 0;
8473 _ACEOF
8474 if ac_fn_c_try_compile "$LINENO"; then :
8475 ac_cv_c_bigendian=yes
8476 else
8477 ac_cv_c_bigendian=no
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 if test $ac_cv_c_bigendian = unknown; then
8484 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8487 #include <limits.h>
8490 main ()
8492 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8493 bogus endian macros
8494 #endif
8497 return 0;
8499 _ACEOF
8500 if ac_fn_c_try_compile "$LINENO"; then :
8501 # It does; now see whether it defined to _BIG_ENDIAN or not.
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 #include <limits.h>
8507 main ()
8509 #ifndef _BIG_ENDIAN
8510 not big endian
8511 #endif
8514 return 0;
8516 _ACEOF
8517 if ac_fn_c_try_compile "$LINENO"; then :
8518 ac_cv_c_bigendian=yes
8519 else
8520 ac_cv_c_bigendian=no
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 if test $ac_cv_c_bigendian = unknown; then
8527 # Compile a test program.
8528 if test "$cross_compiling" = yes; then :
8529 # Try to guess by grepping values from an object file.
8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8532 short int ascii_mm[] =
8533 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8534 short int ascii_ii[] =
8535 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8536 int use_ascii (int i) {
8537 return ascii_mm[i] + ascii_ii[i];
8539 short int ebcdic_ii[] =
8540 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8541 short int ebcdic_mm[] =
8542 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8543 int use_ebcdic (int i) {
8544 return ebcdic_mm[i] + ebcdic_ii[i];
8546 extern int foo;
8549 main ()
8551 return use_ascii (foo) == use_ebcdic (foo);
8553 return 0;
8555 _ACEOF
8556 if ac_fn_c_try_compile "$LINENO"; then :
8557 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8558 ac_cv_c_bigendian=yes
8560 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8561 if test "$ac_cv_c_bigendian" = unknown; then
8562 ac_cv_c_bigendian=no
8563 else
8564 # finding both strings is unlikely to happen, but who knows?
8565 ac_cv_c_bigendian=unknown
8569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570 else
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8573 $ac_includes_default
8575 main ()
8578 /* Are we little or big endian? From Harbison&Steele. */
8579 union
8581 long int l;
8582 char c[sizeof (long int)];
8583 } u;
8584 u.l = 1;
8585 return u.c[sizeof (long int) - 1] == 1;
8588 return 0;
8590 _ACEOF
8591 if ac_fn_c_try_run "$LINENO"; then :
8592 ac_cv_c_bigendian=no
8593 else
8594 ac_cv_c_bigendian=yes
8596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8597 conftest.$ac_objext conftest.beam conftest.$ac_ext
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8603 $as_echo "$ac_cv_c_bigendian" >&6; }
8604 case $ac_cv_c_bigendian in #(
8605 yes)
8606 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8607 ;; #(
8609 ;; #(
8610 universal)
8612 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8614 ;; #(
8616 as_fn_error "unknown endianness
8617 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8618 esac
8621 # ----------------------
8622 # Checks for C++ headers
8623 # ----------------------
8625 ac_ext=cpp
8626 ac_cpp='$CXXCPP $CPPFLAGS'
8627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8631 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8632 if test -z "$CXXCPP"; then
8633 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 # Double quotes because CXXCPP needs to be expanded
8637 for CXXCPP in "$CXX -E" "/lib/cpp"
8639 ac_preproc_ok=false
8640 for ac_cxx_preproc_warn_flag in '' yes
8642 # Use a header file that comes with gcc, so configuring glibc
8643 # with a fresh cross-compiler works.
8644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8645 # <limits.h> exists even on freestanding compilers.
8646 # On the NeXT, cc -E runs the code through the compiler's parser,
8647 # not just through cpp. "Syntax error" is here to catch this case.
8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8650 #ifdef __STDC__
8651 # include <limits.h>
8652 #else
8653 # include <assert.h>
8654 #endif
8655 Syntax error
8656 _ACEOF
8657 if ac_fn_cxx_try_cpp "$LINENO"; then :
8659 else
8660 # Broken: fails on valid input.
8661 continue
8663 rm -f conftest.err conftest.$ac_ext
8665 # OK, works on sane cases. Now check whether nonexistent headers
8666 # can be detected and how.
8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8669 #include <ac_nonexistent.h>
8670 _ACEOF
8671 if ac_fn_cxx_try_cpp "$LINENO"; then :
8672 # Broken: success on invalid input.
8673 continue
8674 else
8675 # Passes both tests.
8676 ac_preproc_ok=:
8677 break
8679 rm -f conftest.err conftest.$ac_ext
8681 done
8682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8683 rm -f conftest.err conftest.$ac_ext
8684 if $ac_preproc_ok; then :
8685 break
8688 done
8689 ac_cv_prog_CXXCPP=$CXXCPP
8692 CXXCPP=$ac_cv_prog_CXXCPP
8693 else
8694 ac_cv_prog_CXXCPP=$CXXCPP
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8697 $as_echo "$CXXCPP" >&6; }
8698 ac_preproc_ok=false
8699 for ac_cxx_preproc_warn_flag in '' yes
8701 # Use a header file that comes with gcc, so configuring glibc
8702 # with a fresh cross-compiler works.
8703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8704 # <limits.h> exists even on freestanding compilers.
8705 # On the NeXT, cc -E runs the code through the compiler's parser,
8706 # not just through cpp. "Syntax error" is here to catch this case.
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8709 #ifdef __STDC__
8710 # include <limits.h>
8711 #else
8712 # include <assert.h>
8713 #endif
8714 Syntax error
8715 _ACEOF
8716 if ac_fn_cxx_try_cpp "$LINENO"; then :
8718 else
8719 # Broken: fails on valid input.
8720 continue
8722 rm -f conftest.err conftest.$ac_ext
8724 # OK, works on sane cases. Now check whether nonexistent headers
8725 # can be detected and how.
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728 #include <ac_nonexistent.h>
8729 _ACEOF
8730 if ac_fn_cxx_try_cpp "$LINENO"; then :
8731 # Broken: success on invalid input.
8732 continue
8733 else
8734 # Passes both tests.
8735 ac_preproc_ok=:
8736 break
8738 rm -f conftest.err conftest.$ac_ext
8740 done
8741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8742 rm -f conftest.err conftest.$ac_ext
8743 if $ac_preproc_ok; then :
8745 else
8746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8749 See \`config.log' for more details." >&5
8750 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8751 See \`config.log' for more details." >&2;}; }
8754 ac_ext=c
8755 ac_cpp='$CPP $CPPFLAGS'
8756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8761 ac_ext=cpp
8762 ac_cpp='$CXXCPP $CPPFLAGS'
8763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8770 for ac_header in unordered_map
8771 do :
8772 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8773 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8774 cat >>confdefs.h <<_ACEOF
8775 #define HAVE_UNORDERED_MAP 1
8776 _ACEOF
8779 done
8781 for ac_header in tr1/unordered_map
8782 do :
8783 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8784 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8785 cat >>confdefs.h <<_ACEOF
8786 #define HAVE_TR1_UNORDERED_MAP 1
8787 _ACEOF
8790 done
8792 for ac_header in ext/hash_map
8793 do :
8794 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8795 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8796 cat >>confdefs.h <<_ACEOF
8797 #define HAVE_EXT_HASH_MAP 1
8798 _ACEOF
8801 done
8804 ac_ext=c
8805 ac_cpp='$CPP $CPPFLAGS'
8806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8811 # --------
8812 # UNSORTED
8813 # --------
8816 # These libraries may be used by collect2.
8817 # We may need a special search path to get them linked.
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8819 $as_echo_n "checking for collect2 libraries... " >&6; }
8820 if test "${gcc_cv_collect2_libs+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
8822 else
8823 save_LIBS="$LIBS"
8824 for libs in '' -lld -lmld \
8825 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8826 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8828 LIBS="$libs"
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8832 /* Override any GCC internal prototype to avoid an error.
8833 Use char because int might match the return type of a GCC
8834 builtin and then its argument prototype would still apply. */
8835 #ifdef __cplusplus
8836 extern "C"
8837 #endif
8838 char ldopen ();
8840 main ()
8842 return ldopen ();
8844 return 0;
8846 _ACEOF
8847 if ac_fn_c_try_link "$LINENO"; then :
8848 gcc_cv_collect2_libs="$libs"; break
8850 rm -f core conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
8852 done
8853 LIBS="$save_LIBS"
8854 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8857 $as_echo "$gcc_cv_collect2_libs" >&6; }
8858 case $gcc_cv_collect2_libs in
8859 "none required") ;;
8860 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8861 esac
8864 # When building Ada code on Alpha, we need exc_resume which is usually in
8865 # -lexc. So test for it.
8866 save_LIBS="$LIBS"
8867 LIBS=
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8869 $as_echo_n "checking for library containing exc_resume... " >&6; }
8870 if test "${ac_cv_search_exc_resume+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 ac_func_search_save_LIBS=$LIBS
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8877 /* Override any GCC internal prototype to avoid an error.
8878 Use char because int might match the return type of a GCC
8879 builtin and then its argument prototype would still apply. */
8880 #ifdef __cplusplus
8881 extern "C"
8882 #endif
8883 char exc_resume ();
8885 main ()
8887 return exc_resume ();
8889 return 0;
8891 _ACEOF
8892 for ac_lib in '' exc; do
8893 if test -z "$ac_lib"; then
8894 ac_res="none required"
8895 else
8896 ac_res=-l$ac_lib
8897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8899 if ac_fn_c_try_link "$LINENO"; then :
8900 ac_cv_search_exc_resume=$ac_res
8902 rm -f core conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext
8904 if test "${ac_cv_search_exc_resume+set}" = set; then :
8905 break
8907 done
8908 if test "${ac_cv_search_exc_resume+set}" = set; then :
8910 else
8911 ac_cv_search_exc_resume=no
8913 rm conftest.$ac_ext
8914 LIBS=$ac_func_search_save_LIBS
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8917 $as_echo "$ac_cv_search_exc_resume" >&6; }
8918 ac_res=$ac_cv_search_exc_resume
8919 if test "$ac_res" != no; then :
8920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8924 GNAT_LIBEXC="$LIBS"
8925 LIBS="$save_LIBS"
8928 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8929 save_LIBS="$LIBS"
8930 LIBS=
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8932 $as_echo_n "checking for library containing kstat_open... " >&6; }
8933 if test "${ac_cv_search_kstat_open+set}" = set; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 ac_func_search_save_LIBS=$LIBS
8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8940 /* Override any GCC internal prototype to avoid an error.
8941 Use char because int might match the return type of a GCC
8942 builtin and then its argument prototype would still apply. */
8943 #ifdef __cplusplus
8944 extern "C"
8945 #endif
8946 char kstat_open ();
8948 main ()
8950 return kstat_open ();
8952 return 0;
8954 _ACEOF
8955 for ac_lib in '' kstat; do
8956 if test -z "$ac_lib"; then
8957 ac_res="none required"
8958 else
8959 ac_res=-l$ac_lib
8960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8962 if ac_fn_c_try_link "$LINENO"; then :
8963 ac_cv_search_kstat_open=$ac_res
8965 rm -f core conftest.err conftest.$ac_objext \
8966 conftest$ac_exeext
8967 if test "${ac_cv_search_kstat_open+set}" = set; then :
8968 break
8970 done
8971 if test "${ac_cv_search_kstat_open+set}" = set; then :
8973 else
8974 ac_cv_search_kstat_open=no
8976 rm conftest.$ac_ext
8977 LIBS=$ac_func_search_save_LIBS
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8980 $as_echo "$ac_cv_search_kstat_open" >&6; }
8981 ac_res=$ac_cv_search_kstat_open
8982 if test "$ac_res" != no; then :
8983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8987 EXTRA_GCC_LIBS="$LIBS"
8988 LIBS="$save_LIBS"
8991 # Some systems put ldexp and frexp in libm instead of libc; assume
8992 # they're both in the same place. jcf-dump needs them.
8993 save_LIBS="$LIBS"
8994 LIBS=
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8996 $as_echo_n "checking for library containing ldexp... " >&6; }
8997 if test "${ac_cv_search_ldexp+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 ac_func_search_save_LIBS=$LIBS
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9004 /* Override any GCC internal prototype to avoid an error.
9005 Use char because int might match the return type of a GCC
9006 builtin and then its argument prototype would still apply. */
9007 #ifdef __cplusplus
9008 extern "C"
9009 #endif
9010 char ldexp ();
9012 main ()
9014 return ldexp ();
9016 return 0;
9018 _ACEOF
9019 for ac_lib in '' m; do
9020 if test -z "$ac_lib"; then
9021 ac_res="none required"
9022 else
9023 ac_res=-l$ac_lib
9024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9026 if ac_fn_c_try_link "$LINENO"; then :
9027 ac_cv_search_ldexp=$ac_res
9029 rm -f core conftest.err conftest.$ac_objext \
9030 conftest$ac_exeext
9031 if test "${ac_cv_search_ldexp+set}" = set; then :
9032 break
9034 done
9035 if test "${ac_cv_search_ldexp+set}" = set; then :
9037 else
9038 ac_cv_search_ldexp=no
9040 rm conftest.$ac_ext
9041 LIBS=$ac_func_search_save_LIBS
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9044 $as_echo "$ac_cv_search_ldexp" >&6; }
9045 ac_res=$ac_cv_search_ldexp
9046 if test "$ac_res" != no; then :
9047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9051 LDEXP_LIB="$LIBS"
9052 LIBS="$save_LIBS"
9055 # Use <inttypes.h> only if it exists,
9056 # doesn't clash with <sys/types.h>, and declares intmax_t.
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9058 $as_echo_n "checking for inttypes.h... " >&6; }
9059 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9064 #include <sys/types.h>
9065 #include <inttypes.h>
9067 main ()
9069 intmax_t i = -1;
9071 return 0;
9073 _ACEOF
9074 if ac_fn_c_try_compile "$LINENO"; then :
9075 gcc_cv_header_inttypes_h=yes
9076 else
9077 gcc_cv_header_inttypes_h=no
9079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9083 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9084 if test $gcc_cv_header_inttypes_h = yes; then
9086 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9092 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9093 sysconf strsignal getrusage nl_langinfo \
9094 gettimeofday mbstowcs wcswidth mmap setlocale \
9095 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
9096 do :
9097 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9098 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9099 eval as_val=\$$as_ac_var
9100 if test "x$as_val" = x""yes; then :
9101 cat >>confdefs.h <<_ACEOF
9102 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9103 _ACEOF
9106 done
9109 if test x$ac_cv_func_mbstowcs = xyes; then
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9111 $as_echo_n "checking whether mbstowcs works... " >&6; }
9112 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 if test "$cross_compiling" = yes; then :
9116 gcc_cv_func_mbstowcs_works=yes
9117 else
9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9120 #include <stdlib.h>
9121 int main()
9123 mbstowcs(0, "", 0);
9124 return 0;
9126 _ACEOF
9127 if ac_fn_c_try_run "$LINENO"; then :
9128 gcc_cv_func_mbstowcs_works=yes
9129 else
9130 gcc_cv_func_mbstowcs_works=no
9132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9133 conftest.$ac_objext conftest.beam conftest.$ac_ext
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9138 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9139 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9141 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9146 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9147 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9149 else
9151 cat >>confdefs.h <<_ACEOF
9152 #define ssize_t int
9153 _ACEOF
9157 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9158 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9160 else
9162 cat >>confdefs.h <<_ACEOF
9163 #define caddr_t char *
9164 _ACEOF
9170 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9171 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9172 gcc_header_sys_mman_h=yes
9173 else
9174 gcc_header_sys_mman_h=no
9177 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9178 if test "x$ac_cv_func_mmap" = x""yes; then :
9179 gcc_func_mmap=yes
9180 else
9181 gcc_func_mmap=no
9184 if test "$gcc_header_sys_mman_h" != yes \
9185 || test "$gcc_func_mmap" != yes; then
9186 gcc_cv_func_mmap_file=no
9187 gcc_cv_func_mmap_dev_zero=no
9188 gcc_cv_func_mmap_anon=no
9189 else
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9191 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9192 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 # Add a system to this blacklist if
9196 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9197 # memory area containing the same data that you'd get if you applied
9198 # read() to the same fd. The only system known to have a problem here
9199 # is VMS, where text files have record structure.
9200 case "$host_os" in
9201 *vms* | ultrix*)
9202 gcc_cv_func_mmap_file=no ;;
9204 gcc_cv_func_mmap_file=yes;;
9205 esac
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9208 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9210 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9211 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 # Add a system to this blacklist if it has mmap() but /dev/zero
9215 # does not exist, or if mmapping /dev/zero does not give anonymous
9216 # zeroed pages with both the following properties:
9217 # 1. If you map N consecutive pages in with one call, and then
9218 # unmap any subset of those pages, the pages that were not
9219 # explicitly unmapped remain accessible.
9220 # 2. If you map two adjacent blocks of memory and then unmap them
9221 # both at once, they must both go away.
9222 # Systems known to be in this category are Windows (all variants),
9223 # VMS, and Darwin.
9224 case "$host_os" in
9225 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9226 gcc_cv_func_mmap_dev_zero=no ;;
9228 gcc_cv_func_mmap_dev_zero=yes;;
9229 esac
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9232 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9234 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9236 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9237 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
9239 else
9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9242 #include <sys/types.h>
9243 #include <sys/mman.h>
9244 #include <unistd.h>
9246 #ifndef MAP_ANONYMOUS
9247 #define MAP_ANONYMOUS MAP_ANON
9248 #endif
9251 main ()
9253 int n = MAP_ANONYMOUS;
9255 return 0;
9257 _ACEOF
9258 if ac_fn_c_try_compile "$LINENO"; then :
9259 gcc_cv_decl_map_anon=yes
9260 else
9261 gcc_cv_decl_map_anon=no
9263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9266 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9268 if test $gcc_cv_decl_map_anon = no; then
9269 gcc_cv_func_mmap_anon=no
9270 else
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9272 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9273 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9274 $as_echo_n "(cached) " >&6
9275 else
9276 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9277 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9278 # doesn't give anonymous zeroed pages with the same properties listed
9279 # above for use of /dev/zero.
9280 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9281 case "$host_os" in
9282 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9283 gcc_cv_func_mmap_anon=no ;;
9285 gcc_cv_func_mmap_anon=yes;;
9286 esac
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9289 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9293 if test $gcc_cv_func_mmap_file = yes; then
9295 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9298 if test $gcc_cv_func_mmap_dev_zero = yes; then
9300 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9303 if test $gcc_cv_func_mmap_anon = yes; then
9305 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9310 case "${host}" in
9311 *-*-*vms*)
9312 # Under VMS, vfork works very differently than on Unix. The standard test
9313 # won't work, and it isn't easily adaptable. It makes more sense to
9314 # just force it.
9315 ac_cv_func_vfork_works=yes
9317 esac
9318 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9319 if test "x$ac_cv_type_pid_t" = x""yes; then :
9321 else
9323 cat >>confdefs.h <<_ACEOF
9324 #define pid_t int
9325 _ACEOF
9329 for ac_header in vfork.h
9330 do :
9331 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9332 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9333 cat >>confdefs.h <<_ACEOF
9334 #define HAVE_VFORK_H 1
9335 _ACEOF
9338 done
9340 for ac_func in fork vfork
9341 do :
9342 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9343 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9344 eval as_val=\$$as_ac_var
9345 if test "x$as_val" = x""yes; then :
9346 cat >>confdefs.h <<_ACEOF
9347 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9348 _ACEOF
9351 done
9353 if test "x$ac_cv_func_fork" = xyes; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9355 $as_echo_n "checking for working fork... " >&6; }
9356 if test "${ac_cv_func_fork_works+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 if test "$cross_compiling" = yes; then :
9360 ac_cv_func_fork_works=cross
9361 else
9362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9364 $ac_includes_default
9366 main ()
9369 /* By Ruediger Kuhlmann. */
9370 return fork () < 0;
9373 return 0;
9375 _ACEOF
9376 if ac_fn_c_try_run "$LINENO"; then :
9377 ac_cv_func_fork_works=yes
9378 else
9379 ac_cv_func_fork_works=no
9381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9382 conftest.$ac_objext conftest.beam conftest.$ac_ext
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9387 $as_echo "$ac_cv_func_fork_works" >&6; }
9389 else
9390 ac_cv_func_fork_works=$ac_cv_func_fork
9392 if test "x$ac_cv_func_fork_works" = xcross; then
9393 case $host in
9394 *-*-amigaos* | *-*-msdosdjgpp*)
9395 # Override, as these systems have only a dummy fork() stub
9396 ac_cv_func_fork_works=no
9399 ac_cv_func_fork_works=yes
9401 esac
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9403 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9405 ac_cv_func_vfork_works=$ac_cv_func_vfork
9406 if test "x$ac_cv_func_vfork" = xyes; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9408 $as_echo_n "checking for working vfork... " >&6; }
9409 if test "${ac_cv_func_vfork_works+set}" = set; then :
9410 $as_echo_n "(cached) " >&6
9411 else
9412 if test "$cross_compiling" = yes; then :
9413 ac_cv_func_vfork_works=cross
9414 else
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9417 /* Thanks to Paul Eggert for this test. */
9418 $ac_includes_default
9419 #include <sys/wait.h>
9420 #ifdef HAVE_VFORK_H
9421 # include <vfork.h>
9422 #endif
9423 /* On some sparc systems, changes by the child to local and incoming
9424 argument registers are propagated back to the parent. The compiler
9425 is told about this with #include <vfork.h>, but some compilers
9426 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9427 static variable whose address is put into a register that is
9428 clobbered by the vfork. */
9429 static void
9430 #ifdef __cplusplus
9431 sparc_address_test (int arg)
9432 # else
9433 sparc_address_test (arg) int arg;
9434 #endif
9436 static pid_t child;
9437 if (!child) {
9438 child = vfork ();
9439 if (child < 0) {
9440 perror ("vfork");
9441 _exit(2);
9443 if (!child) {
9444 arg = getpid();
9445 write(-1, "", 0);
9446 _exit (arg);
9452 main ()
9454 pid_t parent = getpid ();
9455 pid_t child;
9457 sparc_address_test (0);
9459 child = vfork ();
9461 if (child == 0) {
9462 /* Here is another test for sparc vfork register problems. This
9463 test uses lots of local variables, at least as many local
9464 variables as main has allocated so far including compiler
9465 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9466 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9467 reuse the register of parent for one of the local variables,
9468 since it will think that parent can't possibly be used any more
9469 in this routine. Assigning to the local variable will thus
9470 munge parent in the parent process. */
9471 pid_t
9472 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9473 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9474 /* Convince the compiler that p..p7 are live; otherwise, it might
9475 use the same hardware register for all 8 local variables. */
9476 if (p != p1 || p != p2 || p != p3 || p != p4
9477 || p != p5 || p != p6 || p != p7)
9478 _exit(1);
9480 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9481 from child file descriptors. If the child closes a descriptor
9482 before it execs or exits, this munges the parent's descriptor
9483 as well. Test for this by closing stdout in the child. */
9484 _exit(close(fileno(stdout)) != 0);
9485 } else {
9486 int status;
9487 struct stat st;
9489 while (wait(&status) != child)
9491 return (
9492 /* Was there some problem with vforking? */
9493 child < 0
9495 /* Did the child fail? (This shouldn't happen.) */
9496 || status
9498 /* Did the vfork/compiler bug occur? */
9499 || parent != getpid()
9501 /* Did the file descriptor bug occur? */
9502 || fstat(fileno(stdout), &st) != 0
9506 _ACEOF
9507 if ac_fn_c_try_run "$LINENO"; then :
9508 ac_cv_func_vfork_works=yes
9509 else
9510 ac_cv_func_vfork_works=no
9512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9513 conftest.$ac_objext conftest.beam conftest.$ac_ext
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9518 $as_echo "$ac_cv_func_vfork_works" >&6; }
9521 if test "x$ac_cv_func_fork_works" = xcross; then
9522 ac_cv_func_vfork_works=$ac_cv_func_vfork
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9524 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9527 if test "x$ac_cv_func_vfork_works" = xyes; then
9529 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9531 else
9533 $as_echo "#define vfork fork" >>confdefs.h
9536 if test "x$ac_cv_func_fork_works" = xyes; then
9538 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9543 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9544 # iconv() prototype.
9545 ac_ext=cpp
9546 ac_cpp='$CXXCPP $CPPFLAGS'
9547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9552 if test "X$prefix" = "XNONE"; then
9553 acl_final_prefix="$ac_default_prefix"
9554 else
9555 acl_final_prefix="$prefix"
9557 if test "X$exec_prefix" = "XNONE"; then
9558 acl_final_exec_prefix='${prefix}'
9559 else
9560 acl_final_exec_prefix="$exec_prefix"
9562 acl_save_prefix="$prefix"
9563 prefix="$acl_final_prefix"
9564 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9565 prefix="$acl_save_prefix"
9568 # Check whether --with-gnu-ld was given.
9569 if test "${with_gnu_ld+set}" = set; then :
9570 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9571 else
9572 with_gnu_ld=no
9575 # Prepare PATH_SEPARATOR.
9576 # The user is always right.
9577 if test "${PATH_SEPARATOR+set}" != set; then
9578 echo "#! /bin/sh" >conf$$.sh
9579 echo "exit 0" >>conf$$.sh
9580 chmod +x conf$$.sh
9581 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9582 PATH_SEPARATOR=';'
9583 else
9584 PATH_SEPARATOR=:
9586 rm -f conf$$.sh
9588 ac_prog=ld
9589 if test "$GCC" = yes; then
9590 # Check if gcc -print-prog-name=ld gives a path.
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9592 $as_echo_n "checking for ld used by GCC... " >&6; }
9593 case $host in
9594 *-*-mingw*)
9595 # gcc leaves a trailing carriage return which upsets mingw
9596 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9598 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9599 esac
9600 case $ac_prog in
9601 # Accept absolute paths.
9602 [\\/]* | [A-Za-z]:[\\/]*)
9603 re_direlt='/[^/][^/]*/\.\./'
9604 # Canonicalize the path of ld
9605 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9606 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9607 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9608 done
9609 test -z "$LD" && LD="$ac_prog"
9612 # If it fails, then pretend we aren't using GCC.
9613 ac_prog=ld
9616 # If it is relative, then search for the first ld in PATH.
9617 with_gnu_ld=unknown
9619 esac
9620 elif test "$with_gnu_ld" = yes; then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9622 $as_echo_n "checking for GNU ld... " >&6; }
9623 else
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9625 $as_echo_n "checking for non-GNU ld... " >&6; }
9627 if test "${acl_cv_path_LD+set}" = set; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 if test -z "$LD"; then
9631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9632 for ac_dir in $PATH; do
9633 test -z "$ac_dir" && ac_dir=.
9634 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9635 acl_cv_path_LD="$ac_dir/$ac_prog"
9636 # Check to see if the program is GNU ld. I'd rather use --version,
9637 # but apparently some GNU ld's only accept -v.
9638 # Break only if it was the GNU/non-GNU ld that we prefer.
9639 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9640 test "$with_gnu_ld" != no && break
9641 else
9642 test "$with_gnu_ld" != yes && break
9645 done
9646 IFS="$ac_save_ifs"
9647 else
9648 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9652 LD="$acl_cv_path_LD"
9653 if test -n "$LD"; then
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9655 $as_echo "$LD" >&6; }
9656 else
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658 $as_echo "no" >&6; }
9660 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9662 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9663 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9667 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9668 acl_cv_prog_gnu_ld=yes
9669 else
9670 acl_cv_prog_gnu_ld=no
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9674 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9675 with_gnu_ld=$acl_cv_prog_gnu_ld
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9680 $as_echo_n "checking for shared library run path origin... " >&6; }
9681 if test "${acl_cv_rpath+set}" = set; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9685 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9686 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9687 . ./conftest.sh
9688 rm -f ./conftest.sh
9689 acl_cv_rpath=done
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9693 $as_echo "$acl_cv_rpath" >&6; }
9694 wl="$acl_cv_wl"
9695 libext="$acl_cv_libext"
9696 shlibext="$acl_cv_shlibext"
9697 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9698 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9699 hardcode_direct="$acl_cv_hardcode_direct"
9700 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9701 # Check whether --enable-rpath was given.
9702 if test "${enable_rpath+set}" = set; then :
9703 enableval=$enable_rpath; :
9704 else
9705 enable_rpath=yes
9715 use_additional=yes
9717 acl_save_prefix="$prefix"
9718 prefix="$acl_final_prefix"
9719 acl_save_exec_prefix="$exec_prefix"
9720 exec_prefix="$acl_final_exec_prefix"
9722 eval additional_includedir=\"$includedir\"
9723 eval additional_libdir=\"$libdir\"
9725 exec_prefix="$acl_save_exec_prefix"
9726 prefix="$acl_save_prefix"
9729 # Check whether --with-libiconv-prefix was given.
9730 if test "${with_libiconv_prefix+set}" = set; then :
9731 withval=$with_libiconv_prefix;
9732 if test "X$withval" = "Xno"; then
9733 use_additional=no
9734 else
9735 if test "X$withval" = "X"; then
9737 acl_save_prefix="$prefix"
9738 prefix="$acl_final_prefix"
9739 acl_save_exec_prefix="$exec_prefix"
9740 exec_prefix="$acl_final_exec_prefix"
9742 eval additional_includedir=\"$includedir\"
9743 eval additional_libdir=\"$libdir\"
9745 exec_prefix="$acl_save_exec_prefix"
9746 prefix="$acl_save_prefix"
9748 else
9749 additional_includedir="$withval/include"
9750 additional_libdir="$withval/lib"
9756 LIBICONV=
9757 LTLIBICONV=
9758 INCICONV=
9759 rpathdirs=
9760 ltrpathdirs=
9761 names_already_handled=
9762 names_next_round='iconv '
9763 while test -n "$names_next_round"; do
9764 names_this_round="$names_next_round"
9765 names_next_round=
9766 for name in $names_this_round; do
9767 already_handled=
9768 for n in $names_already_handled; do
9769 if test "$n" = "$name"; then
9770 already_handled=yes
9771 break
9773 done
9774 if test -z "$already_handled"; then
9775 names_already_handled="$names_already_handled $name"
9776 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9777 eval value=\"\$HAVE_LIB$uppername\"
9778 if test -n "$value"; then
9779 if test "$value" = yes; then
9780 eval value=\"\$LIB$uppername\"
9781 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9782 eval value=\"\$LTLIB$uppername\"
9783 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9784 else
9787 else
9788 found_dir=
9789 found_la=
9790 found_so=
9791 found_a=
9792 if test $use_additional = yes; then
9793 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9794 found_dir="$additional_libdir"
9795 found_so="$additional_libdir/lib$name.$shlibext"
9796 if test -f "$additional_libdir/lib$name.la"; then
9797 found_la="$additional_libdir/lib$name.la"
9799 else
9800 if test -f "$additional_libdir/lib$name.$libext"; then
9801 found_dir="$additional_libdir"
9802 found_a="$additional_libdir/lib$name.$libext"
9803 if test -f "$additional_libdir/lib$name.la"; then
9804 found_la="$additional_libdir/lib$name.la"
9809 if test "X$found_dir" = "X"; then
9810 for x in $LDFLAGS $LTLIBICONV; do
9812 acl_save_prefix="$prefix"
9813 prefix="$acl_final_prefix"
9814 acl_save_exec_prefix="$exec_prefix"
9815 exec_prefix="$acl_final_exec_prefix"
9816 eval x=\"$x\"
9817 exec_prefix="$acl_save_exec_prefix"
9818 prefix="$acl_save_prefix"
9820 case "$x" in
9821 -L*)
9822 dir=`echo "X$x" | sed -e 's/^X-L//'`
9823 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9824 found_dir="$dir"
9825 found_so="$dir/lib$name.$shlibext"
9826 if test -f "$dir/lib$name.la"; then
9827 found_la="$dir/lib$name.la"
9829 else
9830 if test -f "$dir/lib$name.$libext"; then
9831 found_dir="$dir"
9832 found_a="$dir/lib$name.$libext"
9833 if test -f "$dir/lib$name.la"; then
9834 found_la="$dir/lib$name.la"
9839 esac
9840 if test "X$found_dir" != "X"; then
9841 break
9843 done
9845 if test "X$found_dir" != "X"; then
9846 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9847 if test "X$found_so" != "X"; then
9848 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9849 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9850 else
9851 haveit=
9852 for x in $ltrpathdirs; do
9853 if test "X$x" = "X$found_dir"; then
9854 haveit=yes
9855 break
9857 done
9858 if test -z "$haveit"; then
9859 ltrpathdirs="$ltrpathdirs $found_dir"
9861 if test "$hardcode_direct" = yes; then
9862 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9863 else
9864 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9865 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9866 haveit=
9867 for x in $rpathdirs; do
9868 if test "X$x" = "X$found_dir"; then
9869 haveit=yes
9870 break
9872 done
9873 if test -z "$haveit"; then
9874 rpathdirs="$rpathdirs $found_dir"
9876 else
9877 haveit=
9878 for x in $LDFLAGS $LIBICONV; do
9880 acl_save_prefix="$prefix"
9881 prefix="$acl_final_prefix"
9882 acl_save_exec_prefix="$exec_prefix"
9883 exec_prefix="$acl_final_exec_prefix"
9884 eval x=\"$x\"
9885 exec_prefix="$acl_save_exec_prefix"
9886 prefix="$acl_save_prefix"
9888 if test "X$x" = "X-L$found_dir"; then
9889 haveit=yes
9890 break
9892 done
9893 if test -z "$haveit"; then
9894 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9896 if test "$hardcode_minus_L" != no; then
9897 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9898 else
9899 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9904 else
9905 if test "X$found_a" != "X"; then
9906 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9907 else
9908 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9911 additional_includedir=
9912 case "$found_dir" in
9913 */lib | */lib/)
9914 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9915 additional_includedir="$basedir/include"
9917 esac
9918 if test "X$additional_includedir" != "X"; then
9919 if test "X$additional_includedir" != "X/usr/include"; then
9920 haveit=
9921 if test "X$additional_includedir" = "X/usr/local/include"; then
9922 if test -n "$GCC"; then
9923 case $host_os in
9924 linux*) haveit=yes;;
9925 esac
9928 if test -z "$haveit"; then
9929 for x in $CPPFLAGS $INCICONV; do
9931 acl_save_prefix="$prefix"
9932 prefix="$acl_final_prefix"
9933 acl_save_exec_prefix="$exec_prefix"
9934 exec_prefix="$acl_final_exec_prefix"
9935 eval x=\"$x\"
9936 exec_prefix="$acl_save_exec_prefix"
9937 prefix="$acl_save_prefix"
9939 if test "X$x" = "X-I$additional_includedir"; then
9940 haveit=yes
9941 break
9943 done
9944 if test -z "$haveit"; then
9945 if test -d "$additional_includedir"; then
9946 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9952 if test -n "$found_la"; then
9953 save_libdir="$libdir"
9954 case "$found_la" in
9955 */* | *\\*) . "$found_la" ;;
9956 *) . "./$found_la" ;;
9957 esac
9958 libdir="$save_libdir"
9959 for dep in $dependency_libs; do
9960 case "$dep" in
9961 -L*)
9962 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9963 if test "X$additional_libdir" != "X/usr/lib"; then
9964 haveit=
9965 if test "X$additional_libdir" = "X/usr/local/lib"; then
9966 if test -n "$GCC"; then
9967 case $host_os in
9968 linux*) haveit=yes;;
9969 esac
9972 if test -z "$haveit"; then
9973 haveit=
9974 for x in $LDFLAGS $LIBICONV; do
9976 acl_save_prefix="$prefix"
9977 prefix="$acl_final_prefix"
9978 acl_save_exec_prefix="$exec_prefix"
9979 exec_prefix="$acl_final_exec_prefix"
9980 eval x=\"$x\"
9981 exec_prefix="$acl_save_exec_prefix"
9982 prefix="$acl_save_prefix"
9984 if test "X$x" = "X-L$additional_libdir"; then
9985 haveit=yes
9986 break
9988 done
9989 if test -z "$haveit"; then
9990 if test -d "$additional_libdir"; then
9991 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9994 haveit=
9995 for x in $LDFLAGS $LTLIBICONV; do
9997 acl_save_prefix="$prefix"
9998 prefix="$acl_final_prefix"
9999 acl_save_exec_prefix="$exec_prefix"
10000 exec_prefix="$acl_final_exec_prefix"
10001 eval x=\"$x\"
10002 exec_prefix="$acl_save_exec_prefix"
10003 prefix="$acl_save_prefix"
10005 if test "X$x" = "X-L$additional_libdir"; then
10006 haveit=yes
10007 break
10009 done
10010 if test -z "$haveit"; then
10011 if test -d "$additional_libdir"; then
10012 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10018 -R*)
10019 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10020 if test "$enable_rpath" != no; then
10021 haveit=
10022 for x in $rpathdirs; do
10023 if test "X$x" = "X$dir"; then
10024 haveit=yes
10025 break
10027 done
10028 if test -z "$haveit"; then
10029 rpathdirs="$rpathdirs $dir"
10031 haveit=
10032 for x in $ltrpathdirs; do
10033 if test "X$x" = "X$dir"; then
10034 haveit=yes
10035 break
10037 done
10038 if test -z "$haveit"; then
10039 ltrpathdirs="$ltrpathdirs $dir"
10043 -l*)
10044 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10046 *.la)
10047 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10050 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10051 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10053 esac
10054 done
10056 else
10057 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10058 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10062 done
10063 done
10064 if test "X$rpathdirs" != "X"; then
10065 if test -n "$hardcode_libdir_separator"; then
10066 alldirs=
10067 for found_dir in $rpathdirs; do
10068 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10069 done
10070 acl_save_libdir="$libdir"
10071 libdir="$alldirs"
10072 eval flag=\"$hardcode_libdir_flag_spec\"
10073 libdir="$acl_save_libdir"
10074 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10075 else
10076 for found_dir in $rpathdirs; do
10077 acl_save_libdir="$libdir"
10078 libdir="$found_dir"
10079 eval flag=\"$hardcode_libdir_flag_spec\"
10080 libdir="$acl_save_libdir"
10081 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10082 done
10085 if test "X$ltrpathdirs" != "X"; then
10086 for found_dir in $ltrpathdirs; do
10087 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10088 done
10097 am_save_CPPFLAGS="$CPPFLAGS"
10099 for element in $INCICONV; do
10100 haveit=
10101 for x in $CPPFLAGS; do
10103 acl_save_prefix="$prefix"
10104 prefix="$acl_final_prefix"
10105 acl_save_exec_prefix="$exec_prefix"
10106 exec_prefix="$acl_final_exec_prefix"
10107 eval x=\"$x\"
10108 exec_prefix="$acl_save_exec_prefix"
10109 prefix="$acl_save_prefix"
10111 if test "X$x" = "X$element"; then
10112 haveit=yes
10113 break
10115 done
10116 if test -z "$haveit"; then
10117 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10119 done
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10123 $as_echo_n "checking for iconv... " >&6; }
10124 if test "${am_cv_func_iconv+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
10126 else
10128 am_cv_func_iconv="no, consider installing GNU libiconv"
10129 am_cv_lib_iconv=no
10130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131 /* end confdefs.h. */
10132 #include <stdlib.h>
10133 #include <iconv.h>
10135 main ()
10137 iconv_t cd = iconv_open("","");
10138 iconv(cd,NULL,NULL,NULL,NULL);
10139 iconv_close(cd);
10141 return 0;
10143 _ACEOF
10144 if ac_fn_cxx_try_link "$LINENO"; then :
10145 am_cv_func_iconv=yes
10147 rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10149 if test "$am_cv_func_iconv" != yes; then
10150 am_save_LIBS="$LIBS"
10151 LIBS="$LIBS $LIBICONV"
10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h. */
10154 #include <stdlib.h>
10155 #include <iconv.h>
10157 main ()
10159 iconv_t cd = iconv_open("","");
10160 iconv(cd,NULL,NULL,NULL,NULL);
10161 iconv_close(cd);
10163 return 0;
10165 _ACEOF
10166 if ac_fn_cxx_try_link "$LINENO"; then :
10167 am_cv_lib_iconv=yes
10168 am_cv_func_iconv=yes
10170 rm -f core conftest.err conftest.$ac_objext \
10171 conftest$ac_exeext conftest.$ac_ext
10172 LIBS="$am_save_LIBS"
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10177 $as_echo "$am_cv_func_iconv" >&6; }
10178 if test "$am_cv_func_iconv" = yes; then
10180 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10183 if test "$am_cv_lib_iconv" = yes; then
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10185 $as_echo_n "checking how to link with libiconv... " >&6; }
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10187 $as_echo "$LIBICONV" >&6; }
10188 else
10189 CPPFLAGS="$am_save_CPPFLAGS"
10190 LIBICONV=
10191 LTLIBICONV=
10196 if test "$am_cv_func_iconv" = yes; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10198 $as_echo_n "checking for iconv declaration... " >&6; }
10199 if test "${am_cv_proto_iconv+set}" = set; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10206 #include <stdlib.h>
10207 #include <iconv.h>
10208 extern
10209 #ifdef __cplusplus
10211 #endif
10212 #if defined(__STDC__) || defined(__cplusplus)
10213 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10214 #else
10215 size_t iconv();
10216 #endif
10219 main ()
10223 return 0;
10225 _ACEOF
10226 if ac_fn_cxx_try_compile "$LINENO"; then :
10227 am_cv_proto_iconv_arg1=""
10228 else
10229 am_cv_proto_iconv_arg1="const"
10231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10232 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);"
10235 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10237 }$am_cv_proto_iconv" >&5
10238 $as_echo "${ac_t:-
10239 }$am_cv_proto_iconv" >&6; }
10241 cat >>confdefs.h <<_ACEOF
10242 #define ICONV_CONST $am_cv_proto_iconv_arg1
10243 _ACEOF
10247 ac_ext=c
10248 ac_cpp='$CPP $CPPFLAGS'
10249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10254 # Until we have in-tree GNU iconv:
10255 LIBICONV_DEP=
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10260 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10261 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10262 $as_echo_n "(cached) " >&6
10263 else
10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10266 #include <locale.h>
10268 main ()
10270 return LC_MESSAGES
10272 return 0;
10274 _ACEOF
10275 if ac_fn_c_try_link "$LINENO"; then :
10276 am_cv_val_LC_MESSAGES=yes
10277 else
10278 am_cv_val_LC_MESSAGES=no
10280 rm -f core conftest.err conftest.$ac_objext \
10281 conftest$ac_exeext conftest.$ac_ext
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10284 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10285 if test $am_cv_val_LC_MESSAGES = yes; then
10287 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10294 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10295 if test "${am_cv_langinfo_codeset+set}" = set; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299 /* end confdefs.h. */
10300 #include <langinfo.h>
10302 main ()
10304 char* cs = nl_langinfo(CODESET);
10306 return 0;
10308 _ACEOF
10309 if ac_fn_c_try_link "$LINENO"; then :
10310 am_cv_langinfo_codeset=yes
10311 else
10312 am_cv_langinfo_codeset=no
10314 rm -f core conftest.err conftest.$ac_objext \
10315 conftest$ac_exeext conftest.$ac_ext
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10319 $as_echo "$am_cv_langinfo_codeset" >&6; }
10320 if test $am_cv_langinfo_codeset = yes; then
10322 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10327 # We will need to find libiberty.h and ansidecl.h
10328 saved_CFLAGS="$CFLAGS"
10329 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10330 saved_CXXFLAGS="$CXXFLAGS"
10331 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10332 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10333 strsignal strstr stpcpy strverscmp \
10334 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10335 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
10337 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10339 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10340 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10341 $as_echo_n "(cached) " >&6
10342 else
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10345 #undef $ac_tr_decl
10346 #define $ac_tr_decl 1
10348 #include "ansidecl.h"
10349 #include "system.h"
10352 main ()
10354 #ifndef $ac_func
10355 char *(*pfn) = (char *(*)) $ac_func ;
10356 #endif
10358 return 0;
10360 _ACEOF
10361 if ac_fn_c_try_compile "$LINENO"; then :
10362 eval "gcc_cv_have_decl_$ac_func=yes"
10363 else
10364 eval "gcc_cv_have_decl_$ac_func=no"
10366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10369 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10371 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10372 #define $ac_tr_decl 1
10373 _ACEOF
10375 else
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10378 #define $ac_tr_decl 0
10379 _ACEOF
10383 done
10386 for ac_func in getrlimit setrlimit getrusage
10388 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10390 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10391 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10392 $as_echo_n "(cached) " >&6
10393 else
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396 #undef $ac_tr_decl
10397 #define $ac_tr_decl 1
10399 #include "ansidecl.h"
10400 #include "system.h"
10401 #ifdef HAVE_SYS_RESOURCE_H
10402 #include <sys/resource.h>
10403 #endif
10407 main ()
10409 #ifndef $ac_func
10410 char *(*pfn) = (char *(*)) $ac_func ;
10411 #endif
10413 return 0;
10415 _ACEOF
10416 if ac_fn_c_try_compile "$LINENO"; then :
10417 eval "gcc_cv_have_decl_$ac_func=yes"
10418 else
10419 eval "gcc_cv_have_decl_$ac_func=no"
10421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10424 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10426 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10427 #define $ac_tr_decl 1
10428 _ACEOF
10430 else
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10433 #define $ac_tr_decl 0
10434 _ACEOF
10438 done
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10444 #include "ansidecl.h"
10445 #include "system.h"
10446 #ifdef HAVE_SYS_RESOURCE_H
10447 #include <sys/resource.h>
10448 #endif
10451 main ()
10453 rlim_t l = 0;
10455 return 0;
10457 _ACEOF
10458 if ac_fn_c_try_compile "$LINENO"; then :
10460 else
10462 $as_echo "#define rlim_t long" >>confdefs.h
10465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10467 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10468 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10469 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10470 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10471 for ac_func in ldgetname
10473 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10475 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10476 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480 /* end confdefs.h. */
10481 #undef $ac_tr_decl
10482 #define $ac_tr_decl 1
10484 #include "ansidecl.h"
10485 #include "system.h"
10486 #ifdef HAVE_LDFCN_H
10487 #undef FREAD
10488 #undef FWRITE
10489 #include <ldfcn.h>
10490 #endif
10494 main ()
10496 #ifndef $ac_func
10497 char *(*pfn) = (char *(*)) $ac_func ;
10498 #endif
10500 return 0;
10502 _ACEOF
10503 if ac_fn_c_try_compile "$LINENO"; then :
10504 eval "gcc_cv_have_decl_$ac_func=yes"
10505 else
10506 eval "gcc_cv_have_decl_$ac_func=no"
10508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10511 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10513 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10514 #define $ac_tr_decl 1
10515 _ACEOF
10517 else
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10520 #define $ac_tr_decl 0
10521 _ACEOF
10525 done
10528 for ac_func in times
10530 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10532 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10533 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538 #undef $ac_tr_decl
10539 #define $ac_tr_decl 1
10541 #include "ansidecl.h"
10542 #include "system.h"
10543 #ifdef HAVE_SYS_TIMES_H
10544 #include <sys/times.h>
10545 #endif
10549 main ()
10551 #ifndef $ac_func
10552 char *(*pfn) = (char *(*)) $ac_func ;
10553 #endif
10555 return 0;
10557 _ACEOF
10558 if ac_fn_c_try_compile "$LINENO"; then :
10559 eval "gcc_cv_have_decl_$ac_func=yes"
10560 else
10561 eval "gcc_cv_have_decl_$ac_func=no"
10563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10566 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10568 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10569 #define $ac_tr_decl 1
10570 _ACEOF
10572 else
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10575 #define $ac_tr_decl 0
10576 _ACEOF
10580 done
10583 for ac_func in sigaltstack
10585 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10587 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10588 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10589 $as_echo_n "(cached) " >&6
10590 else
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593 #undef $ac_tr_decl
10594 #define $ac_tr_decl 1
10596 #include "ansidecl.h"
10597 #include "system.h"
10598 #include <signal.h>
10602 main ()
10604 #ifndef $ac_func
10605 char *(*pfn) = (char *(*)) $ac_func ;
10606 #endif
10608 return 0;
10610 _ACEOF
10611 if ac_fn_c_try_compile "$LINENO"; then :
10612 eval "gcc_cv_have_decl_$ac_func=yes"
10613 else
10614 eval "gcc_cv_have_decl_$ac_func=no"
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10619 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10621 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10622 #define $ac_tr_decl 1
10623 _ACEOF
10625 else
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10628 #define $ac_tr_decl 0
10629 _ACEOF
10633 done
10636 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10637 # prototype.
10638 ac_ext=cpp
10639 ac_cpp='$CXXCPP $CPPFLAGS'
10640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10644 for ac_func in madvise
10646 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10648 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10649 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10650 $as_echo_n "(cached) " >&6
10651 else
10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10654 #undef $ac_tr_decl
10655 #define $ac_tr_decl 1
10657 #include "ansidecl.h"
10658 #include "system.h"
10662 main ()
10664 #ifndef $ac_func
10665 char *(*pfn) = (char *(*)) $ac_func ;
10666 #endif
10668 return 0;
10670 _ACEOF
10671 if ac_fn_cxx_try_compile "$LINENO"; then :
10672 eval "gcc_cv_have_decl_$ac_func=yes"
10673 else
10674 eval "gcc_cv_have_decl_$ac_func=no"
10676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10679 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10681 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10682 #define $ac_tr_decl 1
10683 _ACEOF
10685 else
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10688 #define $ac_tr_decl 0
10689 _ACEOF
10693 done
10695 ac_ext=c
10696 ac_cpp='$CPP $CPPFLAGS'
10697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10702 # More time-related stuff.
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10704 $as_echo_n "checking for struct tms... " >&6; }
10705 if test "${ac_cv_struct_tms+set}" = set; then :
10706 $as_echo_n "(cached) " >&6
10707 else
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10712 #include "ansidecl.h"
10713 #include "system.h"
10714 #ifdef HAVE_SYS_TIMES_H
10715 #include <sys/times.h>
10716 #endif
10719 main ()
10721 struct tms tms;
10723 return 0;
10725 _ACEOF
10726 if ac_fn_c_try_compile "$LINENO"; then :
10727 ac_cv_struct_tms=yes
10728 else
10729 ac_cv_struct_tms=no
10731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10734 $as_echo "$ac_cv_struct_tms" >&6; }
10735 if test $ac_cv_struct_tms = yes; then
10737 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10741 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10742 # revisit after autoconf 2.50.
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10744 $as_echo_n "checking for clock_t... " >&6; }
10745 if test "${gcc_cv_type_clock_t+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
10747 else
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h. */
10752 #include "ansidecl.h"
10753 #include "system.h"
10756 main ()
10758 clock_t x;
10760 return 0;
10762 _ACEOF
10763 if ac_fn_c_try_compile "$LINENO"; then :
10764 gcc_cv_type_clock_t=yes
10765 else
10766 gcc_cv_type_clock_t=no
10768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10771 $as_echo "$gcc_cv_type_clock_t" >&6; }
10772 if test $gcc_cv_type_clock_t = yes; then
10774 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10778 # Check if F_SETLKW is supported by fcntl.
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10780 $as_echo_n "checking for F_SETLKW... " >&6; }
10781 if test "${ac_cv_f_setlkw+set}" = set; then :
10782 $as_echo_n "(cached) " >&6
10783 else
10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h. */
10788 #include <fcntl.h>
10790 main ()
10793 struct flock fl;
10794 fl.l_whence = 0;
10795 fl.l_start = 0;
10796 fl.l_len = 0;
10797 fl.l_pid = 0;
10798 return fcntl (1, F_SETLKW, &fl);
10800 return 0;
10802 _ACEOF
10803 if ac_fn_c_try_compile "$LINENO"; then :
10804 ac_cv_f_setlkw=yes
10805 else
10806 ac_cv_f_setlkw=no
10808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10811 $as_echo "$ac_cv_f_setlkw" >&6; }
10812 if test $ac_cv_f_setlkw = yes; then
10814 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10818 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10819 CFLAGS="$saved_CFLAGS"
10820 CXXFLAGS="$saved_CXXFLAGS"
10822 # mkdir takes a single argument on some systems.
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10824 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10825 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10831 #include <sys/types.h>
10832 #ifdef HAVE_SYS_STAT_H
10833 # include <sys/stat.h>
10834 #endif
10835 #ifdef HAVE_UNISTD_H
10836 # include <unistd.h>
10837 #endif
10838 #ifdef HAVE_DIRECT_H
10839 # include <direct.h>
10840 #endif
10842 main ()
10844 mkdir ("foo", 0);
10846 return 0;
10848 _ACEOF
10849 if ac_fn_c_try_compile "$LINENO"; then :
10850 gcc_cv_mkdir_takes_one_arg=no
10851 else
10852 gcc_cv_mkdir_takes_one_arg=yes
10854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10857 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10858 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10860 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10865 # File extensions
10866 manext='.1'
10867 objext='.o'
10871 # With Setjmp/Longjmp based exception handling.
10872 # Check whether --enable-sjlj-exceptions was given.
10873 if test "${enable_sjlj_exceptions+set}" = set; then :
10874 enableval=$enable_sjlj_exceptions; case $target in
10875 *-*-hpux10*)
10876 if test $enableval != yes; then
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10878 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10879 enableval=yes
10882 esac
10883 force_sjlj_exceptions=yes
10884 else
10885 case $target in
10886 *-*-hpux10*)
10887 force_sjlj_exceptions=yes
10888 enableval=yes
10891 force_sjlj_exceptions=no
10893 esac
10896 if test $force_sjlj_exceptions = yes; then
10897 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10899 cat >>confdefs.h <<_ACEOF
10900 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10901 _ACEOF
10905 # --------------------------------------------------------
10906 # Build, host, and target specific configuration fragments
10907 # --------------------------------------------------------
10909 # Collect build-machine-specific information.
10910 . ${srcdir}/config.build
10912 # Collect host-machine-specific information.
10913 . ${srcdir}/config.host
10915 target_gtfiles=
10917 # Collect target-machine-specific information.
10918 . ${srcdir}/config.gcc
10920 extra_objs="${host_extra_objs} ${extra_objs}"
10921 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10923 # Default the target-machine variables that were not explicitly set.
10924 if test x"$tm_file" = x
10925 then tm_file=$cpu_type/$cpu_type.h; fi
10927 if test x"$extra_headers" = x
10928 then extra_headers=; fi
10930 if test x$md_file = x
10931 then md_file=$cpu_type/$cpu_type.md; fi
10933 if test x$out_file = x
10934 then out_file=$cpu_type/$cpu_type.c; fi
10936 if test x"$tmake_file" = x
10937 then tmake_file=$cpu_type/t-$cpu_type
10940 # Support --enable-initfini-array.
10941 if test x$enable_initfini_array != xno; then
10942 tm_file="${tm_file} initfini-array.h"
10945 if test x"$dwarf2" = xyes
10946 then tm_file="$tm_file tm-dwarf2.h"
10949 # Say what files are being used for the output code and MD file.
10950 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10951 echo "Using \`$srcdir/config/$md_file' as machine description file."
10953 # If any of the xm_file variables contain nonexistent files, warn
10954 # about them and drop them.
10957 for x in $build_xm_file; do
10958 if test -f $srcdir/config/$x
10959 then bx="$bx $x"
10960 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10961 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10963 done
10964 build_xm_file="$bx"
10967 for x in $host_xm_file; do
10968 if test -f $srcdir/config/$x
10969 then hx="$hx $x"
10970 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10971 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10973 done
10974 host_xm_file="$hx"
10977 for x in $xm_file; do
10978 if test -f $srcdir/config/$x
10979 then tx="$tx $x"
10980 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10981 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10983 done
10984 xm_file="$tx"
10986 count=a
10987 for f in $tm_file; do
10988 count=${count}x
10989 done
10990 if test $count = ax; then
10991 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10992 else
10993 echo "Using the following target machine macro files:"
10994 for f in $tm_file; do
10995 echo " $srcdir/config/$f"
10996 done
10999 if test x$need_64bit_hwint = xyes; then
11001 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11005 if test x$use_long_long_for_widest_fast_int = xyes; then
11007 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11011 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11013 cat >>confdefs.h <<_ACEOF
11014 #define HAVE_GNU_LD $gnu_ld_bool
11015 _ACEOF
11018 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11020 cat >>confdefs.h <<_ACEOF
11021 #define HAVE_GNU_AS $gnu_as_bool
11022 _ACEOF
11025 count=a
11026 for f in $host_xm_file; do
11027 count=${count}x
11028 done
11029 if test $count = a; then
11031 elif test $count = ax; then
11032 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11033 else
11034 echo "Using the following host machine macro files:"
11035 for f in $host_xm_file; do
11036 echo " $srcdir/config/$f"
11037 done
11039 echo "Using ${out_host_hook_obj} for host machine hooks."
11041 if test "$host_xm_file" != "$build_xm_file"; then
11042 count=a
11043 for f in $build_xm_file; do
11044 count=${count}x
11045 done
11046 if test $count = a; then
11048 elif test $count = ax; then
11049 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11050 else
11051 echo "Using the following build machine macro files:"
11052 for f in $build_xm_file; do
11053 echo " $srcdir/config/$f"
11054 done
11058 if test -n "$configured_native_system_header_dir"; then
11059 native_system_header_dir=$configured_native_system_header_dir
11061 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11064 case ${host} in
11065 powerpc*-*-darwin*)
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11067 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11068 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11069 $as_echo_n "(cached) " >&6
11070 else
11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h. */
11074 #include <sys/cdefs.h>
11075 #include <sys/signal.h>
11076 #include <ucontext.h>
11077 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11079 _ACEOF
11080 if ac_fn_c_try_compile "$LINENO"; then :
11081 gcc_cv_mcontext_underscores=no
11082 else
11083 gcc_cv_mcontext_underscores=yes
11085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11088 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11089 if test $gcc_cv_mcontext_underscores = yes; then
11091 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11095 esac
11097 # ---------
11098 # Threading
11099 # ---------
11101 # Check if a valid thread package
11102 case ${enable_threads} in
11103 "" | no)
11104 # No threads
11105 target_thread_file='single'
11107 yes)
11108 # default
11109 target_thread_file='single'
11111 aix | dce | lynx | mipssde | posix | rtems | \
11112 single | tpf | vxworks | win32)
11113 target_thread_file=${enable_threads}
11116 echo "${enable_threads} is an unknown thread package" 1>&2
11117 exit 1
11119 esac
11121 if test x${thread_file} = x; then
11122 # No thread file set by target-specific clauses in config.gcc,
11123 # so use file chosen by default logic above
11124 thread_file=${target_thread_file}
11127 # --------
11128 # UNSORTED
11129 # --------
11131 use_cxa_atexit=no
11132 if test x$enable___cxa_atexit = xyes || \
11133 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11134 if test x$host = x$target; then
11135 case $host in
11136 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11137 # keyed to flag_use_cxa_atexit
11138 *-*-mingw32*)
11139 use_cxa_atexit=yes
11141 powerpc-ibm-aix*)
11142 use_cxa_atexit=yes
11145 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11146 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11147 use_cxa_atexit=yes
11148 else
11149 echo "__cxa_atexit can't be enabled on this target"
11153 esac
11154 else
11155 # We can't check for __cxa_atexit when building a cross, so assume
11156 # it is available
11157 use_cxa_atexit=yes
11159 if test x$use_cxa_atexit = xyes; then
11161 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11166 # Look for a file containing extra machine modes.
11167 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11168 extra_modes_file='$(srcdir)'/config/${extra_modes}
11171 cat >>confdefs.h <<_ACEOF
11172 #define EXTRA_MODES_FILE "config/$extra_modes"
11173 _ACEOF
11177 # Convert extra_options into a form suitable for Makefile use.
11178 extra_opt_files=
11179 all_opt_files=
11180 for f in $extra_options; do
11181 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11182 all_opt_files="$all_opt_files $srcdir/config/$f"
11183 done
11186 # auto-host.h is the file containing items generated by autoconf and is
11187 # the first file included by config.h.
11188 # If host=build, it is correct to have bconfig include auto-host.h
11189 # as well. If host!=build, we are in error and need to do more
11190 # work to find out the build config parameters.
11191 if test x$host = x$build
11192 then
11193 build_auto=auto-host.h
11194 else
11195 # We create a subdir, then run autoconf in the subdir.
11196 # To prevent recursion we set host and build for the new
11197 # invocation of configure to the build for this invocation
11198 # of configure.
11199 tempdir=build.$$
11200 rm -rf $tempdir
11201 mkdir $tempdir
11202 cd $tempdir
11203 case ${srcdir} in
11204 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11205 *) realsrcdir=../${srcdir};;
11206 esac
11207 saved_CFLAGS="${CFLAGS}"
11208 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11209 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11210 ${realsrcdir}/configure \
11211 --enable-languages=${enable_languages-all} \
11212 --target=$target_alias --host=$build_alias --build=$build_alias
11213 CFLAGS="${saved_CFLAGS}"
11215 # We just finished tests for the build machine, so rename
11216 # the file auto-build.h in the gcc directory.
11217 mv auto-host.h ../auto-build.h
11218 cd ..
11219 rm -rf $tempdir
11220 build_auto=auto-build.h
11224 tm_file="${tm_file} defaults.h"
11225 tm_p_file="${tm_p_file} tm-preds.h"
11226 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11227 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11228 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11229 # put this back in temporarily.
11230 xm_file="auto-host.h ansidecl.h ${xm_file}"
11232 # --------
11233 # UNSORTED
11234 # --------
11236 # Compile in configure arguments.
11237 if test -f configargs.h ; then
11238 # Being re-configured.
11239 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11240 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11241 else
11242 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11245 # Double all backslashes and backslash all quotes to turn
11246 # gcc_config_arguments into a C string.
11247 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11248 $gcc_config_arguments
11250 gcc_config_arguments_str=`cat conftest.out`
11251 rm -f conftest.out
11253 cat > configargs.h <<EOF
11254 /* Generated automatically. */
11255 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11256 static const char thread_model[] = "$thread_file";
11258 static const struct {
11259 const char *name, *value;
11260 } configure_default_options[] = $configure_default_options;
11263 gcc_BASEVER=`cat $srcdir/BASE-VER`
11264 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11265 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11266 if test -f $srcdir/REVISION ; then
11267 gcc_REVISION=`cat $srcdir/REVISION`
11268 else
11269 gcc_REVISION=""
11271 cat > plugin-version.h <<EOF
11272 #include "configargs.h"
11274 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11275 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11276 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11277 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11279 static char basever[] = "$gcc_BASEVER";
11280 static char datestamp[] = "$gcc_DATESTAMP";
11281 static char devphase[] = "$gcc_DEVPHASE";
11282 static char revision[] = "$gcc_REVISION";
11284 /* FIXME plugins: We should make the version information more precise.
11285 One way to do is to add a checksum. */
11287 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11288 devphase, revision,
11289 configuration_arguments};
11292 # Internationalization
11293 # If we haven't got the data from the intl directory,
11294 # assume NLS is disabled.
11295 USE_NLS=no
11296 LIBINTL=
11297 LIBINTL_DEP=
11298 INCINTL=
11299 XGETTEXT=
11300 GMSGFMT=
11301 POSUB=
11303 if test -f ../intl/config.intl; then
11304 . ../intl/config.intl
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11307 $as_echo_n "checking whether NLS is requested... " >&6; }
11308 if test x"$USE_NLS" != xyes; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310 $as_echo "no" >&6; }
11311 else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11313 $as_echo "yes" >&6; }
11315 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11319 $as_echo_n "checking for catalogs to be installed... " >&6; }
11320 # Look for .po and .gmo files in the source directory.
11321 CATALOGS=
11322 XLINGUAS=
11323 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11324 # If there aren't any .gmo files the shell will give us the
11325 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11326 # weeded out.
11327 case "$cat" in *\**)
11328 continue;;
11329 esac
11330 # The quadruple backslash is collapsed to a double backslash
11331 # by the backticks, then collapsed again by the double quotes,
11332 # leaving us with one backslash in the sed expression (right
11333 # before the dot that mustn't act as a wildcard).
11334 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11335 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11336 # The user is allowed to set LINGUAS to a list of languages to
11337 # install catalogs for. If it's empty that means "all of them."
11338 if test "x$LINGUAS" = x; then
11339 CATALOGS="$CATALOGS $cat"
11340 XLINGUAS="$XLINGUAS $lang"
11341 else
11342 case "$LINGUAS" in *$lang*)
11343 CATALOGS="$CATALOGS $cat"
11344 XLINGUAS="$XLINGUAS $lang"
11346 esac
11348 done
11349 LINGUAS="$XLINGUAS"
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11351 $as_echo "$LINGUAS" >&6; }
11354 DATADIRNAME=share
11356 INSTOBJEXT=.mo
11358 GENCAT=gencat
11360 CATOBJEXT=.gmo
11364 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11365 # -liconv on the link line twice.
11366 case "$LIBINTL" in *$LIBICONV*)
11367 LIBICONV= ;;
11368 esac
11370 # Check whether --enable-secureplt was given.
11371 if test "${enable_secureplt+set}" = set; then :
11372 enableval=$enable_secureplt;
11376 # Check whether --enable-leading-mingw64-underscores was given.
11377 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11378 enableval=$enable_leading_mingw64_underscores;
11381 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11383 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11387 # Check whether --enable-cld was given.
11388 if test "${enable_cld+set}" = set; then :
11389 enableval=$enable_cld;
11390 else
11391 enable_cld=no
11395 # Check whether --enable-frame-pointer was given.
11396 if test "${enable_frame_pointer+set}" = set; then :
11397 enableval=$enable_frame_pointer;
11398 else
11400 case $target_os in
11401 linux* | darwin[8912]*)
11402 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11403 # DWARF2.
11404 enable_frame_pointer=no
11407 enable_frame_pointer=yes
11409 esac
11414 # Windows32 Registry support for specifying GCC installation paths.
11415 # Check whether --enable-win32-registry was given.
11416 if test "${enable_win32_registry+set}" = set; then :
11417 enableval=$enable_win32_registry;
11421 case $host_os in
11422 win32 | pe | cygwin* | mingw32* | uwin*)
11423 if test "x$enable_win32_registry" != xno; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11425 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11426 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11427 $as_echo_n "(cached) " >&6
11428 else
11429 ac_func_search_save_LIBS=$LIBS
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11433 /* Override any GCC internal prototype to avoid an error.
11434 Use char because int might match the return type of a GCC
11435 builtin and then its argument prototype would still apply. */
11436 #ifdef __cplusplus
11437 extern "C"
11438 #endif
11439 char RegOpenKeyExA ();
11441 main ()
11443 return RegOpenKeyExA ();
11445 return 0;
11447 _ACEOF
11448 for ac_lib in '' advapi32; do
11449 if test -z "$ac_lib"; then
11450 ac_res="none required"
11451 else
11452 ac_res=-l$ac_lib
11453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11455 if ac_fn_c_try_link "$LINENO"; then :
11456 ac_cv_search_RegOpenKeyExA=$ac_res
11458 rm -f core conftest.err conftest.$ac_objext \
11459 conftest$ac_exeext
11460 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11461 break
11463 done
11464 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11466 else
11467 ac_cv_search_RegOpenKeyExA=no
11469 rm conftest.$ac_ext
11470 LIBS=$ac_func_search_save_LIBS
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11473 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11474 ac_res=$ac_cv_search_RegOpenKeyExA
11475 if test "$ac_res" != no; then :
11476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11478 else
11479 enable_win32_registry=no
11484 if test "x$enable_win32_registry" != xno; then
11486 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11489 if test "x$enable_win32_registry" != xyes \
11490 && test "x$enable_win32_registry" != x; then
11492 cat >>confdefs.h <<_ACEOF
11493 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11494 _ACEOF
11499 esac
11501 # Get an absolute path to the GCC top-level source directory
11502 holddir=`${PWDCMD-pwd}`
11503 cd $srcdir
11504 topdir=`${PWDCMD-pwd}`
11505 cd $holddir
11507 # Conditionalize the makefile for this host machine.
11508 xmake_file=
11509 for f in ${host_xmake_file}
11511 if test -f ${srcdir}/config/$f
11512 then
11513 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11515 done
11517 # Conditionalize the makefile for this target machine.
11518 tmake_file_=
11519 for f in ${tmake_file}
11521 if test -f ${srcdir}/config/$f
11522 then
11523 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11525 done
11526 tmake_file="${tmake_file_}"
11528 out_object_file=`basename $out_file .c`.o
11529 common_out_object_file=`basename $common_out_file .c`.o
11531 tm_file_list="options.h"
11532 tm_include_list="options.h insn-constants.h"
11533 for f in $tm_file; do
11534 case $f in
11535 ./* )
11536 f=`echo $f | sed 's/^..//'`
11537 tm_file_list="${tm_file_list} $f"
11538 tm_include_list="${tm_include_list} $f"
11540 defaults.h )
11541 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11542 tm_include_list="${tm_include_list} $f"
11545 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11546 tm_include_list="${tm_include_list} config/$f"
11548 esac
11549 done
11551 tm_p_file_list=
11552 tm_p_include_list=
11553 for f in $tm_p_file; do
11554 case $f in
11555 tm-preds.h )
11556 tm_p_file_list="${tm_p_file_list} $f"
11557 tm_p_include_list="${tm_p_include_list} $f"
11560 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11561 tm_p_include_list="${tm_p_include_list} config/$f"
11562 esac
11563 done
11565 xm_file_list=
11566 xm_include_list=
11567 for f in $xm_file; do
11568 case $f in
11569 ansidecl.h )
11570 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11571 xm_include_list="${xm_include_list} $f"
11573 auto-host.h )
11574 xm_file_list="${xm_file_list} $f"
11575 xm_include_list="${xm_include_list} $f"
11578 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11579 xm_include_list="${xm_include_list} config/$f"
11581 esac
11582 done
11584 host_xm_file_list=
11585 host_xm_include_list=
11586 for f in $host_xm_file; do
11587 case $f in
11588 ansidecl.h )
11589 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11590 host_xm_include_list="${host_xm_include_list} $f"
11592 auto-host.h )
11593 host_xm_file_list="${host_xm_file_list} $f"
11594 host_xm_include_list="${host_xm_include_list} $f"
11597 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11598 host_xm_include_list="${host_xm_include_list} config/$f"
11600 esac
11601 done
11603 build_xm_file_list=
11604 for f in $build_xm_file; do
11605 case $f in
11606 ansidecl.h )
11607 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11608 build_xm_include_list="${build_xm_include_list} $f"
11610 auto-build.h | auto-host.h )
11611 build_xm_file_list="${build_xm_file_list} $f"
11612 build_xm_include_list="${build_xm_include_list} $f"
11615 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11616 build_xm_include_list="${build_xm_include_list} config/$f"
11618 esac
11619 done
11621 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11622 # cross-compiler which does not use the native headers and libraries.
11623 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11624 CROSS=
11625 ALL=all.internal
11626 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11628 if test "x$with_build_sysroot" != x; then
11629 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11630 else
11631 # This value is used, even on a native system, because
11632 # CROSS_SYSTEM_HEADER_DIR is just
11633 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11634 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11637 if test x$host != x$target
11638 then
11639 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11640 ALL=all.cross
11641 SYSTEM_HEADER_DIR=$build_system_header_dir
11642 case "$host","$target" in
11643 # Darwin crosses can use the host system's libraries and headers,
11644 # because of the fat library support. Of course, it must be the
11645 # same version of Darwin on both sides. Allow the user to
11646 # just say --target=foo-darwin without a version number to mean
11647 # "the version on this system".
11648 *-*-darwin*,*-*-darwin*)
11649 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11650 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11651 if test $hostos = $targetos -o $targetos = darwin ; then
11652 CROSS=
11653 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11654 with_headers=yes
11658 i?86-*-*,x86_64-*-* \
11659 | powerpc*-*-*,powerpc64*-*-*)
11660 CROSS="$CROSS -DNATIVE_CROSS" ;;
11661 esac
11663 case $target in
11664 *-*-mingw*)
11665 if test "x$with_headers" = x; then
11666 with_headers=yes
11671 esac
11672 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11673 SYSTEM_HEADER_DIR=$build_system_header_dir
11676 # If this is a cross-compiler that does not
11677 # have its own set of headers then define
11678 # inhibit_libc
11680 # If this is using newlib, without having the headers available now,
11681 # then define inhibit_libc in LIBGCC2_CFLAGS.
11682 # This prevents libgcc2 from containing any code which requires libc
11683 # support.
11684 : ${inhibit_libc=false}
11685 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11686 test x$with_newlib = xyes ; } &&
11687 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11688 inhibit_libc=true
11692 # When building gcc with a cross-compiler, we need to adjust things so
11693 # that the generator programs are still built with the native compiler.
11694 # Also, we cannot run fixincludes.
11696 # These are the normal (build=host) settings:
11697 CC_FOR_BUILD='$(CC)'
11698 CXX_FOR_BUILD='$(CXX)'
11699 BUILD_CFLAGS='$(ALL_CFLAGS)'
11700 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11701 BUILD_LDFLAGS='$(LDFLAGS)'
11702 STMP_FIXINC=stmp-fixinc
11704 # And these apply if build != host, or we are generating coverage data
11705 if test x$build != x$host || test "x$coverage_flags" != x
11706 then
11707 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11708 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11711 # Expand extra_headers to include complete path.
11712 # This substitutes for lots of t-* files.
11713 extra_headers_list=
11714 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11715 for file in ${extra_headers} ; do
11716 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11717 done
11719 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11720 if test x"$use_gcc_tgmath" = xyes
11721 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11724 # Define collect2 in Makefile.
11725 case $host_can_use_collect2 in
11726 no) collect2= ;;
11727 *) collect2='collect2$(exeext)' ;;
11728 esac
11731 # Add a definition of USE_COLLECT2 if system wants one.
11732 case $use_collect2 in
11733 no) use_collect2= ;;
11734 "") ;;
11736 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11737 xm_defines="${xm_defines} USE_COLLECT2"
11738 case $host_can_use_collect2 in
11740 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11742 esac
11744 esac
11747 cat >>confdefs.h <<_ACEOF
11748 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11749 _ACEOF
11752 # ---------------------------
11753 # Assembler & linker features
11754 # ---------------------------
11756 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11757 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11758 # However when ld-new is first executed from the build tree, libtool will
11759 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11760 # to the build tree. While doing this we need to use the previous-stage
11761 # linker, or we have an infinite loop. The presence of a shell script as
11762 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11763 # the gcc/collect-ld script. So we need to know how libtool works, or
11764 # exec-tool will fail.
11767 case `pwd` in
11768 *\ * | *\ *)
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11770 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11771 esac
11775 macro_version='2.2.7a'
11776 macro_revision='1.3134'
11790 ltmain="$ac_aux_dir/ltmain.sh"
11792 # Backslashify metacharacters that are still active within
11793 # double-quoted strings.
11794 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11796 # Same as above, but do not quote variable references.
11797 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11799 # Sed substitution to delay expansion of an escaped shell variable in a
11800 # double_quote_subst'ed string.
11801 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11803 # Sed substitution to delay expansion of an escaped single quote.
11804 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11806 # Sed substitution to avoid accidental globbing in evaled expressions
11807 no_glob_subst='s/\*/\\\*/g'
11809 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11810 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11811 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11814 $as_echo_n "checking how to print strings... " >&6; }
11815 # Test print first, because it will be a builtin if present.
11816 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11817 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11818 ECHO='print -r --'
11819 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11820 ECHO='printf %s\n'
11821 else
11822 # Use this function as a fallback that always works.
11823 func_fallback_echo ()
11825 eval 'cat <<_LTECHO_EOF
11827 _LTECHO_EOF'
11829 ECHO='func_fallback_echo'
11832 # func_echo_all arg...
11833 # Invoke $ECHO with all args, space-separated.
11834 func_echo_all ()
11836 $ECHO ""
11839 case "$ECHO" in
11840 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11841 $as_echo "printf" >&6; } ;;
11842 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11843 $as_echo "print -r" >&6; } ;;
11844 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11845 $as_echo "cat" >&6; } ;;
11846 esac
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11862 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11863 if test "${ac_cv_path_SED+set}" = set; then :
11864 $as_echo_n "(cached) " >&6
11865 else
11866 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11867 for ac_i in 1 2 3 4 5 6 7; do
11868 ac_script="$ac_script$as_nl$ac_script"
11869 done
11870 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11871 { ac_script=; unset ac_script;}
11872 if test -z "$SED"; then
11873 ac_path_SED_found=false
11874 # Loop through the user's path and test for each of PROGNAME-LIST
11875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876 for as_dir in $PATH
11878 IFS=$as_save_IFS
11879 test -z "$as_dir" && as_dir=.
11880 for ac_prog in sed gsed; do
11881 for ac_exec_ext in '' $ac_executable_extensions; do
11882 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11883 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11884 # Check for GNU ac_path_SED and select it if it is found.
11885 # Check for GNU $ac_path_SED
11886 case `"$ac_path_SED" --version 2>&1` in
11887 *GNU*)
11888 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11890 ac_count=0
11891 $as_echo_n 0123456789 >"conftest.in"
11892 while :
11894 cat "conftest.in" "conftest.in" >"conftest.tmp"
11895 mv "conftest.tmp" "conftest.in"
11896 cp "conftest.in" "conftest.nl"
11897 $as_echo '' >> "conftest.nl"
11898 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11900 as_fn_arith $ac_count + 1 && ac_count=$as_val
11901 if test $ac_count -gt ${ac_path_SED_max-0}; then
11902 # Best one so far, save it but keep looking for a better one
11903 ac_cv_path_SED="$ac_path_SED"
11904 ac_path_SED_max=$ac_count
11906 # 10*(2^10) chars as input seems more than enough
11907 test $ac_count -gt 10 && break
11908 done
11909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11910 esac
11912 $ac_path_SED_found && break 3
11913 done
11914 done
11915 done
11916 IFS=$as_save_IFS
11917 if test -z "$ac_cv_path_SED"; then
11918 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11920 else
11921 ac_cv_path_SED=$SED
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11926 $as_echo "$ac_cv_path_SED" >&6; }
11927 SED="$ac_cv_path_SED"
11928 rm -f conftest.sed
11930 test -z "$SED" && SED=sed
11931 Xsed="$SED -e 1s/^X//"
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11944 $as_echo_n "checking for fgrep... " >&6; }
11945 if test "${ac_cv_path_FGREP+set}" = set; then :
11946 $as_echo_n "(cached) " >&6
11947 else
11948 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11949 then ac_cv_path_FGREP="$GREP -F"
11950 else
11951 if test -z "$FGREP"; then
11952 ac_path_FGREP_found=false
11953 # Loop through the user's path and test for each of PROGNAME-LIST
11954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11957 IFS=$as_save_IFS
11958 test -z "$as_dir" && as_dir=.
11959 for ac_prog in fgrep; do
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11962 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11963 # Check for GNU ac_path_FGREP and select it if it is found.
11964 # Check for GNU $ac_path_FGREP
11965 case `"$ac_path_FGREP" --version 2>&1` in
11966 *GNU*)
11967 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11969 ac_count=0
11970 $as_echo_n 0123456789 >"conftest.in"
11971 while :
11973 cat "conftest.in" "conftest.in" >"conftest.tmp"
11974 mv "conftest.tmp" "conftest.in"
11975 cp "conftest.in" "conftest.nl"
11976 $as_echo 'FGREP' >> "conftest.nl"
11977 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11979 as_fn_arith $ac_count + 1 && ac_count=$as_val
11980 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11981 # Best one so far, save it but keep looking for a better one
11982 ac_cv_path_FGREP="$ac_path_FGREP"
11983 ac_path_FGREP_max=$ac_count
11985 # 10*(2^10) chars as input seems more than enough
11986 test $ac_count -gt 10 && break
11987 done
11988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11989 esac
11991 $ac_path_FGREP_found && break 3
11992 done
11993 done
11994 done
11995 IFS=$as_save_IFS
11996 if test -z "$ac_cv_path_FGREP"; then
11997 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11999 else
12000 ac_cv_path_FGREP=$FGREP
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12006 $as_echo "$ac_cv_path_FGREP" >&6; }
12007 FGREP="$ac_cv_path_FGREP"
12010 test -z "$GREP" && GREP=grep
12030 # Check whether --with-gnu-ld was given.
12031 if test "${with_gnu_ld+set}" = set; then :
12032 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12033 else
12034 with_gnu_ld=no
12037 ac_prog=ld
12038 if test "$GCC" = yes; then
12039 # Check if gcc -print-prog-name=ld gives a path.
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12041 $as_echo_n "checking for ld used by $CC... " >&6; }
12042 case $host in
12043 *-*-mingw*)
12044 # gcc leaves a trailing carriage return which upsets mingw
12045 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12047 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12048 esac
12049 case $ac_prog in
12050 # Accept absolute paths.
12051 [\\/]* | ?:[\\/]*)
12052 re_direlt='/[^/][^/]*/\.\./'
12053 # Canonicalize the pathname of ld
12054 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12055 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12056 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12057 done
12058 test -z "$LD" && LD="$ac_prog"
12061 # If it fails, then pretend we aren't using GCC.
12062 ac_prog=ld
12065 # If it is relative, then search for the first ld in PATH.
12066 with_gnu_ld=unknown
12068 esac
12069 elif test "$with_gnu_ld" = yes; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12071 $as_echo_n "checking for GNU ld... " >&6; }
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12074 $as_echo_n "checking for non-GNU ld... " >&6; }
12076 if test "${lt_cv_path_LD+set}" = set; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 if test -z "$LD"; then
12080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12081 for ac_dir in $PATH; do
12082 IFS="$lt_save_ifs"
12083 test -z "$ac_dir" && ac_dir=.
12084 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12085 lt_cv_path_LD="$ac_dir/$ac_prog"
12086 # Check to see if the program is GNU ld. I'd rather use --version,
12087 # but apparently some variants of GNU ld only accept -v.
12088 # Break only if it was the GNU/non-GNU ld that we prefer.
12089 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12090 *GNU* | *'with BFD'*)
12091 test "$with_gnu_ld" != no && break
12094 test "$with_gnu_ld" != yes && break
12096 esac
12098 done
12099 IFS="$lt_save_ifs"
12100 else
12101 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12105 LD="$lt_cv_path_LD"
12106 if test -n "$LD"; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12108 $as_echo "$LD" >&6; }
12109 else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111 $as_echo "no" >&6; }
12113 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12115 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12116 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12120 case `$LD -v 2>&1 </dev/null` in
12121 *GNU* | *'with BFD'*)
12122 lt_cv_prog_gnu_ld=yes
12125 lt_cv_prog_gnu_ld=no
12127 esac
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12130 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12131 with_gnu_ld=$lt_cv_prog_gnu_ld
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12142 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12143 if test "${lt_cv_path_NM+set}" = set; then :
12144 $as_echo_n "(cached) " >&6
12145 else
12146 if test -n "$NM"; then
12147 # Let the user override the test.
12148 lt_cv_path_NM="$NM"
12149 else
12150 lt_nm_to_check="${ac_tool_prefix}nm"
12151 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12152 lt_nm_to_check="$lt_nm_to_check nm"
12154 for lt_tmp_nm in $lt_nm_to_check; do
12155 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12156 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12157 IFS="$lt_save_ifs"
12158 test -z "$ac_dir" && ac_dir=.
12159 tmp_nm="$ac_dir/$lt_tmp_nm"
12160 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12161 # Check to see if the nm accepts a BSD-compat flag.
12162 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12163 # nm: unknown option "B" ignored
12164 # Tru64's nm complains that /dev/null is an invalid object file
12165 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12166 */dev/null* | *'Invalid file or object type'*)
12167 lt_cv_path_NM="$tmp_nm -B"
12168 break
12171 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12172 */dev/null*)
12173 lt_cv_path_NM="$tmp_nm -p"
12174 break
12177 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12178 continue # so that we can try to find one that supports BSD flags
12180 esac
12182 esac
12184 done
12185 IFS="$lt_save_ifs"
12186 done
12187 : ${lt_cv_path_NM=no}
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12191 $as_echo "$lt_cv_path_NM" >&6; }
12192 if test "$lt_cv_path_NM" != "no"; then
12193 NM="$lt_cv_path_NM"
12194 else
12195 # Didn't find any BSD compatible name lister, look for dumpbin.
12196 if test -n "$DUMPBIN"; then :
12197 # Let the user override the test.
12198 else
12199 if test -n "$ac_tool_prefix"; then
12200 for ac_prog in dumpbin "link -dump"
12202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205 $as_echo_n "checking for $ac_word... " >&6; }
12206 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12207 $as_echo_n "(cached) " >&6
12208 else
12209 if test -n "$DUMPBIN"; then
12210 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12211 else
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in $PATH
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12219 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 break 2
12223 done
12224 done
12225 IFS=$as_save_IFS
12229 DUMPBIN=$ac_cv_prog_DUMPBIN
12230 if test -n "$DUMPBIN"; then
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12232 $as_echo "$DUMPBIN" >&6; }
12233 else
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235 $as_echo "no" >&6; }
12239 test -n "$DUMPBIN" && break
12240 done
12242 if test -z "$DUMPBIN"; then
12243 ac_ct_DUMPBIN=$DUMPBIN
12244 for ac_prog in dumpbin "link -dump"
12246 # Extract the first word of "$ac_prog", so it can be a program name with args.
12247 set dummy $ac_prog; ac_word=$2
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12249 $as_echo_n "checking for $ac_word... " >&6; }
12250 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12251 $as_echo_n "(cached) " >&6
12252 else
12253 if test -n "$ac_ct_DUMPBIN"; then
12254 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12255 else
12256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12257 for as_dir in $PATH
12259 IFS=$as_save_IFS
12260 test -z "$as_dir" && as_dir=.
12261 for ac_exec_ext in '' $ac_executable_extensions; do
12262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12263 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12265 break 2
12267 done
12268 done
12269 IFS=$as_save_IFS
12273 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12274 if test -n "$ac_ct_DUMPBIN"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12276 $as_echo "$ac_ct_DUMPBIN" >&6; }
12277 else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279 $as_echo "no" >&6; }
12283 test -n "$ac_ct_DUMPBIN" && break
12284 done
12286 if test "x$ac_ct_DUMPBIN" = x; then
12287 DUMPBIN=":"
12288 else
12289 case $cross_compiling:$ac_tool_warned in
12290 yes:)
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12293 ac_tool_warned=yes ;;
12294 esac
12295 DUMPBIN=$ac_ct_DUMPBIN
12299 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12300 *COFF*)
12301 DUMPBIN="$DUMPBIN -symbols"
12304 DUMPBIN=:
12306 esac
12309 if test "$DUMPBIN" != ":"; then
12310 NM="$DUMPBIN"
12313 test -z "$NM" && NM=nm
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12321 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12322 if test "${lt_cv_nm_interface+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 lt_cv_nm_interface="BSD nm"
12326 echo "int some_variable = 0;" > conftest.$ac_ext
12327 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12328 (eval "$ac_compile" 2>conftest.err)
12329 cat conftest.err >&5
12330 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12331 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12332 cat conftest.err >&5
12333 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12334 cat conftest.out >&5
12335 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12336 lt_cv_nm_interface="MS dumpbin"
12338 rm -f conftest*
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12341 $as_echo "$lt_cv_nm_interface" >&6; }
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12344 $as_echo_n "checking whether ln -s works... " >&6; }
12345 LN_S=$as_ln_s
12346 if test "$LN_S" = "ln -s"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12348 $as_echo "yes" >&6; }
12349 else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12351 $as_echo "no, using $LN_S" >&6; }
12354 # find the maximum length of command line arguments
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12356 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12357 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12361 teststring="ABCD"
12363 case $build_os in
12364 msdosdjgpp*)
12365 # On DJGPP, this test can blow up pretty badly due to problems in libc
12366 # (any single argument exceeding 2000 bytes causes a buffer overrun
12367 # during glob expansion). Even if it were fixed, the result of this
12368 # check would be larger than it should be.
12369 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12372 gnu*)
12373 # Under GNU Hurd, this test is not required because there is
12374 # no limit to the length of command line arguments.
12375 # Libtool will interpret -1 as no limit whatsoever
12376 lt_cv_sys_max_cmd_len=-1;
12379 cygwin* | mingw* | cegcc*)
12380 # On Win9x/ME, this test blows up -- it succeeds, but takes
12381 # about 5 minutes as the teststring grows exponentially.
12382 # Worse, since 9x/ME are not pre-emptively multitasking,
12383 # you end up with a "frozen" computer, even though with patience
12384 # the test eventually succeeds (with a max line length of 256k).
12385 # Instead, let's just punt: use the minimum linelength reported by
12386 # all of the supported platforms: 8192 (on NT/2K/XP).
12387 lt_cv_sys_max_cmd_len=8192;
12390 mint*)
12391 # On MiNT this can take a long time and run out of memory.
12392 lt_cv_sys_max_cmd_len=8192;
12395 amigaos*)
12396 # On AmigaOS with pdksh, this test takes hours, literally.
12397 # So we just punt and use a minimum line length of 8192.
12398 lt_cv_sys_max_cmd_len=8192;
12401 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12402 # This has been around since 386BSD, at least. Likely further.
12403 if test -x /sbin/sysctl; then
12404 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12405 elif test -x /usr/sbin/sysctl; then
12406 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12407 else
12408 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12410 # And add a safety zone
12411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12415 interix*)
12416 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12417 lt_cv_sys_max_cmd_len=196608
12420 osf*)
12421 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12422 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12423 # nice to cause kernel panics so lets avoid the loop below.
12424 # First set a reasonable default.
12425 lt_cv_sys_max_cmd_len=16384
12427 if test -x /sbin/sysconfig; then
12428 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12429 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12430 esac
12433 sco3.2v5*)
12434 lt_cv_sys_max_cmd_len=102400
12436 sysv5* | sco5v6* | sysv4.2uw2*)
12437 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12438 if test -n "$kargmax"; then
12439 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12440 else
12441 lt_cv_sys_max_cmd_len=32768
12445 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12446 if test -n "$lt_cv_sys_max_cmd_len"; then
12447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12448 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12449 else
12450 # Make teststring a little bigger before we do anything with it.
12451 # a 1K string should be a reasonable start.
12452 for i in 1 2 3 4 5 6 7 8 ; do
12453 teststring=$teststring$teststring
12454 done
12455 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12456 # If test is not a shell built-in, we'll probably end up computing a
12457 # maximum length that is only half of the actual maximum length, but
12458 # we can't tell.
12459 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12460 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12461 test $i != 17 # 1/2 MB should be enough
12463 i=`expr $i + 1`
12464 teststring=$teststring$teststring
12465 done
12466 # Only check the string length outside the loop.
12467 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12468 teststring=
12469 # Add a significant safety factor because C++ compilers can tack on
12470 # massive amounts of additional arguments before passing them to the
12471 # linker. It appears as though 1/2 is a usable value.
12472 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12475 esac
12479 if test -n $lt_cv_sys_max_cmd_len ; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12481 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12482 else
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12484 $as_echo "none" >&6; }
12486 max_cmd_len=$lt_cv_sys_max_cmd_len
12493 : ${CP="cp -f"}
12494 : ${MV="mv -f"}
12495 : ${RM="rm -f"}
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12498 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12499 # Try some XSI features
12500 xsi_shell=no
12501 ( _lt_dummy="a/b/c"
12502 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12503 = c,a/b,, \
12504 && eval 'test $(( 1 + 1 )) -eq 2 \
12505 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12506 && xsi_shell=yes
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12508 $as_echo "$xsi_shell" >&6; }
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12512 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12513 lt_shell_append=no
12514 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12515 >/dev/null 2>&1 \
12516 && lt_shell_append=yes
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12518 $as_echo "$lt_shell_append" >&6; }
12521 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12522 lt_unset=unset
12523 else
12524 lt_unset=false
12531 # test EBCDIC or ASCII
12532 case `echo X|tr X '\101'` in
12533 A) # ASCII based system
12534 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12535 lt_SP2NL='tr \040 \012'
12536 lt_NL2SP='tr \015\012 \040\040'
12538 *) # EBCDIC based system
12539 lt_SP2NL='tr \100 \n'
12540 lt_NL2SP='tr \r\n \100\100'
12542 esac
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12553 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12554 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 lt_cv_ld_reload_flag='-r'
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12560 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12561 reload_flag=$lt_cv_ld_reload_flag
12562 case $reload_flag in
12563 "" | " "*) ;;
12564 *) reload_flag=" $reload_flag" ;;
12565 esac
12566 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12567 case $host_os in
12568 darwin*)
12569 if test "$GCC" = yes; then
12570 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12571 else
12572 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12575 esac
12585 if test -n "$ac_tool_prefix"; then
12586 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12587 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12593 if test -n "$OBJDUMP"; then
12594 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12595 else
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12603 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 break 2
12607 done
12608 done
12609 IFS=$as_save_IFS
12613 OBJDUMP=$ac_cv_prog_OBJDUMP
12614 if test -n "$OBJDUMP"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12616 $as_echo "$OBJDUMP" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12624 if test -z "$ac_cv_prog_OBJDUMP"; then
12625 ac_ct_OBJDUMP=$OBJDUMP
12626 # Extract the first word of "objdump", so it can be a program name with args.
12627 set dummy objdump; ac_word=$2
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629 $as_echo_n "checking for $ac_word... " >&6; }
12630 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 if test -n "$ac_ct_OBJDUMP"; then
12634 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12635 else
12636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637 for as_dir in $PATH
12639 IFS=$as_save_IFS
12640 test -z "$as_dir" && as_dir=.
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12643 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645 break 2
12647 done
12648 done
12649 IFS=$as_save_IFS
12653 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12654 if test -n "$ac_ct_OBJDUMP"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12656 $as_echo "$ac_ct_OBJDUMP" >&6; }
12657 else
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12662 if test "x$ac_ct_OBJDUMP" = x; then
12663 OBJDUMP="false"
12664 else
12665 case $cross_compiling:$ac_tool_warned in
12666 yes:)
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12669 ac_tool_warned=yes ;;
12670 esac
12671 OBJDUMP=$ac_ct_OBJDUMP
12673 else
12674 OBJDUMP="$ac_cv_prog_OBJDUMP"
12677 test -z "$OBJDUMP" && OBJDUMP=objdump
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12688 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12689 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
12691 else
12692 lt_cv_file_magic_cmd='$MAGIC_CMD'
12693 lt_cv_file_magic_test_file=
12694 lt_cv_deplibs_check_method='unknown'
12695 # Need to set the preceding variable on all platforms that support
12696 # interlibrary dependencies.
12697 # 'none' -- dependencies not supported.
12698 # `unknown' -- same as none, but documents that we really don't know.
12699 # 'pass_all' -- all dependencies passed with no checks.
12700 # 'test_compile' -- check by making test program.
12701 # 'file_magic [[regex]]' -- check by looking for files in library path
12702 # which responds to the $file_magic_cmd with a given extended regex.
12703 # If you have `file' or equivalent on your system and you're not sure
12704 # whether `pass_all' will *always* work, you probably want this one.
12706 case $host_os in
12707 aix[4-9]*)
12708 lt_cv_deplibs_check_method=pass_all
12711 beos*)
12712 lt_cv_deplibs_check_method=pass_all
12715 bsdi[45]*)
12716 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12717 lt_cv_file_magic_cmd='/usr/bin/file -L'
12718 lt_cv_file_magic_test_file=/shlib/libc.so
12721 cygwin*)
12722 # func_win32_libid is a shell function defined in ltmain.sh
12723 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12724 lt_cv_file_magic_cmd='func_win32_libid'
12727 mingw* | pw32*)
12728 # Base MSYS/MinGW do not provide the 'file' command needed by
12729 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12730 # unless we find 'file', for example because we are cross-compiling.
12731 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12732 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12733 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12734 lt_cv_file_magic_cmd='func_win32_libid'
12735 else
12736 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12737 lt_cv_file_magic_cmd='$OBJDUMP -f'
12741 cegcc*)
12742 # use the weaker test based on 'objdump'. See mingw*.
12743 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12744 lt_cv_file_magic_cmd='$OBJDUMP -f'
12747 darwin* | rhapsody*)
12748 lt_cv_deplibs_check_method=pass_all
12751 freebsd* | dragonfly*)
12752 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12753 case $host_cpu in
12754 i*86 )
12755 # Not sure whether the presence of OpenBSD here was a mistake.
12756 # Let's accept both of them until this is cleared up.
12757 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12758 lt_cv_file_magic_cmd=/usr/bin/file
12759 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12761 esac
12762 else
12763 lt_cv_deplibs_check_method=pass_all
12767 gnu*)
12768 lt_cv_deplibs_check_method=pass_all
12771 haiku*)
12772 lt_cv_deplibs_check_method=pass_all
12775 hpux10.20* | hpux11*)
12776 lt_cv_file_magic_cmd=/usr/bin/file
12777 case $host_cpu in
12778 ia64*)
12779 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12780 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12782 hppa*64*)
12783 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]'
12784 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12787 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12788 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12790 esac
12793 interix[3-9]*)
12794 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12795 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12798 irix5* | irix6* | nonstopux*)
12799 case $LD in
12800 *-32|*"-32 ") libmagic=32-bit;;
12801 *-n32|*"-n32 ") libmagic=N32;;
12802 *-64|*"-64 ") libmagic=64-bit;;
12803 *) libmagic=never-match;;
12804 esac
12805 lt_cv_deplibs_check_method=pass_all
12808 # This must be Linux ELF.
12809 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12810 lt_cv_deplibs_check_method=pass_all
12813 netbsd*)
12814 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12816 else
12817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12821 newos6*)
12822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12823 lt_cv_file_magic_cmd=/usr/bin/file
12824 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12827 *nto* | *qnx*)
12828 lt_cv_deplibs_check_method=pass_all
12831 openbsd*)
12832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12834 else
12835 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12839 osf3* | osf4* | osf5*)
12840 lt_cv_deplibs_check_method=pass_all
12843 rdos*)
12844 lt_cv_deplibs_check_method=pass_all
12847 solaris*)
12848 lt_cv_deplibs_check_method=pass_all
12851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12852 lt_cv_deplibs_check_method=pass_all
12855 sysv4 | sysv4.3*)
12856 case $host_vendor in
12857 motorola)
12858 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]'
12859 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12861 ncr)
12862 lt_cv_deplibs_check_method=pass_all
12864 sequent)
12865 lt_cv_file_magic_cmd='/bin/file'
12866 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12868 sni)
12869 lt_cv_file_magic_cmd='/bin/file'
12870 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12871 lt_cv_file_magic_test_file=/lib/libc.so
12873 siemens)
12874 lt_cv_deplibs_check_method=pass_all
12877 lt_cv_deplibs_check_method=pass_all
12879 esac
12882 tpf*)
12883 lt_cv_deplibs_check_method=pass_all
12885 esac
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12889 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12890 file_magic_cmd=$lt_cv_file_magic_cmd
12891 deplibs_check_method=$lt_cv_deplibs_check_method
12892 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12905 if test -n "$ac_tool_prefix"; then
12906 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12907 set dummy ${ac_tool_prefix}ar; ac_word=$2
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12909 $as_echo_n "checking for $ac_word... " >&6; }
12910 if test "${ac_cv_prog_AR+set}" = set; then :
12911 $as_echo_n "(cached) " >&6
12912 else
12913 if test -n "$AR"; then
12914 ac_cv_prog_AR="$AR" # Let the user override the test.
12915 else
12916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917 for as_dir in $PATH
12919 IFS=$as_save_IFS
12920 test -z "$as_dir" && as_dir=.
12921 for ac_exec_ext in '' $ac_executable_extensions; do
12922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12923 ac_cv_prog_AR="${ac_tool_prefix}ar"
12924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12925 break 2
12927 done
12928 done
12929 IFS=$as_save_IFS
12933 AR=$ac_cv_prog_AR
12934 if test -n "$AR"; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12936 $as_echo "$AR" >&6; }
12937 else
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939 $as_echo "no" >&6; }
12944 if test -z "$ac_cv_prog_AR"; then
12945 ac_ct_AR=$AR
12946 # Extract the first word of "ar", so it can be a program name with args.
12947 set dummy ar; ac_word=$2
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949 $as_echo_n "checking for $ac_word... " >&6; }
12950 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12951 $as_echo_n "(cached) " >&6
12952 else
12953 if test -n "$ac_ct_AR"; then
12954 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12955 else
12956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957 for as_dir in $PATH
12959 IFS=$as_save_IFS
12960 test -z "$as_dir" && as_dir=.
12961 for ac_exec_ext in '' $ac_executable_extensions; do
12962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12963 ac_cv_prog_ac_ct_AR="ar"
12964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12965 break 2
12967 done
12968 done
12969 IFS=$as_save_IFS
12973 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12974 if test -n "$ac_ct_AR"; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12976 $as_echo "$ac_ct_AR" >&6; }
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12982 if test "x$ac_ct_AR" = x; then
12983 AR="false"
12984 else
12985 case $cross_compiling:$ac_tool_warned in
12986 yes:)
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12989 ac_tool_warned=yes ;;
12990 esac
12991 AR=$ac_ct_AR
12993 else
12994 AR="$ac_cv_prog_AR"
12997 test -z "$AR" && AR=ar
12998 test -z "$AR_FLAGS" && AR_FLAGS=cru
13010 if test -n "$ac_tool_prefix"; then
13011 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13012 set dummy ${ac_tool_prefix}strip; ac_word=$2
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13014 $as_echo_n "checking for $ac_word... " >&6; }
13015 if test "${ac_cv_prog_STRIP+set}" = set; then :
13016 $as_echo_n "(cached) " >&6
13017 else
13018 if test -n "$STRIP"; then
13019 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13020 else
13021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022 for as_dir in $PATH
13024 IFS=$as_save_IFS
13025 test -z "$as_dir" && as_dir=.
13026 for ac_exec_ext in '' $ac_executable_extensions; do
13027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13028 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13030 break 2
13032 done
13033 done
13034 IFS=$as_save_IFS
13038 STRIP=$ac_cv_prog_STRIP
13039 if test -n "$STRIP"; then
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13041 $as_echo "$STRIP" >&6; }
13042 else
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044 $as_echo "no" >&6; }
13049 if test -z "$ac_cv_prog_STRIP"; then
13050 ac_ct_STRIP=$STRIP
13051 # Extract the first word of "strip", so it can be a program name with args.
13052 set dummy strip; ac_word=$2
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13054 $as_echo_n "checking for $ac_word... " >&6; }
13055 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 if test -n "$ac_ct_STRIP"; then
13059 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13060 else
13061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13062 for as_dir in $PATH
13064 IFS=$as_save_IFS
13065 test -z "$as_dir" && as_dir=.
13066 for ac_exec_ext in '' $ac_executable_extensions; do
13067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13068 ac_cv_prog_ac_ct_STRIP="strip"
13069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13070 break 2
13072 done
13073 done
13074 IFS=$as_save_IFS
13078 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13079 if test -n "$ac_ct_STRIP"; then
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13081 $as_echo "$ac_ct_STRIP" >&6; }
13082 else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084 $as_echo "no" >&6; }
13087 if test "x$ac_ct_STRIP" = x; then
13088 STRIP=":"
13089 else
13090 case $cross_compiling:$ac_tool_warned in
13091 yes:)
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13094 ac_tool_warned=yes ;;
13095 esac
13096 STRIP=$ac_ct_STRIP
13098 else
13099 STRIP="$ac_cv_prog_STRIP"
13102 test -z "$STRIP" && STRIP=:
13109 if test -n "$ac_tool_prefix"; then
13110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13113 $as_echo_n "checking for $ac_word... " >&6; }
13114 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13115 $as_echo_n "(cached) " >&6
13116 else
13117 if test -n "$RANLIB"; then
13118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13119 else
13120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121 for as_dir in $PATH
13123 IFS=$as_save_IFS
13124 test -z "$as_dir" && as_dir=.
13125 for ac_exec_ext in '' $ac_executable_extensions; do
13126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13129 break 2
13131 done
13132 done
13133 IFS=$as_save_IFS
13137 RANLIB=$ac_cv_prog_RANLIB
13138 if test -n "$RANLIB"; then
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13140 $as_echo "$RANLIB" >&6; }
13141 else
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143 $as_echo "no" >&6; }
13148 if test -z "$ac_cv_prog_RANLIB"; then
13149 ac_ct_RANLIB=$RANLIB
13150 # Extract the first word of "ranlib", so it can be a program name with args.
13151 set dummy ranlib; ac_word=$2
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13153 $as_echo_n "checking for $ac_word... " >&6; }
13154 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
13156 else
13157 if test -n "$ac_ct_RANLIB"; then
13158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13159 else
13160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161 for as_dir in $PATH
13163 IFS=$as_save_IFS
13164 test -z "$as_dir" && as_dir=.
13165 for ac_exec_ext in '' $ac_executable_extensions; do
13166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13167 ac_cv_prog_ac_ct_RANLIB="ranlib"
13168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13169 break 2
13171 done
13172 done
13173 IFS=$as_save_IFS
13177 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13178 if test -n "$ac_ct_RANLIB"; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13180 $as_echo "$ac_ct_RANLIB" >&6; }
13181 else
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13183 $as_echo "no" >&6; }
13186 if test "x$ac_ct_RANLIB" = x; then
13187 RANLIB=":"
13188 else
13189 case $cross_compiling:$ac_tool_warned in
13190 yes:)
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13193 ac_tool_warned=yes ;;
13194 esac
13195 RANLIB=$ac_ct_RANLIB
13197 else
13198 RANLIB="$ac_cv_prog_RANLIB"
13201 test -z "$RANLIB" && RANLIB=:
13208 # Determine commands to create old-style static archives.
13209 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13210 old_postinstall_cmds='chmod 644 $oldlib'
13211 old_postuninstall_cmds=
13213 if test -n "$RANLIB"; then
13214 case $host_os in
13215 openbsd*)
13216 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13219 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13221 esac
13222 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13225 case $host_os in
13226 darwin*)
13227 lock_old_archive_extraction=yes ;;
13229 lock_old_archive_extraction=no ;;
13230 esac
13270 # If no C compiler was specified, use CC.
13271 LTCC=${LTCC-"$CC"}
13273 # If no C compiler flags were specified, use CFLAGS.
13274 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13276 # Allow CC to be a program name with arguments.
13277 compiler=$CC
13280 # Check for command to grab the raw symbol name followed by C symbol from nm.
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13282 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13283 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13287 # These are sane defaults that work on at least a few old systems.
13288 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13290 # Character class describing NM global symbol codes.
13291 symcode='[BCDEGRST]'
13293 # Regexp to match symbols that can be accessed directly from C.
13294 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13296 # Define system-specific variables.
13297 case $host_os in
13298 aix*)
13299 symcode='[BCDT]'
13301 cygwin* | mingw* | pw32* | cegcc*)
13302 symcode='[ABCDGISTW]'
13304 hpux*)
13305 if test "$host_cpu" = ia64; then
13306 symcode='[ABCDEGRST]'
13309 irix* | nonstopux*)
13310 symcode='[BCDEGRST]'
13312 osf*)
13313 symcode='[BCDEGQRST]'
13315 solaris*)
13316 symcode='[BDRT]'
13318 sco3.2v5*)
13319 symcode='[DT]'
13321 sysv4.2uw2*)
13322 symcode='[DT]'
13324 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13325 symcode='[ABDT]'
13327 sysv4)
13328 symcode='[DFNSTU]'
13330 esac
13332 # If we're using GNU nm, then use its standard symbol codes.
13333 case `$NM -V 2>&1` in
13334 *GNU* | *'with BFD'*)
13335 symcode='[ABCDGIRSTW]' ;;
13336 esac
13338 # Transform an extracted symbol line into a proper C declaration.
13339 # Some systems (esp. on ia64) link data and code symbols differently,
13340 # so use this general approach.
13341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13343 # Transform an extracted symbol line into symbol name and symbol address
13344 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13345 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'"
13347 # Handle CRLF in mingw tool chain
13348 opt_cr=
13349 case $build_os in
13350 mingw*)
13351 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13353 esac
13355 # Try without a prefix underscore, then with it.
13356 for ac_symprfx in "" "_"; do
13358 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13359 symxfrm="\\1 $ac_symprfx\\2 \\2"
13361 # Write the raw and C identifiers.
13362 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13363 # Fake it for dumpbin and say T for any non-static function
13364 # and D for any global variable.
13365 # Also find C++ and __fastcall symbols from MSVC++,
13366 # which start with @ or ?.
13367 lt_cv_sys_global_symbol_pipe="$AWK '"\
13368 " {last_section=section; section=\$ 3};"\
13369 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13370 " \$ 0!~/External *\|/{next};"\
13371 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13372 " {if(hide[section]) next};"\
13373 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13374 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13375 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13376 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13377 " ' prfx=^$ac_symprfx"
13378 else
13379 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13382 # Check to see that the pipe works correctly.
13383 pipe_works=no
13385 rm -f conftest*
13386 cat > conftest.$ac_ext <<_LT_EOF
13387 #ifdef __cplusplus
13388 extern "C" {
13389 #endif
13390 char nm_test_var;
13391 void nm_test_func(void);
13392 void nm_test_func(void){}
13393 #ifdef __cplusplus
13395 #endif
13396 int main(){nm_test_var='a';nm_test_func();return(0);}
13397 _LT_EOF
13399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13400 (eval $ac_compile) 2>&5
13401 ac_status=$?
13402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13403 test $ac_status = 0; }; then
13404 # Now try to grab the symbols.
13405 nlist=conftest.nm
13406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13407 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13408 ac_status=$?
13409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13410 test $ac_status = 0; } && test -s "$nlist"; then
13411 # Try sorting and uniquifying the output.
13412 if sort "$nlist" | uniq > "$nlist"T; then
13413 mv -f "$nlist"T "$nlist"
13414 else
13415 rm -f "$nlist"T
13418 # Make sure that we snagged all the symbols we need.
13419 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13420 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13421 cat <<_LT_EOF > conftest.$ac_ext
13422 #ifdef __cplusplus
13423 extern "C" {
13424 #endif
13426 _LT_EOF
13427 # Now generate the symbol file.
13428 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13430 cat <<_LT_EOF >> conftest.$ac_ext
13432 /* The mapping between symbol names and symbols. */
13433 const struct {
13434 const char *name;
13435 void *address;
13437 lt__PROGRAM__LTX_preloaded_symbols[] =
13439 { "@PROGRAM@", (void *) 0 },
13440 _LT_EOF
13441 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13442 cat <<\_LT_EOF >> conftest.$ac_ext
13443 {0, (void *) 0}
13446 /* This works around a problem in FreeBSD linker */
13447 #ifdef FREEBSD_WORKAROUND
13448 static const void *lt_preloaded_setup() {
13449 return lt__PROGRAM__LTX_preloaded_symbols;
13451 #endif
13453 #ifdef __cplusplus
13455 #endif
13456 _LT_EOF
13457 # Now try linking the two files.
13458 mv conftest.$ac_objext conftstm.$ac_objext
13459 lt_save_LIBS="$LIBS"
13460 lt_save_CFLAGS="$CFLAGS"
13461 LIBS="conftstm.$ac_objext"
13462 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13464 (eval $ac_link) 2>&5
13465 ac_status=$?
13466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13467 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13468 pipe_works=yes
13470 LIBS="$lt_save_LIBS"
13471 CFLAGS="$lt_save_CFLAGS"
13472 else
13473 echo "cannot find nm_test_func in $nlist" >&5
13475 else
13476 echo "cannot find nm_test_var in $nlist" >&5
13478 else
13479 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13481 else
13482 echo "$progname: failed program was:" >&5
13483 cat conftest.$ac_ext >&5
13485 rm -rf conftest* conftst*
13487 # Do not use the global_symbol_pipe unless it works.
13488 if test "$pipe_works" = yes; then
13489 break
13490 else
13491 lt_cv_sys_global_symbol_pipe=
13493 done
13497 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13498 lt_cv_sys_global_symbol_to_cdecl=
13500 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13502 $as_echo "failed" >&6; }
13503 else
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13505 $as_echo "ok" >&6; }
13529 # Check whether --enable-libtool-lock was given.
13530 if test "${enable_libtool_lock+set}" = set; then :
13531 enableval=$enable_libtool_lock;
13534 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13536 # Some flags need to be propagated to the compiler or linker for good
13537 # libtool support.
13538 case $host in
13539 ia64-*-hpux*)
13540 # Find out which ABI we are using.
13541 echo 'int i;' > conftest.$ac_ext
13542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13543 (eval $ac_compile) 2>&5
13544 ac_status=$?
13545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13546 test $ac_status = 0; }; then
13547 case `/usr/bin/file conftest.$ac_objext` in
13548 *ELF-32*)
13549 HPUX_IA64_MODE="32"
13551 *ELF-64*)
13552 HPUX_IA64_MODE="64"
13554 esac
13556 rm -rf conftest*
13558 *-*-irix6*)
13559 # Find out which ABI we are using.
13560 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13562 (eval $ac_compile) 2>&5
13563 ac_status=$?
13564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13565 test $ac_status = 0; }; then
13566 if test "$lt_cv_prog_gnu_ld" = yes; then
13567 case `/usr/bin/file conftest.$ac_objext` in
13568 *32-bit*)
13569 LD="${LD-ld} -melf32bsmip"
13571 *N32*)
13572 LD="${LD-ld} -melf32bmipn32"
13574 *64-bit*)
13575 LD="${LD-ld} -melf64bmip"
13577 esac
13578 else
13579 case `/usr/bin/file conftest.$ac_objext` in
13580 *32-bit*)
13581 LD="${LD-ld} -32"
13583 *N32*)
13584 LD="${LD-ld} -n32"
13586 *64-bit*)
13587 LD="${LD-ld} -64"
13589 esac
13592 rm -rf conftest*
13595 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13596 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13597 # Find out which ABI we are using.
13598 echo 'int i;' > conftest.$ac_ext
13599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13600 (eval $ac_compile) 2>&5
13601 ac_status=$?
13602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13603 test $ac_status = 0; }; then
13604 case `/usr/bin/file conftest.o` in
13605 *32-bit*)
13606 case $host in
13607 x86_64-*kfreebsd*-gnu)
13608 LD="${LD-ld} -m elf_i386_fbsd"
13610 x86_64-*linux*)
13611 case `/usr/bin/file conftest.o` in
13612 *x86-64*)
13613 LD="${LD-ld} -m elf32_x86_64"
13616 LD="${LD-ld} -m elf_i386"
13618 esac
13620 ppc64-*linux*|powerpc64-*linux*)
13621 LD="${LD-ld} -m elf32ppclinux"
13623 s390x-*linux*)
13624 LD="${LD-ld} -m elf_s390"
13626 sparc64-*linux*)
13627 LD="${LD-ld} -m elf32_sparc"
13629 esac
13631 *64-bit*)
13632 case $host in
13633 x86_64-*kfreebsd*-gnu)
13634 LD="${LD-ld} -m elf_x86_64_fbsd"
13636 x86_64-*linux*)
13637 LD="${LD-ld} -m elf_x86_64"
13639 ppc*-*linux*|powerpc*-*linux*)
13640 LD="${LD-ld} -m elf64ppc"
13642 s390*-*linux*|s390*-*tpf*)
13643 LD="${LD-ld} -m elf64_s390"
13645 sparc*-*linux*)
13646 LD="${LD-ld} -m elf64_sparc"
13648 esac
13650 esac
13652 rm -rf conftest*
13655 *-*-sco3.2v5*)
13656 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13657 SAVE_CFLAGS="$CFLAGS"
13658 CFLAGS="$CFLAGS -belf"
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13660 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13661 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13662 $as_echo_n "(cached) " >&6
13663 else
13664 ac_ext=c
13665 ac_cpp='$CPP $CPPFLAGS'
13666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h. */
13674 main ()
13678 return 0;
13680 _ACEOF
13681 if ac_fn_c_try_link "$LINENO"; then :
13682 lt_cv_cc_needs_belf=yes
13683 else
13684 lt_cv_cc_needs_belf=no
13686 rm -f core conftest.err conftest.$ac_objext \
13687 conftest$ac_exeext conftest.$ac_ext
13688 ac_ext=c
13689 ac_cpp='$CPP $CPPFLAGS'
13690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13696 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13697 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13698 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13699 CFLAGS="$SAVE_CFLAGS"
13702 sparc*-*solaris*)
13703 # Find out which ABI we are using.
13704 echo 'int i;' > conftest.$ac_ext
13705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13706 (eval $ac_compile) 2>&5
13707 ac_status=$?
13708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13709 test $ac_status = 0; }; then
13710 case `/usr/bin/file conftest.o` in
13711 *64-bit*)
13712 case $lt_cv_prog_gnu_ld in
13713 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13715 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13716 LD="${LD-ld} -64"
13719 esac
13721 esac
13723 rm -rf conftest*
13725 esac
13727 need_locks="$enable_libtool_lock"
13730 case $host_os in
13731 rhapsody* | darwin*)
13732 if test -n "$ac_tool_prefix"; then
13733 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13734 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13736 $as_echo_n "checking for $ac_word... " >&6; }
13737 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13738 $as_echo_n "(cached) " >&6
13739 else
13740 if test -n "$DSYMUTIL"; then
13741 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13742 else
13743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13744 for as_dir in $PATH
13746 IFS=$as_save_IFS
13747 test -z "$as_dir" && as_dir=.
13748 for ac_exec_ext in '' $ac_executable_extensions; do
13749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13750 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13752 break 2
13754 done
13755 done
13756 IFS=$as_save_IFS
13760 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13761 if test -n "$DSYMUTIL"; then
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13763 $as_echo "$DSYMUTIL" >&6; }
13764 else
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766 $as_echo "no" >&6; }
13771 if test -z "$ac_cv_prog_DSYMUTIL"; then
13772 ac_ct_DSYMUTIL=$DSYMUTIL
13773 # Extract the first word of "dsymutil", so it can be a program name with args.
13774 set dummy dsymutil; ac_word=$2
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13776 $as_echo_n "checking for $ac_word... " >&6; }
13777 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13778 $as_echo_n "(cached) " >&6
13779 else
13780 if test -n "$ac_ct_DSYMUTIL"; then
13781 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13782 else
13783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784 for as_dir in $PATH
13786 IFS=$as_save_IFS
13787 test -z "$as_dir" && as_dir=.
13788 for ac_exec_ext in '' $ac_executable_extensions; do
13789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13790 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13792 break 2
13794 done
13795 done
13796 IFS=$as_save_IFS
13800 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13801 if test -n "$ac_ct_DSYMUTIL"; then
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13803 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13804 else
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13806 $as_echo "no" >&6; }
13809 if test "x$ac_ct_DSYMUTIL" = x; then
13810 DSYMUTIL=":"
13811 else
13812 case $cross_compiling:$ac_tool_warned in
13813 yes:)
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13816 ac_tool_warned=yes ;;
13817 esac
13818 DSYMUTIL=$ac_ct_DSYMUTIL
13820 else
13821 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13824 if test -n "$ac_tool_prefix"; then
13825 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13826 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13828 $as_echo_n "checking for $ac_word... " >&6; }
13829 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13830 $as_echo_n "(cached) " >&6
13831 else
13832 if test -n "$NMEDIT"; then
13833 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13834 else
13835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13836 for as_dir in $PATH
13838 IFS=$as_save_IFS
13839 test -z "$as_dir" && as_dir=.
13840 for ac_exec_ext in '' $ac_executable_extensions; do
13841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13842 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13844 break 2
13846 done
13847 done
13848 IFS=$as_save_IFS
13852 NMEDIT=$ac_cv_prog_NMEDIT
13853 if test -n "$NMEDIT"; then
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13855 $as_echo "$NMEDIT" >&6; }
13856 else
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13858 $as_echo "no" >&6; }
13863 if test -z "$ac_cv_prog_NMEDIT"; then
13864 ac_ct_NMEDIT=$NMEDIT
13865 # Extract the first word of "nmedit", so it can be a program name with args.
13866 set dummy nmedit; ac_word=$2
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13868 $as_echo_n "checking for $ac_word... " >&6; }
13869 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13870 $as_echo_n "(cached) " >&6
13871 else
13872 if test -n "$ac_ct_NMEDIT"; then
13873 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13874 else
13875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876 for as_dir in $PATH
13878 IFS=$as_save_IFS
13879 test -z "$as_dir" && as_dir=.
13880 for ac_exec_ext in '' $ac_executable_extensions; do
13881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13882 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13884 break 2
13886 done
13887 done
13888 IFS=$as_save_IFS
13892 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13893 if test -n "$ac_ct_NMEDIT"; then
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13895 $as_echo "$ac_ct_NMEDIT" >&6; }
13896 else
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13898 $as_echo "no" >&6; }
13901 if test "x$ac_ct_NMEDIT" = x; then
13902 NMEDIT=":"
13903 else
13904 case $cross_compiling:$ac_tool_warned in
13905 yes:)
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13908 ac_tool_warned=yes ;;
13909 esac
13910 NMEDIT=$ac_ct_NMEDIT
13912 else
13913 NMEDIT="$ac_cv_prog_NMEDIT"
13916 if test -n "$ac_tool_prefix"; then
13917 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13918 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13920 $as_echo_n "checking for $ac_word... " >&6; }
13921 if test "${ac_cv_prog_LIPO+set}" = set; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13924 if test -n "$LIPO"; then
13925 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13926 else
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13930 IFS=$as_save_IFS
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13934 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13936 break 2
13938 done
13939 done
13940 IFS=$as_save_IFS
13944 LIPO=$ac_cv_prog_LIPO
13945 if test -n "$LIPO"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13947 $as_echo "$LIPO" >&6; }
13948 else
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950 $as_echo "no" >&6; }
13955 if test -z "$ac_cv_prog_LIPO"; then
13956 ac_ct_LIPO=$LIPO
13957 # Extract the first word of "lipo", so it can be a program name with args.
13958 set dummy lipo; ac_word=$2
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13960 $as_echo_n "checking for $ac_word... " >&6; }
13961 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13962 $as_echo_n "(cached) " >&6
13963 else
13964 if test -n "$ac_ct_LIPO"; then
13965 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13966 else
13967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13968 for as_dir in $PATH
13970 IFS=$as_save_IFS
13971 test -z "$as_dir" && as_dir=.
13972 for ac_exec_ext in '' $ac_executable_extensions; do
13973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13974 ac_cv_prog_ac_ct_LIPO="lipo"
13975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13976 break 2
13978 done
13979 done
13980 IFS=$as_save_IFS
13984 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13985 if test -n "$ac_ct_LIPO"; then
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13987 $as_echo "$ac_ct_LIPO" >&6; }
13988 else
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990 $as_echo "no" >&6; }
13993 if test "x$ac_ct_LIPO" = x; then
13994 LIPO=":"
13995 else
13996 case $cross_compiling:$ac_tool_warned in
13997 yes:)
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14000 ac_tool_warned=yes ;;
14001 esac
14002 LIPO=$ac_ct_LIPO
14004 else
14005 LIPO="$ac_cv_prog_LIPO"
14008 if test -n "$ac_tool_prefix"; then
14009 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14010 set dummy ${ac_tool_prefix}otool; ac_word=$2
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14012 $as_echo_n "checking for $ac_word... " >&6; }
14013 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 if test -n "$OTOOL"; then
14017 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14018 else
14019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020 for as_dir in $PATH
14022 IFS=$as_save_IFS
14023 test -z "$as_dir" && as_dir=.
14024 for ac_exec_ext in '' $ac_executable_extensions; do
14025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14026 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14028 break 2
14030 done
14031 done
14032 IFS=$as_save_IFS
14036 OTOOL=$ac_cv_prog_OTOOL
14037 if test -n "$OTOOL"; then
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14039 $as_echo "$OTOOL" >&6; }
14040 else
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042 $as_echo "no" >&6; }
14047 if test -z "$ac_cv_prog_OTOOL"; then
14048 ac_ct_OTOOL=$OTOOL
14049 # Extract the first word of "otool", so it can be a program name with args.
14050 set dummy otool; ac_word=$2
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14052 $as_echo_n "checking for $ac_word... " >&6; }
14053 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14054 $as_echo_n "(cached) " >&6
14055 else
14056 if test -n "$ac_ct_OTOOL"; then
14057 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14058 else
14059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060 for as_dir in $PATH
14062 IFS=$as_save_IFS
14063 test -z "$as_dir" && as_dir=.
14064 for ac_exec_ext in '' $ac_executable_extensions; do
14065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14066 ac_cv_prog_ac_ct_OTOOL="otool"
14067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14068 break 2
14070 done
14071 done
14072 IFS=$as_save_IFS
14076 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14077 if test -n "$ac_ct_OTOOL"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14079 $as_echo "$ac_ct_OTOOL" >&6; }
14080 else
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14082 $as_echo "no" >&6; }
14085 if test "x$ac_ct_OTOOL" = x; then
14086 OTOOL=":"
14087 else
14088 case $cross_compiling:$ac_tool_warned in
14089 yes:)
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14092 ac_tool_warned=yes ;;
14093 esac
14094 OTOOL=$ac_ct_OTOOL
14096 else
14097 OTOOL="$ac_cv_prog_OTOOL"
14100 if test -n "$ac_tool_prefix"; then
14101 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14102 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14104 $as_echo_n "checking for $ac_word... " >&6; }
14105 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14106 $as_echo_n "(cached) " >&6
14107 else
14108 if test -n "$OTOOL64"; then
14109 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14110 else
14111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14112 for as_dir in $PATH
14114 IFS=$as_save_IFS
14115 test -z "$as_dir" && as_dir=.
14116 for ac_exec_ext in '' $ac_executable_extensions; do
14117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14118 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14120 break 2
14122 done
14123 done
14124 IFS=$as_save_IFS
14128 OTOOL64=$ac_cv_prog_OTOOL64
14129 if test -n "$OTOOL64"; then
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14131 $as_echo "$OTOOL64" >&6; }
14132 else
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14139 if test -z "$ac_cv_prog_OTOOL64"; then
14140 ac_ct_OTOOL64=$OTOOL64
14141 # Extract the first word of "otool64", so it can be a program name with args.
14142 set dummy otool64; ac_word=$2
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14144 $as_echo_n "checking for $ac_word... " >&6; }
14145 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14146 $as_echo_n "(cached) " >&6
14147 else
14148 if test -n "$ac_ct_OTOOL64"; then
14149 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14150 else
14151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152 for as_dir in $PATH
14154 IFS=$as_save_IFS
14155 test -z "$as_dir" && as_dir=.
14156 for ac_exec_ext in '' $ac_executable_extensions; do
14157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14158 ac_cv_prog_ac_ct_OTOOL64="otool64"
14159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14160 break 2
14162 done
14163 done
14164 IFS=$as_save_IFS
14168 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14169 if test -n "$ac_ct_OTOOL64"; then
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14171 $as_echo "$ac_ct_OTOOL64" >&6; }
14172 else
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14174 $as_echo "no" >&6; }
14177 if test "x$ac_ct_OTOOL64" = x; then
14178 OTOOL64=":"
14179 else
14180 case $cross_compiling:$ac_tool_warned in
14181 yes:)
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14184 ac_tool_warned=yes ;;
14185 esac
14186 OTOOL64=$ac_ct_OTOOL64
14188 else
14189 OTOOL64="$ac_cv_prog_OTOOL64"
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14219 $as_echo_n "checking for -single_module linker flag... " >&6; }
14220 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14221 $as_echo_n "(cached) " >&6
14222 else
14223 lt_cv_apple_cc_single_mod=no
14224 if test -z "${LT_MULTI_MODULE}"; then
14225 # By default we will add the -single_module flag. You can override
14226 # by either setting the environment variable LT_MULTI_MODULE
14227 # non-empty at configure time, or by adding -multi_module to the
14228 # link flags.
14229 rm -rf libconftest.dylib*
14230 echo "int foo(void){return 1;}" > conftest.c
14231 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14232 -dynamiclib -Wl,-single_module conftest.c" >&5
14233 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14234 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14235 _lt_result=$?
14236 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14237 lt_cv_apple_cc_single_mod=yes
14238 else
14239 cat conftest.err >&5
14241 rm -rf libconftest.dylib*
14242 rm -f conftest.*
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14246 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14248 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14249 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14250 $as_echo_n "(cached) " >&6
14251 else
14252 lt_cv_ld_exported_symbols_list=no
14253 save_LDFLAGS=$LDFLAGS
14254 echo "_main" > conftest.sym
14255 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257 /* end confdefs.h. */
14260 main ()
14264 return 0;
14266 _ACEOF
14267 if ac_fn_c_try_link "$LINENO"; then :
14268 lt_cv_ld_exported_symbols_list=yes
14269 else
14270 lt_cv_ld_exported_symbols_list=no
14272 rm -f core conftest.err conftest.$ac_objext \
14273 conftest$ac_exeext conftest.$ac_ext
14274 LDFLAGS="$save_LDFLAGS"
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14278 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14280 $as_echo_n "checking for -force_load linker flag... " >&6; }
14281 if test "${lt_cv_ld_force_load+set}" = set; then :
14282 $as_echo_n "(cached) " >&6
14283 else
14284 lt_cv_ld_force_load=no
14285 cat > conftest.c << _LT_EOF
14286 int forced_loaded() { return 2;}
14287 _LT_EOF
14288 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14289 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14290 echo "$AR cru libconftest.a conftest.o" >&5
14291 $AR cru libconftest.a conftest.o 2>&5
14292 cat > conftest.c << _LT_EOF
14293 int main() { return 0;}
14294 _LT_EOF
14295 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14296 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14297 _lt_result=$?
14298 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14299 lt_cv_ld_force_load=yes
14300 else
14301 cat conftest.err >&5
14303 rm -f conftest.err libconftest.a conftest conftest.c
14304 rm -rf conftest.dSYM
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14308 $as_echo "$lt_cv_ld_force_load" >&6; }
14309 case $host_os in
14310 rhapsody* | darwin1.[012])
14311 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14312 darwin1.*)
14313 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14314 darwin*) # darwin 5.x on
14315 # if running on 10.5 or later, the deployment target defaults
14316 # to the OS version, if on x86, and 10.4, the deployment
14317 # target defaults to 10.4. Don't you love it?
14318 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14319 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14320 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14321 10.[012]*)
14322 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14323 10.*)
14324 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14325 esac
14327 esac
14328 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14329 _lt_dar_single_mod='$single_module'
14331 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14332 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14333 else
14334 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14336 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14337 _lt_dsymutil='~$DSYMUTIL $lib || :'
14338 else
14339 _lt_dsymutil=
14342 esac
14344 for ac_header in dlfcn.h
14345 do :
14346 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14347 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14348 cat >>confdefs.h <<_ACEOF
14349 #define HAVE_DLFCN_H 1
14350 _ACEOF
14353 done
14359 # Set options
14363 enable_dlopen=no
14366 enable_win32_dll=no
14369 # Check whether --enable-shared was given.
14370 if test "${enable_shared+set}" = set; then :
14371 enableval=$enable_shared; p=${PACKAGE-default}
14372 case $enableval in
14373 yes) enable_shared=yes ;;
14374 no) enable_shared=no ;;
14376 enable_shared=no
14377 # Look at the argument we got. We use all the common list separators.
14378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14379 for pkg in $enableval; do
14380 IFS="$lt_save_ifs"
14381 if test "X$pkg" = "X$p"; then
14382 enable_shared=yes
14384 done
14385 IFS="$lt_save_ifs"
14387 esac
14388 else
14389 enable_shared=yes
14400 # Check whether --enable-static was given.
14401 if test "${enable_static+set}" = set; then :
14402 enableval=$enable_static; p=${PACKAGE-default}
14403 case $enableval in
14404 yes) enable_static=yes ;;
14405 no) enable_static=no ;;
14407 enable_static=no
14408 # Look at the argument we got. We use all the common list separators.
14409 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14410 for pkg in $enableval; do
14411 IFS="$lt_save_ifs"
14412 if test "X$pkg" = "X$p"; then
14413 enable_static=yes
14415 done
14416 IFS="$lt_save_ifs"
14418 esac
14419 else
14420 enable_static=yes
14432 # Check whether --with-pic was given.
14433 if test "${with_pic+set}" = set; then :
14434 withval=$with_pic; pic_mode="$withval"
14435 else
14436 pic_mode=default
14440 test -z "$pic_mode" && pic_mode=default
14448 # Check whether --enable-fast-install was given.
14449 if test "${enable_fast_install+set}" = set; then :
14450 enableval=$enable_fast_install; p=${PACKAGE-default}
14451 case $enableval in
14452 yes) enable_fast_install=yes ;;
14453 no) enable_fast_install=no ;;
14455 enable_fast_install=no
14456 # Look at the argument we got. We use all the common list separators.
14457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14458 for pkg in $enableval; do
14459 IFS="$lt_save_ifs"
14460 if test "X$pkg" = "X$p"; then
14461 enable_fast_install=yes
14463 done
14464 IFS="$lt_save_ifs"
14466 esac
14467 else
14468 enable_fast_install=yes
14481 # This can be used to rebuild libtool when needed
14482 LIBTOOL_DEPS="$ltmain"
14484 # Always use our own libtool.
14485 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14512 test -z "$LN_S" && LN_S="ln -s"
14527 if test -n "${ZSH_VERSION+set}" ; then
14528 setopt NO_GLOB_SUBST
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14532 $as_echo_n "checking for objdir... " >&6; }
14533 if test "${lt_cv_objdir+set}" = set; then :
14534 $as_echo_n "(cached) " >&6
14535 else
14536 rm -f .libs 2>/dev/null
14537 mkdir .libs 2>/dev/null
14538 if test -d .libs; then
14539 lt_cv_objdir=.libs
14540 else
14541 # MS-DOS does not allow filenames that begin with a dot.
14542 lt_cv_objdir=_libs
14544 rmdir .libs 2>/dev/null
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14547 $as_echo "$lt_cv_objdir" >&6; }
14548 objdir=$lt_cv_objdir
14554 cat >>confdefs.h <<_ACEOF
14555 #define LT_OBJDIR "$lt_cv_objdir/"
14556 _ACEOF
14561 case $host_os in
14562 aix3*)
14563 # AIX sometimes has problems with the GCC collect2 program. For some
14564 # reason, if we set the COLLECT_NAMES environment variable, the problems
14565 # vanish in a puff of smoke.
14566 if test "X${COLLECT_NAMES+set}" != Xset; then
14567 COLLECT_NAMES=
14568 export COLLECT_NAMES
14571 esac
14573 # Global variables:
14574 ofile=libtool
14575 can_build_shared=yes
14577 # All known linkers require a `.a' archive for static linking (except MSVC,
14578 # which needs '.lib').
14579 libext=a
14581 with_gnu_ld="$lt_cv_prog_gnu_ld"
14583 old_CC="$CC"
14584 old_CFLAGS="$CFLAGS"
14586 # Set sane defaults for various variables
14587 test -z "$CC" && CC=cc
14588 test -z "$LTCC" && LTCC=$CC
14589 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14590 test -z "$LD" && LD=ld
14591 test -z "$ac_objext" && ac_objext=o
14593 for cc_temp in $compiler""; do
14594 case $cc_temp in
14595 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14596 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14597 \-*) ;;
14598 *) break;;
14599 esac
14600 done
14601 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14604 # Only perform the check for file, if the check method requires it
14605 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14606 case $deplibs_check_method in
14607 file_magic*)
14608 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14610 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14611 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14612 $as_echo_n "(cached) " >&6
14613 else
14614 case $MAGIC_CMD in
14615 [\\/*] | ?:[\\/]*)
14616 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14619 lt_save_MAGIC_CMD="$MAGIC_CMD"
14620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14621 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14622 for ac_dir in $ac_dummy; do
14623 IFS="$lt_save_ifs"
14624 test -z "$ac_dir" && ac_dir=.
14625 if test -f $ac_dir/${ac_tool_prefix}file; then
14626 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14627 if test -n "$file_magic_test_file"; then
14628 case $deplibs_check_method in
14629 "file_magic "*)
14630 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14631 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14632 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14633 $EGREP "$file_magic_regex" > /dev/null; then
14635 else
14636 cat <<_LT_EOF 1>&2
14638 *** Warning: the command libtool uses to detect shared libraries,
14639 *** $file_magic_cmd, produces output that libtool cannot recognize.
14640 *** The result is that libtool may fail to recognize shared libraries
14641 *** as such. This will affect the creation of libtool libraries that
14642 *** depend on shared libraries, but programs linked with such libtool
14643 *** libraries will work regardless of this problem. Nevertheless, you
14644 *** may want to report the problem to your system manager and/or to
14645 *** bug-libtool@gnu.org
14647 _LT_EOF
14648 fi ;;
14649 esac
14651 break
14653 done
14654 IFS="$lt_save_ifs"
14655 MAGIC_CMD="$lt_save_MAGIC_CMD"
14657 esac
14660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14661 if test -n "$MAGIC_CMD"; then
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14663 $as_echo "$MAGIC_CMD" >&6; }
14664 else
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666 $as_echo "no" >&6; }
14673 if test -z "$lt_cv_path_MAGIC_CMD"; then
14674 if test -n "$ac_tool_prefix"; then
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14676 $as_echo_n "checking for file... " >&6; }
14677 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14678 $as_echo_n "(cached) " >&6
14679 else
14680 case $MAGIC_CMD in
14681 [\\/*] | ?:[\\/]*)
14682 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14685 lt_save_MAGIC_CMD="$MAGIC_CMD"
14686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14687 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14688 for ac_dir in $ac_dummy; do
14689 IFS="$lt_save_ifs"
14690 test -z "$ac_dir" && ac_dir=.
14691 if test -f $ac_dir/file; then
14692 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14693 if test -n "$file_magic_test_file"; then
14694 case $deplibs_check_method in
14695 "file_magic "*)
14696 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14698 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14699 $EGREP "$file_magic_regex" > /dev/null; then
14701 else
14702 cat <<_LT_EOF 1>&2
14704 *** Warning: the command libtool uses to detect shared libraries,
14705 *** $file_magic_cmd, produces output that libtool cannot recognize.
14706 *** The result is that libtool may fail to recognize shared libraries
14707 *** as such. This will affect the creation of libtool libraries that
14708 *** depend on shared libraries, but programs linked with such libtool
14709 *** libraries will work regardless of this problem. Nevertheless, you
14710 *** may want to report the problem to your system manager and/or to
14711 *** bug-libtool@gnu.org
14713 _LT_EOF
14714 fi ;;
14715 esac
14717 break
14719 done
14720 IFS="$lt_save_ifs"
14721 MAGIC_CMD="$lt_save_MAGIC_CMD"
14723 esac
14726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14727 if test -n "$MAGIC_CMD"; then
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14729 $as_echo "$MAGIC_CMD" >&6; }
14730 else
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14732 $as_echo "no" >&6; }
14736 else
14737 MAGIC_CMD=:
14743 esac
14745 # Use C for the default configuration in the libtool script
14747 lt_save_CC="$CC"
14748 ac_ext=c
14749 ac_cpp='$CPP $CPPFLAGS'
14750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14755 # Source file extension for C test sources.
14756 ac_ext=c
14758 # Object file extension for compiled C test sources.
14759 objext=o
14760 objext=$objext
14762 # Code to be used in simple compile tests
14763 lt_simple_compile_test_code="int some_variable = 0;"
14765 # Code to be used in simple link tests
14766 lt_simple_link_test_code='int main(){return(0);}'
14774 # If no C compiler was specified, use CC.
14775 LTCC=${LTCC-"$CC"}
14777 # If no C compiler flags were specified, use CFLAGS.
14778 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14780 # Allow CC to be a program name with arguments.
14781 compiler=$CC
14783 # Save the default compiler, since it gets overwritten when the other
14784 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14785 compiler_DEFAULT=$CC
14787 # save warnings/boilerplate of simple test code
14788 ac_outfile=conftest.$ac_objext
14789 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14790 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14791 _lt_compiler_boilerplate=`cat conftest.err`
14792 $RM conftest*
14794 ac_outfile=conftest.$ac_objext
14795 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14796 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14797 _lt_linker_boilerplate=`cat conftest.err`
14798 $RM -r conftest*
14801 ## CAVEAT EMPTOR:
14802 ## There is no encapsulation within the following macros, do not change
14803 ## the running order or otherwise move them around unless you know exactly
14804 ## what you are doing...
14805 if test -n "$compiler"; then
14807 lt_prog_compiler_no_builtin_flag=
14809 if test "$GCC" = yes; then
14810 case $cc_basename in
14811 nvcc*)
14812 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14814 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14815 esac
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14818 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14819 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14820 $as_echo_n "(cached) " >&6
14821 else
14822 lt_cv_prog_compiler_rtti_exceptions=no
14823 ac_outfile=conftest.$ac_objext
14824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14825 lt_compiler_flag="-fno-rtti -fno-exceptions"
14826 # Insert the option either (1) after the last *FLAGS variable, or
14827 # (2) before a word containing "conftest.", or (3) at the end.
14828 # Note that $ac_compile itself does not contain backslashes and begins
14829 # with a dollar sign (not a hyphen), so the echo should work correctly.
14830 # The option is referenced via a variable to avoid confusing sed.
14831 lt_compile=`echo "$ac_compile" | $SED \
14832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14834 -e 's:$: $lt_compiler_flag:'`
14835 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14836 (eval "$lt_compile" 2>conftest.err)
14837 ac_status=$?
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 if (exit $ac_status) && test -s "$ac_outfile"; then
14841 # The compiler can only warn and ignore the option if not recognized
14842 # So say no if there are warnings other than the usual output.
14843 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14845 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14846 lt_cv_prog_compiler_rtti_exceptions=yes
14849 $RM conftest*
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14853 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14855 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14856 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14857 else
14868 lt_prog_compiler_wl=
14869 lt_prog_compiler_pic=
14870 lt_prog_compiler_static=
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14873 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14875 if test "$GCC" = yes; then
14876 lt_prog_compiler_wl='-Wl,'
14877 lt_prog_compiler_static='-static'
14879 case $host_os in
14880 aix*)
14881 # All AIX code is PIC.
14882 if test "$host_cpu" = ia64; then
14883 # AIX 5 now supports IA64 processor
14884 lt_prog_compiler_static='-Bstatic'
14886 lt_prog_compiler_pic='-fPIC'
14889 amigaos*)
14890 case $host_cpu in
14891 powerpc)
14892 # see comment about AmigaOS4 .so support
14893 lt_prog_compiler_pic='-fPIC'
14895 m68k)
14896 # FIXME: we need at least 68020 code to build shared libraries, but
14897 # adding the `-m68020' flag to GCC prevents building anything better,
14898 # like `-m68040'.
14899 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14901 esac
14904 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14905 # PIC is the default for these OSes.
14908 mingw* | cygwin* | pw32* | os2* | cegcc*)
14909 # This hack is so that the source file can tell whether it is being
14910 # built for inclusion in a dll (and should export symbols for example).
14911 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14912 # (--disable-auto-import) libraries
14913 lt_prog_compiler_pic='-DDLL_EXPORT'
14916 darwin* | rhapsody*)
14917 # PIC is the default on this platform
14918 # Common symbols not allowed in MH_DYLIB files
14919 lt_prog_compiler_pic='-fno-common'
14922 haiku*)
14923 # PIC is the default for Haiku.
14924 # The "-static" flag exists, but is broken.
14925 lt_prog_compiler_static=
14928 hpux*)
14929 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14930 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14931 # sets the default TLS model and affects inlining.
14932 case $host_cpu in
14933 hppa*64*)
14934 # +Z the default
14937 lt_prog_compiler_pic='-fPIC'
14939 esac
14942 interix[3-9]*)
14943 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14944 # Instead, we relocate shared libraries at runtime.
14947 msdosdjgpp*)
14948 # Just because we use GCC doesn't mean we suddenly get shared libraries
14949 # on systems that don't support them.
14950 lt_prog_compiler_can_build_shared=no
14951 enable_shared=no
14954 *nto* | *qnx*)
14955 # QNX uses GNU C++, but need to define -shared option too, otherwise
14956 # it will coredump.
14957 lt_prog_compiler_pic='-fPIC -shared'
14960 sysv4*MP*)
14961 if test -d /usr/nec; then
14962 lt_prog_compiler_pic=-Kconform_pic
14967 lt_prog_compiler_pic='-fPIC'
14969 esac
14971 case $cc_basename in
14972 nvcc*) # Cuda Compiler Driver 2.2
14973 lt_prog_compiler_wl='-Xlinker '
14974 lt_prog_compiler_pic='-Xcompiler -fPIC'
14976 esac
14977 else
14978 # PORTME Check for flag to pass linker flags through the system compiler.
14979 case $host_os in
14980 aix*)
14981 lt_prog_compiler_wl='-Wl,'
14982 if test "$host_cpu" = ia64; then
14983 # AIX 5 now supports IA64 processor
14984 lt_prog_compiler_static='-Bstatic'
14985 else
14986 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14990 mingw* | cygwin* | pw32* | os2* | cegcc*)
14991 # This hack is so that the source file can tell whether it is being
14992 # built for inclusion in a dll (and should export symbols for example).
14993 lt_prog_compiler_pic='-DDLL_EXPORT'
14996 hpux9* | hpux10* | hpux11*)
14997 lt_prog_compiler_wl='-Wl,'
14998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14999 # not for PA HP-UX.
15000 case $host_cpu in
15001 hppa*64*|ia64*)
15002 # +Z the default
15005 lt_prog_compiler_pic='+Z'
15007 esac
15008 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15009 lt_prog_compiler_static='${wl}-a ${wl}archive'
15012 irix5* | irix6* | nonstopux*)
15013 lt_prog_compiler_wl='-Wl,'
15014 # PIC (with -KPIC) is the default.
15015 lt_prog_compiler_static='-non_shared'
15018 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15019 case $cc_basename in
15020 # old Intel for x86_64 which still supported -KPIC.
15021 ecc*)
15022 lt_prog_compiler_wl='-Wl,'
15023 lt_prog_compiler_pic='-KPIC'
15024 lt_prog_compiler_static='-static'
15026 # icc used to be incompatible with GCC.
15027 # ICC 10 doesn't accept -KPIC any more.
15028 icc* | ifort*)
15029 lt_prog_compiler_wl='-Wl,'
15030 lt_prog_compiler_pic='-fPIC'
15031 lt_prog_compiler_static='-static'
15033 # Lahey Fortran 8.1.
15034 lf95*)
15035 lt_prog_compiler_wl='-Wl,'
15036 lt_prog_compiler_pic='--shared'
15037 lt_prog_compiler_static='--static'
15039 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15040 # Portland Group compilers (*not* the Pentium gcc compiler,
15041 # which looks to be a dead project)
15042 lt_prog_compiler_wl='-Wl,'
15043 lt_prog_compiler_pic='-fpic'
15044 lt_prog_compiler_static='-Bstatic'
15046 ccc*)
15047 lt_prog_compiler_wl='-Wl,'
15048 # All Alpha code is PIC.
15049 lt_prog_compiler_static='-non_shared'
15051 xl* | bgxl* | bgf* | mpixl*)
15052 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15053 lt_prog_compiler_wl='-Wl,'
15054 lt_prog_compiler_pic='-qpic'
15055 lt_prog_compiler_static='-qstaticlink'
15058 case `$CC -V 2>&1 | sed 5q` in
15059 *Sun\ F* | *Sun*Fortran*)
15060 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15061 lt_prog_compiler_pic='-KPIC'
15062 lt_prog_compiler_static='-Bstatic'
15063 lt_prog_compiler_wl=''
15065 *Sun\ C*)
15066 # Sun C 5.9
15067 lt_prog_compiler_pic='-KPIC'
15068 lt_prog_compiler_static='-Bstatic'
15069 lt_prog_compiler_wl='-Wl,'
15071 esac
15073 esac
15076 newsos6)
15077 lt_prog_compiler_pic='-KPIC'
15078 lt_prog_compiler_static='-Bstatic'
15081 *nto* | *qnx*)
15082 # QNX uses GNU C++, but need to define -shared option too, otherwise
15083 # it will coredump.
15084 lt_prog_compiler_pic='-fPIC -shared'
15087 osf3* | osf4* | osf5*)
15088 lt_prog_compiler_wl='-Wl,'
15089 # All OSF/1 code is PIC.
15090 lt_prog_compiler_static='-non_shared'
15093 rdos*)
15094 lt_prog_compiler_static='-non_shared'
15097 solaris*)
15098 lt_prog_compiler_pic='-KPIC'
15099 lt_prog_compiler_static='-Bstatic'
15100 case $cc_basename in
15101 f77* | f90* | f95*)
15102 lt_prog_compiler_wl='-Qoption ld ';;
15104 lt_prog_compiler_wl='-Wl,';;
15105 esac
15108 sunos4*)
15109 lt_prog_compiler_wl='-Qoption ld '
15110 lt_prog_compiler_pic='-PIC'
15111 lt_prog_compiler_static='-Bstatic'
15114 sysv4 | sysv4.2uw2* | sysv4.3*)
15115 lt_prog_compiler_wl='-Wl,'
15116 lt_prog_compiler_pic='-KPIC'
15117 lt_prog_compiler_static='-Bstatic'
15120 sysv4*MP*)
15121 if test -d /usr/nec ;then
15122 lt_prog_compiler_pic='-Kconform_pic'
15123 lt_prog_compiler_static='-Bstatic'
15127 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15128 lt_prog_compiler_wl='-Wl,'
15129 lt_prog_compiler_pic='-KPIC'
15130 lt_prog_compiler_static='-Bstatic'
15133 unicos*)
15134 lt_prog_compiler_wl='-Wl,'
15135 lt_prog_compiler_can_build_shared=no
15138 uts4*)
15139 lt_prog_compiler_pic='-pic'
15140 lt_prog_compiler_static='-Bstatic'
15144 lt_prog_compiler_can_build_shared=no
15146 esac
15149 case $host_os in
15150 # For platforms which do not support PIC, -DPIC is meaningless:
15151 *djgpp*)
15152 lt_prog_compiler_pic=
15155 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15157 esac
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15159 $as_echo "$lt_prog_compiler_pic" >&6; }
15167 # Check to make sure the PIC flag actually works.
15169 if test -n "$lt_prog_compiler_pic"; then
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15171 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15172 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15173 $as_echo_n "(cached) " >&6
15174 else
15175 lt_cv_prog_compiler_pic_works=no
15176 ac_outfile=conftest.$ac_objext
15177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15178 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15179 # Insert the option either (1) after the last *FLAGS variable, or
15180 # (2) before a word containing "conftest.", or (3) at the end.
15181 # Note that $ac_compile itself does not contain backslashes and begins
15182 # with a dollar sign (not a hyphen), so the echo should work correctly.
15183 # The option is referenced via a variable to avoid confusing sed.
15184 lt_compile=`echo "$ac_compile" | $SED \
15185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15186 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15187 -e 's:$: $lt_compiler_flag:'`
15188 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15189 (eval "$lt_compile" 2>conftest.err)
15190 ac_status=$?
15191 cat conftest.err >&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 if (exit $ac_status) && test -s "$ac_outfile"; then
15194 # The compiler can only warn and ignore the option if not recognized
15195 # So say no if there are warnings other than the usual output.
15196 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15198 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15199 lt_cv_prog_compiler_pic_works=yes
15202 $RM conftest*
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15206 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15208 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15209 case $lt_prog_compiler_pic in
15210 "" | " "*) ;;
15211 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15212 esac
15213 else
15214 lt_prog_compiler_pic=
15215 lt_prog_compiler_can_build_shared=no
15226 # Check to make sure the static flag actually works.
15228 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15230 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15231 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15232 $as_echo_n "(cached) " >&6
15233 else
15234 lt_cv_prog_compiler_static_works=no
15235 save_LDFLAGS="$LDFLAGS"
15236 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15237 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15239 # The linker can only warn and ignore the option if not recognized
15240 # So say no if there are warnings
15241 if test -s conftest.err; then
15242 # Append any errors to the config.log.
15243 cat conftest.err 1>&5
15244 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15246 if diff conftest.exp conftest.er2 >/dev/null; then
15247 lt_cv_prog_compiler_static_works=yes
15249 else
15250 lt_cv_prog_compiler_static_works=yes
15253 $RM -r conftest*
15254 LDFLAGS="$save_LDFLAGS"
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15258 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15260 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15262 else
15263 lt_prog_compiler_static=
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15273 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15274 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15275 $as_echo_n "(cached) " >&6
15276 else
15277 lt_cv_prog_compiler_c_o=no
15278 $RM -r conftest 2>/dev/null
15279 mkdir conftest
15280 cd conftest
15281 mkdir out
15282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15284 lt_compiler_flag="-o out/conftest2.$ac_objext"
15285 # Insert the option either (1) after the last *FLAGS variable, or
15286 # (2) before a word containing "conftest.", or (3) at the end.
15287 # Note that $ac_compile itself does not contain backslashes and begins
15288 # with a dollar sign (not a hyphen), so the echo should work correctly.
15289 lt_compile=`echo "$ac_compile" | $SED \
15290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15292 -e 's:$: $lt_compiler_flag:'`
15293 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15294 (eval "$lt_compile" 2>out/conftest.err)
15295 ac_status=$?
15296 cat out/conftest.err >&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15299 then
15300 # The compiler can only warn and ignore the option if not recognized
15301 # So say no if there are warnings
15302 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15303 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15304 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15305 lt_cv_prog_compiler_c_o=yes
15308 chmod u+w . 2>&5
15309 $RM conftest*
15310 # SGI C++ compiler will create directory out/ii_files/ for
15311 # template instantiation
15312 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15313 $RM out/* && rmdir out
15314 cd ..
15315 $RM -r conftest
15316 $RM conftest*
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15320 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15328 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15329 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15330 $as_echo_n "(cached) " >&6
15331 else
15332 lt_cv_prog_compiler_c_o=no
15333 $RM -r conftest 2>/dev/null
15334 mkdir conftest
15335 cd conftest
15336 mkdir out
15337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15339 lt_compiler_flag="-o out/conftest2.$ac_objext"
15340 # Insert the option either (1) after the last *FLAGS variable, or
15341 # (2) before a word containing "conftest.", or (3) at the end.
15342 # Note that $ac_compile itself does not contain backslashes and begins
15343 # with a dollar sign (not a hyphen), so the echo should work correctly.
15344 lt_compile=`echo "$ac_compile" | $SED \
15345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15347 -e 's:$: $lt_compiler_flag:'`
15348 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15349 (eval "$lt_compile" 2>out/conftest.err)
15350 ac_status=$?
15351 cat out/conftest.err >&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15354 then
15355 # The compiler can only warn and ignore the option if not recognized
15356 # So say no if there are warnings
15357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15358 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15359 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15360 lt_cv_prog_compiler_c_o=yes
15363 chmod u+w . 2>&5
15364 $RM conftest*
15365 # SGI C++ compiler will create directory out/ii_files/ for
15366 # template instantiation
15367 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15368 $RM out/* && rmdir out
15369 cd ..
15370 $RM -r conftest
15371 $RM conftest*
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15375 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15380 hard_links="nottested"
15381 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15382 # do not overwrite the value of need_locks provided by the user
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15384 $as_echo_n "checking if we can lock with hard links... " >&6; }
15385 hard_links=yes
15386 $RM conftest*
15387 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15388 touch conftest.a
15389 ln conftest.a conftest.b 2>&5 || hard_links=no
15390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15392 $as_echo "$hard_links" >&6; }
15393 if test "$hard_links" = no; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15395 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15396 need_locks=warn
15398 else
15399 need_locks=no
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15408 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15410 runpath_var=
15411 allow_undefined_flag=
15412 always_export_symbols=no
15413 archive_cmds=
15414 archive_expsym_cmds=
15415 compiler_needs_object=no
15416 enable_shared_with_static_runtimes=no
15417 export_dynamic_flag_spec=
15418 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15419 hardcode_automatic=no
15420 hardcode_direct=no
15421 hardcode_direct_absolute=no
15422 hardcode_libdir_flag_spec=
15423 hardcode_libdir_flag_spec_ld=
15424 hardcode_libdir_separator=
15425 hardcode_minus_L=no
15426 hardcode_shlibpath_var=unsupported
15427 inherit_rpath=no
15428 link_all_deplibs=unknown
15429 module_cmds=
15430 module_expsym_cmds=
15431 old_archive_from_new_cmds=
15432 old_archive_from_expsyms_cmds=
15433 thread_safe_flag_spec=
15434 whole_archive_flag_spec=
15435 # include_expsyms should be a list of space-separated symbols to be *always*
15436 # included in the symbol list
15437 include_expsyms=
15438 # exclude_expsyms can be an extended regexp of symbols to exclude
15439 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15440 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15441 # as well as any symbol that contains `d'.
15442 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15443 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15444 # platforms (ab)use it in PIC code, but their linkers get confused if
15445 # the symbol is explicitly referenced. Since portable code cannot
15446 # rely on this symbol name, it's probably fine to never include it in
15447 # preloaded symbol tables.
15448 # Exclude shared library initialization/finalization symbols.
15449 extract_expsyms_cmds=
15451 case $host_os in
15452 cygwin* | mingw* | pw32* | cegcc*)
15453 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15454 # When not using gcc, we currently assume that we are using
15455 # Microsoft Visual C++.
15456 if test "$GCC" != yes; then
15457 with_gnu_ld=no
15460 interix*)
15461 # we just hope/assume this is gcc and not c89 (= MSVC++)
15462 with_gnu_ld=yes
15464 openbsd*)
15465 with_gnu_ld=no
15467 esac
15469 ld_shlibs=yes
15471 # On some targets, GNU ld is compatible enough with the native linker
15472 # that we're better off using the native interface for both.
15473 lt_use_gnu_ld_interface=no
15474 if test "$with_gnu_ld" = yes; then
15475 case $host_os in
15476 aix*)
15477 # The AIX port of GNU ld has always aspired to compatibility
15478 # with the native linker. However, as the warning in the GNU ld
15479 # block says, versions before 2.19.5* couldn't really create working
15480 # shared libraries, regardless of the interface used.
15481 case `$LD -v 2>&1` in
15482 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15483 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15484 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15486 lt_use_gnu_ld_interface=yes
15488 esac
15491 lt_use_gnu_ld_interface=yes
15493 esac
15496 if test "$lt_use_gnu_ld_interface" = yes; then
15497 # If archive_cmds runs LD, not CC, wlarc should be empty
15498 wlarc='${wl}'
15500 # Set some defaults for GNU ld with shared library support. These
15501 # are reset later if shared libraries are not supported. Putting them
15502 # here allows them to be overridden if necessary.
15503 runpath_var=LD_RUN_PATH
15504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15505 export_dynamic_flag_spec='${wl}--export-dynamic'
15506 # ancient GNU ld didn't support --whole-archive et. al.
15507 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15508 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15509 else
15510 whole_archive_flag_spec=
15512 supports_anon_versioning=no
15513 case `$LD -v 2>&1` in
15514 *GNU\ gold*) supports_anon_versioning=yes ;;
15515 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15516 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15517 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15518 *\ 2.11.*) ;; # other 2.11 versions
15519 *) supports_anon_versioning=yes ;;
15520 esac
15522 # See if GNU ld supports shared libraries.
15523 case $host_os in
15524 aix[3-9]*)
15525 # On AIX/PPC, the GNU linker is very broken
15526 if test "$host_cpu" != ia64; then
15527 ld_shlibs=no
15528 cat <<_LT_EOF 1>&2
15530 *** Warning: the GNU linker, at least up to release 2.19, is reported
15531 *** to be unable to reliably create shared libraries on AIX.
15532 *** Therefore, libtool is disabling shared libraries support. If you
15533 *** really care for shared libraries, you may want to install binutils
15534 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15535 *** You will then need to restart the configuration process.
15537 _LT_EOF
15541 amigaos*)
15542 case $host_cpu in
15543 powerpc)
15544 # see comment about AmigaOS4 .so support
15545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15546 archive_expsym_cmds=''
15548 m68k)
15549 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)'
15550 hardcode_libdir_flag_spec='-L$libdir'
15551 hardcode_minus_L=yes
15553 esac
15556 beos*)
15557 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15558 allow_undefined_flag=unsupported
15559 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15560 # support --undefined. This deserves some investigation. FIXME
15561 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15562 else
15563 ld_shlibs=no
15567 cygwin* | mingw* | pw32* | cegcc*)
15568 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15569 # as there is no search path for DLLs.
15570 hardcode_libdir_flag_spec='-L$libdir'
15571 export_dynamic_flag_spec='${wl}--export-all-symbols'
15572 allow_undefined_flag=unsupported
15573 always_export_symbols=no
15574 enable_shared_with_static_runtimes=yes
15575 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15577 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15579 # If the export-symbols file already is a .def file (1st line
15580 # is EXPORTS), use it as is; otherwise, prepend...
15581 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15582 cp $export_symbols $output_objdir/$soname.def;
15583 else
15584 echo EXPORTS > $output_objdir/$soname.def;
15585 cat $export_symbols >> $output_objdir/$soname.def;
15587 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15588 else
15589 ld_shlibs=no
15593 haiku*)
15594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15595 link_all_deplibs=yes
15598 interix[3-9]*)
15599 hardcode_direct=no
15600 hardcode_shlibpath_var=no
15601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15602 export_dynamic_flag_spec='${wl}-E'
15603 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15604 # Instead, shared libraries are loaded at an image base (0x10000000 by
15605 # default) and relocated if they conflict, which is a slow very memory
15606 # consuming and fragmenting process. To avoid this, we pick a random,
15607 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15608 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15609 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15610 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'
15613 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15614 tmp_diet=no
15615 if test "$host_os" = linux-dietlibc; then
15616 case $cc_basename in
15617 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15618 esac
15620 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15621 && test "$tmp_diet" = no
15622 then
15623 tmp_addflag=
15624 tmp_sharedflag='-shared'
15625 case $cc_basename,$host_cpu in
15626 pgcc*) # Portland Group C compiler
15627 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'
15628 tmp_addflag=' $pic_flag'
15630 pgf77* | pgf90* | pgf95* | pgfortran*)
15631 # Portland Group f77 and f90 compilers
15632 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'
15633 tmp_addflag=' $pic_flag -Mnomain' ;;
15634 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15635 tmp_addflag=' -i_dynamic' ;;
15636 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15637 tmp_addflag=' -i_dynamic -nofor_main' ;;
15638 ifc* | ifort*) # Intel Fortran compiler
15639 tmp_addflag=' -nofor_main' ;;
15640 lf95*) # Lahey Fortran 8.1
15641 whole_archive_flag_spec=
15642 tmp_sharedflag='--shared' ;;
15643 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15644 tmp_sharedflag='-qmkshrobj'
15645 tmp_addflag= ;;
15646 nvcc*) # Cuda Compiler Driver 2.2
15647 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'
15648 compiler_needs_object=yes
15650 esac
15651 case `$CC -V 2>&1 | sed 5q` in
15652 *Sun\ C*) # Sun C 5.9
15653 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'
15654 compiler_needs_object=yes
15655 tmp_sharedflag='-G' ;;
15656 *Sun\ F*) # Sun Fortran 8.3
15657 tmp_sharedflag='-G' ;;
15658 esac
15659 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15661 if test "x$supports_anon_versioning" = xyes; then
15662 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15664 echo "local: *; };" >> $output_objdir/$libname.ver~
15665 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15668 case $cc_basename in
15669 xlf* | bgf* | bgxlf* | mpixlf*)
15670 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15671 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15672 hardcode_libdir_flag_spec=
15673 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15674 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15675 if test "x$supports_anon_versioning" = xyes; then
15676 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15677 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15678 echo "local: *; };" >> $output_objdir/$libname.ver~
15679 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15682 esac
15683 else
15684 ld_shlibs=no
15688 netbsd*)
15689 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15690 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15691 wlarc=
15692 else
15693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15698 solaris*)
15699 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15700 ld_shlibs=no
15701 cat <<_LT_EOF 1>&2
15703 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15704 *** create shared libraries on Solaris systems. Therefore, libtool
15705 *** is disabling shared libraries support. We urge you to upgrade GNU
15706 *** binutils to release 2.9.1 or newer. Another option is to modify
15707 *** your PATH or compiler configuration so that the native linker is
15708 *** used, and then restart.
15710 _LT_EOF
15711 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15714 else
15715 ld_shlibs=no
15719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15720 case `$LD -v 2>&1` in
15721 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15722 ld_shlibs=no
15723 cat <<_LT_EOF 1>&2
15725 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15726 *** reliably create shared libraries on SCO systems. Therefore, libtool
15727 *** is disabling shared libraries support. We urge you to upgrade GNU
15728 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15729 *** your PATH or compiler configuration so that the native linker is
15730 *** used, and then restart.
15732 _LT_EOF
15735 # For security reasons, it is highly recommended that you always
15736 # use absolute paths for naming shared libraries, and exclude the
15737 # DT_RUNPATH tag from executables and libraries. But doing so
15738 # requires that you compile everything twice, which is a pain.
15739 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15743 else
15744 ld_shlibs=no
15747 esac
15750 sunos4*)
15751 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15752 wlarc=
15753 hardcode_direct=yes
15754 hardcode_shlibpath_var=no
15758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15761 else
15762 ld_shlibs=no
15765 esac
15767 if test "$ld_shlibs" = no; then
15768 runpath_var=
15769 hardcode_libdir_flag_spec=
15770 export_dynamic_flag_spec=
15771 whole_archive_flag_spec=
15773 else
15774 # PORTME fill in a description of your system's linker (not GNU ld)
15775 case $host_os in
15776 aix3*)
15777 allow_undefined_flag=unsupported
15778 always_export_symbols=yes
15779 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'
15780 # Note: this linker hardcodes the directories in LIBPATH if there
15781 # are no directories specified by -L.
15782 hardcode_minus_L=yes
15783 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15784 # Neither direct hardcoding nor static linking is supported with a
15785 # broken collect2.
15786 hardcode_direct=unsupported
15790 aix[4-9]*)
15791 if test "$host_cpu" = ia64; then
15792 # On IA64, the linker does run time linking by default, so we don't
15793 # have to do anything special.
15794 aix_use_runtimelinking=no
15795 exp_sym_flag='-Bexport'
15796 no_entry_flag=""
15797 else
15798 # If we're using GNU nm, then we don't want the "-C" option.
15799 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15800 # Also, AIX nm treats weak defined symbols like other global
15801 # defined symbols, whereas GNU nm marks them as "W".
15802 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15803 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'
15804 else
15805 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'
15807 aix_use_runtimelinking=no
15809 # Test if we are trying to use run time linking or normal
15810 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15811 # need to do runtime linking.
15812 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15813 for ld_flag in $LDFLAGS; do
15814 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15815 aix_use_runtimelinking=yes
15816 break
15818 done
15820 esac
15822 exp_sym_flag='-bexport'
15823 no_entry_flag='-bnoentry'
15826 # When large executables or shared objects are built, AIX ld can
15827 # have problems creating the table of contents. If linking a library
15828 # or program results in "error TOC overflow" add -mminimal-toc to
15829 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15830 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15832 archive_cmds=''
15833 hardcode_direct=yes
15834 hardcode_direct_absolute=yes
15835 hardcode_libdir_separator=':'
15836 link_all_deplibs=yes
15837 file_list_spec='${wl}-f,'
15839 if test "$GCC" = yes; then
15840 case $host_os in aix4.[012]|aix4.[012].*)
15841 # We only want to do this on AIX 4.2 and lower, the check
15842 # below for broken collect2 doesn't work under 4.3+
15843 collect2name=`${CC} -print-prog-name=collect2`
15844 if test -f "$collect2name" &&
15845 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15846 then
15847 # We have reworked collect2
15849 else
15850 # We have old collect2
15851 hardcode_direct=unsupported
15852 # It fails to find uninstalled libraries when the uninstalled
15853 # path is not listed in the libpath. Setting hardcode_minus_L
15854 # to unsupported forces relinking
15855 hardcode_minus_L=yes
15856 hardcode_libdir_flag_spec='-L$libdir'
15857 hardcode_libdir_separator=
15860 esac
15861 shared_flag='-shared'
15862 if test "$aix_use_runtimelinking" = yes; then
15863 shared_flag="$shared_flag "'${wl}-G'
15865 else
15866 # not using gcc
15867 if test "$host_cpu" = ia64; then
15868 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15869 # chokes on -Wl,-G. The following line is correct:
15870 shared_flag='-G'
15871 else
15872 if test "$aix_use_runtimelinking" = yes; then
15873 shared_flag='${wl}-G'
15874 else
15875 shared_flag='${wl}-bM:SRE'
15880 export_dynamic_flag_spec='${wl}-bexpall'
15881 # It seems that -bexpall does not export symbols beginning with
15882 # underscore (_), so it is better to generate a list of symbols to export.
15883 always_export_symbols=yes
15884 if test "$aix_use_runtimelinking" = yes; then
15885 # Warning - without using the other runtime loading flags (-brtl),
15886 # -berok will link without error, but may produce a broken library.
15887 allow_undefined_flag='-berok'
15888 # Determine the default libpath from the value encoded in an
15889 # empty executable.
15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h. */
15894 main ()
15898 return 0;
15900 _ACEOF
15901 if ac_fn_c_try_link "$LINENO"; then :
15903 lt_aix_libpath_sed='
15904 /Import File Strings/,/^$/ {
15905 /^0/ {
15906 s/^0 *\(.*\)$/\1/
15910 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15911 # Check for a 64-bit object if we didn't find anything.
15912 if test -z "$aix_libpath"; then
15913 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15916 rm -f core conftest.err conftest.$ac_objext \
15917 conftest$ac_exeext conftest.$ac_ext
15918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15920 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15921 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"
15922 else
15923 if test "$host_cpu" = ia64; then
15924 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15925 allow_undefined_flag="-z nodefs"
15926 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"
15927 else
15928 # Determine the default libpath from the value encoded in an
15929 # empty executable.
15930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h. */
15934 main ()
15938 return 0;
15940 _ACEOF
15941 if ac_fn_c_try_link "$LINENO"; then :
15943 lt_aix_libpath_sed='
15944 /Import File Strings/,/^$/ {
15945 /^0/ {
15946 s/^0 *\(.*\)$/\1/
15950 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15951 # Check for a 64-bit object if we didn't find anything.
15952 if test -z "$aix_libpath"; then
15953 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15956 rm -f core conftest.err conftest.$ac_objext \
15957 conftest$ac_exeext conftest.$ac_ext
15958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15960 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15961 # Warning - without using the other run time loading flags,
15962 # -berok will link without error, but may produce a broken library.
15963 no_undefined_flag=' ${wl}-bernotok'
15964 allow_undefined_flag=' ${wl}-berok'
15965 if test "$with_gnu_ld" = yes; then
15966 # We only use this code for GNU lds that support --whole-archive.
15967 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15968 else
15969 # Exported symbols can be pulled into shared objects from archives
15970 whole_archive_flag_spec='$convenience'
15972 archive_cmds_need_lc=yes
15973 # This is similar to how AIX traditionally builds its shared libraries.
15974 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'
15979 amigaos*)
15980 case $host_cpu in
15981 powerpc)
15982 # see comment about AmigaOS4 .so support
15983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15984 archive_expsym_cmds=''
15986 m68k)
15987 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)'
15988 hardcode_libdir_flag_spec='-L$libdir'
15989 hardcode_minus_L=yes
15991 esac
15994 bsdi[45]*)
15995 export_dynamic_flag_spec=-rdynamic
15998 cygwin* | mingw* | pw32* | cegcc*)
15999 # When not using gcc, we currently assume that we are using
16000 # Microsoft Visual C++.
16001 # hardcode_libdir_flag_spec is actually meaningless, as there is
16002 # no search path for DLLs.
16003 hardcode_libdir_flag_spec=' '
16004 allow_undefined_flag=unsupported
16005 # Tell ltmain to make .lib files, not .a files.
16006 libext=lib
16007 # Tell ltmain to make .dll files, not .so files.
16008 shrext_cmds=".dll"
16009 # FIXME: Setting linknames here is a bad hack.
16010 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16011 # The linker will automatically build a .lib file if we build a DLL.
16012 old_archive_from_new_cmds='true'
16013 # FIXME: Should let the user specify the lib program.
16014 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16015 fix_srcfile_path='`cygpath -w "$srcfile"`'
16016 enable_shared_with_static_runtimes=yes
16019 darwin* | rhapsody*)
16022 archive_cmds_need_lc=no
16023 hardcode_direct=no
16024 hardcode_automatic=yes
16025 hardcode_shlibpath_var=unsupported
16026 if test "$lt_cv_ld_force_load" = "yes"; then
16027 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\"`'
16028 else
16029 whole_archive_flag_spec=''
16031 link_all_deplibs=yes
16032 allow_undefined_flag="$_lt_dar_allow_undefined"
16033 case $cc_basename in
16034 ifort*) _lt_dar_can_shared=yes ;;
16035 *) _lt_dar_can_shared=$GCC ;;
16036 esac
16037 if test "$_lt_dar_can_shared" = "yes"; then
16038 output_verbose_link_cmd=func_echo_all
16039 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16040 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16041 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}"
16042 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}"
16044 else
16045 ld_shlibs=no
16050 dgux*)
16051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16052 hardcode_libdir_flag_spec='-L$libdir'
16053 hardcode_shlibpath_var=no
16056 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16057 # support. Future versions do this automatically, but an explicit c++rt0.o
16058 # does not break anything, and helps significantly (at the cost of a little
16059 # extra space).
16060 freebsd2.2*)
16061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16062 hardcode_libdir_flag_spec='-R$libdir'
16063 hardcode_direct=yes
16064 hardcode_shlibpath_var=no
16067 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16068 freebsd2.*)
16069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16070 hardcode_direct=yes
16071 hardcode_minus_L=yes
16072 hardcode_shlibpath_var=no
16075 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16076 freebsd* | dragonfly*)
16077 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16078 hardcode_libdir_flag_spec='-R$libdir'
16079 hardcode_direct=yes
16080 hardcode_shlibpath_var=no
16083 hpux9*)
16084 if test "$GCC" = yes; then
16085 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'
16086 else
16087 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'
16089 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16090 hardcode_libdir_separator=:
16091 hardcode_direct=yes
16093 # hardcode_minus_L: Not really in the search PATH,
16094 # but as the default location of the library.
16095 hardcode_minus_L=yes
16096 export_dynamic_flag_spec='${wl}-E'
16099 hpux10*)
16100 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16101 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16102 else
16103 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16105 if test "$with_gnu_ld" = no; then
16106 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16107 hardcode_libdir_flag_spec_ld='+b $libdir'
16108 hardcode_libdir_separator=:
16109 hardcode_direct=yes
16110 hardcode_direct_absolute=yes
16111 export_dynamic_flag_spec='${wl}-E'
16112 # hardcode_minus_L: Not really in the search PATH,
16113 # but as the default location of the library.
16114 hardcode_minus_L=yes
16118 hpux11*)
16119 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16120 case $host_cpu in
16121 hppa*64*)
16122 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16124 ia64*)
16125 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16128 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16130 esac
16131 else
16132 case $host_cpu in
16133 hppa*64*)
16134 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16136 ia64*)
16137 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16141 # Older versions of the 11.00 compiler do not understand -b yet
16142 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16144 $as_echo_n "checking if $CC understands -b... " >&6; }
16145 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16146 $as_echo_n "(cached) " >&6
16147 else
16148 lt_cv_prog_compiler__b=no
16149 save_LDFLAGS="$LDFLAGS"
16150 LDFLAGS="$LDFLAGS -b"
16151 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16152 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16153 # The linker can only warn and ignore the option if not recognized
16154 # So say no if there are warnings
16155 if test -s conftest.err; then
16156 # Append any errors to the config.log.
16157 cat conftest.err 1>&5
16158 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16160 if diff conftest.exp conftest.er2 >/dev/null; then
16161 lt_cv_prog_compiler__b=yes
16163 else
16164 lt_cv_prog_compiler__b=yes
16167 $RM -r conftest*
16168 LDFLAGS="$save_LDFLAGS"
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16172 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16174 if test x"$lt_cv_prog_compiler__b" = xyes; then
16175 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16176 else
16177 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16181 esac
16183 if test "$with_gnu_ld" = no; then
16184 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16185 hardcode_libdir_separator=:
16187 case $host_cpu in
16188 hppa*64*|ia64*)
16189 hardcode_direct=no
16190 hardcode_shlibpath_var=no
16193 hardcode_direct=yes
16194 hardcode_direct_absolute=yes
16195 export_dynamic_flag_spec='${wl}-E'
16197 # hardcode_minus_L: Not really in the search PATH,
16198 # but as the default location of the library.
16199 hardcode_minus_L=yes
16201 esac
16205 irix5* | irix6* | nonstopux*)
16206 if test "$GCC" = yes; then
16207 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'
16208 # Try to use the -exported_symbol ld option, if it does not
16209 # work, assume that -exports_file does not work either and
16210 # implicitly export all symbols.
16211 save_LDFLAGS="$LDFLAGS"
16212 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16215 int foo(void) {}
16216 _ACEOF
16217 if ac_fn_c_try_link "$LINENO"; then :
16218 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'
16221 rm -f core conftest.err conftest.$ac_objext \
16222 conftest$ac_exeext conftest.$ac_ext
16223 LDFLAGS="$save_LDFLAGS"
16224 else
16225 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'
16226 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'
16228 archive_cmds_need_lc='no'
16229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16230 hardcode_libdir_separator=:
16231 inherit_rpath=yes
16232 link_all_deplibs=yes
16235 netbsd*)
16236 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16238 else
16239 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16241 hardcode_libdir_flag_spec='-R$libdir'
16242 hardcode_direct=yes
16243 hardcode_shlibpath_var=no
16246 newsos6)
16247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16248 hardcode_direct=yes
16249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16250 hardcode_libdir_separator=:
16251 hardcode_shlibpath_var=no
16254 *nto* | *qnx*)
16257 openbsd*)
16258 if test -f /usr/libexec/ld.so; then
16259 hardcode_direct=yes
16260 hardcode_shlibpath_var=no
16261 hardcode_direct_absolute=yes
16262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16264 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16265 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16266 export_dynamic_flag_spec='${wl}-E'
16267 else
16268 case $host_os in
16269 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16270 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16271 hardcode_libdir_flag_spec='-R$libdir'
16274 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16275 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16277 esac
16279 else
16280 ld_shlibs=no
16284 os2*)
16285 hardcode_libdir_flag_spec='-L$libdir'
16286 hardcode_minus_L=yes
16287 allow_undefined_flag=unsupported
16288 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'
16289 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16292 osf3*)
16293 if test "$GCC" = yes; then
16294 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16295 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'
16296 else
16297 allow_undefined_flag=' -expect_unresolved \*'
16298 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'
16300 archive_cmds_need_lc='no'
16301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16302 hardcode_libdir_separator=:
16305 osf4* | osf5*) # as osf3* with the addition of -msym flag
16306 if test "$GCC" = yes; then
16307 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16308 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'
16309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16310 else
16311 allow_undefined_flag=' -expect_unresolved \*'
16312 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'
16313 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~
16314 $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'
16316 # Both c and cxx compiler support -rpath directly
16317 hardcode_libdir_flag_spec='-rpath $libdir'
16319 archive_cmds_need_lc='no'
16320 hardcode_libdir_separator=:
16323 solaris*)
16324 no_undefined_flag=' -z defs'
16325 if test "$GCC" = yes; then
16326 wlarc='${wl}'
16327 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16328 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16329 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16330 else
16331 case `$CC -V 2>&1` in
16332 *"Compilers 5.0"*)
16333 wlarc=''
16334 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16336 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16339 wlarc='${wl}'
16340 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16341 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16342 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16344 esac
16346 hardcode_libdir_flag_spec='-R$libdir'
16347 hardcode_shlibpath_var=no
16348 case $host_os in
16349 solaris2.[0-5] | solaris2.[0-5].*) ;;
16351 # The compiler driver will combine and reorder linker options,
16352 # but understands `-z linker_flag'. GCC discards it without `$wl',
16353 # but is careful enough not to reorder.
16354 # Supported since Solaris 2.6 (maybe 2.5.1?)
16355 if test "$GCC" = yes; then
16356 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16357 else
16358 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16361 esac
16362 link_all_deplibs=yes
16365 sunos4*)
16366 if test "x$host_vendor" = xsequent; then
16367 # Use $CC to link under sequent, because it throws in some extra .o
16368 # files that make .init and .fini sections work.
16369 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16370 else
16371 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16373 hardcode_libdir_flag_spec='-L$libdir'
16374 hardcode_direct=yes
16375 hardcode_minus_L=yes
16376 hardcode_shlibpath_var=no
16379 sysv4)
16380 case $host_vendor in
16381 sni)
16382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16383 hardcode_direct=yes # is this really true???
16385 siemens)
16386 ## LD is ld it makes a PLAMLIB
16387 ## CC just makes a GrossModule.
16388 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16389 reload_cmds='$CC -r -o $output$reload_objs'
16390 hardcode_direct=no
16392 motorola)
16393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16394 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16396 esac
16397 runpath_var='LD_RUN_PATH'
16398 hardcode_shlibpath_var=no
16401 sysv4.3*)
16402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16403 hardcode_shlibpath_var=no
16404 export_dynamic_flag_spec='-Bexport'
16407 sysv4*MP*)
16408 if test -d /usr/nec; then
16409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16410 hardcode_shlibpath_var=no
16411 runpath_var=LD_RUN_PATH
16412 hardcode_runpath_var=yes
16413 ld_shlibs=yes
16417 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16418 no_undefined_flag='${wl}-z,text'
16419 archive_cmds_need_lc=no
16420 hardcode_shlibpath_var=no
16421 runpath_var='LD_RUN_PATH'
16423 if test "$GCC" = yes; then
16424 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16425 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16426 else
16427 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16428 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16432 sysv5* | sco3.2v5* | sco5v6*)
16433 # Note: We can NOT use -z defs as we might desire, because we do not
16434 # link with -lc, and that would cause any symbols used from libc to
16435 # always be unresolved, which means just about no library would
16436 # ever link correctly. If we're not using GNU ld we use -z text
16437 # though, which does catch some bad symbols but isn't as heavy-handed
16438 # as -z defs.
16439 no_undefined_flag='${wl}-z,text'
16440 allow_undefined_flag='${wl}-z,nodefs'
16441 archive_cmds_need_lc=no
16442 hardcode_shlibpath_var=no
16443 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16444 hardcode_libdir_separator=':'
16445 link_all_deplibs=yes
16446 export_dynamic_flag_spec='${wl}-Bexport'
16447 runpath_var='LD_RUN_PATH'
16449 if test "$GCC" = yes; then
16450 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16451 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16452 else
16453 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16454 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16458 uts4*)
16459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16460 hardcode_libdir_flag_spec='-L$libdir'
16461 hardcode_shlibpath_var=no
16465 ld_shlibs=no
16467 esac
16469 if test x$host_vendor = xsni; then
16470 case $host in
16471 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16472 export_dynamic_flag_spec='${wl}-Blargedynsym'
16474 esac
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16479 $as_echo "$ld_shlibs" >&6; }
16480 test "$ld_shlibs" = no && can_build_shared=no
16482 with_gnu_ld=$with_gnu_ld
16499 # Do we need to explicitly link libc?
16501 case "x$archive_cmds_need_lc" in
16502 x|xyes)
16503 # Assume -lc should be added
16504 archive_cmds_need_lc=yes
16506 if test "$enable_shared" = yes && test "$GCC" = yes; then
16507 case $archive_cmds in
16508 *'~'*)
16509 # FIXME: we may have to deal with multi-command sequences.
16511 '$CC '*)
16512 # Test whether the compiler implicitly links with -lc since on some
16513 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16514 # to ld, don't add -lc before -lgcc.
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16516 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16517 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16518 $as_echo_n "(cached) " >&6
16519 else
16520 $RM conftest*
16521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16524 (eval $ac_compile) 2>&5
16525 ac_status=$?
16526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16527 test $ac_status = 0; } 2>conftest.err; then
16528 soname=conftest
16529 lib=conftest
16530 libobjs=conftest.$ac_objext
16531 deplibs=
16532 wl=$lt_prog_compiler_wl
16533 pic_flag=$lt_prog_compiler_pic
16534 compiler_flags=-v
16535 linker_flags=-v
16536 verstring=
16537 output_objdir=.
16538 libname=conftest
16539 lt_save_allow_undefined_flag=$allow_undefined_flag
16540 allow_undefined_flag=
16541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16542 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16543 ac_status=$?
16544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16545 test $ac_status = 0; }
16546 then
16547 lt_cv_archive_cmds_need_lc=no
16548 else
16549 lt_cv_archive_cmds_need_lc=yes
16551 allow_undefined_flag=$lt_save_allow_undefined_flag
16552 else
16553 cat conftest.err 1>&5
16555 $RM conftest*
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16559 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16560 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16562 esac
16565 esac
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16724 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16726 if test "$GCC" = yes; then
16727 case $host_os in
16728 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16729 *) lt_awk_arg="/^libraries:/" ;;
16730 esac
16731 case $host_os in
16732 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16733 *) lt_sed_strip_eq="s,=/,/,g" ;;
16734 esac
16735 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16736 case $lt_search_path_spec in
16737 *\;*)
16738 # if the path contains ";" then we assume it to be the separator
16739 # otherwise default to the standard path separator (i.e. ":") - it is
16740 # assumed that no part of a normal pathname contains ";" but that should
16741 # okay in the real world where ";" in dirpaths is itself problematic.
16742 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16745 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16747 esac
16748 # Ok, now we have the path, separated by spaces, we can step through it
16749 # and add multilib dir if necessary.
16750 lt_tmp_lt_search_path_spec=
16751 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16752 for lt_sys_path in $lt_search_path_spec; do
16753 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16755 else
16756 test -d "$lt_sys_path" && \
16757 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16759 done
16760 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16761 BEGIN {RS=" "; FS="/|\n";} {
16762 lt_foo="";
16763 lt_count=0;
16764 for (lt_i = NF; lt_i > 0; lt_i--) {
16765 if ($lt_i != "" && $lt_i != ".") {
16766 if ($lt_i == "..") {
16767 lt_count++;
16768 } else {
16769 if (lt_count == 0) {
16770 lt_foo="/" $lt_i lt_foo;
16771 } else {
16772 lt_count--;
16777 if (lt_foo != "") { lt_freq[lt_foo]++; }
16778 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16780 # AWK program above erroneously prepends '/' to C:/dos/paths
16781 # for these hosts.
16782 case $host_os in
16783 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16784 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16785 esac
16786 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16787 else
16788 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16790 library_names_spec=
16791 libname_spec='lib$name'
16792 soname_spec=
16793 shrext_cmds=".so"
16794 postinstall_cmds=
16795 postuninstall_cmds=
16796 finish_cmds=
16797 finish_eval=
16798 shlibpath_var=
16799 shlibpath_overrides_runpath=unknown
16800 version_type=none
16801 dynamic_linker="$host_os ld.so"
16802 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16803 need_lib_prefix=unknown
16804 hardcode_into_libs=no
16806 # when you set need_version to no, make sure it does not cause -set_version
16807 # flags to be left without arguments
16808 need_version=unknown
16810 case $host_os in
16811 aix3*)
16812 version_type=linux
16813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16814 shlibpath_var=LIBPATH
16816 # AIX 3 has no versioning support, so we append a major version to the name.
16817 soname_spec='${libname}${release}${shared_ext}$major'
16820 aix[4-9]*)
16821 version_type=linux
16822 need_lib_prefix=no
16823 need_version=no
16824 hardcode_into_libs=yes
16825 if test "$host_cpu" = ia64; then
16826 # AIX 5 supports IA64
16827 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16828 shlibpath_var=LD_LIBRARY_PATH
16829 else
16830 # With GCC up to 2.95.x, collect2 would create an import file
16831 # for dependence libraries. The import file would start with
16832 # the line `#! .'. This would cause the generated library to
16833 # depend on `.', always an invalid library. This was fixed in
16834 # development snapshots of GCC prior to 3.0.
16835 case $host_os in
16836 aix4 | aix4.[01] | aix4.[01].*)
16837 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16838 echo ' yes '
16839 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16841 else
16842 can_build_shared=no
16845 esac
16846 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16847 # soname into executable. Probably we can add versioning support to
16848 # collect2, so additional links can be useful in future.
16849 if test "$aix_use_runtimelinking" = yes; then
16850 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16851 # instead of lib<name>.a to let people know that these are not
16852 # typical AIX shared libraries.
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854 else
16855 # We preserve .a as extension for shared libraries through AIX4.2
16856 # and later when we are not doing run time linking.
16857 library_names_spec='${libname}${release}.a $libname.a'
16858 soname_spec='${libname}${release}${shared_ext}$major'
16860 shlibpath_var=LIBPATH
16864 amigaos*)
16865 case $host_cpu in
16866 powerpc)
16867 # Since July 2007 AmigaOS4 officially supports .so libraries.
16868 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16871 m68k)
16872 library_names_spec='$libname.ixlibrary $libname.a'
16873 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16874 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'
16876 esac
16879 beos*)
16880 library_names_spec='${libname}${shared_ext}'
16881 dynamic_linker="$host_os ld.so"
16882 shlibpath_var=LIBRARY_PATH
16885 bsdi[45]*)
16886 version_type=linux
16887 need_version=no
16888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16889 soname_spec='${libname}${release}${shared_ext}$major'
16890 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16891 shlibpath_var=LD_LIBRARY_PATH
16892 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16893 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16894 # the default ld.so.conf also contains /usr/contrib/lib and
16895 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16896 # libtool to hard-code these into programs
16899 cygwin* | mingw* | pw32* | cegcc*)
16900 version_type=windows
16901 shrext_cmds=".dll"
16902 need_version=no
16903 need_lib_prefix=no
16905 case $GCC,$host_os in
16906 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16907 library_names_spec='$libname.dll.a'
16908 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16909 postinstall_cmds='base_file=`basename \${file}`~
16910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16911 dldir=$destdir/`dirname \$dlpath`~
16912 test -d \$dldir || mkdir -p \$dldir~
16913 $install_prog $dir/$dlname \$dldir/$dlname~
16914 chmod a+x \$dldir/$dlname~
16915 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16916 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16918 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16919 dlpath=$dir/\$dldll~
16920 $RM \$dlpath'
16921 shlibpath_overrides_runpath=yes
16923 case $host_os in
16924 cygwin*)
16925 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16926 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16928 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16930 mingw* | cegcc*)
16931 # MinGW DLLs use traditional 'lib' prefix
16932 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16934 pw32*)
16935 # pw32 DLLs use 'pw' prefix rather than 'lib'
16936 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16938 esac
16942 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16944 esac
16945 dynamic_linker='Win32 ld.exe'
16946 # FIXME: first we should search . and the directory the executable is in
16947 shlibpath_var=PATH
16950 darwin* | rhapsody*)
16951 dynamic_linker="$host_os dyld"
16952 version_type=darwin
16953 need_lib_prefix=no
16954 need_version=no
16955 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16956 soname_spec='${libname}${release}${major}$shared_ext'
16957 shlibpath_overrides_runpath=yes
16958 shlibpath_var=DYLD_LIBRARY_PATH
16959 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16961 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16965 dgux*)
16966 version_type=linux
16967 need_lib_prefix=no
16968 need_version=no
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16970 soname_spec='${libname}${release}${shared_ext}$major'
16971 shlibpath_var=LD_LIBRARY_PATH
16974 freebsd* | dragonfly*)
16975 # DragonFly does not have aout. When/if they implement a new
16976 # versioning mechanism, adjust this.
16977 if test -x /usr/bin/objformat; then
16978 objformat=`/usr/bin/objformat`
16979 else
16980 case $host_os in
16981 freebsd[23].*) objformat=aout ;;
16982 *) objformat=elf ;;
16983 esac
16985 version_type=freebsd-$objformat
16986 case $version_type in
16987 freebsd-elf*)
16988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16989 need_version=no
16990 need_lib_prefix=no
16992 freebsd-*)
16993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16994 need_version=yes
16996 esac
16997 shlibpath_var=LD_LIBRARY_PATH
16998 case $host_os in
16999 freebsd2.*)
17000 shlibpath_overrides_runpath=yes
17002 freebsd3.[01]* | freebsdelf3.[01]*)
17003 shlibpath_overrides_runpath=yes
17004 hardcode_into_libs=yes
17006 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17007 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17008 shlibpath_overrides_runpath=no
17009 hardcode_into_libs=yes
17011 *) # from 4.6 on, and DragonFly
17012 shlibpath_overrides_runpath=yes
17013 hardcode_into_libs=yes
17015 esac
17018 gnu*)
17019 version_type=linux
17020 need_lib_prefix=no
17021 need_version=no
17022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17023 soname_spec='${libname}${release}${shared_ext}$major'
17024 shlibpath_var=LD_LIBRARY_PATH
17025 hardcode_into_libs=yes
17028 haiku*)
17029 version_type=linux
17030 need_lib_prefix=no
17031 need_version=no
17032 dynamic_linker="$host_os runtime_loader"
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17034 soname_spec='${libname}${release}${shared_ext}$major'
17035 shlibpath_var=LIBRARY_PATH
17036 shlibpath_overrides_runpath=yes
17037 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17038 hardcode_into_libs=yes
17041 hpux9* | hpux10* | hpux11*)
17042 # Give a soname corresponding to the major version so that dld.sl refuses to
17043 # link against other versions.
17044 version_type=sunos
17045 need_lib_prefix=no
17046 need_version=no
17047 case $host_cpu in
17048 ia64*)
17049 shrext_cmds='.so'
17050 hardcode_into_libs=yes
17051 dynamic_linker="$host_os dld.so"
17052 shlibpath_var=LD_LIBRARY_PATH
17053 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 if test "X$HPUX_IA64_MODE" = X32; then
17057 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17058 else
17059 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17061 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17063 hppa*64*)
17064 shrext_cmds='.sl'
17065 hardcode_into_libs=yes
17066 dynamic_linker="$host_os dld.sl"
17067 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17068 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17070 soname_spec='${libname}${release}${shared_ext}$major'
17071 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17075 shrext_cmds='.sl'
17076 dynamic_linker="$host_os dld.sl"
17077 shlibpath_var=SHLIB_PATH
17078 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080 soname_spec='${libname}${release}${shared_ext}$major'
17082 esac
17083 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17084 postinstall_cmds='chmod 555 $lib'
17085 # or fails outright, so override atomically:
17086 install_override_mode=555
17089 interix[3-9]*)
17090 version_type=linux
17091 need_lib_prefix=no
17092 need_version=no
17093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17094 soname_spec='${libname}${release}${shared_ext}$major'
17095 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17096 shlibpath_var=LD_LIBRARY_PATH
17097 shlibpath_overrides_runpath=no
17098 hardcode_into_libs=yes
17101 irix5* | irix6* | nonstopux*)
17102 case $host_os in
17103 nonstopux*) version_type=nonstopux ;;
17105 if test "$lt_cv_prog_gnu_ld" = yes; then
17106 version_type=linux
17107 else
17108 version_type=irix
17109 fi ;;
17110 esac
17111 need_lib_prefix=no
17112 need_version=no
17113 soname_spec='${libname}${release}${shared_ext}$major'
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17115 case $host_os in
17116 irix5* | nonstopux*)
17117 libsuff= shlibsuff=
17120 case $LD in # libtool.m4 will add one of these switches to LD
17121 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17122 libsuff= shlibsuff= libmagic=32-bit;;
17123 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17124 libsuff=32 shlibsuff=N32 libmagic=N32;;
17125 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17126 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17127 *) libsuff= shlibsuff= libmagic=never-match;;
17128 esac
17130 esac
17131 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17132 shlibpath_overrides_runpath=no
17133 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17134 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17135 hardcode_into_libs=yes
17138 # No shared lib support for Linux oldld, aout, or coff.
17139 linux*oldld* | linux*aout* | linux*coff*)
17140 dynamic_linker=no
17143 # This must be Linux ELF.
17144 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17145 version_type=linux
17146 need_lib_prefix=no
17147 need_version=no
17148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17151 shlibpath_var=LD_LIBRARY_PATH
17152 shlibpath_overrides_runpath=no
17154 # Some binutils ld are patched to set DT_RUNPATH
17155 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17156 $as_echo_n "(cached) " >&6
17157 else
17158 lt_cv_shlibpath_overrides_runpath=no
17159 save_LDFLAGS=$LDFLAGS
17160 save_libdir=$libdir
17161 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17162 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h. */
17167 main ()
17171 return 0;
17173 _ACEOF
17174 if ac_fn_c_try_link "$LINENO"; then :
17175 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17176 lt_cv_shlibpath_overrides_runpath=yes
17179 rm -f core conftest.err conftest.$ac_objext \
17180 conftest$ac_exeext conftest.$ac_ext
17181 LDFLAGS=$save_LDFLAGS
17182 libdir=$save_libdir
17186 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17188 # This implies no fast_install, which is unacceptable.
17189 # Some rework will be needed to allow for fast_install
17190 # before this can be enabled.
17191 hardcode_into_libs=yes
17193 # Append ld.so.conf contents to the search path
17194 if test -f /etc/ld.so.conf; then
17195 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' ' '`
17196 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17199 # We used to test for /lib/ld.so.1 and disable shared libraries on
17200 # powerpc, because MkLinux only supported shared libraries with the
17201 # GNU dynamic linker. Since this was broken with cross compilers,
17202 # most powerpc-linux boxes support dynamic linking these days and
17203 # people can always --disable-shared, the test was removed, and we
17204 # assume the GNU/Linux dynamic linker is in use.
17205 dynamic_linker='GNU/Linux ld.so'
17208 netbsd*)
17209 version_type=sunos
17210 need_lib_prefix=no
17211 need_version=no
17212 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17215 dynamic_linker='NetBSD (a.out) ld.so'
17216 else
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 dynamic_linker='NetBSD ld.elf_so'
17221 shlibpath_var=LD_LIBRARY_PATH
17222 shlibpath_overrides_runpath=yes
17223 hardcode_into_libs=yes
17226 newsos6)
17227 version_type=linux
17228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17229 shlibpath_var=LD_LIBRARY_PATH
17230 shlibpath_overrides_runpath=yes
17233 *nto* | *qnx*)
17234 version_type=qnx
17235 need_lib_prefix=no
17236 need_version=no
17237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17238 soname_spec='${libname}${release}${shared_ext}$major'
17239 shlibpath_var=LD_LIBRARY_PATH
17240 shlibpath_overrides_runpath=no
17241 hardcode_into_libs=yes
17242 dynamic_linker='ldqnx.so'
17245 openbsd*)
17246 version_type=sunos
17247 sys_lib_dlsearch_path_spec="/usr/lib"
17248 need_lib_prefix=no
17249 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17250 case $host_os in
17251 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17252 *) need_version=no ;;
17253 esac
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17256 shlibpath_var=LD_LIBRARY_PATH
17257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17258 case $host_os in
17259 openbsd2.[89] | openbsd2.[89].*)
17260 shlibpath_overrides_runpath=no
17263 shlibpath_overrides_runpath=yes
17265 esac
17266 else
17267 shlibpath_overrides_runpath=yes
17271 os2*)
17272 libname_spec='$name'
17273 shrext_cmds=".dll"
17274 need_lib_prefix=no
17275 library_names_spec='$libname${shared_ext} $libname.a'
17276 dynamic_linker='OS/2 ld.exe'
17277 shlibpath_var=LIBPATH
17280 osf3* | osf4* | osf5*)
17281 version_type=osf
17282 need_lib_prefix=no
17283 need_version=no
17284 soname_spec='${libname}${release}${shared_ext}$major'
17285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286 shlibpath_var=LD_LIBRARY_PATH
17287 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17288 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17291 rdos*)
17292 dynamic_linker=no
17295 solaris*)
17296 version_type=linux
17297 need_lib_prefix=no
17298 need_version=no
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17300 soname_spec='${libname}${release}${shared_ext}$major'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 shlibpath_overrides_runpath=yes
17303 hardcode_into_libs=yes
17304 # ldd complains unless libraries are executable
17305 postinstall_cmds='chmod +x $lib'
17308 sunos4*)
17309 version_type=sunos
17310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17311 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17312 shlibpath_var=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath=yes
17314 if test "$with_gnu_ld" = yes; then
17315 need_lib_prefix=no
17317 need_version=yes
17320 sysv4 | sysv4.3*)
17321 version_type=linux
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17323 soname_spec='${libname}${release}${shared_ext}$major'
17324 shlibpath_var=LD_LIBRARY_PATH
17325 case $host_vendor in
17326 sni)
17327 shlibpath_overrides_runpath=no
17328 need_lib_prefix=no
17329 runpath_var=LD_RUN_PATH
17331 siemens)
17332 need_lib_prefix=no
17334 motorola)
17335 need_lib_prefix=no
17336 need_version=no
17337 shlibpath_overrides_runpath=no
17338 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17340 esac
17343 sysv4*MP*)
17344 if test -d /usr/nec ;then
17345 version_type=linux
17346 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17347 soname_spec='$libname${shared_ext}.$major'
17348 shlibpath_var=LD_LIBRARY_PATH
17352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17353 version_type=freebsd-elf
17354 need_lib_prefix=no
17355 need_version=no
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17358 shlibpath_var=LD_LIBRARY_PATH
17359 shlibpath_overrides_runpath=yes
17360 hardcode_into_libs=yes
17361 if test "$with_gnu_ld" = yes; then
17362 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17363 else
17364 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17365 case $host_os in
17366 sco3.2v5*)
17367 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17369 esac
17371 sys_lib_dlsearch_path_spec='/usr/lib'
17374 tpf*)
17375 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17376 version_type=linux
17377 need_lib_prefix=no
17378 need_version=no
17379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17380 shlibpath_var=LD_LIBRARY_PATH
17381 shlibpath_overrides_runpath=no
17382 hardcode_into_libs=yes
17385 uts4*)
17386 version_type=linux
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388 soname_spec='${libname}${release}${shared_ext}$major'
17389 shlibpath_var=LD_LIBRARY_PATH
17393 dynamic_linker=no
17395 esac
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17397 $as_echo "$dynamic_linker" >&6; }
17398 test "$dynamic_linker" = no && can_build_shared=no
17400 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17401 if test "$GCC" = yes; then
17402 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17405 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17406 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17408 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17409 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17504 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17505 hardcode_action=
17506 if test -n "$hardcode_libdir_flag_spec" ||
17507 test -n "$runpath_var" ||
17508 test "X$hardcode_automatic" = "Xyes" ; then
17510 # We can hardcode non-existent directories.
17511 if test "$hardcode_direct" != no &&
17512 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17513 # have to relink, otherwise we might link with an installed library
17514 # when we should be linking with a yet-to-be-installed one
17515 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17516 test "$hardcode_minus_L" != no; then
17517 # Linking always hardcodes the temporary library directory.
17518 hardcode_action=relink
17519 else
17520 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17521 hardcode_action=immediate
17523 else
17524 # We cannot hardcode anything, or else we can only hardcode existing
17525 # directories.
17526 hardcode_action=unsupported
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17529 $as_echo "$hardcode_action" >&6; }
17531 if test "$hardcode_action" = relink ||
17532 test "$inherit_rpath" = yes; then
17533 # Fast installation is not supported
17534 enable_fast_install=no
17535 elif test "$shlibpath_overrides_runpath" = yes ||
17536 test "$enable_shared" = no; then
17537 # Fast installation is not necessary
17538 enable_fast_install=needless
17546 if test "x$enable_dlopen" != xyes; then
17547 enable_dlopen=unknown
17548 enable_dlopen_self=unknown
17549 enable_dlopen_self_static=unknown
17550 else
17551 lt_cv_dlopen=no
17552 lt_cv_dlopen_libs=
17554 case $host_os in
17555 beos*)
17556 lt_cv_dlopen="load_add_on"
17557 lt_cv_dlopen_libs=
17558 lt_cv_dlopen_self=yes
17561 mingw* | pw32* | cegcc*)
17562 lt_cv_dlopen="LoadLibrary"
17563 lt_cv_dlopen_libs=
17566 cygwin*)
17567 lt_cv_dlopen="dlopen"
17568 lt_cv_dlopen_libs=
17571 darwin*)
17572 # if libdl is installed we need to link against it
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17574 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17575 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17576 $as_echo_n "(cached) " >&6
17577 else
17578 ac_check_lib_save_LIBS=$LIBS
17579 LIBS="-ldl $LIBS"
17580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h. */
17583 /* Override any GCC internal prototype to avoid an error.
17584 Use char because int might match the return type of a GCC
17585 builtin and then its argument prototype would still apply. */
17586 #ifdef __cplusplus
17587 extern "C"
17588 #endif
17589 char dlopen ();
17591 main ()
17593 return dlopen ();
17595 return 0;
17597 _ACEOF
17598 if ac_fn_c_try_link "$LINENO"; then :
17599 ac_cv_lib_dl_dlopen=yes
17600 else
17601 ac_cv_lib_dl_dlopen=no
17603 rm -f core conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
17605 LIBS=$ac_check_lib_save_LIBS
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17608 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17609 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17611 else
17613 lt_cv_dlopen="dyld"
17614 lt_cv_dlopen_libs=
17615 lt_cv_dlopen_self=yes
17622 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17623 if test "x$ac_cv_func_shl_load" = x""yes; then :
17624 lt_cv_dlopen="shl_load"
17625 else
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17627 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17628 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17629 $as_echo_n "(cached) " >&6
17630 else
17631 ac_check_lib_save_LIBS=$LIBS
17632 LIBS="-ldld $LIBS"
17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h. */
17636 /* Override any GCC internal prototype to avoid an error.
17637 Use char because int might match the return type of a GCC
17638 builtin and then its argument prototype would still apply. */
17639 #ifdef __cplusplus
17640 extern "C"
17641 #endif
17642 char shl_load ();
17644 main ()
17646 return shl_load ();
17648 return 0;
17650 _ACEOF
17651 if ac_fn_c_try_link "$LINENO"; then :
17652 ac_cv_lib_dld_shl_load=yes
17653 else
17654 ac_cv_lib_dld_shl_load=no
17656 rm -f core conftest.err conftest.$ac_objext \
17657 conftest$ac_exeext conftest.$ac_ext
17658 LIBS=$ac_check_lib_save_LIBS
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17661 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17662 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17663 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17664 else
17665 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17666 if test "x$ac_cv_func_dlopen" = x""yes; then :
17667 lt_cv_dlopen="dlopen"
17668 else
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17670 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17671 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17672 $as_echo_n "(cached) " >&6
17673 else
17674 ac_check_lib_save_LIBS=$LIBS
17675 LIBS="-ldl $LIBS"
17676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17677 /* end confdefs.h. */
17679 /* Override any GCC internal prototype to avoid an error.
17680 Use char because int might match the return type of a GCC
17681 builtin and then its argument prototype would still apply. */
17682 #ifdef __cplusplus
17683 extern "C"
17684 #endif
17685 char dlopen ();
17687 main ()
17689 return dlopen ();
17691 return 0;
17693 _ACEOF
17694 if ac_fn_c_try_link "$LINENO"; then :
17695 ac_cv_lib_dl_dlopen=yes
17696 else
17697 ac_cv_lib_dl_dlopen=no
17699 rm -f core conftest.err conftest.$ac_objext \
17700 conftest$ac_exeext conftest.$ac_ext
17701 LIBS=$ac_check_lib_save_LIBS
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17704 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17705 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17706 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17707 else
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17709 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17710 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17711 $as_echo_n "(cached) " >&6
17712 else
17713 ac_check_lib_save_LIBS=$LIBS
17714 LIBS="-lsvld $LIBS"
17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h. */
17718 /* Override any GCC internal prototype to avoid an error.
17719 Use char because int might match the return type of a GCC
17720 builtin and then its argument prototype would still apply. */
17721 #ifdef __cplusplus
17722 extern "C"
17723 #endif
17724 char dlopen ();
17726 main ()
17728 return dlopen ();
17730 return 0;
17732 _ACEOF
17733 if ac_fn_c_try_link "$LINENO"; then :
17734 ac_cv_lib_svld_dlopen=yes
17735 else
17736 ac_cv_lib_svld_dlopen=no
17738 rm -f core conftest.err conftest.$ac_objext \
17739 conftest$ac_exeext conftest.$ac_ext
17740 LIBS=$ac_check_lib_save_LIBS
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17743 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17744 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17746 else
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17748 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17749 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17750 $as_echo_n "(cached) " >&6
17751 else
17752 ac_check_lib_save_LIBS=$LIBS
17753 LIBS="-ldld $LIBS"
17754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17755 /* end confdefs.h. */
17757 /* Override any GCC internal prototype to avoid an error.
17758 Use char because int might match the return type of a GCC
17759 builtin and then its argument prototype would still apply. */
17760 #ifdef __cplusplus
17761 extern "C"
17762 #endif
17763 char dld_link ();
17765 main ()
17767 return dld_link ();
17769 return 0;
17771 _ACEOF
17772 if ac_fn_c_try_link "$LINENO"; then :
17773 ac_cv_lib_dld_dld_link=yes
17774 else
17775 ac_cv_lib_dld_dld_link=no
17777 rm -f core conftest.err conftest.$ac_objext \
17778 conftest$ac_exeext conftest.$ac_ext
17779 LIBS=$ac_check_lib_save_LIBS
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17782 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17783 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17784 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17803 esac
17805 if test "x$lt_cv_dlopen" != xno; then
17806 enable_dlopen=yes
17807 else
17808 enable_dlopen=no
17811 case $lt_cv_dlopen in
17812 dlopen)
17813 save_CPPFLAGS="$CPPFLAGS"
17814 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17816 save_LDFLAGS="$LDFLAGS"
17817 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17819 save_LIBS="$LIBS"
17820 LIBS="$lt_cv_dlopen_libs $LIBS"
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17823 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17824 if test "${lt_cv_dlopen_self+set}" = set; then :
17825 $as_echo_n "(cached) " >&6
17826 else
17827 if test "$cross_compiling" = yes; then :
17828 lt_cv_dlopen_self=cross
17829 else
17830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17831 lt_status=$lt_dlunknown
17832 cat > conftest.$ac_ext <<_LT_EOF
17833 #line 17833 "configure"
17834 #include "confdefs.h"
17836 #if HAVE_DLFCN_H
17837 #include <dlfcn.h>
17838 #endif
17840 #include <stdio.h>
17842 #ifdef RTLD_GLOBAL
17843 # define LT_DLGLOBAL RTLD_GLOBAL
17844 #else
17845 # ifdef DL_GLOBAL
17846 # define LT_DLGLOBAL DL_GLOBAL
17847 # else
17848 # define LT_DLGLOBAL 0
17849 # endif
17850 #endif
17852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17853 find out it does not work in some platform. */
17854 #ifndef LT_DLLAZY_OR_NOW
17855 # ifdef RTLD_LAZY
17856 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17857 # else
17858 # ifdef DL_LAZY
17859 # define LT_DLLAZY_OR_NOW DL_LAZY
17860 # else
17861 # ifdef RTLD_NOW
17862 # define LT_DLLAZY_OR_NOW RTLD_NOW
17863 # else
17864 # ifdef DL_NOW
17865 # define LT_DLLAZY_OR_NOW DL_NOW
17866 # else
17867 # define LT_DLLAZY_OR_NOW 0
17868 # endif
17869 # endif
17870 # endif
17871 # endif
17872 #endif
17874 /* When -fvisbility=hidden is used, assume the code has been annotated
17875 correspondingly for the symbols needed. */
17876 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17877 void fnord () __attribute__((visibility("default")));
17878 #endif
17880 void fnord () { int i=42; }
17881 int main ()
17883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17884 int status = $lt_dlunknown;
17886 if (self)
17888 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17889 else
17891 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17892 else puts (dlerror ());
17894 /* dlclose (self); */
17896 else
17897 puts (dlerror ());
17899 return status;
17901 _LT_EOF
17902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17903 (eval $ac_link) 2>&5
17904 ac_status=$?
17905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17906 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17907 (./conftest; exit; ) >&5 2>/dev/null
17908 lt_status=$?
17909 case x$lt_status in
17910 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17911 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17912 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17913 esac
17914 else :
17915 # compilation failed
17916 lt_cv_dlopen_self=no
17919 rm -fr conftest*
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17924 $as_echo "$lt_cv_dlopen_self" >&6; }
17926 if test "x$lt_cv_dlopen_self" = xyes; then
17927 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17929 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17930 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17931 $as_echo_n "(cached) " >&6
17932 else
17933 if test "$cross_compiling" = yes; then :
17934 lt_cv_dlopen_self_static=cross
17935 else
17936 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17937 lt_status=$lt_dlunknown
17938 cat > conftest.$ac_ext <<_LT_EOF
17939 #line 17939 "configure"
17940 #include "confdefs.h"
17942 #if HAVE_DLFCN_H
17943 #include <dlfcn.h>
17944 #endif
17946 #include <stdio.h>
17948 #ifdef RTLD_GLOBAL
17949 # define LT_DLGLOBAL RTLD_GLOBAL
17950 #else
17951 # ifdef DL_GLOBAL
17952 # define LT_DLGLOBAL DL_GLOBAL
17953 # else
17954 # define LT_DLGLOBAL 0
17955 # endif
17956 #endif
17958 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17959 find out it does not work in some platform. */
17960 #ifndef LT_DLLAZY_OR_NOW
17961 # ifdef RTLD_LAZY
17962 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17963 # else
17964 # ifdef DL_LAZY
17965 # define LT_DLLAZY_OR_NOW DL_LAZY
17966 # else
17967 # ifdef RTLD_NOW
17968 # define LT_DLLAZY_OR_NOW RTLD_NOW
17969 # else
17970 # ifdef DL_NOW
17971 # define LT_DLLAZY_OR_NOW DL_NOW
17972 # else
17973 # define LT_DLLAZY_OR_NOW 0
17974 # endif
17975 # endif
17976 # endif
17977 # endif
17978 #endif
17980 /* When -fvisbility=hidden is used, assume the code has been annotated
17981 correspondingly for the symbols needed. */
17982 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17983 void fnord () __attribute__((visibility("default")));
17984 #endif
17986 void fnord () { int i=42; }
17987 int main ()
17989 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17990 int status = $lt_dlunknown;
17992 if (self)
17994 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17995 else
17997 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17998 else puts (dlerror ());
18000 /* dlclose (self); */
18002 else
18003 puts (dlerror ());
18005 return status;
18007 _LT_EOF
18008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18009 (eval $ac_link) 2>&5
18010 ac_status=$?
18011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18012 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18013 (./conftest; exit; ) >&5 2>/dev/null
18014 lt_status=$?
18015 case x$lt_status in
18016 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18017 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18018 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18019 esac
18020 else :
18021 # compilation failed
18022 lt_cv_dlopen_self_static=no
18025 rm -fr conftest*
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18030 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18033 CPPFLAGS="$save_CPPFLAGS"
18034 LDFLAGS="$save_LDFLAGS"
18035 LIBS="$save_LIBS"
18037 esac
18039 case $lt_cv_dlopen_self in
18040 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18041 *) enable_dlopen_self=unknown ;;
18042 esac
18044 case $lt_cv_dlopen_self_static in
18045 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18046 *) enable_dlopen_self_static=unknown ;;
18047 esac
18066 striplib=
18067 old_striplib=
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18069 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18070 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18071 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18072 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18074 $as_echo "yes" >&6; }
18075 else
18076 # FIXME - insert some real tests, host_os isn't really good enough
18077 case $host_os in
18078 darwin*)
18079 if test -n "$STRIP" ; then
18080 striplib="$STRIP -x"
18081 old_striplib="$STRIP -S"
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18083 $as_echo "yes" >&6; }
18084 else
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18086 $as_echo "no" >&6; }
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18091 $as_echo "no" >&6; }
18093 esac
18107 # Report which library types will actually be built
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18109 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18111 $as_echo "$can_build_shared" >&6; }
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18114 $as_echo_n "checking whether to build shared libraries... " >&6; }
18115 test "$can_build_shared" = "no" && enable_shared=no
18117 # On AIX, shared libraries and static libraries use the same namespace, and
18118 # are all built from PIC.
18119 case $host_os in
18120 aix3*)
18121 test "$enable_shared" = yes && enable_static=no
18122 if test -n "$RANLIB"; then
18123 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18124 postinstall_cmds='$RANLIB $lib'
18128 aix[4-9]*)
18129 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18130 test "$enable_shared" = yes && enable_static=no
18133 esac
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18135 $as_echo "$enable_shared" >&6; }
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18138 $as_echo_n "checking whether to build static libraries... " >&6; }
18139 # Make sure either enable_shared or enable_static is yes.
18140 test "$enable_shared" = yes || enable_static=yes
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18142 $as_echo "$enable_static" >&6; }
18148 ac_ext=c
18149 ac_cpp='$CPP $CPPFLAGS'
18150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18154 CC="$lt_save_CC"
18156 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18157 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18158 (test "X$CXX" != "Xg++"))) ; then
18159 ac_ext=cpp
18160 ac_cpp='$CXXCPP $CPPFLAGS'
18161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18165 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18166 if test -z "$CXXCPP"; then
18167 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18168 $as_echo_n "(cached) " >&6
18169 else
18170 # Double quotes because CXXCPP needs to be expanded
18171 for CXXCPP in "$CXX -E" "/lib/cpp"
18173 ac_preproc_ok=false
18174 for ac_cxx_preproc_warn_flag in '' yes
18176 # Use a header file that comes with gcc, so configuring glibc
18177 # with a fresh cross-compiler works.
18178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18179 # <limits.h> exists even on freestanding compilers.
18180 # On the NeXT, cc -E runs the code through the compiler's parser,
18181 # not just through cpp. "Syntax error" is here to catch this case.
18182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18183 /* end confdefs.h. */
18184 #ifdef __STDC__
18185 # include <limits.h>
18186 #else
18187 # include <assert.h>
18188 #endif
18189 Syntax error
18190 _ACEOF
18191 if ac_fn_cxx_try_cpp "$LINENO"; then :
18193 else
18194 # Broken: fails on valid input.
18195 continue
18197 rm -f conftest.err conftest.$ac_ext
18199 # OK, works on sane cases. Now check whether nonexistent headers
18200 # can be detected and how.
18201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18202 /* end confdefs.h. */
18203 #include <ac_nonexistent.h>
18204 _ACEOF
18205 if ac_fn_cxx_try_cpp "$LINENO"; then :
18206 # Broken: success on invalid input.
18207 continue
18208 else
18209 # Passes both tests.
18210 ac_preproc_ok=:
18211 break
18213 rm -f conftest.err conftest.$ac_ext
18215 done
18216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18217 rm -f conftest.err conftest.$ac_ext
18218 if $ac_preproc_ok; then :
18219 break
18222 done
18223 ac_cv_prog_CXXCPP=$CXXCPP
18226 CXXCPP=$ac_cv_prog_CXXCPP
18227 else
18228 ac_cv_prog_CXXCPP=$CXXCPP
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18231 $as_echo "$CXXCPP" >&6; }
18232 ac_preproc_ok=false
18233 for ac_cxx_preproc_warn_flag in '' yes
18235 # Use a header file that comes with gcc, so configuring glibc
18236 # with a fresh cross-compiler works.
18237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18238 # <limits.h> exists even on freestanding compilers.
18239 # On the NeXT, cc -E runs the code through the compiler's parser,
18240 # not just through cpp. "Syntax error" is here to catch this case.
18241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18242 /* end confdefs.h. */
18243 #ifdef __STDC__
18244 # include <limits.h>
18245 #else
18246 # include <assert.h>
18247 #endif
18248 Syntax error
18249 _ACEOF
18250 if ac_fn_cxx_try_cpp "$LINENO"; then :
18252 else
18253 # Broken: fails on valid input.
18254 continue
18256 rm -f conftest.err conftest.$ac_ext
18258 # OK, works on sane cases. Now check whether nonexistent headers
18259 # can be detected and how.
18260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18261 /* end confdefs.h. */
18262 #include <ac_nonexistent.h>
18263 _ACEOF
18264 if ac_fn_cxx_try_cpp "$LINENO"; then :
18265 # Broken: success on invalid input.
18266 continue
18267 else
18268 # Passes both tests.
18269 ac_preproc_ok=:
18270 break
18272 rm -f conftest.err conftest.$ac_ext
18274 done
18275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18276 rm -f conftest.err conftest.$ac_ext
18277 if $ac_preproc_ok; then :
18279 else
18280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18282 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18283 See \`config.log' for more details." "$LINENO" 5; }
18286 ac_ext=c
18287 ac_cpp='$CPP $CPPFLAGS'
18288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18292 else
18293 _lt_caught_CXX_error=yes
18296 ac_ext=cpp
18297 ac_cpp='$CXXCPP $CPPFLAGS'
18298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18302 archive_cmds_need_lc_CXX=no
18303 allow_undefined_flag_CXX=
18304 always_export_symbols_CXX=no
18305 archive_expsym_cmds_CXX=
18306 compiler_needs_object_CXX=no
18307 export_dynamic_flag_spec_CXX=
18308 hardcode_direct_CXX=no
18309 hardcode_direct_absolute_CXX=no
18310 hardcode_libdir_flag_spec_CXX=
18311 hardcode_libdir_flag_spec_ld_CXX=
18312 hardcode_libdir_separator_CXX=
18313 hardcode_minus_L_CXX=no
18314 hardcode_shlibpath_var_CXX=unsupported
18315 hardcode_automatic_CXX=no
18316 inherit_rpath_CXX=no
18317 module_cmds_CXX=
18318 module_expsym_cmds_CXX=
18319 link_all_deplibs_CXX=unknown
18320 old_archive_cmds_CXX=$old_archive_cmds
18321 reload_flag_CXX=$reload_flag
18322 reload_cmds_CXX=$reload_cmds
18323 no_undefined_flag_CXX=
18324 whole_archive_flag_spec_CXX=
18325 enable_shared_with_static_runtimes_CXX=no
18327 # Source file extension for C++ test sources.
18328 ac_ext=cpp
18330 # Object file extension for compiled C++ test sources.
18331 objext=o
18332 objext_CXX=$objext
18334 # No sense in running all these tests if we already determined that
18335 # the CXX compiler isn't working. Some variables (like enable_shared)
18336 # are currently assumed to apply to all compilers on this platform,
18337 # and will be corrupted by setting them based on a non-working compiler.
18338 if test "$_lt_caught_CXX_error" != yes; then
18339 # Code to be used in simple compile tests
18340 lt_simple_compile_test_code="int some_variable = 0;"
18342 # Code to be used in simple link tests
18343 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18345 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18352 # If no C compiler was specified, use CC.
18353 LTCC=${LTCC-"$CC"}
18355 # If no C compiler flags were specified, use CFLAGS.
18356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18358 # Allow CC to be a program name with arguments.
18359 compiler=$CC
18362 # save warnings/boilerplate of simple test code
18363 ac_outfile=conftest.$ac_objext
18364 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18366 _lt_compiler_boilerplate=`cat conftest.err`
18367 $RM conftest*
18369 ac_outfile=conftest.$ac_objext
18370 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18372 _lt_linker_boilerplate=`cat conftest.err`
18373 $RM -r conftest*
18376 # Allow CC to be a program name with arguments.
18377 lt_save_CC=$CC
18378 lt_save_LD=$LD
18379 lt_save_GCC=$GCC
18380 GCC=$GXX
18381 lt_save_with_gnu_ld=$with_gnu_ld
18382 lt_save_path_LD=$lt_cv_path_LD
18383 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18384 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18385 else
18386 $as_unset lt_cv_prog_gnu_ld
18388 if test -n "${lt_cv_path_LDCXX+set}"; then
18389 lt_cv_path_LD=$lt_cv_path_LDCXX
18390 else
18391 $as_unset lt_cv_path_LD
18393 test -z "${LDCXX+set}" || LD=$LDCXX
18394 CC=${CXX-"c++"}
18395 compiler=$CC
18396 compiler_CXX=$CC
18397 for cc_temp in $compiler""; do
18398 case $cc_temp in
18399 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18400 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18401 \-*) ;;
18402 *) break;;
18403 esac
18404 done
18405 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18408 if test -n "$compiler"; then
18409 # We don't want -fno-exception when compiling C++ code, so set the
18410 # no_builtin_flag separately
18411 if test "$GXX" = yes; then
18412 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18413 else
18414 lt_prog_compiler_no_builtin_flag_CXX=
18417 if test "$GXX" = yes; then
18418 # Set up default GNU C++ configuration
18422 # Check whether --with-gnu-ld was given.
18423 if test "${with_gnu_ld+set}" = set; then :
18424 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18425 else
18426 with_gnu_ld=no
18429 ac_prog=ld
18430 if test "$GCC" = yes; then
18431 # Check if gcc -print-prog-name=ld gives a path.
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18433 $as_echo_n "checking for ld used by $CC... " >&6; }
18434 case $host in
18435 *-*-mingw*)
18436 # gcc leaves a trailing carriage return which upsets mingw
18437 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18439 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18440 esac
18441 case $ac_prog in
18442 # Accept absolute paths.
18443 [\\/]* | ?:[\\/]*)
18444 re_direlt='/[^/][^/]*/\.\./'
18445 # Canonicalize the pathname of ld
18446 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18447 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18448 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18449 done
18450 test -z "$LD" && LD="$ac_prog"
18453 # If it fails, then pretend we aren't using GCC.
18454 ac_prog=ld
18457 # If it is relative, then search for the first ld in PATH.
18458 with_gnu_ld=unknown
18460 esac
18461 elif test "$with_gnu_ld" = yes; then
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18463 $as_echo_n "checking for GNU ld... " >&6; }
18464 else
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18466 $as_echo_n "checking for non-GNU ld... " >&6; }
18468 if test "${lt_cv_path_LD+set}" = set; then :
18469 $as_echo_n "(cached) " >&6
18470 else
18471 if test -z "$LD"; then
18472 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18473 for ac_dir in $PATH; do
18474 IFS="$lt_save_ifs"
18475 test -z "$ac_dir" && ac_dir=.
18476 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18477 lt_cv_path_LD="$ac_dir/$ac_prog"
18478 # Check to see if the program is GNU ld. I'd rather use --version,
18479 # but apparently some variants of GNU ld only accept -v.
18480 # Break only if it was the GNU/non-GNU ld that we prefer.
18481 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18482 *GNU* | *'with BFD'*)
18483 test "$with_gnu_ld" != no && break
18486 test "$with_gnu_ld" != yes && break
18488 esac
18490 done
18491 IFS="$lt_save_ifs"
18492 else
18493 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18497 LD="$lt_cv_path_LD"
18498 if test -n "$LD"; then
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18500 $as_echo "$LD" >&6; }
18501 else
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18503 $as_echo "no" >&6; }
18505 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18507 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18508 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18509 $as_echo_n "(cached) " >&6
18510 else
18511 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18512 case `$LD -v 2>&1 </dev/null` in
18513 *GNU* | *'with BFD'*)
18514 lt_cv_prog_gnu_ld=yes
18517 lt_cv_prog_gnu_ld=no
18519 esac
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18522 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18523 with_gnu_ld=$lt_cv_prog_gnu_ld
18531 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18532 # archiving commands below assume that GNU ld is being used.
18533 if test "$with_gnu_ld" = yes; then
18534 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18535 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'
18537 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18538 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18540 # If archive_cmds runs LD, not CC, wlarc should be empty
18541 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18542 # investigate it a little bit more. (MM)
18543 wlarc='${wl}'
18545 # ancient GNU ld didn't support --whole-archive et. al.
18546 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18547 $GREP 'no-whole-archive' > /dev/null; then
18548 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18549 else
18550 whole_archive_flag_spec_CXX=
18552 else
18553 with_gnu_ld=no
18554 wlarc=
18556 # A generic and very simple default shared library creation
18557 # command for GNU C++ for the case where it uses the native
18558 # linker, instead of GNU ld. If possible, this setting should
18559 # overridden to take advantage of the native linker features on
18560 # the platform it is being used on.
18561 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18564 # Commands to make compiler produce verbose output that lists
18565 # what "hidden" libraries, object files and flags are used when
18566 # linking a shared library.
18567 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18569 else
18570 GXX=no
18571 with_gnu_ld=no
18572 wlarc=
18575 # PORTME: fill in a description of your system's C++ link characteristics
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18577 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18578 ld_shlibs_CXX=yes
18579 case $host_os in
18580 aix3*)
18581 # FIXME: insert proper C++ library support
18582 ld_shlibs_CXX=no
18584 aix[4-9]*)
18585 if test "$host_cpu" = ia64; then
18586 # On IA64, the linker does run time linking by default, so we don't
18587 # have to do anything special.
18588 aix_use_runtimelinking=no
18589 exp_sym_flag='-Bexport'
18590 no_entry_flag=""
18591 else
18592 aix_use_runtimelinking=no
18594 # Test if we are trying to use run time linking or normal
18595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18596 # need to do runtime linking.
18597 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18598 for ld_flag in $LDFLAGS; do
18599 case $ld_flag in
18600 *-brtl*)
18601 aix_use_runtimelinking=yes
18602 break
18604 esac
18605 done
18607 esac
18609 exp_sym_flag='-bexport'
18610 no_entry_flag='-bnoentry'
18613 # When large executables or shared objects are built, AIX ld can
18614 # have problems creating the table of contents. If linking a library
18615 # or program results in "error TOC overflow" add -mminimal-toc to
18616 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18617 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18619 archive_cmds_CXX=''
18620 hardcode_direct_CXX=yes
18621 hardcode_direct_absolute_CXX=yes
18622 hardcode_libdir_separator_CXX=':'
18623 link_all_deplibs_CXX=yes
18624 file_list_spec_CXX='${wl}-f,'
18626 if test "$GXX" = yes; then
18627 case $host_os in aix4.[012]|aix4.[012].*)
18628 # We only want to do this on AIX 4.2 and lower, the check
18629 # below for broken collect2 doesn't work under 4.3+
18630 collect2name=`${CC} -print-prog-name=collect2`
18631 if test -f "$collect2name" &&
18632 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18633 then
18634 # We have reworked collect2
18636 else
18637 # We have old collect2
18638 hardcode_direct_CXX=unsupported
18639 # It fails to find uninstalled libraries when the uninstalled
18640 # path is not listed in the libpath. Setting hardcode_minus_L
18641 # to unsupported forces relinking
18642 hardcode_minus_L_CXX=yes
18643 hardcode_libdir_flag_spec_CXX='-L$libdir'
18644 hardcode_libdir_separator_CXX=
18646 esac
18647 shared_flag='-shared'
18648 if test "$aix_use_runtimelinking" = yes; then
18649 shared_flag="$shared_flag "'${wl}-G'
18651 else
18652 # not using gcc
18653 if test "$host_cpu" = ia64; then
18654 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18655 # chokes on -Wl,-G. The following line is correct:
18656 shared_flag='-G'
18657 else
18658 if test "$aix_use_runtimelinking" = yes; then
18659 shared_flag='${wl}-G'
18660 else
18661 shared_flag='${wl}-bM:SRE'
18666 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18667 # It seems that -bexpall does not export symbols beginning with
18668 # underscore (_), so it is better to generate a list of symbols to
18669 # export.
18670 always_export_symbols_CXX=yes
18671 if test "$aix_use_runtimelinking" = yes; then
18672 # Warning - without using the other runtime loading flags (-brtl),
18673 # -berok will link without error, but may produce a broken library.
18674 allow_undefined_flag_CXX='-berok'
18675 # Determine the default libpath from the value encoded in an empty
18676 # executable.
18677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18678 /* end confdefs.h. */
18681 main ()
18685 return 0;
18687 _ACEOF
18688 if ac_fn_cxx_try_link "$LINENO"; then :
18690 lt_aix_libpath_sed='
18691 /Import File Strings/,/^$/ {
18692 /^0/ {
18693 s/^0 *\(.*\)$/\1/
18697 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18698 # Check for a 64-bit object if we didn't find anything.
18699 if test -z "$aix_libpath"; then
18700 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18703 rm -f core conftest.err conftest.$ac_objext \
18704 conftest$ac_exeext conftest.$ac_ext
18705 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18707 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18709 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"
18710 else
18711 if test "$host_cpu" = ia64; then
18712 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18713 allow_undefined_flag_CXX="-z nodefs"
18714 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"
18715 else
18716 # Determine the default libpath from the value encoded in an
18717 # empty executable.
18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719 /* end confdefs.h. */
18722 main ()
18726 return 0;
18728 _ACEOF
18729 if ac_fn_cxx_try_link "$LINENO"; then :
18731 lt_aix_libpath_sed='
18732 /Import File Strings/,/^$/ {
18733 /^0/ {
18734 s/^0 *\(.*\)$/\1/
18738 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18739 # Check for a 64-bit object if we didn't find anything.
18740 if test -z "$aix_libpath"; then
18741 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18744 rm -f core conftest.err conftest.$ac_objext \
18745 conftest$ac_exeext conftest.$ac_ext
18746 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18748 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18749 # Warning - without using the other run time loading flags,
18750 # -berok will link without error, but may produce a broken library.
18751 no_undefined_flag_CXX=' ${wl}-bernotok'
18752 allow_undefined_flag_CXX=' ${wl}-berok'
18753 if test "$with_gnu_ld" = yes; then
18754 # We only use this code for GNU lds that support --whole-archive.
18755 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18756 else
18757 # Exported symbols can be pulled into shared objects from archives
18758 whole_archive_flag_spec_CXX='$convenience'
18760 archive_cmds_need_lc_CXX=yes
18761 # This is similar to how AIX traditionally builds its shared
18762 # libraries.
18763 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'
18768 beos*)
18769 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18770 allow_undefined_flag_CXX=unsupported
18771 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18772 # support --undefined. This deserves some investigation. FIXME
18773 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18774 else
18775 ld_shlibs_CXX=no
18779 chorus*)
18780 case $cc_basename in
18782 # FIXME: insert proper C++ library support
18783 ld_shlibs_CXX=no
18785 esac
18788 cygwin* | mingw* | pw32* | cegcc*)
18789 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18790 # as there is no search path for DLLs.
18791 hardcode_libdir_flag_spec_CXX='-L$libdir'
18792 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18793 allow_undefined_flag_CXX=unsupported
18794 always_export_symbols_CXX=no
18795 enable_shared_with_static_runtimes_CXX=yes
18797 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18798 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'
18799 # If the export-symbols file already is a .def file (1st line
18800 # is EXPORTS), use it as is; otherwise, prepend...
18801 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18802 cp $export_symbols $output_objdir/$soname.def;
18803 else
18804 echo EXPORTS > $output_objdir/$soname.def;
18805 cat $export_symbols >> $output_objdir/$soname.def;
18807 $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'
18808 else
18809 ld_shlibs_CXX=no
18812 darwin* | rhapsody*)
18815 archive_cmds_need_lc_CXX=no
18816 hardcode_direct_CXX=no
18817 hardcode_automatic_CXX=yes
18818 hardcode_shlibpath_var_CXX=unsupported
18819 if test "$lt_cv_ld_force_load" = "yes"; then
18820 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\"`'
18821 else
18822 whole_archive_flag_spec_CXX=''
18824 link_all_deplibs_CXX=yes
18825 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18826 case $cc_basename in
18827 ifort*) _lt_dar_can_shared=yes ;;
18828 *) _lt_dar_can_shared=$GCC ;;
18829 esac
18830 if test "$_lt_dar_can_shared" = "yes"; then
18831 output_verbose_link_cmd=func_echo_all
18832 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}"
18833 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18834 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}"
18835 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}"
18836 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18837 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}"
18838 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}"
18841 else
18842 ld_shlibs_CXX=no
18847 dgux*)
18848 case $cc_basename in
18849 ec++*)
18850 # FIXME: insert proper C++ library support
18851 ld_shlibs_CXX=no
18853 ghcx*)
18854 # Green Hills C++ Compiler
18855 # FIXME: insert proper C++ library support
18856 ld_shlibs_CXX=no
18859 # FIXME: insert proper C++ library support
18860 ld_shlibs_CXX=no
18862 esac
18865 freebsd2.*)
18866 # C++ shared libraries reported to be fairly broken before
18867 # switch to ELF
18868 ld_shlibs_CXX=no
18871 freebsd-elf*)
18872 archive_cmds_need_lc_CXX=no
18875 freebsd* | dragonfly*)
18876 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18877 # conventions
18878 ld_shlibs_CXX=yes
18881 gnu*)
18884 haiku*)
18885 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18886 link_all_deplibs_CXX=yes
18889 hpux9*)
18890 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18891 hardcode_libdir_separator_CXX=:
18892 export_dynamic_flag_spec_CXX='${wl}-E'
18893 hardcode_direct_CXX=yes
18894 hardcode_minus_L_CXX=yes # Not in the search PATH,
18895 # but as the default
18896 # location of the library.
18898 case $cc_basename in
18899 CC*)
18900 # FIXME: insert proper C++ library support
18901 ld_shlibs_CXX=no
18903 aCC*)
18904 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'
18905 # Commands to make compiler produce verbose output that lists
18906 # what "hidden" libraries, object files and flags are used when
18907 # linking a shared library.
18909 # There doesn't appear to be a way to prevent this compiler from
18910 # explicitly linking system object files so we need to strip them
18911 # from the output so that they don't get included in the library
18912 # dependencies.
18913 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"'
18916 if test "$GXX" = yes; then
18917 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'
18918 else
18919 # FIXME: insert proper C++ library support
18920 ld_shlibs_CXX=no
18923 esac
18926 hpux10*|hpux11*)
18927 if test $with_gnu_ld = no; then
18928 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18929 hardcode_libdir_separator_CXX=:
18931 case $host_cpu in
18932 hppa*64*|ia64*)
18935 export_dynamic_flag_spec_CXX='${wl}-E'
18937 esac
18939 case $host_cpu in
18940 hppa*64*|ia64*)
18941 hardcode_direct_CXX=no
18942 hardcode_shlibpath_var_CXX=no
18945 hardcode_direct_CXX=yes
18946 hardcode_direct_absolute_CXX=yes
18947 hardcode_minus_L_CXX=yes # Not in the search PATH,
18948 # but as the default
18949 # location of the library.
18951 esac
18953 case $cc_basename in
18954 CC*)
18955 # FIXME: insert proper C++ library support
18956 ld_shlibs_CXX=no
18958 aCC*)
18959 case $host_cpu in
18960 hppa*64*)
18961 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18963 ia64*)
18964 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18967 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18969 esac
18970 # Commands to make compiler produce verbose output that lists
18971 # what "hidden" libraries, object files and flags are used when
18972 # linking a shared library.
18974 # There doesn't appear to be a way to prevent this compiler from
18975 # explicitly linking system object files so we need to strip them
18976 # from the output so that they don't get included in the library
18977 # dependencies.
18978 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"'
18981 if test "$GXX" = yes; then
18982 if test $with_gnu_ld = no; then
18983 case $host_cpu in
18984 hppa*64*)
18985 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18987 ia64*)
18988 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18991 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'
18993 esac
18995 else
18996 # FIXME: insert proper C++ library support
18997 ld_shlibs_CXX=no
19000 esac
19003 interix[3-9]*)
19004 hardcode_direct_CXX=no
19005 hardcode_shlibpath_var_CXX=no
19006 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19007 export_dynamic_flag_spec_CXX='${wl}-E'
19008 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19009 # Instead, shared libraries are loaded at an image base (0x10000000 by
19010 # default) and relocated if they conflict, which is a slow very memory
19011 # consuming and fragmenting process. To avoid this, we pick a random,
19012 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19013 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19014 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'
19015 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'
19017 irix5* | irix6*)
19018 case $cc_basename in
19019 CC*)
19020 # SGI C++
19021 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'
19023 # Archives containing C++ object files must be created using
19024 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19025 # necessary to make sure instantiated templates are included
19026 # in the archive.
19027 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19030 if test "$GXX" = yes; then
19031 if test "$with_gnu_ld" = no; then
19032 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'
19033 else
19034 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'
19037 link_all_deplibs_CXX=yes
19039 esac
19040 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19041 hardcode_libdir_separator_CXX=:
19042 inherit_rpath_CXX=yes
19045 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19046 case $cc_basename in
19047 KCC*)
19048 # Kuck and Associates, Inc. (KAI) C++ Compiler
19050 # KCC will only create a shared library if the output file
19051 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19052 # to its proper name (with version) after linking.
19053 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'
19054 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'
19055 # Commands to make compiler produce verbose output that lists
19056 # what "hidden" libraries, object files and flags are used when
19057 # linking a shared library.
19059 # There doesn't appear to be a way to prevent this compiler from
19060 # explicitly linking system object files so we need to strip them
19061 # from the output so that they don't get included in the library
19062 # dependencies.
19063 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"'
19065 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19066 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19068 # Archives containing C++ object files must be created using
19069 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19070 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19072 icpc* | ecpc* )
19073 # Intel C++
19074 with_gnu_ld=yes
19075 # version 8.0 and above of icpc choke on multiply defined symbols
19076 # if we add $predep_objects and $postdep_objects, however 7.1 and
19077 # earlier do not add the objects themselves.
19078 case `$CC -V 2>&1` in
19079 *"Version 7."*)
19080 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19081 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'
19083 *) # Version 8.0 or newer
19084 tmp_idyn=
19085 case $host_cpu in
19086 ia64*) tmp_idyn=' -i_dynamic';;
19087 esac
19088 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19089 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'
19091 esac
19092 archive_cmds_need_lc_CXX=no
19093 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19094 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19095 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19097 pgCC* | pgcpp*)
19098 # Portland Group C++ compiler
19099 case `$CC -V` in
19100 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19101 prelink_cmds_CXX='tpldir=Template.dir~
19102 rm -rf $tpldir~
19103 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19104 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19105 old_archive_cmds_CXX='tpldir=Template.dir~
19106 rm -rf $tpldir~
19107 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19108 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19109 $RANLIB $oldlib'
19110 archive_cmds_CXX='tpldir=Template.dir~
19111 rm -rf $tpldir~
19112 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19113 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19114 archive_expsym_cmds_CXX='tpldir=Template.dir~
19115 rm -rf $tpldir~
19116 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19117 $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'
19119 *) # Version 6 and above use weak symbols
19120 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19121 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'
19123 esac
19125 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19126 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19127 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'
19129 cxx*)
19130 # Compaq C++
19131 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19132 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'
19134 runpath_var=LD_RUN_PATH
19135 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19136 hardcode_libdir_separator_CXX=:
19138 # Commands to make compiler produce verbose output that lists
19139 # what "hidden" libraries, object files and flags are used when
19140 # linking a shared library.
19142 # There doesn't appear to be a way to prevent this compiler from
19143 # explicitly linking system object files so we need to strip them
19144 # from the output so that they don't get included in the library
19145 # dependencies.
19146 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'
19148 xl* | mpixl* | bgxl*)
19149 # IBM XL 8.0 on PPC, with GNU ld
19150 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19151 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19152 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19153 if test "x$supports_anon_versioning" = xyes; then
19154 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19155 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19156 echo "local: *; };" >> $output_objdir/$libname.ver~
19157 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19161 case `$CC -V 2>&1 | sed 5q` in
19162 *Sun\ C*)
19163 # Sun C++ 5.9
19164 no_undefined_flag_CXX=' -zdefs'
19165 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19166 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'
19167 hardcode_libdir_flag_spec_CXX='-R$libdir'
19168 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'
19169 compiler_needs_object_CXX=yes
19171 # Not sure whether something based on
19172 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19173 # would be better.
19174 output_verbose_link_cmd='func_echo_all'
19176 # Archives containing C++ object files must be created using
19177 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19178 # necessary to make sure instantiated templates are included
19179 # in the archive.
19180 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19182 esac
19184 esac
19187 lynxos*)
19188 # FIXME: insert proper C++ library support
19189 ld_shlibs_CXX=no
19192 m88k*)
19193 # FIXME: insert proper C++ library support
19194 ld_shlibs_CXX=no
19197 mvs*)
19198 case $cc_basename in
19199 cxx*)
19200 # FIXME: insert proper C++ library support
19201 ld_shlibs_CXX=no
19204 # FIXME: insert proper C++ library support
19205 ld_shlibs_CXX=no
19207 esac
19210 netbsd*)
19211 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19212 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19213 wlarc=
19214 hardcode_libdir_flag_spec_CXX='-R$libdir'
19215 hardcode_direct_CXX=yes
19216 hardcode_shlibpath_var_CXX=no
19218 # Workaround some broken pre-1.5 toolchains
19219 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19222 *nto* | *qnx*)
19223 ld_shlibs_CXX=yes
19226 openbsd2*)
19227 # C++ shared libraries are fairly broken
19228 ld_shlibs_CXX=no
19231 openbsd*)
19232 if test -f /usr/libexec/ld.so; then
19233 hardcode_direct_CXX=yes
19234 hardcode_shlibpath_var_CXX=no
19235 hardcode_direct_absolute_CXX=yes
19236 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19237 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19238 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19239 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19240 export_dynamic_flag_spec_CXX='${wl}-E'
19241 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19243 output_verbose_link_cmd=func_echo_all
19244 else
19245 ld_shlibs_CXX=no
19249 osf3* | osf4* | osf5*)
19250 case $cc_basename in
19251 KCC*)
19252 # Kuck and Associates, Inc. (KAI) C++ Compiler
19254 # KCC will only create a shared library if the output file
19255 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19256 # to its proper name (with version) after linking.
19257 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'
19259 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19260 hardcode_libdir_separator_CXX=:
19262 # Archives containing C++ object files must be created using
19263 # the KAI C++ compiler.
19264 case $host in
19265 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19266 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19267 esac
19269 RCC*)
19270 # Rational C++ 2.4.1
19271 # FIXME: insert proper C++ library support
19272 ld_shlibs_CXX=no
19274 cxx*)
19275 case $host in
19276 osf3*)
19277 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19278 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'
19279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19282 allow_undefined_flag_CXX=' -expect_unresolved \*'
19283 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'
19284 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19285 echo "-hidden">> $lib.exp~
19286 $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~
19287 $RM $lib.exp'
19288 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19290 esac
19292 hardcode_libdir_separator_CXX=:
19294 # Commands to make compiler produce verbose output that lists
19295 # what "hidden" libraries, object files and flags are used when
19296 # linking a shared library.
19298 # There doesn't appear to be a way to prevent this compiler from
19299 # explicitly linking system object files so we need to strip them
19300 # from the output so that they don't get included in the library
19301 # dependencies.
19302 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"'
19305 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19306 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19307 case $host in
19308 osf3*)
19309 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'
19312 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'
19314 esac
19316 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19317 hardcode_libdir_separator_CXX=:
19319 # Commands to make compiler produce verbose output that lists
19320 # what "hidden" libraries, object files and flags are used when
19321 # linking a shared library.
19322 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19324 else
19325 # FIXME: insert proper C++ library support
19326 ld_shlibs_CXX=no
19329 esac
19332 psos*)
19333 # FIXME: insert proper C++ library support
19334 ld_shlibs_CXX=no
19337 sunos4*)
19338 case $cc_basename in
19339 CC*)
19340 # Sun C++ 4.x
19341 # FIXME: insert proper C++ library support
19342 ld_shlibs_CXX=no
19344 lcc*)
19345 # Lucid
19346 # FIXME: insert proper C++ library support
19347 ld_shlibs_CXX=no
19350 # FIXME: insert proper C++ library support
19351 ld_shlibs_CXX=no
19353 esac
19356 solaris*)
19357 case $cc_basename in
19358 CC*)
19359 # Sun C++ 4.2, 5.x and Centerline C++
19360 archive_cmds_need_lc_CXX=yes
19361 no_undefined_flag_CXX=' -zdefs'
19362 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19363 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19364 $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'
19366 hardcode_libdir_flag_spec_CXX='-R$libdir'
19367 hardcode_shlibpath_var_CXX=no
19368 case $host_os in
19369 solaris2.[0-5] | solaris2.[0-5].*) ;;
19371 # The compiler driver will combine and reorder linker options,
19372 # but understands `-z linker_flag'.
19373 # Supported since Solaris 2.6 (maybe 2.5.1?)
19374 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19376 esac
19377 link_all_deplibs_CXX=yes
19379 output_verbose_link_cmd='func_echo_all'
19381 # Archives containing C++ object files must be created using
19382 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19383 # necessary to make sure instantiated templates are included
19384 # in the archive.
19385 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19387 gcx*)
19388 # Green Hills C++ Compiler
19389 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19391 # The C++ compiler must be used to create the archive.
19392 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19395 # GNU C++ compiler with Solaris linker
19396 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19397 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19398 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19399 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19400 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19401 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19403 # Commands to make compiler produce verbose output that lists
19404 # what "hidden" libraries, object files and flags are used when
19405 # linking a shared library.
19406 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19407 else
19408 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19409 # platform.
19410 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19411 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19412 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19414 # Commands to make compiler produce verbose output that lists
19415 # what "hidden" libraries, object files and flags are used when
19416 # linking a shared library.
19417 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19420 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19421 case $host_os in
19422 solaris2.[0-5] | solaris2.[0-5].*) ;;
19424 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19426 esac
19429 esac
19432 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19433 no_undefined_flag_CXX='${wl}-z,text'
19434 archive_cmds_need_lc_CXX=no
19435 hardcode_shlibpath_var_CXX=no
19436 runpath_var='LD_RUN_PATH'
19438 case $cc_basename in
19439 CC*)
19440 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19441 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19444 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19445 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19447 esac
19450 sysv5* | sco3.2v5* | sco5v6*)
19451 # Note: We can NOT use -z defs as we might desire, because we do not
19452 # link with -lc, and that would cause any symbols used from libc to
19453 # always be unresolved, which means just about no library would
19454 # ever link correctly. If we're not using GNU ld we use -z text
19455 # though, which does catch some bad symbols but isn't as heavy-handed
19456 # as -z defs.
19457 no_undefined_flag_CXX='${wl}-z,text'
19458 allow_undefined_flag_CXX='${wl}-z,nodefs'
19459 archive_cmds_need_lc_CXX=no
19460 hardcode_shlibpath_var_CXX=no
19461 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19462 hardcode_libdir_separator_CXX=':'
19463 link_all_deplibs_CXX=yes
19464 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19465 runpath_var='LD_RUN_PATH'
19467 case $cc_basename in
19468 CC*)
19469 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19470 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19471 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19472 '"$old_archive_cmds_CXX"
19473 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19474 '"$reload_cmds_CXX"
19477 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19478 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19480 esac
19483 tandem*)
19484 case $cc_basename in
19485 NCC*)
19486 # NonStop-UX NCC 3.20
19487 # FIXME: insert proper C++ library support
19488 ld_shlibs_CXX=no
19491 # FIXME: insert proper C++ library support
19492 ld_shlibs_CXX=no
19494 esac
19497 vxworks*)
19498 # FIXME: insert proper C++ library support
19499 ld_shlibs_CXX=no
19503 # FIXME: insert proper C++ library support
19504 ld_shlibs_CXX=no
19506 esac
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19509 $as_echo "$ld_shlibs_CXX" >&6; }
19510 test "$ld_shlibs_CXX" = no && can_build_shared=no
19512 GCC_CXX="$GXX"
19513 LD_CXX="$LD"
19515 ## CAVEAT EMPTOR:
19516 ## There is no encapsulation within the following macros, do not change
19517 ## the running order or otherwise move them around unless you know exactly
19518 ## what you are doing...
19519 # Dependencies to place before and after the object being linked:
19520 predep_objects_CXX=
19521 postdep_objects_CXX=
19522 predeps_CXX=
19523 postdeps_CXX=
19524 compiler_lib_search_path_CXX=
19526 cat > conftest.$ac_ext <<_LT_EOF
19527 class Foo
19529 public:
19530 Foo (void) { a = 0; }
19531 private:
19532 int a;
19534 _LT_EOF
19536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19537 (eval $ac_compile) 2>&5
19538 ac_status=$?
19539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19540 test $ac_status = 0; }; then
19541 # Parse the compiler output and extract the necessary
19542 # objects, libraries and library flags.
19544 # Sentinel used to keep track of whether or not we are before
19545 # the conftest object file.
19546 pre_test_object_deps_done=no
19548 for p in `eval "$output_verbose_link_cmd"`; do
19549 case $p in
19551 -L* | -R* | -l*)
19552 # Some compilers place space between "-{L,R}" and the path.
19553 # Remove the space.
19554 if test $p = "-L" ||
19555 test $p = "-R"; then
19556 prev=$p
19557 continue
19558 else
19559 prev=
19562 if test "$pre_test_object_deps_done" = no; then
19563 case $p in
19564 -L* | -R*)
19565 # Internal compiler library paths should come after those
19566 # provided the user. The postdeps already come after the
19567 # user supplied libs so there is no need to process them.
19568 if test -z "$compiler_lib_search_path_CXX"; then
19569 compiler_lib_search_path_CXX="${prev}${p}"
19570 else
19571 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19574 # The "-l" case would never come before the object being
19575 # linked, so don't bother handling this case.
19576 esac
19577 else
19578 if test -z "$postdeps_CXX"; then
19579 postdeps_CXX="${prev}${p}"
19580 else
19581 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19586 *.$objext)
19587 # This assumes that the test object file only shows up
19588 # once in the compiler output.
19589 if test "$p" = "conftest.$objext"; then
19590 pre_test_object_deps_done=yes
19591 continue
19594 if test "$pre_test_object_deps_done" = no; then
19595 if test -z "$predep_objects_CXX"; then
19596 predep_objects_CXX="$p"
19597 else
19598 predep_objects_CXX="$predep_objects_CXX $p"
19600 else
19601 if test -z "$postdep_objects_CXX"; then
19602 postdep_objects_CXX="$p"
19603 else
19604 postdep_objects_CXX="$postdep_objects_CXX $p"
19609 *) ;; # Ignore the rest.
19611 esac
19612 done
19614 # Clean up.
19615 rm -f a.out a.exe
19616 else
19617 echo "libtool.m4: error: problem compiling CXX test program"
19620 $RM -f confest.$objext
19622 # PORTME: override above test on systems where it is broken
19623 case $host_os in
19624 interix[3-9]*)
19625 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19626 # hack all around it, let's just trust "g++" to DTRT.
19627 predep_objects_CXX=
19628 postdep_objects_CXX=
19629 postdeps_CXX=
19632 linux*)
19633 case `$CC -V 2>&1 | sed 5q` in
19634 *Sun\ C*)
19635 # Sun C++ 5.9
19637 # The more standards-conforming stlport4 library is
19638 # incompatible with the Cstd library. Avoid specifying
19639 # it if it's in CXXFLAGS. Ignore libCrun as
19640 # -library=stlport4 depends on it.
19641 case " $CXX $CXXFLAGS " in
19642 *" -library=stlport4 "*)
19643 solaris_use_stlport4=yes
19645 esac
19647 if test "$solaris_use_stlport4" != yes; then
19648 postdeps_CXX='-library=Cstd -library=Crun'
19651 esac
19654 solaris*)
19655 case $cc_basename in
19656 CC*)
19657 # The more standards-conforming stlport4 library is
19658 # incompatible with the Cstd library. Avoid specifying
19659 # it if it's in CXXFLAGS. Ignore libCrun as
19660 # -library=stlport4 depends on it.
19661 case " $CXX $CXXFLAGS " in
19662 *" -library=stlport4 "*)
19663 solaris_use_stlport4=yes
19665 esac
19667 # Adding this requires a known-good setup of shared libraries for
19668 # Sun compiler versions before 5.6, else PIC objects from an old
19669 # archive will be linked into the output, leading to subtle bugs.
19670 if test "$solaris_use_stlport4" != yes; then
19671 postdeps_CXX='-library=Cstd -library=Crun'
19674 esac
19676 esac
19679 case " $postdeps_CXX " in
19680 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19681 esac
19682 compiler_lib_search_dirs_CXX=
19683 if test -n "${compiler_lib_search_path_CXX}"; then
19684 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19717 lt_prog_compiler_wl_CXX=
19718 lt_prog_compiler_pic_CXX=
19719 lt_prog_compiler_static_CXX=
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19722 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19724 # C++ specific cases for pic, static, wl, etc.
19725 if test "$GXX" = yes; then
19726 lt_prog_compiler_wl_CXX='-Wl,'
19727 lt_prog_compiler_static_CXX='-static'
19729 case $host_os in
19730 aix*)
19731 # All AIX code is PIC.
19732 if test "$host_cpu" = ia64; then
19733 # AIX 5 now supports IA64 processor
19734 lt_prog_compiler_static_CXX='-Bstatic'
19736 lt_prog_compiler_pic_CXX='-fPIC'
19739 amigaos*)
19740 case $host_cpu in
19741 powerpc)
19742 # see comment about AmigaOS4 .so support
19743 lt_prog_compiler_pic_CXX='-fPIC'
19745 m68k)
19746 # FIXME: we need at least 68020 code to build shared libraries, but
19747 # adding the `-m68020' flag to GCC prevents building anything better,
19748 # like `-m68040'.
19749 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19751 esac
19754 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19755 # PIC is the default for these OSes.
19757 mingw* | cygwin* | os2* | pw32* | cegcc*)
19758 # This hack is so that the source file can tell whether it is being
19759 # built for inclusion in a dll (and should export symbols for example).
19760 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19761 # (--disable-auto-import) libraries
19762 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19764 darwin* | rhapsody*)
19765 # PIC is the default on this platform
19766 # Common symbols not allowed in MH_DYLIB files
19767 lt_prog_compiler_pic_CXX='-fno-common'
19769 *djgpp*)
19770 # DJGPP does not support shared libraries at all
19771 lt_prog_compiler_pic_CXX=
19773 haiku*)
19774 # PIC is the default for Haiku.
19775 # The "-static" flag exists, but is broken.
19776 lt_prog_compiler_static_CXX=
19778 interix[3-9]*)
19779 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19780 # Instead, we relocate shared libraries at runtime.
19782 sysv4*MP*)
19783 if test -d /usr/nec; then
19784 lt_prog_compiler_pic_CXX=-Kconform_pic
19787 hpux*)
19788 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19789 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19790 # sets the default TLS model and affects inlining.
19791 case $host_cpu in
19792 hppa*64*)
19795 lt_prog_compiler_pic_CXX='-fPIC'
19797 esac
19799 *qnx* | *nto*)
19800 # QNX uses GNU C++, but need to define -shared option too, otherwise
19801 # it will coredump.
19802 lt_prog_compiler_pic_CXX='-fPIC -shared'
19805 lt_prog_compiler_pic_CXX='-fPIC'
19807 esac
19808 else
19809 case $host_os in
19810 aix[4-9]*)
19811 # All AIX code is PIC.
19812 if test "$host_cpu" = ia64; then
19813 # AIX 5 now supports IA64 processor
19814 lt_prog_compiler_static_CXX='-Bstatic'
19815 else
19816 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19819 chorus*)
19820 case $cc_basename in
19821 cxch68*)
19822 # Green Hills C++ Compiler
19823 # _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"
19825 esac
19827 dgux*)
19828 case $cc_basename in
19829 ec++*)
19830 lt_prog_compiler_pic_CXX='-KPIC'
19832 ghcx*)
19833 # Green Hills C++ Compiler
19834 lt_prog_compiler_pic_CXX='-pic'
19838 esac
19840 freebsd* | dragonfly*)
19841 # FreeBSD uses GNU C++
19843 hpux9* | hpux10* | hpux11*)
19844 case $cc_basename in
19845 CC*)
19846 lt_prog_compiler_wl_CXX='-Wl,'
19847 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19848 if test "$host_cpu" != ia64; then
19849 lt_prog_compiler_pic_CXX='+Z'
19852 aCC*)
19853 lt_prog_compiler_wl_CXX='-Wl,'
19854 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19855 case $host_cpu in
19856 hppa*64*|ia64*)
19857 # +Z the default
19860 lt_prog_compiler_pic_CXX='+Z'
19862 esac
19866 esac
19868 interix*)
19869 # This is c89, which is MS Visual C++ (no shared libs)
19870 # Anyone wants to do a port?
19872 irix5* | irix6* | nonstopux*)
19873 case $cc_basename in
19874 CC*)
19875 lt_prog_compiler_wl_CXX='-Wl,'
19876 lt_prog_compiler_static_CXX='-non_shared'
19877 # CC pic flag -KPIC is the default.
19881 esac
19883 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19884 case $cc_basename in
19885 KCC*)
19886 # KAI C++ Compiler
19887 lt_prog_compiler_wl_CXX='--backend -Wl,'
19888 lt_prog_compiler_pic_CXX='-fPIC'
19890 ecpc* )
19891 # old Intel C++ for x86_64 which still supported -KPIC.
19892 lt_prog_compiler_wl_CXX='-Wl,'
19893 lt_prog_compiler_pic_CXX='-KPIC'
19894 lt_prog_compiler_static_CXX='-static'
19896 icpc* )
19897 # Intel C++, used to be incompatible with GCC.
19898 # ICC 10 doesn't accept -KPIC any more.
19899 lt_prog_compiler_wl_CXX='-Wl,'
19900 lt_prog_compiler_pic_CXX='-fPIC'
19901 lt_prog_compiler_static_CXX='-static'
19903 pgCC* | pgcpp*)
19904 # Portland Group C++ compiler
19905 lt_prog_compiler_wl_CXX='-Wl,'
19906 lt_prog_compiler_pic_CXX='-fpic'
19907 lt_prog_compiler_static_CXX='-Bstatic'
19909 cxx*)
19910 # Compaq C++
19911 # Make sure the PIC flag is empty. It appears that all Alpha
19912 # Linux and Compaq Tru64 Unix objects are PIC.
19913 lt_prog_compiler_pic_CXX=
19914 lt_prog_compiler_static_CXX='-non_shared'
19916 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19917 # IBM XL 8.0, 9.0 on PPC and BlueGene
19918 lt_prog_compiler_wl_CXX='-Wl,'
19919 lt_prog_compiler_pic_CXX='-qpic'
19920 lt_prog_compiler_static_CXX='-qstaticlink'
19923 case `$CC -V 2>&1 | sed 5q` in
19924 *Sun\ C*)
19925 # Sun C++ 5.9
19926 lt_prog_compiler_pic_CXX='-KPIC'
19927 lt_prog_compiler_static_CXX='-Bstatic'
19928 lt_prog_compiler_wl_CXX='-Qoption ld '
19930 esac
19932 esac
19934 lynxos*)
19936 m88k*)
19938 mvs*)
19939 case $cc_basename in
19940 cxx*)
19941 lt_prog_compiler_pic_CXX='-W c,exportall'
19945 esac
19947 netbsd*)
19949 *qnx* | *nto*)
19950 # QNX uses GNU C++, but need to define -shared option too, otherwise
19951 # it will coredump.
19952 lt_prog_compiler_pic_CXX='-fPIC -shared'
19954 osf3* | osf4* | osf5*)
19955 case $cc_basename in
19956 KCC*)
19957 lt_prog_compiler_wl_CXX='--backend -Wl,'
19959 RCC*)
19960 # Rational C++ 2.4.1
19961 lt_prog_compiler_pic_CXX='-pic'
19963 cxx*)
19964 # Digital/Compaq C++
19965 lt_prog_compiler_wl_CXX='-Wl,'
19966 # Make sure the PIC flag is empty. It appears that all Alpha
19967 # Linux and Compaq Tru64 Unix objects are PIC.
19968 lt_prog_compiler_pic_CXX=
19969 lt_prog_compiler_static_CXX='-non_shared'
19973 esac
19975 psos*)
19977 solaris*)
19978 case $cc_basename in
19979 CC*)
19980 # Sun C++ 4.2, 5.x and Centerline C++
19981 lt_prog_compiler_pic_CXX='-KPIC'
19982 lt_prog_compiler_static_CXX='-Bstatic'
19983 lt_prog_compiler_wl_CXX='-Qoption ld '
19985 gcx*)
19986 # Green Hills C++ Compiler
19987 lt_prog_compiler_pic_CXX='-PIC'
19991 esac
19993 sunos4*)
19994 case $cc_basename in
19995 CC*)
19996 # Sun C++ 4.x
19997 lt_prog_compiler_pic_CXX='-pic'
19998 lt_prog_compiler_static_CXX='-Bstatic'
20000 lcc*)
20001 # Lucid
20002 lt_prog_compiler_pic_CXX='-pic'
20006 esac
20008 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20009 case $cc_basename in
20010 CC*)
20011 lt_prog_compiler_wl_CXX='-Wl,'
20012 lt_prog_compiler_pic_CXX='-KPIC'
20013 lt_prog_compiler_static_CXX='-Bstatic'
20015 esac
20017 tandem*)
20018 case $cc_basename in
20019 NCC*)
20020 # NonStop-UX NCC 3.20
20021 lt_prog_compiler_pic_CXX='-KPIC'
20025 esac
20027 vxworks*)
20030 lt_prog_compiler_can_build_shared_CXX=no
20032 esac
20035 case $host_os in
20036 # For platforms which do not support PIC, -DPIC is meaningless:
20037 *djgpp*)
20038 lt_prog_compiler_pic_CXX=
20041 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20043 esac
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20045 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20050 # Check to make sure the PIC flag actually works.
20052 if test -n "$lt_prog_compiler_pic_CXX"; then
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20054 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20055 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20056 $as_echo_n "(cached) " >&6
20057 else
20058 lt_cv_prog_compiler_pic_works_CXX=no
20059 ac_outfile=conftest.$ac_objext
20060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20061 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20062 # Insert the option either (1) after the last *FLAGS variable, or
20063 # (2) before a word containing "conftest.", or (3) at the end.
20064 # Note that $ac_compile itself does not contain backslashes and begins
20065 # with a dollar sign (not a hyphen), so the echo should work correctly.
20066 # The option is referenced via a variable to avoid confusing sed.
20067 lt_compile=`echo "$ac_compile" | $SED \
20068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20070 -e 's:$: $lt_compiler_flag:'`
20071 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20072 (eval "$lt_compile" 2>conftest.err)
20073 ac_status=$?
20074 cat conftest.err >&5
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 if (exit $ac_status) && test -s "$ac_outfile"; then
20077 # The compiler can only warn and ignore the option if not recognized
20078 # So say no if there are warnings other than the usual output.
20079 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20081 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20082 lt_cv_prog_compiler_pic_works_CXX=yes
20085 $RM conftest*
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20089 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20091 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20092 case $lt_prog_compiler_pic_CXX in
20093 "" | " "*) ;;
20094 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20095 esac
20096 else
20097 lt_prog_compiler_pic_CXX=
20098 lt_prog_compiler_can_build_shared_CXX=no
20106 # Check to make sure the static flag actually works.
20108 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20110 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20111 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20112 $as_echo_n "(cached) " >&6
20113 else
20114 lt_cv_prog_compiler_static_works_CXX=no
20115 save_LDFLAGS="$LDFLAGS"
20116 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20117 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20118 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20119 # The linker can only warn and ignore the option if not recognized
20120 # So say no if there are warnings
20121 if test -s conftest.err; then
20122 # Append any errors to the config.log.
20123 cat conftest.err 1>&5
20124 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20126 if diff conftest.exp conftest.er2 >/dev/null; then
20127 lt_cv_prog_compiler_static_works_CXX=yes
20129 else
20130 lt_cv_prog_compiler_static_works_CXX=yes
20133 $RM -r conftest*
20134 LDFLAGS="$save_LDFLAGS"
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20138 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20140 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20142 else
20143 lt_prog_compiler_static_CXX=
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20150 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20151 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20152 $as_echo_n "(cached) " >&6
20153 else
20154 lt_cv_prog_compiler_c_o_CXX=no
20155 $RM -r conftest 2>/dev/null
20156 mkdir conftest
20157 cd conftest
20158 mkdir out
20159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20161 lt_compiler_flag="-o out/conftest2.$ac_objext"
20162 # Insert the option either (1) after the last *FLAGS variable, or
20163 # (2) before a word containing "conftest.", or (3) at the end.
20164 # Note that $ac_compile itself does not contain backslashes and begins
20165 # with a dollar sign (not a hyphen), so the echo should work correctly.
20166 lt_compile=`echo "$ac_compile" | $SED \
20167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20169 -e 's:$: $lt_compiler_flag:'`
20170 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20171 (eval "$lt_compile" 2>out/conftest.err)
20172 ac_status=$?
20173 cat out/conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20176 then
20177 # The compiler can only warn and ignore the option if not recognized
20178 # So say no if there are warnings
20179 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20182 lt_cv_prog_compiler_c_o_CXX=yes
20185 chmod u+w . 2>&5
20186 $RM conftest*
20187 # SGI C++ compiler will create directory out/ii_files/ for
20188 # template instantiation
20189 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20190 $RM out/* && rmdir out
20191 cd ..
20192 $RM -r conftest
20193 $RM conftest*
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20197 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20202 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20203 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20204 $as_echo_n "(cached) " >&6
20205 else
20206 lt_cv_prog_compiler_c_o_CXX=no
20207 $RM -r conftest 2>/dev/null
20208 mkdir conftest
20209 cd conftest
20210 mkdir out
20211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20213 lt_compiler_flag="-o out/conftest2.$ac_objext"
20214 # Insert the option either (1) after the last *FLAGS variable, or
20215 # (2) before a word containing "conftest.", or (3) at the end.
20216 # Note that $ac_compile itself does not contain backslashes and begins
20217 # with a dollar sign (not a hyphen), so the echo should work correctly.
20218 lt_compile=`echo "$ac_compile" | $SED \
20219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20221 -e 's:$: $lt_compiler_flag:'`
20222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20223 (eval "$lt_compile" 2>out/conftest.err)
20224 ac_status=$?
20225 cat out/conftest.err >&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20228 then
20229 # The compiler can only warn and ignore the option if not recognized
20230 # So say no if there are warnings
20231 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20234 lt_cv_prog_compiler_c_o_CXX=yes
20237 chmod u+w . 2>&5
20238 $RM conftest*
20239 # SGI C++ compiler will create directory out/ii_files/ for
20240 # template instantiation
20241 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20242 $RM out/* && rmdir out
20243 cd ..
20244 $RM -r conftest
20245 $RM conftest*
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20249 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20254 hard_links="nottested"
20255 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20256 # do not overwrite the value of need_locks provided by the user
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20258 $as_echo_n "checking if we can lock with hard links... " >&6; }
20259 hard_links=yes
20260 $RM conftest*
20261 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20262 touch conftest.a
20263 ln conftest.a conftest.b 2>&5 || hard_links=no
20264 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20266 $as_echo "$hard_links" >&6; }
20267 if test "$hard_links" = no; then
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20269 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20270 need_locks=warn
20272 else
20273 need_locks=no
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20279 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20281 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20282 case $host_os in
20283 aix[4-9]*)
20284 # If we're using GNU nm, then we don't want the "-C" option.
20285 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20286 # Also, AIX nm treats weak defined symbols like other global defined
20287 # symbols, whereas GNU nm marks them as "W".
20288 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20289 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'
20290 else
20291 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'
20294 pw32*)
20295 export_symbols_cmds_CXX="$ltdll_cmds"
20297 cygwin* | mingw* | cegcc*)
20298 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'
20301 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20303 esac
20304 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20307 $as_echo "$ld_shlibs_CXX" >&6; }
20308 test "$ld_shlibs_CXX" = no && can_build_shared=no
20310 with_gnu_ld_CXX=$with_gnu_ld
20318 # Do we need to explicitly link libc?
20320 case "x$archive_cmds_need_lc_CXX" in
20321 x|xyes)
20322 # Assume -lc should be added
20323 archive_cmds_need_lc_CXX=yes
20325 if test "$enable_shared" = yes && test "$GCC" = yes; then
20326 case $archive_cmds_CXX in
20327 *'~'*)
20328 # FIXME: we may have to deal with multi-command sequences.
20330 '$CC '*)
20331 # Test whether the compiler implicitly links with -lc since on some
20332 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20333 # to ld, don't add -lc before -lgcc.
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20335 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20336 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20337 $as_echo_n "(cached) " >&6
20338 else
20339 $RM conftest*
20340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20343 (eval $ac_compile) 2>&5
20344 ac_status=$?
20345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20346 test $ac_status = 0; } 2>conftest.err; then
20347 soname=conftest
20348 lib=conftest
20349 libobjs=conftest.$ac_objext
20350 deplibs=
20351 wl=$lt_prog_compiler_wl_CXX
20352 pic_flag=$lt_prog_compiler_pic_CXX
20353 compiler_flags=-v
20354 linker_flags=-v
20355 verstring=
20356 output_objdir=.
20357 libname=conftest
20358 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20359 allow_undefined_flag_CXX=
20360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20361 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20362 ac_status=$?
20363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20364 test $ac_status = 0; }
20365 then
20366 lt_cv_archive_cmds_need_lc_CXX=no
20367 else
20368 lt_cv_archive_cmds_need_lc_CXX=yes
20370 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20371 else
20372 cat conftest.err 1>&5
20374 $RM conftest*
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20378 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20379 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20381 esac
20384 esac
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20450 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20452 library_names_spec=
20453 libname_spec='lib$name'
20454 soname_spec=
20455 shrext_cmds=".so"
20456 postinstall_cmds=
20457 postuninstall_cmds=
20458 finish_cmds=
20459 finish_eval=
20460 shlibpath_var=
20461 shlibpath_overrides_runpath=unknown
20462 version_type=none
20463 dynamic_linker="$host_os ld.so"
20464 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20465 need_lib_prefix=unknown
20466 hardcode_into_libs=no
20468 # when you set need_version to no, make sure it does not cause -set_version
20469 # flags to be left without arguments
20470 need_version=unknown
20472 case $host_os in
20473 aix3*)
20474 version_type=linux
20475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20476 shlibpath_var=LIBPATH
20478 # AIX 3 has no versioning support, so we append a major version to the name.
20479 soname_spec='${libname}${release}${shared_ext}$major'
20482 aix[4-9]*)
20483 version_type=linux
20484 need_lib_prefix=no
20485 need_version=no
20486 hardcode_into_libs=yes
20487 if test "$host_cpu" = ia64; then
20488 # AIX 5 supports IA64
20489 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20490 shlibpath_var=LD_LIBRARY_PATH
20491 else
20492 # With GCC up to 2.95.x, collect2 would create an import file
20493 # for dependence libraries. The import file would start with
20494 # the line `#! .'. This would cause the generated library to
20495 # depend on `.', always an invalid library. This was fixed in
20496 # development snapshots of GCC prior to 3.0.
20497 case $host_os in
20498 aix4 | aix4.[01] | aix4.[01].*)
20499 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20500 echo ' yes '
20501 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20503 else
20504 can_build_shared=no
20507 esac
20508 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20509 # soname into executable. Probably we can add versioning support to
20510 # collect2, so additional links can be useful in future.
20511 if test "$aix_use_runtimelinking" = yes; then
20512 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20513 # instead of lib<name>.a to let people know that these are not
20514 # typical AIX shared libraries.
20515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20516 else
20517 # We preserve .a as extension for shared libraries through AIX4.2
20518 # and later when we are not doing run time linking.
20519 library_names_spec='${libname}${release}.a $libname.a'
20520 soname_spec='${libname}${release}${shared_ext}$major'
20522 shlibpath_var=LIBPATH
20526 amigaos*)
20527 case $host_cpu in
20528 powerpc)
20529 # Since July 2007 AmigaOS4 officially supports .so libraries.
20530 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20533 m68k)
20534 library_names_spec='$libname.ixlibrary $libname.a'
20535 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20536 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'
20538 esac
20541 beos*)
20542 library_names_spec='${libname}${shared_ext}'
20543 dynamic_linker="$host_os ld.so"
20544 shlibpath_var=LIBRARY_PATH
20547 bsdi[45]*)
20548 version_type=linux
20549 need_version=no
20550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20551 soname_spec='${libname}${release}${shared_ext}$major'
20552 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20553 shlibpath_var=LD_LIBRARY_PATH
20554 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20555 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20556 # the default ld.so.conf also contains /usr/contrib/lib and
20557 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20558 # libtool to hard-code these into programs
20561 cygwin* | mingw* | pw32* | cegcc*)
20562 version_type=windows
20563 shrext_cmds=".dll"
20564 need_version=no
20565 need_lib_prefix=no
20567 case $GCC,$host_os in
20568 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20569 library_names_spec='$libname.dll.a'
20570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20571 postinstall_cmds='base_file=`basename \${file}`~
20572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20573 dldir=$destdir/`dirname \$dlpath`~
20574 test -d \$dldir || mkdir -p \$dldir~
20575 $install_prog $dir/$dlname \$dldir/$dlname~
20576 chmod a+x \$dldir/$dlname~
20577 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20578 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20580 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20581 dlpath=$dir/\$dldll~
20582 $RM \$dlpath'
20583 shlibpath_overrides_runpath=yes
20585 case $host_os in
20586 cygwin*)
20587 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20588 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20591 mingw* | cegcc*)
20592 # MinGW DLLs use traditional 'lib' prefix
20593 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20595 pw32*)
20596 # pw32 DLLs use 'pw' prefix rather than 'lib'
20597 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20599 esac
20603 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20605 esac
20606 dynamic_linker='Win32 ld.exe'
20607 # FIXME: first we should search . and the directory the executable is in
20608 shlibpath_var=PATH
20611 darwin* | rhapsody*)
20612 dynamic_linker="$host_os dyld"
20613 version_type=darwin
20614 need_lib_prefix=no
20615 need_version=no
20616 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20617 soname_spec='${libname}${release}${major}$shared_ext'
20618 shlibpath_overrides_runpath=yes
20619 shlibpath_var=DYLD_LIBRARY_PATH
20620 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20622 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20625 dgux*)
20626 version_type=linux
20627 need_lib_prefix=no
20628 need_version=no
20629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20630 soname_spec='${libname}${release}${shared_ext}$major'
20631 shlibpath_var=LD_LIBRARY_PATH
20634 freebsd* | dragonfly*)
20635 # DragonFly does not have aout. When/if they implement a new
20636 # versioning mechanism, adjust this.
20637 if test -x /usr/bin/objformat; then
20638 objformat=`/usr/bin/objformat`
20639 else
20640 case $host_os in
20641 freebsd[23].*) objformat=aout ;;
20642 *) objformat=elf ;;
20643 esac
20645 version_type=freebsd-$objformat
20646 case $version_type in
20647 freebsd-elf*)
20648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20649 need_version=no
20650 need_lib_prefix=no
20652 freebsd-*)
20653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20654 need_version=yes
20656 esac
20657 shlibpath_var=LD_LIBRARY_PATH
20658 case $host_os in
20659 freebsd2.*)
20660 shlibpath_overrides_runpath=yes
20662 freebsd3.[01]* | freebsdelf3.[01]*)
20663 shlibpath_overrides_runpath=yes
20664 hardcode_into_libs=yes
20666 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20667 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20668 shlibpath_overrides_runpath=no
20669 hardcode_into_libs=yes
20671 *) # from 4.6 on, and DragonFly
20672 shlibpath_overrides_runpath=yes
20673 hardcode_into_libs=yes
20675 esac
20678 gnu*)
20679 version_type=linux
20680 need_lib_prefix=no
20681 need_version=no
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20683 soname_spec='${libname}${release}${shared_ext}$major'
20684 shlibpath_var=LD_LIBRARY_PATH
20685 hardcode_into_libs=yes
20688 haiku*)
20689 version_type=linux
20690 need_lib_prefix=no
20691 need_version=no
20692 dynamic_linker="$host_os runtime_loader"
20693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20694 soname_spec='${libname}${release}${shared_ext}$major'
20695 shlibpath_var=LIBRARY_PATH
20696 shlibpath_overrides_runpath=yes
20697 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20698 hardcode_into_libs=yes
20701 hpux9* | hpux10* | hpux11*)
20702 # Give a soname corresponding to the major version so that dld.sl refuses to
20703 # link against other versions.
20704 version_type=sunos
20705 need_lib_prefix=no
20706 need_version=no
20707 case $host_cpu in
20708 ia64*)
20709 shrext_cmds='.so'
20710 hardcode_into_libs=yes
20711 dynamic_linker="$host_os dld.so"
20712 shlibpath_var=LD_LIBRARY_PATH
20713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20715 soname_spec='${libname}${release}${shared_ext}$major'
20716 if test "X$HPUX_IA64_MODE" = X32; then
20717 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20718 else
20719 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20723 hppa*64*)
20724 shrext_cmds='.sl'
20725 hardcode_into_libs=yes
20726 dynamic_linker="$host_os dld.sl"
20727 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20730 soname_spec='${libname}${release}${shared_ext}$major'
20731 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20735 shrext_cmds='.sl'
20736 dynamic_linker="$host_os dld.sl"
20737 shlibpath_var=SHLIB_PATH
20738 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20740 soname_spec='${libname}${release}${shared_ext}$major'
20742 esac
20743 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20744 postinstall_cmds='chmod 555 $lib'
20745 # or fails outright, so override atomically:
20746 install_override_mode=555
20749 interix[3-9]*)
20750 version_type=linux
20751 need_lib_prefix=no
20752 need_version=no
20753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20754 soname_spec='${libname}${release}${shared_ext}$major'
20755 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20756 shlibpath_var=LD_LIBRARY_PATH
20757 shlibpath_overrides_runpath=no
20758 hardcode_into_libs=yes
20761 irix5* | irix6* | nonstopux*)
20762 case $host_os in
20763 nonstopux*) version_type=nonstopux ;;
20765 if test "$lt_cv_prog_gnu_ld" = yes; then
20766 version_type=linux
20767 else
20768 version_type=irix
20769 fi ;;
20770 esac
20771 need_lib_prefix=no
20772 need_version=no
20773 soname_spec='${libname}${release}${shared_ext}$major'
20774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20775 case $host_os in
20776 irix5* | nonstopux*)
20777 libsuff= shlibsuff=
20780 case $LD in # libtool.m4 will add one of these switches to LD
20781 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20782 libsuff= shlibsuff= libmagic=32-bit;;
20783 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20784 libsuff=32 shlibsuff=N32 libmagic=N32;;
20785 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20786 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20787 *) libsuff= shlibsuff= libmagic=never-match;;
20788 esac
20790 esac
20791 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20792 shlibpath_overrides_runpath=no
20793 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20794 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20795 hardcode_into_libs=yes
20798 # No shared lib support for Linux oldld, aout, or coff.
20799 linux*oldld* | linux*aout* | linux*coff*)
20800 dynamic_linker=no
20803 # This must be Linux ELF.
20804 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20805 version_type=linux
20806 need_lib_prefix=no
20807 need_version=no
20808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20809 soname_spec='${libname}${release}${shared_ext}$major'
20810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20811 shlibpath_var=LD_LIBRARY_PATH
20812 shlibpath_overrides_runpath=no
20814 # Some binutils ld are patched to set DT_RUNPATH
20815 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20816 $as_echo_n "(cached) " >&6
20817 else
20818 lt_cv_shlibpath_overrides_runpath=no
20819 save_LDFLAGS=$LDFLAGS
20820 save_libdir=$libdir
20821 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20822 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20824 /* end confdefs.h. */
20827 main ()
20831 return 0;
20833 _ACEOF
20834 if ac_fn_cxx_try_link "$LINENO"; then :
20835 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20836 lt_cv_shlibpath_overrides_runpath=yes
20839 rm -f core conftest.err conftest.$ac_objext \
20840 conftest$ac_exeext conftest.$ac_ext
20841 LDFLAGS=$save_LDFLAGS
20842 libdir=$save_libdir
20846 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20848 # This implies no fast_install, which is unacceptable.
20849 # Some rework will be needed to allow for fast_install
20850 # before this can be enabled.
20851 hardcode_into_libs=yes
20853 # Append ld.so.conf contents to the search path
20854 if test -f /etc/ld.so.conf; then
20855 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' ' '`
20856 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20859 # We used to test for /lib/ld.so.1 and disable shared libraries on
20860 # powerpc, because MkLinux only supported shared libraries with the
20861 # GNU dynamic linker. Since this was broken with cross compilers,
20862 # most powerpc-linux boxes support dynamic linking these days and
20863 # people can always --disable-shared, the test was removed, and we
20864 # assume the GNU/Linux dynamic linker is in use.
20865 dynamic_linker='GNU/Linux ld.so'
20868 netbsd*)
20869 version_type=sunos
20870 need_lib_prefix=no
20871 need_version=no
20872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20875 dynamic_linker='NetBSD (a.out) ld.so'
20876 else
20877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20878 soname_spec='${libname}${release}${shared_ext}$major'
20879 dynamic_linker='NetBSD ld.elf_so'
20881 shlibpath_var=LD_LIBRARY_PATH
20882 shlibpath_overrides_runpath=yes
20883 hardcode_into_libs=yes
20886 newsos6)
20887 version_type=linux
20888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20889 shlibpath_var=LD_LIBRARY_PATH
20890 shlibpath_overrides_runpath=yes
20893 *nto* | *qnx*)
20894 version_type=qnx
20895 need_lib_prefix=no
20896 need_version=no
20897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20898 soname_spec='${libname}${release}${shared_ext}$major'
20899 shlibpath_var=LD_LIBRARY_PATH
20900 shlibpath_overrides_runpath=no
20901 hardcode_into_libs=yes
20902 dynamic_linker='ldqnx.so'
20905 openbsd*)
20906 version_type=sunos
20907 sys_lib_dlsearch_path_spec="/usr/lib"
20908 need_lib_prefix=no
20909 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20910 case $host_os in
20911 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20912 *) need_version=no ;;
20913 esac
20914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20916 shlibpath_var=LD_LIBRARY_PATH
20917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20918 case $host_os in
20919 openbsd2.[89] | openbsd2.[89].*)
20920 shlibpath_overrides_runpath=no
20923 shlibpath_overrides_runpath=yes
20925 esac
20926 else
20927 shlibpath_overrides_runpath=yes
20931 os2*)
20932 libname_spec='$name'
20933 shrext_cmds=".dll"
20934 need_lib_prefix=no
20935 library_names_spec='$libname${shared_ext} $libname.a'
20936 dynamic_linker='OS/2 ld.exe'
20937 shlibpath_var=LIBPATH
20940 osf3* | osf4* | osf5*)
20941 version_type=osf
20942 need_lib_prefix=no
20943 need_version=no
20944 soname_spec='${libname}${release}${shared_ext}$major'
20945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20946 shlibpath_var=LD_LIBRARY_PATH
20947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20948 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20951 rdos*)
20952 dynamic_linker=no
20955 solaris*)
20956 version_type=linux
20957 need_lib_prefix=no
20958 need_version=no
20959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20960 soname_spec='${libname}${release}${shared_ext}$major'
20961 shlibpath_var=LD_LIBRARY_PATH
20962 shlibpath_overrides_runpath=yes
20963 hardcode_into_libs=yes
20964 # ldd complains unless libraries are executable
20965 postinstall_cmds='chmod +x $lib'
20968 sunos4*)
20969 version_type=sunos
20970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20971 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20972 shlibpath_var=LD_LIBRARY_PATH
20973 shlibpath_overrides_runpath=yes
20974 if test "$with_gnu_ld" = yes; then
20975 need_lib_prefix=no
20977 need_version=yes
20980 sysv4 | sysv4.3*)
20981 version_type=linux
20982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20983 soname_spec='${libname}${release}${shared_ext}$major'
20984 shlibpath_var=LD_LIBRARY_PATH
20985 case $host_vendor in
20986 sni)
20987 shlibpath_overrides_runpath=no
20988 need_lib_prefix=no
20989 runpath_var=LD_RUN_PATH
20991 siemens)
20992 need_lib_prefix=no
20994 motorola)
20995 need_lib_prefix=no
20996 need_version=no
20997 shlibpath_overrides_runpath=no
20998 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21000 esac
21003 sysv4*MP*)
21004 if test -d /usr/nec ;then
21005 version_type=linux
21006 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21007 soname_spec='$libname${shared_ext}.$major'
21008 shlibpath_var=LD_LIBRARY_PATH
21012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21013 version_type=freebsd-elf
21014 need_lib_prefix=no
21015 need_version=no
21016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21017 soname_spec='${libname}${release}${shared_ext}$major'
21018 shlibpath_var=LD_LIBRARY_PATH
21019 shlibpath_overrides_runpath=yes
21020 hardcode_into_libs=yes
21021 if test "$with_gnu_ld" = yes; then
21022 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21023 else
21024 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21025 case $host_os in
21026 sco3.2v5*)
21027 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21029 esac
21031 sys_lib_dlsearch_path_spec='/usr/lib'
21034 tpf*)
21035 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21036 version_type=linux
21037 need_lib_prefix=no
21038 need_version=no
21039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21040 shlibpath_var=LD_LIBRARY_PATH
21041 shlibpath_overrides_runpath=no
21042 hardcode_into_libs=yes
21045 uts4*)
21046 version_type=linux
21047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21048 soname_spec='${libname}${release}${shared_ext}$major'
21049 shlibpath_var=LD_LIBRARY_PATH
21053 dynamic_linker=no
21055 esac
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21057 $as_echo "$dynamic_linker" >&6; }
21058 test "$dynamic_linker" = no && can_build_shared=no
21060 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21061 if test "$GCC" = yes; then
21062 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21065 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21066 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21068 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21069 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21110 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21111 hardcode_action_CXX=
21112 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21113 test -n "$runpath_var_CXX" ||
21114 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21116 # We can hardcode non-existent directories.
21117 if test "$hardcode_direct_CXX" != no &&
21118 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21119 # have to relink, otherwise we might link with an installed library
21120 # when we should be linking with a yet-to-be-installed one
21121 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21122 test "$hardcode_minus_L_CXX" != no; then
21123 # Linking always hardcodes the temporary library directory.
21124 hardcode_action_CXX=relink
21125 else
21126 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21127 hardcode_action_CXX=immediate
21129 else
21130 # We cannot hardcode anything, or else we can only hardcode existing
21131 # directories.
21132 hardcode_action_CXX=unsupported
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21135 $as_echo "$hardcode_action_CXX" >&6; }
21137 if test "$hardcode_action_CXX" = relink ||
21138 test "$inherit_rpath_CXX" = yes; then
21139 # Fast installation is not supported
21140 enable_fast_install=no
21141 elif test "$shlibpath_overrides_runpath" = yes ||
21142 test "$enable_shared" = no; then
21143 # Fast installation is not necessary
21144 enable_fast_install=needless
21153 fi # test -n "$compiler"
21155 CC=$lt_save_CC
21156 LDCXX=$LD
21157 LD=$lt_save_LD
21158 GCC=$lt_save_GCC
21159 with_gnu_ld=$lt_save_with_gnu_ld
21160 lt_cv_path_LDCXX=$lt_cv_path_LD
21161 lt_cv_path_LD=$lt_save_path_LD
21162 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21163 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21164 fi # test "$_lt_caught_CXX_error" != yes
21166 ac_ext=c
21167 ac_cpp='$CPP $CPPFLAGS'
21168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21187 # Only expand once:
21193 # Identify the assembler which will work hand-in-glove with the newly
21194 # built GCC, so that we can examine its features. This is the assembler
21195 # which will be driven by the driver program.
21197 # If build != host, and we aren't building gas in-tree, we identify a
21198 # build->target assembler and hope that it will have the same features
21199 # as the host->target assembler we'll be using.
21200 gcc_cv_gas_major_version=
21201 gcc_cv_gas_minor_version=
21202 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21204 if test "${gcc_cv_as+set}" = set; then :
21206 else
21208 if test -x "$DEFAULT_ASSEMBLER"; then
21209 gcc_cv_as="$DEFAULT_ASSEMBLER"
21210 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21211 && test -f ../gas/Makefile \
21212 && test x$build = x$host; then
21213 gcc_cv_as=../gas/as-new$build_exeext
21214 elif test -x as$build_exeext; then
21215 # Build using assembler in the current directory.
21216 gcc_cv_as=./as$build_exeext
21217 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21218 gcc_cv_as="$AS_FOR_TARGET"
21219 else
21220 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21221 set dummy $AS_FOR_TARGET; ac_word=$2
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21223 $as_echo_n "checking for $ac_word... " >&6; }
21224 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21225 $as_echo_n "(cached) " >&6
21226 else
21227 case $gcc_cv_as in
21228 [\\/]* | ?:[\\/]*)
21229 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21233 for as_dir in $PATH
21235 IFS=$as_save_IFS
21236 test -z "$as_dir" && as_dir=.
21237 for ac_exec_ext in '' $ac_executable_extensions; do
21238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21239 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21241 break 2
21243 done
21244 done
21245 IFS=$as_save_IFS
21248 esac
21250 gcc_cv_as=$ac_cv_path_gcc_cv_as
21251 if test -n "$gcc_cv_as"; then
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21253 $as_echo "$gcc_cv_as" >&6; }
21254 else
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21256 $as_echo "no" >&6; }
21263 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21265 case "$ORIGINAL_AS_FOR_TARGET" in
21266 ./as | ./as$build_exeext) ;;
21267 *) ac_config_files="$ac_config_files as:exec-tool.in"
21269 esac
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21272 $as_echo_n "checking what assembler to use... " >&6; }
21273 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21274 # Single tree build which includes gas. We want to prefer it
21275 # over whatever linker top-level may have detected, since
21276 # we'll use what we're building after installation anyway.
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21278 $as_echo "newly built gas" >&6; }
21279 in_tree_gas=yes
21280 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21281 for f in $gcc_cv_as_bfd_srcdir/configure \
21282 $gcc_cv_as_gas_srcdir/configure \
21283 $gcc_cv_as_gas_srcdir/configure.in \
21284 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21285 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21286 if test x$gcc_cv_gas_version != x; then
21287 break
21289 done
21290 case $gcc_cv_gas_version in
21291 VERSION=[0-9]*) ;;
21292 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21293 esac
21294 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21295 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21296 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21297 case $gcc_cv_gas_patch_version in
21298 "") gcc_cv_gas_patch_version="0" ;;
21299 esac
21300 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21301 + $gcc_cv_gas_minor_version \) \* 1000 \
21302 + $gcc_cv_gas_patch_version`
21304 in_tree_gas_is_elf=no
21305 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21306 || (grep 'obj_format = multi' ../gas/Makefile \
21307 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21308 then
21309 in_tree_gas_is_elf=yes
21311 else
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21313 $as_echo "$gcc_cv_as" >&6; }
21314 in_tree_gas=no
21317 # Identify the linker which will work hand-in-glove with the newly
21318 # built GCC, so that we can examine its features. This is the linker
21319 # which will be driven by the driver program.
21321 # If build != host, and we aren't building gas in-tree, we identify a
21322 # build->target linker and hope that it will have the same features
21323 # as the host->target linker we'll be using.
21324 gcc_cv_gld_major_version=
21325 gcc_cv_gld_minor_version=
21326 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21327 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21329 if test "${gcc_cv_ld+set}" = set; then :
21331 else
21333 if test -x "$DEFAULT_LINKER"; then
21334 gcc_cv_ld="$DEFAULT_LINKER"
21335 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21336 && test -f ../ld/Makefile \
21337 && test x$build = x$host; then
21338 gcc_cv_ld=../ld/ld-new$build_exeext
21339 elif test -x collect-ld$build_exeext; then
21340 # Build using linker in the current directory.
21341 gcc_cv_ld=./collect-ld$build_exeext
21342 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21343 gcc_cv_ld="$LD_FOR_TARGET"
21344 else
21345 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21346 set dummy $LD_FOR_TARGET; ac_word=$2
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21348 $as_echo_n "checking for $ac_word... " >&6; }
21349 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21350 $as_echo_n "(cached) " >&6
21351 else
21352 case $gcc_cv_ld in
21353 [\\/]* | ?:[\\/]*)
21354 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21358 for as_dir in $PATH
21360 IFS=$as_save_IFS
21361 test -z "$as_dir" && as_dir=.
21362 for ac_exec_ext in '' $ac_executable_extensions; do
21363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21364 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21366 break 2
21368 done
21369 done
21370 IFS=$as_save_IFS
21373 esac
21375 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21376 if test -n "$gcc_cv_ld"; then
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21378 $as_echo "$gcc_cv_ld" >&6; }
21379 else
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21381 $as_echo "no" >&6; }
21388 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21389 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21390 # if the PLUGIN_LD is set ld-new, just have it as ld
21391 # as that is the installed named.
21392 if test x$PLUGIN_LD_SUFFIX = xld-new \
21393 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21394 PLUGIN_LD_SUFFIX=ld
21397 # Check whether --with-plugin-ld was given.
21398 if test "${with_plugin_ld+set}" = set; then :
21399 withval=$with_plugin_ld; if test x"$withval" != x; then
21400 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21401 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21407 cat >>confdefs.h <<_ACEOF
21408 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21409 _ACEOF
21412 # Check to see if we are using gold instead of ld
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21414 $as_echo_n "checking whether we are using gold... " >&6; }
21415 ld_is_gold=no
21416 if test x$gcc_cv_ld != x; then
21417 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21418 | grep "GNU gold" > /dev/null; then
21419 ld_is_gold=yes
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21423 $as_echo "$ld_is_gold" >&6; }
21425 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21427 case "$ORIGINAL_LD_FOR_TARGET" in
21428 ./collect-ld | ./collect-ld$build_exeext) ;;
21429 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21431 esac
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21434 $as_echo_n "checking what linker to use... " >&6; }
21435 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21436 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21437 # Single tree build which includes ld. We want to prefer it
21438 # over whatever linker top-level may have detected, since
21439 # we'll use what we're building after installation anyway.
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21441 $as_echo "newly built ld" >&6; }
21442 in_tree_ld=yes
21443 in_tree_ld_is_elf=no
21444 if (grep 'EMUL = .*elf' ../ld/Makefile \
21445 || grep 'EMUL = .*linux' ../ld/Makefile \
21446 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21447 in_tree_ld_is_elf=yes
21448 elif test "$ld_is_gold" = yes; then
21449 in_tree_ld_is_elf=yes
21451 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
21453 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21454 if test x$gcc_cv_gld_version != x; then
21455 break
21457 done
21458 case $gcc_cv_gld_version in
21459 VERSION=[0-9]*) ;;
21460 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21461 esac
21462 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21463 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21464 else
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21466 $as_echo "$gcc_cv_ld" >&6; }
21467 in_tree_ld=no
21470 # Figure out what nm we will be using.
21471 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21472 if test "${gcc_cv_nm+set}" = set; then :
21474 else
21476 if test -f $gcc_cv_binutils_srcdir/configure.in \
21477 && test -f ../binutils/Makefile \
21478 && test x$build = x$host; then
21479 gcc_cv_nm=../binutils/nm-new$build_exeext
21480 elif test -x nm$build_exeext; then
21481 gcc_cv_nm=./nm$build_exeext
21482 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21483 gcc_cv_nm="$NM_FOR_TARGET"
21484 else
21485 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21486 set dummy $NM_FOR_TARGET; ac_word=$2
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21488 $as_echo_n "checking for $ac_word... " >&6; }
21489 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21490 $as_echo_n "(cached) " >&6
21491 else
21492 case $gcc_cv_nm in
21493 [\\/]* | ?:[\\/]*)
21494 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21498 for as_dir in $PATH
21500 IFS=$as_save_IFS
21501 test -z "$as_dir" && as_dir=.
21502 for ac_exec_ext in '' $ac_executable_extensions; do
21503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21504 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21506 break 2
21508 done
21509 done
21510 IFS=$as_save_IFS
21513 esac
21515 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21516 if test -n "$gcc_cv_nm"; then
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21518 $as_echo "$gcc_cv_nm" >&6; }
21519 else
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21521 $as_echo "no" >&6; }
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21529 $as_echo_n "checking what nm to use... " >&6; }
21530 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21531 # Single tree build which includes binutils.
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21533 $as_echo "newly built nm" >&6; }
21534 in_tree_nm=yes
21535 else
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21537 $as_echo "$gcc_cv_nm" >&6; }
21538 in_tree_nm=no
21541 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21543 case "$ORIGINAL_NM_FOR_TARGET" in
21544 ./nm | ./nm$build_exeext) ;;
21545 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21547 esac
21550 # Figure out what objdump we will be using.
21551 if test "${gcc_cv_objdump+set}" = set; then :
21553 else
21555 if test -f $gcc_cv_binutils_srcdir/configure.in \
21556 && test -f ../binutils/Makefile \
21557 && test x$build = x$host; then
21558 # Single tree build which includes binutils.
21559 gcc_cv_objdump=../binutils/objdump$build_exeext
21560 elif test -x objdump$build_exeext; then
21561 gcc_cv_objdump=./objdump$build_exeext
21562 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21563 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21564 else
21565 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21566 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21568 $as_echo_n "checking for $ac_word... " >&6; }
21569 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21570 $as_echo_n "(cached) " >&6
21571 else
21572 case $gcc_cv_objdump in
21573 [\\/]* | ?:[\\/]*)
21574 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21578 for as_dir in $PATH
21580 IFS=$as_save_IFS
21581 test -z "$as_dir" && as_dir=.
21582 for ac_exec_ext in '' $ac_executable_extensions; do
21583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21584 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21586 break 2
21588 done
21589 done
21590 IFS=$as_save_IFS
21593 esac
21595 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21596 if test -n "$gcc_cv_objdump"; then
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21598 $as_echo "$gcc_cv_objdump" >&6; }
21599 else
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21601 $as_echo "no" >&6; }
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21609 $as_echo_n "checking what objdump to use... " >&6; }
21610 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21611 # Single tree build which includes binutils.
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21613 $as_echo "newly built objdump" >&6; }
21614 elif test x$gcc_cv_objdump = x; then
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21616 $as_echo "not found" >&6; }
21617 else
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21619 $as_echo "$gcc_cv_objdump" >&6; }
21622 # Figure out what readelf we will be using.
21623 if test "${gcc_cv_readelf+set}" = set; then :
21625 else
21627 if test -f $gcc_cv_binutils_srcdir/configure.in \
21628 && test -f ../binutils/Makefile \
21629 && test x$build = x$host; then
21630 # Single tree build which includes binutils.
21631 gcc_cv_readelf=../binutils/readelf$build_exeext
21632 elif test -x readelf$build_exeext; then
21633 gcc_cv_readelf=./readelf$build_exeext
21634 else
21635 # Extract the first word of "readelf", so it can be a program name with args.
21636 set dummy readelf; ac_word=$2
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21638 $as_echo_n "checking for $ac_word... " >&6; }
21639 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21640 $as_echo_n "(cached) " >&6
21641 else
21642 case $gcc_cv_readelf in
21643 [\\/]* | ?:[\\/]*)
21644 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21648 for as_dir in $PATH
21650 IFS=$as_save_IFS
21651 test -z "$as_dir" && as_dir=.
21652 for ac_exec_ext in '' $ac_executable_extensions; do
21653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21654 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21656 break 2
21658 done
21659 done
21660 IFS=$as_save_IFS
21663 esac
21665 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21666 if test -n "$gcc_cv_readelf"; then
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21668 $as_echo "$gcc_cv_readelf" >&6; }
21669 else
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21671 $as_echo "no" >&6; }
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21679 $as_echo_n "checking what readelf to use... " >&6; }
21680 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21681 # Single tree build which includes binutils.
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21683 $as_echo "newly built readelf" >&6; }
21684 elif test x$gcc_cv_readelf = x; then
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21686 $as_echo "not found" >&6; }
21687 else
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21689 $as_echo "$gcc_cv_readelf" >&6; }
21692 # Figure out what assembler alignment features are present.
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21694 $as_echo_n "checking assembler flags... " >&6; }
21695 if test "${gcc_cv_as_flags+set}" = set; then :
21696 $as_echo_n "(cached) " >&6
21697 else
21698 case "$target" in
21699 i[34567]86-*-linux*)
21700 gcc_cv_as_flags="--32"
21702 powerpc*-*-darwin*)
21703 gcc_cv_as_flags="-arch ppc"
21706 gcc_cv_as_flags=" "
21708 esac
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21711 $as_echo "$gcc_cv_as_flags" >&6; }
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21714 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21715 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21716 $as_echo_n "(cached) " >&6
21717 else
21718 gcc_cv_as_balign_and_p2align=no
21719 if test $in_tree_gas = yes; then
21720 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21721 then gcc_cv_as_balign_and_p2align=yes
21723 elif test x$gcc_cv_as != x; then
21724 $as_echo '.balign 4
21725 .p2align 2' > conftest.s
21726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21728 (eval $ac_try) 2>&5
21729 ac_status=$?
21730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21731 test $ac_status = 0; }; }
21732 then
21733 gcc_cv_as_balign_and_p2align=yes
21734 else
21735 echo "configure: failed program was" >&5
21736 cat conftest.s >&5
21738 rm -f conftest.o conftest.s
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21742 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21743 if test $gcc_cv_as_balign_and_p2align = yes; then
21745 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21750 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21751 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21752 $as_echo_n "(cached) " >&6
21753 else
21754 gcc_cv_as_max_skip_p2align=no
21755 if test $in_tree_gas = yes; then
21756 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21757 then gcc_cv_as_max_skip_p2align=yes
21759 elif test x$gcc_cv_as != x; then
21760 $as_echo '.p2align 4,,7' > conftest.s
21761 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21763 (eval $ac_try) 2>&5
21764 ac_status=$?
21765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21766 test $ac_status = 0; }; }
21767 then
21768 gcc_cv_as_max_skip_p2align=yes
21769 else
21770 echo "configure: failed program was" >&5
21771 cat conftest.s >&5
21773 rm -f conftest.o conftest.s
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21777 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21778 if test $gcc_cv_as_max_skip_p2align = yes; then
21780 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21785 $as_echo_n "checking assembler for .literal16... " >&6; }
21786 if test "${gcc_cv_as_literal16+set}" = set; then :
21787 $as_echo_n "(cached) " >&6
21788 else
21789 gcc_cv_as_literal16=no
21790 if test $in_tree_gas = yes; then
21791 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21792 then gcc_cv_as_literal16=yes
21794 elif test x$gcc_cv_as != x; then
21795 $as_echo '.literal16' > conftest.s
21796 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21798 (eval $ac_try) 2>&5
21799 ac_status=$?
21800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21801 test $ac_status = 0; }; }
21802 then
21803 gcc_cv_as_literal16=yes
21804 else
21805 echo "configure: failed program was" >&5
21806 cat conftest.s >&5
21808 rm -f conftest.o conftest.s
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21812 $as_echo "$gcc_cv_as_literal16" >&6; }
21813 if test $gcc_cv_as_literal16 = yes; then
21815 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21820 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21821 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21822 $as_echo_n "(cached) " >&6
21823 else
21824 gcc_cv_as_subsection_m1=no
21825 if test $in_tree_gas = yes; then
21826 if test $in_tree_gas_is_elf = yes \
21827 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21828 then gcc_cv_as_subsection_m1=yes
21830 elif test x$gcc_cv_as != x; then
21831 $as_echo 'conftest_label1: .word 0
21832 .subsection -1
21833 conftest_label2: .word 0
21834 .previous' > conftest.s
21835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21837 (eval $ac_try) 2>&5
21838 ac_status=$?
21839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21840 test $ac_status = 0; }; }
21841 then
21842 if test x$gcc_cv_nm != x; then
21843 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21844 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21845 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21846 then :
21847 else gcc_cv_as_subsection_m1=yes
21849 rm -f conftest.nm1 conftest.nm2
21851 else
21852 echo "configure: failed program was" >&5
21853 cat conftest.s >&5
21855 rm -f conftest.o conftest.s
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21859 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21860 if test $gcc_cv_as_subsection_m1 = yes; then
21862 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21867 $as_echo_n "checking assembler for .weak... " >&6; }
21868 if test "${gcc_cv_as_weak+set}" = set; then :
21869 $as_echo_n "(cached) " >&6
21870 else
21871 gcc_cv_as_weak=no
21872 if test $in_tree_gas = yes; then
21873 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21874 then gcc_cv_as_weak=yes
21876 elif test x$gcc_cv_as != x; then
21877 $as_echo ' .weak foobar' > conftest.s
21878 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21880 (eval $ac_try) 2>&5
21881 ac_status=$?
21882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21883 test $ac_status = 0; }; }
21884 then
21885 gcc_cv_as_weak=yes
21886 else
21887 echo "configure: failed program was" >&5
21888 cat conftest.s >&5
21890 rm -f conftest.o conftest.s
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21894 $as_echo "$gcc_cv_as_weak" >&6; }
21895 if test $gcc_cv_as_weak = yes; then
21897 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21902 $as_echo_n "checking assembler for .weakref... " >&6; }
21903 if test "${gcc_cv_as_weakref+set}" = set; then :
21904 $as_echo_n "(cached) " >&6
21905 else
21906 gcc_cv_as_weakref=no
21907 if test $in_tree_gas = yes; then
21908 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21909 then gcc_cv_as_weakref=yes
21911 elif test x$gcc_cv_as != x; then
21912 $as_echo ' .weakref foobar, barfnot' > conftest.s
21913 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21915 (eval $ac_try) 2>&5
21916 ac_status=$?
21917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21918 test $ac_status = 0; }; }
21919 then
21920 gcc_cv_as_weakref=yes
21921 else
21922 echo "configure: failed program was" >&5
21923 cat conftest.s >&5
21925 rm -f conftest.o conftest.s
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21929 $as_echo "$gcc_cv_as_weakref" >&6; }
21930 if test $gcc_cv_as_weakref = yes; then
21932 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21937 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21938 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21939 $as_echo_n "(cached) " >&6
21940 else
21941 gcc_cv_as_nsubspa_comdat=no
21942 if test $in_tree_gas = yes; then
21943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21944 then gcc_cv_as_nsubspa_comdat=yes
21946 elif test x$gcc_cv_as != x; then
21947 $as_echo ' .SPACE $TEXT$
21948 .NSUBSPA $CODE$,COMDAT' > conftest.s
21949 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21951 (eval $ac_try) 2>&5
21952 ac_status=$?
21953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21954 test $ac_status = 0; }; }
21955 then
21956 gcc_cv_as_nsubspa_comdat=yes
21957 else
21958 echo "configure: failed program was" >&5
21959 cat conftest.s >&5
21961 rm -f conftest.o conftest.s
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21965 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21966 if test $gcc_cv_as_nsubspa_comdat = yes; then
21968 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21972 # .hidden needs to be supported in both the assembler and the linker,
21973 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21974 # This is irritatingly difficult to feature test for; we have to check the
21975 # date string after the version number. If we've got an in-tree
21976 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21977 # to be safe.
21978 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21980 $as_echo_n "checking assembler for .hidden... " >&6; }
21981 if test "${gcc_cv_as_hidden+set}" = set; then :
21982 $as_echo_n "(cached) " >&6
21983 else
21984 gcc_cv_as_hidden=no
21985 if test $in_tree_gas = yes; then
21986 if test $in_tree_gas_is_elf = yes \
21987 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21988 then gcc_cv_as_hidden=yes
21990 elif test x$gcc_cv_as != x; then
21991 $as_echo ' .hidden foobar
21992 foobar:' > conftest.s
21993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21995 (eval $ac_try) 2>&5
21996 ac_status=$?
21997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21998 test $ac_status = 0; }; }
21999 then
22001 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22002 # STV_HIDDEN, so disable .hidden support if so.
22003 case "${target}" in
22004 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22005 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22006 cat > conftest.s <<EOF
22007 .globl hidden
22008 .hidden hidden
22009 hidden:
22010 .globl default
22011 .set default,hidden
22013 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22014 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22015 grep '\.hidden default' > /dev/null; then
22016 gcc_cv_as_hidden=no
22017 else
22018 gcc_cv_as_hidden=yes
22020 else
22021 # Assume bug is present if objdump is missing.
22022 gcc_cv_as_hidden=no
22026 gcc_cv_as_hidden=yes
22028 esac
22029 else
22030 echo "configure: failed program was" >&5
22031 cat conftest.s >&5
22033 rm -f conftest.o conftest.s
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22037 $as_echo "$gcc_cv_as_hidden" >&6; }
22039 case "${target}" in
22040 *-*-darwin*)
22041 # Darwin as has some visibility support, though with a different syntax.
22042 gcc_cv_as_hidden=yes
22044 esac
22046 # gnu_indirect_function type is an extension proposed at
22047 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22048 # selection of function implementation
22049 # Check whether --enable-gnu-indirect-function was given.
22050 if test "${enable_gnu_indirect_function+set}" = set; then :
22051 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22052 yes | no) ;;
22053 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22054 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22055 esac
22056 else
22057 enable_gnu_indirect_function="$default_gnu_indirect_function"
22061 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22063 cat >>confdefs.h <<_ACEOF
22064 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22065 _ACEOF
22069 if test $in_tree_ld != yes ; then
22070 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22071 if echo "$ld_ver" | grep GNU > /dev/null; then
22072 if test x"$ld_is_gold" = xyes; then
22073 # GNU gold --version looks like this:
22075 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22077 # We extract the binutils version which is more familiar and specific
22078 # than the gold version.
22079 ld_vers=`echo $ld_ver | sed -n \
22080 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22081 else
22082 # GNU ld --version looks like this:
22084 # GNU ld (GNU Binutils) 2.21.51.20110225
22085 ld_vers=`echo $ld_ver | sed -n \
22086 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22088 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'`
22089 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22090 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22091 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22092 else
22093 case "${target}" in
22094 *-*-solaris2*)
22095 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22096 # format.
22098 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22099 # /usr/ccs/bin/ld has been configured.
22100 ld_ver=`$gcc_cv_ld -V 2>&1`
22101 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22102 ld_vers=`echo $ld_ver | sed -n \
22103 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22104 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22105 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22108 esac
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22113 $as_echo_n "checking linker for .hidden support... " >&6; }
22114 if test "${gcc_cv_ld_hidden+set}" = set; then :
22115 $as_echo_n "(cached) " >&6
22116 else
22117 if test $in_tree_ld = yes ; then
22118 gcc_cv_ld_hidden=no
22119 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 \
22120 && test $in_tree_ld_is_elf = yes; then
22121 gcc_cv_ld_hidden=yes
22123 else
22124 gcc_cv_ld_hidden=yes
22125 if test x"$ld_is_gold" = xyes; then
22127 elif echo "$ld_ver" | grep GNU > /dev/null; then
22128 case "${target}" in
22129 mmix-knuth-mmixware)
22130 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22131 gcc_cv_ld_hidden=no
22133 esac
22134 if test 0"$ld_date" -lt 20020404; then
22135 if test -n "$ld_date"; then
22136 # If there was date string, but was earlier than 2002-04-04, fail
22137 gcc_cv_ld_hidden=no
22138 elif test -z "$ld_vers"; then
22139 # If there was no date string nor ld version number, something is wrong
22140 gcc_cv_ld_hidden=no
22141 else
22142 test -z "$ld_vers_patch" && ld_vers_patch=0
22143 if test "$ld_vers_major" -lt 2; then
22144 gcc_cv_ld_hidden=no
22145 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22146 gcc_cv_ld_hidden="no"
22147 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22148 gcc_cv_ld_hidden=no
22152 else
22153 case "${target}" in
22154 *-*-darwin*)
22155 # Darwin ld has some visibility support.
22156 gcc_cv_ld_hidden=yes
22158 hppa64*-*-hpux* | ia64*-*-hpux*)
22159 gcc_cv_ld_hidden=yes
22161 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22162 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22163 # .symbolic was only added in Solaris 9 12/02.
22164 gcc_cv_ld_hidden=yes
22167 gcc_cv_ld_hidden=no
22169 esac
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22174 $as_echo "$gcc_cv_ld_hidden" >&6; }
22175 libgcc_visibility=no
22178 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22179 libgcc_visibility=yes
22181 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22186 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22187 gcc_cv_ld_ro_rw_mix=unknown
22188 if test $in_tree_ld = yes ; then
22189 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 \
22190 && test $in_tree_ld_is_elf = yes; then
22191 gcc_cv_ld_ro_rw_mix=read-write
22193 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22194 echo '.section myfoosect, "a"' > conftest1.s
22195 echo '.section myfoosect, "aw"' > conftest2.s
22196 echo '.byte 1' >> conftest2.s
22197 echo '.section myfoosect, "a"' > conftest3.s
22198 echo '.byte 0' >> conftest3.s
22199 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22200 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22201 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22202 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22203 conftest2.o conftest3.o > /dev/null 2>&1; then
22204 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22205 | sed -e '/myfoosect/!d' -e N`
22206 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22207 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22208 gcc_cv_ld_ro_rw_mix=read-only
22209 else
22210 gcc_cv_ld_ro_rw_mix=read-write
22214 rm -f conftest.* conftest[123].*
22216 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22218 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22222 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22224 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22225 case "${target}" in
22226 *-*-solaris2*)
22228 # Solaris 2 ld -V output looks like this for a regular version:
22230 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22232 # but test versions add stuff at the end:
22234 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22236 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22237 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22238 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22239 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22240 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22241 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22244 esac
22247 # Check whether --enable-initfini-array was given.
22248 if test "${enable_initfini_array+set}" = set; then :
22249 enableval=$enable_initfini_array;
22250 else
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22253 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22254 if test "${gcc_cv_initfini_array+set}" = set; then :
22255 $as_echo_n "(cached) " >&6
22256 else
22257 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22258 case "${target}" in
22259 ia64-*)
22260 if test "$cross_compiling" = yes; then :
22261 gcc_cv_initfini_array=no
22262 else
22263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22264 /* end confdefs.h. */
22266 #ifndef __ELF__
22267 #error Not an ELF OS
22268 #endif
22269 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22270 if it can be used. */
22271 static int x = -1;
22272 int main (void) { return x; }
22273 int foo (void) { x = 0; }
22274 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22276 _ACEOF
22277 if ac_fn_c_try_run "$LINENO"; then :
22278 gcc_cv_initfini_array=yes
22279 else
22280 gcc_cv_initfini_array=no
22282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22283 conftest.$ac_objext conftest.beam conftest.$ac_ext
22287 gcc_cv_initfini_array=no
22288 if test $in_tree_ld = yes ; then
22289 if test "$gcc_cv_gld_major_version" -eq 2 \
22290 -a "$gcc_cv_gld_minor_version" -ge 22 \
22291 -o "$gcc_cv_gld_major_version" -gt 2 \
22292 && test $in_tree_ld_is_elf = yes; then
22293 gcc_cv_initfini_array=yes
22295 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22296 cat > conftest.s <<\EOF
22297 .section .dtors,"a",%progbits
22298 .balign 4
22299 .byte 'A', 'A', 'A', 'A'
22300 .section .ctors,"a",%progbits
22301 .balign 4
22302 .byte 'B', 'B', 'B', 'B'
22303 .section .fini_array.65530,"a",%progbits
22304 .balign 4
22305 .byte 'C', 'C', 'C', 'C'
22306 .section .init_array.65530,"a",%progbits
22307 .balign 4
22308 .byte 'D', 'D', 'D', 'D'
22309 .section .dtors.64528,"a",%progbits
22310 .balign 4
22311 .byte 'E', 'E', 'E', 'E'
22312 .section .ctors.64528,"a",%progbits
22313 .balign 4
22314 .byte 'F', 'F', 'F', 'F'
22315 .section .fini_array.01005,"a",%progbits
22316 .balign 4
22317 .byte 'G', 'G', 'G', 'G'
22318 .section .init_array.01005,"a",%progbits
22319 .balign 4
22320 .byte 'H', 'H', 'H', 'H'
22321 .text
22322 .globl _start
22323 _start:
22325 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22326 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22327 && $gcc_cv_objdump -s -j .init_array conftest \
22328 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22329 && $gcc_cv_objdump -s -j .fini_array conftest \
22330 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22331 gcc_cv_initfini_array=yes
22333 rm -f conftest conftest.*
22335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22336 /* end confdefs.h. */
22338 #ifndef __ELF__
22339 # error Not an ELF OS
22340 #endif
22341 #include <stdlib.h>
22342 #if defined __GLIBC_PREREQ
22343 # if __GLIBC_PREREQ (2, 4)
22344 # else
22345 # error GLIBC 2.4 required
22346 # endif
22347 #else
22348 # if defined __sun__ && defined __svr4__
22349 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22350 # else
22351 # error The C library not known to support .init_array/.fini_array
22352 # endif
22353 #endif
22355 _ACEOF
22356 if ac_fn_c_try_cpp "$LINENO"; then :
22358 else
22359 gcc_cv_initfini_array=no
22361 rm -f conftest.err conftest.$ac_ext;;
22362 esac
22363 else
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22365 $as_echo_n "checking cross compile... guessing... " >&6; }
22366 gcc_cv_initfini_array=no
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22370 $as_echo "$gcc_cv_initfini_array" >&6; }
22371 enable_initfini_array=$gcc_cv_initfini_array
22375 if test $enable_initfini_array = yes; then
22377 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22381 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22383 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22384 if test "${gcc_cv_as_leb128+set}" = set; then :
22385 $as_echo_n "(cached) " >&6
22386 else
22387 gcc_cv_as_leb128=no
22388 if test $in_tree_gas = yes; then
22389 if test $in_tree_gas_is_elf = yes \
22390 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22391 then gcc_cv_as_leb128=yes
22393 elif test x$gcc_cv_as != x; then
22394 $as_echo ' .data
22395 .uleb128 L2 - L1
22397 .uleb128 1280
22398 .sleb128 -1010
22399 L2:' > conftest.s
22400 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22402 (eval $ac_try) 2>&5
22403 ac_status=$?
22404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22405 test $ac_status = 0; }; }
22406 then
22407 # GAS versions before 2.11 do not support uleb128,
22408 # despite appearing to.
22409 # ??? There exists an elf-specific test that will crash
22410 # the assembler. Perhaps it's better to figure out whether
22411 # arbitrary sections are supported and try the test.
22412 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22413 if echo "$as_ver" | grep GNU > /dev/null; then
22414 as_vers=`echo $as_ver | sed -n \
22415 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22416 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22417 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22418 if test $as_major -eq 2 && test $as_minor -lt 11
22419 then :
22420 else gcc_cv_as_leb128=yes
22423 else
22424 echo "configure: failed program was" >&5
22425 cat conftest.s >&5
22427 rm -f conftest.o conftest.s
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22431 $as_echo "$gcc_cv_as_leb128" >&6; }
22432 if test $gcc_cv_as_leb128 = yes; then
22434 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22438 # Check if we have assembler support for unwind directives.
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22440 $as_echo_n "checking assembler for cfi directives... " >&6; }
22441 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22442 $as_echo_n "(cached) " >&6
22443 else
22444 gcc_cv_as_cfi_directive=no
22445 if test x$gcc_cv_as != x; then
22446 $as_echo ' .text
22447 .cfi_startproc
22448 .cfi_offset 0, 0
22449 .cfi_same_value 1
22450 .cfi_def_cfa 1, 2
22451 .cfi_escape 1, 2, 3, 4, 5
22452 .cfi_endproc' > conftest.s
22453 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22455 (eval $ac_try) 2>&5
22456 ac_status=$?
22457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22458 test $ac_status = 0; }; }
22459 then
22460 case "$target" in
22461 *-*-solaris*)
22462 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22463 # read-only and read-write sections, we need to make sure that the
22464 # assembler used emits read-write .eh_frame sections.
22465 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22466 if test "x$gcc_cv_objdump" != x; then
22467 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22468 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22469 gcc_cv_as_cfi_directive=no
22470 else
22471 case "$target" in
22472 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22473 # On Solaris/x86, make sure that GCC and gas agree on using
22474 # read-only .eh_frame sections for 64-bit.
22475 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22476 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22477 sed -e /.eh_frame/!d -e N | \
22478 grep READONLY > /dev/null; then
22479 gcc_cv_as_cfi_directive=yes
22480 else
22481 gcc_cv_as_cfi_directive=no
22485 gcc_cv_as_cfi_directive=yes
22487 esac
22489 else
22490 # no objdump, err on the side of caution
22491 gcc_cv_as_cfi_directive=no
22493 else
22494 gcc_cv_as_cfi_directive=yes
22497 *-*-*)
22498 gcc_cv_as_cfi_directive=yes
22500 esac
22501 else
22502 echo "configure: failed program was" >&5
22503 cat conftest.s >&5
22505 rm -f conftest.o conftest.s
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22509 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22511 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22513 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22514 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22515 $as_echo_n "(cached) " >&6
22516 else
22517 gcc_cv_as_cfi_advance_working=no
22518 if test x$gcc_cv_as != x; then
22519 $as_echo ' .text
22520 .cfi_startproc
22521 .cfi_adjust_cfa_offset 64
22522 .skip 75040, 0
22523 .cfi_adjust_cfa_offset 128
22524 .cfi_endproc' > conftest.s
22525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22527 (eval $ac_try) 2>&5
22528 ac_status=$?
22529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22530 test $ac_status = 0; }; }
22531 then
22533 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22534 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22535 gcc_cv_as_cfi_advance_working=yes
22538 else
22539 echo "configure: failed program was" >&5
22540 cat conftest.s >&5
22542 rm -f conftest.o conftest.s
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22546 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22548 else
22549 # no objdump, err on the side of caution
22550 gcc_cv_as_cfi_advance_working=no
22554 cat >>confdefs.h <<_ACEOF
22555 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22556 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22557 _ACEOF
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22562 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22563 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22564 $as_echo_n "(cached) " >&6
22565 else
22566 gcc_cv_as_cfi_personality_directive=no
22567 if test x$gcc_cv_as != x; then
22568 $as_echo ' .text
22569 .cfi_startproc
22570 .cfi_personality 0, symbol
22571 .cfi_endproc' > conftest.s
22572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22577 test $ac_status = 0; }; }
22578 then
22579 gcc_cv_as_cfi_personality_directive=yes
22580 else
22581 echo "configure: failed program was" >&5
22582 cat conftest.s >&5
22584 rm -f conftest.o conftest.s
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22588 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22591 cat >>confdefs.h <<_ACEOF
22592 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22593 then echo 1; else echo 0; fi`
22594 _ACEOF
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22598 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22599 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22600 $as_echo_n "(cached) " >&6
22601 else
22602 gcc_cv_as_cfi_sections_directive=no
22603 if test x$gcc_cv_as != x; then
22604 $as_echo ' .text
22605 .cfi_sections .debug_frame, .eh_frame
22606 .cfi_startproc
22607 .cfi_endproc' > conftest.s
22608 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22610 (eval $ac_try) 2>&5
22611 ac_status=$?
22612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22613 test $ac_status = 0; }; }
22614 then
22615 case $target_os in
22616 win32 | pe | cygwin* | mingw32* | uwin*)
22617 # Need to check that we generated the correct relocation for the
22618 # .debug_frame section. This was fixed for binutils 2.21.
22619 gcc_cv_as_cfi_sections_directive=no
22620 if test "x$gcc_cv_objdump" != x; then
22621 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22622 grep secrel > /dev/null; then
22623 gcc_cv_as_cfi_sections_directive=yes
22628 gcc_cv_as_cfi_sections_directive=yes
22630 esac
22631 else
22632 echo "configure: failed program was" >&5
22633 cat conftest.s >&5
22635 rm -f conftest.o conftest.s
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22639 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22643 cat >>confdefs.h <<_ACEOF
22644 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22645 then echo 1; else echo 0; fi`
22646 _ACEOF
22649 # GAS versions up to and including 2.11.0 may mis-optimize
22650 # .eh_frame data.
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22652 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22653 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22654 $as_echo_n "(cached) " >&6
22655 else
22656 gcc_cv_as_eh_frame=no
22657 if test $in_tree_gas = yes; then
22658 if test $in_tree_gas_is_elf = yes \
22659 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22660 then gcc_cv_as_eh_frame=yes
22662 elif test x$gcc_cv_as != x; then
22663 $as_echo ' .text
22664 .LFB1:
22665 .4byte 0
22666 .L1:
22667 .4byte 0
22668 .LFE1:
22669 .section .eh_frame,"aw",@progbits
22670 __FRAME_BEGIN__:
22671 .4byte .LECIE1-.LSCIE1
22672 .LSCIE1:
22673 .4byte 0x0
22674 .byte 0x1
22675 .ascii "z\0"
22676 .byte 0x1
22677 .byte 0x78
22678 .byte 0x1a
22679 .byte 0x0
22680 .byte 0x4
22681 .4byte 1
22682 .p2align 1
22683 .LECIE1:
22684 .LSFDE1:
22685 .4byte .LEFDE1-.LASFDE1
22686 .LASFDE1:
22687 .4byte .LASFDE1-__FRAME_BEGIN__
22688 .4byte .LFB1
22689 .4byte .LFE1-.LFB1
22690 .byte 0x4
22691 .4byte .LFE1-.LFB1
22692 .byte 0x4
22693 .4byte .L1-.LFB1
22694 .LEFDE1:' > conftest.s
22695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22697 (eval $ac_try) 2>&5
22698 ac_status=$?
22699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22700 test $ac_status = 0; }; }
22701 then
22702 cat > conftest.lit <<EOF
22703 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22704 0010 01000000 12000000 18000000 00000000 ................
22705 0020 08000000 04080000 0044 .........D
22707 cat > conftest.big <<EOF
22708 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22709 0010 00000001 00000012 00000018 00000000 ................
22710 0020 00000008 04000000 0844 .........D
22712 # If the assembler didn't choke, and we can objdump,
22713 # and we got the correct data, then succeed.
22714 # The text in the here-document typically retains its unix-style line
22715 # endings, while the output of objdump will use host line endings.
22716 # Therefore, use diff -b for the comparisons.
22717 if test x$gcc_cv_objdump != x \
22718 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22719 | tail -3 > conftest.got \
22720 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22721 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22722 then
22723 gcc_cv_as_eh_frame=yes
22724 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22726 (eval $ac_try) 2>&5
22727 ac_status=$?
22728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22729 test $ac_status = 0; }; }; then
22730 gcc_cv_as_eh_frame=buggy
22731 else
22732 # Uh oh, what do we do now?
22733 gcc_cv_as_eh_frame=no
22735 else
22736 echo "configure: failed program was" >&5
22737 cat conftest.s >&5
22739 rm -f conftest.o conftest.s
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22743 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22746 if test $gcc_cv_as_eh_frame = buggy; then
22748 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22753 $as_echo_n "checking assembler for section merging support... " >&6; }
22754 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22755 $as_echo_n "(cached) " >&6
22756 else
22757 gcc_cv_as_shf_merge=no
22758 if test $in_tree_gas = yes; then
22759 if test $in_tree_gas_is_elf = yes \
22760 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22761 then gcc_cv_as_shf_merge=yes
22763 elif test x$gcc_cv_as != x; then
22764 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22767 (eval $ac_try) 2>&5
22768 ac_status=$?
22769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22770 test $ac_status = 0; }; }
22771 then
22772 gcc_cv_as_shf_merge=yes
22773 else
22774 echo "configure: failed program was" >&5
22775 cat conftest.s >&5
22777 rm -f conftest.o conftest.s
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22781 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22783 if test $gcc_cv_as_shf_merge = no; then
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22785 $as_echo_n "checking assembler for section merging support... " >&6; }
22786 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22787 $as_echo_n "(cached) " >&6
22788 else
22789 gcc_cv_as_shf_merge=no
22790 if test $in_tree_gas = yes; then
22791 if test $in_tree_gas_is_elf = yes \
22792 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22793 then gcc_cv_as_shf_merge=yes
22795 elif test x$gcc_cv_as != x; then
22796 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22797 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22799 (eval $ac_try) 2>&5
22800 ac_status=$?
22801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22802 test $ac_status = 0; }; }
22803 then
22804 gcc_cv_as_shf_merge=yes
22805 else
22806 echo "configure: failed program was" >&5
22807 cat conftest.s >&5
22809 rm -f conftest.o conftest.s
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22813 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22817 cat >>confdefs.h <<_ACEOF
22818 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22819 _ACEOF
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22823 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22824 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22825 $as_echo_n "(cached) " >&6
22826 else
22827 gcc_cv_as_comdat_group=no
22828 if test $in_tree_gas = yes; then
22829 if test $in_tree_gas_is_elf = yes \
22830 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22831 then gcc_cv_as_comdat_group=yes
22833 elif test x$gcc_cv_as != x; then
22834 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22837 (eval $ac_try) 2>&5
22838 ac_status=$?
22839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22840 test $ac_status = 0; }; }
22841 then
22842 gcc_cv_as_comdat_group=yes
22843 else
22844 echo "configure: failed program was" >&5
22845 cat conftest.s >&5
22847 rm -f conftest.o conftest.s
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22851 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22853 if test $gcc_cv_as_comdat_group = yes; then
22854 gcc_cv_as_comdat_group_percent=no
22855 gcc_cv_as_comdat_group_group=no
22856 else
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22858 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22859 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22860 $as_echo_n "(cached) " >&6
22861 else
22862 gcc_cv_as_comdat_group_percent=no
22863 if test $in_tree_gas = yes; then
22864 if test $in_tree_gas_is_elf = yes \
22865 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22866 then gcc_cv_as_comdat_group_percent=yes
22868 elif test x$gcc_cv_as != x; then
22869 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22872 (eval $ac_try) 2>&5
22873 ac_status=$?
22874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22875 test $ac_status = 0; }; }
22876 then
22877 gcc_cv_as_comdat_group_percent=yes
22878 else
22879 echo "configure: failed program was" >&5
22880 cat conftest.s >&5
22882 rm -f conftest.o conftest.s
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22886 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22888 if test $gcc_cv_as_comdat_group_percent = yes; then
22889 gcc_cv_as_comdat_group_group=no
22890 else
22891 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22892 gcc_cv_as_comdat_group_group=no
22894 case "${target}" in
22895 # Sun as uses a completely different syntax.
22896 *-*-solaris2*)
22897 case "${target}" in
22898 sparc*-*-solaris2*)
22899 conftest_s='
22900 .group foo,".text%foo",#comdat
22901 .section ".text%foo", #alloc,#execinstr,#progbits
22902 .globl foo
22903 foo:
22906 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22907 conftest_s='
22908 .group foo,.text%foo,#comdat
22909 .section .text%foo, "ax", @progbits
22910 .globl foo
22911 foo:
22914 esac
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22916 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22917 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22918 $as_echo_n "(cached) " >&6
22919 else
22920 gcc_cv_as_comdat_group_group=no
22921 if test x$gcc_cv_as != x; then
22922 $as_echo "$conftest_s" > conftest.s
22923 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22928 test $ac_status = 0; }; }
22929 then
22930 gcc_cv_as_comdat_group_group=yes
22931 else
22932 echo "configure: failed program was" >&5
22933 cat conftest.s >&5
22935 rm -f conftest.o conftest.s
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22939 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22942 esac
22945 if test x"$ld_is_gold" = xyes; then
22946 comdat_group=yes
22947 elif test $in_tree_ld = yes ; then
22948 comdat_group=no
22949 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 \
22950 && test $in_tree_ld_is_elf = yes; then
22951 comdat_group=yes
22953 elif echo "$ld_ver" | grep GNU > /dev/null; then
22954 comdat_group=yes
22955 if test 0"$ld_date" -lt 20050308; then
22956 if test -n "$ld_date"; then
22957 # If there was date string, but was earlier than 2005-03-08, fail
22958 comdat_group=no
22959 elif test "$ld_vers_major" -lt 2; then
22960 comdat_group=no
22961 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22962 comdat_group=no
22965 else
22966 case "${target}" in
22967 *-*-solaris2.1[1-9]*)
22968 comdat_group=no
22969 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22970 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22971 # version 1.688.
22973 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22974 # least ld version 1.2267.
22975 if test "$ld_vers_major" -gt 1; then
22976 comdat_group=yes
22977 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22978 comdat_group=yes
22979 elif test "$ld_vers_minor" -ge 2267; then
22980 comdat_group=yes
22984 # Assume linkers other than GNU ld don't support COMDAT group.
22985 comdat_group=no
22987 esac
22989 # Allow overriding the automatic COMDAT group tests above.
22990 # Check whether --enable-comdat was given.
22991 if test "${enable_comdat+set}" = set; then :
22992 enableval=$enable_comdat; comdat_group="$enable_comdat"
22995 if test $comdat_group = no; then
22996 gcc_cv_as_comdat_group=no
22997 gcc_cv_as_comdat_group_percent=no
22998 gcc_cv_as_comdat_group_group=no
23001 cat >>confdefs.h <<_ACEOF
23002 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23003 || test $gcc_cv_as_comdat_group_percent = yes \
23004 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23005 _ACEOF
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23009 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23010 if test "${gcc_cv_as_discriminator+set}" = set; then :
23011 $as_echo_n "(cached) " >&6
23012 else
23013 gcc_cv_as_discriminator=no
23014 if test $in_tree_gas = yes; then
23015 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23016 then gcc_cv_as_discriminator=yes
23018 elif test x$gcc_cv_as != x; then
23019 $as_echo ' .text
23020 .file 1 "conf.c"
23021 .loc 1 1 0 discriminator 1' > conftest.s
23022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23024 (eval $ac_try) 2>&5
23025 ac_status=$?
23026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23027 test $ac_status = 0; }; }
23028 then
23029 gcc_cv_as_discriminator=yes
23030 else
23031 echo "configure: failed program was" >&5
23032 cat conftest.s >&5
23034 rm -f conftest.o conftest.s
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23038 $as_echo "$gcc_cv_as_discriminator" >&6; }
23039 if test $gcc_cv_as_discriminator = yes; then
23041 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23045 # Thread-local storage - the check is heavily parameterized.
23046 conftest_s=
23047 tls_first_major=
23048 tls_first_minor=
23049 tls_as_opt=
23050 case "$target" in
23051 alpha*-*-*)
23052 conftest_s='
23053 .section ".tdata","awT",@progbits
23054 foo: .long 25
23055 .text
23056 ldq $27,__tls_get_addr($29) !literal!1
23057 lda $16,foo($29) !tlsgd!1
23058 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23059 ldq $27,__tls_get_addr($29) !literal!2
23060 lda $16,foo($29) !tlsldm!2
23061 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23062 ldq $1,foo($29) !gotdtprel
23063 ldah $2,foo($29) !dtprelhi
23064 lda $3,foo($2) !dtprello
23065 lda $4,foo($29) !dtprel
23066 ldq $1,foo($29) !gottprel
23067 ldah $2,foo($29) !tprelhi
23068 lda $3,foo($2) !tprello
23069 lda $4,foo($29) !tprel'
23070 tls_first_major=2
23071 tls_first_minor=13
23072 tls_as_opt=--fatal-warnings
23074 cris-*-*|crisv32-*-*)
23075 conftest_s='
23076 .section ".tdata","awT",@progbits
23077 x: .long 25
23078 .text
23079 move.d x:IE,$r10
23080 nop'
23081 tls_first_major=2
23082 tls_first_minor=20
23083 tls_as_opt=--fatal-warnings
23085 frv*-*-*)
23086 conftest_s='
23087 .section ".tdata","awT",@progbits
23088 x: .long 25
23089 .text
23090 call #gettlsoff(x)'
23091 tls_first_major=2
23092 tls_first_minor=14
23094 hppa*-*-linux*)
23095 conftest_s='
23096 t1: .reg %r20
23097 t2: .reg %r21
23098 gp: .reg %r19
23099 .section ".tdata","awT",@progbits
23100 foo: .long 25
23101 .text
23102 .align 4
23103 addil LT%foo-$tls_gdidx$,gp
23104 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23105 b __tls_get_addr
23107 addil LT%foo-$tls_ldidx$,gp
23108 b __tls_get_addr
23109 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23110 addil LR%foo-$tls_dtpoff$,%ret0
23111 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23112 mfctl %cr27,%t1
23113 addil LT%foo-$tls_ieoff$,gp
23114 ldw RT%foo-$tls_ieoff$(%r1),%t2
23115 add %t1,%t2,%t3
23116 mfctl %cr27,%t1
23117 addil LR%foo-$tls_leoff$,%t1
23118 ldo RR%foo-$tls_leoff$(%r1),%t2'
23119 tls_first_major=2
23120 tls_first_minor=15
23121 tls_as_opt=--fatal-warnings
23123 arm*-*-*)
23124 conftest_s='
23125 .section ".tdata","awT",%progbits
23126 foo: .long 25
23127 .text
23128 .word foo(gottpoff)
23129 .word foo(tpoff)
23130 .word foo(tlsgd)
23131 .word foo(tlsldm)
23132 .word foo(tlsldo)'
23133 tls_first_major=2
23134 tls_first_minor=17
23136 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23137 case "$target" in
23138 i[34567]86-*-solaris2.*)
23139 on_solaris=yes
23140 tga_func=___tls_get_addr
23142 x86_64-*-solaris2.1[0-9]*)
23143 on_solaris=yes
23144 tga_func=__tls_get_addr
23147 on_solaris=no
23149 esac
23150 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23151 conftest_s='
23152 .section .tdata,"awt",@progbits'
23153 tls_first_major=0
23154 tls_first_minor=0
23156 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23158 else
23159 conftest_s='
23160 .section ".tdata","awT",@progbits'
23161 tls_first_major=2
23162 tls_first_minor=14
23163 tls_as_opt="--fatal-warnings"
23165 conftest_s="$conftest_s
23166 foo: .long 25
23167 .text
23168 movl %gs:0, %eax
23169 leal foo@tlsgd(,%ebx,1), %eax
23170 leal foo@tlsldm(%ebx), %eax
23171 leal foo@dtpoff(%eax), %edx
23172 movl foo@gottpoff(%ebx), %eax
23173 subl foo@gottpoff(%ebx), %eax
23174 addl foo@gotntpoff(%ebx), %eax
23175 movl foo@indntpoff, %eax
23176 movl \$foo@tpoff, %eax
23177 subl \$foo@tpoff, %eax
23178 leal foo@ntpoff(%ecx), %eax"
23180 x86_64-*-*)
23181 conftest_s='
23182 .section ".tdata","awT",@progbits
23183 foo: .long 25
23184 .text
23185 movq %fs:0, %rax
23186 leaq foo@TLSGD(%rip), %rdi
23187 leaq foo@TLSLD(%rip), %rdi
23188 leaq foo@DTPOFF(%rax), %rdx
23189 movq foo@GOTTPOFF(%rip), %rax
23190 movq $foo@TPOFF, %rax'
23191 tls_first_major=2
23192 tls_first_minor=14
23193 tls_as_opt=--fatal-warnings
23195 ia64-*-*)
23196 conftest_s='
23197 .section ".tdata","awT",@progbits
23198 foo: data8 25
23199 .text
23200 addl r16 = @ltoff(@dtpmod(foo#)), gp
23201 addl r17 = @ltoff(@dtprel(foo#)), gp
23202 addl r18 = @ltoff(@tprel(foo#)), gp
23203 addl r19 = @dtprel(foo#), gp
23204 adds r21 = @dtprel(foo#), r13
23205 movl r23 = @dtprel(foo#)
23206 addl r20 = @tprel(foo#), gp
23207 adds r22 = @tprel(foo#), r13
23208 movl r24 = @tprel(foo#)'
23209 tls_first_major=2
23210 tls_first_minor=13
23211 tls_as_opt=--fatal-warnings
23213 microblaze*-*-*)
23214 conftest_s='
23215 .section .tdata,"awT",@progbits
23217 .word 2
23218 .text
23219 addik r5,r20,x@TLSGD
23220 addik r5,r20,x@TLSLDM'
23221 tls_first_major=2
23222 tls_first_minor=20
23223 tls_as_opt='--fatal-warnings'
23225 mips*-*-*)
23226 conftest_s='
23227 .section .tdata,"awT",@progbits
23229 .word 2
23230 .text
23231 addiu $4, $28, %tlsgd(x)
23232 addiu $4, $28, %tlsldm(x)
23233 lui $4, %dtprel_hi(x)
23234 addiu $4, $4, %dtprel_lo(x)
23235 lw $4, %gottprel(x)($28)
23236 lui $4, %tprel_hi(x)
23237 addiu $4, $4, %tprel_lo(x)'
23238 tls_first_major=2
23239 tls_first_minor=16
23240 tls_as_opt='-32 --fatal-warnings'
23242 m68k-*-*)
23243 conftest_s='
23244 .section .tdata,"awT",@progbits
23246 .word 2
23247 .text
23248 foo:
23249 move.l x@TLSGD(%a5),%a0
23250 move.l x@TLSLDM(%a5),%a0
23251 move.l x@TLSLDO(%a5),%a0
23252 move.l x@TLSIE(%a5),%a0
23253 move.l x@TLSLE(%a5),%a0'
23254 tls_first_major=2
23255 tls_first_minor=19
23256 tls_as_opt='--fatal-warnings'
23258 aarch64*-*-*)
23259 conftest_s='
23260 .section ".tdata","awT",%progbits
23261 foo: .long 25
23262 .text
23263 adrp x0, :tlsgd:x
23264 add x0, x0, #:tlsgd_lo12:x
23265 bl __tls_get_addr
23266 nop'
23267 tls_first_major=2
23268 tls_first_minor=20
23269 tls_as_opt='--fatal-warnings'
23271 powerpc-ibm-aix*)
23272 conftest_s='
23273 .extern __get_tpointer
23274 .toc
23275 LC..1:
23276 .tc a[TC],a[TL]@le
23277 .csect .text[PR]
23278 .tlstest:
23279 lwz 9,LC..1(2)
23280 bla __get_tpointer
23281 lwzx 3,9,3
23282 .globl a
23283 .csect a[TL],4
23285 .space 4'
23286 tls_first_major=0
23287 tls_first_minor=0
23289 powerpc64*-*-*)
23290 conftest_s='
23291 .section ".tdata","awT",@progbits
23292 .align 3
23293 ld0: .space 8
23294 ld1: .space 8
23295 x1: .space 8
23296 x2: .space 8
23297 x3: .space 8
23298 .text
23299 addi 3,2,ld0@got@tlsgd
23300 bl .__tls_get_addr
23302 addi 3,2,ld1@toc
23303 bl .__tls_get_addr
23305 addi 3,2,x1@got@tlsld
23306 bl .__tls_get_addr
23308 addi 9,3,x1@dtprel
23309 bl .__tls_get_addr
23311 addis 9,3,x2@dtprel@ha
23312 addi 9,9,x2@dtprel@l
23313 bl .__tls_get_addr
23315 ld 9,x3@got@dtprel(2)
23316 add 9,9,3
23317 bl .__tls_get_addr
23318 nop'
23319 tls_first_major=2
23320 tls_first_minor=14
23321 tls_as_opt="-a64 --fatal-warnings"
23323 powerpc*-*-*)
23324 conftest_s='
23325 .section ".tdata","awT",@progbits
23326 .align 2
23327 ld0: .space 4
23328 ld1: .space 4
23329 x1: .space 4
23330 x2: .space 4
23331 x3: .space 4
23332 .text
23333 addi 3,31,ld0@got@tlsgd
23334 bl __tls_get_addr
23335 addi 3,31,x1@got@tlsld
23336 bl __tls_get_addr
23337 addi 9,3,x1@dtprel
23338 addis 9,3,x2@dtprel@ha
23339 addi 9,9,x2@dtprel@l
23340 lwz 9,x3@got@tprel(31)
23341 add 9,9,x@tls
23342 addi 9,2,x1@tprel
23343 addis 9,2,x2@tprel@ha
23344 addi 9,9,x2@tprel@l'
23345 tls_first_major=2
23346 tls_first_minor=14
23347 tls_as_opt="-a32 --fatal-warnings"
23349 s390-*-*)
23350 conftest_s='
23351 .section ".tdata","awT",@progbits
23352 foo: .long 25
23353 .text
23354 .long foo@TLSGD
23355 .long foo@TLSLDM
23356 .long foo@DTPOFF
23357 .long foo@NTPOFF
23358 .long foo@GOTNTPOFF
23359 .long foo@INDNTPOFF
23360 l %r1,foo@GOTNTPOFF(%r12)
23361 l %r1,0(%r1):tls_load:foo
23362 bas %r14,0(%r1,%r13):tls_gdcall:foo
23363 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23364 tls_first_major=2
23365 tls_first_minor=14
23366 tls_as_opt="-m31 --fatal-warnings"
23368 s390x-*-*)
23369 conftest_s='
23370 .section ".tdata","awT",@progbits
23371 foo: .long 25
23372 .text
23373 .quad foo@TLSGD
23374 .quad foo@TLSLDM
23375 .quad foo@DTPOFF
23376 .quad foo@NTPOFF
23377 .quad foo@GOTNTPOFF
23378 lg %r1,foo@GOTNTPOFF(%r12)
23379 larl %r1,foo@INDNTPOFF
23380 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23381 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23382 tls_first_major=2
23383 tls_first_minor=14
23384 tls_as_opt="-m64 -Aesame --fatal-warnings"
23386 sh-*-* | sh[34]-*-*)
23387 conftest_s='
23388 .section ".tdata","awT",@progbits
23389 foo: .long 25
23390 .text
23391 .long foo@TLSGD
23392 .long foo@TLSLDM
23393 .long foo@DTPOFF
23394 .long foo@GOTTPOFF
23395 .long foo@TPOFF'
23396 tls_first_major=2
23397 tls_first_minor=13
23398 tls_as_opt=--fatal-warnings
23400 sparc*-*-*)
23401 case "$target" in
23402 sparc*-sun-solaris2.*)
23403 on_solaris=yes
23404 tga_func=__tls_get_addr
23407 on_solaris=no
23409 esac
23410 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23411 conftest_s='
23412 .section ".tdata",#alloc,#write,#tls'
23413 tls_first_major=0
23414 tls_first_minor=0
23415 else
23416 conftest_s='
23417 .section ".tdata","awT",@progbits'
23418 tls_first_major=2
23419 tls_first_minor=14
23420 tls_as_opt="-32 --fatal-warnings"
23422 conftest_s="$conftest_s
23423 foo: .long 25
23424 .text
23425 sethi %tgd_hi22(foo), %o0
23426 add %o0, %tgd_lo10(foo), %o1
23427 add %l7, %o1, %o0, %tgd_add(foo)
23428 call __tls_get_addr, %tgd_call(foo)
23429 sethi %tldm_hi22(foo), %l1
23430 add %l1, %tldm_lo10(foo), %l2
23431 add %l7, %l2, %o0, %tldm_add(foo)
23432 call __tls_get_addr, %tldm_call(foo)
23433 sethi %tldo_hix22(foo), %l3
23434 xor %l3, %tldo_lox10(foo), %l4
23435 add %o0, %l4, %l5, %tldo_add(foo)
23436 sethi %tie_hi22(foo), %o3
23437 add %o3, %tie_lo10(foo), %o3
23438 ld [%l7 + %o3], %o2, %tie_ld(foo)
23439 add %g7, %o2, %o4, %tie_add(foo)
23440 sethi %tle_hix22(foo), %l1
23441 xor %l1, %tle_lox10(foo), %o5
23442 ld [%g7 + %o5], %o1"
23444 tilepro*-*-*)
23445 conftest_s='
23446 .section ".tdata","awT",@progbits
23447 foo: .long 25
23448 .text
23449 addli r0, zero, tls_gd(foo)
23450 auli r0, zero, tls_gd_ha16(foo)
23451 addli r0, r0, tls_gd_lo16(foo)
23452 jal __tls_get_addr
23453 addli r0, zero, tls_ie(foo)
23454 auli r0, r0, tls_ie_ha16(foo)
23455 addli r0, r0, tls_ie_lo16(foo)'
23456 tls_first_major=2
23457 tls_first_minor=22
23458 tls_as_opt="--fatal-warnings"
23460 tilegx*-*-*)
23461 conftest_s='
23462 .section ".tdata","awT",@progbits
23463 foo: .long 25
23464 .text
23465 shl16insli r0, zero, hw0_last_tls_gd(foo)
23466 shl16insli r0, zero, hw1_last_tls_gd(foo)
23467 shl16insli r0, r0, hw0_tls_gd(foo)
23468 jal __tls_get_addr
23469 shl16insli r0, zero, hw1_last_tls_ie(foo)
23470 shl16insli r0, r0, hw0_tls_ie(foo)'
23471 tls_first_major=2
23472 tls_first_minor=22
23473 tls_as_opt="--fatal-warnings"
23475 xtensa*-*-*)
23476 conftest_s='
23477 .section ".tdata","awT",@progbits
23478 foo: .long 25
23479 .text
23480 movi a8, foo@TLSFUNC
23481 movi a10, foo@TLSARG
23482 callx8.tls a8, foo@TLSCALL'
23483 tls_first_major=2
23484 tls_first_minor=19
23486 esac
23487 set_have_as_tls=no
23488 if test "x$enable_tls" = xno ; then
23489 : # TLS explicitly disabled.
23490 elif test "x$enable_tls" = xyes ; then
23491 set_have_as_tls=yes # TLS explicitly enabled.
23492 elif test -z "$tls_first_major"; then
23493 : # If we don't have a check, assume no support.
23494 else
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23496 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23497 if test "${gcc_cv_as_tls+set}" = set; then :
23498 $as_echo_n "(cached) " >&6
23499 else
23500 gcc_cv_as_tls=no
23501 if test $in_tree_gas = yes; then
23502 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23503 then gcc_cv_as_tls=yes
23505 elif test x$gcc_cv_as != x; then
23506 $as_echo "$conftest_s" > conftest.s
23507 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23509 (eval $ac_try) 2>&5
23510 ac_status=$?
23511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23512 test $ac_status = 0; }; }
23513 then
23514 gcc_cv_as_tls=yes
23515 else
23516 echo "configure: failed program was" >&5
23517 cat conftest.s >&5
23519 rm -f conftest.o conftest.s
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23523 $as_echo "$gcc_cv_as_tls" >&6; }
23524 if test $gcc_cv_as_tls = yes; then
23525 set_have_as_tls=yes
23528 case "$target" in
23529 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23530 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23531 # Sun style that Sun ld and GCC don't support any longer.
23532 *-*-solaris2.*)
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23534 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23535 ld_tls_support=no
23536 # Check ld and ld.so.1 TLS support.
23537 if echo "$ld_ver" | grep GNU > /dev/null; then
23538 # Assume all interesting versions of GNU ld have TLS support.
23539 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23540 ld_tls_support=yes
23541 else
23542 case "$target" in
23543 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23544 i?86-*-solaris2.9)
23545 min_tls_ld_vers_minor=374
23547 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23548 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23549 min_tls_ld_vers_minor=343
23551 esac
23552 if test "$ld_vers_major" -gt 1 || \
23553 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23554 ld_tls_support=yes
23555 else
23556 set_have_as_tls=no
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23560 $as_echo "$ld_tls_support" >&6; }
23562 save_LIBS="$LIBS"
23563 save_LDFLAGS="$LDFLAGS"
23564 LIBS=
23565 LDFLAGS=
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23568 $as_echo_n "checking library containing $tga_func... " >&6; }
23569 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23570 # (32-bit x86) only lived in libthread, so check for that. Keep
23571 # set_have_as_tls if found, disable if not.
23572 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23574 $as_echo_n "checking for library containing $tga_func... " >&6; }
23575 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23576 $as_echo_n "(cached) " >&6
23577 else
23578 ac_func_search_save_LIBS=$LIBS
23579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23580 /* end confdefs.h. */
23582 /* Override any GCC internal prototype to avoid an error.
23583 Use char because int might match the return type of a GCC
23584 builtin and then its argument prototype would still apply. */
23585 #ifdef __cplusplus
23586 extern "C"
23587 #endif
23588 char $tga_func ();
23590 main ()
23592 return $tga_func ();
23594 return 0;
23596 _ACEOF
23597 for ac_lib in '' thread; do
23598 if test -z "$ac_lib"; then
23599 ac_res="none required"
23600 else
23601 ac_res=-l$ac_lib
23602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23604 if ac_fn_c_try_link "$LINENO"; then :
23605 eval "$as_ac_Search=\$ac_res"
23607 rm -f core conftest.err conftest.$ac_objext \
23608 conftest$ac_exeext
23609 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23610 break
23612 done
23613 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23615 else
23616 eval "$as_ac_Search=no"
23618 rm conftest.$ac_ext
23619 LIBS=$ac_func_search_save_LIBS
23621 eval ac_res=\$$as_ac_Search
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23623 $as_echo "$ac_res" >&6; }
23624 eval ac_res=\$$as_ac_Search
23625 if test "$ac_res" != no; then :
23626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23628 else
23629 set_have_as_tls=no
23632 # Clear LIBS if we cannot support TLS.
23633 if test $set_have_as_tls = no; then
23634 LIBS=
23636 # Always define LIB_TLS_SPEC, even without TLS support.
23638 cat >>confdefs.h <<_ACEOF
23639 #define LIB_TLS_SPEC "$LIBS"
23640 _ACEOF
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23643 $as_echo "$LIBS" >&6; }
23645 LIBS="$save_LIBS"
23646 LDFLAGS="$save_LDFLAGS"
23648 esac
23649 if test $set_have_as_tls = yes ; then
23651 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23655 # Target-specific assembler checks.
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23658 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23659 gcc_cv_ld_static_dynamic=no
23660 gcc_cv_ld_static_option='-Bstatic'
23661 gcc_cv_ld_dynamic_option='-Bdynamic'
23662 if test $in_tree_ld = yes ; then
23663 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
23664 gcc_cv_ld_static_dynamic=yes
23666 elif test x$gcc_cv_ld != x; then
23667 # Check if linker supports -Bstatic/-Bdynamic option
23668 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23669 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23670 gcc_cv_ld_static_dynamic=yes
23671 else
23672 case "$target" in
23673 # AIX ld uses -b flags
23674 *-*-aix4.[23]* | *-*-aix[5-9]*)
23675 gcc_cv_ld_static_dynamic=yes
23676 gcc_cv_ld_static_option="-bstatic"
23677 gcc_cv_ld_dynamic_option="-bdynamic"
23679 # HP-UX ld uses -a flags to select between shared and archive.
23680 *-*-hpux*)
23681 if test x"$gnu_ld" = xno; then
23682 gcc_cv_ld_static_dynamic=yes
23683 gcc_cv_ld_static_option="-aarchive_shared"
23684 gcc_cv_ld_dynamic_option="-adefault"
23687 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23688 *-*-solaris2*)
23689 gcc_cv_ld_static_dynamic=yes
23691 esac
23694 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23696 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23699 cat >>confdefs.h <<_ACEOF
23700 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23701 _ACEOF
23704 cat >>confdefs.h <<_ACEOF
23705 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23706 _ACEOF
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23710 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23712 if test x"$demangler_in_ld" = xyes; then
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23714 $as_echo_n "checking linker --demangle support... " >&6; }
23715 gcc_cv_ld_demangle=no
23716 if test $in_tree_ld = yes; then
23717 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 \
23718 gcc_cv_ld_demangle=yes
23720 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23721 # Check if the GNU linker supports --demangle option
23722 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23723 gcc_cv_ld_demangle=yes
23726 if test x"$gcc_cv_ld_demangle" = xyes; then
23728 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23732 $as_echo "$gcc_cv_ld_demangle" >&6; }
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23736 $as_echo_n "checking linker plugin support... " >&6; }
23737 gcc_cv_lto_plugin=0
23738 if test -f liblto_plugin.la; then
23739 save_ld_ver="$ld_ver"
23740 save_ld_vers_major="$ld_vers_major"
23741 save_ld_vers_minor="$ld_vers_minor"
23742 save_ld_is_gold="$ld_is_gold"
23744 ld_is_gold=no
23746 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23747 ld_ver="GNU ld"
23748 # FIXME: ld_is_gold?
23749 ld_vers_major="$gcc_cv_gld_major_version"
23750 ld_vers_minor="$gcc_cv_gld_minor_version"
23751 else
23752 # Determine plugin linker version.
23753 # FIXME: Partial duplicate from above, generalize.
23754 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23755 if echo "$ld_ver" | grep GNU > /dev/null; then
23756 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23757 ld_is_gold=yes
23758 ld_vers=`echo $ld_ver | sed -n \
23759 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23760 else
23761 ld_vers=`echo $ld_ver | sed -n \
23762 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23764 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23765 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23769 # Determine plugin support.
23770 if echo "$ld_ver" | grep GNU > /dev/null; then
23771 # Require GNU ld or gold 2.21+ for plugin support by default.
23772 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23773 gcc_cv_lto_plugin=2
23774 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23775 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23776 gcc_cv_lto_plugin=1
23780 ld_ver="$save_ld_ver"
23781 ld_vers_major="$save_ld_vers_major"
23782 ld_vers_minor="$save_ld_vers_minor"
23783 ld_is_gold="$save_ld_is_gold"
23786 cat >>confdefs.h <<_ACEOF
23787 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23788 _ACEOF
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23791 $as_echo "$gcc_cv_lto_plugin" >&6; }
23793 case "$target" in
23794 # All TARGET_ABI_OSF targets.
23795 alpha*-*-linux* | alpha*-*-*bsd*)
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23797 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23798 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23799 $as_echo_n "(cached) " >&6
23800 else
23801 gcc_cv_as_alpha_explicit_relocs=no
23802 if test $in_tree_gas = yes; then
23803 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23804 then gcc_cv_as_alpha_explicit_relocs=yes
23806 elif test x$gcc_cv_as != x; then
23807 $as_echo ' .set nomacro
23808 .text
23809 extbl $3, $2, $3 !lituse_bytoff!1
23810 ldq $2, a($29) !literal!1
23811 ldq $4, b($29) !literal!2
23812 ldq_u $3, 0($2) !lituse_base!1
23813 ldq $27, f($29) !literal!5
23814 jsr $26, ($27), f !lituse_jsr!5
23815 ldah $29, 0($26) !gpdisp!3
23816 lda $0, c($29) !gprel
23817 ldah $1, d($29) !gprelhigh
23818 lda $1, d($1) !gprellow
23819 lda $29, 0($29) !gpdisp!3' > conftest.s
23820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23822 (eval $ac_try) 2>&5
23823 ac_status=$?
23824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23825 test $ac_status = 0; }; }
23826 then
23827 gcc_cv_as_alpha_explicit_relocs=yes
23828 else
23829 echo "configure: failed program was" >&5
23830 cat conftest.s >&5
23832 rm -f conftest.o conftest.s
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23836 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23837 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23839 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23843 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23844 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23845 $as_echo_n "(cached) " >&6
23846 else
23847 gcc_cv_as_alpha_jsrdirect_relocs=no
23848 if test $in_tree_gas = yes; then
23849 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23850 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23852 elif test x$gcc_cv_as != x; then
23853 $as_echo ' .set nomacro
23854 .text
23855 ldq $27, a($29) !literal!1
23856 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23857 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23859 (eval $ac_try) 2>&5
23860 ac_status=$?
23861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23862 test $ac_status = 0; }; }
23863 then
23864 gcc_cv_as_alpha_jsrdirect_relocs=yes
23865 else
23866 echo "configure: failed program was" >&5
23867 cat conftest.s >&5
23869 rm -f conftest.o conftest.s
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23873 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23874 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23876 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23881 cris-*-*)
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23883 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23884 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23885 $as_echo_n "(cached) " >&6
23886 else
23887 gcc_cv_as_cris_no_mul_bug=no
23888 if test $in_tree_gas = yes; then
23889 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23890 then gcc_cv_as_cris_no_mul_bug=yes
23892 elif test x$gcc_cv_as != x; then
23893 $as_echo '.text' > conftest.s
23894 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23896 (eval $ac_try) 2>&5
23897 ac_status=$?
23898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23899 test $ac_status = 0; }; }
23900 then
23901 gcc_cv_as_cris_no_mul_bug=yes
23902 else
23903 echo "configure: failed program was" >&5
23904 cat conftest.s >&5
23906 rm -f conftest.o conftest.s
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23910 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23911 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23913 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23918 sparc*-*-*)
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23920 $as_echo_n "checking assembler for .register... " >&6; }
23921 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23922 $as_echo_n "(cached) " >&6
23923 else
23924 gcc_cv_as_sparc_register_op=no
23925 if test x$gcc_cv_as != x; then
23926 $as_echo '.register %g2, #scratch' > conftest.s
23927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23929 (eval $ac_try) 2>&5
23930 ac_status=$?
23931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23932 test $ac_status = 0; }; }
23933 then
23934 gcc_cv_as_sparc_register_op=yes
23935 else
23936 echo "configure: failed program was" >&5
23937 cat conftest.s >&5
23939 rm -f conftest.o conftest.s
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23943 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23944 if test $gcc_cv_as_sparc_register_op = yes; then
23946 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
23951 $as_echo_n "checking assembler for #nobits... " >&6; }
23952 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
23953 $as_echo_n "(cached) " >&6
23954 else
23955 gcc_cv_as_sparc_nobits=no
23956 if test x$gcc_cv_as != x; then
23957 $as_echo '.section "nobits",#alloc,#write,#nobits
23958 .section "progbits",#alloc,#write,#progbits' > conftest.s
23959 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23961 (eval $ac_try) 2>&5
23962 ac_status=$?
23963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23964 test $ac_status = 0; }; }
23965 then
23966 gcc_cv_as_sparc_nobits=yes
23967 else
23968 echo "configure: failed program was" >&5
23969 cat conftest.s >&5
23971 rm -f conftest.o conftest.s
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
23975 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
23978 cat >>confdefs.h <<_ACEOF
23979 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
23980 _ACEOF
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23984 $as_echo_n "checking assembler for -relax option... " >&6; }
23985 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23986 $as_echo_n "(cached) " >&6
23987 else
23988 gcc_cv_as_sparc_relax=no
23989 if test x$gcc_cv_as != x; then
23990 $as_echo '.text' > conftest.s
23991 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23993 (eval $ac_try) 2>&5
23994 ac_status=$?
23995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23996 test $ac_status = 0; }; }
23997 then
23998 gcc_cv_as_sparc_relax=yes
23999 else
24000 echo "configure: failed program was" >&5
24001 cat conftest.s >&5
24003 rm -f conftest.o conftest.s
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24007 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24008 if test $gcc_cv_as_sparc_relax = yes; then
24010 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24015 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24016 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24017 $as_echo_n "(cached) " >&6
24018 else
24019 gcc_cv_as_sparc_gotdata_op=no
24020 if test x$gcc_cv_as != x; then
24021 $as_echo '.text
24022 .align 4
24023 foo:
24025 bar:
24026 sethi %gdop_hix22(foo), %g1
24027 xor %g1, %gdop_lox10(foo), %g1
24028 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24029 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24031 (eval $ac_try) 2>&5
24032 ac_status=$?
24033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24034 test $ac_status = 0; }; }
24035 then
24036 if test x$gcc_cv_ld != x \
24037 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24038 if test x$gcc_cv_objdump != x; then
24039 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24040 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24041 gcc_cv_as_sparc_gotdata_op=no
24042 else
24043 gcc_cv_as_sparc_gotdata_op=yes
24047 rm -f conftest
24048 else
24049 echo "configure: failed program was" >&5
24050 cat conftest.s >&5
24052 rm -f conftest.o conftest.s
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24056 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24057 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24059 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24064 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24065 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24066 $as_echo_n "(cached) " >&6
24067 else
24068 gcc_cv_as_sparc_ua_pcrel=no
24069 if test x$gcc_cv_as != x; then
24070 $as_echo '.text
24071 foo:
24073 .data
24074 .align 4
24075 .byte 0
24076 .uaword %r_disp32(foo)' > conftest.s
24077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24079 (eval $ac_try) 2>&5
24080 ac_status=$?
24081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24082 test $ac_status = 0; }; }
24083 then
24084 if test x$gcc_cv_ld != x \
24085 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24086 gcc_cv_as_sparc_ua_pcrel=yes
24088 rm -f conftest
24089 else
24090 echo "configure: failed program was" >&5
24091 cat conftest.s >&5
24093 rm -f conftest.o conftest.s
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24097 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24098 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24100 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24104 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24105 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24106 $as_echo_n "(cached) " >&6
24107 else
24108 gcc_cv_as_sparc_ua_pcrel_hidden=no
24109 if test x$gcc_cv_as != x; then
24110 $as_echo '.data
24111 .align 4
24112 .byte 0x31
24113 .uaword %r_disp32(foo)
24114 .byte 0x32, 0x33, 0x34
24115 .global foo
24116 .hidden foo
24117 foo:
24118 .skip 4' > conftest.s
24119 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24121 (eval $ac_try) 2>&5
24122 ac_status=$?
24123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24124 test $ac_status = 0; }; }
24125 then
24126 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24127 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24128 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24129 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24130 if $gcc_cv_objdump -R conftest 2> /dev/null \
24131 | grep 'DISP32' > /dev/null 2>&1; then
24133 else
24134 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24137 rm -f conftest
24138 else
24139 echo "configure: failed program was" >&5
24140 cat conftest.s >&5
24142 rm -f conftest.o conftest.s
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24146 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24147 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24149 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24153 fi # unaligned pcrel relocs
24155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24156 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24157 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24158 $as_echo_n "(cached) " >&6
24159 else
24160 gcc_cv_as_sparc_offsetable_lo10=no
24161 if test x$gcc_cv_as != x; then
24162 $as_echo '.text
24163 or %g1, %lo(ab) + 12, %g1
24164 or %g1, %lo(ab + 12), %g1' > conftest.s
24165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24167 (eval $ac_try) 2>&5
24168 ac_status=$?
24169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24170 test $ac_status = 0; }; }
24171 then
24172 if test x$gcc_cv_objdump != x \
24173 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24174 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24175 gcc_cv_as_sparc_offsetable_lo10=yes
24177 else
24178 echo "configure: failed program was" >&5
24179 cat conftest.s >&5
24181 rm -f conftest.o conftest.s
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24185 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24186 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24188 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24193 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24194 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24195 $as_echo_n "(cached) " >&6
24196 else
24197 gcc_cv_as_sparc_fmaf=no
24198 if test x$gcc_cv_as != x; then
24199 $as_echo '.text
24200 .register %g2, #scratch
24201 .register %g3, #scratch
24202 .align 4
24203 fmaddd %f0, %f2, %f4, %f6
24204 addxccc %g1, %g2, %g3
24205 fsrl32 %f2, %f4, %f8
24206 fnaddd %f10, %f12, %f14' > conftest.s
24207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24209 (eval $ac_try) 2>&5
24210 ac_status=$?
24211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24212 test $ac_status = 0; }; }
24213 then
24214 gcc_cv_as_sparc_fmaf=yes
24215 else
24216 echo "configure: failed program was" >&5
24217 cat conftest.s >&5
24219 rm -f conftest.o conftest.s
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24223 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24224 if test $gcc_cv_as_sparc_fmaf = yes; then
24226 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24231 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24232 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24233 $as_echo_n "(cached) " >&6
24234 else
24235 gcc_cv_as_sparc_sparc4=no
24236 if test x$gcc_cv_as != x; then
24237 $as_echo '.text
24238 .register %g2, #scratch
24239 .register %g3, #scratch
24240 .align 4
24241 cxbe %g2, %g3, 1f
24242 1: cwbneg %g2, %g3, 1f
24243 1: sha1
24245 aes_kexpand0 %f4, %f6, %f8
24246 des_round %f38, %f40, %f42, %f44
24247 camellia_f %f54, %f56, %f58, %f60
24248 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24249 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24251 (eval $ac_try) 2>&5
24252 ac_status=$?
24253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24254 test $ac_status = 0; }; }
24255 then
24256 gcc_cv_as_sparc_sparc4=yes
24257 else
24258 echo "configure: failed program was" >&5
24259 cat conftest.s >&5
24261 rm -f conftest.o conftest.s
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24265 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24266 if test $gcc_cv_as_sparc_sparc4 = yes; then
24268 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24273 i[34567]86-*-* | x86_64-*-*)
24274 case $target_os in
24275 cygwin*)
24276 # Full C++ conformance when using a shared libstdc++-v3 requires some
24277 # support from the Cygwin DLL, which in more recent versions exports
24278 # wrappers to aid in interposing and redirecting operators new, delete,
24279 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24280 # are configuring for a version of Cygwin that exports the wrappers.
24281 if test x$host = x$target && test x$host_cpu = xi686; then
24282 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24283 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24284 gcc_ac_cygwin_dll_wrappers=yes
24285 else
24286 gcc_ac_cygwin_dll_wrappers=no
24289 else
24290 # Can't check presence of libc functions during cross-compile, so
24291 # we just have to assume we're building for an up-to-date target.
24292 gcc_ac_cygwin_dll_wrappers=yes
24295 cat >>confdefs.h <<_ACEOF
24296 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24297 _ACEOF
24299 esac
24300 case $target_os in
24301 cygwin* | pe | mingw32* | interix*)
24302 # Recent binutils allows the three-operand form of ".comm" on PE. This
24303 # definition is used unconditionally to initialise the default state of
24304 # the target option variable that governs usage of the feature.
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24306 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24307 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24308 $as_echo_n "(cached) " >&6
24309 else
24310 gcc_cv_as_comm_has_align=no
24311 if test $in_tree_gas = yes; then
24312 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24313 then gcc_cv_as_comm_has_align=yes
24315 elif test x$gcc_cv_as != x; then
24316 $as_echo '.comm foo,1,32' > conftest.s
24317 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24319 (eval $ac_try) 2>&5
24320 ac_status=$?
24321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24322 test $ac_status = 0; }; }
24323 then
24324 gcc_cv_as_comm_has_align=yes
24325 else
24326 echo "configure: failed program was" >&5
24327 cat conftest.s >&5
24329 rm -f conftest.o conftest.s
24332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24333 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24336 cat >>confdefs.h <<_ACEOF
24337 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24338 _ACEOF
24340 # Used for DWARF 2 in PE
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24342 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24343 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24344 $as_echo_n "(cached) " >&6
24345 else
24346 gcc_cv_as_ix86_pe_secrel32=no
24347 if test $in_tree_gas = yes; then
24348 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24349 then gcc_cv_as_ix86_pe_secrel32=yes
24351 elif test x$gcc_cv_as != x; then
24352 $as_echo '.text
24353 foo: nop
24354 .data
24355 .secrel32 foo' > conftest.s
24356 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24358 (eval $ac_try) 2>&5
24359 ac_status=$?
24360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24361 test $ac_status = 0; }; }
24362 then
24363 if test x$gcc_cv_ld != x \
24364 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24365 gcc_cv_as_ix86_pe_secrel32=yes
24367 rm -f conftest
24368 else
24369 echo "configure: failed program was" >&5
24370 cat conftest.s >&5
24372 rm -f conftest.o conftest.s
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24376 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24377 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24379 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24382 # Test if the assembler supports the extended form of the .section
24383 # directive that specifies section alignment. LTO support uses this,
24384 # but normally only after installation, so we warn but don't fail the
24385 # configure if LTO is enabled but the assembler does not support it.
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24387 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24388 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24389 $as_echo_n "(cached) " >&6
24390 else
24391 gcc_cv_as_section_has_align=no
24392 if test $in_tree_gas = yes; then
24393 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24394 then gcc_cv_as_section_has_align=yes
24396 elif test x$gcc_cv_as != x; then
24397 $as_echo '.section lto_test,"dr0"' > conftest.s
24398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24400 (eval $ac_try) 2>&5
24401 ac_status=$?
24402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24403 test $ac_status = 0; }; }
24404 then
24405 gcc_cv_as_section_has_align=yes
24406 else
24407 echo "configure: failed program was" >&5
24408 cat conftest.s >&5
24410 rm -f conftest.o conftest.s
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24414 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24416 if test x$gcc_cv_as_section_has_align != xyes; then
24417 case ",$enable_languages," in
24418 *,lto,*)
24419 { $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
24420 $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;}
24422 esac
24424 # Test if the assembler supports the section flag 'e' for specifying
24425 # an excluded section.
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24427 $as_echo_n "checking assembler for .section with e... " >&6; }
24428 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24429 $as_echo_n "(cached) " >&6
24430 else
24431 gcc_cv_as_section_has_e=no
24432 if test $in_tree_gas = yes; then
24433 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24434 then gcc_cv_as_section_has_e=yes
24436 elif test x$gcc_cv_as != x; then
24437 $as_echo '.section foo1,"e"
24438 .byte 0,0,0,0' > conftest.s
24439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24441 (eval $ac_try) 2>&5
24442 ac_status=$?
24443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24444 test $ac_status = 0; }; }
24445 then
24446 gcc_cv_as_section_has_e=yes
24447 else
24448 echo "configure: failed program was" >&5
24449 cat conftest.s >&5
24451 rm -f conftest.o conftest.s
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24455 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24458 cat >>confdefs.h <<_ACEOF
24459 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24460 _ACEOF
24463 esac
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24466 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24467 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24468 $as_echo_n "(cached) " >&6
24469 else
24470 gcc_cv_as_ix86_filds=no
24471 if test x$gcc_cv_as != x; then
24472 $as_echo 'filds mem; fists mem' > conftest.s
24473 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24475 (eval $ac_try) 2>&5
24476 ac_status=$?
24477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24478 test $ac_status = 0; }; }
24479 then
24480 gcc_cv_as_ix86_filds=yes
24481 else
24482 echo "configure: failed program was" >&5
24483 cat conftest.s >&5
24485 rm -f conftest.o conftest.s
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24489 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24490 if test $gcc_cv_as_ix86_filds = yes; then
24492 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24497 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24498 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24499 $as_echo_n "(cached) " >&6
24500 else
24501 gcc_cv_as_ix86_fildq=no
24502 if test x$gcc_cv_as != x; then
24503 $as_echo 'fildq mem; fistpq mem' > conftest.s
24504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24506 (eval $ac_try) 2>&5
24507 ac_status=$?
24508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24509 test $ac_status = 0; }; }
24510 then
24511 gcc_cv_as_ix86_fildq=yes
24512 else
24513 echo "configure: failed program was" >&5
24514 cat conftest.s >&5
24516 rm -f conftest.o conftest.s
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24520 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24521 if test $gcc_cv_as_ix86_fildq = yes; then
24523 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24528 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24529 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24530 $as_echo_n "(cached) " >&6
24531 else
24532 gcc_cv_as_ix86_cmov_sun_syntax=no
24533 if test x$gcc_cv_as != x; then
24534 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24537 (eval $ac_try) 2>&5
24538 ac_status=$?
24539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24540 test $ac_status = 0; }; }
24541 then
24542 gcc_cv_as_ix86_cmov_sun_syntax=yes
24543 else
24544 echo "configure: failed program was" >&5
24545 cat conftest.s >&5
24547 rm -f conftest.o conftest.s
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24551 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24552 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24554 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24559 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24560 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24561 $as_echo_n "(cached) " >&6
24562 else
24563 gcc_cv_as_ix86_ffreep=no
24564 if test x$gcc_cv_as != x; then
24565 $as_echo 'ffreep %st(1)' > conftest.s
24566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24568 (eval $ac_try) 2>&5
24569 ac_status=$?
24570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24571 test $ac_status = 0; }; }
24572 then
24573 gcc_cv_as_ix86_ffreep=yes
24574 else
24575 echo "configure: failed program was" >&5
24576 cat conftest.s >&5
24578 rm -f conftest.o conftest.s
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24582 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24583 if test $gcc_cv_as_ix86_ffreep = yes; then
24585 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24590 $as_echo_n "checking assembler for .quad directive... " >&6; }
24591 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24592 $as_echo_n "(cached) " >&6
24593 else
24594 gcc_cv_as_ix86_quad=no
24595 if test x$gcc_cv_as != x; then
24596 $as_echo '.quad 0' > conftest.s
24597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24599 (eval $ac_try) 2>&5
24600 ac_status=$?
24601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24602 test $ac_status = 0; }; }
24603 then
24604 gcc_cv_as_ix86_quad=yes
24605 else
24606 echo "configure: failed program was" >&5
24607 cat conftest.s >&5
24609 rm -f conftest.o conftest.s
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24613 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24614 if test $gcc_cv_as_ix86_quad = yes; then
24616 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24621 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24622 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24623 $as_echo_n "(cached) " >&6
24624 else
24625 gcc_cv_as_ix86_sahf=no
24626 if test x$gcc_cv_as != x; then
24627 $as_echo '.code64
24628 sahf' > conftest.s
24629 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24631 (eval $ac_try) 2>&5
24632 ac_status=$?
24633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24634 test $ac_status = 0; }; }
24635 then
24636 gcc_cv_as_ix86_sahf=yes
24637 else
24638 echo "configure: failed program was" >&5
24639 cat conftest.s >&5
24641 rm -f conftest.o conftest.s
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24645 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24646 if test $gcc_cv_as_ix86_sahf = yes; then
24648 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24653 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24654 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24655 $as_echo_n "(cached) " >&6
24656 else
24657 gcc_cv_as_ix86_interunit_movq=no
24658 if test x$gcc_cv_as != x; then
24659 $as_echo '.code64
24660 movq %mm0, %rax
24661 movq %rax, %xmm0' > conftest.s
24662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24664 (eval $ac_try) 2>&5
24665 ac_status=$?
24666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24667 test $ac_status = 0; }; }
24668 then
24669 gcc_cv_as_ix86_interunit_movq=yes
24670 else
24671 echo "configure: failed program was" >&5
24672 cat conftest.s >&5
24674 rm -f conftest.o conftest.s
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24678 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24679 if test $gcc_cv_as_ix86_interunit_movq = yes; then
24681 $as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24686 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24687 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24688 $as_echo_n "(cached) " >&6
24689 else
24690 gcc_cv_as_ix86_hle=no
24691 if test x$gcc_cv_as != x; then
24692 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24695 (eval $ac_try) 2>&5
24696 ac_status=$?
24697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24698 test $ac_status = 0; }; }
24699 then
24700 gcc_cv_as_ix86_hle=yes
24701 else
24702 echo "configure: failed program was" >&5
24703 cat conftest.s >&5
24705 rm -f conftest.o conftest.s
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24709 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24710 if test $gcc_cv_as_ix86_hle = yes; then
24712 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24717 $as_echo_n "checking assembler for swap suffix... " >&6; }
24718 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24719 $as_echo_n "(cached) " >&6
24720 else
24721 gcc_cv_as_ix86_swap=no
24722 if test x$gcc_cv_as != x; then
24723 $as_echo 'movl.s %esp, %ebp' > conftest.s
24724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24726 (eval $ac_try) 2>&5
24727 ac_status=$?
24728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24729 test $ac_status = 0; }; }
24730 then
24731 gcc_cv_as_ix86_swap=yes
24732 else
24733 echo "configure: failed program was" >&5
24734 cat conftest.s >&5
24736 rm -f conftest.o conftest.s
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24740 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24741 if test $gcc_cv_as_ix86_swap = yes; then
24743 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24748 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24749 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24750 $as_echo_n "(cached) " >&6
24751 else
24752 gcc_cv_as_ix86_diff_sect_delta=no
24753 if test x$gcc_cv_as != x; then
24754 $as_echo '.section .rodata
24755 .L1:
24756 .long .L2-.L1
24757 .long .L3-.L1
24758 .text
24759 .L3: nop
24760 .L2: nop' > conftest.s
24761 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24763 (eval $ac_try) 2>&5
24764 ac_status=$?
24765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24766 test $ac_status = 0; }; }
24767 then
24768 gcc_cv_as_ix86_diff_sect_delta=yes
24769 else
24770 echo "configure: failed program was" >&5
24771 cat conftest.s >&5
24773 rm -f conftest.o conftest.s
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24777 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24778 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24780 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24784 # These two are used unconditionally by i386.[ch]; it is to be defined
24785 # to 1 if the feature is present, 0 otherwise.
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24787 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24788 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24789 $as_echo_n "(cached) " >&6
24790 else
24791 gcc_cv_as_ix86_gotoff_in_data=no
24792 if test $in_tree_gas = yes; then
24793 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24794 then gcc_cv_as_ix86_gotoff_in_data=yes
24796 elif test x$gcc_cv_as != x; then
24797 $as_echo ' .text
24798 .L0:
24800 .data
24801 .long .L0@GOTOFF' > conftest.s
24802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24804 (eval $ac_try) 2>&5
24805 ac_status=$?
24806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24807 test $ac_status = 0; }; }
24808 then
24809 gcc_cv_as_ix86_gotoff_in_data=yes
24810 else
24811 echo "configure: failed program was" >&5
24812 cat conftest.s >&5
24814 rm -f conftest.o conftest.s
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24818 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24821 cat >>confdefs.h <<_ACEOF
24822 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24823 _ACEOF
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24827 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24828 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24829 $as_echo_n "(cached) " >&6
24830 else
24831 gcc_cv_as_ix86_rep_lock_prefix=no
24832 if test x$gcc_cv_as != x; then
24833 $as_echo 'rep movsl
24834 rep ret
24835 rep nop
24836 rep bsf %ecx, %eax
24837 rep bsr %ecx, %eax
24838 lock addl %edi, (%eax,%esi)
24839 lock orl $0, (%esp)' > conftest.s
24840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24842 (eval $ac_try) 2>&5
24843 ac_status=$?
24844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24845 test $ac_status = 0; }; }
24846 then
24847 gcc_cv_as_ix86_rep_lock_prefix=yes
24848 else
24849 echo "configure: failed program was" >&5
24850 cat conftest.s >&5
24852 rm -f conftest.o conftest.s
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24856 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24857 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24859 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24864 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24865 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24866 $as_echo_n "(cached) " >&6
24867 else
24868 gcc_cv_as_ix86_tlsgdplt=no
24869 if test x$gcc_cv_as != x; then
24870 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24873 (eval $ac_try) 2>&5
24874 ac_status=$?
24875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24876 test $ac_status = 0; }; }
24877 then
24878 if test x$gcc_cv_ld != x \
24879 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24880 gcc_cv_as_ix86_tlsgdplt=yes
24882 rm -f conftest
24883 else
24884 echo "configure: failed program was" >&5
24885 cat conftest.s >&5
24887 rm -f conftest.o conftest.s
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24891 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24892 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24894 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24899 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24900 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24901 $as_echo_n "(cached) " >&6
24902 else
24903 gcc_cv_as_ix86_tlsldmplt=no
24904 if test x$gcc_cv_as != x; then
24905 $as_echo 'tls_ld:
24906 call tls_ld@tlsldmplt' > conftest.s
24907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24909 (eval $ac_try) 2>&5
24910 ac_status=$?
24911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24912 test $ac_status = 0; }; }
24913 then
24914 if test x$gcc_cv_ld != x \
24915 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24916 gcc_cv_as_ix86_tlsldmplt=yes
24918 rm -f conftest
24919 else
24920 echo "configure: failed program was" >&5
24921 cat conftest.s >&5
24923 rm -f conftest.o conftest.s
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24927 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24928 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24930 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24936 ia64*-*-*)
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24938 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24939 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24940 $as_echo_n "(cached) " >&6
24941 else
24942 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24943 if test $in_tree_gas = yes; then
24944 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24945 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24947 elif test x$gcc_cv_as != x; then
24948 $as_echo ' .text
24949 addl r15 = @ltoffx(x#), gp
24951 ld8.mov r16 = [r15], x#' > conftest.s
24952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24954 (eval $ac_try) 2>&5
24955 ac_status=$?
24956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24957 test $ac_status = 0; }; }
24958 then
24959 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24960 else
24961 echo "configure: failed program was" >&5
24962 cat conftest.s >&5
24964 rm -f conftest.o conftest.s
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24968 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24969 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24971 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24977 powerpc*-*-*)
24978 case $target in
24979 *-*-aix*) conftest_s=' .machine "pwr5"
24980 .csect .text[PR]
24981 mfcr 3,128';;
24982 *-*-darwin*)
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24984 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24985 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24986 $as_echo_n "(cached) " >&6
24987 else
24988 gcc_cv_as_machine_directive=no
24989 if test x$gcc_cv_as != x; then
24990 $as_echo ' .machine ppc7400' > conftest.s
24991 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24993 (eval $ac_try) 2>&5
24994 ac_status=$?
24995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24996 test $ac_status = 0; }; }
24997 then
24998 gcc_cv_as_machine_directive=yes
24999 else
25000 echo "configure: failed program was" >&5
25001 cat conftest.s >&5
25003 rm -f conftest.o conftest.s
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25007 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25009 if test x$gcc_cv_as_machine_directive != xyes; then
25010 echo "*** This target requires an assembler supporting \".machine\"" >&2
25011 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25012 test x$build = x$target && exit 1
25014 conftest_s=' .text
25015 mfcr r3,128';;
25016 *) conftest_s=' .machine power4
25017 .text
25018 mfcr 3,128';;
25019 esac
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25022 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25023 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25024 $as_echo_n "(cached) " >&6
25025 else
25026 gcc_cv_as_powerpc_mfcrf=no
25027 if test $in_tree_gas = yes; then
25028 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25029 then gcc_cv_as_powerpc_mfcrf=yes
25031 elif test x$gcc_cv_as != x; then
25032 $as_echo "$conftest_s" > conftest.s
25033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25035 (eval $ac_try) 2>&5
25036 ac_status=$?
25037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25038 test $ac_status = 0; }; }
25039 then
25040 gcc_cv_as_powerpc_mfcrf=yes
25041 else
25042 echo "configure: failed program was" >&5
25043 cat conftest.s >&5
25045 rm -f conftest.o conftest.s
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25049 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25050 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25052 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25056 case $target in
25057 *-*-aix*) conftest_s=' .machine "pwr5"
25058 .csect .text[PR]
25059 popcntb 3,3';;
25060 *) conftest_s=' .machine power5
25061 .text
25062 popcntb 3,3';;
25063 esac
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25066 $as_echo_n "checking assembler for popcntb support... " >&6; }
25067 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25068 $as_echo_n "(cached) " >&6
25069 else
25070 gcc_cv_as_powerpc_popcntb=no
25071 if test $in_tree_gas = yes; then
25072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25073 then gcc_cv_as_powerpc_popcntb=yes
25075 elif test x$gcc_cv_as != x; then
25076 $as_echo "$conftest_s" > conftest.s
25077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25079 (eval $ac_try) 2>&5
25080 ac_status=$?
25081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25082 test $ac_status = 0; }; }
25083 then
25084 gcc_cv_as_powerpc_popcntb=yes
25085 else
25086 echo "configure: failed program was" >&5
25087 cat conftest.s >&5
25089 rm -f conftest.o conftest.s
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25093 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25094 if test $gcc_cv_as_powerpc_popcntb = yes; then
25096 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25100 case $target in
25101 *-*-aix*) conftest_s=' .machine "pwr5x"
25102 .csect .text[PR]
25103 frin 1,1';;
25104 *) conftest_s=' .machine power5
25105 .text
25106 frin 1,1';;
25107 esac
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25110 $as_echo_n "checking assembler for fp round support... " >&6; }
25111 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25112 $as_echo_n "(cached) " >&6
25113 else
25114 gcc_cv_as_powerpc_fprnd=no
25115 if test $in_tree_gas = yes; then
25116 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25117 then gcc_cv_as_powerpc_fprnd=yes
25119 elif test x$gcc_cv_as != x; then
25120 $as_echo "$conftest_s" > conftest.s
25121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25123 (eval $ac_try) 2>&5
25124 ac_status=$?
25125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25126 test $ac_status = 0; }; }
25127 then
25128 gcc_cv_as_powerpc_fprnd=yes
25129 else
25130 echo "configure: failed program was" >&5
25131 cat conftest.s >&5
25133 rm -f conftest.o conftest.s
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25137 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25138 if test $gcc_cv_as_powerpc_fprnd = yes; then
25140 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25144 case $target in
25145 *-*-aix*) conftest_s=' .machine "pwr6"
25146 .csect .text[PR]
25147 mffgpr 1,3';;
25148 *) conftest_s=' .machine power6
25149 .text
25150 mffgpr 1,3';;
25151 esac
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25154 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25155 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25156 $as_echo_n "(cached) " >&6
25157 else
25158 gcc_cv_as_powerpc_mfpgpr=no
25159 if test $in_tree_gas = yes; then
25160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25161 then gcc_cv_as_powerpc_mfpgpr=yes
25163 elif test x$gcc_cv_as != x; then
25164 $as_echo "$conftest_s" > conftest.s
25165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25167 (eval $ac_try) 2>&5
25168 ac_status=$?
25169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25170 test $ac_status = 0; }; }
25171 then
25172 gcc_cv_as_powerpc_mfpgpr=yes
25173 else
25174 echo "configure: failed program was" >&5
25175 cat conftest.s >&5
25177 rm -f conftest.o conftest.s
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25181 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25182 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25184 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25188 case $target in
25189 *-*-aix*) conftest_s=' .csect .text[PR]
25190 LCF..0:
25191 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25192 *-*-darwin*)
25193 conftest_s=' .text
25194 LCF0:
25195 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25196 *) conftest_s=' .text
25197 .LCF0:
25198 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25199 esac
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25202 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25203 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25204 $as_echo_n "(cached) " >&6
25205 else
25206 gcc_cv_as_powerpc_rel16=no
25207 if test $in_tree_gas = yes; then
25208 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25209 then gcc_cv_as_powerpc_rel16=yes
25211 elif test x$gcc_cv_as != x; then
25212 $as_echo "$conftest_s" > conftest.s
25213 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25215 (eval $ac_try) 2>&5
25216 ac_status=$?
25217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25218 test $ac_status = 0; }; }
25219 then
25220 gcc_cv_as_powerpc_rel16=yes
25221 else
25222 echo "configure: failed program was" >&5
25223 cat conftest.s >&5
25225 rm -f conftest.o conftest.s
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25229 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25230 if test $gcc_cv_as_powerpc_rel16 = yes; then
25232 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25236 case $target in
25237 *-*-aix*) conftest_s=' .machine "pwr6"
25238 .csect .text[PR]
25239 cmpb 3,4,5';;
25240 *) conftest_s=' .machine power6
25241 .text
25242 cmpb 3,4,5';;
25243 esac
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25246 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25247 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25248 $as_echo_n "(cached) " >&6
25249 else
25250 gcc_cv_as_powerpc_cmpb=no
25251 if test $in_tree_gas = yes; then
25252 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25253 then gcc_cv_as_powerpc_cmpb=yes
25255 elif test x$gcc_cv_as != x; then
25256 $as_echo "$conftest_s" > conftest.s
25257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25259 (eval $ac_try) 2>&5
25260 ac_status=$?
25261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25262 test $ac_status = 0; }; }
25263 then
25264 gcc_cv_as_powerpc_cmpb=yes
25265 else
25266 echo "configure: failed program was" >&5
25267 cat conftest.s >&5
25269 rm -f conftest.o conftest.s
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25273 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25274 if test $gcc_cv_as_powerpc_cmpb = yes; then
25276 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25280 case $target in
25281 *-*-aix*) conftest_s=' .machine "pwr6"
25282 .csect .text[PR]
25283 dadd 1,2,3';;
25284 *) conftest_s=' .machine power6
25285 .text
25286 dadd 1,2,3';;
25287 esac
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25290 $as_echo_n "checking assembler for decimal float support... " >&6; }
25291 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25292 $as_echo_n "(cached) " >&6
25293 else
25294 gcc_cv_as_powerpc_dfp=no
25295 if test $in_tree_gas = yes; then
25296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25297 then gcc_cv_as_powerpc_dfp=yes
25299 elif test x$gcc_cv_as != x; then
25300 $as_echo "$conftest_s" > conftest.s
25301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25303 (eval $ac_try) 2>&5
25304 ac_status=$?
25305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25306 test $ac_status = 0; }; }
25307 then
25308 gcc_cv_as_powerpc_dfp=yes
25309 else
25310 echo "configure: failed program was" >&5
25311 cat conftest.s >&5
25313 rm -f conftest.o conftest.s
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25317 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25318 if test $gcc_cv_as_powerpc_dfp = yes; then
25320 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25324 case $target in
25325 *-*-aix*) conftest_s=' .machine "pwr7"
25326 .csect .text[PR]
25327 lxvd2x 1,2,3';;
25328 *) conftest_s=' .machine power7
25329 .text
25330 lxvd2x 1,2,3';;
25331 esac
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25334 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25335 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25336 $as_echo_n "(cached) " >&6
25337 else
25338 gcc_cv_as_powerpc_vsx=no
25339 if test $in_tree_gas = yes; then
25340 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25341 then gcc_cv_as_powerpc_vsx=yes
25343 elif test x$gcc_cv_as != x; then
25344 $as_echo "$conftest_s" > conftest.s
25345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25347 (eval $ac_try) 2>&5
25348 ac_status=$?
25349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25350 test $ac_status = 0; }; }
25351 then
25352 gcc_cv_as_powerpc_vsx=yes
25353 else
25354 echo "configure: failed program was" >&5
25355 cat conftest.s >&5
25357 rm -f conftest.o conftest.s
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25361 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25362 if test $gcc_cv_as_powerpc_vsx = yes; then
25364 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25368 case $target in
25369 *-*-aix*) conftest_s=' .machine "pwr7"
25370 .csect .text[PR]
25371 popcntd 3,3';;
25372 *) conftest_s=' .machine power7
25373 .text
25374 popcntd 3,3';;
25375 esac
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25378 $as_echo_n "checking assembler for popcntd support... " >&6; }
25379 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25380 $as_echo_n "(cached) " >&6
25381 else
25382 gcc_cv_as_powerpc_popcntd=no
25383 if test $in_tree_gas = yes; then
25384 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25385 then gcc_cv_as_powerpc_popcntd=yes
25387 elif test x$gcc_cv_as != x; then
25388 $as_echo "$conftest_s" > conftest.s
25389 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25391 (eval $ac_try) 2>&5
25392 ac_status=$?
25393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25394 test $ac_status = 0; }; }
25395 then
25396 gcc_cv_as_powerpc_popcntd=yes
25397 else
25398 echo "configure: failed program was" >&5
25399 cat conftest.s >&5
25401 rm -f conftest.o conftest.s
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25405 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25406 if test $gcc_cv_as_powerpc_popcntd = yes; then
25408 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25412 case $target in
25413 *-*-aix*) conftest_s=' .machine "pwr8"
25414 .csect .text[PR]';;
25415 *) conftest_s=' .machine power8
25416 .text';;
25417 esac
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25420 $as_echo_n "checking assembler for power8 support... " >&6; }
25421 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25422 $as_echo_n "(cached) " >&6
25423 else
25424 gcc_cv_as_powerpc_power8=no
25425 if test $in_tree_gas = yes; then
25426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25427 then gcc_cv_as_powerpc_power8=yes
25429 elif test x$gcc_cv_as != x; then
25430 $as_echo "$conftest_s" > conftest.s
25431 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25433 (eval $ac_try) 2>&5
25434 ac_status=$?
25435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25436 test $ac_status = 0; }; }
25437 then
25438 gcc_cv_as_powerpc_power8=yes
25439 else
25440 echo "configure: failed program was" >&5
25441 cat conftest.s >&5
25443 rm -f conftest.o conftest.s
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25447 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25448 if test $gcc_cv_as_powerpc_power8 = yes; then
25450 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25454 case $target in
25455 *-*-aix*) conftest_s=' .csect .text[PR]
25456 lwsync';;
25457 *) conftest_s=' .text
25458 lwsync';;
25459 esac
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25462 $as_echo_n "checking assembler for lwsync support... " >&6; }
25463 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25464 $as_echo_n "(cached) " >&6
25465 else
25466 gcc_cv_as_powerpc_lwsync=no
25467 if test $in_tree_gas = yes; then
25468 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25469 then gcc_cv_as_powerpc_lwsync=yes
25471 elif test x$gcc_cv_as != x; then
25472 $as_echo "$conftest_s" > conftest.s
25473 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25475 (eval $ac_try) 2>&5
25476 ac_status=$?
25477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25478 test $ac_status = 0; }; }
25479 then
25480 gcc_cv_as_powerpc_lwsync=yes
25481 else
25482 echo "configure: failed program was" >&5
25483 cat conftest.s >&5
25485 rm -f conftest.o conftest.s
25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25489 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25490 if test $gcc_cv_as_powerpc_lwsync = yes; then
25492 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25496 case $target in
25497 *-*-aix*) conftest_s=' .machine "476"
25498 .csect .text[PR]
25499 dci 0';;
25500 *) conftest_s=' .machine "476"
25501 .text
25502 dci 0';;
25503 esac
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25506 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25507 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25508 $as_echo_n "(cached) " >&6
25509 else
25510 gcc_cv_as_powerpc_dci=no
25511 if test $in_tree_gas = yes; then
25512 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25513 then gcc_cv_as_powerpc_dci=yes
25515 elif test x$gcc_cv_as != x; then
25516 $as_echo "$conftest_s" > conftest.s
25517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25519 (eval $ac_try) 2>&5
25520 ac_status=$?
25521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25522 test $ac_status = 0; }; }
25523 then
25524 gcc_cv_as_powerpc_dci=yes
25525 else
25526 echo "configure: failed program was" >&5
25527 cat conftest.s >&5
25529 rm -f conftest.o conftest.s
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25533 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25534 if test $gcc_cv_as_powerpc_dci = yes; then
25536 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25541 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25542 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25543 $as_echo_n "(cached) " >&6
25544 else
25545 gcc_cv_as_powerpc_gnu_attribute=no
25546 if test $in_tree_gas = yes; then
25547 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25548 then gcc_cv_as_powerpc_gnu_attribute=yes
25550 elif test x$gcc_cv_as != x; then
25551 $as_echo '.gnu_attribute 4,1' > conftest.s
25552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25554 (eval $ac_try) 2>&5
25555 ac_status=$?
25556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25557 test $ac_status = 0; }; }
25558 then
25559 gcc_cv_as_powerpc_gnu_attribute=yes
25560 else
25561 echo "configure: failed program was" >&5
25562 cat conftest.s >&5
25564 rm -f conftest.o conftest.s
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25568 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25569 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25571 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25576 $as_echo_n "checking assembler for tls marker support... " >&6; }
25577 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25578 $as_echo_n "(cached) " >&6
25579 else
25580 gcc_cv_as_powerpc_tls_markers=no
25581 if test $in_tree_gas = yes; then
25582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25583 then gcc_cv_as_powerpc_tls_markers=yes
25585 elif test x$gcc_cv_as != x; then
25586 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25589 (eval $ac_try) 2>&5
25590 ac_status=$?
25591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25592 test $ac_status = 0; }; }
25593 then
25594 gcc_cv_as_powerpc_tls_markers=yes
25595 else
25596 echo "configure: failed program was" >&5
25597 cat conftest.s >&5
25599 rm -f conftest.o conftest.s
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25603 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25604 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25606 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25610 case $target in
25611 *-*-aix*)
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25613 $as_echo_n "checking assembler for .ref support... " >&6; }
25614 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25615 $as_echo_n "(cached) " >&6
25616 else
25617 gcc_cv_as_aix_ref=no
25618 if test $in_tree_gas = yes; then
25619 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25620 then gcc_cv_as_aix_ref=yes
25622 elif test x$gcc_cv_as != x; then
25623 $as_echo ' .csect stuff[rw]
25624 stuff:
25625 .long 1
25626 .extern sym
25627 .ref sym
25628 ' > conftest.s
25629 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25631 (eval $ac_try) 2>&5
25632 ac_status=$?
25633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25634 test $ac_status = 0; }; }
25635 then
25636 gcc_cv_as_aix_ref=yes
25637 else
25638 echo "configure: failed program was" >&5
25639 cat conftest.s >&5
25641 rm -f conftest.o conftest.s
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25645 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25646 if test $gcc_cv_as_aix_ref = yes; then
25648 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25652 esac
25655 mips*-*-*)
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25657 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25658 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25659 $as_echo_n "(cached) " >&6
25660 else
25661 gcc_cv_as_mips_explicit_relocs=no
25662 if test $in_tree_gas = yes; then
25663 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25664 then gcc_cv_as_mips_explicit_relocs=yes
25666 elif test x$gcc_cv_as != x; then
25667 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25670 (eval $ac_try) 2>&5
25671 ac_status=$?
25672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25673 test $ac_status = 0; }; }
25674 then
25675 gcc_cv_as_mips_explicit_relocs=yes
25676 else
25677 echo "configure: failed program was" >&5
25678 cat conftest.s >&5
25680 rm -f conftest.o conftest.s
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25684 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25685 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25686 if test x$target_cpu_default = x
25687 then target_cpu_default=MASK_EXPLICIT_RELOCS
25688 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25692 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25693 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25694 $as_echo_n "(cached) " >&6
25695 else
25696 gcc_cv_as_mips_no_shared=no
25697 if test $in_tree_gas = yes; then
25698 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25699 then gcc_cv_as_mips_no_shared=yes
25701 elif test x$gcc_cv_as != x; then
25702 $as_echo 'nop' > conftest.s
25703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25705 (eval $ac_try) 2>&5
25706 ac_status=$?
25707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25708 test $ac_status = 0; }; }
25709 then
25710 gcc_cv_as_mips_no_shared=yes
25711 else
25712 echo "configure: failed program was" >&5
25713 cat conftest.s >&5
25715 rm -f conftest.o conftest.s
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25719 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25720 if test $gcc_cv_as_mips_no_shared = yes; then
25722 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25727 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25728 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25729 $as_echo_n "(cached) " >&6
25730 else
25731 gcc_cv_as_mips_gnu_attribute=no
25732 if test $in_tree_gas = yes; then
25733 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25734 then gcc_cv_as_mips_gnu_attribute=yes
25736 elif test x$gcc_cv_as != x; then
25737 $as_echo '.gnu_attribute 4,1' > conftest.s
25738 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25740 (eval $ac_try) 2>&5
25741 ac_status=$?
25742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25743 test $ac_status = 0; }; }
25744 then
25745 gcc_cv_as_mips_gnu_attribute=yes
25746 else
25747 echo "configure: failed program was" >&5
25748 cat conftest.s >&5
25750 rm -f conftest.o conftest.s
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25754 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25755 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25757 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25762 $as_echo_n "checking assembler for .micromips support... " >&6; }
25763 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25764 $as_echo_n "(cached) " >&6
25765 else
25766 gcc_cv_as_micromips_support=no
25767 if test x$gcc_cv_as != x; then
25768 $as_echo '.set micromips' > conftest.s
25769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25771 (eval $ac_try) 2>&5
25772 ac_status=$?
25773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25774 test $ac_status = 0; }; }
25775 then
25776 gcc_cv_as_micromips_support=yes
25777 else
25778 echo "configure: failed program was" >&5
25779 cat conftest.s >&5
25781 rm -f conftest.o conftest.s
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25785 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25786 if test $gcc_cv_as_micromips_support = yes; then
25788 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25793 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25794 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25795 $as_echo_n "(cached) " >&6
25796 else
25797 gcc_cv_as_mips_dtprelword=no
25798 if test $in_tree_gas = yes; then
25799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25800 then gcc_cv_as_mips_dtprelword=yes
25802 elif test x$gcc_cv_as != x; then
25803 $as_echo '.section .tdata,"awT",@progbits
25805 .word 2
25806 .text
25807 .dtprelword x+0x8000' > conftest.s
25808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25810 (eval $ac_try) 2>&5
25811 ac_status=$?
25812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25813 test $ac_status = 0; }; }
25814 then
25815 gcc_cv_as_mips_dtprelword=yes
25816 else
25817 echo "configure: failed program was" >&5
25818 cat conftest.s >&5
25820 rm -f conftest.o conftest.s
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25824 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25825 if test $gcc_cv_as_mips_dtprelword = yes; then
25827 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25832 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25833 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25834 $as_echo_n "(cached) " >&6
25835 else
25836 gcc_cv_as_mips_dspr1_mult=no
25837 if test x$gcc_cv_as != x; then
25838 $as_echo ' .set mips32r2
25839 .set nodspr2
25840 .set dsp
25841 madd $ac3,$4,$5
25842 maddu $ac3,$4,$5
25843 msub $ac3,$4,$5
25844 msubu $ac3,$4,$5
25845 mult $ac3,$4,$5
25846 multu $ac3,$4,$5' > conftest.s
25847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25849 (eval $ac_try) 2>&5
25850 ac_status=$?
25851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25852 test $ac_status = 0; }; }
25853 then
25854 gcc_cv_as_mips_dspr1_mult=yes
25855 else
25856 echo "configure: failed program was" >&5
25857 cat conftest.s >&5
25859 rm -f conftest.o conftest.s
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25863 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25864 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25866 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25871 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25872 gcc_cv_as_ld_jalr_reloc=no
25873 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25874 if test $in_tree_ld = yes ; then
25875 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 \
25876 && test $in_tree_ld_is_elf = yes; then
25877 gcc_cv_as_ld_jalr_reloc=yes
25879 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25880 echo ' .ent x' > conftest.s
25881 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25882 echo ' ld $25,%call16(y)($28)' >> conftest.s
25883 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25884 echo '1: jalr $25' >> conftest.s
25885 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25886 echo '1: jalr $25' >> conftest.s
25887 echo ' .end x' >> conftest.s
25888 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25889 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25890 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25891 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25892 gcc_cv_as_ld_jalr_reloc=yes
25895 rm -f conftest.*
25898 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25899 if test x$target_cpu_default = x; then
25900 target_cpu_default=MASK_RELAX_PIC_CALLS
25901 else
25902 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25906 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25909 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25910 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25911 $as_echo_n "(cached) " >&6
25912 else
25913 gcc_cv_ld_mips_personality_relaxation=no
25914 if test $in_tree_ld = yes ; then
25915 if test "$gcc_cv_gld_major_version" -eq 2 \
25916 -a "$gcc_cv_gld_minor_version" -ge 21 \
25917 -o "$gcc_cv_gld_major_version" -gt 2; then
25918 gcc_cv_ld_mips_personality_relaxation=yes
25920 elif test x$gcc_cv_as != x \
25921 -a x$gcc_cv_ld != x \
25922 -a x$gcc_cv_readelf != x ; then
25923 cat > conftest.s <<EOF
25924 .cfi_startproc
25925 .cfi_personality 0x80,indirect_ptr
25926 .ent test
25927 test:
25929 .end test
25930 .cfi_endproc
25932 .section .data,"aw",@progbits
25933 indirect_ptr:
25934 .dc.a personality
25936 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25937 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25938 if $gcc_cv_readelf -d conftest 2>&1 \
25939 | grep TEXTREL > /dev/null 2>&1; then
25941 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25942 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25944 else
25945 gcc_cv_ld_mips_personality_relaxation=yes
25949 rm -f conftest.s conftest.o conftest
25951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25952 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25953 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25955 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25959 esac
25961 # Mips and HP-UX need the GNU assembler.
25962 # Linux on IA64 might be able to use the Intel assembler.
25964 case "$target" in
25965 mips*-*-* | *-*-hpux* )
25966 if test x$gas_flag = xyes \
25967 || test x"$host" != x"$build" \
25968 || test ! -x "$gcc_cv_as" \
25969 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25971 else
25972 echo "*** This configuration requires the GNU assembler" >&2
25973 exit 1
25976 esac
25978 # ??? Not all targets support dwarf2 debug_line, even within a version
25979 # of gas. Moreover, we need to emit a valid instruction to trigger any
25980 # info to the output file. So, as supported targets are added to gas 2.11,
25981 # add some instruction here to (also) show we expect this might work.
25982 # ??? Once 2.11 is released, probably need to add first known working
25983 # version to the per-target configury.
25984 case "$cpu_type" in
25985 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25986 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25987 insn="nop"
25989 ia64 | s390)
25990 insn="nop 0"
25992 mmix)
25993 insn="swym 0"
25995 esac
25996 if test x"$insn" != x; then
25997 conftest_s="\
25998 .file 1 \"conftest.s\"
25999 .loc 1 3 0
26000 $insn"
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26002 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26003 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26004 $as_echo_n "(cached) " >&6
26005 else
26006 gcc_cv_as_dwarf2_debug_line=no
26007 if test $in_tree_gas = yes; then
26008 if test $in_tree_gas_is_elf = yes \
26009 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26010 then gcc_cv_as_dwarf2_debug_line=yes
26012 elif test x$gcc_cv_as != x; then
26013 $as_echo "$conftest_s" > conftest.s
26014 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26016 (eval $ac_try) 2>&5
26017 ac_status=$?
26018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26019 test $ac_status = 0; }; }
26020 then
26021 if test x$gcc_cv_objdump != x \
26022 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26023 | grep debug_line > /dev/null 2>&1; then
26024 gcc_cv_as_dwarf2_debug_line=yes
26026 else
26027 echo "configure: failed program was" >&5
26028 cat conftest.s >&5
26030 rm -f conftest.o conftest.s
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26034 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26037 # The .debug_line file table must be in the exact order that
26038 # we specified the files, since these indices are also used
26039 # by DW_AT_decl_file. Approximate this test by testing if
26040 # the assembler bitches if the same index is assigned twice.
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26042 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26043 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26044 $as_echo_n "(cached) " >&6
26045 else
26046 gcc_cv_as_dwarf2_file_buggy=no
26047 if test x$gcc_cv_as != x; then
26048 $as_echo ' .file 1 "foo.s"
26049 .file 1 "bar.s"' > conftest.s
26050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26052 (eval $ac_try) 2>&5
26053 ac_status=$?
26054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26055 test $ac_status = 0; }; }
26056 then
26057 gcc_cv_as_dwarf2_file_buggy=yes
26058 else
26059 echo "configure: failed program was" >&5
26060 cat conftest.s >&5
26062 rm -f conftest.o conftest.s
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26066 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26069 if test $gcc_cv_as_dwarf2_debug_line = yes \
26070 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26072 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26077 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26078 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26079 $as_echo_n "(cached) " >&6
26080 else
26081 gcc_cv_as_gdwarf2_flag=no
26082 if test $in_tree_gas = yes; then
26083 if test $in_tree_gas_is_elf = yes \
26084 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26085 then gcc_cv_as_gdwarf2_flag=yes
26087 elif test x$gcc_cv_as != x; then
26088 $as_echo "$insn" > conftest.s
26089 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26091 (eval $ac_try) 2>&5
26092 ac_status=$?
26093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26094 test $ac_status = 0; }; }
26095 then
26096 gcc_cv_as_gdwarf2_flag=yes
26097 else
26098 echo "configure: failed program was" >&5
26099 cat conftest.s >&5
26101 rm -f conftest.o conftest.s
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26105 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26106 if test $gcc_cv_as_gdwarf2_flag = yes; then
26108 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26113 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26114 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26115 $as_echo_n "(cached) " >&6
26116 else
26117 gcc_cv_as_gstabs_flag=no
26118 if test $in_tree_gas = yes; then
26119 if test $in_tree_gas_is_elf = yes \
26120 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26121 then gcc_cv_as_gstabs_flag=yes
26123 elif test x$gcc_cv_as != x; then
26124 $as_echo "$insn" > conftest.s
26125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26127 (eval $ac_try) 2>&5
26128 ac_status=$?
26129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26130 test $ac_status = 0; }; }
26131 then
26132 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26133 # and warns about it, but still exits successfully. So check for
26134 # this.
26135 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
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 else gcc_cv_as_gstabs_flag=yes
26144 else
26145 echo "configure: failed program was" >&5
26146 cat conftest.s >&5
26148 rm -f conftest.o conftest.s
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26152 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26153 if test $gcc_cv_as_gstabs_flag = yes; then
26155 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26160 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26161 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26162 $as_echo_n "(cached) " >&6
26163 else
26164 gcc_cv_as_debug_prefix_map_flag=no
26165 if test $in_tree_gas = yes; then
26166 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26167 then gcc_cv_as_debug_prefix_map_flag=yes
26169 elif test x$gcc_cv_as != x; then
26170 $as_echo "$insn" > conftest.s
26171 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26173 (eval $ac_try) 2>&5
26174 ac_status=$?
26175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26176 test $ac_status = 0; }; }
26177 then
26178 gcc_cv_as_debug_prefix_map_flag=yes
26179 else
26180 echo "configure: failed program was" >&5
26181 cat conftest.s >&5
26183 rm -f conftest.o conftest.s
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26187 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26188 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26190 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26196 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26197 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26198 $as_echo_n "(cached) " >&6
26199 else
26200 gcc_cv_as_lcomm_with_alignment=no
26201 if test x$gcc_cv_as != x; then
26202 $as_echo '.lcomm bar,4,16' > conftest.s
26203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26205 (eval $ac_try) 2>&5
26206 ac_status=$?
26207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26208 test $ac_status = 0; }; }
26209 then
26210 gcc_cv_as_lcomm_with_alignment=yes
26211 else
26212 echo "configure: failed program was" >&5
26213 cat conftest.s >&5
26215 rm -f conftest.o conftest.s
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26219 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26220 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26222 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26226 # Check whether --enable-gnu-unique-object was given.
26227 if test "${enable_gnu_unique_object+set}" = set; then :
26228 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26229 yes | no) ;;
26230 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26231 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26232 esac
26233 else
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26235 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26236 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26237 $as_echo_n "(cached) " >&6
26238 else
26239 gcc_cv_as_gnu_unique_object=no
26240 if test $in_tree_gas = yes; then
26241 if test $in_tree_gas_is_elf = yes \
26242 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26243 then gcc_cv_as_gnu_unique_object=yes
26245 elif test x$gcc_cv_as != x; then
26246 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26249 (eval $ac_try) 2>&5
26250 ac_status=$?
26251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26252 test $ac_status = 0; }; }
26253 then
26254 gcc_cv_as_gnu_unique_object=yes
26255 else
26256 echo "configure: failed program was" >&5
26257 cat conftest.s >&5
26259 rm -f conftest.o conftest.s
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26263 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26264 if test $gcc_cv_as_gnu_unique_object = yes; then
26265 # We need to unquote above to to use the definition from config.gcc.
26266 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26267 if test x$host = x$build -a x$host = x$target &&
26268 ldd --version 2>/dev/null &&
26269 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26270 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26271 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26272 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26273 if test "$glibcnum" -ge 2011 ; then
26274 enable_gnu_unique_object=yes
26280 if test x$enable_gnu_unique_object = xyes; then
26282 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26287 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26288 if test "${gcc_cv_as_line_zero+set}" = set; then :
26289 $as_echo_n "(cached) " >&6
26290 else
26291 gcc_cv_as_line_zero=no
26292 if test $in_tree_gas = yes; then
26293 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26294 then gcc_cv_as_line_zero=yes
26296 elif test "x$gcc_cv_as" != x; then
26297 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26298 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26300 (eval $ac_try) 2>&5
26301 ac_status=$?
26302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26303 test $ac_status = 0; }; } &&
26304 test "x`cat conftest.out`" = x
26305 then
26306 gcc_cv_as_line_zero=yes
26307 else
26308 echo "configure: failed program was" >&5
26309 cat conftest.s >&5
26310 echo "configure: error output was" >&5
26311 cat conftest.out >&5
26313 rm -f conftest.o conftest.s conftest.out
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26317 $as_echo "$gcc_cv_as_line_zero" >&6; }
26318 if test "x$gcc_cv_as_line_zero" = xyes; then
26320 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26325 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26326 gcc_cv_ld_eh_frame_hdr=no
26327 if test $in_tree_ld = yes ; then
26328 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 \
26329 && test $in_tree_ld_is_elf = yes; then
26330 gcc_cv_ld_eh_frame_hdr=yes
26332 elif test x$gcc_cv_ld != x; then
26333 if echo "$ld_ver" | grep GNU > /dev/null; then
26334 # Check if linker supports --eh-frame-hdr option
26335 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26336 gcc_cv_ld_eh_frame_hdr=yes
26338 else
26339 case "$target" in
26340 *-*-solaris2*)
26341 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26342 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26343 gcc_cv_ld_eh_frame_hdr=yes
26346 esac
26350 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26352 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26356 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26359 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26360 gcc_cv_ld_eh_frame_ciev3=no
26361 if test $in_tree_ld = yes ; then
26362 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 \
26363 && test $in_tree_ld_is_elf = yes; then
26364 gcc_cv_ld_eh_frame_ciev3=yes
26366 elif test x$gcc_cv_ld != x; then
26367 if echo "$ld_ver" | grep GNU > /dev/null; then
26368 gcc_cv_ld_eh_frame_ciev3=yes
26369 if test 0"$ld_date" -lt 20040513; then
26370 if test -n "$ld_date"; then
26371 # If there was date string, but was earlier than 2004-05-13, fail
26372 gcc_cv_ld_eh_frame_ciev3=no
26373 elif test "$ld_vers_major" -lt 2; then
26374 gcc_cv_ld_eh_frame_ciev3=no
26375 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26376 gcc_cv_ld_eh_frame_ciev3=no
26379 else
26380 case "$target" in
26381 *-*-solaris2*)
26382 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26383 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26384 gcc_cv_ld_eh_frame_ciev3=yes
26387 esac
26391 cat >>confdefs.h <<_ACEOF
26392 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26393 _ACEOF
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26396 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26399 $as_echo_n "checking linker position independent executable support... " >&6; }
26400 gcc_cv_ld_pie=no
26401 if test $in_tree_ld = yes ; then
26402 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 \
26403 && test $in_tree_ld_is_elf = yes; then
26404 gcc_cv_ld_pie=yes
26406 elif test x$gcc_cv_ld != x; then
26407 # Check if linker supports -pie option
26408 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26409 gcc_cv_ld_pie=yes
26412 if test x"$gcc_cv_ld_pie" = xyes; then
26414 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26418 $as_echo "$gcc_cv_ld_pie" >&6; }
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26421 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26422 gcc_cv_ld_eh_gc_sections=no
26423 if test $in_tree_ld = yes ; then
26424 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 \
26425 && test $in_tree_ld_is_elf = yes; then
26426 gcc_cv_ld_eh_gc_sections=yes
26428 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26429 cat > conftest.s <<EOF
26430 .section .text
26431 .globl _start
26432 .type _start, @function
26433 _start:
26434 .long foo
26435 .size _start, .-_start
26436 .section .text.foo,"ax",@progbits
26437 .type foo, @function
26438 foo:
26439 .long 0
26440 .size foo, .-foo
26441 .section .gcc_except_table.foo,"a",@progbits
26442 .L0:
26443 .long 0
26444 .section .eh_frame,"a",@progbits
26445 .long .L0
26447 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26448 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26449 | grep "gc-sections option ignored" > /dev/null; then
26450 gcc_cv_ld_eh_gc_sections=no
26451 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26452 | grep gcc_except_table > /dev/null; then
26453 gcc_cv_ld_eh_gc_sections=yes
26454 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26455 if test x$gcc_cv_as_comdat_group != xyes; then
26456 gcc_cv_ld_eh_gc_sections=no
26457 cat > conftest.s <<EOF
26458 .section .text
26459 .globl _start
26460 .type _start, @function
26461 _start:
26462 .long foo
26463 .size _start, .-_start
26464 .section .gnu.linkonce.t.foo,"ax",@progbits
26465 .type foo, @function
26466 foo:
26467 .long 0
26468 .size foo, .-foo
26469 .section .gcc_except_table.foo,"a",@progbits
26470 .L0:
26471 .long 0
26472 .section .eh_frame,"a",@progbits
26473 .long .L0
26475 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26476 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26477 | grep "gc-sections option ignored" > /dev/null; then
26478 gcc_cv_ld_eh_gc_sections=no
26479 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26480 | grep gcc_except_table > /dev/null; then
26481 gcc_cv_ld_eh_gc_sections=yes
26487 rm -f conftest.s conftest.o conftest
26489 case "$target" in
26490 hppa*-*-linux*)
26491 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26492 gcc_cv_ld_eh_gc_sections=no
26494 esac
26495 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26497 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26501 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26504 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26505 gcc_cv_ld_eh_gc_sections_bug=no
26506 if test $in_tree_ld = yes ; then
26507 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 \
26508 && test $in_tree_ld_is_elf = yes; then
26509 gcc_cv_ld_eh_gc_sections_bug=yes
26511 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
26512 gcc_cv_ld_eh_gc_sections_bug=yes
26513 cat > conftest.s <<EOF
26514 .section .text
26515 .globl _start
26516 .type _start, @function
26517 _start:
26518 .long foo
26519 .size _start, .-_start
26520 .section .text.startup.foo,"ax",@progbits
26521 .type foo, @function
26522 foo:
26523 .long 0
26524 .size foo, .-foo
26525 .section .gcc_except_table.foo,"a",@progbits
26526 .L0:
26527 .long 0
26528 .section .eh_frame,"a",@progbits
26529 .long .L0
26531 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26532 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26533 | grep "gc-sections option ignored" > /dev/null; then
26535 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26536 | grep gcc_except_table > /dev/null; then
26537 gcc_cv_ld_eh_gc_sections_bug=no
26540 rm -f conftest.s conftest.o conftest
26542 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26544 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26548 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26550 # --------
26551 # UNSORTED
26552 # --------
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26555 $as_echo_n "checking linker --as-needed support... " >&6; }
26556 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26557 $as_echo_n "(cached) " >&6
26558 else
26559 gcc_cv_ld_as_needed=no
26560 gcc_cv_ld_as_needed_option='--as-needed'
26561 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26562 if test $in_tree_ld = yes ; then
26563 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 \
26564 && test $in_tree_ld_is_elf = yes; then
26565 gcc_cv_ld_as_needed=yes
26567 elif test x$gcc_cv_ld != x; then
26568 # Check if linker supports --as-needed and --no-as-needed options
26569 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26570 gcc_cv_ld_as_needed=yes
26571 else
26572 case "$target" in
26573 # Solaris 2 ld always supports -z ignore/-z record.
26574 *-*-solaris2*)
26575 gcc_cv_ld_as_needed=yes
26576 gcc_cv_ld_as_needed_option="-z ignore"
26577 gcc_cv_ld_no_as_needed_option="-z record"
26579 esac
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26585 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26586 if test x"$gcc_cv_ld_as_needed" = xyes; then
26588 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26591 cat >>confdefs.h <<_ACEOF
26592 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26593 _ACEOF
26596 cat >>confdefs.h <<_ACEOF
26597 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26598 _ACEOF
26602 case "$target:$tm_file" in
26603 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26604 case "$target" in
26605 *le-*-linux*)
26606 emul_name="-melf64lppc"
26608 *-*-linux*)
26609 emul_name="-melf64ppc"
26611 *-*-freebsd*)
26612 emul_name="-melf64ppc_fbsd"
26614 esac
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26616 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26617 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26618 $as_echo_n "(cached) " >&6
26619 else
26620 gcc_cv_ld_no_dot_syms=no
26621 if test x"$ld_is_gold" = xyes; then
26622 gcc_cv_ld_no_dot_syms=yes
26623 elif test $in_tree_ld = yes ; then
26624 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
26625 gcc_cv_ld_no_dot_syms=yes
26627 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26628 cat > conftest1.s <<EOF
26629 .text
26630 bl .foo
26632 cat > conftest2.s <<EOF
26633 .section ".opd","aw"
26634 .align 3
26635 .globl foo
26636 .type foo,@function
26637 foo:
26638 .quad .LEfoo,.TOC.@tocbase,0
26639 .text
26640 .LEfoo:
26642 .size foo,.-.LEfoo
26644 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26645 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26646 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26647 gcc_cv_ld_no_dot_syms=yes
26649 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26654 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26655 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26657 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26662 $as_echo_n "checking linker large toc support... " >&6; }
26663 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26664 $as_echo_n "(cached) " >&6
26665 else
26666 gcc_cv_ld_large_toc=no
26667 if test x"$ld_is_gold" = xyes; then
26668 gcc_cv_ld_large_toc=yes
26669 elif test $in_tree_ld = yes ; then
26670 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
26671 gcc_cv_ld_large_toc=yes
26673 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26674 cat > conftest.s <<EOF
26675 .section ".tbss","awT",@nobits
26676 .align 3
26677 ie0: .space 8
26678 .global _start
26679 .text
26680 _start:
26681 addis 9,13,ie0@got@tprel@ha
26682 ld 9,ie0@got@tprel@l(9)
26684 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26685 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26686 gcc_cv_ld_large_toc=yes
26688 rm -f conftest conftest.o conftest.s
26692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26693 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26694 if test x"$gcc_cv_ld_large_toc" = xyes; then
26696 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26700 esac
26702 case "$target" in
26703 *-*-aix*)
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26705 $as_echo_n "checking linker large toc support... " >&6; }
26706 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26707 $as_echo_n "(cached) " >&6
26708 else
26709 gcc_cv_ld_large_toc=no
26710 if test x$gcc_cv_as != x ; then
26711 cat > conftest.s <<EOF
26712 .toc
26713 LC..1:
26714 .tc a[TC],a[RW]
26715 .extern a[RW]
26716 .csect .text[PR]
26717 .largetoctest:
26718 addis 9,LC..1@u(2)
26719 ld 3,LC..1@l(9)
26721 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26722 gcc_cv_ld_large_toc=yes
26724 rm -f conftest conftest.o conftest.s
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26729 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26730 if test x"$gcc_cv_ld_large_toc" = xyes; then
26732 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26736 esac
26738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26739 $as_echo_n "checking linker --build-id support... " >&6; }
26740 if test "${gcc_cv_ld_buildid+set}" = set; then :
26741 $as_echo_n "(cached) " >&6
26742 else
26743 gcc_cv_ld_buildid=no
26744 if test $in_tree_ld = yes ; then
26745 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26746 "$gcc_cv_gld_minor_version" -ge 18 -o \
26747 "$gcc_cv_gld_major_version" -gt 2 \
26748 && test $in_tree_ld_is_elf = yes; then
26749 gcc_cv_ld_buildid=yes
26751 elif test x$gcc_cv_ld != x; then
26752 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26753 gcc_cv_ld_buildid=yes
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26758 $as_echo "$gcc_cv_ld_buildid" >&6; }
26759 if test x"$gcc_cv_ld_buildid" = xyes; then
26761 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26765 # Check whether --enable-linker-build-id was given.
26766 if test "${enable_linker_build_id+set}" = set; then :
26767 enableval=$enable_linker_build_id;
26768 else
26769 enable_linker_build_id=no
26773 if test x"$enable_linker_build_id" = xyes; then
26774 if test x"$gcc_cv_ld_buildid" = xyes; then
26776 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26778 else
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26780 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26784 # In binutils 2.21, GNU ld gained support for new emulations fully
26785 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26787 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26788 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26789 $as_echo_n "(cached) " >&6
26790 else
26791 gcc_cv_ld_sol2_emulation=no
26792 if test $in_tree_ld = yes ; then
26793 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26794 "$gcc_cv_gld_minor_version" -ge 21 -o \
26795 "$gcc_cv_gld_major_version" -gt 2 \
26796 && test $in_tree_ld_is_elf = yes; then
26797 gcc_cv_ld_sol2_emulation=yes
26799 elif test x$gcc_cv_ld != x; then
26800 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26801 grep _sol2 > /dev/null; then
26802 gcc_cv_ld_sol2_emulation=yes
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26807 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26808 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26810 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26815 $as_echo_n "checking linker --sysroot support... " >&6; }
26816 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26817 $as_echo_n "(cached) " >&6
26818 else
26819 gcc_cv_ld_sysroot=no
26820 if test $in_tree_ld = yes ; then
26821 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
26822 gcc_cv_ld_sysroot=yes
26824 elif test x$gcc_cv_ld != x; then
26825 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26826 gcc_cv_ld_sysroot=yes
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26831 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26832 if test x"$gcc_cv_ld_sysroot" = xyes; then
26834 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26838 if test x$with_sysroot = x && test x$host = x$target \
26839 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26840 && test "$prefix" != "NONE"; then
26842 cat >>confdefs.h <<_ACEOF
26843 #define PREFIX_INCLUDE_DIR "$prefix/include"
26844 _ACEOF
26848 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26849 if test "x$with_headers" != x; then
26850 target_header_dir=$with_headers
26851 elif test "x$with_sysroot" = x; then
26852 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26853 elif test "x$with_build_sysroot" != "x"; then
26854 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26855 elif test "x$with_sysroot" = xyes; then
26856 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26857 else
26858 target_header_dir="${with_sysroot}${native_system_header_dir}"
26860 else
26861 target_header_dir=${native_system_header_dir}
26864 # Test for stack protector support in target C library.
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26866 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26867 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26868 $as_echo_n "(cached) " >&6
26869 else
26870 gcc_cv_libc_provides_ssp=no
26871 case "$target" in
26872 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26873 # glibc 2.4 and later provides __stack_chk_fail and
26874 # either __stack_chk_guard, or TLS access to stack guard canary.
26875 if test -f $target_header_dir/features.h \
26876 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26877 $target_header_dir/features.h > /dev/null; then
26878 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26879 $target_header_dir/features.h > /dev/null; then
26880 gcc_cv_libc_provides_ssp=yes
26881 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26882 $target_header_dir/features.h > /dev/null \
26883 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26884 $target_header_dir/features.h > /dev/null; then
26885 gcc_cv_libc_provides_ssp=yes
26886 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26887 $target_header_dir/features.h > /dev/null && \
26888 test -f $target_header_dir/bits/uClibc_config.h && \
26889 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26890 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26891 gcc_cv_libc_provides_ssp=yes
26893 # all versions of Bionic support stack protector
26894 elif test -f $target_header_dir/sys/cdefs.h \
26895 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26896 $target_header_dir/sys/cdefs.h > /dev/null; then
26897 gcc_cv_libc_provides_ssp=yes
26900 *-*-gnu*)
26901 # Avoid complicated tests (see
26902 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26903 # simply assert that glibc does provide this, which is true for all
26904 # realistically usable GNU/Hurd configurations.
26905 gcc_cv_libc_provides_ssp=yes;;
26906 *-*-darwin* | *-*-freebsd*)
26907 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26908 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26909 gcc_cv_libc_provides_ssp=yes
26910 else
26911 echo "no __stack_chk_fail on this target"
26915 *) gcc_cv_libc_provides_ssp=no ;;
26916 esac
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26919 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26921 if test x$gcc_cv_libc_provides_ssp = xyes; then
26923 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26927 # Test for <sys/sdt.h> on the target.
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26930 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26931 have_sys_sdt_h=no
26932 if test -f $target_header_dir/sys/sdt.h; then
26933 have_sys_sdt_h=yes
26935 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26939 $as_echo "$have_sys_sdt_h" >&6; }
26941 # Check if TFmode long double should be used by default or not.
26942 # Some glibc targets used DFmode long double, but with glibc 2.4
26943 # and later they can use TFmode.
26944 case "$target" in
26945 powerpc*-*-linux* | \
26946 sparc*-*-linux* | \
26947 s390*-*-linux* | \
26948 alpha*-*-linux*)
26950 # Check whether --with-long-double-128 was given.
26951 if test "${with_long_double_128+set}" = set; then :
26952 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26953 else
26954 gcc_cv_target_ldbl128=no
26955 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26956 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26957 && gcc_cv_target_ldbl128=yes
26962 esac
26963 if test x$gcc_cv_target_ldbl128 = xyes; then
26965 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26970 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26971 gcc_cv_target_dl_iterate_phdr=unknown
26972 case "$target" in
26973 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26974 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26975 # libdl there, both complicating its use and breaking compatibility
26976 # between Solaris 10 updates.
26977 *-*-solaris2.1[1-9]*)
26978 # <link.h> needs both a dl_iterate_phdr declaration and support for
26979 # compilation with largefile support.
26980 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26981 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26982 gcc_cv_target_dl_iterate_phdr=yes
26983 else
26984 gcc_cv_target_dl_iterate_phdr=no
26987 esac
26989 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26991 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26995 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26997 # We no longer support different GC mechanisms. Emit an error if
26998 # the user configures with --with-gc.
27000 # Check whether --with-gc was given.
27001 if test "${with_gc+set}" = set; then :
27002 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27006 # Libraries to use on the host. This will normally be set by the top
27007 # level Makefile. Here we simply capture the value for our Makefile.
27008 if test -z "${HOST_LIBS+set}"; then
27009 HOST_LIBS=
27013 # Use the system's zlib library.
27014 zlibdir=-L../zlib
27015 zlibinc="-I\$(srcdir)/../zlib"
27017 # Check whether --with-system-zlib was given.
27018 if test "${with_system_zlib+set}" = set; then :
27019 withval=$with_system_zlib; zlibdir=
27020 zlibinc=
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27029 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27030 # Check whether --enable-maintainer-mode was given.
27031 if test "${enable_maintainer_mode+set}" = set; then :
27032 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27033 else
27034 maintainer_mode=no
27038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27039 $as_echo "$maintainer_mode" >&6; }
27041 if test "$maintainer_mode" = "yes"; then
27042 MAINT=''
27043 else
27044 MAINT='#'
27047 # --------------
27048 # Language hooks
27049 # --------------
27051 # Make empty files to contain the specs and options for each language.
27052 # Then add #include lines to for a compiler that has specs and/or options.
27054 subdirs=
27055 lang_opt_files=
27056 lang_specs_files=
27057 lang_tree_files=
27058 # These (without "all_") are set in each config-lang.in.
27059 # `language' must be a single word so is spelled singularly.
27060 all_languages=
27061 all_compilers=
27062 all_outputs='Makefile'
27063 # List of language makefile fragments.
27064 all_lang_makefrags=
27065 # Additional files for gengtype
27066 all_gtfiles="$target_gtfiles"
27068 # These are the languages that are set in --enable-languages,
27069 # and are available in the GCC tree.
27070 all_selected_languages=
27072 # Add the language fragments.
27073 # Languages are added via two mechanisms. Some information must be
27074 # recorded in makefile variables, these are defined in config-lang.in.
27075 # We accumulate them and plug them into the main Makefile.
27076 # The other mechanism is a set of hooks for each of the main targets
27077 # like `clean', `install', etc.
27079 language_hooks="Make-hooks"
27081 for lang in ${srcdir}/*/config-lang.in
27083 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27085 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27086 if test "x$lang_alias" = x
27087 then
27088 echo "$lang doesn't set \$language." 1>&2
27089 exit 1
27091 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27092 subdirs="$subdirs $subdir"
27094 # $gcc_subdir is where the gcc integration files are to be found
27095 # for a language, both for internal compiler purposes (compiler
27096 # sources implementing front-end to GCC tree converters), and for
27097 # build infrastructure purposes (Make-lang.in, etc.)
27099 # This will be <subdir> (relative to $srcdir) if a line like
27100 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27101 # is found in <langdir>/config-lang.in, and will remain <langdir>
27102 # otherwise.
27104 # Except for the language alias (fetched above), the regular
27105 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27106 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27107 # only this and the language alias.
27109 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27110 if [ "$gcc_subdir" = "" ]; then
27111 gcc_subdir="$subdir"
27114 case ",$enable_languages," in
27115 *,$lang_alias,*)
27116 all_selected_languages="$all_selected_languages $lang_alias"
27117 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27118 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27121 esac
27123 language=
27124 boot_language=
27125 compilers=
27126 outputs=
27127 gtfiles=
27128 subdir_requires=
27129 . ${srcdir}/$gcc_subdir/config-lang.in
27130 if test "x$language" = x
27131 then
27132 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27133 exit 1
27136 ok=:
27137 case ",$enable_languages," in
27138 *,$lang_alias,*) ;;
27140 for i in $subdir_requires; do
27141 test -f "${srcdir}/$i/config-lang.in" && continue
27142 ok=false
27143 break
27144 done
27146 esac
27147 $ok || continue
27149 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27150 if test -f $srcdir/$gcc_subdir/lang.opt; then
27151 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27152 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27154 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27155 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27157 all_languages="$all_languages $language"
27158 all_compilers="$all_compilers $compilers"
27159 all_outputs="$all_outputs $outputs"
27160 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27161 case ",$enable_languages," in
27162 *,lto,*)
27164 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27166 enable_lto=yes
27169 *) ;;
27170 esac
27171 done
27173 check_languages=
27174 for language in $all_selected_languages
27176 check_languages="$check_languages check-$language"
27177 done
27179 # We link each language in with a set of hooks, reached indirectly via
27180 # lang.${target}. Only do so for selected languages.
27182 rm -f Make-hooks
27183 touch Make-hooks
27184 target_list="all.cross start.encap rest.encap tags \
27185 install-common install-man install-info install-pdf install-html dvi \
27186 pdf html uninstall info man srcextra srcman srcinfo \
27187 mostlyclean clean distclean maintainer-clean install-plugin"
27189 for t in $target_list
27192 for lang in $all_selected_languages
27194 x="$x $lang.$t"
27195 done
27196 echo "lang.$t: $x" >> Make-hooks
27197 done
27199 # --------
27200 # Option include files
27201 # --------
27203 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27204 option_includes="option-includes.mk"
27207 # --------
27208 # UNSORTED
27209 # --------
27211 # Create .gdbinit.
27213 echo "dir ." > .gdbinit
27214 echo "dir ${srcdir}" >> .gdbinit
27215 if test x$gdb_needs_out_file_path = xyes
27216 then
27217 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27219 if test "x$subdirs" != x; then
27220 for s in $subdirs
27222 echo "dir ${srcdir}/$s" >> .gdbinit
27223 done
27225 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27227 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27231 # Find a directory in which to install a shared libgcc.
27233 # Check whether --enable-version-specific-runtime-libs was given.
27234 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27235 enableval=$enable_version_specific_runtime_libs;
27239 # Substitute configuration variables
27302 # Echo link setup.
27303 if test x${build} = x${host} ; then
27304 if test x${host} = x${target} ; then
27305 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27306 else
27307 echo "Links are now set up to build a cross-compiler" 1>&2
27308 echo " from ${host} to ${target}." 1>&2
27310 else
27311 if test x${host} = x${target} ; then
27312 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27313 echo " for ${target}." 1>&2
27314 else
27315 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27316 echo " from ${host} to ${target}." 1>&2
27328 if test "x${CLOOGLIBS}" != "x" ; then
27330 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27334 # Check for plugin support
27335 # Check whether --enable-plugin was given.
27336 if test "${enable_plugin+set}" = set; then :
27337 enableval=$enable_plugin; enable_plugin=$enableval
27338 else
27339 enable_plugin=yes; default_plugin=yes
27343 pluginlibs=
27345 case "${host}" in
27346 *-*-darwin*)
27347 if test x$build = x$host; then
27348 export_sym_check="nm${exeext} -g"
27349 elif test x$host = x$target; then
27350 export_sym_check="$gcc_cv_nm -g"
27351 else
27352 export_sym_check=
27356 if test x$build = x$host; then
27357 export_sym_check="objdump${exeext} -T"
27358 elif test x$host = x$target; then
27359 export_sym_check="$gcc_cv_objdump -T"
27360 else
27361 export_sym_check=
27364 esac
27366 if test x"$enable_plugin" = x"yes"; then
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27369 $as_echo_n "checking for exported symbols... " >&6; }
27370 if test "x$export_sym_check" != x; then
27371 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27372 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27373 if $export_sym_check conftest | grep foobar > /dev/null; then
27374 : # No need to use a flag
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27376 $as_echo "yes" >&6; }
27377 else
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27379 $as_echo "yes" >&6; }
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27381 $as_echo_n "checking for -rdynamic... " >&6; }
27382 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27383 if $export_sym_check conftest | grep foobar > /dev/null; then
27384 plugin_rdynamic=yes
27385 pluginlibs="-rdynamic"
27386 else
27387 plugin_rdynamic=no
27388 enable_plugin=no
27390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27391 $as_echo "$plugin_rdynamic" >&6; }
27393 else
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27395 $as_echo "unable to check" >&6; }
27398 # Check -ldl
27399 saved_LIBS="$LIBS"
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27401 $as_echo_n "checking for library containing dlopen... " >&6; }
27402 if test "${ac_cv_search_dlopen+set}" = set; then :
27403 $as_echo_n "(cached) " >&6
27404 else
27405 ac_func_search_save_LIBS=$LIBS
27406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27407 /* end confdefs.h. */
27409 /* Override any GCC internal prototype to avoid an error.
27410 Use char because int might match the return type of a GCC
27411 builtin and then its argument prototype would still apply. */
27412 #ifdef __cplusplus
27413 extern "C"
27414 #endif
27415 char dlopen ();
27417 main ()
27419 return dlopen ();
27421 return 0;
27423 _ACEOF
27424 for ac_lib in '' dl; do
27425 if test -z "$ac_lib"; then
27426 ac_res="none required"
27427 else
27428 ac_res=-l$ac_lib
27429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27431 if ac_fn_c_try_link "$LINENO"; then :
27432 ac_cv_search_dlopen=$ac_res
27434 rm -f core conftest.err conftest.$ac_objext \
27435 conftest$ac_exeext
27436 if test "${ac_cv_search_dlopen+set}" = set; then :
27437 break
27439 done
27440 if test "${ac_cv_search_dlopen+set}" = set; then :
27442 else
27443 ac_cv_search_dlopen=no
27445 rm conftest.$ac_ext
27446 LIBS=$ac_func_search_save_LIBS
27448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27449 $as_echo "$ac_cv_search_dlopen" >&6; }
27450 ac_res=$ac_cv_search_dlopen
27451 if test "$ac_res" != no; then :
27452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27456 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27457 pluginlibs="$pluginlibs -ldl"
27459 LIBS="$saved_LIBS"
27461 # Check that we can build shared objects with -fPIC -shared
27462 saved_LDFLAGS="$LDFLAGS"
27463 saved_CFLAGS="$CFLAGS"
27464 case "${host}" in
27465 *-*-darwin*)
27466 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27467 CFLAGS="$CFLAGS -fPIC"
27468 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27471 CFLAGS="$CFLAGS -fPIC"
27472 LDFLAGS="$LDFLAGS -fPIC -shared"
27474 esac
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27476 $as_echo_n "checking for -fPIC -shared... " >&6; }
27477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27478 /* end confdefs.h. */
27479 extern int X;
27481 main ()
27483 return X == 0;
27485 return 0;
27487 _ACEOF
27488 if ac_fn_c_try_link "$LINENO"; then :
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27490 $as_echo "yes" >&6; }; have_pic_shared=yes
27491 else
27492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27493 $as_echo "no" >&6; }; have_pic_shared=no
27495 rm -f core conftest.err conftest.$ac_objext \
27496 conftest$ac_exeext conftest.$ac_ext
27497 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27498 pluginlibs=
27499 enable_plugin=no
27501 LDFLAGS="$saved_LDFLAGS"
27502 CFLAGS="$saved_CFLAGS"
27504 # If plugin support had been requested but not available, fail.
27505 if test x"$enable_plugin" = x"no" ; then
27506 if test x"$default_plugin" != x"yes"; then
27507 as_fn_error "
27508 Building GCC with plugin support requires a host that supports
27509 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27516 if test x"$enable_plugin" = x"yes"; then
27518 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27523 # Check whether --enable-libquadmath-support was given.
27524 if test "${enable_libquadmath_support+set}" = set; then :
27525 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27526 else
27527 ENABLE_LIBQUADMATH_SUPPORT=yes
27530 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27532 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27537 # Specify what hash style to use by default.
27539 # Check whether --with-linker-hash-style was given.
27540 if test "${with_linker_hash_style+set}" = set; then :
27541 withval=$with_linker_hash_style; case x"$withval" in
27542 xsysv)
27543 LINKER_HASH_STYLE=sysv
27545 xgnu)
27546 LINKER_HASH_STYLE=gnu
27548 xboth)
27549 LINKER_HASH_STYLE=both
27552 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27554 esac
27555 else
27556 LINKER_HASH_STYLE=''
27559 if test x"${LINKER_HASH_STYLE}" != x; then
27561 cat >>confdefs.h <<_ACEOF
27562 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27563 _ACEOF
27567 # Configure the subdirectories
27568 # AC_CONFIG_SUBDIRS($subdirs)
27570 # Create the Makefile
27571 # and configure language subdirectories
27572 ac_config_files="$ac_config_files $all_outputs"
27575 ac_config_commands="$ac_config_commands default"
27577 cat >confcache <<\_ACEOF
27578 # This file is a shell script that caches the results of configure
27579 # tests run on this system so they can be shared between configure
27580 # scripts and configure runs, see configure's option --config-cache.
27581 # It is not useful on other systems. If it contains results you don't
27582 # want to keep, you may remove or edit it.
27584 # config.status only pays attention to the cache file if you give it
27585 # the --recheck option to rerun configure.
27587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27589 # following values.
27591 _ACEOF
27593 # The following way of writing the cache mishandles newlines in values,
27594 # but we know of no workaround that is simple, portable, and efficient.
27595 # So, we kill variables containing newlines.
27596 # Ultrix sh set writes to stderr and can't be redirected directly,
27597 # and sets the high bit in the cache file unless we assign to the vars.
27599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27600 eval ac_val=\$$ac_var
27601 case $ac_val in #(
27602 *${as_nl}*)
27603 case $ac_var in #(
27604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27605 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27606 esac
27607 case $ac_var in #(
27608 _ | IFS | as_nl) ;; #(
27609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27610 *) { eval $ac_var=; unset $ac_var;} ;;
27611 esac ;;
27612 esac
27613 done
27615 (set) 2>&1 |
27616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27617 *${as_nl}ac_space=\ *)
27618 # `set' does not quote correctly, so add quotes: double-quote
27619 # substitution turns \\\\ into \\, and sed turns \\ into \.
27620 sed -n \
27621 "s/'/'\\\\''/g;
27622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27623 ;; #(
27625 # `set' quotes correctly as required by POSIX, so do not add quotes.
27626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27628 esac |
27629 sort
27631 sed '
27632 /^ac_cv_env_/b end
27633 t clear
27634 :clear
27635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27636 t end
27637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27638 :end' >>confcache
27639 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27640 if test -w "$cache_file"; then
27641 test "x$cache_file" != "x/dev/null" &&
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27643 $as_echo "$as_me: updating cache $cache_file" >&6;}
27644 cat confcache >$cache_file
27645 else
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27647 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27650 rm -f confcache
27652 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27653 # Let make expand exec_prefix.
27654 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27656 DEFS=-DHAVE_CONFIG_H
27658 ac_libobjs=
27659 ac_ltlibobjs=
27660 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27661 # 1. Remove the extension, and $U if already installed.
27662 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27663 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27664 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27665 # will be set to the directory where LIBOBJS objects are built.
27666 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27667 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27668 done
27669 LIBOBJS=$ac_libobjs
27671 LTLIBOBJS=$ac_ltlibobjs
27676 : ${CONFIG_STATUS=./config.status}
27677 ac_write_fail=0
27678 ac_clean_files_save=$ac_clean_files
27679 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27681 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27682 as_write_fail=0
27683 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27684 #! $SHELL
27685 # Generated by $as_me.
27686 # Run this file to recreate the current configuration.
27687 # Compiler output produced by configure, useful for debugging
27688 # configure, is in config.log if it exists.
27690 debug=false
27691 ac_cs_recheck=false
27692 ac_cs_silent=false
27694 SHELL=\${CONFIG_SHELL-$SHELL}
27695 export SHELL
27696 _ASEOF
27697 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27698 ## -------------------- ##
27699 ## M4sh Initialization. ##
27700 ## -------------------- ##
27702 # Be more Bourne compatible
27703 DUALCASE=1; export DUALCASE # for MKS sh
27704 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27705 emulate sh
27706 NULLCMD=:
27707 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27708 # is contrary to our usage. Disable this feature.
27709 alias -g '${1+"$@"}'='"$@"'
27710 setopt NO_GLOB_SUBST
27711 else
27712 case `(set -o) 2>/dev/null` in #(
27713 *posix*) :
27714 set -o posix ;; #(
27715 *) :
27717 esac
27721 as_nl='
27723 export as_nl
27724 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27725 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27727 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27728 # Prefer a ksh shell builtin over an external printf program on Solaris,
27729 # but without wasting forks for bash or zsh.
27730 if test -z "$BASH_VERSION$ZSH_VERSION" \
27731 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27732 as_echo='print -r --'
27733 as_echo_n='print -rn --'
27734 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27735 as_echo='printf %s\n'
27736 as_echo_n='printf %s'
27737 else
27738 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27739 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27740 as_echo_n='/usr/ucb/echo -n'
27741 else
27742 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27743 as_echo_n_body='eval
27744 arg=$1;
27745 case $arg in #(
27746 *"$as_nl"*)
27747 expr "X$arg" : "X\\(.*\\)$as_nl";
27748 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27749 esac;
27750 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27752 export as_echo_n_body
27753 as_echo_n='sh -c $as_echo_n_body as_echo'
27755 export as_echo_body
27756 as_echo='sh -c $as_echo_body as_echo'
27759 # The user is always right.
27760 if test "${PATH_SEPARATOR+set}" != set; then
27761 PATH_SEPARATOR=:
27762 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27763 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27764 PATH_SEPARATOR=';'
27769 # IFS
27770 # We need space, tab and new line, in precisely that order. Quoting is
27771 # there to prevent editors from complaining about space-tab.
27772 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27773 # splitting by setting IFS to empty value.)
27774 IFS=" "" $as_nl"
27776 # Find who we are. Look in the path if we contain no directory separator.
27777 case $0 in #((
27778 *[\\/]* ) as_myself=$0 ;;
27779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27780 for as_dir in $PATH
27782 IFS=$as_save_IFS
27783 test -z "$as_dir" && as_dir=.
27784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27785 done
27786 IFS=$as_save_IFS
27789 esac
27790 # We did not find ourselves, most probably we were run as `sh COMMAND'
27791 # in which case we are not to be found in the path.
27792 if test "x$as_myself" = x; then
27793 as_myself=$0
27795 if test ! -f "$as_myself"; then
27796 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27797 exit 1
27800 # Unset variables that we do not need and which cause bugs (e.g. in
27801 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27802 # suppresses any "Segmentation fault" message there. '((' could
27803 # trigger a bug in pdksh 5.2.14.
27804 for as_var in BASH_ENV ENV MAIL MAILPATH
27805 do eval test x\${$as_var+set} = xset \
27806 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27807 done
27808 PS1='$ '
27809 PS2='> '
27810 PS4='+ '
27812 # NLS nuisances.
27813 LC_ALL=C
27814 export LC_ALL
27815 LANGUAGE=C
27816 export LANGUAGE
27818 # CDPATH.
27819 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27822 # as_fn_error ERROR [LINENO LOG_FD]
27823 # ---------------------------------
27824 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27825 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27826 # script with status $?, using 1 if that was 0.
27827 as_fn_error ()
27829 as_status=$?; test $as_status -eq 0 && as_status=1
27830 if test "$3"; then
27831 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27832 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27834 $as_echo "$as_me: error: $1" >&2
27835 as_fn_exit $as_status
27836 } # as_fn_error
27839 # as_fn_set_status STATUS
27840 # -----------------------
27841 # Set $? to STATUS, without forking.
27842 as_fn_set_status ()
27844 return $1
27845 } # as_fn_set_status
27847 # as_fn_exit STATUS
27848 # -----------------
27849 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27850 as_fn_exit ()
27852 set +e
27853 as_fn_set_status $1
27854 exit $1
27855 } # as_fn_exit
27857 # as_fn_unset VAR
27858 # ---------------
27859 # Portably unset VAR.
27860 as_fn_unset ()
27862 { eval $1=; unset $1;}
27864 as_unset=as_fn_unset
27865 # as_fn_append VAR VALUE
27866 # ----------------------
27867 # Append the text in VALUE to the end of the definition contained in VAR. Take
27868 # advantage of any shell optimizations that allow amortized linear growth over
27869 # repeated appends, instead of the typical quadratic growth present in naive
27870 # implementations.
27871 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27872 eval 'as_fn_append ()
27874 eval $1+=\$2
27876 else
27877 as_fn_append ()
27879 eval $1=\$$1\$2
27881 fi # as_fn_append
27883 # as_fn_arith ARG...
27884 # ------------------
27885 # Perform arithmetic evaluation on the ARGs, and store the result in the
27886 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27887 # must be portable across $(()) and expr.
27888 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27889 eval 'as_fn_arith ()
27891 as_val=$(( $* ))
27893 else
27894 as_fn_arith ()
27896 as_val=`expr "$@" || test $? -eq 1`
27898 fi # as_fn_arith
27901 if expr a : '\(a\)' >/dev/null 2>&1 &&
27902 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27903 as_expr=expr
27904 else
27905 as_expr=false
27908 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27909 as_basename=basename
27910 else
27911 as_basename=false
27914 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27915 as_dirname=dirname
27916 else
27917 as_dirname=false
27920 as_me=`$as_basename -- "$0" ||
27921 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27922 X"$0" : 'X\(//\)$' \| \
27923 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27924 $as_echo X/"$0" |
27925 sed '/^.*\/\([^/][^/]*\)\/*$/{
27926 s//\1/
27929 /^X\/\(\/\/\)$/{
27930 s//\1/
27933 /^X\/\(\/\).*/{
27934 s//\1/
27937 s/.*/./; q'`
27939 # Avoid depending upon Character Ranges.
27940 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27941 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27942 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27943 as_cr_digits='0123456789'
27944 as_cr_alnum=$as_cr_Letters$as_cr_digits
27946 ECHO_C= ECHO_N= ECHO_T=
27947 case `echo -n x` in #(((((
27948 -n*)
27949 case `echo 'xy\c'` in
27950 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27951 xy) ECHO_C='\c';;
27952 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27953 ECHO_T=' ';;
27954 esac;;
27956 ECHO_N='-n';;
27957 esac
27959 rm -f conf$$ conf$$.exe conf$$.file
27960 if test -d conf$$.dir; then
27961 rm -f conf$$.dir/conf$$.file
27962 else
27963 rm -f conf$$.dir
27964 mkdir conf$$.dir 2>/dev/null
27966 if (echo >conf$$.file) 2>/dev/null; then
27967 if ln -s conf$$.file conf$$ 2>/dev/null; then
27968 as_ln_s='ln -s'
27969 # ... but there are two gotchas:
27970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27972 # In both cases, we have to default to `cp -p'.
27973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27974 as_ln_s='cp -p'
27975 elif ln conf$$.file conf$$ 2>/dev/null; then
27976 as_ln_s=ln
27977 else
27978 as_ln_s='cp -p'
27980 else
27981 as_ln_s='cp -p'
27983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27984 rmdir conf$$.dir 2>/dev/null
27987 # as_fn_mkdir_p
27988 # -------------
27989 # Create "$as_dir" as a directory, including parents if necessary.
27990 as_fn_mkdir_p ()
27993 case $as_dir in #(
27994 -*) as_dir=./$as_dir;;
27995 esac
27996 test -d "$as_dir" || eval $as_mkdir_p || {
27997 as_dirs=
27998 while :; do
27999 case $as_dir in #(
28000 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28001 *) as_qdir=$as_dir;;
28002 esac
28003 as_dirs="'$as_qdir' $as_dirs"
28004 as_dir=`$as_dirname -- "$as_dir" ||
28005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28006 X"$as_dir" : 'X\(//\)[^/]' \| \
28007 X"$as_dir" : 'X\(//\)$' \| \
28008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28009 $as_echo X"$as_dir" |
28010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28011 s//\1/
28014 /^X\(\/\/\)[^/].*/{
28015 s//\1/
28018 /^X\(\/\/\)$/{
28019 s//\1/
28022 /^X\(\/\).*/{
28023 s//\1/
28026 s/.*/./; q'`
28027 test -d "$as_dir" && break
28028 done
28029 test -z "$as_dirs" || eval "mkdir $as_dirs"
28030 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28033 } # as_fn_mkdir_p
28034 if mkdir -p . 2>/dev/null; then
28035 as_mkdir_p='mkdir -p "$as_dir"'
28036 else
28037 test -d ./-p && rmdir ./-p
28038 as_mkdir_p=false
28041 if test -x / >/dev/null 2>&1; then
28042 as_test_x='test -x'
28043 else
28044 if ls -dL / >/dev/null 2>&1; then
28045 as_ls_L_option=L
28046 else
28047 as_ls_L_option=
28049 as_test_x='
28050 eval sh -c '\''
28051 if test -d "$1"; then
28052 test -d "$1/.";
28053 else
28054 case $1 in #(
28055 -*)set "./$1";;
28056 esac;
28057 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28058 ???[sx]*):;;*)false;;esac;fi
28059 '\'' sh
28062 as_executable_p=$as_test_x
28064 # Sed expression to map a string onto a valid CPP name.
28065 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28067 # Sed expression to map a string onto a valid variable name.
28068 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28071 exec 6>&1
28072 ## ----------------------------------- ##
28073 ## Main body of $CONFIG_STATUS script. ##
28074 ## ----------------------------------- ##
28075 _ASEOF
28076 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28079 # Save the log message, to keep $0 and so on meaningful, and to
28080 # report actual input values of CONFIG_FILES etc. instead of their
28081 # values after options handling.
28082 ac_log="
28083 This file was extended by $as_me, which was
28084 generated by GNU Autoconf 2.64. Invocation command line was
28086 CONFIG_FILES = $CONFIG_FILES
28087 CONFIG_HEADERS = $CONFIG_HEADERS
28088 CONFIG_LINKS = $CONFIG_LINKS
28089 CONFIG_COMMANDS = $CONFIG_COMMANDS
28090 $ $0 $@
28092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28095 _ACEOF
28097 case $ac_config_files in *"
28098 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28099 esac
28101 case $ac_config_headers in *"
28102 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28103 esac
28106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28107 # Files that config.status was made for.
28108 config_files="$ac_config_files"
28109 config_headers="$ac_config_headers"
28110 config_commands="$ac_config_commands"
28112 _ACEOF
28114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28115 ac_cs_usage="\
28116 \`$as_me' instantiates files and other configuration actions
28117 from templates according to the current configuration. Unless the files
28118 and actions are specified as TAGs, all are instantiated by default.
28120 Usage: $0 [OPTION]... [TAG]...
28122 -h, --help print this help, then exit
28123 -V, --version print version number and configuration settings, then exit
28124 -q, --quiet, --silent
28125 do not print progress messages
28126 -d, --debug don't remove temporary files
28127 --recheck update $as_me by reconfiguring in the same conditions
28128 --file=FILE[:TEMPLATE]
28129 instantiate the configuration file FILE
28130 --header=FILE[:TEMPLATE]
28131 instantiate the configuration header FILE
28133 Configuration files:
28134 $config_files
28136 Configuration headers:
28137 $config_headers
28139 Configuration commands:
28140 $config_commands
28142 Report bugs to the package provider."
28144 _ACEOF
28145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28146 ac_cs_version="\\
28147 config.status
28148 configured by $0, generated by GNU Autoconf 2.64,
28149 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28151 Copyright (C) 2009 Free Software Foundation, Inc.
28152 This config.status script is free software; the Free Software Foundation
28153 gives unlimited permission to copy, distribute and modify it."
28155 ac_pwd='$ac_pwd'
28156 srcdir='$srcdir'
28157 AWK='$AWK'
28158 test -n "\$AWK" || AWK=awk
28159 _ACEOF
28161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28162 # The default lists apply if the user does not specify any file.
28163 ac_need_defaults=:
28164 while test $# != 0
28166 case $1 in
28167 --*=*)
28168 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28169 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28170 ac_shift=:
28173 ac_option=$1
28174 ac_optarg=$2
28175 ac_shift=shift
28177 esac
28179 case $ac_option in
28180 # Handling of the options.
28181 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28182 ac_cs_recheck=: ;;
28183 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28184 $as_echo "$ac_cs_version"; exit ;;
28185 --debug | --debu | --deb | --de | --d | -d )
28186 debug=: ;;
28187 --file | --fil | --fi | --f )
28188 $ac_shift
28189 case $ac_optarg in
28190 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28191 esac
28192 as_fn_append CONFIG_FILES " '$ac_optarg'"
28193 ac_need_defaults=false;;
28194 --header | --heade | --head | --hea )
28195 $ac_shift
28196 case $ac_optarg in
28197 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28198 esac
28199 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28200 ac_need_defaults=false;;
28201 --he | --h)
28202 # Conflict between --help and --header
28203 as_fn_error "ambiguous option: \`$1'
28204 Try \`$0 --help' for more information.";;
28205 --help | --hel | -h )
28206 $as_echo "$ac_cs_usage"; exit ;;
28207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28208 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28209 ac_cs_silent=: ;;
28211 # This is an error.
28212 -*) as_fn_error "unrecognized option: \`$1'
28213 Try \`$0 --help' for more information." ;;
28215 *) as_fn_append ac_config_targets " $1"
28216 ac_need_defaults=false ;;
28218 esac
28219 shift
28220 done
28222 ac_configure_extra_args=
28224 if $ac_cs_silent; then
28225 exec 6>/dev/null
28226 ac_configure_extra_args="$ac_configure_extra_args --silent"
28229 _ACEOF
28230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28231 if \$ac_cs_recheck; then
28232 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28233 shift
28234 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28235 CONFIG_SHELL='$SHELL'
28236 export CONFIG_SHELL
28237 exec "\$@"
28240 _ACEOF
28241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28242 exec 5>>config.log
28244 echo
28245 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28246 ## Running $as_me. ##
28247 _ASBOX
28248 $as_echo "$ac_log"
28249 } >&5
28251 _ACEOF
28252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28254 # INIT-COMMANDS
28256 subdirs='$subdirs'
28258 _ACEOF
28260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28262 # Handling of arguments.
28263 for ac_config_target in $ac_config_targets
28265 case $ac_config_target in
28266 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28267 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28268 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28269 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28270 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28271 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28273 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28274 esac
28275 done
28278 # If the user did not use the arguments to specify the items to instantiate,
28279 # then the envvar interface is used. Set only those that are not.
28280 # We use the long form for the default assignment because of an extremely
28281 # bizarre bug on SunOS 4.1.3.
28282 if $ac_need_defaults; then
28283 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28284 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28285 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28288 # Have a temporary directory for convenience. Make it in the build tree
28289 # simply because there is no reason against having it here, and in addition,
28290 # creating and moving files from /tmp can sometimes cause problems.
28291 # Hook for its removal unless debugging.
28292 # Note that there is a small window in which the directory will not be cleaned:
28293 # after its creation but before its name has been assigned to `$tmp'.
28294 $debug ||
28296 tmp=
28297 trap 'exit_status=$?
28298 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28300 trap 'as_fn_exit 1' 1 2 13 15
28302 # Create a (secure) tmp directory for tmp files.
28305 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28306 test -n "$tmp" && test -d "$tmp"
28307 } ||
28309 tmp=./conf$$-$RANDOM
28310 (umask 077 && mkdir "$tmp")
28311 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28313 # Set up the scripts for CONFIG_FILES section.
28314 # No need to generate them if there are no CONFIG_FILES.
28315 # This happens for instance with `./config.status config.h'.
28316 if test -n "$CONFIG_FILES"; then
28318 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28319 ac_cs_awk_getline=:
28320 ac_cs_awk_pipe_init=
28321 ac_cs_awk_read_file='
28322 while ((getline aline < (F[key])) > 0)
28323 print(aline)
28324 close(F[key])'
28325 ac_cs_awk_pipe_fini=
28326 else
28327 ac_cs_awk_getline=false
28328 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28329 ac_cs_awk_read_file='
28330 print "|#_!!_#|"
28331 print "cat " F[key] " &&"
28332 '$ac_cs_awk_pipe_init
28333 # The final `:' finishes the AND list.
28334 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28336 ac_cr=`echo X | tr X '\015'`
28337 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28338 # But we know of no other shell where ac_cr would be empty at this
28339 # point, so we can use a bashism as a fallback.
28340 if test "x$ac_cr" = x; then
28341 eval ac_cr=\$\'\\r\'
28343 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28344 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28345 ac_cs_awk_cr='\r'
28346 else
28347 ac_cs_awk_cr=$ac_cr
28350 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28351 _ACEOF
28353 # Create commands to substitute file output variables.
28355 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28356 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28357 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28358 echo "_ACAWK" &&
28359 echo "_ACEOF"
28360 } >conf$$files.sh &&
28361 . ./conf$$files.sh ||
28362 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28363 rm -f conf$$files.sh
28366 echo "cat >conf$$subs.awk <<_ACEOF" &&
28367 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28368 echo "_ACEOF"
28369 } >conf$$subs.sh ||
28370 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28371 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28372 ac_delim='%!_!# '
28373 for ac_last_try in false false false false false :; do
28374 . ./conf$$subs.sh ||
28375 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28377 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28378 if test $ac_delim_n = $ac_delim_num; then
28379 break
28380 elif $ac_last_try; then
28381 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28382 else
28383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28385 done
28386 rm -f conf$$subs.sh
28388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28389 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28390 _ACEOF
28391 sed -n '
28393 s/^/S["/; s/!.*/"]=/
28396 s/^[^!]*!//
28397 :repl
28398 t repl
28399 s/'"$ac_delim"'$//
28400 t delim
28403 s/\(.\{148\}\).*/\1/
28404 t more1
28405 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28408 b repl
28409 :more1
28410 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28413 s/.\{148\}//
28414 t nl
28415 :delim
28417 s/\(.\{148\}\).*/\1/
28418 t more2
28419 s/["\\]/\\&/g; s/^/"/; s/$/"/
28422 :more2
28423 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28426 s/.\{148\}//
28427 t delim
28428 ' <conf$$subs.awk | sed '
28429 /^[^""]/{
28431 s/\n//
28433 ' >>$CONFIG_STATUS || ac_write_fail=1
28434 rm -f conf$$subs.awk
28435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28436 _ACAWK
28437 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28438 for (key in S) S_is_set[key] = 1
28439 FS = "\a"
28440 \$ac_cs_awk_pipe_init
28443 line = $ 0
28444 nfields = split(line, field, "@")
28445 substed = 0
28446 len = length(field[1])
28447 for (i = 2; i < nfields; i++) {
28448 key = field[i]
28449 keylen = length(key)
28450 if (S_is_set[key]) {
28451 value = S[key]
28452 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28453 len += length(value) + length(field[++i])
28454 substed = 1
28455 } else
28456 len += 1 + keylen
28458 if (nfields == 3 && !substed) {
28459 key = field[2]
28460 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28461 \$ac_cs_awk_read_file
28462 next
28465 print line
28467 \$ac_cs_awk_pipe_fini
28468 _ACAWK
28469 _ACEOF
28470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28471 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28472 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28473 else
28475 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28476 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28477 _ACEOF
28479 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28480 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28481 # trailing colons and then remove the whole line if VPATH becomes empty
28482 # (actually we leave an empty line to preserve line numbers).
28483 if test "x$srcdir" = x.; then
28484 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28485 s/:*\$(srcdir):*/:/
28486 s/:*\${srcdir}:*/:/
28487 s/:*@srcdir@:*/:/
28488 s/^\([^=]*=[ ]*\):*/\1/
28489 s/:*$//
28490 s/^[^=]*=[ ]*$//
28494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28495 fi # test -n "$CONFIG_FILES"
28497 # Set up the scripts for CONFIG_HEADERS section.
28498 # No need to generate them if there are no CONFIG_HEADERS.
28499 # This happens for instance with `./config.status Makefile'.
28500 if test -n "$CONFIG_HEADERS"; then
28501 cat >"$tmp/defines.awk" <<\_ACAWK ||
28502 BEGIN {
28503 _ACEOF
28505 # Transform confdefs.h into an awk script `defines.awk', embedded as
28506 # here-document in config.status, that substitutes the proper values into
28507 # config.h.in to produce config.h.
28509 # Create a delimiter string that does not exist in confdefs.h, to ease
28510 # handling of long lines.
28511 ac_delim='%!_!# '
28512 for ac_last_try in false false :; do
28513 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28514 if test -z "$ac_t"; then
28515 break
28516 elif $ac_last_try; then
28517 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28518 else
28519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28521 done
28523 # For the awk script, D is an array of macro values keyed by name,
28524 # likewise P contains macro parameters if any. Preserve backslash
28525 # newline sequences.
28527 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28528 sed -n '
28529 s/.\{148\}/&'"$ac_delim"'/g
28530 t rset
28531 :rset
28532 s/^[ ]*#[ ]*define[ ][ ]*/ /
28533 t def
28535 :def
28536 s/\\$//
28537 t bsnl
28538 s/["\\]/\\&/g
28539 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28540 D["\1"]=" \3"/p
28541 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28543 :bsnl
28544 s/["\\]/\\&/g
28545 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28546 D["\1"]=" \3\\\\\\n"\\/p
28547 t cont
28548 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28549 t cont
28551 :cont
28553 s/.\{148\}/&'"$ac_delim"'/g
28554 t clear
28555 :clear
28556 s/\\$//
28557 t bsnlc
28558 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28560 :bsnlc
28561 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28562 b cont
28563 ' <confdefs.h | sed '
28564 s/'"$ac_delim"'/"\\\
28565 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28568 for (key in D) D_is_set[key] = 1
28569 FS = "\a"
28571 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28572 line = \$ 0
28573 split(line, arg, " ")
28574 if (arg[1] == "#") {
28575 defundef = arg[2]
28576 mac1 = arg[3]
28577 } else {
28578 defundef = substr(arg[1], 2)
28579 mac1 = arg[2]
28581 split(mac1, mac2, "(") #)
28582 macro = mac2[1]
28583 prefix = substr(line, 1, index(line, defundef) - 1)
28584 if (D_is_set[macro]) {
28585 # Preserve the white space surrounding the "#".
28586 print prefix "define", macro P[macro] D[macro]
28587 next
28588 } else {
28589 # Replace #undef with comments. This is necessary, for example,
28590 # in the case of _POSIX_SOURCE, which is predefined and required
28591 # on some systems where configure will not decide to define it.
28592 if (defundef == "undef") {
28593 print "/*", prefix defundef, macro, "*/"
28594 next
28598 { print }
28599 _ACAWK
28600 _ACEOF
28601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28602 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28603 fi # test -n "$CONFIG_HEADERS"
28606 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28607 shift
28608 for ac_tag
28610 case $ac_tag in
28611 :[FHLC]) ac_mode=$ac_tag; continue;;
28612 esac
28613 case $ac_mode$ac_tag in
28614 :[FHL]*:*);;
28615 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28616 :[FH]-) ac_tag=-:-;;
28617 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28618 esac
28619 ac_save_IFS=$IFS
28620 IFS=:
28621 set x $ac_tag
28622 IFS=$ac_save_IFS
28623 shift
28624 ac_file=$1
28625 shift
28627 case $ac_mode in
28628 :L) ac_source=$1;;
28629 :[FH])
28630 ac_file_inputs=
28631 for ac_f
28633 case $ac_f in
28634 -) ac_f="$tmp/stdin";;
28635 *) # Look for the file first in the build tree, then in the source tree
28636 # (if the path is not absolute). The absolute path cannot be DOS-style,
28637 # because $ac_f cannot contain `:'.
28638 test -f "$ac_f" ||
28639 case $ac_f in
28640 [\\/$]*) false;;
28641 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28642 esac ||
28643 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28644 esac
28645 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28646 as_fn_append ac_file_inputs " '$ac_f'"
28647 done
28649 # Let's still pretend it is `configure' which instantiates (i.e., don't
28650 # use $as_me), people would be surprised to read:
28651 # /* config.h. Generated by config.status. */
28652 configure_input='Generated from '`
28653 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28654 `' by configure.'
28655 if test x"$ac_file" != x-; then
28656 configure_input="$ac_file. $configure_input"
28657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28658 $as_echo "$as_me: creating $ac_file" >&6;}
28660 # Neutralize special characters interpreted by sed in replacement strings.
28661 case $configure_input in #(
28662 *\&* | *\|* | *\\* )
28663 ac_sed_conf_input=`$as_echo "$configure_input" |
28664 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28665 *) ac_sed_conf_input=$configure_input;;
28666 esac
28668 case $ac_tag in
28669 *:-:* | *:-) cat >"$tmp/stdin" \
28670 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28671 esac
28673 esac
28675 ac_dir=`$as_dirname -- "$ac_file" ||
28676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28677 X"$ac_file" : 'X\(//\)[^/]' \| \
28678 X"$ac_file" : 'X\(//\)$' \| \
28679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28680 $as_echo X"$ac_file" |
28681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28682 s//\1/
28685 /^X\(\/\/\)[^/].*/{
28686 s//\1/
28689 /^X\(\/\/\)$/{
28690 s//\1/
28693 /^X\(\/\).*/{
28694 s//\1/
28697 s/.*/./; q'`
28698 as_dir="$ac_dir"; as_fn_mkdir_p
28699 ac_builddir=.
28701 case "$ac_dir" in
28702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28705 # A ".." for each directory in $ac_dir_suffix.
28706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28707 case $ac_top_builddir_sub in
28708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28710 esac ;;
28711 esac
28712 ac_abs_top_builddir=$ac_pwd
28713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28714 # for backward compatibility:
28715 ac_top_builddir=$ac_top_build_prefix
28717 case $srcdir in
28718 .) # We are building in place.
28719 ac_srcdir=.
28720 ac_top_srcdir=$ac_top_builddir_sub
28721 ac_abs_top_srcdir=$ac_pwd ;;
28722 [\\/]* | ?:[\\/]* ) # Absolute name.
28723 ac_srcdir=$srcdir$ac_dir_suffix;
28724 ac_top_srcdir=$srcdir
28725 ac_abs_top_srcdir=$srcdir ;;
28726 *) # Relative name.
28727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28728 ac_top_srcdir=$ac_top_build_prefix$srcdir
28729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28730 esac
28731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28734 case $ac_mode in
28737 # CONFIG_FILE
28740 _ACEOF
28742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28743 # If the template does not know about datarootdir, expand it.
28744 # FIXME: This hack should be removed a few years after 2.60.
28745 ac_datarootdir_hack=; ac_datarootdir_seen=
28746 ac_sed_dataroot='
28747 /datarootdir/ {
28751 /@datadir@/p
28752 /@docdir@/p
28753 /@infodir@/p
28754 /@localedir@/p
28755 /@mandir@/p'
28756 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28757 *datarootdir*) ac_datarootdir_seen=yes;;
28758 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28760 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28761 _ACEOF
28762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28763 ac_datarootdir_hack='
28764 s&@datadir@&$datadir&g
28765 s&@docdir@&$docdir&g
28766 s&@infodir@&$infodir&g
28767 s&@localedir@&$localedir&g
28768 s&@mandir@&$mandir&g
28769 s&\\\${datarootdir}&$datarootdir&g' ;;
28770 esac
28771 _ACEOF
28773 # Neutralize VPATH when `$srcdir' = `.'.
28774 # Shell code in configure.ac might set extrasub.
28775 # FIXME: do we really want to maintain this feature?
28776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28777 ac_sed_extra="$ac_vpsub
28778 $extrasub
28779 _ACEOF
28780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28782 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28783 s|@configure_input@|$ac_sed_conf_input|;t t
28784 s&@top_builddir@&$ac_top_builddir_sub&;t t
28785 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28786 s&@srcdir@&$ac_srcdir&;t t
28787 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28788 s&@top_srcdir@&$ac_top_srcdir&;t t
28789 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28790 s&@builddir@&$ac_builddir&;t t
28791 s&@abs_builddir@&$ac_abs_builddir&;t t
28792 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28793 $ac_datarootdir_hack
28795 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28796 if $ac_cs_awk_getline; then
28797 $AWK -f "$tmp/subs.awk"
28798 else
28799 $AWK -f "$tmp/subs.awk" | $SHELL
28800 fi >$tmp/out \
28801 || as_fn_error "could not create $ac_file" "$LINENO" 5
28803 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28804 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28805 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28807 which seems to be undefined. Please make sure it is defined." >&5
28808 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28809 which seems to be undefined. Please make sure it is defined." >&2;}
28811 rm -f "$tmp/stdin"
28812 case $ac_file in
28813 -) cat "$tmp/out" && rm -f "$tmp/out";;
28814 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28815 esac \
28816 || as_fn_error "could not create $ac_file" "$LINENO" 5
28820 # CONFIG_HEADER
28822 if test x"$ac_file" != x-; then
28824 $as_echo "/* $configure_input */" \
28825 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28826 } >"$tmp/config.h" \
28827 || as_fn_error "could not create $ac_file" "$LINENO" 5
28828 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28830 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28831 else
28832 rm -f "$ac_file"
28833 mv "$tmp/config.h" "$ac_file" \
28834 || as_fn_error "could not create $ac_file" "$LINENO" 5
28836 else
28837 $as_echo "/* $configure_input */" \
28838 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28839 || as_fn_error "could not create -" "$LINENO" 5
28843 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28844 $as_echo "$as_me: executing $ac_file commands" >&6;}
28846 esac
28849 case $ac_file$ac_mode in
28850 "as":F) chmod +x as ;;
28851 "collect-ld":F) chmod +x collect-ld ;;
28852 "nm":F) chmod +x nm ;;
28853 "default":C)
28854 case ${CONFIG_HEADERS} in
28855 *auto-host.h:config.in*)
28856 echo > cstamp-h ;;
28857 esac
28858 # Make sure all the subdirs exist.
28859 for d in $subdirs doc build common c-family
28861 test -d $d || mkdir $d
28862 done
28865 esac
28866 done # for ac_tag
28869 as_fn_exit 0
28870 _ACEOF
28871 ac_clean_files=$ac_clean_files_save
28873 test $ac_write_fail = 0 ||
28874 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28877 # configure is writing to config.log, and then calls config.status.
28878 # config.status does its own redirection, appending to config.log.
28879 # Unfortunately, on DOS this fails, as config.log is still kept open
28880 # by configure, so config.status won't be able to write to it; its
28881 # output is simply discarded. So we exec the FD to /dev/null,
28882 # effectively closing config.log, so it can be properly (re)opened and
28883 # appended to by config.status. When coming back to configure, we
28884 # need to make the FD available again.
28885 if test "$no_create" != yes; then
28886 ac_cs_success=:
28887 ac_config_status_args=
28888 test "$silent" = yes &&
28889 ac_config_status_args="$ac_config_status_args --quiet"
28890 exec 5>/dev/null
28891 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28892 exec 5>>config.log
28893 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28894 # would make configure fail if this is the last instruction.
28895 $ac_cs_success || as_fn_exit $?
28897 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28899 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}