2013-05-20 Marc Glisse <marc.glisse@inria.fr>
[official-gcc.git] / gcc / configure
blob1f03eac6e27e9a0ee2f9f929a2727e71a94360ce
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 DO_LINK_MUTEX
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
700 FGREP
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CXXFLAGS
707 BUILD_CFLAGS
708 CXX_FOR_BUILD
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 NATIVE_SYSTEM_HEADER_DIR
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 EXTRA_GCC_LIBS
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CXXCPP
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
754 LN_S
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 SYSROOT_CFLAGS_FOR_TARGET
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 with_float
769 with_cpu
770 enable_multiarch
771 enable_multilib
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREECHECKING
777 TREEBROWSER
778 nocommon_flag
779 noexception_flags
780 warn_cxxflags
781 warn_cflags
782 c_strict_warn
783 strict_warn
784 c_loose_warn
785 loose_warn
786 EGREP
787 GREP
789 PICFLAG_FOR_TARGET
790 OUTPUT_OPTION
791 NO_MINUS_C_MINUS_O
792 GNATMAKE
793 GNATBIND
794 ac_ct_CXX
795 CXXFLAGS
797 OBJEXT
798 EXEEXT
799 ac_ct_CC
800 CPPFLAGS
801 LDFLAGS
802 CFLAGS
804 GENINSRC
805 target_subdir
806 host_subdir
807 build_subdir
808 build_libsubdir
809 target_noncanonical
810 target_os
811 target_vendor
812 target_cpu
813 target
814 host_os
815 host_vendor
816 host_cpu
817 host
818 build_os
819 build_vendor
820 build_cpu
821 build
822 target_alias
823 host_alias
824 build_alias
825 LIBS
826 ECHO_T
827 ECHO_N
828 ECHO_C
829 DEFS
830 mandir
831 localedir
832 libdir
833 psdir
834 pdfdir
835 dvidir
836 htmldir
837 infodir
838 docdir
839 oldincludedir
840 includedir
841 localstatedir
842 sharedstatedir
843 sysconfdir
844 datadir
845 datarootdir
846 libexecdir
847 sbindir
848 bindir
849 program_transform_name
850 prefix
851 exec_prefix
852 PACKAGE_URL
853 PACKAGE_BUGREPORT
854 PACKAGE_STRING
855 PACKAGE_VERSION
856 PACKAGE_TARNAME
857 PACKAGE_NAME
858 PATH_SEPARATOR
859 SHELL'
860 ac_subst_files='option_includes
861 language_hooks'
862 ac_user_opts='
863 enable_option_checking
864 with_build_libsubdir
865 with_local_prefix
866 with_gxx_include_dir
867 with_cpp_install_dir
868 enable_generated_files_in_srcdir
869 with_gnu_ld
870 with_ld
871 with_demangler_in_ld
872 with_gnu_as
873 with_as
874 enable_largefile
875 enable_werror_always
876 enable_checking
877 enable_coverage
878 enable_gather_detailed_mem_stats
879 with_stabs
880 enable_multilib
881 enable_multiarch
882 enable___cxa_atexit
883 enable_decimal_float
884 enable_fixed_point
885 enable_threads
886 enable_tls
887 enable_objc_gc
888 with_dwarf2
889 enable_shared
890 with_native_system_header_dir
891 with_build_sysroot
892 with_sysroot
893 with_specs
894 with_pkgversion
895 with_bugurl
896 enable_languages
897 with_multilib_list
898 enable_rpath
899 with_libiconv_prefix
900 enable_sjlj_exceptions
901 enable_secureplt
902 enable_leading_mingw64_underscores
903 enable_cld
904 enable_frame_pointer
905 enable_win32_registry
906 enable_static
907 with_pic
908 enable_fast_install
909 enable_libtool_lock
910 with_plugin_ld
911 enable_gnu_indirect_function
912 enable_initfini_array
913 enable_comdat
914 enable_gnu_unique_object
915 enable_linker_build_id
916 with_long_double_128
917 with_gc
918 with_system_zlib
919 enable_maintainer_mode
920 enable_link_mutex
921 enable_version_specific_runtime_libs
922 enable_plugin
923 enable_libquadmath_support
924 with_linker_hash_style
926 ac_precious_vars='build_alias
927 host_alias
928 target_alias
930 CFLAGS
931 LDFLAGS
932 LIBS
933 CPPFLAGS
935 CXXFLAGS
938 CXXCPP
939 GMPLIBS
940 GMPINC
941 ISLLIBS
942 ISLINC
943 CLOOGLIBS
944 CLOOGINC'
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
995 ac_prev=
996 ac_dashdash=
997 for ac_option
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1002 ac_prev=
1003 continue
1006 case $ac_option in
1007 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 *) ac_optarg=yes ;;
1009 esac
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1013 case $ac_dashdash$ac_option in
1015 ac_dashdash=yes ;;
1017 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 ac_prev=bindir ;;
1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020 bindir=$ac_optarg ;;
1022 -build | --build | --buil | --bui | --bu)
1023 ac_prev=build_alias ;;
1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025 build_alias=$ac_optarg ;;
1027 -cache-file | --cache-file | --cache-fil | --cache-fi \
1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029 ac_prev=cache_file ;;
1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032 cache_file=$ac_optarg ;;
1034 --config-cache | -C)
1035 cache_file=config.cache ;;
1037 -datadir | --datadir | --datadi | --datad)
1038 ac_prev=datadir ;;
1039 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040 datadir=$ac_optarg ;;
1042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043 | --dataroo | --dataro | --datar)
1044 ac_prev=datarootdir ;;
1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047 datarootdir=$ac_optarg ;;
1049 -disable-* | --disable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=no ;;
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1075 -enable-* | --enable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1279 -with-* | --with-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=\$ac_optarg ;;
1295 -without-* | --without-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1304 "with_$ac_useropt"
1305 "*) ;;
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1308 esac
1309 eval with_$ac_useropt=no ;;
1311 --x)
1312 # Obsolete; use --with-x.
1313 with_x=yes ;;
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1329 -*) as_fn_error "unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information."
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' | [0-9]* | *[!_$as_cr_alnum]* )
1338 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1339 esac
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 esac
1352 done
1354 if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error "missing argument to $ac_option"
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1361 no) ;;
1362 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 esac
1367 # Check all directory arguments for consistency.
1368 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1373 eval ac_val=\$$ac_var
1374 # Remove trailing slashes.
1375 case $ac_val in
1376 */ )
1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\$ac_val;;
1379 esac
1380 # Be sure to have absolute directory names.
1381 case $ac_val in
1382 [\\/$]* | ?:[\\/]* ) continue;;
1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 esac
1385 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1386 done
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1391 build=$build_alias
1392 host=$host_alias
1393 target=$target_alias
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1406 ac_tool_prefix=
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409 test "$silent" = yes && exec 6>/dev/null
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error "pwd does not report name of working directory"
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 s//\1/
1434 /^X\(\/\/\)[^/].*/{
1435 s//\1/
1438 /^X\(\/\/\)$/{
1439 s//\1/
1442 /^X\(\/\).*/{
1443 s//\1/
1446 s/.*/./; q'`
1447 srcdir=$ac_confdir
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 srcdir=..
1451 else
1452 ac_srcdir_defaulted=no
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 ac_abs_confdir=`(
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1461 pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1480 # Report the --help message.
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486 \`configure' configures this package to adapt to many kinds of systems.
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1493 Defaults for the options are specified in brackets.
1495 Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1517 For better control, use the options below.
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1539 _ACEOF
1541 cat <<\_ACEOF
1543 Program names:
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1548 System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 --target=TARGET configure for building compilers for TARGET [HOST]
1552 _ACEOF
1555 if test -n "$ac_init_help"; then
1557 cat <<\_ACEOF
1559 Optional Features:
1560 --disable-option-checking ignore unrecognized --enable/--with options
1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1563 --enable-generated-files-in-srcdir
1564 put copies of generated files in source dir intended
1565 for creating source tarballs for users without
1566 texinfo bison or flex
1567 --disable-largefile omit support for large files
1568 --enable-werror-always enable -Werror despite compiler version
1569 --enable-checking[=LIST]
1570 enable expensive run-time checks. With LIST, enable
1571 only specific categories of checks. Categories are:
1572 yes,no,all,none,release. Flags are:
1573 assert,df,fold,gc,gcac,gimple,misc,
1574 rtlflag,rtl,runtime,tree,valgrind,types
1575 --enable-coverage[=LEVEL]
1576 enable compiler's code coverage collection. Use to
1577 measure compiler performance and locate unused parts
1578 of the compiler. With LEVEL, specify optimization.
1579 Values are opt, noopt, default is noopt
1580 --enable-gather-detailed-mem-stats
1581 enable detailed memory allocation stats gathering
1582 --enable-multilib enable library support for multiple ABIs
1583 --enable-multiarch enable support for multiarch paths
1584 --enable-__cxa_atexit enable __cxa_atexit for C++
1585 --enable-decimal-float={no,yes,bid,dpd}
1586 enable decimal float extension to C. Selecting 'bid'
1587 or 'dpd' choses which decimal floating point format
1588 to use
1589 --enable-fixed-point enable fixed-point arithmetic extension to C
1590 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1591 package
1592 --enable-tls enable or disable generation of tls code overriding
1593 the assembler check for tls support
1594 --enable-objc-gc enable the use of Boehm's garbage collector with the
1595 GNU Objective-C runtime
1596 --disable-shared don't provide a shared libgcc
1597 --enable-languages=LIST specify which front-ends to build
1598 --disable-rpath do not hardcode runtime library paths
1599 --enable-sjlj-exceptions
1600 arrange to use setjmp/longjmp exception handling
1601 --enable-secureplt enable -msecure-plt by default for PowerPC
1602 --enable-leading-mingw64-underscores
1603 enable leading underscores on 64 bit mingw targets
1604 --enable-cld enable -mcld by default for 32bit x86
1605 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1607 --disable-win32-registry
1608 disable lookup of installation paths in the Registry
1609 on Windows hosts
1610 --enable-win32-registry enable registry lookup (default)
1611 --enable-win32-registry=KEY
1612 use KEY instead of GCC version as the last portion
1613 of the registry key
1614 --enable-shared[=PKGS] build shared libraries [default=yes]
1615 --enable-static[=PKGS] build static libraries [default=yes]
1616 --enable-fast-install[=PKGS]
1617 optimize for fast installation [default=yes]
1618 --disable-libtool-lock avoid locking (might break parallel builds)
1619 --enable-gnu-indirect-function
1620 enable the use of the @gnu_indirect_function to
1621 glibc systems
1622 --enable-initfini-array use .init_array/.fini_array sections
1623 --enable-comdat enable COMDAT group support
1624 --enable-gnu-unique-object
1625 enable the use of the @gnu_unique_object ELF
1626 extension on glibc systems
1627 --enable-linker-build-id
1628 compiler will always pass --build-id to linker
1629 --enable-maintainer-mode
1630 enable make rules and dependencies not useful (and
1631 sometimes confusing) to the casual installer
1632 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1633 thrashing on the build machine
1634 --enable-version-specific-runtime-libs
1635 specify that runtime libraries should be installed
1636 in a compiler-specific directory
1637 --enable-plugin enable plugin support
1638 --disable-libquadmath-support
1639 disable libquadmath support for Fortran
1641 Optional Packages:
1642 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1643 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1644 --with-build-libsubdir=DIR Directory where to find libraries for build system
1645 --with-local-prefix=DIR specifies directory to put local include
1646 --with-gxx-include-dir=DIR
1647 specifies directory to put g++ header files
1648 --with-cpp-install-dir=DIR
1649 install the user visible C preprocessor in DIR
1650 (relative to PREFIX) as well as PREFIX/bin
1651 --with-gnu-ld arrange to work with GNU ld
1652 --with-ld arrange to use the specified ld (full pathname)
1653 --with-demangler-in-ld try to use demangler in GNU ld
1654 --with-gnu-as arrange to work with GNU as
1655 --with-as arrange to use the specified as (full pathname)
1656 --with-stabs arrange to use stabs instead of host debug format
1657 --with-dwarf2 force the default debug format to be DWARF 2
1658 --with-native-system-header-dir=dir
1659 use dir as the directory to look for standard
1660 system header files in. Defaults to /usr/include.
1661 --with-build-sysroot=sysroot
1662 use sysroot as the system root during the build
1663 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1664 --with-specs=SPECS add SPECS to driver command-line processing
1665 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1666 --with-bugurl=URL Direct users to URL to report a bug
1667 --with-multilib-list select multilibs (SH and x86-64 only)
1668 --with-gnu-ld assume the C compiler uses GNU ld default=no
1669 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1670 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1671 --with-pic try to use only PIC/non-PIC objects [default=use
1672 both]
1673 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1674 --with-plugin-ld=[ARG] specify the plugin linker
1675 --with-long-double-128 use 128-bit long double by default
1676 --with-gc={page,zone} this option is not supported anymore. It used to
1677 choose the garbage collection mechanism to use with
1678 the compiler
1679 --with-system-zlib use installed libz
1680 --with-linker-hash-style={sysv,gnu,both}
1681 specify the linker hash style
1683 Some influential environment variables:
1684 CC C compiler command
1685 CFLAGS C compiler flags
1686 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1687 nonstandard directory <lib dir>
1688 LIBS libraries to pass to the linker, e.g. -l<library>
1689 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1690 you have headers in a nonstandard directory <include dir>
1691 CXX C++ compiler command
1692 CXXFLAGS C++ compiler flags
1693 CPP C preprocessor
1694 CXXCPP C++ preprocessor
1695 GMPLIBS How to link GMP
1696 GMPINC How to find GMP include files
1697 ISLLIBS How to link ISL
1698 ISLINC How to find ISL include files
1699 CLOOGLIBS How to link CLOOG
1700 CLOOGINC How to find CLOOG include files
1702 Use these variables to override the choices made by `configure' or to help
1703 it to find libraries and programs with nonstandard names/locations.
1705 Report bugs to the package provider.
1706 _ACEOF
1707 ac_status=$?
1710 if test "$ac_init_help" = "recursive"; then
1711 # If there are subdirs, report their specific --help.
1712 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1713 test -d "$ac_dir" ||
1714 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1715 continue
1716 ac_builddir=.
1718 case "$ac_dir" in
1719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1722 # A ".." for each directory in $ac_dir_suffix.
1723 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1724 case $ac_top_builddir_sub in
1725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1727 esac ;;
1728 esac
1729 ac_abs_top_builddir=$ac_pwd
1730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1731 # for backward compatibility:
1732 ac_top_builddir=$ac_top_build_prefix
1734 case $srcdir in
1735 .) # We are building in place.
1736 ac_srcdir=.
1737 ac_top_srcdir=$ac_top_builddir_sub
1738 ac_abs_top_srcdir=$ac_pwd ;;
1739 [\\/]* | ?:[\\/]* ) # Absolute name.
1740 ac_srcdir=$srcdir$ac_dir_suffix;
1741 ac_top_srcdir=$srcdir
1742 ac_abs_top_srcdir=$srcdir ;;
1743 *) # Relative name.
1744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1745 ac_top_srcdir=$ac_top_build_prefix$srcdir
1746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1747 esac
1748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1750 cd "$ac_dir" || { ac_status=$?; continue; }
1751 # Check for guested configure.
1752 if test -f "$ac_srcdir/configure.gnu"; then
1753 echo &&
1754 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1755 elif test -f "$ac_srcdir/configure"; then
1756 echo &&
1757 $SHELL "$ac_srcdir/configure" --help=recursive
1758 else
1759 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1760 fi || ac_status=$?
1761 cd "$ac_pwd" || { ac_status=$?; break; }
1762 done
1765 test -n "$ac_init_help" && exit $ac_status
1766 if $ac_init_version; then
1767 cat <<\_ACEOF
1768 configure
1769 generated by GNU Autoconf 2.64
1771 Copyright (C) 2009 Free Software Foundation, Inc.
1772 This configure script is free software; the Free Software Foundation
1773 gives unlimited permission to copy, distribute and modify it.
1774 _ACEOF
1775 exit
1778 ## ------------------------ ##
1779 ## Autoconf initialization. ##
1780 ## ------------------------ ##
1782 # ac_fn_c_try_compile LINENO
1783 # --------------------------
1784 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_compile ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext
1789 if { { ac_try="$ac_compile"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_compile") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest.$ac_objext; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1813 ac_retval=1
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 return $ac_retval
1818 } # ac_fn_c_try_compile
1820 # ac_fn_cxx_try_compile LINENO
1821 # ----------------------------
1822 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_cxx_try_compile ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 rm -f conftest.$ac_objext
1827 if { { ac_try="$ac_compile"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_compile") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_cxx_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest.$ac_objext; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1851 ac_retval=1
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 return $ac_retval
1856 } # ac_fn_cxx_try_compile
1858 # ac_fn_c_try_cpp LINENO
1859 # ----------------------
1860 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_c_try_cpp ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { { ac_try="$ac_cpp conftest.$ac_ext"
1865 case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1872 ac_status=$?
1873 if test -s conftest.err; then
1874 grep -v '^ *+' conftest.err >conftest.er1
1875 cat conftest.er1 >&5
1876 mv -f conftest.er1 conftest.err
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } >/dev/null && {
1880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1881 test ! -s conftest.err
1882 }; then :
1883 ac_retval=0
1884 else
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.$ac_ext >&5
1888 ac_retval=1
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891 return $ac_retval
1893 } # ac_fn_c_try_cpp
1895 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1896 # -------------------------------------------------------
1897 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1898 # the include files in INCLUDES and setting the cache variable VAR
1899 # accordingly.
1900 ac_fn_c_check_header_mongrel ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907 $as_echo_n "(cached) " >&6
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 else
1913 # Is the header compilable?
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1915 $as_echo_n "checking $2 usability... " >&6; }
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 ac_header_compiler=yes
1923 else
1924 ac_header_compiler=no
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1928 $as_echo "$ac_header_compiler" >&6; }
1930 # Is the header present?
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1932 $as_echo_n "checking $2 presence... " >&6; }
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1935 #include <$2>
1936 _ACEOF
1937 if ac_fn_c_try_cpp "$LINENO"; then :
1938 ac_header_preproc=yes
1939 else
1940 ac_header_preproc=no
1942 rm -f conftest.err conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1944 $as_echo "$ac_header_preproc" >&6; }
1946 # So? What about this header?
1947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1948 yes:no: )
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1950 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1952 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1954 no:yes:* )
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1956 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1958 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1960 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1962 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966 esac
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1971 else
1972 eval "$3=\$ac_header_compiler"
1974 eval ac_res=\$$3
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980 } # ac_fn_c_check_header_mongrel
1982 # ac_fn_c_try_run LINENO
1983 # ----------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1985 # that executables *can* be run.
1986 ac_fn_c_try_run ()
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 if { { ac_try="$ac_link"
1990 case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>&5
1997 ac_status=$?
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2000 { { case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003 esac
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_try") 2>&5
2007 ac_status=$?
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; }; }; then :
2010 ac_retval=0
2011 else
2012 $as_echo "$as_me: program exited with status $ac_status" >&5
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2016 ac_retval=$ac_status
2018 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2019 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2020 return $ac_retval
2022 } # ac_fn_c_try_run
2024 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2025 # -------------------------------------------------------
2026 # Tests whether HEADER exists and can be compiled using the include files in
2027 # INCLUDES, setting the cache variable VAR accordingly.
2028 ac_fn_c_check_header_compile ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2034 $as_echo_n "(cached) " >&6
2035 else
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2039 #include <$2>
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 eval "$3=yes"
2043 else
2044 eval "$3=no"
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 eval ac_res=\$$3
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053 } # ac_fn_c_check_header_compile
2055 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2056 # --------------------------------------------
2057 # Tries to find the compile-time value of EXPR in a program that includes
2058 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2059 # computed
2060 ac_fn_c_compute_int ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 if test "$cross_compiling" = yes; then
2064 # Depending upon the size, compute the lo and hi bounds.
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 static int test_array [1 - 2 * !(($2) >= 0)];
2072 test_array [0] = 0
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_lo=0 ac_mid=0
2080 while :; do
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2085 main ()
2087 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2088 test_array [0] = 0
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_hi=$ac_mid; break
2096 else
2097 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2098 if test $ac_lo -le $ac_mid; then
2099 ac_lo= ac_hi=
2100 break
2102 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 done
2106 else
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2111 main ()
2113 static int test_array [1 - 2 * !(($2) < 0)];
2114 test_array [0] = 0
2117 return 0;
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_hi=-1 ac_mid=-1
2122 while :; do
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2127 main ()
2129 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2130 test_array [0] = 0
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_lo=$ac_mid; break
2138 else
2139 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2140 if test $ac_mid -le $ac_hi; then
2141 ac_lo= ac_hi=
2142 break
2144 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 done
2148 else
2149 ac_lo= ac_hi=
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 # Binary search between lo and hi bounds.
2155 while test "x$ac_lo" != "x$ac_hi"; do
2156 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2161 main ()
2163 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164 test_array [0] = 0
2167 return 0;
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 ac_hi=$ac_mid
2172 else
2173 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 done
2177 case $ac_lo in #((
2178 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2179 '') ac_retval=1 ;;
2180 esac
2181 else
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2185 static long int longval () { return $2; }
2186 static unsigned long int ulongval () { return $2; }
2187 #include <stdio.h>
2188 #include <stdlib.h>
2190 main ()
2193 FILE *f = fopen ("conftest.val", "w");
2194 if (! f)
2195 return 1;
2196 if (($2) < 0)
2198 long int i = longval ();
2199 if (i != ($2))
2200 return 1;
2201 fprintf (f, "%ld", i);
2203 else
2205 unsigned long int i = ulongval ();
2206 if (i != ($2))
2207 return 1;
2208 fprintf (f, "%lu", i);
2210 /* Do not output a trailing newline, as this causes \r\n confusion
2211 on some platforms. */
2212 return ferror (f) || fclose (f) != 0;
2215 return 0;
2217 _ACEOF
2218 if ac_fn_c_try_run "$LINENO"; then :
2219 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2220 else
2221 ac_retval=1
2223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2224 conftest.$ac_objext conftest.beam conftest.$ac_ext
2225 rm -f conftest.val
2228 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2229 return $ac_retval
2231 } # ac_fn_c_compute_int
2233 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2234 # -------------------------------------------
2235 # Tests whether TYPE exists after having included INCLUDES, setting cache
2236 # variable VAR accordingly.
2237 ac_fn_c_check_type ()
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243 $as_echo_n "(cached) " >&6
2244 else
2245 eval "$3=no"
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2250 main ()
2252 if (sizeof ($2))
2253 return 0;
2255 return 0;
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2263 main ()
2265 if (sizeof (($2)))
2266 return 0;
2268 return 0;
2270 _ACEOF
2271 if ac_fn_c_try_compile "$LINENO"; then :
2273 else
2274 eval "$3=yes"
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 eval ac_res=\$$3
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285 } # ac_fn_c_check_type
2287 # ac_fn_c_find_intX_t LINENO BITS VAR
2288 # -----------------------------------
2289 # Finds a signed integer type with width BITS, setting cache variable VAR
2290 # accordingly.
2291 ac_fn_c_find_intX_t ()
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2295 $as_echo_n "checking for int$2_t... " >&6; }
2296 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2297 $as_echo_n "(cached) " >&6
2298 else
2299 eval "$3=no"
2300 for ac_type in int$2_t 'int' 'long int' \
2301 'long long int' 'short int' 'signed char'; do
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2304 $ac_includes_default
2306 main ()
2308 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2309 test_array [0] = 0
2312 return 0;
2314 _ACEOF
2315 if ac_fn_c_try_compile "$LINENO"; then :
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2318 $ac_includes_default
2320 main ()
2322 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2323 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2324 test_array [0] = 0
2327 return 0;
2329 _ACEOF
2330 if ac_fn_c_try_compile "$LINENO"; then :
2332 else
2333 case $ac_type in #(
2334 int$2_t) :
2335 eval "$3=yes" ;; #(
2336 *) :
2337 eval "$3=\$ac_type" ;;
2338 esac
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 eval as_val=\$$3
2344 if test "x$as_val" = x""no; then :
2346 else
2347 break
2349 done
2351 eval ac_res=\$$3
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2356 } # ac_fn_c_find_intX_t
2358 # ac_fn_c_try_link LINENO
2359 # -----------------------
2360 # Try to link conftest.$ac_ext, and return whether this succeeded.
2361 ac_fn_c_try_link ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 rm -f conftest.$ac_objext conftest$ac_exeext
2365 if { { ac_try="$ac_link"
2366 case "(($ac_try" in
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2369 esac
2370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2371 $as_echo "$ac_try_echo"; } >&5
2372 (eval "$ac_link") 2>conftest.err
2373 ac_status=$?
2374 if test -s conftest.err; then
2375 grep -v '^ *+' conftest.err >conftest.er1
2376 cat conftest.er1 >&5
2377 mv -f conftest.er1 conftest.err
2379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2380 test $ac_status = 0; } && {
2381 test -z "$ac_c_werror_flag" ||
2382 test ! -s conftest.err
2383 } && test -s conftest$ac_exeext && {
2384 test "$cross_compiling" = yes ||
2385 $as_test_x conftest$ac_exeext
2386 }; then :
2387 ac_retval=0
2388 else
2389 $as_echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2392 ac_retval=1
2394 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2395 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2396 # interfere with the next link command; also delete a directory that is
2397 # left behind by Apple's compiler. We do this before executing the actions.
2398 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2399 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2400 return $ac_retval
2402 } # ac_fn_c_try_link
2404 # ac_fn_c_find_uintX_t LINENO BITS VAR
2405 # ------------------------------------
2406 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2407 # accordingly.
2408 ac_fn_c_find_uintX_t ()
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2412 $as_echo_n "checking for uint$2_t... " >&6; }
2413 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 eval "$3=no"
2417 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2418 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 $ac_includes_default
2423 main ()
2425 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2426 test_array [0] = 0
2429 return 0;
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433 case $ac_type in #(
2434 uint$2_t) :
2435 eval "$3=yes" ;; #(
2436 *) :
2437 eval "$3=\$ac_type" ;;
2438 esac
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 eval as_val=\$$3
2442 if test "x$as_val" = x""no; then :
2444 else
2445 break
2447 done
2449 eval ac_res=\$$3
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2454 } # ac_fn_c_find_uintX_t
2456 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2457 # ----------------------------------------------
2458 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2459 ac_fn_c_check_header_preproc ()
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463 $as_echo_n "checking for $2... " >&6; }
2464 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2469 #include <$2>
2470 _ACEOF
2471 if ac_fn_c_try_cpp "$LINENO"; then :
2472 eval "$3=yes"
2473 else
2474 eval "$3=no"
2476 rm -f conftest.err conftest.$ac_ext
2478 eval ac_res=\$$3
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483 } # ac_fn_c_check_header_preproc
2485 # ac_fn_cxx_try_cpp LINENO
2486 # ------------------------
2487 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2488 ac_fn_cxx_try_cpp ()
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 if { { ac_try="$ac_cpp conftest.$ac_ext"
2492 case "(($ac_try" in
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2495 esac
2496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497 $as_echo "$ac_try_echo"; } >&5
2498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2499 ac_status=$?
2500 if test -s conftest.err; then
2501 grep -v '^ *+' conftest.err >conftest.er1
2502 cat conftest.er1 >&5
2503 mv -f conftest.er1 conftest.err
2505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 test $ac_status = 0; } >/dev/null && {
2507 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2508 test ! -s conftest.err
2509 }; then :
2510 ac_retval=0
2511 else
2512 $as_echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2515 ac_retval=1
2517 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518 return $ac_retval
2520 } # ac_fn_cxx_try_cpp
2522 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2523 # ------------------------------------------------
2524 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2525 ac_fn_cxx_check_header_preproc ()
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2529 $as_echo_n "checking for $2... " >&6; }
2530 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2535 #include <$2>
2536 _ACEOF
2537 if ac_fn_cxx_try_cpp "$LINENO"; then :
2538 eval "$3=yes"
2539 else
2540 eval "$3=no"
2542 rm -f conftest.err conftest.$ac_ext
2544 eval ac_res=\$$3
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2549 } # ac_fn_cxx_check_header_preproc
2551 # ac_fn_c_check_func LINENO FUNC VAR
2552 # ----------------------------------
2553 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2554 ac_fn_c_check_func ()
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2564 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2566 #define $2 innocuous_$2
2568 /* System header to define __stub macros and hopefully few prototypes,
2569 which can conflict with char $2 (); below.
2570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2571 <limits.h> exists even on freestanding compilers. */
2573 #ifdef __STDC__
2574 # include <limits.h>
2575 #else
2576 # include <assert.h>
2577 #endif
2579 #undef $2
2581 /* Override any GCC internal prototype to avoid an error.
2582 Use char because int might match the return type of a GCC
2583 builtin and then its argument prototype would still apply. */
2584 #ifdef __cplusplus
2585 extern "C"
2586 #endif
2587 char $2 ();
2588 /* The GNU C library defines this for functions which it implements
2589 to always fail with ENOSYS. Some functions are actually named
2590 something starting with __ and the normal name is an alias. */
2591 #if defined __stub_$2 || defined __stub___$2
2592 choke me
2593 #endif
2596 main ()
2598 return $2 ();
2600 return 0;
2602 _ACEOF
2603 if ac_fn_c_try_link "$LINENO"; then :
2604 eval "$3=yes"
2605 else
2606 eval "$3=no"
2608 rm -f core conftest.err conftest.$ac_objext \
2609 conftest$ac_exeext conftest.$ac_ext
2611 eval ac_res=\$$3
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 $as_echo "$ac_res" >&6; }
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2616 } # ac_fn_c_check_func
2618 # ac_fn_cxx_try_link LINENO
2619 # -------------------------
2620 # Try to link conftest.$ac_ext, and return whether this succeeded.
2621 ac_fn_cxx_try_link ()
2623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2624 rm -f conftest.$ac_objext conftest$ac_exeext
2625 if { { ac_try="$ac_link"
2626 case "(($ac_try" in
2627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628 *) ac_try_echo=$ac_try;;
2629 esac
2630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631 $as_echo "$ac_try_echo"; } >&5
2632 (eval "$ac_link") 2>conftest.err
2633 ac_status=$?
2634 if test -s conftest.err; then
2635 grep -v '^ *+' conftest.err >conftest.er1
2636 cat conftest.er1 >&5
2637 mv -f conftest.er1 conftest.err
2639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2640 test $ac_status = 0; } && {
2641 test -z "$ac_cxx_werror_flag" ||
2642 test ! -s conftest.err
2643 } && test -s conftest$ac_exeext && {
2644 test "$cross_compiling" = yes ||
2645 $as_test_x conftest$ac_exeext
2646 }; then :
2647 ac_retval=0
2648 else
2649 $as_echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2652 ac_retval=1
2654 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2655 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2656 # interfere with the next link command; also delete a directory that is
2657 # left behind by Apple's compiler. We do this before executing the actions.
2658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2660 return $ac_retval
2662 } # ac_fn_cxx_try_link
2663 cat >config.log <<_ACEOF
2664 This file contains any messages produced by compilers while
2665 running configure, to aid debugging if configure makes a mistake.
2667 It was created by $as_me, which was
2668 generated by GNU Autoconf 2.64. Invocation command line was
2670 $ $0 $@
2672 _ACEOF
2673 exec 5>>config.log
2675 cat <<_ASUNAME
2676 ## --------- ##
2677 ## Platform. ##
2678 ## --------- ##
2680 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2681 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2682 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2683 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2684 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2686 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2687 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2689 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2690 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2691 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2692 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2693 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2694 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2695 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2697 _ASUNAME
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 $as_echo "PATH: $as_dir"
2705 done
2706 IFS=$as_save_IFS
2708 } >&5
2710 cat >&5 <<_ACEOF
2713 ## ----------- ##
2714 ## Core tests. ##
2715 ## ----------- ##
2717 _ACEOF
2720 # Keep a trace of the command line.
2721 # Strip out --no-create and --no-recursion so they do not pile up.
2722 # Strip out --silent because we don't want to record it for future runs.
2723 # Also quote any args containing shell meta-characters.
2724 # Make two passes to allow for proper duplicate-argument suppression.
2725 ac_configure_args=
2726 ac_configure_args0=
2727 ac_configure_args1=
2728 ac_must_keep_next=false
2729 for ac_pass in 1 2
2731 for ac_arg
2733 case $ac_arg in
2734 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2735 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2736 | -silent | --silent | --silen | --sile | --sil)
2737 continue ;;
2738 *\'*)
2739 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2740 esac
2741 case $ac_pass in
2742 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2744 as_fn_append ac_configure_args1 " '$ac_arg'"
2745 if test $ac_must_keep_next = true; then
2746 ac_must_keep_next=false # Got value, back to normal.
2747 else
2748 case $ac_arg in
2749 *=* | --config-cache | -C | -disable-* | --disable-* \
2750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2752 | -with-* | --with-* | -without-* | --without-* | --x)
2753 case "$ac_configure_args0 " in
2754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2755 esac
2757 -* ) ac_must_keep_next=true ;;
2758 esac
2760 as_fn_append ac_configure_args " '$ac_arg'"
2762 esac
2763 done
2764 done
2765 { ac_configure_args0=; unset ac_configure_args0;}
2766 { ac_configure_args1=; unset ac_configure_args1;}
2768 # When interrupted or exit'd, cleanup temporary files, and complete
2769 # config.log. We remove comments because anyway the quotes in there
2770 # would cause problems or look ugly.
2771 # WARNING: Use '\'' to represent an apostrophe within the trap.
2772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2773 trap 'exit_status=$?
2774 # Save into config.log some information that might help in debugging.
2776 echo
2778 cat <<\_ASBOX
2779 ## ---------------- ##
2780 ## Cache variables. ##
2781 ## ---------------- ##
2782 _ASBOX
2783 echo
2784 # The following way of writing the cache mishandles newlines in values,
2786 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2787 eval ac_val=\$$ac_var
2788 case $ac_val in #(
2789 *${as_nl}*)
2790 case $ac_var in #(
2791 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2792 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2793 esac
2794 case $ac_var in #(
2795 _ | IFS | as_nl) ;; #(
2796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2797 *) { eval $ac_var=; unset $ac_var;} ;;
2798 esac ;;
2799 esac
2800 done
2801 (set) 2>&1 |
2802 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2803 *${as_nl}ac_space=\ *)
2804 sed -n \
2805 "s/'\''/'\''\\\\'\'''\''/g;
2806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2807 ;; #(
2809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2811 esac |
2812 sort
2814 echo
2816 cat <<\_ASBOX
2817 ## ----------------- ##
2818 ## Output variables. ##
2819 ## ----------------- ##
2820 _ASBOX
2821 echo
2822 for ac_var in $ac_subst_vars
2824 eval ac_val=\$$ac_var
2825 case $ac_val in
2826 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2827 esac
2828 $as_echo "$ac_var='\''$ac_val'\''"
2829 done | sort
2830 echo
2832 if test -n "$ac_subst_files"; then
2833 cat <<\_ASBOX
2834 ## ------------------- ##
2835 ## File substitutions. ##
2836 ## ------------------- ##
2837 _ASBOX
2838 echo
2839 for ac_var in $ac_subst_files
2841 eval ac_val=\$$ac_var
2842 case $ac_val in
2843 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2844 esac
2845 $as_echo "$ac_var='\''$ac_val'\''"
2846 done | sort
2847 echo
2850 if test -s confdefs.h; then
2851 cat <<\_ASBOX
2852 ## ----------- ##
2853 ## confdefs.h. ##
2854 ## ----------- ##
2855 _ASBOX
2856 echo
2857 cat confdefs.h
2858 echo
2860 test "$ac_signal" != 0 &&
2861 $as_echo "$as_me: caught signal $ac_signal"
2862 $as_echo "$as_me: exit $exit_status"
2863 } >&5
2864 rm -f core *.core core.conftest.* &&
2865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2866 exit $exit_status
2868 for ac_signal in 1 2 13 15; do
2869 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2870 done
2871 ac_signal=0
2873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2874 rm -f -r conftest* confdefs.h
2876 $as_echo "/* confdefs.h */" > confdefs.h
2878 # Predefined preprocessor variables.
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_NAME "$PACKAGE_NAME"
2882 _ACEOF
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2886 _ACEOF
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2890 _ACEOF
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_STRING "$PACKAGE_STRING"
2894 _ACEOF
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2898 _ACEOF
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_URL "$PACKAGE_URL"
2902 _ACEOF
2905 # Let the site file select an alternate cache file if it wants to.
2906 # Prefer an explicitly selected file to automatically selected ones.
2907 ac_site_file1=NONE
2908 ac_site_file2=NONE
2909 if test -n "$CONFIG_SITE"; then
2910 ac_site_file1=$CONFIG_SITE
2911 elif test "x$prefix" != xNONE; then
2912 ac_site_file1=$prefix/share/config.site
2913 ac_site_file2=$prefix/etc/config.site
2914 else
2915 ac_site_file1=$ac_default_prefix/share/config.site
2916 ac_site_file2=$ac_default_prefix/etc/config.site
2918 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2920 test "x$ac_site_file" = xNONE && continue
2921 if test -r "$ac_site_file"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2923 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2924 sed 's/^/| /' "$ac_site_file" >&5
2925 . "$ac_site_file"
2927 done
2929 if test -r "$cache_file"; then
2930 # Some versions of bash will fail to source /dev/null (special
2931 # files actually), so we avoid doing that.
2932 if test -f "$cache_file"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2934 $as_echo "$as_me: loading cache $cache_file" >&6;}
2935 case $cache_file in
2936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2937 *) . "./$cache_file";;
2938 esac
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2942 $as_echo "$as_me: creating cache $cache_file" >&6;}
2943 >$cache_file
2946 # Check that the precious variables saved in the cache have kept the same
2947 # value.
2948 ac_cache_corrupted=false
2949 for ac_var in $ac_precious_vars; do
2950 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2951 eval ac_new_set=\$ac_env_${ac_var}_set
2952 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2953 eval ac_new_val=\$ac_env_${ac_var}_value
2954 case $ac_old_set,$ac_new_set in
2955 set,)
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2957 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2958 ac_cache_corrupted=: ;;
2959 ,set)
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2961 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2962 ac_cache_corrupted=: ;;
2963 ,);;
2965 if test "x$ac_old_val" != "x$ac_new_val"; then
2966 # differences in whitespace do not lead to failure.
2967 ac_old_val_w=`echo x $ac_old_val`
2968 ac_new_val_w=`echo x $ac_new_val`
2969 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2971 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2972 ac_cache_corrupted=:
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2975 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2976 eval $ac_var=\$ac_old_val
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2979 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2981 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2982 fi;;
2983 esac
2984 # Pass precious variables to config.status.
2985 if test "$ac_new_set" = set; then
2986 case $ac_new_val in
2987 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2988 *) ac_arg=$ac_var=$ac_new_val ;;
2989 esac
2990 case " $ac_configure_args " in
2991 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2992 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2993 esac
2995 done
2996 if $ac_cache_corrupted; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3000 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3001 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3003 ## -------------------- ##
3004 ## Main body of script. ##
3005 ## -------------------- ##
3007 ac_ext=c
3008 ac_cpp='$CPP $CPPFLAGS'
3009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3021 gcc_version=`cat $srcdir/BASE-VER`
3023 # Determine the host, build, and target systems
3024 ac_aux_dir=
3025 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3026 for ac_t in install-sh install.sh shtool; do
3027 if test -f "$ac_dir/$ac_t"; then
3028 ac_aux_dir=$ac_dir
3029 ac_install_sh="$ac_aux_dir/$ac_t -c"
3030 break 2
3032 done
3033 done
3034 if test -z "$ac_aux_dir"; then
3035 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3038 # These three variables are undocumented and unsupported,
3039 # and are intended to be withdrawn in a future Autoconf release.
3040 # They can cause serious problems if a builder's source tree is in a directory
3041 # whose full name contains unusual characters.
3042 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3043 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3044 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3047 # Make sure we can run config.sub.
3048 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3049 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3052 $as_echo_n "checking build system type... " >&6; }
3053 if test "${ac_cv_build+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 ac_build_alias=$build_alias
3057 test "x$ac_build_alias" = x &&
3058 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3059 test "x$ac_build_alias" = x &&
3060 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3061 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3062 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3066 $as_echo "$ac_cv_build" >&6; }
3067 case $ac_cv_build in
3068 *-*-*) ;;
3069 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3070 esac
3071 build=$ac_cv_build
3072 ac_save_IFS=$IFS; IFS='-'
3073 set x $ac_cv_build
3074 shift
3075 build_cpu=$1
3076 build_vendor=$2
3077 shift; shift
3078 # Remember, the first character of IFS is used to create $*,
3079 # except with old shells:
3080 build_os=$*
3081 IFS=$ac_save_IFS
3082 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3086 $as_echo_n "checking host system type... " >&6; }
3087 if test "${ac_cv_host+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
3089 else
3090 if test "x$host_alias" = x; then
3091 ac_cv_host=$ac_cv_build
3092 else
3093 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3094 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3099 $as_echo "$ac_cv_host" >&6; }
3100 case $ac_cv_host in
3101 *-*-*) ;;
3102 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3103 esac
3104 host=$ac_cv_host
3105 ac_save_IFS=$IFS; IFS='-'
3106 set x $ac_cv_host
3107 shift
3108 host_cpu=$1
3109 host_vendor=$2
3110 shift; shift
3111 # Remember, the first character of IFS is used to create $*,
3112 # except with old shells:
3113 host_os=$*
3114 IFS=$ac_save_IFS
3115 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3119 $as_echo_n "checking target system type... " >&6; }
3120 if test "${ac_cv_target+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test "x$target_alias" = x; then
3124 ac_cv_target=$ac_cv_host
3125 else
3126 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3127 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3132 $as_echo "$ac_cv_target" >&6; }
3133 case $ac_cv_target in
3134 *-*-*) ;;
3135 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3136 esac
3137 target=$ac_cv_target
3138 ac_save_IFS=$IFS; IFS='-'
3139 set x $ac_cv_target
3140 shift
3141 target_cpu=$1
3142 target_vendor=$2
3143 shift; shift
3144 # Remember, the first character of IFS is used to create $*,
3145 # except with old shells:
3146 target_os=$*
3147 IFS=$ac_save_IFS
3148 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3151 # The aliases save the names the user supplied, while $host etc.
3152 # will get canonicalized.
3153 test -n "$target_alias" &&
3154 test "$program_prefix$program_suffix$program_transform_name" = \
3155 NONENONEs,x,x, &&
3156 program_prefix=${target_alias}-
3158 # Determine the noncanonical target name, for directory use.
3159 case ${build_alias} in
3160 "") build_noncanonical=${build} ;;
3161 *) build_noncanonical=${build_alias} ;;
3162 esac
3164 case ${host_alias} in
3165 "") host_noncanonical=${build_noncanonical} ;;
3166 *) host_noncanonical=${host_alias} ;;
3167 esac
3169 case ${target_alias} in
3170 "") target_noncanonical=${host_noncanonical} ;;
3171 *) target_noncanonical=${target_alias} ;;
3172 esac
3177 # Determine the target- and build-specific subdirectories
3179 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3180 # have matching libraries, they should use host libraries: Makefile.tpl
3181 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3182 # However, they still use the build modules, because the corresponding
3183 # host modules (e.g. bison) are only built for the host when bootstrap
3184 # finishes. So:
3185 # - build_subdir is where we find build modules, and never changes.
3186 # - build_libsubdir is where we find build libraries, and can be overridden.
3188 # Prefix 'build-' so this never conflicts with target_subdir.
3189 build_subdir="build-${build_noncanonical}"
3191 # Check whether --with-build-libsubdir was given.
3192 if test "${with_build_libsubdir+set}" = set; then :
3193 withval=$with_build_libsubdir; build_libsubdir="$withval"
3194 else
3195 build_libsubdir="$build_subdir"
3198 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3199 if ( test $srcdir = . && test -d gcc ) \
3200 || test -d $srcdir/../host-${host_noncanonical}; then
3201 host_subdir="host-${host_noncanonical}"
3202 else
3203 host_subdir=.
3205 # No prefix.
3206 target_subdir=${target_noncanonical}
3209 # Set program_transform_name
3210 test "$program_prefix" != NONE &&
3211 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3212 # Use a double $ so make ignores it.
3213 test "$program_suffix" != NONE &&
3214 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3215 # Double any \ or $.
3216 # By default was `s,x,x', remove it if useless.
3217 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3218 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3221 # Check for bogus environment variables.
3222 # Test if LIBRARY_PATH contains the notation for the current directory
3223 # since this would lead to problems installing/building glibc.
3224 # LIBRARY_PATH contains the current directory if one of the following
3225 # is true:
3226 # - one of the terminals (":" and ";") is the first or last sign
3227 # - two terminals occur directly after each other
3228 # - the path contains an element with a dot in it
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3230 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3231 case ${LIBRARY_PATH} in
3232 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3233 library_path_setting="contains current directory"
3236 library_path_setting="ok"
3238 esac
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3240 $as_echo "$library_path_setting" >&6; }
3241 if test "$library_path_setting" != "ok"; then
3242 as_fn_error "
3243 *** LIBRARY_PATH shouldn't contain the current directory when
3244 *** building gcc. Please change the environment variable
3245 *** and run configure again." "$LINENO" 5
3248 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3249 # since this would lead to problems installing/building glibc.
3250 # GCC_EXEC_PREFIX contains the current directory if one of the following
3251 # is true:
3252 # - one of the terminals (":" and ";") is the first or last sign
3253 # - two terminals occur directly after each other
3254 # - the path contains an element with a dot in it
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3256 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3257 case ${GCC_EXEC_PREFIX} in
3258 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3259 gcc_exec_prefix_setting="contains current directory"
3262 gcc_exec_prefix_setting="ok"
3264 esac
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3266 $as_echo "$gcc_exec_prefix_setting" >&6; }
3267 if test "$gcc_exec_prefix_setting" != "ok"; then
3268 as_fn_error "
3269 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3270 *** building gcc. Please change the environment variable
3271 *** and run configure again." "$LINENO" 5
3274 # -----------
3275 # Directories
3276 # -----------
3278 # Specify the local prefix
3279 local_prefix=
3281 # Check whether --with-local-prefix was given.
3282 if test "${with_local_prefix+set}" = set; then :
3283 withval=$with_local_prefix; case "${withval}" in
3284 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3285 no) ;;
3286 *) local_prefix=$with_local_prefix ;;
3287 esac
3291 # Default local prefix if it is empty
3292 if test x$local_prefix = x; then
3293 local_prefix=/usr/local
3296 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3297 # passed in by the toplevel make and thus we'd get different behavior
3298 # depending on where we built the sources.
3299 gcc_gxx_include_dir=
3300 # Specify the g++ header file directory
3302 # Check whether --with-gxx-include-dir was given.
3303 if test "${with_gxx_include_dir+set}" = set; then :
3304 withval=$with_gxx_include_dir; case "${withval}" in
3305 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3306 no) ;;
3307 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3308 esac
3312 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3313 if test x${gcc_gxx_include_dir} = x; then
3314 if test x${enable_version_specific_runtime_libs} = xyes; then
3315 gcc_gxx_include_dir='${libsubdir}/include/c++'
3316 else
3317 libstdcxx_incdir='include/c++/$(version)'
3318 if test x$host != x$target; then
3319 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3321 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3325 gcc_gxx_include_dir_add_sysroot=0
3326 if test "${with_sysroot+set}" = set; then
3327 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3328 if test "${gcc_gxx_without_sysroot}"; then
3329 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3330 gcc_gxx_include_dir_add_sysroot=1
3335 # Check whether --with-cpp_install_dir was given.
3336 if test "${with_cpp_install_dir+set}" = set; then :
3337 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3338 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3339 elif test x$withval != xno; then
3340 cpp_install_dir=$withval
3345 # We would like to our source tree to be readonly. However when releases or
3346 # pre-releases are generated, the flex/bison generated files as well as the
3347 # various formats of manuals need to be included along with the rest of the
3348 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3349 # just that.
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3352 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3353 # Check whether --enable-generated-files-in-srcdir was given.
3354 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3355 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3356 else
3357 generated_files_in_srcdir=no
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3362 $as_echo "$generated_files_in_srcdir" >&6; }
3364 if test "$generated_files_in_srcdir" = "yes"; then
3365 GENINSRC=''
3366 else
3367 GENINSRC='#'
3371 # -------------------
3372 # Find default linker
3373 # -------------------
3375 # With GNU ld
3377 # Check whether --with-gnu-ld was given.
3378 if test "${with_gnu_ld+set}" = set; then :
3379 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3380 else
3381 gnu_ld_flag=no
3385 # With pre-defined ld
3387 # Check whether --with-ld was given.
3388 if test "${with_ld+set}" = set; then :
3389 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3392 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3393 if test ! -x "$DEFAULT_LINKER"; then
3394 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3395 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3396 gnu_ld_flag=yes
3399 cat >>confdefs.h <<_ACEOF
3400 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3401 _ACEOF
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3406 $as_echo_n "checking whether a default linker was specified... " >&6; }
3407 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3408 if test x"$gnu_ld_flag" = x"no"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3410 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3411 else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3413 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3415 else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3420 # With demangler in GNU ld
3422 # Check whether --with-demangler-in-ld was given.
3423 if test "${with_demangler_in_ld+set}" = set; then :
3424 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3425 else
3426 demangler_in_ld=yes
3430 # ----------------------
3431 # Find default assembler
3432 # ----------------------
3434 # With GNU as
3436 # Check whether --with-gnu-as was given.
3437 if test "${with_gnu_as+set}" = set; then :
3438 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3439 else
3440 gas_flag=no
3445 # Check whether --with-as was given.
3446 if test "${with_as+set}" = set; then :
3447 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3450 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3451 if test ! -x "$DEFAULT_ASSEMBLER"; then
3452 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3453 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3454 gas_flag=yes
3457 cat >>confdefs.h <<_ACEOF
3458 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3459 _ACEOF
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3464 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3465 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3466 if test x"$gas_flag" = x"no"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3471 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3473 else
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3478 # ---------------
3479 # Find C compiler
3480 # ---------------
3482 # If a non-executable a.out is present (e.g. created by GNU as above even if
3483 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3484 # file, even when creating an executable, so an execution test fails.
3485 # Remove possible default executable files to avoid this.
3487 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3488 # Autoconf includes it.
3489 rm -f a.out a.exe b.out
3491 # Find the native compiler
3492 ac_ext=c
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497 if test -n "$ac_tool_prefix"; then
3498 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3499 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_CC+set}" = set; then :
3503 $as_echo_n "(cached) " >&6
3504 else
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC="$CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3511 IFS=$as_save_IFS
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 break 2
3519 done
3520 done
3521 IFS=$as_save_IFS
3525 CC=$ac_cv_prog_CC
3526 if test -n "$CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 $as_echo "$CC" >&6; }
3529 else
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3536 if test -z "$ac_cv_prog_CC"; then
3537 ac_ct_CC=$CC
3538 # Extract the first word of "gcc", so it can be a program name with args.
3539 set dummy gcc; ac_word=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 if test -n "$ac_ct_CC"; then
3546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3555 ac_cv_prog_ac_ct_CC="gcc"
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 break 2
3559 done
3560 done
3561 IFS=$as_save_IFS
3565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3566 if test -n "$ac_ct_CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3568 $as_echo "$ac_ct_CC" >&6; }
3569 else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3574 if test "x$ac_ct_CC" = x; then
3575 CC=""
3576 else
3577 case $cross_compiling:$ac_tool_warned in
3578 yes:)
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3582 esac
3583 CC=$ac_ct_CC
3585 else
3586 CC="$ac_cv_prog_CC"
3589 if test -z "$CC"; then
3590 if test -n "$ac_tool_prefix"; then
3591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3592 set dummy ${ac_tool_prefix}cc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC="$CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3608 ac_cv_prog_CC="${ac_tool_prefix}cc"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3612 done
3613 done
3614 IFS=$as_save_IFS
3618 CC=$ac_cv_prog_CC
3619 if test -n "$CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621 $as_echo "$CC" >&6; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3630 if test -z "$CC"; then
3631 # Extract the first word of "cc", so it can be a program name with args.
3632 set dummy cc; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if test "${ac_cv_prog_CC+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640 else
3641 ac_prog_rejected=no
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3650 ac_prog_rejected=yes
3651 continue
3653 ac_cv_prog_CC="cc"
3654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 break 2
3657 done
3658 done
3659 IFS=$as_save_IFS
3661 if test $ac_prog_rejected = yes; then
3662 # We found a bogon in the path, so make sure we never use it.
3663 set dummy $ac_cv_prog_CC
3664 shift
3665 if test $# != 0; then
3666 # We chose a different compiler from the bogus one.
3667 # However, it has the same basename, so the bogon will be chosen
3668 # first if we set CC to just the basename; use the full file name.
3669 shift
3670 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3675 CC=$ac_cv_prog_CC
3676 if test -n "$CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 $as_echo "$CC" >&6; }
3679 else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3686 if test -z "$CC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 for ac_prog in cl.exe
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_CC+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3711 done
3712 done
3713 IFS=$as_save_IFS
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3727 test -n "$CC" && break
3728 done
3730 if test -z "$CC"; then
3731 ac_ct_CC=$CC
3732 for ac_prog in cl.exe
3734 # Extract the first word of "$ac_prog", so it can be a program name with args.
3735 set dummy $ac_prog; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 if test -n "$ac_ct_CC"; then
3742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751 ac_cv_prog_ac_ct_CC="$ac_prog"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3755 done
3756 done
3757 IFS=$as_save_IFS
3761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3762 if test -n "$ac_ct_CC"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3764 $as_echo "$ac_ct_CC" >&6; }
3765 else
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3771 test -n "$ac_ct_CC" && break
3772 done
3774 if test "x$ac_ct_CC" = x; then
3775 CC=""
3776 else
3777 case $cross_compiling:$ac_tool_warned in
3778 yes:)
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3781 ac_tool_warned=yes ;;
3782 esac
3783 CC=$ac_ct_CC
3790 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792 as_fn_error "no acceptable C compiler found in \$PATH
3793 See \`config.log' for more details." "$LINENO" 5; }
3795 # Provide some information about the compiler.
3796 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3797 set X $ac_compile
3798 ac_compiler=$2
3799 for ac_option in --version -v -V -qversion; do
3800 { { ac_try="$ac_compiler $ac_option >&5"
3801 case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804 esac
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3808 ac_status=$?
3809 if test -s conftest.err; then
3810 sed '10a\
3811 ... rest of stderr output deleted ...
3812 10q' conftest.err >conftest.er1
3813 cat conftest.er1 >&5
3814 rm -f conftest.er1 conftest.err
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }
3818 done
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3824 main ()
3828 return 0;
3830 _ACEOF
3831 ac_clean_files_save=$ac_clean_files
3832 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3833 # Try to create an executable without -o first, disregard a.out.
3834 # It will help us diagnose broken compilers, and finding out an intuition
3835 # of exeext.
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3837 $as_echo_n "checking for C compiler default output file name... " >&6; }
3838 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3840 # The possible output files:
3841 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3843 ac_rmfiles=
3844 for ac_file in $ac_files
3846 case $ac_file in
3847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3848 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3849 esac
3850 done
3851 rm -f $ac_rmfiles
3853 if { { ac_try="$ac_link_default"
3854 case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_link_default") 2>&5
3861 ac_status=$?
3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863 test $ac_status = 0; }; then :
3864 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3865 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3866 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3867 # so that the user can short-circuit this test for compilers unknown to
3868 # Autoconf.
3869 for ac_file in $ac_files ''
3871 test -f "$ac_file" || continue
3872 case $ac_file in
3873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3875 [ab].out )
3876 # We found the default executable, but exeext='' is most
3877 # certainly right.
3878 break;;
3879 *.* )
3880 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3881 then :; else
3882 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3884 # We set ac_cv_exeext here because the later test for it is not
3885 # safe: cross compilers may not add the suffix if given an `-o'
3886 # argument, so we may need to know it at that point already.
3887 # Even if this section looks crufty: it has the advantage of
3888 # actually working.
3889 break;;
3891 break;;
3892 esac
3893 done
3894 test "$ac_cv_exeext" = no && ac_cv_exeext=
3896 else
3897 ac_file=''
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3900 $as_echo "$ac_file" >&6; }
3901 if test -z "$ac_file"; then :
3902 $as_echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907 { as_fn_set_status 77
3908 as_fn_error "C compiler cannot create executables
3909 See \`config.log' for more details." "$LINENO" 5; }; }
3911 ac_exeext=$ac_cv_exeext
3913 # Check that the compiler produces executables we can run. If not, either
3914 # the compiler is broken, or we cross compile.
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3916 $as_echo_n "checking whether the C compiler works... " >&6; }
3917 # If not cross compiling, check that we can run a simple program.
3918 if test "$cross_compiling" != yes; then
3919 if { ac_try='./$ac_file'
3920 { { case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_try") 2>&5
3927 ac_status=$?
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }; }; then
3930 cross_compiling=no
3931 else
3932 if test "$cross_compiling" = maybe; then
3933 cross_compiling=yes
3934 else
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 as_fn_error "cannot run C compiled programs.
3938 If you meant to cross compile, use \`--host'.
3939 See \`config.log' for more details." "$LINENO" 5; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3944 $as_echo "yes" >&6; }
3946 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3947 ac_clean_files=$ac_clean_files_save
3948 # Check that the compiler produces executables we can run. If not, either
3949 # the compiler is broken, or we cross compile.
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3951 $as_echo_n "checking whether we are cross compiling... " >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3953 $as_echo "$cross_compiling" >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3956 $as_echo_n "checking for suffix of executables... " >&6; }
3957 if { { ac_try="$ac_link"
3958 case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961 esac
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_link") 2>&5
3965 ac_status=$?
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; then :
3968 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3969 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3970 # work properly (i.e., refer to `conftest.exe'), while it won't with
3971 # `rm'.
3972 for ac_file in conftest.exe conftest conftest.*; do
3973 test -f "$ac_file" || continue
3974 case $ac_file in
3975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3976 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3977 break;;
3978 * ) break;;
3979 esac
3980 done
3981 else
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 as_fn_error "cannot compute suffix of executables: cannot compile and link
3985 See \`config.log' for more details." "$LINENO" 5; }
3987 rm -f conftest$ac_cv_exeext
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3989 $as_echo "$ac_cv_exeext" >&6; }
3991 rm -f conftest.$ac_ext
3992 EXEEXT=$ac_cv_exeext
3993 ac_exeext=$EXEEXT
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3995 $as_echo_n "checking for suffix of object files... " >&6; }
3996 if test "${ac_cv_objext+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4003 main ()
4007 return 0;
4009 _ACEOF
4010 rm -f conftest.o conftest.obj
4011 if { { ac_try="$ac_compile"
4012 case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_compile") 2>&5
4019 ac_status=$?
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; then :
4022 for ac_file in conftest.o conftest.obj conftest.*; do
4023 test -f "$ac_file" || continue;
4024 case $ac_file in
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4027 break;;
4028 esac
4029 done
4030 else
4031 $as_echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error "cannot compute suffix of object files: cannot compile
4037 See \`config.log' for more details." "$LINENO" 5; }
4039 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4042 $as_echo "$ac_cv_objext" >&6; }
4043 OBJEXT=$ac_cv_objext
4044 ac_objext=$OBJEXT
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4046 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4047 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4054 main ()
4056 #ifndef __GNUC__
4057 choke me
4058 #endif
4061 return 0;
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065 ac_compiler_gnu=yes
4066 else
4067 ac_compiler_gnu=no
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4074 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4075 if test $ac_compiler_gnu = yes; then
4076 GCC=yes
4077 else
4078 GCC=
4080 ac_test_CFLAGS=${CFLAGS+set}
4081 ac_save_CFLAGS=$CFLAGS
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4083 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4084 if test "${ac_cv_prog_cc_g+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 ac_save_c_werror_flag=$ac_c_werror_flag
4088 ac_c_werror_flag=yes
4089 ac_cv_prog_cc_g=no
4090 CFLAGS="-g"
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4095 main ()
4099 return 0;
4101 _ACEOF
4102 if ac_fn_c_try_compile "$LINENO"; then :
4103 ac_cv_prog_cc_g=yes
4104 else
4105 CFLAGS=""
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4110 main ()
4114 return 0;
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"; then :
4119 else
4120 ac_c_werror_flag=$ac_save_c_werror_flag
4121 CFLAGS="-g"
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4126 main ()
4130 return 0;
4132 _ACEOF
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_cv_prog_cc_g=yes
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 ac_c_werror_flag=$ac_save_c_werror_flag
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4144 $as_echo "$ac_cv_prog_cc_g" >&6; }
4145 if test "$ac_test_CFLAGS" = set; then
4146 CFLAGS=$ac_save_CFLAGS
4147 elif test $ac_cv_prog_cc_g = yes; then
4148 if test "$GCC" = yes; then
4149 CFLAGS="-g -O2"
4150 else
4151 CFLAGS="-g"
4153 else
4154 if test "$GCC" = yes; then
4155 CFLAGS="-O2"
4156 else
4157 CFLAGS=
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4161 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4162 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 ac_cv_prog_cc_c89=no
4166 ac_save_CC=$CC
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <stdarg.h>
4170 #include <stdio.h>
4171 #include <sys/types.h>
4172 #include <sys/stat.h>
4173 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4174 struct buf { int x; };
4175 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4176 static char *e (p, i)
4177 char **p;
4178 int i;
4180 return p[i];
4182 static char *f (char * (*g) (char **, int), char **p, ...)
4184 char *s;
4185 va_list v;
4186 va_start (v,p);
4187 s = g (p, va_arg (v,int));
4188 va_end (v);
4189 return s;
4192 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4193 function prototypes and stuff, but not '\xHH' hex character constants.
4194 These don't provoke an error unfortunately, instead are silently treated
4195 as 'x'. The following induces an error, until -std is added to get
4196 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4197 array size at least. It's necessary to write '\x00'==0 to get something
4198 that's true only with -std. */
4199 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4201 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4202 inside strings and character constants. */
4203 #define FOO(x) 'x'
4204 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4206 int test (int i, double x);
4207 struct s1 {int (*f) (int a);};
4208 struct s2 {int (*f) (double a);};
4209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4210 int argc;
4211 char **argv;
4213 main ()
4215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4217 return 0;
4219 _ACEOF
4220 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4221 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4223 CC="$ac_save_CC $ac_arg"
4224 if ac_fn_c_try_compile "$LINENO"; then :
4225 ac_cv_prog_cc_c89=$ac_arg
4227 rm -f core conftest.err conftest.$ac_objext
4228 test "x$ac_cv_prog_cc_c89" != "xno" && break
4229 done
4230 rm -f conftest.$ac_ext
4231 CC=$ac_save_CC
4234 # AC_CACHE_VAL
4235 case "x$ac_cv_prog_cc_c89" in
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4238 $as_echo "none needed" >&6; } ;;
4239 xno)
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4241 $as_echo "unsupported" >&6; } ;;
4243 CC="$CC $ac_cv_prog_cc_c89"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4245 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4246 esac
4247 if test "x$ac_cv_prog_cc_c89" != xno; then :
4251 ac_ext=c
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257 if test "x$CC" != xcc; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4259 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4260 else
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4262 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4264 set dummy $CC; ac_cc=`$as_echo "$2" |
4265 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4266 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4273 main ()
4277 return 0;
4279 _ACEOF
4280 # Make sure it works both with $CC and with simple cc.
4281 # We do the test twice because some compilers refuse to overwrite an
4282 # existing .o file with -o, though they will create one.
4283 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4284 rm -f conftest2.*
4285 if { { case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_try") 2>&5
4292 ac_status=$?
4293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; } &&
4295 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 $as_echo "$ac_try_echo"; } >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4304 test $ac_status = 0; };
4305 then
4306 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4307 if test "x$CC" != xcc; then
4308 # Test first that cc exists at all.
4309 if { ac_try='cc -c conftest.$ac_ext >&5'
4310 { { case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_try") 2>&5
4317 ac_status=$?
4318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }; }; then
4320 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4321 rm -f conftest2.*
4322 if { { case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325 esac
4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328 (eval "$ac_try") 2>&5
4329 ac_status=$?
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; } &&
4332 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335 esac
4336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337 $as_echo "$ac_try_echo"; } >&5
4338 (eval "$ac_try") 2>&5
4339 ac_status=$?
4340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 test $ac_status = 0; };
4342 then
4343 # cc works too.
4345 else
4346 # cc exists but doesn't like -o.
4347 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4351 else
4352 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4354 rm -f core conftest*
4357 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4359 $as_echo "yes" >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4364 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4368 # expand $ac_aux_dir to an absolute path
4369 am_aux_dir=`cd $ac_aux_dir && pwd`
4371 # FIXME: we rely on the cache variable name because
4372 # there is no other way.
4373 set dummy $CC
4374 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4375 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4376 if test "$am_t" != yes; then
4377 # Losing compiler, so override with the script.
4378 # FIXME: It is wrong to rewrite CC.
4379 # But if we don't then we get into trouble of one sort or another.
4380 # A longer-term fix would be to have automake use am__CC in this case,
4381 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4382 CC="$am_aux_dir/compile $CC"
4386 ac_ext=cpp
4387 ac_cpp='$CXXCPP $CPPFLAGS'
4388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4391 if test -z "$CXX"; then
4392 if test -n "$CCC"; then
4393 CXX=$CCC
4394 else
4395 if test -n "$ac_tool_prefix"; then
4396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if test "${ac_cv_prog_CXX+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if test -n "$CXX"; then
4406 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4419 done
4420 done
4421 IFS=$as_save_IFS
4425 CXX=$ac_cv_prog_CXX
4426 if test -n "$CXX"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4428 $as_echo "$CXX" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4435 test -n "$CXX" && break
4436 done
4438 if test -z "$CXX"; then
4439 ac_ct_CXX=$CXX
4440 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4442 # Extract the first word of "$ac_prog", so it can be a program name with args.
4443 set dummy $ac_prog; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 if test -n "$ac_ct_CXX"; then
4450 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459 ac_cv_prog_ac_ct_CXX="$ac_prog"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4463 done
4464 done
4465 IFS=$as_save_IFS
4469 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4470 if test -n "$ac_ct_CXX"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4472 $as_echo "$ac_ct_CXX" >&6; }
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4479 test -n "$ac_ct_CXX" && break
4480 done
4482 if test "x$ac_ct_CXX" = x; then
4483 CXX="g++"
4484 else
4485 case $cross_compiling:$ac_tool_warned in
4486 yes:)
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4489 ac_tool_warned=yes ;;
4490 esac
4491 CXX=$ac_ct_CXX
4497 # Provide some information about the compiler.
4498 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4499 set X $ac_compile
4500 ac_compiler=$2
4501 for ac_option in --version -v -V -qversion; do
4502 { { ac_try="$ac_compiler $ac_option >&5"
4503 case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4506 esac
4507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4508 $as_echo "$ac_try_echo"; } >&5
4509 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4510 ac_status=$?
4511 if test -s conftest.err; then
4512 sed '10a\
4513 ... rest of stderr output deleted ...
4514 10q' conftest.err >conftest.er1
4515 cat conftest.er1 >&5
4516 rm -f conftest.er1 conftest.err
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }
4520 done
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4523 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4524 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4531 main ()
4533 #ifndef __GNUC__
4534 choke me
4535 #endif
4538 return 0;
4540 _ACEOF
4541 if ac_fn_cxx_try_compile "$LINENO"; then :
4542 ac_compiler_gnu=yes
4543 else
4544 ac_compiler_gnu=no
4546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4551 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4552 if test $ac_compiler_gnu = yes; then
4553 GXX=yes
4554 else
4555 GXX=
4557 ac_test_CXXFLAGS=${CXXFLAGS+set}
4558 ac_save_CXXFLAGS=$CXXFLAGS
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4560 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4561 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4565 ac_cxx_werror_flag=yes
4566 ac_cv_prog_cxx_g=no
4567 CXXFLAGS="-g"
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4572 main ()
4576 return 0;
4578 _ACEOF
4579 if ac_fn_cxx_try_compile "$LINENO"; then :
4580 ac_cv_prog_cxx_g=yes
4581 else
4582 CXXFLAGS=""
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4587 main ()
4591 return 0;
4593 _ACEOF
4594 if ac_fn_cxx_try_compile "$LINENO"; then :
4596 else
4597 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4598 CXXFLAGS="-g"
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4603 main ()
4607 return 0;
4609 _ACEOF
4610 if ac_fn_cxx_try_compile "$LINENO"; then :
4611 ac_cv_prog_cxx_g=yes
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4621 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4622 if test "$ac_test_CXXFLAGS" = set; then
4623 CXXFLAGS=$ac_save_CXXFLAGS
4624 elif test $ac_cv_prog_cxx_g = yes; then
4625 if test "$GXX" = yes; then
4626 CXXFLAGS="-g -O2"
4627 else
4628 CXXFLAGS="-g"
4630 else
4631 if test "$GXX" = yes; then
4632 CXXFLAGS="-O2"
4633 else
4634 CXXFLAGS=
4637 ac_ext=c
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$GNATBIND"; then
4655 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4668 done
4669 done
4670 IFS=$as_save_IFS
4674 GNATBIND=$ac_cv_prog_GNATBIND
4675 if test -n "$GNATBIND"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4677 $as_echo "$GNATBIND" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4685 if test -z "$ac_cv_prog_GNATBIND"; then
4686 ac_ct_GNATBIND=$GNATBIND
4687 # Extract the first word of "gnatbind", so it can be a program name with args.
4688 set dummy gnatbind; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$ac_ct_GNATBIND"; then
4695 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4708 done
4709 done
4710 IFS=$as_save_IFS
4714 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4715 if test -n "$ac_ct_GNATBIND"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4717 $as_echo "$ac_ct_GNATBIND" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4723 if test "x$ac_ct_GNATBIND" = x; then
4724 GNATBIND="no"
4725 else
4726 case $cross_compiling:$ac_tool_warned in
4727 yes:)
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4731 esac
4732 GNATBIND=$ac_ct_GNATBIND
4734 else
4735 GNATBIND="$ac_cv_prog_GNATBIND"
4738 if test -n "$ac_tool_prefix"; then
4739 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 if test -n "$GNATMAKE"; then
4747 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4760 done
4761 done
4762 IFS=$as_save_IFS
4766 GNATMAKE=$ac_cv_prog_GNATMAKE
4767 if test -n "$GNATMAKE"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4769 $as_echo "$GNATMAKE" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4777 if test -z "$ac_cv_prog_GNATMAKE"; then
4778 ac_ct_GNATMAKE=$GNATMAKE
4779 # Extract the first word of "gnatmake", so it can be a program name with args.
4780 set dummy gnatmake; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 if test -n "$ac_ct_GNATMAKE"; then
4787 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4800 done
4801 done
4802 IFS=$as_save_IFS
4806 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4807 if test -n "$ac_ct_GNATMAKE"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4809 $as_echo "$ac_ct_GNATMAKE" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4815 if test "x$ac_ct_GNATMAKE" = x; then
4816 GNATMAKE="no"
4817 else
4818 case $cross_compiling:$ac_tool_warned in
4819 yes:)
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4822 ac_tool_warned=yes ;;
4823 esac
4824 GNATMAKE=$ac_ct_GNATMAKE
4826 else
4827 GNATMAKE="$ac_cv_prog_GNATMAKE"
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4831 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4832 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 cat >conftest.adb <<EOF
4836 procedure conftest is begin null; end conftest;
4838 acx_cv_cc_gcc_supports_ada=no
4839 # There is a bug in old released versions of GCC which causes the
4840 # driver to exit successfully when the appropriate language module
4841 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4842 # Therefore we must check for the error message as well as an
4843 # unsuccessful exit.
4844 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4845 # given a .adb file, but produce no object file. So we must check
4846 # if an object file was really produced to guard against this.
4847 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4848 if test x"$errors" = x && test -f conftest.$ac_objext; then
4849 acx_cv_cc_gcc_supports_ada=yes
4851 rm -f conftest.*
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4854 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4856 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4857 have_gnat=yes
4858 else
4859 have_gnat=no
4863 # autoconf is lame and doesn't give us any substitution variable for this.
4864 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4865 NO_MINUS_C_MINUS_O=yes
4866 else
4867 OUTPUT_OPTION='-o $@'
4872 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4873 # optimizations to be activated explicitly by the toplevel.
4874 case "$CC" in
4875 */prev-gcc/xgcc*) ;;
4876 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4877 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4878 esac
4882 # Determine PICFLAG for target gnatlib.
4887 case "${target}" in
4888 # PIC is the default on some targets or must not be used.
4889 *-*-darwin*)
4890 # PIC is the default on this platform
4891 # Common symbols not allowed in MH_DYLIB files
4892 PICFLAG_FOR_TARGET=-fno-common
4894 alpha*-dec-osf5*)
4895 # PIC is the default.
4897 hppa*64*-*-hpux*)
4898 # PIC is the default for 64-bit PA HP-UX.
4900 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4902 i[34567]86-*-mingw* | x86_64-*-mingw*)
4904 i[34567]86-*-interix[3-9]*)
4905 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4906 # Instead, we relocate shared libraries at runtime.
4908 i[34567]86-*-nto-qnx*)
4909 # QNX uses GNU C++, but need to define -shared option too, otherwise
4910 # it will coredump.
4911 PICFLAG_FOR_TARGET='-fPIC -shared'
4913 i[34567]86-pc-msdosdjgpp*)
4914 # DJGPP does not support shared libraries at all.
4916 ia64*-*-hpux*)
4917 # On IA64 HP-UX, PIC is the default but the pic flag
4918 # sets the default TLS model and affects inlining.
4919 PICFLAG_FOR_TARGET=-fPIC
4921 mips-sgi-irix6*)
4922 # PIC is the default.
4924 rs6000-ibm-aix* | powerpc-ibm-aix*)
4925 # All AIX code is PIC.
4928 # Some targets support both -fPIC and -fpic, but prefer the latter.
4929 # FIXME: Why?
4930 i[34567]86-*-* | x86_64-*-*)
4931 PICFLAG_FOR_TARGET=-fpic
4933 m68k-*-*)
4934 PICFLAG_FOR_TARGET=-fpic
4936 # FIXME: Override -fPIC default in libgcc only?
4937 sh-*-linux* | sh[2346lbe]*-*-linux*)
4938 PICFLAG_FOR_TARGET=-fpic
4940 # FIXME: Simplify to sh*-*-netbsd*?
4941 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4942 sh64-*-netbsd* | sh64l*-*-netbsd*)
4943 PICFLAG_FOR_TARGET=-fpic
4945 # Default to -fPIC unless specified otherwise.
4947 PICFLAG_FOR_TARGET=-fPIC
4949 esac
4951 # If the user explicitly uses -fpic/-fPIC, keep that.
4952 case "${CFLAGS_FOR_TARGET}" in
4953 *-fpic*)
4954 PICFLAG_FOR_TARGET=-fpic
4956 *-fPIC*)
4957 PICFLAG_FOR_TARGET=-fPIC
4959 esac
4963 # -------------------------
4964 # Check C compiler features
4965 # -------------------------
4968 ac_ext=c
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4974 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4975 # On Suns, sometimes $CPP names a directory.
4976 if test -n "$CPP" && test -d "$CPP"; then
4977 CPP=
4979 if test -z "$CPP"; then
4980 if test "${ac_cv_prog_CPP+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 # Double quotes because CPP needs to be expanded
4984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4986 ac_preproc_ok=false
4987 for ac_c_preproc_warn_flag in '' yes
4989 # Use a header file that comes with gcc, so configuring glibc
4990 # with a fresh cross-compiler works.
4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 # <limits.h> exists even on freestanding compilers.
4993 # On the NeXT, cc -E runs the code through the compiler's parser,
4994 # not just through cpp. "Syntax error" is here to catch this case.
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997 #ifdef __STDC__
4998 # include <limits.h>
4999 #else
5000 # include <assert.h>
5001 #endif
5002 Syntax error
5003 _ACEOF
5004 if ac_fn_c_try_cpp "$LINENO"; then :
5006 else
5007 # Broken: fails on valid input.
5008 continue
5010 rm -f conftest.err conftest.$ac_ext
5012 # OK, works on sane cases. Now check whether nonexistent headers
5013 # can be detected and how.
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5016 #include <ac_nonexistent.h>
5017 _ACEOF
5018 if ac_fn_c_try_cpp "$LINENO"; then :
5019 # Broken: success on invalid input.
5020 continue
5021 else
5022 # Passes both tests.
5023 ac_preproc_ok=:
5024 break
5026 rm -f conftest.err conftest.$ac_ext
5028 done
5029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030 rm -f conftest.err conftest.$ac_ext
5031 if $ac_preproc_ok; then :
5032 break
5035 done
5036 ac_cv_prog_CPP=$CPP
5039 CPP=$ac_cv_prog_CPP
5040 else
5041 ac_cv_prog_CPP=$CPP
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5044 $as_echo "$CPP" >&6; }
5045 ac_preproc_ok=false
5046 for ac_c_preproc_warn_flag in '' yes
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5056 #ifdef __STDC__
5057 # include <limits.h>
5058 #else
5059 # include <assert.h>
5060 #endif
5061 Syntax error
5062 _ACEOF
5063 if ac_fn_c_try_cpp "$LINENO"; then :
5065 else
5066 # Broken: fails on valid input.
5067 continue
5069 rm -f conftest.err conftest.$ac_ext
5071 # OK, works on sane cases. Now check whether nonexistent headers
5072 # can be detected and how.
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075 #include <ac_nonexistent.h>
5076 _ACEOF
5077 if ac_fn_c_try_cpp "$LINENO"; then :
5078 # Broken: success on invalid input.
5079 continue
5080 else
5081 # Passes both tests.
5082 ac_preproc_ok=:
5083 break
5085 rm -f conftest.err conftest.$ac_ext
5087 done
5088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089 rm -f conftest.err conftest.$ac_ext
5090 if $ac_preproc_ok; then :
5092 else
5093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5095 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5096 See \`config.log' for more details." "$LINENO" 5; }
5099 ac_ext=c
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5107 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5108 if test "${ac_cv_path_GREP+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -z "$GREP"; then
5112 ac_path_GREP_found=false
5113 # Loop through the user's path and test for each of PROGNAME-LIST
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_prog in grep ggrep; do
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5122 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5123 # Check for GNU ac_path_GREP and select it if it is found.
5124 # Check for GNU $ac_path_GREP
5125 case `"$ac_path_GREP" --version 2>&1` in
5126 *GNU*)
5127 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5129 ac_count=0
5130 $as_echo_n 0123456789 >"conftest.in"
5131 while :
5133 cat "conftest.in" "conftest.in" >"conftest.tmp"
5134 mv "conftest.tmp" "conftest.in"
5135 cp "conftest.in" "conftest.nl"
5136 $as_echo 'GREP' >> "conftest.nl"
5137 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5139 as_fn_arith $ac_count + 1 && ac_count=$as_val
5140 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5141 # Best one so far, save it but keep looking for a better one
5142 ac_cv_path_GREP="$ac_path_GREP"
5143 ac_path_GREP_max=$ac_count
5145 # 10*(2^10) chars as input seems more than enough
5146 test $ac_count -gt 10 && break
5147 done
5148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5149 esac
5151 $ac_path_GREP_found && break 3
5152 done
5153 done
5154 done
5155 IFS=$as_save_IFS
5156 if test -z "$ac_cv_path_GREP"; then
5157 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5159 else
5160 ac_cv_path_GREP=$GREP
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5165 $as_echo "$ac_cv_path_GREP" >&6; }
5166 GREP="$ac_cv_path_GREP"
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5170 $as_echo_n "checking for egrep... " >&6; }
5171 if test "${ac_cv_path_EGREP+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5175 then ac_cv_path_EGREP="$GREP -E"
5176 else
5177 if test -z "$EGREP"; then
5178 ac_path_EGREP_found=false
5179 # Loop through the user's path and test for each of PROGNAME-LIST
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_prog in egrep; do
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5188 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5189 # Check for GNU ac_path_EGREP and select it if it is found.
5190 # Check for GNU $ac_path_EGREP
5191 case `"$ac_path_EGREP" --version 2>&1` in
5192 *GNU*)
5193 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5195 ac_count=0
5196 $as_echo_n 0123456789 >"conftest.in"
5197 while :
5199 cat "conftest.in" "conftest.in" >"conftest.tmp"
5200 mv "conftest.tmp" "conftest.in"
5201 cp "conftest.in" "conftest.nl"
5202 $as_echo 'EGREP' >> "conftest.nl"
5203 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5205 as_fn_arith $ac_count + 1 && ac_count=$as_val
5206 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5207 # Best one so far, save it but keep looking for a better one
5208 ac_cv_path_EGREP="$ac_path_EGREP"
5209 ac_path_EGREP_max=$ac_count
5211 # 10*(2^10) chars as input seems more than enough
5212 test $ac_count -gt 10 && break
5213 done
5214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5215 esac
5217 $ac_path_EGREP_found && break 3
5218 done
5219 done
5220 done
5221 IFS=$as_save_IFS
5222 if test -z "$ac_cv_path_EGREP"; then
5223 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5225 else
5226 ac_cv_path_EGREP=$EGREP
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5232 $as_echo "$ac_cv_path_EGREP" >&6; }
5233 EGREP="$ac_cv_path_EGREP"
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5237 $as_echo_n "checking for ANSI C header files... " >&6; }
5238 if test "${ac_cv_header_stdc+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5243 #include <stdlib.h>
5244 #include <stdarg.h>
5245 #include <string.h>
5246 #include <float.h>
5249 main ()
5253 return 0;
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"; then :
5257 ac_cv_header_stdc=yes
5258 else
5259 ac_cv_header_stdc=no
5261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 if test $ac_cv_header_stdc = yes; then
5264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5267 #include <string.h>
5269 _ACEOF
5270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 $EGREP "memchr" >/dev/null 2>&1; then :
5273 else
5274 ac_cv_header_stdc=no
5276 rm -f conftest*
5280 if test $ac_cv_header_stdc = yes; then
5281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 #include <stdlib.h>
5286 _ACEOF
5287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5288 $EGREP "free" >/dev/null 2>&1; then :
5290 else
5291 ac_cv_header_stdc=no
5293 rm -f conftest*
5297 if test $ac_cv_header_stdc = yes; then
5298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5299 if test "$cross_compiling" = yes; then :
5301 else
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304 #include <ctype.h>
5305 #include <stdlib.h>
5306 #if ((' ' & 0x0FF) == 0x020)
5307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5309 #else
5310 # define ISLOWER(c) \
5311 (('a' <= (c) && (c) <= 'i') \
5312 || ('j' <= (c) && (c) <= 'r') \
5313 || ('s' <= (c) && (c) <= 'z'))
5314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5315 #endif
5317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5319 main ()
5321 int i;
5322 for (i = 0; i < 256; i++)
5323 if (XOR (islower (i), ISLOWER (i))
5324 || toupper (i) != TOUPPER (i))
5325 return 2;
5326 return 0;
5328 _ACEOF
5329 if ac_fn_c_try_run "$LINENO"; then :
5331 else
5332 ac_cv_header_stdc=no
5334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5335 conftest.$ac_objext conftest.beam conftest.$ac_ext
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5341 $as_echo "$ac_cv_header_stdc" >&6; }
5342 if test $ac_cv_header_stdc = yes; then
5344 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5349 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5350 inttypes.h stdint.h unistd.h
5351 do :
5352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5353 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5355 eval as_val=\$$as_ac_Header
5356 if test "x$as_val" = x""yes; then :
5357 cat >>confdefs.h <<_ACEOF
5358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5359 _ACEOF
5363 done
5367 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5368 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5369 MINIX=yes
5370 else
5371 MINIX=
5375 if test "$MINIX" = yes; then
5377 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5380 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5383 $as_echo "#define _MINIX 1" >>confdefs.h
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5389 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5390 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5396 # define __EXTENSIONS__ 1
5397 $ac_includes_default
5399 main ()
5403 return 0;
5405 _ACEOF
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407 ac_cv_safe_to_define___extensions__=yes
5408 else
5409 ac_cv_safe_to_define___extensions__=no
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5414 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5415 test $ac_cv_safe_to_define___extensions__ = yes &&
5416 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5418 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5420 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5422 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5424 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5427 ac_ext=c
5428 ac_cpp='$CPP $CPPFLAGS'
5429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5433 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5434 # On Suns, sometimes $CPP names a directory.
5435 if test -n "$CPP" && test -d "$CPP"; then
5436 CPP=
5438 if test -z "$CPP"; then
5439 if test "${ac_cv_prog_CPP+set}" = set; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 # Double quotes because CPP needs to be expanded
5443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5445 ac_preproc_ok=false
5446 for ac_c_preproc_warn_flag in '' yes
5448 # Use a header file that comes with gcc, so configuring glibc
5449 # with a fresh cross-compiler works.
5450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5451 # <limits.h> exists even on freestanding compilers.
5452 # On the NeXT, cc -E runs the code through the compiler's parser,
5453 # not just through cpp. "Syntax error" is here to catch this case.
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456 #ifdef __STDC__
5457 # include <limits.h>
5458 #else
5459 # include <assert.h>
5460 #endif
5461 Syntax error
5462 _ACEOF
5463 if ac_fn_c_try_cpp "$LINENO"; then :
5465 else
5466 # Broken: fails on valid input.
5467 continue
5469 rm -f conftest.err conftest.$ac_ext
5471 # OK, works on sane cases. Now check whether nonexistent headers
5472 # can be detected and how.
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 #include <ac_nonexistent.h>
5476 _ACEOF
5477 if ac_fn_c_try_cpp "$LINENO"; then :
5478 # Broken: success on invalid input.
5479 continue
5480 else
5481 # Passes both tests.
5482 ac_preproc_ok=:
5483 break
5485 rm -f conftest.err conftest.$ac_ext
5487 done
5488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5489 rm -f conftest.err conftest.$ac_ext
5490 if $ac_preproc_ok; then :
5491 break
5494 done
5495 ac_cv_prog_CPP=$CPP
5498 CPP=$ac_cv_prog_CPP
5499 else
5500 ac_cv_prog_CPP=$CPP
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5503 $as_echo "$CPP" >&6; }
5504 ac_preproc_ok=false
5505 for ac_c_preproc_warn_flag in '' yes
5507 # Use a header file that comes with gcc, so configuring glibc
5508 # with a fresh cross-compiler works.
5509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5510 # <limits.h> exists even on freestanding compilers.
5511 # On the NeXT, cc -E runs the code through the compiler's parser,
5512 # not just through cpp. "Syntax error" is here to catch this case.
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 #ifdef __STDC__
5516 # include <limits.h>
5517 #else
5518 # include <assert.h>
5519 #endif
5520 Syntax error
5521 _ACEOF
5522 if ac_fn_c_try_cpp "$LINENO"; then :
5524 else
5525 # Broken: fails on valid input.
5526 continue
5528 rm -f conftest.err conftest.$ac_ext
5530 # OK, works on sane cases. Now check whether nonexistent headers
5531 # can be detected and how.
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #include <ac_nonexistent.h>
5535 _ACEOF
5536 if ac_fn_c_try_cpp "$LINENO"; then :
5537 # Broken: success on invalid input.
5538 continue
5539 else
5540 # Passes both tests.
5541 ac_preproc_ok=:
5542 break
5544 rm -f conftest.err conftest.$ac_ext
5546 done
5547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5548 rm -f conftest.err conftest.$ac_ext
5549 if $ac_preproc_ok; then :
5551 else
5552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5554 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5555 See \`config.log' for more details." "$LINENO" 5; }
5558 ac_ext=c
5559 ac_cpp='$CPP $CPPFLAGS'
5560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5565 $as_echo_n "checking for inline... " >&6; }
5566 if test "${ac_cv_c_inline+set}" = set; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 ac_cv_c_inline=no
5570 for ac_kw in inline __inline__ __inline; do
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 #ifndef __cplusplus
5574 typedef int foo_t;
5575 static $ac_kw foo_t static_foo () {return 0; }
5576 $ac_kw foo_t foo () {return 0; }
5577 #endif
5579 _ACEOF
5580 if ac_fn_c_try_compile "$LINENO"; then :
5581 ac_cv_c_inline=$ac_kw
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 test "$ac_cv_c_inline" != no && break
5585 done
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5589 $as_echo "$ac_cv_c_inline" >&6; }
5591 case $ac_cv_c_inline in
5592 inline | yes) ;;
5594 case $ac_cv_c_inline in
5595 no) ac_val=;;
5596 *) ac_val=$ac_cv_c_inline;;
5597 esac
5598 cat >>confdefs.h <<_ACEOF
5599 #ifndef __cplusplus
5600 #define inline $ac_val
5601 #endif
5602 _ACEOF
5604 esac
5607 # Check whether --enable-largefile was given.
5608 if test "${enable_largefile+set}" = set; then :
5609 enableval=$enable_largefile;
5612 if test "$enable_largefile" != no; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5615 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5616 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 ac_cv_sys_largefile_CC=no
5620 if test "$GCC" != yes; then
5621 ac_save_CC=$CC
5622 while :; do
5623 # IRIX 6.2 and later do not support large files by default,
5624 # so use the C compiler's -n32 option if that helps.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 #include <sys/types.h>
5628 /* Check that off_t can represent 2**63 - 1 correctly.
5629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5630 since some C++ compilers masquerading as C compilers
5631 incorrectly reject 9223372036854775807. */
5632 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5634 && LARGE_OFF_T % 2147483647 == 1)
5635 ? 1 : -1];
5637 main ()
5641 return 0;
5643 _ACEOF
5644 if ac_fn_c_try_compile "$LINENO"; then :
5645 break
5647 rm -f core conftest.err conftest.$ac_objext
5648 CC="$CC -n32"
5649 if ac_fn_c_try_compile "$LINENO"; then :
5650 ac_cv_sys_largefile_CC=' -n32'; break
5652 rm -f core conftest.err conftest.$ac_objext
5653 break
5654 done
5655 CC=$ac_save_CC
5656 rm -f conftest.$ac_ext
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5660 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5661 if test "$ac_cv_sys_largefile_CC" != no; then
5662 CC=$CC$ac_cv_sys_largefile_CC
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5666 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5667 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 while :; do
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <sys/types.h>
5674 /* Check that off_t can represent 2**63 - 1 correctly.
5675 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5676 since some C++ compilers masquerading as C compilers
5677 incorrectly reject 9223372036854775807. */
5678 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5679 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5680 && LARGE_OFF_T % 2147483647 == 1)
5681 ? 1 : -1];
5683 main ()
5687 return 0;
5689 _ACEOF
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691 ac_cv_sys_file_offset_bits=no; break
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #define _FILE_OFFSET_BITS 64
5697 #include <sys/types.h>
5698 /* Check that off_t can represent 2**63 - 1 correctly.
5699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5700 since some C++ compilers masquerading as C compilers
5701 incorrectly reject 9223372036854775807. */
5702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5704 && LARGE_OFF_T % 2147483647 == 1)
5705 ? 1 : -1];
5707 main ()
5711 return 0;
5713 _ACEOF
5714 if ac_fn_c_try_compile "$LINENO"; then :
5715 ac_cv_sys_file_offset_bits=64; break
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718 ac_cv_sys_file_offset_bits=unknown
5719 break
5720 done
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5723 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5724 case $ac_cv_sys_file_offset_bits in #(
5725 no | unknown) ;;
5727 cat >>confdefs.h <<_ACEOF
5728 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5729 _ACEOF
5731 esac
5732 rm -rf conftest*
5733 if test $ac_cv_sys_file_offset_bits = unknown; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5735 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5736 if test "${ac_cv_sys_large_files+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 while :; do
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include <sys/types.h>
5743 /* Check that off_t can represent 2**63 - 1 correctly.
5744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5745 since some C++ compilers masquerading as C compilers
5746 incorrectly reject 9223372036854775807. */
5747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5749 && LARGE_OFF_T % 2147483647 == 1)
5750 ? 1 : -1];
5752 main ()
5756 return 0;
5758 _ACEOF
5759 if ac_fn_c_try_compile "$LINENO"; then :
5760 ac_cv_sys_large_files=no; break
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #define _LARGE_FILES 1
5766 #include <sys/types.h>
5767 /* Check that off_t can represent 2**63 - 1 correctly.
5768 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5769 since some C++ compilers masquerading as C compilers
5770 incorrectly reject 9223372036854775807. */
5771 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5772 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5773 && LARGE_OFF_T % 2147483647 == 1)
5774 ? 1 : -1];
5776 main ()
5780 return 0;
5782 _ACEOF
5783 if ac_fn_c_try_compile "$LINENO"; then :
5784 ac_cv_sys_large_files=1; break
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 ac_cv_sys_large_files=unknown
5788 break
5789 done
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5792 $as_echo "$ac_cv_sys_large_files" >&6; }
5793 case $ac_cv_sys_large_files in #(
5794 no | unknown) ;;
5796 cat >>confdefs.h <<_ACEOF
5797 #define _LARGE_FILES $ac_cv_sys_large_files
5798 _ACEOF
5800 esac
5801 rm -rf conftest*
5806 # sizeof(char) is 1 by definition.
5807 # The cast to long int works around a bug in the HP C Compiler
5808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5810 # This bug is HP SR number 8606223364.
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5812 $as_echo_n "checking size of void *... " >&6; }
5813 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5818 else
5819 if test "$ac_cv_type_void_p" = yes; then
5820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5822 { as_fn_set_status 77
5823 as_fn_error "cannot compute sizeof (void *)
5824 See \`config.log' for more details." "$LINENO" 5; }; }
5825 else
5826 ac_cv_sizeof_void_p=0
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5832 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5836 cat >>confdefs.h <<_ACEOF
5837 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5838 _ACEOF
5841 # The cast to long int works around a bug in the HP C Compiler
5842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5844 # This bug is HP SR number 8606223364.
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5846 $as_echo_n "checking size of short... " >&6; }
5847 if test "${ac_cv_sizeof_short+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5852 else
5853 if test "$ac_cv_type_short" = yes; then
5854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5856 { as_fn_set_status 77
5857 as_fn_error "cannot compute sizeof (short)
5858 See \`config.log' for more details." "$LINENO" 5; }; }
5859 else
5860 ac_cv_sizeof_short=0
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5866 $as_echo "$ac_cv_sizeof_short" >&6; }
5870 cat >>confdefs.h <<_ACEOF
5871 #define SIZEOF_SHORT $ac_cv_sizeof_short
5872 _ACEOF
5875 # The cast to long int works around a bug in the HP C Compiler
5876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5878 # This bug is HP SR number 8606223364.
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5880 $as_echo_n "checking size of int... " >&6; }
5881 if test "${ac_cv_sizeof_int+set}" = set; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5886 else
5887 if test "$ac_cv_type_int" = yes; then
5888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5890 { as_fn_set_status 77
5891 as_fn_error "cannot compute sizeof (int)
5892 See \`config.log' for more details." "$LINENO" 5; }; }
5893 else
5894 ac_cv_sizeof_int=0
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5900 $as_echo "$ac_cv_sizeof_int" >&6; }
5904 cat >>confdefs.h <<_ACEOF
5905 #define SIZEOF_INT $ac_cv_sizeof_int
5906 _ACEOF
5909 # The cast to long int works around a bug in the HP C Compiler
5910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5912 # This bug is HP SR number 8606223364.
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5914 $as_echo_n "checking size of long... " >&6; }
5915 if test "${ac_cv_sizeof_long+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5920 else
5921 if test "$ac_cv_type_long" = yes; then
5922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5924 { as_fn_set_status 77
5925 as_fn_error "cannot compute sizeof (long)
5926 See \`config.log' for more details." "$LINENO" 5; }; }
5927 else
5928 ac_cv_sizeof_long=0
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5934 $as_echo "$ac_cv_sizeof_long" >&6; }
5938 cat >>confdefs.h <<_ACEOF
5939 #define SIZEOF_LONG $ac_cv_sizeof_long
5940 _ACEOF
5943 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5944 if test "x$ac_cv_type_long_long" = x""yes; then :
5946 cat >>confdefs.h <<_ACEOF
5947 #define HAVE_LONG_LONG 1
5948 _ACEOF
5950 # The cast to long int works around a bug in the HP C Compiler
5951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5952 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5953 # This bug is HP SR number 8606223364.
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5955 $as_echo_n "checking size of long long... " >&6; }
5956 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5961 else
5962 if test "$ac_cv_type_long_long" = yes; then
5963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5965 { as_fn_set_status 77
5966 as_fn_error "cannot compute sizeof (long long)
5967 See \`config.log' for more details." "$LINENO" 5; }; }
5968 else
5969 ac_cv_sizeof_long_long=0
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5975 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5979 cat >>confdefs.h <<_ACEOF
5980 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5981 _ACEOF
5986 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5987 if test "x$ac_cv_type___int64" = x""yes; then :
5989 cat >>confdefs.h <<_ACEOF
5990 #define HAVE___INT64 1
5991 _ACEOF
5993 # The cast to long int works around a bug in the HP C Compiler
5994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5996 # This bug is HP SR number 8606223364.
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5998 $as_echo_n "checking size of __int64... " >&6; }
5999 if test "${ac_cv_sizeof___int64+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6004 else
6005 if test "$ac_cv_type___int64" = yes; then
6006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008 { as_fn_set_status 77
6009 as_fn_error "cannot compute sizeof (__int64)
6010 See \`config.log' for more details." "$LINENO" 5; }; }
6011 else
6012 ac_cv_sizeof___int64=0
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6018 $as_echo "$ac_cv_sizeof___int64" >&6; }
6022 cat >>confdefs.h <<_ACEOF
6023 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6024 _ACEOF
6029 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6030 case $ac_cv_c_int8_t in #(
6031 no|yes) ;; #(
6034 cat >>confdefs.h <<_ACEOF
6035 #define int8_t $ac_cv_c_int8_t
6036 _ACEOF
6038 esac
6040 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6041 case $ac_cv_c_int16_t in #(
6042 no|yes) ;; #(
6045 cat >>confdefs.h <<_ACEOF
6046 #define int16_t $ac_cv_c_int16_t
6047 _ACEOF
6049 esac
6051 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6052 case $ac_cv_c_int32_t in #(
6053 no|yes) ;; #(
6056 cat >>confdefs.h <<_ACEOF
6057 #define int32_t $ac_cv_c_int32_t
6058 _ACEOF
6060 esac
6062 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6063 case $ac_cv_c_int64_t in #(
6064 no|yes) ;; #(
6067 cat >>confdefs.h <<_ACEOF
6068 #define int64_t $ac_cv_c_int64_t
6069 _ACEOF
6071 esac
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6075 $as_echo_n "checking for long long int... " >&6; }
6076 if test "${ac_cv_type_long_long_int+set}" = set; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6082 /* For now, do not test the preprocessor; as of 2007 there are too many
6083 implementations with broken preprocessors. Perhaps this can
6084 be revisited in 2012. In the meantime, code should not expect
6085 #if to work with literals wider than 32 bits. */
6086 /* Test literals. */
6087 long long int ll = 9223372036854775807ll;
6088 long long int nll = -9223372036854775807LL;
6089 unsigned long long int ull = 18446744073709551615ULL;
6090 /* Test constant expressions. */
6091 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6092 ? 1 : -1)];
6093 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6094 ? 1 : -1)];
6095 int i = 63;
6097 main ()
6099 /* Test availability of runtime routines for shift and division. */
6100 long long int llmax = 9223372036854775807ll;
6101 unsigned long long int ullmax = 18446744073709551615ull;
6102 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6103 | (llmax / ll) | (llmax % ll)
6104 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6105 | (ullmax / ull) | (ullmax % ull));
6107 return 0;
6110 _ACEOF
6111 if ac_fn_c_try_link "$LINENO"; then :
6112 if test "$cross_compiling" = yes; then :
6113 ac_cv_type_long_long_int=yes
6114 else
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6117 #include <limits.h>
6118 #ifndef LLONG_MAX
6119 # define HALF \
6120 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6121 # define LLONG_MAX (HALF - 1 + HALF)
6122 #endif
6124 main ()
6126 long long int n = 1;
6127 int i;
6128 for (i = 0; ; i++)
6130 long long int m = n << i;
6131 if (m >> i != n)
6132 return 1;
6133 if (LLONG_MAX / 2 < m)
6134 break;
6136 return 0;
6138 return 0;
6140 _ACEOF
6141 if ac_fn_c_try_run "$LINENO"; then :
6142 ac_cv_type_long_long_int=yes
6143 else
6144 ac_cv_type_long_long_int=no
6146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6147 conftest.$ac_objext conftest.beam conftest.$ac_ext
6150 else
6151 ac_cv_type_long_long_int=no
6153 rm -f core conftest.err conftest.$ac_objext \
6154 conftest$ac_exeext conftest.$ac_ext
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6157 $as_echo "$ac_cv_type_long_long_int" >&6; }
6158 if test $ac_cv_type_long_long_int = yes; then
6160 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6166 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6167 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6169 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6171 else
6172 test $ac_cv_type_long_long_int = yes \
6173 && ac_type='long long int' \
6174 || ac_type='long int'
6176 cat >>confdefs.h <<_ACEOF
6177 #define intmax_t $ac_type
6178 _ACEOF
6184 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6185 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6187 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6189 else
6190 for ac_type in 'int' 'long int' 'long long int'; do
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 $ac_includes_default
6195 main ()
6197 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6198 test_array [0] = 0
6201 return 0;
6203 _ACEOF
6204 if ac_fn_c_try_compile "$LINENO"; then :
6206 cat >>confdefs.h <<_ACEOF
6207 #define intptr_t $ac_type
6208 _ACEOF
6210 ac_type=
6212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213 test -z "$ac_type" && break
6214 done
6218 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6219 case $ac_cv_c_uint8_t in #(
6220 no|yes) ;; #(
6223 $as_echo "#define _UINT8_T 1" >>confdefs.h
6226 cat >>confdefs.h <<_ACEOF
6227 #define uint8_t $ac_cv_c_uint8_t
6228 _ACEOF
6230 esac
6232 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6233 case $ac_cv_c_uint16_t in #(
6234 no|yes) ;; #(
6238 cat >>confdefs.h <<_ACEOF
6239 #define uint16_t $ac_cv_c_uint16_t
6240 _ACEOF
6242 esac
6244 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6245 case $ac_cv_c_uint32_t in #(
6246 no|yes) ;; #(
6249 $as_echo "#define _UINT32_T 1" >>confdefs.h
6252 cat >>confdefs.h <<_ACEOF
6253 #define uint32_t $ac_cv_c_uint32_t
6254 _ACEOF
6256 esac
6258 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6259 case $ac_cv_c_uint64_t in #(
6260 no|yes) ;; #(
6263 $as_echo "#define _UINT64_T 1" >>confdefs.h
6266 cat >>confdefs.h <<_ACEOF
6267 #define uint64_t $ac_cv_c_uint64_t
6268 _ACEOF
6270 esac
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6274 $as_echo_n "checking for unsigned long long int... " >&6; }
6275 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6281 /* For now, do not test the preprocessor; as of 2007 there are too many
6282 implementations with broken preprocessors. Perhaps this can
6283 be revisited in 2012. In the meantime, code should not expect
6284 #if to work with literals wider than 32 bits. */
6285 /* Test literals. */
6286 long long int ll = 9223372036854775807ll;
6287 long long int nll = -9223372036854775807LL;
6288 unsigned long long int ull = 18446744073709551615ULL;
6289 /* Test constant expressions. */
6290 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6291 ? 1 : -1)];
6292 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6293 ? 1 : -1)];
6294 int i = 63;
6296 main ()
6298 /* Test availability of runtime routines for shift and division. */
6299 long long int llmax = 9223372036854775807ll;
6300 unsigned long long int ullmax = 18446744073709551615ull;
6301 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6302 | (llmax / ll) | (llmax % ll)
6303 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6304 | (ullmax / ull) | (ullmax % ull));
6306 return 0;
6309 _ACEOF
6310 if ac_fn_c_try_link "$LINENO"; then :
6311 ac_cv_type_unsigned_long_long_int=yes
6312 else
6313 ac_cv_type_unsigned_long_long_int=no
6315 rm -f core conftest.err conftest.$ac_objext \
6316 conftest$ac_exeext conftest.$ac_ext
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6319 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6320 if test $ac_cv_type_unsigned_long_long_int = yes; then
6322 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6328 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6329 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6331 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6333 else
6334 test $ac_cv_type_unsigned_long_long_int = yes \
6335 && ac_type='unsigned long long int' \
6336 || ac_type='unsigned long int'
6338 cat >>confdefs.h <<_ACEOF
6339 #define uintmax_t $ac_type
6340 _ACEOF
6346 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6347 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6349 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6351 else
6352 for ac_type in 'unsigned int' 'unsigned long int' \
6353 'unsigned long long int'; do
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 $ac_includes_default
6358 main ()
6360 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6361 test_array [0] = 0
6364 return 0;
6366 _ACEOF
6367 if ac_fn_c_try_compile "$LINENO"; then :
6369 cat >>confdefs.h <<_ACEOF
6370 #define uintptr_t $ac_type
6371 _ACEOF
6373 ac_type=
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 test -z "$ac_type" && break
6377 done
6394 # ---------------------
6395 # Warnings and checking
6396 # ---------------------
6398 # Check $CC warning features (if it's GCC).
6399 # We want to use -pedantic, but we don't want warnings about
6400 # * 'long long'
6401 # * variadic macros
6402 # * overlong strings
6403 # * C++11 narrowing conversions in { }
6404 # So, we only use -pedantic if we can disable those warnings.
6406 loose_warn=
6407 save_CFLAGS="$CFLAGS"
6408 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6409 # Do the check with the no- prefix removed since gcc silently
6410 # accepts any -Wno-* option on purpose
6411 case $real_option in
6412 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6413 *) option=$real_option ;;
6414 esac
6415 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6418 $as_echo_n "checking whether $CC supports $option... " >&6; }
6419 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 CFLAGS="$option"
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6427 main ()
6431 return 0;
6433 _ACEOF
6434 if ac_fn_c_try_compile "$LINENO"; then :
6435 eval "$as_acx_Woption=yes"
6436 else
6437 eval "$as_acx_Woption=no"
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 eval ac_res=\$$as_acx_Woption
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6444 $as_echo "$ac_res" >&6; }
6445 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6446 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6448 done
6449 CFLAGS="$save_CFLAGS"
6451 c_loose_warn=
6452 save_CFLAGS="$CFLAGS"
6453 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6454 # Do the check with the no- prefix removed since gcc silently
6455 # accepts any -Wno-* option on purpose
6456 case $real_option in
6457 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6458 *) option=$real_option ;;
6459 esac
6460 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6463 $as_echo_n "checking whether $CC supports $option... " >&6; }
6464 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 CFLAGS="$option"
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6472 main ()
6476 return 0;
6478 _ACEOF
6479 if ac_fn_c_try_compile "$LINENO"; then :
6480 eval "$as_acx_Woption=yes"
6481 else
6482 eval "$as_acx_Woption=no"
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 eval ac_res=\$$as_acx_Woption
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6489 $as_echo "$ac_res" >&6; }
6490 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6491 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6493 done
6494 CFLAGS="$save_CFLAGS"
6496 strict_warn=
6497 save_CFLAGS="$CFLAGS"
6498 for real_option in -Wmissing-format-attribute; do
6499 # Do the check with the no- prefix removed since gcc silently
6500 # accepts any -Wno-* option on purpose
6501 case $real_option in
6502 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6503 *) option=$real_option ;;
6504 esac
6505 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6508 $as_echo_n "checking whether $CC supports $option... " >&6; }
6509 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 CFLAGS="$option"
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6517 main ()
6521 return 0;
6523 _ACEOF
6524 if ac_fn_c_try_compile "$LINENO"; then :
6525 eval "$as_acx_Woption=yes"
6526 else
6527 eval "$as_acx_Woption=no"
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 eval ac_res=\$$as_acx_Woption
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6534 $as_echo "$ac_res" >&6; }
6535 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6536 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6538 done
6539 CFLAGS="$save_CFLAGS"
6541 c_strict_warn=
6542 save_CFLAGS="$CFLAGS"
6543 for real_option in -Wold-style-definition -Wc++-compat; do
6544 # Do the check with the no- prefix removed since gcc silently
6545 # accepts any -Wno-* option on purpose
6546 case $real_option in
6547 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6548 *) option=$real_option ;;
6549 esac
6550 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6553 $as_echo_n "checking whether $CC supports $option... " >&6; }
6554 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 CFLAGS="$option"
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6562 main ()
6566 return 0;
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 eval "$as_acx_Woption=yes"
6571 else
6572 eval "$as_acx_Woption=no"
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 eval ac_res=\$$as_acx_Woption
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6579 $as_echo "$ac_res" >&6; }
6580 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6581 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6583 done
6584 CFLAGS="$save_CFLAGS"
6586 # Do the check with the no- prefix removed from the warning options
6587 # since gcc silently accepts any -Wno-* option on purpose
6588 if test "$GCC" = yes; then :
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6590 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6591 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 save_CFLAGS="$CFLAGS"
6595 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6600 main ()
6604 return 0;
6606 _ACEOF
6607 if ac_fn_c_try_compile "$LINENO"; then :
6608 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6609 else
6610 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 CFLAGS="$save_CFLAGS"
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6616 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6617 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6618 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6623 # Check whether --enable-werror-always was given.
6624 if test "${enable_werror_always+set}" = set; then :
6625 enableval=$enable_werror_always;
6626 else
6627 enable_werror_always=no
6630 if test $enable_werror_always = yes; then :
6631 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6636 # The above macros do nothing if the compiler is not GCC. However, the
6637 # Makefile has more goo to add other flags, so these variables are used
6638 # to enable warnings only for GCC.
6639 warn_cflags=
6640 warn_cxxflags=
6641 if test "x$GCC" = "xyes"; then
6642 warn_cflags='$(GCC_WARN_CFLAGS)'
6643 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6648 # Disable exceptions and RTTI if building with g++
6649 noexception_flags=
6650 save_CFLAGS="$CFLAGS"
6651 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6652 # Do the check with the no- prefix removed since gcc silently
6653 # accepts any -Wno-* option on purpose
6654 case $real_option in
6655 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6656 *) option=$real_option ;;
6657 esac
6658 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6661 $as_echo_n "checking whether $CC supports $option... " >&6; }
6662 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6663 $as_echo_n "(cached) " >&6
6664 else
6665 CFLAGS="$option"
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6670 main ()
6674 return 0;
6676 _ACEOF
6677 if ac_fn_c_try_compile "$LINENO"; then :
6678 eval "$as_acx_Woption=yes"
6679 else
6680 eval "$as_acx_Woption=no"
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 eval ac_res=\$$as_acx_Woption
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6687 $as_echo "$ac_res" >&6; }
6688 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6689 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6691 done
6692 CFLAGS="$save_CFLAGS"
6695 # Enable expensive internal checks
6696 is_release=
6697 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6698 is_release=yes
6701 # Check whether --enable-checking was given.
6702 if test "${enable_checking+set}" = set; then :
6703 enableval=$enable_checking; ac_checking_flags="${enableval}"
6704 else
6706 # Determine the default checks.
6707 if test x$is_release = x ; then
6708 ac_checking_flags=yes
6709 else
6710 ac_checking_flags=release
6714 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6715 for check in release $ac_checking_flags
6717 case $check in
6718 # these set all the flags to specific states
6719 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6720 ac_fold_checking= ; ac_gc_checking=1 ;
6721 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6722 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6723 ac_tree_checking=1 ; ac_valgrind_checking= ;
6724 ac_types_checking=1 ;;
6725 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6726 ac_fold_checking= ; ac_gc_checking= ;
6727 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6728 ac_rtlflag_checking= ; ac_runtime_checking= ;
6729 ac_tree_checking= ; ac_valgrind_checking= ;
6730 ac_types_checking= ;;
6731 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6732 ac_fold_checking=1 ; ac_gc_checking=1 ;
6733 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6734 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6735 ac_tree_checking=1 ; ac_valgrind_checking= ;
6736 ac_types_checking=1 ;;
6737 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6738 ac_fold_checking= ; ac_gc_checking= ;
6739 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6740 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6741 ac_tree_checking= ; ac_valgrind_checking= ;
6742 ac_types_checking= ;;
6743 # these enable particular checks
6744 assert) ac_assert_checking=1 ;;
6745 df) ac_df_checking=1 ;;
6746 fold) ac_fold_checking=1 ;;
6747 gc) ac_gc_checking=1 ;;
6748 gcac) ac_gc_always_collect=1 ;;
6749 gimple) ac_gimple_checking=1 ;;
6750 misc) ac_checking=1 ;;
6751 rtl) ac_rtl_checking=1 ;;
6752 rtlflag) ac_rtlflag_checking=1 ;;
6753 runtime) ac_runtime_checking=1 ;;
6754 tree) ac_tree_checking=1 ;;
6755 types) ac_types_checking=1 ;;
6756 valgrind) ac_valgrind_checking=1 ;;
6757 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6758 esac
6759 done
6760 IFS="$ac_save_IFS"
6762 nocommon_flag=""
6763 if test x$ac_checking != x ; then
6765 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6767 nocommon_flag=-fno-common
6770 if test x$ac_df_checking != x ; then
6772 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6775 if test x$ac_assert_checking != x ; then
6777 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6780 if test x$ac_gimple_checking != x ; then
6782 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6786 if test x$ac_runtime_checking != x ; then
6788 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6791 if test x$ac_tree_checking != x ; then
6793 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6795 TREEBROWSER=tree-browser.o
6796 TREECHECKING=yes
6798 if test x$ac_types_checking != x ; then
6800 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6805 if test x$ac_rtl_checking != x ; then
6807 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6810 if test x$ac_rtlflag_checking != x ; then
6812 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6815 if test x$ac_gc_checking != x ; then
6817 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6820 if test x$ac_gc_always_collect != x ; then
6822 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6825 if test x$ac_fold_checking != x ; then
6827 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6830 valgrind_path_defines=
6831 valgrind_command=
6833 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6834 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6835 have_valgrind_h=yes
6836 else
6837 have_valgrind_h=no
6842 if test x$ac_valgrind_checking != x ; then
6843 # It is certainly possible that there's valgrind but no valgrind.h.
6844 # GCC relies on making annotations so we must have both.
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6846 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849 #include <valgrind/memcheck.h>
6850 #ifndef VALGRIND_DISCARD
6851 #error VALGRIND_DISCARD not defined
6852 #endif
6853 _ACEOF
6854 if ac_fn_c_try_cpp "$LINENO"; then :
6855 gcc_cv_header_valgrind_memcheck_h=yes
6856 else
6857 gcc_cv_header_valgrind_memcheck_h=no
6859 rm -f conftest.err conftest.$ac_ext
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6861 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6863 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 #include <memcheck.h>
6867 #ifndef VALGRIND_DISCARD
6868 #error VALGRIND_DISCARD not defined
6869 #endif
6870 _ACEOF
6871 if ac_fn_c_try_cpp "$LINENO"; then :
6872 gcc_cv_header_memcheck_h=yes
6873 else
6874 gcc_cv_header_memcheck_h=no
6876 rm -f conftest.err conftest.$ac_ext
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6878 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6880 # Prepare PATH_SEPARATOR.
6881 # The user is always right.
6882 if test "${PATH_SEPARATOR+set}" != set; then
6883 echo "#! /bin/sh" >conf$$.sh
6884 echo "exit 0" >>conf$$.sh
6885 chmod +x conf$$.sh
6886 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6887 PATH_SEPARATOR=';'
6888 else
6889 PATH_SEPARATOR=:
6891 rm -f conf$$.sh
6894 # Find out how to test for executable files. Don't use a zero-byte file,
6895 # as systems may use methods other than mode bits to determine executability.
6896 cat >conf$$.file <<_ASEOF
6897 #! /bin/sh
6898 exit 0
6899 _ASEOF
6900 chmod +x conf$$.file
6901 if test -x conf$$.file >/dev/null 2>&1; then
6902 ac_executable_p="test -x"
6903 else
6904 ac_executable_p="test -f"
6906 rm -f conf$$.file
6908 # Extract the first word of "valgrind", so it can be a program name with args.
6909 set dummy valgrind; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 case "$valgrind_path" in
6916 [\\/]* | ?:[\\/]*)
6917 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6920 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6921 for ac_dir in $PATH; do
6922 IFS="$ac_save_IFS"
6923 test -z "$ac_dir" && ac_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6926 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6927 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6928 break 2
6931 done
6932 done
6933 IFS="$ac_save_IFS"
6935 esac
6937 valgrind_path="$ac_cv_path_valgrind_path"
6938 if test -n "$valgrind_path"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6940 $as_echo "$valgrind_path" >&6; }
6941 else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6946 if test "x$valgrind_path" = "x" \
6947 || (test $have_valgrind_h = no \
6948 && test $gcc_cv_header_memcheck_h = no \
6949 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6950 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6952 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6953 valgrind_command="$valgrind_path -q"
6955 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6957 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6959 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6962 if test $gcc_cv_header_memcheck_h = yes; then
6964 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6971 # Enable code coverage collection
6972 # Check whether --enable-coverage was given.
6973 if test "${enable_coverage+set}" = set; then :
6974 enableval=$enable_coverage; case "${enableval}" in
6975 yes|noopt)
6976 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6978 opt)
6979 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6982 # a.k.a. --disable-coverage
6983 coverage_flags=""
6986 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6988 esac
6989 else
6990 coverage_flags=""
6995 # Check whether --enable-gather-detailed-mem-stats was given.
6996 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6997 enableval=$enable_gather_detailed_mem_stats;
6998 else
6999 enable_gather_detailed_mem_stats=no
7002 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7004 cat >>confdefs.h <<_ACEOF
7005 #define GATHER_STATISTICS $gather_stats
7006 _ACEOF
7009 # -------------------------------
7010 # Miscenalleous configure options
7011 # -------------------------------
7013 # With stabs
7015 # Check whether --with-stabs was given.
7016 if test "${with_stabs+set}" = set; then :
7017 withval=$with_stabs; stabs="$with_stabs"
7018 else
7019 stabs=no
7023 # Determine whether or not multilibs are enabled.
7024 # Check whether --enable-multilib was given.
7025 if test "${enable_multilib+set}" = set; then :
7026 enableval=$enable_multilib;
7027 else
7028 enable_multilib=yes
7033 # Determine whether or not multiarch is enabled.
7034 # Check whether --enable-multiarch was given.
7035 if test "${enable_multiarch+set}" = set; then :
7036 enableval=$enable_multiarch; case "${enableval}" in
7037 yes|no|auto) enable_multiarch=$enableval;;
7038 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7039 esac
7040 else
7041 enable_multiarch=auto
7044 if test x${enable_multiarch} = xauto; then
7045 if test x${with_native_system_header_dir} != x; then
7046 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7047 enable_multiarch=no
7049 if test x$host != x$target && test "x$with_sysroot" = x; then
7050 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7051 enable_multiarch=no
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7055 $as_echo_n "checking for multiarch configuration... " >&6; }
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7058 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7060 # needed for setting the multiarch name for soft-float/hard-float ABIs
7064 # Enable __cxa_atexit for C++.
7065 # Check whether --enable-__cxa_atexit was given.
7066 if test "${enable___cxa_atexit+set}" = set; then :
7067 enableval=$enable___cxa_atexit;
7071 # Enable C extension for decimal float if target supports it.
7073 # Check whether --enable-decimal-float was given.
7074 if test "${enable_decimal_float+set}" = set; then :
7075 enableval=$enable_decimal_float;
7076 case $enable_decimal_float in
7077 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7078 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7079 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7080 esac
7082 else
7084 case $target in
7085 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7086 i?86*-*-gnu* | \
7087 i?86*-*-mingw* | x86_64*-*-mingw* | \
7088 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7089 enable_decimal_float=yes
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7093 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7094 enable_decimal_float=no
7096 esac
7101 # x86's use BID format instead of DPD
7102 case x$enable_decimal_float in
7103 xyes)
7104 case $target in
7105 i?86*-*-* | x86_64*-*-*)
7106 enable_decimal_float=bid
7109 enable_decimal_float=dpd
7111 esac
7112 default_decimal_float=$enable_decimal_float
7114 xno)
7115 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7116 # dependency on libdecnumber.
7117 default_decimal_float=dpd
7119 esac
7124 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7126 cat >>confdefs.h <<_ACEOF
7127 #define ENABLE_DECIMAL_FLOAT $dfp
7128 _ACEOF
7131 # Use default_decimal_float for dependency.
7132 enable_decimal_float=$default_decimal_float
7134 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7136 cat >>confdefs.h <<_ACEOF
7137 #define ENABLE_DECIMAL_BID_FORMAT $bid
7138 _ACEOF
7141 # Enable C extension for fixed-point arithmetic.
7142 # Check whether --enable-fixed-point was given.
7143 if test "${enable_fixed_point+set}" = set; then :
7144 enableval=$enable_fixed_point;
7145 else
7147 case $target in
7148 arm*)
7149 enable_fixed_point=yes
7152 mips*-*-*)
7153 enable_fixed_point=yes
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7157 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7158 enable_fixed_point=no
7160 esac
7166 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7168 cat >>confdefs.h <<_ACEOF
7169 #define ENABLE_FIXED_POINT $fixedpoint
7170 _ACEOF
7173 # Enable threads
7174 # Pass with no value to take the default
7175 # Pass with a value to specify a thread package
7176 # Check whether --enable-threads was given.
7177 if test "${enable_threads+set}" = set; then :
7178 enableval=$enable_threads;
7179 else
7180 enable_threads=''
7184 # Check whether --enable-tls was given.
7185 if test "${enable_tls+set}" = set; then :
7186 enableval=$enable_tls;
7187 case $enable_tls in
7188 yes | no) ;;
7189 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7190 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7191 esac
7193 else
7194 enable_tls=''
7198 # Check whether --enable-objc-gc was given.
7199 if test "${enable_objc_gc+set}" = set; then :
7200 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7201 objc_boehm_gc=''
7202 else
7203 objc_boehm_gc=1
7205 else
7206 objc_boehm_gc=''
7211 # Check whether --with-dwarf2 was given.
7212 if test "${with_dwarf2+set}" = set; then :
7213 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7214 else
7215 dwarf2=no
7219 # Check whether --enable-shared was given.
7220 if test "${enable_shared+set}" = set; then :
7221 enableval=$enable_shared;
7222 case $enable_shared in
7223 yes | no) ;;
7225 enable_shared=no
7226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7227 for pkg in $enableval; do
7228 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7229 enable_shared=yes
7231 done
7232 IFS="$ac_save_ifs"
7234 esac
7236 else
7237 enable_shared=yes
7243 # Check whether --with-native-system-header-dir was given.
7244 if test "${with_native_system_header_dir+set}" = set; then :
7245 withval=$with_native_system_header_dir;
7246 case ${with_native_system_header_dir} in
7247 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7248 /* | [A-Za-z]:[\\/]*) ;;
7249 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7250 esac
7251 configured_native_system_header_dir="${withval}"
7253 else
7254 configured_native_system_header_dir=
7259 # Check whether --with-build-sysroot was given.
7260 if test "${with_build_sysroot+set}" = set; then :
7261 withval=$with_build_sysroot; if test x"$withval" != x ; then
7262 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7264 else
7265 SYSROOT_CFLAGS_FOR_TARGET=
7270 if test "x$prefix" = xNONE; then
7271 test_prefix=/usr/local
7272 else
7273 test_prefix=$prefix
7275 if test "x$exec_prefix" = xNONE; then
7276 test_exec_prefix=$test_prefix
7277 else
7278 test_exec_prefix=$exec_prefix
7282 # Check whether --with-sysroot was given.
7283 if test "${with_sysroot+set}" = set; then :
7284 withval=$with_sysroot;
7285 case ${with_sysroot} in
7286 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7287 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7288 esac
7290 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7291 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7293 case ${TARGET_SYSTEM_ROOT} in
7294 "${test_prefix}"|"${test_prefix}/"*|\
7295 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7296 '${prefix}'|'${prefix}/'*|\
7297 '${exec_prefix}'|'${exec_prefix}/'*)
7298 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7299 TARGET_SYSTEM_ROOT_DEFINE="$t"
7301 esac
7303 else
7305 TARGET_SYSTEM_ROOT=
7306 TARGET_SYSTEM_ROOT_DEFINE=
7307 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7316 # Check whether --with-specs was given.
7317 if test "${with_specs+set}" = set; then :
7318 withval=$with_specs; CONFIGURE_SPECS=$withval
7319 else
7320 CONFIGURE_SPECS=
7328 # Check whether --with-pkgversion was given.
7329 if test "${with_pkgversion+set}" = set; then :
7330 withval=$with_pkgversion; case "$withval" in
7331 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7332 no) PKGVERSION= ;;
7333 *) PKGVERSION="($withval) " ;;
7334 esac
7335 else
7336 PKGVERSION="(GCC) "
7344 # Check whether --with-bugurl was given.
7345 if test "${with_bugurl+set}" = set; then :
7346 withval=$with_bugurl; case "$withval" in
7347 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7348 no) BUGURL=
7350 *) BUGURL="$withval"
7352 esac
7353 else
7354 BUGURL="http://gcc.gnu.org/bugs.html"
7358 case ${BUGURL} in
7360 REPORT_BUGS_TO=
7361 REPORT_BUGS_TEXI=
7364 REPORT_BUGS_TO="<$BUGURL>"
7365 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7367 esac;
7372 # Sanity check enable_languages in case someone does not run the toplevel
7373 # configure # script.
7374 # Check whether --enable-languages was given.
7375 if test "${enable_languages+set}" = set; then :
7376 enableval=$enable_languages; case ,${enable_languages}, in
7377 ,,|,yes,)
7378 # go safe -- we cannot be much sure without the toplevel
7379 # configure's
7380 # analysis of which target libs are present and usable
7381 enable_languages=c
7383 *,all,*)
7384 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7386 *,c,*)
7389 enable_languages=c,${enable_languages}
7391 esac
7392 else
7393 enable_languages=c
7398 # Check whether --with-multilib-list was given.
7399 if test "${with_multilib_list+set}" = set; then :
7400 withval=$with_multilib_list; :
7401 else
7402 with_multilib_list=default
7406 # -------------------------
7407 # Checks for other programs
7408 # -------------------------
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7411 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7412 set x ${MAKE-make}
7413 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7414 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 cat >conftest.make <<\_ACEOF
7418 SHELL = /bin/sh
7419 all:
7420 @echo '@@@%%%=$(MAKE)=@@@%%%'
7421 _ACEOF
7422 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7423 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7424 *@@@%%%=?*=@@@%%%*)
7425 eval ac_cv_prog_make_${ac_make}_set=yes;;
7427 eval ac_cv_prog_make_${ac_make}_set=no;;
7428 esac
7429 rm -f conftest.make
7431 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7433 $as_echo "yes" >&6; }
7434 SET_MAKE=
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 SET_MAKE="MAKE=${MAKE-make}"
7442 # Find some useful tools
7443 for ac_prog in gawk mawk nawk awk
7445 # Extract the first word of "$ac_prog", so it can be a program name with args.
7446 set dummy $ac_prog; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if test "${ac_cv_prog_AWK+set}" = set; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 if test -n "$AWK"; then
7453 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462 ac_cv_prog_AWK="$ac_prog"
7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7466 done
7467 done
7468 IFS=$as_save_IFS
7472 AWK=$ac_cv_prog_AWK
7473 if test -n "$AWK"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7475 $as_echo "$AWK" >&6; }
7476 else
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7482 test -n "$AWK" && break
7483 done
7485 # We need awk to create options.c and options.h.
7486 # Bail out if it's missing.
7487 case ${AWK} in
7488 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7489 esac
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7492 $as_echo_n "checking whether ln -s works... " >&6; }
7493 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496 rm -f conftestdata_t
7497 echo >conftestdata_f
7498 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7499 then
7500 gcc_cv_prog_LN_S="ln -s"
7501 else
7502 if ln conftestdata_f conftestdata_t 2>/dev/null
7503 then
7504 gcc_cv_prog_LN_S=ln
7505 else
7506 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7507 then
7508 gcc_cv_prog_LN_S="cp -p"
7509 else
7510 gcc_cv_prog_LN_S=cp
7514 rm -f conftestdata_f conftestdata_t
7517 LN_S="$gcc_cv_prog_LN_S"
7518 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7520 $as_echo "yes" >&6; }
7521 else
7522 if test "$gcc_cv_prog_LN_S" = "ln"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7524 $as_echo "no, using ln" >&6; }
7525 else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7527 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7532 $as_echo_n "checking whether ln works... " >&6; }
7533 if test "${acx_cv_prog_LN+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 rm -f conftestdata_t
7537 echo >conftestdata_f
7538 if ln conftestdata_f conftestdata_t 2>/dev/null
7539 then
7540 acx_cv_prog_LN=ln
7541 else
7542 acx_cv_prog_LN=no
7544 rm -f conftestdata_f conftestdata_t
7547 if test $acx_cv_prog_LN = no; then
7548 LN="$LN_S"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7550 $as_echo "no, using $LN" >&6; }
7551 else
7552 LN="$acx_cv_prog_LN"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7554 $as_echo "yes" >&6; }
7557 if test -n "$ac_tool_prefix"; then
7558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7559 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 if test -n "$RANLIB"; then
7566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7579 done
7580 done
7581 IFS=$as_save_IFS
7585 RANLIB=$ac_cv_prog_RANLIB
7586 if test -n "$RANLIB"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7588 $as_echo "$RANLIB" >&6; }
7589 else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7596 if test -z "$ac_cv_prog_RANLIB"; then
7597 ac_ct_RANLIB=$RANLIB
7598 # Extract the first word of "ranlib", so it can be a program name with args.
7599 set dummy ranlib; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 if test -n "$ac_ct_RANLIB"; then
7606 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7607 else
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7611 IFS=$as_save_IFS
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7615 ac_cv_prog_ac_ct_RANLIB="ranlib"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 break 2
7619 done
7620 done
7621 IFS=$as_save_IFS
7625 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7626 if test -n "$ac_ct_RANLIB"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7628 $as_echo "$ac_ct_RANLIB" >&6; }
7629 else
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7634 if test "x$ac_ct_RANLIB" = x; then
7635 RANLIB=":"
7636 else
7637 case $cross_compiling:$ac_tool_warned in
7638 yes:)
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7641 ac_tool_warned=yes ;;
7642 esac
7643 RANLIB=$ac_ct_RANLIB
7645 else
7646 RANLIB="$ac_cv_prog_RANLIB"
7649 ranlib_flags=""
7652 # Find a good install program. We prefer a C program (faster),
7653 # so one script is as good as another. But avoid the broken or
7654 # incompatible versions:
7655 # SysV /etc/install, /usr/sbin/install
7656 # SunOS /usr/etc/install
7657 # IRIX /sbin/install
7658 # AIX /bin/install
7659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7661 # ./install, which can be erroneously created by make from ./install.sh.
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7663 $as_echo_n "checking for a BSD compatible install... " >&6; }
7664 if test -z "$INSTALL"; then
7665 if test "${ac_cv_path_install+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
7667 else
7668 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7669 for ac_dir in $PATH; do
7670 # Account for people who put trailing slashes in PATH elements.
7671 case "$ac_dir/" in
7672 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7674 # OSF1 and SCO ODT 3.0 have their own names for install.
7675 for ac_prog in ginstall scoinst install; do
7676 if test -f $ac_dir/$ac_prog; then
7677 if test $ac_prog = install &&
7678 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7679 # AIX install. It has an incompatible calling convention.
7680 # OSF/1 installbsd also uses dspmsg, but is usable.
7682 else
7683 ac_cv_path_install="$ac_dir/$ac_prog -c"
7684 break 2
7687 done
7689 esac
7690 done
7691 IFS="$ac_save_IFS"
7694 if test "${ac_cv_path_install+set}" = set; then
7695 INSTALL="$ac_cv_path_install"
7696 else
7697 # As a last resort, use the slow shell script. We don't cache a
7698 # path for INSTALL within a source directory, because that will
7699 # break other packages using the cache if that directory is
7700 # removed, or if the path is relative.
7701 INSTALL="$ac_install_sh"
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7705 $as_echo "$INSTALL" >&6; }
7707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7708 # It thinks the first close brace ends the variable substitution.
7709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7711 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7714 # See if cmp has --ignore-initial.
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7716 $as_echo_n "checking for cmp's capabilities... " >&6; }
7717 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 echo abfoo >t1
7721 echo cdfoo >t2
7722 gcc_cv_prog_cmp_skip=slowcompare
7723 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7724 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7726 else
7727 gcc_cv_prog_cmp_skip=gnucompare
7730 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7731 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7732 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7734 else
7735 gcc_cv_prog_cmp_skip=fastcompare
7739 rm t1 t2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7743 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7744 make_compare_target=$gcc_cv_prog_cmp_skip
7748 # See if we have the mktemp command.
7749 # Extract the first word of "mktemp", so it can be a program name with args.
7750 set dummy mktemp; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 if test -n "$have_mktemp_command"; then
7757 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7758 else
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7766 ac_cv_prog_have_mktemp_command="yes"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7770 done
7771 done
7772 IFS=$as_save_IFS
7774 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7777 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7778 if test -n "$have_mktemp_command"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7780 $as_echo "$have_mktemp_command" >&6; }
7781 else
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7788 # See if makeinfo has been installed and is modern enough
7789 # that we can use it.
7791 # Extract the first word of "makeinfo", so it can be a program name with args.
7792 set dummy makeinfo; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 if test -n "$MAKEINFO"; then
7799 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_MAKEINFO="makeinfo"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7812 done
7813 done
7814 IFS=$as_save_IFS
7818 MAKEINFO=$ac_cv_prog_MAKEINFO
7819 if test -n "$MAKEINFO"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7821 $as_echo "$MAKEINFO" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7828 if test -n "$MAKEINFO"; then
7829 # Found it, now check the version.
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7831 $as_echo_n "checking for modern makeinfo... " >&6; }
7832 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7836 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7838 case $ac_prog_version in
7839 '') gcc_cv_prog_makeinfo_modern=no;;
7840 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7841 *) gcc_cv_prog_makeinfo_modern=no;;
7842 esac
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7846 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7847 else
7848 gcc_cv_prog_makeinfo_modern=no
7850 if test $gcc_cv_prog_makeinfo_modern = no; then
7851 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7854 if test $gcc_cv_prog_makeinfo_modern = no; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7856 *** Makeinfo is missing or too old.
7857 *** Info documentation will not be built." >&5
7858 $as_echo "$as_me: WARNING:
7859 *** Makeinfo is missing or too old.
7860 *** Info documentation will not be built." >&2;}
7861 BUILD_INFO=
7862 else
7863 BUILD_INFO=info
7867 # Is pod2man recent enough to regenerate manpages?
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7869 $as_echo_n "checking for recent Pod::Man... " >&6; }
7870 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7872 $as_echo "yes" >&6; }
7873 GENERATED_MANPAGES=generated-manpages
7874 else
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7877 GENERATED_MANPAGES=
7881 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7883 # How about lex?
7884 for ac_prog in flex
7886 # Extract the first word of "$ac_prog", so it can be a program name with args.
7887 set dummy $ac_prog; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if test "${ac_cv_prog_FLEX+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 if test -n "$FLEX"; then
7894 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_prog_FLEX="$ac_prog"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7907 done
7908 done
7909 IFS=$as_save_IFS
7913 FLEX=$ac_cv_prog_FLEX
7914 if test -n "$FLEX"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7916 $as_echo "$FLEX" >&6; }
7917 else
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7923 test -n "$FLEX" && break
7924 done
7925 test -n "$FLEX" || FLEX="$MISSING flex"
7928 # Bison?
7929 for ac_prog in bison
7931 # Extract the first word of "$ac_prog", so it can be a program name with args.
7932 set dummy $ac_prog; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if test "${ac_cv_prog_BISON+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938 if test -n "$BISON"; then
7939 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7948 ac_cv_prog_BISON="$ac_prog"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 break 2
7952 done
7953 done
7954 IFS=$as_save_IFS
7958 BISON=$ac_cv_prog_BISON
7959 if test -n "$BISON"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7961 $as_echo "$BISON" >&6; }
7962 else
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7968 test -n "$BISON" && break
7969 done
7970 test -n "$BISON" || BISON="$MISSING bison"
7973 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7974 # check for build == host before using them.
7976 # NM
7977 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7978 && test -d ../binutils ; then
7979 NM='${objdir}/../binutils/nm-new'
7980 else
7981 # Extract the first word of "nm", so it can be a program name with args.
7982 set dummy nm; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if test "${ac_cv_prog_NM+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 if test -n "$NM"; then
7989 ac_cv_prog_NM="$NM" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7998 ac_cv_prog_NM="nm"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8002 done
8003 done
8004 IFS=$as_save_IFS
8006 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8009 NM=$ac_cv_prog_NM
8010 if test -n "$NM"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8012 $as_echo "$NM" >&6; }
8013 else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8021 # AR
8022 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8023 && test -d ../binutils ; then
8024 AR='${objdir}/../binutils/ar'
8025 else
8026 # Extract the first word of "ar", so it can be a program name with args.
8027 set dummy ar; ac_word=$2
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 $as_echo_n "checking for $ac_word... " >&6; }
8030 if test "${ac_cv_prog_AR+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 if test -n "$AR"; then
8034 ac_cv_prog_AR="$AR" # Let the user override the test.
8035 else
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 for as_dir in $PATH
8039 IFS=$as_save_IFS
8040 test -z "$as_dir" && as_dir=.
8041 for ac_exec_ext in '' $ac_executable_extensions; do
8042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8043 ac_cv_prog_AR="ar"
8044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 break 2
8047 done
8048 done
8049 IFS=$as_save_IFS
8051 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8054 AR=$ac_cv_prog_AR
8055 if test -n "$AR"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8057 $as_echo "$AR" >&6; }
8058 else
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }
8067 # --------------------
8068 # Checks for C headers
8069 # --------------------
8071 # Need to reject headers which give warnings, so that the -Werror bootstrap
8072 # works later. *sigh* This needs to come before all header checks.
8074 ac_c_preproc_warn_flag=yes
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8077 $as_echo_n "checking for ANSI C header files... " >&6; }
8078 if test "${ac_cv_header_stdc+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 #include <stdlib.h>
8084 #include <stdarg.h>
8085 #include <string.h>
8086 #include <float.h>
8089 main ()
8093 return 0;
8095 _ACEOF
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097 ac_cv_header_stdc=yes
8098 else
8099 ac_cv_header_stdc=no
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 if test $ac_cv_header_stdc = yes; then
8104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8107 #include <string.h>
8109 _ACEOF
8110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8111 $EGREP "memchr" >/dev/null 2>&1; then :
8113 else
8114 ac_cv_header_stdc=no
8116 rm -f conftest*
8120 if test $ac_cv_header_stdc = yes; then
8121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8124 #include <stdlib.h>
8126 _ACEOF
8127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8128 $EGREP "free" >/dev/null 2>&1; then :
8130 else
8131 ac_cv_header_stdc=no
8133 rm -f conftest*
8137 if test $ac_cv_header_stdc = yes; then
8138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8139 if test "$cross_compiling" = yes; then :
8141 else
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8144 #include <ctype.h>
8145 #include <stdlib.h>
8146 #if ((' ' & 0x0FF) == 0x020)
8147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8149 #else
8150 # define ISLOWER(c) \
8151 (('a' <= (c) && (c) <= 'i') \
8152 || ('j' <= (c) && (c) <= 'r') \
8153 || ('s' <= (c) && (c) <= 'z'))
8154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8155 #endif
8157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8159 main ()
8161 int i;
8162 for (i = 0; i < 256; i++)
8163 if (XOR (islower (i), ISLOWER (i))
8164 || toupper (i) != TOUPPER (i))
8165 return 2;
8166 return 0;
8168 _ACEOF
8169 if ac_fn_c_try_run "$LINENO"; then :
8171 else
8172 ac_cv_header_stdc=no
8174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8175 conftest.$ac_objext conftest.beam conftest.$ac_ext
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8181 $as_echo "$ac_cv_header_stdc" >&6; }
8182 if test $ac_cv_header_stdc = yes; then
8184 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8189 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8190 if test "${ac_cv_header_time+set}" = set; then :
8191 $as_echo_n "(cached) " >&6
8192 else
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 #include <sys/types.h>
8196 #include <sys/time.h>
8197 #include <time.h>
8200 main ()
8202 if ((struct tm *) 0)
8203 return 0;
8205 return 0;
8207 _ACEOF
8208 if ac_fn_c_try_compile "$LINENO"; then :
8209 ac_cv_header_time=yes
8210 else
8211 ac_cv_header_time=no
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8216 $as_echo "$ac_cv_header_time" >&6; }
8217 if test $ac_cv_header_time = yes; then
8219 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8224 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8225 if test "${gcc_cv_header_string+set}" = set; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8230 #include <string.h>
8231 #include <strings.h>
8233 main ()
8237 return 0;
8239 _ACEOF
8240 if ac_fn_c_try_compile "$LINENO"; then :
8241 gcc_cv_header_string=yes
8242 else
8243 gcc_cv_header_string=no
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8248 $as_echo "$gcc_cv_header_string" >&6; }
8249 if test $gcc_cv_header_string = yes; then
8251 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8256 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8257 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8261 /* end confdefs.h. */
8262 #include <sys/types.h>
8263 #include <sys/wait.h>
8264 #ifndef WEXITSTATUS
8265 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8266 #endif
8267 #ifndef WIFEXITED
8268 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8269 #endif
8272 main ()
8274 int s;
8275 wait (&s);
8276 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8278 return 0;
8280 _ACEOF
8281 if ac_fn_c_try_compile "$LINENO"; then :
8282 ac_cv_header_sys_wait_h=yes
8283 else
8284 ac_cv_header_sys_wait_h=no
8286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8289 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8290 if test $ac_cv_header_sys_wait_h = yes; then
8292 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8296 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8297 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8298 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8299 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8300 do :
8301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8302 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8303 eval as_val=\$$as_ac_Header
8304 if test "x$as_val" = x""yes; then :
8305 cat >>confdefs.h <<_ACEOF
8306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8307 _ACEOF
8310 done
8313 # Check for thread headers.
8314 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8315 if test "x$ac_cv_header_thread_h" = x""yes; then :
8316 have_thread_h=yes
8317 else
8318 have_thread_h=
8321 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8322 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8323 have_pthread_h=yes
8324 else
8325 have_pthread_h=
8329 # These tests can't be done till we know if we have limits.h.
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8331 $as_echo_n "checking for CHAR_BIT... " >&6; }
8332 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337 #ifdef HAVE_LIMITS_H
8338 #include <limits.h>
8339 #endif
8340 #ifdef CHAR_BIT
8341 found
8342 #endif
8343 _ACEOF
8344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8345 $EGREP "found" >/dev/null 2>&1; then :
8346 gcc_cv_decl_char_bit=yes
8347 else
8348 gcc_cv_decl_char_bit=no
8350 rm -f conftest*
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8355 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8356 if test $gcc_cv_decl_char_bit = no; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8358 $as_echo_n "checking number of bits in a byte... " >&6; }
8359 if test "${gcc_cv_c_nbby+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8363 gcc_cv_c_nbby=
8364 while test $i -lt 65; do
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8369 main ()
8371 switch(0) {
8372 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8373 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8376 return 0;
8378 _ACEOF
8379 if ac_fn_c_try_compile "$LINENO"; then :
8380 gcc_cv_c_nbby=$i; break
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 i=`expr $i + 1`
8384 done
8385 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8389 $as_echo "$gcc_cv_c_nbby" >&6; }
8390 if test $gcc_cv_c_nbby = failed; then
8391 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8392 else
8394 cat >>confdefs.h <<_ACEOF
8395 #define CHAR_BIT $gcc_cv_c_nbby
8396 _ACEOF
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8401 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8402 if test "${ac_cv_c_bigendian+set}" = set; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405 ac_cv_c_bigendian=unknown
8406 # See if we're dealing with a universal compiler.
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409 #ifndef __APPLE_CC__
8410 not a universal capable compiler
8411 #endif
8412 typedef int dummy;
8414 _ACEOF
8415 if ac_fn_c_try_compile "$LINENO"; then :
8417 # Check for potential -arch flags. It is not universal unless
8418 # there are at least two -arch flags with different values.
8419 ac_arch=
8420 ac_prev=
8421 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8422 if test -n "$ac_prev"; then
8423 case $ac_word in
8424 i?86 | x86_64 | ppc | ppc64)
8425 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8426 ac_arch=$ac_word
8427 else
8428 ac_cv_c_bigendian=universal
8429 break
8432 esac
8433 ac_prev=
8434 elif test "x$ac_word" = "x-arch"; then
8435 ac_prev=arch
8437 done
8439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440 if test $ac_cv_c_bigendian = unknown; then
8441 # See if sys/param.h defines the BYTE_ORDER macro.
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444 #include <sys/types.h>
8445 #include <sys/param.h>
8448 main ()
8450 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8451 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8452 && LITTLE_ENDIAN)
8453 bogus endian macros
8454 #endif
8457 return 0;
8459 _ACEOF
8460 if ac_fn_c_try_compile "$LINENO"; then :
8461 # It does; now see whether it defined to BIG_ENDIAN or not.
8462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8464 #include <sys/types.h>
8465 #include <sys/param.h>
8468 main ()
8470 #if BYTE_ORDER != BIG_ENDIAN
8471 not big endian
8472 #endif
8475 return 0;
8477 _ACEOF
8478 if ac_fn_c_try_compile "$LINENO"; then :
8479 ac_cv_c_bigendian=yes
8480 else
8481 ac_cv_c_bigendian=no
8483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8487 if test $ac_cv_c_bigendian = unknown; then
8488 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8491 #include <limits.h>
8494 main ()
8496 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8497 bogus endian macros
8498 #endif
8501 return 0;
8503 _ACEOF
8504 if ac_fn_c_try_compile "$LINENO"; then :
8505 # It does; now see whether it defined to _BIG_ENDIAN or not.
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8508 #include <limits.h>
8511 main ()
8513 #ifndef _BIG_ENDIAN
8514 not big endian
8515 #endif
8518 return 0;
8520 _ACEOF
8521 if ac_fn_c_try_compile "$LINENO"; then :
8522 ac_cv_c_bigendian=yes
8523 else
8524 ac_cv_c_bigendian=no
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530 if test $ac_cv_c_bigendian = unknown; then
8531 # Compile a test program.
8532 if test "$cross_compiling" = yes; then :
8533 # Try to guess by grepping values from an object file.
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8536 short int ascii_mm[] =
8537 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8538 short int ascii_ii[] =
8539 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8540 int use_ascii (int i) {
8541 return ascii_mm[i] + ascii_ii[i];
8543 short int ebcdic_ii[] =
8544 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8545 short int ebcdic_mm[] =
8546 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8547 int use_ebcdic (int i) {
8548 return ebcdic_mm[i] + ebcdic_ii[i];
8550 extern int foo;
8553 main ()
8555 return use_ascii (foo) == use_ebcdic (foo);
8557 return 0;
8559 _ACEOF
8560 if ac_fn_c_try_compile "$LINENO"; then :
8561 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8562 ac_cv_c_bigendian=yes
8564 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8565 if test "$ac_cv_c_bigendian" = unknown; then
8566 ac_cv_c_bigendian=no
8567 else
8568 # finding both strings is unlikely to happen, but who knows?
8569 ac_cv_c_bigendian=unknown
8573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8574 else
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 $ac_includes_default
8579 main ()
8582 /* Are we little or big endian? From Harbison&Steele. */
8583 union
8585 long int l;
8586 char c[sizeof (long int)];
8587 } u;
8588 u.l = 1;
8589 return u.c[sizeof (long int) - 1] == 1;
8592 return 0;
8594 _ACEOF
8595 if ac_fn_c_try_run "$LINENO"; then :
8596 ac_cv_c_bigendian=no
8597 else
8598 ac_cv_c_bigendian=yes
8600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8601 conftest.$ac_objext conftest.beam conftest.$ac_ext
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8607 $as_echo "$ac_cv_c_bigendian" >&6; }
8608 case $ac_cv_c_bigendian in #(
8609 yes)
8610 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8611 ;; #(
8613 ;; #(
8614 universal)
8616 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8618 ;; #(
8620 as_fn_error "unknown endianness
8621 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8622 esac
8625 # ----------------------
8626 # Checks for C++ headers
8627 # ----------------------
8629 ac_ext=cpp
8630 ac_cpp='$CXXCPP $CPPFLAGS'
8631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8635 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8636 if test -z "$CXXCPP"; then
8637 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 # Double quotes because CXXCPP needs to be expanded
8641 for CXXCPP in "$CXX -E" "/lib/cpp"
8643 ac_preproc_ok=false
8644 for ac_cxx_preproc_warn_flag in '' yes
8646 # Use a header file that comes with gcc, so configuring glibc
8647 # with a fresh cross-compiler works.
8648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8649 # <limits.h> exists even on freestanding compilers.
8650 # On the NeXT, cc -E runs the code through the compiler's parser,
8651 # not just through cpp. "Syntax error" is here to catch this case.
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8654 #ifdef __STDC__
8655 # include <limits.h>
8656 #else
8657 # include <assert.h>
8658 #endif
8659 Syntax error
8660 _ACEOF
8661 if ac_fn_cxx_try_cpp "$LINENO"; then :
8663 else
8664 # Broken: fails on valid input.
8665 continue
8667 rm -f conftest.err conftest.$ac_ext
8669 # OK, works on sane cases. Now check whether nonexistent headers
8670 # can be detected and how.
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 #include <ac_nonexistent.h>
8674 _ACEOF
8675 if ac_fn_cxx_try_cpp "$LINENO"; then :
8676 # Broken: success on invalid input.
8677 continue
8678 else
8679 # Passes both tests.
8680 ac_preproc_ok=:
8681 break
8683 rm -f conftest.err conftest.$ac_ext
8685 done
8686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8687 rm -f conftest.err conftest.$ac_ext
8688 if $ac_preproc_ok; then :
8689 break
8692 done
8693 ac_cv_prog_CXXCPP=$CXXCPP
8696 CXXCPP=$ac_cv_prog_CXXCPP
8697 else
8698 ac_cv_prog_CXXCPP=$CXXCPP
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8701 $as_echo "$CXXCPP" >&6; }
8702 ac_preproc_ok=false
8703 for ac_cxx_preproc_warn_flag in '' yes
8705 # Use a header file that comes with gcc, so configuring glibc
8706 # with a fresh cross-compiler works.
8707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8708 # <limits.h> exists even on freestanding compilers.
8709 # On the NeXT, cc -E runs the code through the compiler's parser,
8710 # not just through cpp. "Syntax error" is here to catch this case.
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8713 #ifdef __STDC__
8714 # include <limits.h>
8715 #else
8716 # include <assert.h>
8717 #endif
8718 Syntax error
8719 _ACEOF
8720 if ac_fn_cxx_try_cpp "$LINENO"; then :
8722 else
8723 # Broken: fails on valid input.
8724 continue
8726 rm -f conftest.err conftest.$ac_ext
8728 # OK, works on sane cases. Now check whether nonexistent headers
8729 # can be detected and how.
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 #include <ac_nonexistent.h>
8733 _ACEOF
8734 if ac_fn_cxx_try_cpp "$LINENO"; then :
8735 # Broken: success on invalid input.
8736 continue
8737 else
8738 # Passes both tests.
8739 ac_preproc_ok=:
8740 break
8742 rm -f conftest.err conftest.$ac_ext
8744 done
8745 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8746 rm -f conftest.err conftest.$ac_ext
8747 if $ac_preproc_ok; then :
8749 else
8750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8753 See \`config.log' for more details." >&5
8754 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8755 See \`config.log' for more details." >&2;}; }
8758 ac_ext=c
8759 ac_cpp='$CPP $CPPFLAGS'
8760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8765 ac_ext=cpp
8766 ac_cpp='$CXXCPP $CPPFLAGS'
8767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8774 for ac_header in unordered_map
8775 do :
8776 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8777 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8778 cat >>confdefs.h <<_ACEOF
8779 #define HAVE_UNORDERED_MAP 1
8780 _ACEOF
8783 done
8785 for ac_header in tr1/unordered_map
8786 do :
8787 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8788 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8789 cat >>confdefs.h <<_ACEOF
8790 #define HAVE_TR1_UNORDERED_MAP 1
8791 _ACEOF
8794 done
8796 for ac_header in ext/hash_map
8797 do :
8798 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8799 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8800 cat >>confdefs.h <<_ACEOF
8801 #define HAVE_EXT_HASH_MAP 1
8802 _ACEOF
8805 done
8808 ac_ext=c
8809 ac_cpp='$CPP $CPPFLAGS'
8810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8815 # --------
8816 # UNSORTED
8817 # --------
8820 # These libraries may be used by collect2.
8821 # We may need a special search path to get them linked.
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8823 $as_echo_n "checking for collect2 libraries... " >&6; }
8824 if test "${gcc_cv_collect2_libs+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 save_LIBS="$LIBS"
8828 for libs in '' -lld -lmld \
8829 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8830 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8832 LIBS="$libs"
8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h. */
8836 /* Override any GCC internal prototype to avoid an error.
8837 Use char because int might match the return type of a GCC
8838 builtin and then its argument prototype would still apply. */
8839 #ifdef __cplusplus
8840 extern "C"
8841 #endif
8842 char ldopen ();
8844 main ()
8846 return ldopen ();
8848 return 0;
8850 _ACEOF
8851 if ac_fn_c_try_link "$LINENO"; then :
8852 gcc_cv_collect2_libs="$libs"; break
8854 rm -f core conftest.err conftest.$ac_objext \
8855 conftest$ac_exeext conftest.$ac_ext
8856 done
8857 LIBS="$save_LIBS"
8858 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8861 $as_echo "$gcc_cv_collect2_libs" >&6; }
8862 case $gcc_cv_collect2_libs in
8863 "none required") ;;
8864 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8865 esac
8868 # When building Ada code on Alpha, we need exc_resume which is usually in
8869 # -lexc. So test for it.
8870 save_LIBS="$LIBS"
8871 LIBS=
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8873 $as_echo_n "checking for library containing exc_resume... " >&6; }
8874 if test "${ac_cv_search_exc_resume+set}" = set; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 ac_func_search_save_LIBS=$LIBS
8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h. */
8881 /* Override any GCC internal prototype to avoid an error.
8882 Use char because int might match the return type of a GCC
8883 builtin and then its argument prototype would still apply. */
8884 #ifdef __cplusplus
8885 extern "C"
8886 #endif
8887 char exc_resume ();
8889 main ()
8891 return exc_resume ();
8893 return 0;
8895 _ACEOF
8896 for ac_lib in '' exc; do
8897 if test -z "$ac_lib"; then
8898 ac_res="none required"
8899 else
8900 ac_res=-l$ac_lib
8901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8903 if ac_fn_c_try_link "$LINENO"; then :
8904 ac_cv_search_exc_resume=$ac_res
8906 rm -f core conftest.err conftest.$ac_objext \
8907 conftest$ac_exeext
8908 if test "${ac_cv_search_exc_resume+set}" = set; then :
8909 break
8911 done
8912 if test "${ac_cv_search_exc_resume+set}" = set; then :
8914 else
8915 ac_cv_search_exc_resume=no
8917 rm conftest.$ac_ext
8918 LIBS=$ac_func_search_save_LIBS
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8921 $as_echo "$ac_cv_search_exc_resume" >&6; }
8922 ac_res=$ac_cv_search_exc_resume
8923 if test "$ac_res" != no; then :
8924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8928 GNAT_LIBEXC="$LIBS"
8929 LIBS="$save_LIBS"
8932 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8933 save_LIBS="$LIBS"
8934 LIBS=
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8936 $as_echo_n "checking for library containing kstat_open... " >&6; }
8937 if test "${ac_cv_search_kstat_open+set}" = set; then :
8938 $as_echo_n "(cached) " >&6
8939 else
8940 ac_func_search_save_LIBS=$LIBS
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8944 /* Override any GCC internal prototype to avoid an error.
8945 Use char because int might match the return type of a GCC
8946 builtin and then its argument prototype would still apply. */
8947 #ifdef __cplusplus
8948 extern "C"
8949 #endif
8950 char kstat_open ();
8952 main ()
8954 return kstat_open ();
8956 return 0;
8958 _ACEOF
8959 for ac_lib in '' kstat; do
8960 if test -z "$ac_lib"; then
8961 ac_res="none required"
8962 else
8963 ac_res=-l$ac_lib
8964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8966 if ac_fn_c_try_link "$LINENO"; then :
8967 ac_cv_search_kstat_open=$ac_res
8969 rm -f core conftest.err conftest.$ac_objext \
8970 conftest$ac_exeext
8971 if test "${ac_cv_search_kstat_open+set}" = set; then :
8972 break
8974 done
8975 if test "${ac_cv_search_kstat_open+set}" = set; then :
8977 else
8978 ac_cv_search_kstat_open=no
8980 rm conftest.$ac_ext
8981 LIBS=$ac_func_search_save_LIBS
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8984 $as_echo "$ac_cv_search_kstat_open" >&6; }
8985 ac_res=$ac_cv_search_kstat_open
8986 if test "$ac_res" != no; then :
8987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8991 EXTRA_GCC_LIBS="$LIBS"
8992 LIBS="$save_LIBS"
8995 # Some systems put ldexp and frexp in libm instead of libc; assume
8996 # they're both in the same place. jcf-dump needs them.
8997 save_LIBS="$LIBS"
8998 LIBS=
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9000 $as_echo_n "checking for library containing ldexp... " >&6; }
9001 if test "${ac_cv_search_ldexp+set}" = set; then :
9002 $as_echo_n "(cached) " >&6
9003 else
9004 ac_func_search_save_LIBS=$LIBS
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9008 /* Override any GCC internal prototype to avoid an error.
9009 Use char because int might match the return type of a GCC
9010 builtin and then its argument prototype would still apply. */
9011 #ifdef __cplusplus
9012 extern "C"
9013 #endif
9014 char ldexp ();
9016 main ()
9018 return ldexp ();
9020 return 0;
9022 _ACEOF
9023 for ac_lib in '' m; do
9024 if test -z "$ac_lib"; then
9025 ac_res="none required"
9026 else
9027 ac_res=-l$ac_lib
9028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9030 if ac_fn_c_try_link "$LINENO"; then :
9031 ac_cv_search_ldexp=$ac_res
9033 rm -f core conftest.err conftest.$ac_objext \
9034 conftest$ac_exeext
9035 if test "${ac_cv_search_ldexp+set}" = set; then :
9036 break
9038 done
9039 if test "${ac_cv_search_ldexp+set}" = set; then :
9041 else
9042 ac_cv_search_ldexp=no
9044 rm conftest.$ac_ext
9045 LIBS=$ac_func_search_save_LIBS
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9048 $as_echo "$ac_cv_search_ldexp" >&6; }
9049 ac_res=$ac_cv_search_ldexp
9050 if test "$ac_res" != no; then :
9051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9055 LDEXP_LIB="$LIBS"
9056 LIBS="$save_LIBS"
9059 # Use <inttypes.h> only if it exists,
9060 # doesn't clash with <sys/types.h>, and declares intmax_t.
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9062 $as_echo_n "checking for inttypes.h... " >&6; }
9063 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 #include <sys/types.h>
9069 #include <inttypes.h>
9071 main ()
9073 intmax_t i = -1;
9075 return 0;
9077 _ACEOF
9078 if ac_fn_c_try_compile "$LINENO"; then :
9079 gcc_cv_header_inttypes_h=yes
9080 else
9081 gcc_cv_header_inttypes_h=no
9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9087 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9088 if test $gcc_cv_header_inttypes_h = yes; then
9090 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9096 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9097 sysconf strsignal getrusage nl_langinfo \
9098 gettimeofday mbstowcs wcswidth mmap setlocale \
9099 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
9100 do :
9101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9102 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9103 eval as_val=\$$as_ac_var
9104 if test "x$as_val" = x""yes; then :
9105 cat >>confdefs.h <<_ACEOF
9106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9107 _ACEOF
9110 done
9113 if test x$ac_cv_func_mbstowcs = xyes; then
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9115 $as_echo_n "checking whether mbstowcs works... " >&6; }
9116 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
9118 else
9119 if test "$cross_compiling" = yes; then :
9120 gcc_cv_func_mbstowcs_works=yes
9121 else
9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9124 #include <stdlib.h>
9125 int main()
9127 mbstowcs(0, "", 0);
9128 return 0;
9130 _ACEOF
9131 if ac_fn_c_try_run "$LINENO"; then :
9132 gcc_cv_func_mbstowcs_works=yes
9133 else
9134 gcc_cv_func_mbstowcs_works=no
9136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9137 conftest.$ac_objext conftest.beam conftest.$ac_ext
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9142 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9143 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9145 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9150 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9151 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9153 else
9155 cat >>confdefs.h <<_ACEOF
9156 #define ssize_t int
9157 _ACEOF
9161 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9162 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9164 else
9166 cat >>confdefs.h <<_ACEOF
9167 #define caddr_t char *
9168 _ACEOF
9174 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9175 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9176 gcc_header_sys_mman_h=yes
9177 else
9178 gcc_header_sys_mman_h=no
9181 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9182 if test "x$ac_cv_func_mmap" = x""yes; then :
9183 gcc_func_mmap=yes
9184 else
9185 gcc_func_mmap=no
9188 if test "$gcc_header_sys_mman_h" != yes \
9189 || test "$gcc_func_mmap" != yes; then
9190 gcc_cv_func_mmap_file=no
9191 gcc_cv_func_mmap_dev_zero=no
9192 gcc_cv_func_mmap_anon=no
9193 else
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9195 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9196 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 # Add a system to this blacklist if
9200 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9201 # memory area containing the same data that you'd get if you applied
9202 # read() to the same fd. The only system known to have a problem here
9203 # is VMS, where text files have record structure.
9204 case "$host_os" in
9205 *vms* | ultrix*)
9206 gcc_cv_func_mmap_file=no ;;
9208 gcc_cv_func_mmap_file=yes;;
9209 esac
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9212 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9214 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9215 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
9217 else
9218 # Add a system to this blacklist if it has mmap() but /dev/zero
9219 # does not exist, or if mmapping /dev/zero does not give anonymous
9220 # zeroed pages with both the following properties:
9221 # 1. If you map N consecutive pages in with one call, and then
9222 # unmap any subset of those pages, the pages that were not
9223 # explicitly unmapped remain accessible.
9224 # 2. If you map two adjacent blocks of memory and then unmap them
9225 # both at once, they must both go away.
9226 # Systems known to be in this category are Windows (all variants),
9227 # VMS, and Darwin.
9228 case "$host_os" in
9229 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9230 gcc_cv_func_mmap_dev_zero=no ;;
9232 gcc_cv_func_mmap_dev_zero=yes;;
9233 esac
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9236 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9238 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9240 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9241 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h. */
9246 #include <sys/types.h>
9247 #include <sys/mman.h>
9248 #include <unistd.h>
9250 #ifndef MAP_ANONYMOUS
9251 #define MAP_ANONYMOUS MAP_ANON
9252 #endif
9255 main ()
9257 int n = MAP_ANONYMOUS;
9259 return 0;
9261 _ACEOF
9262 if ac_fn_c_try_compile "$LINENO"; then :
9263 gcc_cv_decl_map_anon=yes
9264 else
9265 gcc_cv_decl_map_anon=no
9267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9270 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9272 if test $gcc_cv_decl_map_anon = no; then
9273 gcc_cv_func_mmap_anon=no
9274 else
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9276 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9277 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9281 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9282 # doesn't give anonymous zeroed pages with the same properties listed
9283 # above for use of /dev/zero.
9284 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9285 case "$host_os" in
9286 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9287 gcc_cv_func_mmap_anon=no ;;
9289 gcc_cv_func_mmap_anon=yes;;
9290 esac
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9293 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9297 if test $gcc_cv_func_mmap_file = yes; then
9299 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9302 if test $gcc_cv_func_mmap_dev_zero = yes; then
9304 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9307 if test $gcc_cv_func_mmap_anon = yes; then
9309 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9314 case "${host}" in
9315 *-*-*vms*)
9316 # Under VMS, vfork works very differently than on Unix. The standard test
9317 # won't work, and it isn't easily adaptable. It makes more sense to
9318 # just force it.
9319 ac_cv_func_vfork_works=yes
9321 esac
9322 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9323 if test "x$ac_cv_type_pid_t" = x""yes; then :
9325 else
9327 cat >>confdefs.h <<_ACEOF
9328 #define pid_t int
9329 _ACEOF
9333 for ac_header in vfork.h
9334 do :
9335 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9336 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9337 cat >>confdefs.h <<_ACEOF
9338 #define HAVE_VFORK_H 1
9339 _ACEOF
9342 done
9344 for ac_func in fork vfork
9345 do :
9346 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9347 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9348 eval as_val=\$$as_ac_var
9349 if test "x$as_val" = x""yes; then :
9350 cat >>confdefs.h <<_ACEOF
9351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9352 _ACEOF
9355 done
9357 if test "x$ac_cv_func_fork" = xyes; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9359 $as_echo_n "checking for working fork... " >&6; }
9360 if test "${ac_cv_func_fork_works+set}" = set; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363 if test "$cross_compiling" = yes; then :
9364 ac_cv_func_fork_works=cross
9365 else
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 $ac_includes_default
9370 main ()
9373 /* By Ruediger Kuhlmann. */
9374 return fork () < 0;
9377 return 0;
9379 _ACEOF
9380 if ac_fn_c_try_run "$LINENO"; then :
9381 ac_cv_func_fork_works=yes
9382 else
9383 ac_cv_func_fork_works=no
9385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9386 conftest.$ac_objext conftest.beam conftest.$ac_ext
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9391 $as_echo "$ac_cv_func_fork_works" >&6; }
9393 else
9394 ac_cv_func_fork_works=$ac_cv_func_fork
9396 if test "x$ac_cv_func_fork_works" = xcross; then
9397 case $host in
9398 *-*-amigaos* | *-*-msdosdjgpp*)
9399 # Override, as these systems have only a dummy fork() stub
9400 ac_cv_func_fork_works=no
9403 ac_cv_func_fork_works=yes
9405 esac
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9407 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9409 ac_cv_func_vfork_works=$ac_cv_func_vfork
9410 if test "x$ac_cv_func_vfork" = xyes; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9412 $as_echo_n "checking for working vfork... " >&6; }
9413 if test "${ac_cv_func_vfork_works+set}" = set; then :
9414 $as_echo_n "(cached) " >&6
9415 else
9416 if test "$cross_compiling" = yes; then :
9417 ac_cv_func_vfork_works=cross
9418 else
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9421 /* Thanks to Paul Eggert for this test. */
9422 $ac_includes_default
9423 #include <sys/wait.h>
9424 #ifdef HAVE_VFORK_H
9425 # include <vfork.h>
9426 #endif
9427 /* On some sparc systems, changes by the child to local and incoming
9428 argument registers are propagated back to the parent. The compiler
9429 is told about this with #include <vfork.h>, but some compilers
9430 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9431 static variable whose address is put into a register that is
9432 clobbered by the vfork. */
9433 static void
9434 #ifdef __cplusplus
9435 sparc_address_test (int arg)
9436 # else
9437 sparc_address_test (arg) int arg;
9438 #endif
9440 static pid_t child;
9441 if (!child) {
9442 child = vfork ();
9443 if (child < 0) {
9444 perror ("vfork");
9445 _exit(2);
9447 if (!child) {
9448 arg = getpid();
9449 write(-1, "", 0);
9450 _exit (arg);
9456 main ()
9458 pid_t parent = getpid ();
9459 pid_t child;
9461 sparc_address_test (0);
9463 child = vfork ();
9465 if (child == 0) {
9466 /* Here is another test for sparc vfork register problems. This
9467 test uses lots of local variables, at least as many local
9468 variables as main has allocated so far including compiler
9469 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9470 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9471 reuse the register of parent for one of the local variables,
9472 since it will think that parent can't possibly be used any more
9473 in this routine. Assigning to the local variable will thus
9474 munge parent in the parent process. */
9475 pid_t
9476 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9477 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9478 /* Convince the compiler that p..p7 are live; otherwise, it might
9479 use the same hardware register for all 8 local variables. */
9480 if (p != p1 || p != p2 || p != p3 || p != p4
9481 || p != p5 || p != p6 || p != p7)
9482 _exit(1);
9484 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9485 from child file descriptors. If the child closes a descriptor
9486 before it execs or exits, this munges the parent's descriptor
9487 as well. Test for this by closing stdout in the child. */
9488 _exit(close(fileno(stdout)) != 0);
9489 } else {
9490 int status;
9491 struct stat st;
9493 while (wait(&status) != child)
9495 return (
9496 /* Was there some problem with vforking? */
9497 child < 0
9499 /* Did the child fail? (This shouldn't happen.) */
9500 || status
9502 /* Did the vfork/compiler bug occur? */
9503 || parent != getpid()
9505 /* Did the file descriptor bug occur? */
9506 || fstat(fileno(stdout), &st) != 0
9510 _ACEOF
9511 if ac_fn_c_try_run "$LINENO"; then :
9512 ac_cv_func_vfork_works=yes
9513 else
9514 ac_cv_func_vfork_works=no
9516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9517 conftest.$ac_objext conftest.beam conftest.$ac_ext
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9522 $as_echo "$ac_cv_func_vfork_works" >&6; }
9525 if test "x$ac_cv_func_fork_works" = xcross; then
9526 ac_cv_func_vfork_works=$ac_cv_func_vfork
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9528 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9531 if test "x$ac_cv_func_vfork_works" = xyes; then
9533 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9535 else
9537 $as_echo "#define vfork fork" >>confdefs.h
9540 if test "x$ac_cv_func_fork_works" = xyes; then
9542 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9547 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9548 # iconv() prototype.
9549 ac_ext=cpp
9550 ac_cpp='$CXXCPP $CPPFLAGS'
9551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9556 if test "X$prefix" = "XNONE"; then
9557 acl_final_prefix="$ac_default_prefix"
9558 else
9559 acl_final_prefix="$prefix"
9561 if test "X$exec_prefix" = "XNONE"; then
9562 acl_final_exec_prefix='${prefix}'
9563 else
9564 acl_final_exec_prefix="$exec_prefix"
9566 acl_save_prefix="$prefix"
9567 prefix="$acl_final_prefix"
9568 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9569 prefix="$acl_save_prefix"
9572 # Check whether --with-gnu-ld was given.
9573 if test "${with_gnu_ld+set}" = set; then :
9574 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9575 else
9576 with_gnu_ld=no
9579 # Prepare PATH_SEPARATOR.
9580 # The user is always right.
9581 if test "${PATH_SEPARATOR+set}" != set; then
9582 echo "#! /bin/sh" >conf$$.sh
9583 echo "exit 0" >>conf$$.sh
9584 chmod +x conf$$.sh
9585 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9586 PATH_SEPARATOR=';'
9587 else
9588 PATH_SEPARATOR=:
9590 rm -f conf$$.sh
9592 ac_prog=ld
9593 if test "$GCC" = yes; then
9594 # Check if gcc -print-prog-name=ld gives a path.
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9596 $as_echo_n "checking for ld used by GCC... " >&6; }
9597 case $host in
9598 *-*-mingw*)
9599 # gcc leaves a trailing carriage return which upsets mingw
9600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9603 esac
9604 case $ac_prog in
9605 # Accept absolute paths.
9606 [\\/]* | [A-Za-z]:[\\/]*)
9607 re_direlt='/[^/][^/]*/\.\./'
9608 # Canonicalize the path of ld
9609 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9610 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9611 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9612 done
9613 test -z "$LD" && LD="$ac_prog"
9616 # If it fails, then pretend we aren't using GCC.
9617 ac_prog=ld
9620 # If it is relative, then search for the first ld in PATH.
9621 with_gnu_ld=unknown
9623 esac
9624 elif test "$with_gnu_ld" = yes; then
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9626 $as_echo_n "checking for GNU ld... " >&6; }
9627 else
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9629 $as_echo_n "checking for non-GNU ld... " >&6; }
9631 if test "${acl_cv_path_LD+set}" = set; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 if test -z "$LD"; then
9635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9636 for ac_dir in $PATH; do
9637 test -z "$ac_dir" && ac_dir=.
9638 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9639 acl_cv_path_LD="$ac_dir/$ac_prog"
9640 # Check to see if the program is GNU ld. I'd rather use --version,
9641 # but apparently some GNU ld's only accept -v.
9642 # Break only if it was the GNU/non-GNU ld that we prefer.
9643 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9644 test "$with_gnu_ld" != no && break
9645 else
9646 test "$with_gnu_ld" != yes && break
9649 done
9650 IFS="$ac_save_ifs"
9651 else
9652 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9656 LD="$acl_cv_path_LD"
9657 if test -n "$LD"; then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9659 $as_echo "$LD" >&6; }
9660 else
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 $as_echo "no" >&6; }
9664 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9666 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9667 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9671 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9672 acl_cv_prog_gnu_ld=yes
9673 else
9674 acl_cv_prog_gnu_ld=no
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9678 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9679 with_gnu_ld=$acl_cv_prog_gnu_ld
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9684 $as_echo_n "checking for shared library run path origin... " >&6; }
9685 if test "${acl_cv_rpath+set}" = set; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9689 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9690 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9691 . ./conftest.sh
9692 rm -f ./conftest.sh
9693 acl_cv_rpath=done
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9697 $as_echo "$acl_cv_rpath" >&6; }
9698 wl="$acl_cv_wl"
9699 libext="$acl_cv_libext"
9700 shlibext="$acl_cv_shlibext"
9701 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9702 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9703 hardcode_direct="$acl_cv_hardcode_direct"
9704 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9705 # Check whether --enable-rpath was given.
9706 if test "${enable_rpath+set}" = set; then :
9707 enableval=$enable_rpath; :
9708 else
9709 enable_rpath=yes
9719 use_additional=yes
9721 acl_save_prefix="$prefix"
9722 prefix="$acl_final_prefix"
9723 acl_save_exec_prefix="$exec_prefix"
9724 exec_prefix="$acl_final_exec_prefix"
9726 eval additional_includedir=\"$includedir\"
9727 eval additional_libdir=\"$libdir\"
9729 exec_prefix="$acl_save_exec_prefix"
9730 prefix="$acl_save_prefix"
9733 # Check whether --with-libiconv-prefix was given.
9734 if test "${with_libiconv_prefix+set}" = set; then :
9735 withval=$with_libiconv_prefix;
9736 if test "X$withval" = "Xno"; then
9737 use_additional=no
9738 else
9739 if test "X$withval" = "X"; then
9741 acl_save_prefix="$prefix"
9742 prefix="$acl_final_prefix"
9743 acl_save_exec_prefix="$exec_prefix"
9744 exec_prefix="$acl_final_exec_prefix"
9746 eval additional_includedir=\"$includedir\"
9747 eval additional_libdir=\"$libdir\"
9749 exec_prefix="$acl_save_exec_prefix"
9750 prefix="$acl_save_prefix"
9752 else
9753 additional_includedir="$withval/include"
9754 additional_libdir="$withval/lib"
9760 LIBICONV=
9761 LTLIBICONV=
9762 INCICONV=
9763 rpathdirs=
9764 ltrpathdirs=
9765 names_already_handled=
9766 names_next_round='iconv '
9767 while test -n "$names_next_round"; do
9768 names_this_round="$names_next_round"
9769 names_next_round=
9770 for name in $names_this_round; do
9771 already_handled=
9772 for n in $names_already_handled; do
9773 if test "$n" = "$name"; then
9774 already_handled=yes
9775 break
9777 done
9778 if test -z "$already_handled"; then
9779 names_already_handled="$names_already_handled $name"
9780 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9781 eval value=\"\$HAVE_LIB$uppername\"
9782 if test -n "$value"; then
9783 if test "$value" = yes; then
9784 eval value=\"\$LIB$uppername\"
9785 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9786 eval value=\"\$LTLIB$uppername\"
9787 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9788 else
9791 else
9792 found_dir=
9793 found_la=
9794 found_so=
9795 found_a=
9796 if test $use_additional = yes; then
9797 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9798 found_dir="$additional_libdir"
9799 found_so="$additional_libdir/lib$name.$shlibext"
9800 if test -f "$additional_libdir/lib$name.la"; then
9801 found_la="$additional_libdir/lib$name.la"
9803 else
9804 if test -f "$additional_libdir/lib$name.$libext"; then
9805 found_dir="$additional_libdir"
9806 found_a="$additional_libdir/lib$name.$libext"
9807 if test -f "$additional_libdir/lib$name.la"; then
9808 found_la="$additional_libdir/lib$name.la"
9813 if test "X$found_dir" = "X"; then
9814 for x in $LDFLAGS $LTLIBICONV; do
9816 acl_save_prefix="$prefix"
9817 prefix="$acl_final_prefix"
9818 acl_save_exec_prefix="$exec_prefix"
9819 exec_prefix="$acl_final_exec_prefix"
9820 eval x=\"$x\"
9821 exec_prefix="$acl_save_exec_prefix"
9822 prefix="$acl_save_prefix"
9824 case "$x" in
9825 -L*)
9826 dir=`echo "X$x" | sed -e 's/^X-L//'`
9827 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9828 found_dir="$dir"
9829 found_so="$dir/lib$name.$shlibext"
9830 if test -f "$dir/lib$name.la"; then
9831 found_la="$dir/lib$name.la"
9833 else
9834 if test -f "$dir/lib$name.$libext"; then
9835 found_dir="$dir"
9836 found_a="$dir/lib$name.$libext"
9837 if test -f "$dir/lib$name.la"; then
9838 found_la="$dir/lib$name.la"
9843 esac
9844 if test "X$found_dir" != "X"; then
9845 break
9847 done
9849 if test "X$found_dir" != "X"; then
9850 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9851 if test "X$found_so" != "X"; then
9852 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9853 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9854 else
9855 haveit=
9856 for x in $ltrpathdirs; do
9857 if test "X$x" = "X$found_dir"; then
9858 haveit=yes
9859 break
9861 done
9862 if test -z "$haveit"; then
9863 ltrpathdirs="$ltrpathdirs $found_dir"
9865 if test "$hardcode_direct" = yes; then
9866 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9867 else
9868 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9869 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9870 haveit=
9871 for x in $rpathdirs; do
9872 if test "X$x" = "X$found_dir"; then
9873 haveit=yes
9874 break
9876 done
9877 if test -z "$haveit"; then
9878 rpathdirs="$rpathdirs $found_dir"
9880 else
9881 haveit=
9882 for x in $LDFLAGS $LIBICONV; do
9884 acl_save_prefix="$prefix"
9885 prefix="$acl_final_prefix"
9886 acl_save_exec_prefix="$exec_prefix"
9887 exec_prefix="$acl_final_exec_prefix"
9888 eval x=\"$x\"
9889 exec_prefix="$acl_save_exec_prefix"
9890 prefix="$acl_save_prefix"
9892 if test "X$x" = "X-L$found_dir"; then
9893 haveit=yes
9894 break
9896 done
9897 if test -z "$haveit"; then
9898 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9900 if test "$hardcode_minus_L" != no; then
9901 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9902 else
9903 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9908 else
9909 if test "X$found_a" != "X"; then
9910 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9911 else
9912 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9915 additional_includedir=
9916 case "$found_dir" in
9917 */lib | */lib/)
9918 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9919 additional_includedir="$basedir/include"
9921 esac
9922 if test "X$additional_includedir" != "X"; then
9923 if test "X$additional_includedir" != "X/usr/include"; then
9924 haveit=
9925 if test "X$additional_includedir" = "X/usr/local/include"; then
9926 if test -n "$GCC"; then
9927 case $host_os in
9928 linux*) haveit=yes;;
9929 esac
9932 if test -z "$haveit"; then
9933 for x in $CPPFLAGS $INCICONV; do
9935 acl_save_prefix="$prefix"
9936 prefix="$acl_final_prefix"
9937 acl_save_exec_prefix="$exec_prefix"
9938 exec_prefix="$acl_final_exec_prefix"
9939 eval x=\"$x\"
9940 exec_prefix="$acl_save_exec_prefix"
9941 prefix="$acl_save_prefix"
9943 if test "X$x" = "X-I$additional_includedir"; then
9944 haveit=yes
9945 break
9947 done
9948 if test -z "$haveit"; then
9949 if test -d "$additional_includedir"; then
9950 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9956 if test -n "$found_la"; then
9957 save_libdir="$libdir"
9958 case "$found_la" in
9959 */* | *\\*) . "$found_la" ;;
9960 *) . "./$found_la" ;;
9961 esac
9962 libdir="$save_libdir"
9963 for dep in $dependency_libs; do
9964 case "$dep" in
9965 -L*)
9966 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9967 if test "X$additional_libdir" != "X/usr/lib"; then
9968 haveit=
9969 if test "X$additional_libdir" = "X/usr/local/lib"; then
9970 if test -n "$GCC"; then
9971 case $host_os in
9972 linux*) haveit=yes;;
9973 esac
9976 if test -z "$haveit"; then
9977 haveit=
9978 for x in $LDFLAGS $LIBICONV; do
9980 acl_save_prefix="$prefix"
9981 prefix="$acl_final_prefix"
9982 acl_save_exec_prefix="$exec_prefix"
9983 exec_prefix="$acl_final_exec_prefix"
9984 eval x=\"$x\"
9985 exec_prefix="$acl_save_exec_prefix"
9986 prefix="$acl_save_prefix"
9988 if test "X$x" = "X-L$additional_libdir"; then
9989 haveit=yes
9990 break
9992 done
9993 if test -z "$haveit"; then
9994 if test -d "$additional_libdir"; then
9995 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9998 haveit=
9999 for x in $LDFLAGS $LTLIBICONV; do
10001 acl_save_prefix="$prefix"
10002 prefix="$acl_final_prefix"
10003 acl_save_exec_prefix="$exec_prefix"
10004 exec_prefix="$acl_final_exec_prefix"
10005 eval x=\"$x\"
10006 exec_prefix="$acl_save_exec_prefix"
10007 prefix="$acl_save_prefix"
10009 if test "X$x" = "X-L$additional_libdir"; then
10010 haveit=yes
10011 break
10013 done
10014 if test -z "$haveit"; then
10015 if test -d "$additional_libdir"; then
10016 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10022 -R*)
10023 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10024 if test "$enable_rpath" != no; then
10025 haveit=
10026 for x in $rpathdirs; do
10027 if test "X$x" = "X$dir"; then
10028 haveit=yes
10029 break
10031 done
10032 if test -z "$haveit"; then
10033 rpathdirs="$rpathdirs $dir"
10035 haveit=
10036 for x in $ltrpathdirs; do
10037 if test "X$x" = "X$dir"; then
10038 haveit=yes
10039 break
10041 done
10042 if test -z "$haveit"; then
10043 ltrpathdirs="$ltrpathdirs $dir"
10047 -l*)
10048 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10050 *.la)
10051 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10054 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10055 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10057 esac
10058 done
10060 else
10061 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10062 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10066 done
10067 done
10068 if test "X$rpathdirs" != "X"; then
10069 if test -n "$hardcode_libdir_separator"; then
10070 alldirs=
10071 for found_dir in $rpathdirs; do
10072 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10073 done
10074 acl_save_libdir="$libdir"
10075 libdir="$alldirs"
10076 eval flag=\"$hardcode_libdir_flag_spec\"
10077 libdir="$acl_save_libdir"
10078 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10079 else
10080 for found_dir in $rpathdirs; do
10081 acl_save_libdir="$libdir"
10082 libdir="$found_dir"
10083 eval flag=\"$hardcode_libdir_flag_spec\"
10084 libdir="$acl_save_libdir"
10085 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10086 done
10089 if test "X$ltrpathdirs" != "X"; then
10090 for found_dir in $ltrpathdirs; do
10091 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10092 done
10101 am_save_CPPFLAGS="$CPPFLAGS"
10103 for element in $INCICONV; do
10104 haveit=
10105 for x in $CPPFLAGS; do
10107 acl_save_prefix="$prefix"
10108 prefix="$acl_final_prefix"
10109 acl_save_exec_prefix="$exec_prefix"
10110 exec_prefix="$acl_final_exec_prefix"
10111 eval x=\"$x\"
10112 exec_prefix="$acl_save_exec_prefix"
10113 prefix="$acl_save_prefix"
10115 if test "X$x" = "X$element"; then
10116 haveit=yes
10117 break
10119 done
10120 if test -z "$haveit"; then
10121 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10123 done
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10127 $as_echo_n "checking for iconv... " >&6; }
10128 if test "${am_cv_func_iconv+set}" = set; then :
10129 $as_echo_n "(cached) " >&6
10130 else
10132 am_cv_func_iconv="no, consider installing GNU libiconv"
10133 am_cv_lib_iconv=no
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10136 #include <stdlib.h>
10137 #include <iconv.h>
10139 main ()
10141 iconv_t cd = iconv_open("","");
10142 iconv(cd,NULL,NULL,NULL,NULL);
10143 iconv_close(cd);
10145 return 0;
10147 _ACEOF
10148 if ac_fn_cxx_try_link "$LINENO"; then :
10149 am_cv_func_iconv=yes
10151 rm -f core conftest.err conftest.$ac_objext \
10152 conftest$ac_exeext conftest.$ac_ext
10153 if test "$am_cv_func_iconv" != yes; then
10154 am_save_LIBS="$LIBS"
10155 LIBS="$LIBS $LIBICONV"
10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158 #include <stdlib.h>
10159 #include <iconv.h>
10161 main ()
10163 iconv_t cd = iconv_open("","");
10164 iconv(cd,NULL,NULL,NULL,NULL);
10165 iconv_close(cd);
10167 return 0;
10169 _ACEOF
10170 if ac_fn_cxx_try_link "$LINENO"; then :
10171 am_cv_lib_iconv=yes
10172 am_cv_func_iconv=yes
10174 rm -f core conftest.err conftest.$ac_objext \
10175 conftest$ac_exeext conftest.$ac_ext
10176 LIBS="$am_save_LIBS"
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10181 $as_echo "$am_cv_func_iconv" >&6; }
10182 if test "$am_cv_func_iconv" = yes; then
10184 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10187 if test "$am_cv_lib_iconv" = yes; then
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10189 $as_echo_n "checking how to link with libiconv... " >&6; }
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10191 $as_echo "$LIBICONV" >&6; }
10192 else
10193 CPPFLAGS="$am_save_CPPFLAGS"
10194 LIBICONV=
10195 LTLIBICONV=
10200 if test "$am_cv_func_iconv" = yes; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10202 $as_echo_n "checking for iconv declaration... " >&6; }
10203 if test "${am_cv_proto_iconv+set}" = set; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10210 #include <stdlib.h>
10211 #include <iconv.h>
10212 extern
10213 #ifdef __cplusplus
10215 #endif
10216 #if defined(__STDC__) || defined(__cplusplus)
10217 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10218 #else
10219 size_t iconv();
10220 #endif
10223 main ()
10227 return 0;
10229 _ACEOF
10230 if ac_fn_cxx_try_compile "$LINENO"; then :
10231 am_cv_proto_iconv_arg1=""
10232 else
10233 am_cv_proto_iconv_arg1="const"
10235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10236 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);"
10239 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10241 }$am_cv_proto_iconv" >&5
10242 $as_echo "${ac_t:-
10243 }$am_cv_proto_iconv" >&6; }
10245 cat >>confdefs.h <<_ACEOF
10246 #define ICONV_CONST $am_cv_proto_iconv_arg1
10247 _ACEOF
10251 ac_ext=c
10252 ac_cpp='$CPP $CPPFLAGS'
10253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10258 # Until we have in-tree GNU iconv:
10259 LIBICONV_DEP=
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10264 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10265 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h. */
10270 #include <locale.h>
10272 main ()
10274 return LC_MESSAGES
10276 return 0;
10278 _ACEOF
10279 if ac_fn_c_try_link "$LINENO"; then :
10280 am_cv_val_LC_MESSAGES=yes
10281 else
10282 am_cv_val_LC_MESSAGES=no
10284 rm -f core conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10288 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10289 if test $am_cv_val_LC_MESSAGES = yes; then
10291 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10298 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10299 if test "${am_cv_langinfo_codeset+set}" = set; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304 #include <langinfo.h>
10306 main ()
10308 char* cs = nl_langinfo(CODESET);
10310 return 0;
10312 _ACEOF
10313 if ac_fn_c_try_link "$LINENO"; then :
10314 am_cv_langinfo_codeset=yes
10315 else
10316 am_cv_langinfo_codeset=no
10318 rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10323 $as_echo "$am_cv_langinfo_codeset" >&6; }
10324 if test $am_cv_langinfo_codeset = yes; then
10326 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10331 # We will need to find libiberty.h and ansidecl.h
10332 saved_CFLAGS="$CFLAGS"
10333 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10334 saved_CXXFLAGS="$CXXFLAGS"
10335 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10336 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10337 strsignal strstr stpcpy strverscmp \
10338 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10339 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
10341 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10343 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10344 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10349 #undef $ac_tr_decl
10350 #define $ac_tr_decl 1
10352 #include "ansidecl.h"
10353 #include "system.h"
10356 main ()
10358 #ifndef $ac_func
10359 char *(*pfn) = (char *(*)) $ac_func ;
10360 #endif
10362 return 0;
10364 _ACEOF
10365 if ac_fn_c_try_compile "$LINENO"; then :
10366 eval "gcc_cv_have_decl_$ac_func=yes"
10367 else
10368 eval "gcc_cv_have_decl_$ac_func=no"
10370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10373 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10375 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10376 #define $ac_tr_decl 1
10377 _ACEOF
10379 else
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10382 #define $ac_tr_decl 0
10383 _ACEOF
10387 done
10390 for ac_func in getrlimit setrlimit getrusage
10392 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10394 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10395 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10396 $as_echo_n "(cached) " >&6
10397 else
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10400 #undef $ac_tr_decl
10401 #define $ac_tr_decl 1
10403 #include "ansidecl.h"
10404 #include "system.h"
10405 #ifdef HAVE_SYS_RESOURCE_H
10406 #include <sys/resource.h>
10407 #endif
10411 main ()
10413 #ifndef $ac_func
10414 char *(*pfn) = (char *(*)) $ac_func ;
10415 #endif
10417 return 0;
10419 _ACEOF
10420 if ac_fn_c_try_compile "$LINENO"; then :
10421 eval "gcc_cv_have_decl_$ac_func=yes"
10422 else
10423 eval "gcc_cv_have_decl_$ac_func=no"
10425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10428 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10430 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10431 #define $ac_tr_decl 1
10432 _ACEOF
10434 else
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10437 #define $ac_tr_decl 0
10438 _ACEOF
10442 done
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10448 #include "ansidecl.h"
10449 #include "system.h"
10450 #ifdef HAVE_SYS_RESOURCE_H
10451 #include <sys/resource.h>
10452 #endif
10455 main ()
10457 rlim_t l = 0;
10459 return 0;
10461 _ACEOF
10462 if ac_fn_c_try_compile "$LINENO"; then :
10464 else
10466 $as_echo "#define rlim_t long" >>confdefs.h
10469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10471 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10472 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10473 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10474 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10475 for ac_func in ldgetname
10477 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10479 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10480 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10481 $as_echo_n "(cached) " >&6
10482 else
10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484 /* end confdefs.h. */
10485 #undef $ac_tr_decl
10486 #define $ac_tr_decl 1
10488 #include "ansidecl.h"
10489 #include "system.h"
10490 #ifdef HAVE_LDFCN_H
10491 #undef FREAD
10492 #undef FWRITE
10493 #include <ldfcn.h>
10494 #endif
10498 main ()
10500 #ifndef $ac_func
10501 char *(*pfn) = (char *(*)) $ac_func ;
10502 #endif
10504 return 0;
10506 _ACEOF
10507 if ac_fn_c_try_compile "$LINENO"; then :
10508 eval "gcc_cv_have_decl_$ac_func=yes"
10509 else
10510 eval "gcc_cv_have_decl_$ac_func=no"
10512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10515 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10517 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10518 #define $ac_tr_decl 1
10519 _ACEOF
10521 else
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10524 #define $ac_tr_decl 0
10525 _ACEOF
10529 done
10532 for ac_func in times
10534 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10536 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10537 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10542 #undef $ac_tr_decl
10543 #define $ac_tr_decl 1
10545 #include "ansidecl.h"
10546 #include "system.h"
10547 #ifdef HAVE_SYS_TIMES_H
10548 #include <sys/times.h>
10549 #endif
10553 main ()
10555 #ifndef $ac_func
10556 char *(*pfn) = (char *(*)) $ac_func ;
10557 #endif
10559 return 0;
10561 _ACEOF
10562 if ac_fn_c_try_compile "$LINENO"; then :
10563 eval "gcc_cv_have_decl_$ac_func=yes"
10564 else
10565 eval "gcc_cv_have_decl_$ac_func=no"
10567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10573 #define $ac_tr_decl 1
10574 _ACEOF
10576 else
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10579 #define $ac_tr_decl 0
10580 _ACEOF
10584 done
10587 for ac_func in sigaltstack
10589 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10591 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10592 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 #undef $ac_tr_decl
10598 #define $ac_tr_decl 1
10600 #include "ansidecl.h"
10601 #include "system.h"
10602 #include <signal.h>
10606 main ()
10608 #ifndef $ac_func
10609 char *(*pfn) = (char *(*)) $ac_func ;
10610 #endif
10612 return 0;
10614 _ACEOF
10615 if ac_fn_c_try_compile "$LINENO"; then :
10616 eval "gcc_cv_have_decl_$ac_func=yes"
10617 else
10618 eval "gcc_cv_have_decl_$ac_func=no"
10620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10623 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10625 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10626 #define $ac_tr_decl 1
10627 _ACEOF
10629 else
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10632 #define $ac_tr_decl 0
10633 _ACEOF
10637 done
10640 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10641 # prototype.
10642 ac_ext=cpp
10643 ac_cpp='$CXXCPP $CPPFLAGS'
10644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10648 for ac_func in madvise
10650 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10652 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10653 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10654 $as_echo_n "(cached) " >&6
10655 else
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10658 #undef $ac_tr_decl
10659 #define $ac_tr_decl 1
10661 #include "ansidecl.h"
10662 #include "system.h"
10666 main ()
10668 #ifndef $ac_func
10669 char *(*pfn) = (char *(*)) $ac_func ;
10670 #endif
10672 return 0;
10674 _ACEOF
10675 if ac_fn_cxx_try_compile "$LINENO"; then :
10676 eval "gcc_cv_have_decl_$ac_func=yes"
10677 else
10678 eval "gcc_cv_have_decl_$ac_func=no"
10680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10685 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10686 #define $ac_tr_decl 1
10687 _ACEOF
10689 else
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10692 #define $ac_tr_decl 0
10693 _ACEOF
10697 done
10699 ac_ext=c
10700 ac_cpp='$CPP $CPPFLAGS'
10701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10706 # More time-related stuff.
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10708 $as_echo_n "checking for struct tms... " >&6; }
10709 if test "${ac_cv_struct_tms+set}" = set; then :
10710 $as_echo_n "(cached) " >&6
10711 else
10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10716 #include "ansidecl.h"
10717 #include "system.h"
10718 #ifdef HAVE_SYS_TIMES_H
10719 #include <sys/times.h>
10720 #endif
10723 main ()
10725 struct tms tms;
10727 return 0;
10729 _ACEOF
10730 if ac_fn_c_try_compile "$LINENO"; then :
10731 ac_cv_struct_tms=yes
10732 else
10733 ac_cv_struct_tms=no
10735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10738 $as_echo "$ac_cv_struct_tms" >&6; }
10739 if test $ac_cv_struct_tms = yes; then
10741 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10745 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10746 # revisit after autoconf 2.50.
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10748 $as_echo_n "checking for clock_t... " >&6; }
10749 if test "${gcc_cv_type_clock_t+set}" = set; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10756 #include "ansidecl.h"
10757 #include "system.h"
10760 main ()
10762 clock_t x;
10764 return 0;
10766 _ACEOF
10767 if ac_fn_c_try_compile "$LINENO"; then :
10768 gcc_cv_type_clock_t=yes
10769 else
10770 gcc_cv_type_clock_t=no
10772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10775 $as_echo "$gcc_cv_type_clock_t" >&6; }
10776 if test $gcc_cv_type_clock_t = yes; then
10778 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10782 # Check if F_SETLKW is supported by fcntl.
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10784 $as_echo_n "checking for F_SETLKW... " >&6; }
10785 if test "${ac_cv_f_setlkw+set}" = set; then :
10786 $as_echo_n "(cached) " >&6
10787 else
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10792 #include <fcntl.h>
10794 main ()
10797 struct flock fl;
10798 fl.l_whence = 0;
10799 fl.l_start = 0;
10800 fl.l_len = 0;
10801 fl.l_pid = 0;
10802 return fcntl (1, F_SETLKW, &fl);
10804 return 0;
10806 _ACEOF
10807 if ac_fn_c_try_compile "$LINENO"; then :
10808 ac_cv_f_setlkw=yes
10809 else
10810 ac_cv_f_setlkw=no
10812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10815 $as_echo "$ac_cv_f_setlkw" >&6; }
10816 if test $ac_cv_f_setlkw = yes; then
10818 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10822 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10823 CFLAGS="$saved_CFLAGS"
10824 CXXFLAGS="$saved_CXXFLAGS"
10826 # mkdir takes a single argument on some systems.
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10828 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10829 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10830 $as_echo_n "(cached) " >&6
10831 else
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10835 #include <sys/types.h>
10836 #ifdef HAVE_SYS_STAT_H
10837 # include <sys/stat.h>
10838 #endif
10839 #ifdef HAVE_UNISTD_H
10840 # include <unistd.h>
10841 #endif
10842 #ifdef HAVE_DIRECT_H
10843 # include <direct.h>
10844 #endif
10846 main ()
10848 mkdir ("foo", 0);
10850 return 0;
10852 _ACEOF
10853 if ac_fn_c_try_compile "$LINENO"; then :
10854 gcc_cv_mkdir_takes_one_arg=no
10855 else
10856 gcc_cv_mkdir_takes_one_arg=yes
10858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10861 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10862 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10864 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10869 # File extensions
10870 manext='.1'
10871 objext='.o'
10875 # With Setjmp/Longjmp based exception handling.
10876 # Check whether --enable-sjlj-exceptions was given.
10877 if test "${enable_sjlj_exceptions+set}" = set; then :
10878 enableval=$enable_sjlj_exceptions; case $target in
10879 *-*-hpux10*)
10880 if test $enableval != yes; then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10882 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10883 enableval=yes
10886 esac
10887 force_sjlj_exceptions=yes
10888 else
10889 case $target in
10890 *-*-hpux10*)
10891 force_sjlj_exceptions=yes
10892 enableval=yes
10895 force_sjlj_exceptions=no
10897 esac
10900 if test $force_sjlj_exceptions = yes; then
10901 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10903 cat >>confdefs.h <<_ACEOF
10904 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10905 _ACEOF
10909 # --------------------------------------------------------
10910 # Build, host, and target specific configuration fragments
10911 # --------------------------------------------------------
10913 # Collect build-machine-specific information.
10914 . ${srcdir}/config.build
10916 # Collect host-machine-specific information.
10917 . ${srcdir}/config.host
10919 target_gtfiles=
10921 # Collect target-machine-specific information.
10922 . ${srcdir}/config.gcc
10924 extra_objs="${host_extra_objs} ${extra_objs}"
10925 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10927 # Default the target-machine variables that were not explicitly set.
10928 if test x"$tm_file" = x
10929 then tm_file=$cpu_type/$cpu_type.h; fi
10931 if test x"$extra_headers" = x
10932 then extra_headers=; fi
10934 if test x$md_file = x
10935 then md_file=$cpu_type/$cpu_type.md; fi
10937 if test x$out_file = x
10938 then out_file=$cpu_type/$cpu_type.c; fi
10940 if test x"$tmake_file" = x
10941 then tmake_file=$cpu_type/t-$cpu_type
10944 # Support --enable-initfini-array.
10945 if test x$enable_initfini_array != xno; then
10946 tm_file="${tm_file} initfini-array.h"
10949 if test x"$dwarf2" = xyes
10950 then tm_file="$tm_file tm-dwarf2.h"
10953 # Say what files are being used for the output code and MD file.
10954 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10955 echo "Using \`$srcdir/config/$md_file' as machine description file."
10957 # If any of the xm_file variables contain nonexistent files, warn
10958 # about them and drop them.
10961 for x in $build_xm_file; do
10962 if test -f $srcdir/config/$x
10963 then bx="$bx $x"
10964 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10965 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10967 done
10968 build_xm_file="$bx"
10971 for x in $host_xm_file; do
10972 if test -f $srcdir/config/$x
10973 then hx="$hx $x"
10974 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10975 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10977 done
10978 host_xm_file="$hx"
10981 for x in $xm_file; do
10982 if test -f $srcdir/config/$x
10983 then tx="$tx $x"
10984 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10985 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10987 done
10988 xm_file="$tx"
10990 count=a
10991 for f in $tm_file; do
10992 count=${count}x
10993 done
10994 if test $count = ax; then
10995 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10996 else
10997 echo "Using the following target machine macro files:"
10998 for f in $tm_file; do
10999 echo " $srcdir/config/$f"
11000 done
11003 if test x$need_64bit_hwint = xyes; then
11005 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11009 if test x$use_long_long_for_widest_fast_int = xyes; then
11011 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11015 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11017 cat >>confdefs.h <<_ACEOF
11018 #define HAVE_GNU_LD $gnu_ld_bool
11019 _ACEOF
11022 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11024 cat >>confdefs.h <<_ACEOF
11025 #define HAVE_GNU_AS $gnu_as_bool
11026 _ACEOF
11029 count=a
11030 for f in $host_xm_file; do
11031 count=${count}x
11032 done
11033 if test $count = a; then
11035 elif test $count = ax; then
11036 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11037 else
11038 echo "Using the following host machine macro files:"
11039 for f in $host_xm_file; do
11040 echo " $srcdir/config/$f"
11041 done
11043 echo "Using ${out_host_hook_obj} for host machine hooks."
11045 if test "$host_xm_file" != "$build_xm_file"; then
11046 count=a
11047 for f in $build_xm_file; do
11048 count=${count}x
11049 done
11050 if test $count = a; then
11052 elif test $count = ax; then
11053 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11054 else
11055 echo "Using the following build machine macro files:"
11056 for f in $build_xm_file; do
11057 echo " $srcdir/config/$f"
11058 done
11062 if test -n "$configured_native_system_header_dir"; then
11063 native_system_header_dir=$configured_native_system_header_dir
11065 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11068 case ${host} in
11069 powerpc*-*-darwin*)
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11071 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11072 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h. */
11078 #include <sys/cdefs.h>
11079 #include <sys/signal.h>
11080 #include <ucontext.h>
11081 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11083 _ACEOF
11084 if ac_fn_c_try_compile "$LINENO"; then :
11085 gcc_cv_mcontext_underscores=no
11086 else
11087 gcc_cv_mcontext_underscores=yes
11089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11092 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11093 if test $gcc_cv_mcontext_underscores = yes; then
11095 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11099 esac
11101 # ---------
11102 # Threading
11103 # ---------
11105 # Check if a valid thread package
11106 case ${enable_threads} in
11107 "" | no)
11108 # No threads
11109 target_thread_file='single'
11111 yes)
11112 # default
11113 target_thread_file='single'
11115 aix | dce | lynx | mipssde | posix | rtems | \
11116 single | tpf | vxworks | win32)
11117 target_thread_file=${enable_threads}
11120 echo "${enable_threads} is an unknown thread package" 1>&2
11121 exit 1
11123 esac
11125 if test x${thread_file} = x; then
11126 # No thread file set by target-specific clauses in config.gcc,
11127 # so use file chosen by default logic above
11128 thread_file=${target_thread_file}
11131 # --------
11132 # UNSORTED
11133 # --------
11135 use_cxa_atexit=no
11136 if test x$enable___cxa_atexit = xyes || \
11137 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11138 if test x$host = x$target; then
11139 case $host in
11140 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11141 # keyed to flag_use_cxa_atexit
11142 *-*-mingw32*)
11143 use_cxa_atexit=yes
11145 powerpc-ibm-aix*)
11146 use_cxa_atexit=yes
11149 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11150 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11151 use_cxa_atexit=yes
11152 else
11153 echo "__cxa_atexit can't be enabled on this target"
11157 esac
11158 else
11159 # We can't check for __cxa_atexit when building a cross, so assume
11160 # it is available
11161 use_cxa_atexit=yes
11163 if test x$use_cxa_atexit = xyes; then
11165 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11170 # Look for a file containing extra machine modes.
11171 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11172 extra_modes_file='$(srcdir)'/config/${extra_modes}
11175 cat >>confdefs.h <<_ACEOF
11176 #define EXTRA_MODES_FILE "config/$extra_modes"
11177 _ACEOF
11181 # Convert extra_options into a form suitable for Makefile use.
11182 extra_opt_files=
11183 all_opt_files=
11184 for f in $extra_options; do
11185 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11186 all_opt_files="$all_opt_files $srcdir/config/$f"
11187 done
11190 # auto-host.h is the file containing items generated by autoconf and is
11191 # the first file included by config.h.
11192 # If host=build, it is correct to have bconfig include auto-host.h
11193 # as well. If host!=build, we are in error and need to do more
11194 # work to find out the build config parameters.
11195 if test x$host = x$build
11196 then
11197 build_auto=auto-host.h
11198 else
11199 # We create a subdir, then run autoconf in the subdir.
11200 # To prevent recursion we set host and build for the new
11201 # invocation of configure to the build for this invocation
11202 # of configure.
11203 tempdir=build.$$
11204 rm -rf $tempdir
11205 mkdir $tempdir
11206 cd $tempdir
11207 case ${srcdir} in
11208 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11209 *) realsrcdir=../${srcdir};;
11210 esac
11211 saved_CFLAGS="${CFLAGS}"
11212 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11213 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11214 ${realsrcdir}/configure \
11215 --enable-languages=${enable_languages-all} \
11216 --target=$target_alias --host=$build_alias --build=$build_alias
11217 CFLAGS="${saved_CFLAGS}"
11219 # We just finished tests for the build machine, so rename
11220 # the file auto-build.h in the gcc directory.
11221 mv auto-host.h ../auto-build.h
11222 cd ..
11223 rm -rf $tempdir
11224 build_auto=auto-build.h
11228 tm_file="${tm_file} defaults.h"
11229 tm_p_file="${tm_p_file} tm-preds.h"
11230 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11231 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11232 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11233 # put this back in temporarily.
11234 xm_file="auto-host.h ansidecl.h ${xm_file}"
11236 # --------
11237 # UNSORTED
11238 # --------
11240 # Compile in configure arguments.
11241 if test -f configargs.h ; then
11242 # Being re-configured.
11243 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11244 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11245 else
11246 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11249 # Double all backslashes and backslash all quotes to turn
11250 # gcc_config_arguments into a C string.
11251 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11252 $gcc_config_arguments
11254 gcc_config_arguments_str=`cat conftest.out`
11255 rm -f conftest.out
11257 cat > configargs.h <<EOF
11258 /* Generated automatically. */
11259 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11260 static const char thread_model[] = "$thread_file";
11262 static const struct {
11263 const char *name, *value;
11264 } configure_default_options[] = $configure_default_options;
11267 gcc_BASEVER=`cat $srcdir/BASE-VER`
11268 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11269 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11270 if test -f $srcdir/REVISION ; then
11271 gcc_REVISION=`cat $srcdir/REVISION`
11272 else
11273 gcc_REVISION=""
11275 cat > plugin-version.h <<EOF
11276 #include "configargs.h"
11278 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11279 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11280 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11281 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11283 static char basever[] = "$gcc_BASEVER";
11284 static char datestamp[] = "$gcc_DATESTAMP";
11285 static char devphase[] = "$gcc_DEVPHASE";
11286 static char revision[] = "$gcc_REVISION";
11288 /* FIXME plugins: We should make the version information more precise.
11289 One way to do is to add a checksum. */
11291 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11292 devphase, revision,
11293 configuration_arguments};
11296 # Internationalization
11297 # If we haven't got the data from the intl directory,
11298 # assume NLS is disabled.
11299 USE_NLS=no
11300 LIBINTL=
11301 LIBINTL_DEP=
11302 INCINTL=
11303 XGETTEXT=
11304 GMSGFMT=
11305 POSUB=
11307 if test -f ../intl/config.intl; then
11308 . ../intl/config.intl
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11311 $as_echo_n "checking whether NLS is requested... " >&6; }
11312 if test x"$USE_NLS" != xyes; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 $as_echo "no" >&6; }
11315 else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11317 $as_echo "yes" >&6; }
11319 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11323 $as_echo_n "checking for catalogs to be installed... " >&6; }
11324 # Look for .po and .gmo files in the source directory.
11325 CATALOGS=
11326 XLINGUAS=
11327 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11328 # If there aren't any .gmo files the shell will give us the
11329 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11330 # weeded out.
11331 case "$cat" in *\**)
11332 continue;;
11333 esac
11334 # The quadruple backslash is collapsed to a double backslash
11335 # by the backticks, then collapsed again by the double quotes,
11336 # leaving us with one backslash in the sed expression (right
11337 # before the dot that mustn't act as a wildcard).
11338 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11339 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11340 # The user is allowed to set LINGUAS to a list of languages to
11341 # install catalogs for. If it's empty that means "all of them."
11342 if test "x$LINGUAS" = x; then
11343 CATALOGS="$CATALOGS $cat"
11344 XLINGUAS="$XLINGUAS $lang"
11345 else
11346 case "$LINGUAS" in *$lang*)
11347 CATALOGS="$CATALOGS $cat"
11348 XLINGUAS="$XLINGUAS $lang"
11350 esac
11352 done
11353 LINGUAS="$XLINGUAS"
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11355 $as_echo "$LINGUAS" >&6; }
11358 DATADIRNAME=share
11360 INSTOBJEXT=.mo
11362 GENCAT=gencat
11364 CATOBJEXT=.gmo
11368 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11369 # -liconv on the link line twice.
11370 case "$LIBINTL" in *$LIBICONV*)
11371 LIBICONV= ;;
11372 esac
11374 # Check whether --enable-secureplt was given.
11375 if test "${enable_secureplt+set}" = set; then :
11376 enableval=$enable_secureplt;
11380 # Check whether --enable-leading-mingw64-underscores was given.
11381 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11382 enableval=$enable_leading_mingw64_underscores;
11385 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11387 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11391 # Check whether --enable-cld was given.
11392 if test "${enable_cld+set}" = set; then :
11393 enableval=$enable_cld;
11394 else
11395 enable_cld=no
11399 # Check whether --enable-frame-pointer was given.
11400 if test "${enable_frame_pointer+set}" = set; then :
11401 enableval=$enable_frame_pointer;
11402 else
11404 case $target_os in
11405 linux* | darwin[8912]*)
11406 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11407 # DWARF2.
11408 enable_frame_pointer=no
11411 enable_frame_pointer=yes
11413 esac
11418 # Windows32 Registry support for specifying GCC installation paths.
11419 # Check whether --enable-win32-registry was given.
11420 if test "${enable_win32_registry+set}" = set; then :
11421 enableval=$enable_win32_registry;
11425 case $host_os in
11426 win32 | pe | cygwin* | mingw32* | uwin*)
11427 if test "x$enable_win32_registry" != xno; then
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11429 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11430 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11431 $as_echo_n "(cached) " >&6
11432 else
11433 ac_func_search_save_LIBS=$LIBS
11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435 /* end confdefs.h. */
11437 /* Override any GCC internal prototype to avoid an error.
11438 Use char because int might match the return type of a GCC
11439 builtin and then its argument prototype would still apply. */
11440 #ifdef __cplusplus
11441 extern "C"
11442 #endif
11443 char RegOpenKeyExA ();
11445 main ()
11447 return RegOpenKeyExA ();
11449 return 0;
11451 _ACEOF
11452 for ac_lib in '' advapi32; do
11453 if test -z "$ac_lib"; then
11454 ac_res="none required"
11455 else
11456 ac_res=-l$ac_lib
11457 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11459 if ac_fn_c_try_link "$LINENO"; then :
11460 ac_cv_search_RegOpenKeyExA=$ac_res
11462 rm -f core conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext
11464 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11465 break
11467 done
11468 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11470 else
11471 ac_cv_search_RegOpenKeyExA=no
11473 rm conftest.$ac_ext
11474 LIBS=$ac_func_search_save_LIBS
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11477 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11478 ac_res=$ac_cv_search_RegOpenKeyExA
11479 if test "$ac_res" != no; then :
11480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11482 else
11483 enable_win32_registry=no
11488 if test "x$enable_win32_registry" != xno; then
11490 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11493 if test "x$enable_win32_registry" != xyes \
11494 && test "x$enable_win32_registry" != x; then
11496 cat >>confdefs.h <<_ACEOF
11497 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11498 _ACEOF
11503 esac
11505 # Get an absolute path to the GCC top-level source directory
11506 holddir=`${PWDCMD-pwd}`
11507 cd $srcdir
11508 topdir=`${PWDCMD-pwd}`
11509 cd $holddir
11511 # Conditionalize the makefile for this host machine.
11512 xmake_file=
11513 for f in ${host_xmake_file}
11515 if test -f ${srcdir}/config/$f
11516 then
11517 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11519 done
11521 # Conditionalize the makefile for this target machine.
11522 tmake_file_=
11523 for f in ${tmake_file}
11525 if test -f ${srcdir}/config/$f
11526 then
11527 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11529 done
11530 tmake_file="${tmake_file_}"
11532 out_object_file=`basename $out_file .c`.o
11533 common_out_object_file=`basename $common_out_file .c`.o
11535 tm_file_list="options.h"
11536 tm_include_list="options.h insn-constants.h"
11537 for f in $tm_file; do
11538 case $f in
11539 ./* )
11540 f=`echo $f | sed 's/^..//'`
11541 tm_file_list="${tm_file_list} $f"
11542 tm_include_list="${tm_include_list} $f"
11544 defaults.h )
11545 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11546 tm_include_list="${tm_include_list} $f"
11549 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11550 tm_include_list="${tm_include_list} config/$f"
11552 esac
11553 done
11555 tm_p_file_list=
11556 tm_p_include_list=
11557 for f in $tm_p_file; do
11558 case $f in
11559 tm-preds.h )
11560 tm_p_file_list="${tm_p_file_list} $f"
11561 tm_p_include_list="${tm_p_include_list} $f"
11564 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11565 tm_p_include_list="${tm_p_include_list} config/$f"
11566 esac
11567 done
11569 xm_file_list=
11570 xm_include_list=
11571 for f in $xm_file; do
11572 case $f in
11573 ansidecl.h )
11574 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11575 xm_include_list="${xm_include_list} $f"
11577 auto-host.h )
11578 xm_file_list="${xm_file_list} $f"
11579 xm_include_list="${xm_include_list} $f"
11582 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11583 xm_include_list="${xm_include_list} config/$f"
11585 esac
11586 done
11588 host_xm_file_list=
11589 host_xm_include_list=
11590 for f in $host_xm_file; do
11591 case $f in
11592 ansidecl.h )
11593 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11594 host_xm_include_list="${host_xm_include_list} $f"
11596 auto-host.h )
11597 host_xm_file_list="${host_xm_file_list} $f"
11598 host_xm_include_list="${host_xm_include_list} $f"
11601 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11602 host_xm_include_list="${host_xm_include_list} config/$f"
11604 esac
11605 done
11607 build_xm_file_list=
11608 for f in $build_xm_file; do
11609 case $f in
11610 ansidecl.h )
11611 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11612 build_xm_include_list="${build_xm_include_list} $f"
11614 auto-build.h | auto-host.h )
11615 build_xm_file_list="${build_xm_file_list} $f"
11616 build_xm_include_list="${build_xm_include_list} $f"
11619 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11620 build_xm_include_list="${build_xm_include_list} config/$f"
11622 esac
11623 done
11625 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11626 # cross-compiler which does not use the native headers and libraries.
11627 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11628 CROSS=
11629 ALL=all.internal
11630 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11632 if test "x$with_build_sysroot" != x; then
11633 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11634 else
11635 # This value is used, even on a native system, because
11636 # CROSS_SYSTEM_HEADER_DIR is just
11637 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11638 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11641 if test x$host != x$target
11642 then
11643 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11644 ALL=all.cross
11645 SYSTEM_HEADER_DIR=$build_system_header_dir
11646 case "$host","$target" in
11647 # Darwin crosses can use the host system's libraries and headers,
11648 # because of the fat library support. Of course, it must be the
11649 # same version of Darwin on both sides. Allow the user to
11650 # just say --target=foo-darwin without a version number to mean
11651 # "the version on this system".
11652 *-*-darwin*,*-*-darwin*)
11653 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11654 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11655 if test $hostos = $targetos -o $targetos = darwin ; then
11656 CROSS=
11657 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11658 with_headers=yes
11662 i?86-*-*,x86_64-*-* \
11663 | powerpc*-*-*,powerpc64*-*-*)
11664 CROSS="$CROSS -DNATIVE_CROSS" ;;
11665 esac
11667 case $target in
11668 *-*-mingw*)
11669 if test "x$with_headers" = x; then
11670 with_headers=yes
11675 esac
11676 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11677 SYSTEM_HEADER_DIR=$build_system_header_dir
11680 # If this is a cross-compiler that does not
11681 # have its own set of headers then define
11682 # inhibit_libc
11684 # If this is using newlib, without having the headers available now,
11685 # then define inhibit_libc in LIBGCC2_CFLAGS.
11686 # This prevents libgcc2 from containing any code which requires libc
11687 # support.
11688 : ${inhibit_libc=false}
11689 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11690 test x$with_newlib = xyes ; } &&
11691 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11692 inhibit_libc=true
11696 # When building gcc with a cross-compiler, we need to adjust things so
11697 # that the generator programs are still built with the native compiler.
11698 # Also, we cannot run fixincludes.
11700 # These are the normal (build=host) settings:
11701 CC_FOR_BUILD='$(CC)'
11702 CXX_FOR_BUILD='$(CXX)'
11703 BUILD_CFLAGS='$(ALL_CFLAGS)'
11704 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11705 BUILD_LDFLAGS='$(LDFLAGS)'
11706 STMP_FIXINC=stmp-fixinc
11708 # And these apply if build != host, or we are generating coverage data
11709 if test x$build != x$host || test "x$coverage_flags" != x
11710 then
11711 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11712 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11715 # Expand extra_headers to include complete path.
11716 # This substitutes for lots of t-* files.
11717 extra_headers_list=
11718 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11719 for file in ${extra_headers} ; do
11720 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11721 done
11723 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11724 if test x"$use_gcc_tgmath" = xyes
11725 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11728 # Define collect2 in Makefile.
11729 case $host_can_use_collect2 in
11730 no) collect2= ;;
11731 *) collect2='collect2$(exeext)' ;;
11732 esac
11735 # Add a definition of USE_COLLECT2 if system wants one.
11736 case $use_collect2 in
11737 no) use_collect2= ;;
11738 "") ;;
11740 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11741 xm_defines="${xm_defines} USE_COLLECT2"
11742 case $host_can_use_collect2 in
11744 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11746 esac
11748 esac
11751 cat >>confdefs.h <<_ACEOF
11752 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11753 _ACEOF
11756 # ---------------------------
11757 # Assembler & linker features
11758 # ---------------------------
11760 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11761 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11762 # However when ld-new is first executed from the build tree, libtool will
11763 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11764 # to the build tree. While doing this we need to use the previous-stage
11765 # linker, or we have an infinite loop. The presence of a shell script as
11766 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11767 # the gcc/collect-ld script. So we need to know how libtool works, or
11768 # exec-tool will fail.
11771 case `pwd` in
11772 *\ * | *\ *)
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11774 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11775 esac
11779 macro_version='2.2.7a'
11780 macro_revision='1.3134'
11794 ltmain="$ac_aux_dir/ltmain.sh"
11796 # Backslashify metacharacters that are still active within
11797 # double-quoted strings.
11798 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11800 # Same as above, but do not quote variable references.
11801 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11803 # Sed substitution to delay expansion of an escaped shell variable in a
11804 # double_quote_subst'ed string.
11805 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11807 # Sed substitution to delay expansion of an escaped single quote.
11808 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11810 # Sed substitution to avoid accidental globbing in evaled expressions
11811 no_glob_subst='s/\*/\\\*/g'
11813 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11814 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11815 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11818 $as_echo_n "checking how to print strings... " >&6; }
11819 # Test print first, because it will be a builtin if present.
11820 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11821 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11822 ECHO='print -r --'
11823 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11824 ECHO='printf %s\n'
11825 else
11826 # Use this function as a fallback that always works.
11827 func_fallback_echo ()
11829 eval 'cat <<_LTECHO_EOF
11831 _LTECHO_EOF'
11833 ECHO='func_fallback_echo'
11836 # func_echo_all arg...
11837 # Invoke $ECHO with all args, space-separated.
11838 func_echo_all ()
11840 $ECHO ""
11843 case "$ECHO" in
11844 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11845 $as_echo "printf" >&6; } ;;
11846 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11847 $as_echo "print -r" >&6; } ;;
11848 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11849 $as_echo "cat" >&6; } ;;
11850 esac
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11866 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11867 if test "${ac_cv_path_SED+set}" = set; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11871 for ac_i in 1 2 3 4 5 6 7; do
11872 ac_script="$ac_script$as_nl$ac_script"
11873 done
11874 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11875 { ac_script=; unset ac_script;}
11876 if test -z "$SED"; then
11877 ac_path_SED_found=false
11878 # Loop through the user's path and test for each of PROGNAME-LIST
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11882 IFS=$as_save_IFS
11883 test -z "$as_dir" && as_dir=.
11884 for ac_prog in sed gsed; do
11885 for ac_exec_ext in '' $ac_executable_extensions; do
11886 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11887 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11888 # Check for GNU ac_path_SED and select it if it is found.
11889 # Check for GNU $ac_path_SED
11890 case `"$ac_path_SED" --version 2>&1` in
11891 *GNU*)
11892 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11894 ac_count=0
11895 $as_echo_n 0123456789 >"conftest.in"
11896 while :
11898 cat "conftest.in" "conftest.in" >"conftest.tmp"
11899 mv "conftest.tmp" "conftest.in"
11900 cp "conftest.in" "conftest.nl"
11901 $as_echo '' >> "conftest.nl"
11902 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11904 as_fn_arith $ac_count + 1 && ac_count=$as_val
11905 if test $ac_count -gt ${ac_path_SED_max-0}; then
11906 # Best one so far, save it but keep looking for a better one
11907 ac_cv_path_SED="$ac_path_SED"
11908 ac_path_SED_max=$ac_count
11910 # 10*(2^10) chars as input seems more than enough
11911 test $ac_count -gt 10 && break
11912 done
11913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11914 esac
11916 $ac_path_SED_found && break 3
11917 done
11918 done
11919 done
11920 IFS=$as_save_IFS
11921 if test -z "$ac_cv_path_SED"; then
11922 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11924 else
11925 ac_cv_path_SED=$SED
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11930 $as_echo "$ac_cv_path_SED" >&6; }
11931 SED="$ac_cv_path_SED"
11932 rm -f conftest.sed
11934 test -z "$SED" && SED=sed
11935 Xsed="$SED -e 1s/^X//"
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11948 $as_echo_n "checking for fgrep... " >&6; }
11949 if test "${ac_cv_path_FGREP+set}" = set; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11953 then ac_cv_path_FGREP="$GREP -F"
11954 else
11955 if test -z "$FGREP"; then
11956 ac_path_FGREP_found=false
11957 # Loop through the user's path and test for each of PROGNAME-LIST
11958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11961 IFS=$as_save_IFS
11962 test -z "$as_dir" && as_dir=.
11963 for ac_prog in fgrep; do
11964 for ac_exec_ext in '' $ac_executable_extensions; do
11965 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11966 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11967 # Check for GNU ac_path_FGREP and select it if it is found.
11968 # Check for GNU $ac_path_FGREP
11969 case `"$ac_path_FGREP" --version 2>&1` in
11970 *GNU*)
11971 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11973 ac_count=0
11974 $as_echo_n 0123456789 >"conftest.in"
11975 while :
11977 cat "conftest.in" "conftest.in" >"conftest.tmp"
11978 mv "conftest.tmp" "conftest.in"
11979 cp "conftest.in" "conftest.nl"
11980 $as_echo 'FGREP' >> "conftest.nl"
11981 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11983 as_fn_arith $ac_count + 1 && ac_count=$as_val
11984 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11985 # Best one so far, save it but keep looking for a better one
11986 ac_cv_path_FGREP="$ac_path_FGREP"
11987 ac_path_FGREP_max=$ac_count
11989 # 10*(2^10) chars as input seems more than enough
11990 test $ac_count -gt 10 && break
11991 done
11992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11993 esac
11995 $ac_path_FGREP_found && break 3
11996 done
11997 done
11998 done
11999 IFS=$as_save_IFS
12000 if test -z "$ac_cv_path_FGREP"; then
12001 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12003 else
12004 ac_cv_path_FGREP=$FGREP
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12010 $as_echo "$ac_cv_path_FGREP" >&6; }
12011 FGREP="$ac_cv_path_FGREP"
12014 test -z "$GREP" && GREP=grep
12034 # Check whether --with-gnu-ld was given.
12035 if test "${with_gnu_ld+set}" = set; then :
12036 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12037 else
12038 with_gnu_ld=no
12041 ac_prog=ld
12042 if test "$GCC" = yes; then
12043 # Check if gcc -print-prog-name=ld gives a path.
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12045 $as_echo_n "checking for ld used by $CC... " >&6; }
12046 case $host in
12047 *-*-mingw*)
12048 # gcc leaves a trailing carriage return which upsets mingw
12049 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12051 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12052 esac
12053 case $ac_prog in
12054 # Accept absolute paths.
12055 [\\/]* | ?:[\\/]*)
12056 re_direlt='/[^/][^/]*/\.\./'
12057 # Canonicalize the pathname of ld
12058 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12059 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12060 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12061 done
12062 test -z "$LD" && LD="$ac_prog"
12065 # If it fails, then pretend we aren't using GCC.
12066 ac_prog=ld
12069 # If it is relative, then search for the first ld in PATH.
12070 with_gnu_ld=unknown
12072 esac
12073 elif test "$with_gnu_ld" = yes; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12075 $as_echo_n "checking for GNU ld... " >&6; }
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12078 $as_echo_n "checking for non-GNU ld... " >&6; }
12080 if test "${lt_cv_path_LD+set}" = set; then :
12081 $as_echo_n "(cached) " >&6
12082 else
12083 if test -z "$LD"; then
12084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12085 for ac_dir in $PATH; do
12086 IFS="$lt_save_ifs"
12087 test -z "$ac_dir" && ac_dir=.
12088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12089 lt_cv_path_LD="$ac_dir/$ac_prog"
12090 # Check to see if the program is GNU ld. I'd rather use --version,
12091 # but apparently some variants of GNU ld only accept -v.
12092 # Break only if it was the GNU/non-GNU ld that we prefer.
12093 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12094 *GNU* | *'with BFD'*)
12095 test "$with_gnu_ld" != no && break
12098 test "$with_gnu_ld" != yes && break
12100 esac
12102 done
12103 IFS="$lt_save_ifs"
12104 else
12105 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12109 LD="$lt_cv_path_LD"
12110 if test -n "$LD"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12112 $as_echo "$LD" >&6; }
12113 else
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12117 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12120 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12124 case `$LD -v 2>&1 </dev/null` in
12125 *GNU* | *'with BFD'*)
12126 lt_cv_prog_gnu_ld=yes
12129 lt_cv_prog_gnu_ld=no
12131 esac
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12134 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12135 with_gnu_ld=$lt_cv_prog_gnu_ld
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12146 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12147 if test "${lt_cv_path_NM+set}" = set; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 if test -n "$NM"; then
12151 # Let the user override the test.
12152 lt_cv_path_NM="$NM"
12153 else
12154 lt_nm_to_check="${ac_tool_prefix}nm"
12155 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12156 lt_nm_to_check="$lt_nm_to_check nm"
12158 for lt_tmp_nm in $lt_nm_to_check; do
12159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12160 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12161 IFS="$lt_save_ifs"
12162 test -z "$ac_dir" && ac_dir=.
12163 tmp_nm="$ac_dir/$lt_tmp_nm"
12164 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12165 # Check to see if the nm accepts a BSD-compat flag.
12166 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12167 # nm: unknown option "B" ignored
12168 # Tru64's nm complains that /dev/null is an invalid object file
12169 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12170 */dev/null* | *'Invalid file or object type'*)
12171 lt_cv_path_NM="$tmp_nm -B"
12172 break
12175 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12176 */dev/null*)
12177 lt_cv_path_NM="$tmp_nm -p"
12178 break
12181 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12182 continue # so that we can try to find one that supports BSD flags
12184 esac
12186 esac
12188 done
12189 IFS="$lt_save_ifs"
12190 done
12191 : ${lt_cv_path_NM=no}
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12195 $as_echo "$lt_cv_path_NM" >&6; }
12196 if test "$lt_cv_path_NM" != "no"; then
12197 NM="$lt_cv_path_NM"
12198 else
12199 # Didn't find any BSD compatible name lister, look for dumpbin.
12200 if test -n "$DUMPBIN"; then :
12201 # Let the user override the test.
12202 else
12203 if test -n "$ac_tool_prefix"; then
12204 for ac_prog in dumpbin "link -dump"
12206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12209 $as_echo_n "checking for $ac_word... " >&6; }
12210 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12211 $as_echo_n "(cached) " >&6
12212 else
12213 if test -n "$DUMPBIN"; then
12214 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12215 else
12216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217 for as_dir in $PATH
12219 IFS=$as_save_IFS
12220 test -z "$as_dir" && as_dir=.
12221 for ac_exec_ext in '' $ac_executable_extensions; do
12222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12223 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12225 break 2
12227 done
12228 done
12229 IFS=$as_save_IFS
12233 DUMPBIN=$ac_cv_prog_DUMPBIN
12234 if test -n "$DUMPBIN"; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12236 $as_echo "$DUMPBIN" >&6; }
12237 else
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12243 test -n "$DUMPBIN" && break
12244 done
12246 if test -z "$DUMPBIN"; then
12247 ac_ct_DUMPBIN=$DUMPBIN
12248 for ac_prog in dumpbin "link -dump"
12250 # Extract the first word of "$ac_prog", so it can be a program name with args.
12251 set dummy $ac_prog; ac_word=$2
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12253 $as_echo_n "checking for $ac_word... " >&6; }
12254 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 if test -n "$ac_ct_DUMPBIN"; then
12258 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12259 else
12260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12261 for as_dir in $PATH
12263 IFS=$as_save_IFS
12264 test -z "$as_dir" && as_dir=.
12265 for ac_exec_ext in '' $ac_executable_extensions; do
12266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12267 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12269 break 2
12271 done
12272 done
12273 IFS=$as_save_IFS
12277 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12278 if test -n "$ac_ct_DUMPBIN"; then
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12280 $as_echo "$ac_ct_DUMPBIN" >&6; }
12281 else
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283 $as_echo "no" >&6; }
12287 test -n "$ac_ct_DUMPBIN" && break
12288 done
12290 if test "x$ac_ct_DUMPBIN" = x; then
12291 DUMPBIN=":"
12292 else
12293 case $cross_compiling:$ac_tool_warned in
12294 yes:)
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12297 ac_tool_warned=yes ;;
12298 esac
12299 DUMPBIN=$ac_ct_DUMPBIN
12303 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12304 *COFF*)
12305 DUMPBIN="$DUMPBIN -symbols"
12308 DUMPBIN=:
12310 esac
12313 if test "$DUMPBIN" != ":"; then
12314 NM="$DUMPBIN"
12317 test -z "$NM" && NM=nm
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12325 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12326 if test "${lt_cv_nm_interface+set}" = set; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 lt_cv_nm_interface="BSD nm"
12330 echo "int some_variable = 0;" > conftest.$ac_ext
12331 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12332 (eval "$ac_compile" 2>conftest.err)
12333 cat conftest.err >&5
12334 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12335 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12336 cat conftest.err >&5
12337 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12338 cat conftest.out >&5
12339 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12340 lt_cv_nm_interface="MS dumpbin"
12342 rm -f conftest*
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12345 $as_echo "$lt_cv_nm_interface" >&6; }
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12348 $as_echo_n "checking whether ln -s works... " >&6; }
12349 LN_S=$as_ln_s
12350 if test "$LN_S" = "ln -s"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12352 $as_echo "yes" >&6; }
12353 else
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12355 $as_echo "no, using $LN_S" >&6; }
12358 # find the maximum length of command line arguments
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12360 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12361 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12362 $as_echo_n "(cached) " >&6
12363 else
12365 teststring="ABCD"
12367 case $build_os in
12368 msdosdjgpp*)
12369 # On DJGPP, this test can blow up pretty badly due to problems in libc
12370 # (any single argument exceeding 2000 bytes causes a buffer overrun
12371 # during glob expansion). Even if it were fixed, the result of this
12372 # check would be larger than it should be.
12373 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12376 gnu*)
12377 # Under GNU Hurd, this test is not required because there is
12378 # no limit to the length of command line arguments.
12379 # Libtool will interpret -1 as no limit whatsoever
12380 lt_cv_sys_max_cmd_len=-1;
12383 cygwin* | mingw* | cegcc*)
12384 # On Win9x/ME, this test blows up -- it succeeds, but takes
12385 # about 5 minutes as the teststring grows exponentially.
12386 # Worse, since 9x/ME are not pre-emptively multitasking,
12387 # you end up with a "frozen" computer, even though with patience
12388 # the test eventually succeeds (with a max line length of 256k).
12389 # Instead, let's just punt: use the minimum linelength reported by
12390 # all of the supported platforms: 8192 (on NT/2K/XP).
12391 lt_cv_sys_max_cmd_len=8192;
12394 mint*)
12395 # On MiNT this can take a long time and run out of memory.
12396 lt_cv_sys_max_cmd_len=8192;
12399 amigaos*)
12400 # On AmigaOS with pdksh, this test takes hours, literally.
12401 # So we just punt and use a minimum line length of 8192.
12402 lt_cv_sys_max_cmd_len=8192;
12405 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12406 # This has been around since 386BSD, at least. Likely further.
12407 if test -x /sbin/sysctl; then
12408 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12409 elif test -x /usr/sbin/sysctl; then
12410 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12411 else
12412 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12414 # And add a safety zone
12415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12419 interix*)
12420 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12421 lt_cv_sys_max_cmd_len=196608
12424 osf*)
12425 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12426 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12427 # nice to cause kernel panics so lets avoid the loop below.
12428 # First set a reasonable default.
12429 lt_cv_sys_max_cmd_len=16384
12431 if test -x /sbin/sysconfig; then
12432 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12433 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12434 esac
12437 sco3.2v5*)
12438 lt_cv_sys_max_cmd_len=102400
12440 sysv5* | sco5v6* | sysv4.2uw2*)
12441 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12442 if test -n "$kargmax"; then
12443 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12444 else
12445 lt_cv_sys_max_cmd_len=32768
12449 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12450 if test -n "$lt_cv_sys_max_cmd_len"; then
12451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12453 else
12454 # Make teststring a little bigger before we do anything with it.
12455 # a 1K string should be a reasonable start.
12456 for i in 1 2 3 4 5 6 7 8 ; do
12457 teststring=$teststring$teststring
12458 done
12459 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12460 # If test is not a shell built-in, we'll probably end up computing a
12461 # maximum length that is only half of the actual maximum length, but
12462 # we can't tell.
12463 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12464 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12465 test $i != 17 # 1/2 MB should be enough
12467 i=`expr $i + 1`
12468 teststring=$teststring$teststring
12469 done
12470 # Only check the string length outside the loop.
12471 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12472 teststring=
12473 # Add a significant safety factor because C++ compilers can tack on
12474 # massive amounts of additional arguments before passing them to the
12475 # linker. It appears as though 1/2 is a usable value.
12476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12479 esac
12483 if test -n $lt_cv_sys_max_cmd_len ; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12485 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12486 else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12488 $as_echo "none" >&6; }
12490 max_cmd_len=$lt_cv_sys_max_cmd_len
12497 : ${CP="cp -f"}
12498 : ${MV="mv -f"}
12499 : ${RM="rm -f"}
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12502 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12503 # Try some XSI features
12504 xsi_shell=no
12505 ( _lt_dummy="a/b/c"
12506 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12507 = c,a/b,, \
12508 && eval 'test $(( 1 + 1 )) -eq 2 \
12509 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12510 && xsi_shell=yes
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12512 $as_echo "$xsi_shell" >&6; }
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12516 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12517 lt_shell_append=no
12518 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12519 >/dev/null 2>&1 \
12520 && lt_shell_append=yes
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12522 $as_echo "$lt_shell_append" >&6; }
12525 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12526 lt_unset=unset
12527 else
12528 lt_unset=false
12535 # test EBCDIC or ASCII
12536 case `echo X|tr X '\101'` in
12537 A) # ASCII based system
12538 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12539 lt_SP2NL='tr \040 \012'
12540 lt_NL2SP='tr \015\012 \040\040'
12542 *) # EBCDIC based system
12543 lt_SP2NL='tr \100 \n'
12544 lt_NL2SP='tr \r\n \100\100'
12546 esac
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12557 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12558 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 lt_cv_ld_reload_flag='-r'
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12564 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12565 reload_flag=$lt_cv_ld_reload_flag
12566 case $reload_flag in
12567 "" | " "*) ;;
12568 *) reload_flag=" $reload_flag" ;;
12569 esac
12570 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12571 case $host_os in
12572 darwin*)
12573 if test "$GCC" = yes; then
12574 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12575 else
12576 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12579 esac
12589 if test -n "$ac_tool_prefix"; then
12590 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12591 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593 $as_echo_n "checking for $ac_word... " >&6; }
12594 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12595 $as_echo_n "(cached) " >&6
12596 else
12597 if test -n "$OBJDUMP"; then
12598 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12599 else
12600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601 for as_dir in $PATH
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
12606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12607 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12611 done
12612 done
12613 IFS=$as_save_IFS
12617 OBJDUMP=$ac_cv_prog_OBJDUMP
12618 if test -n "$OBJDUMP"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12620 $as_echo "$OBJDUMP" >&6; }
12621 else
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623 $as_echo "no" >&6; }
12628 if test -z "$ac_cv_prog_OBJDUMP"; then
12629 ac_ct_OBJDUMP=$OBJDUMP
12630 # Extract the first word of "objdump", so it can be a program name with args.
12631 set dummy objdump; ac_word=$2
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12633 $as_echo_n "checking for $ac_word... " >&6; }
12634 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12637 if test -n "$ac_ct_OBJDUMP"; then
12638 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12639 else
12640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641 for as_dir in $PATH
12643 IFS=$as_save_IFS
12644 test -z "$as_dir" && as_dir=.
12645 for ac_exec_ext in '' $ac_executable_extensions; do
12646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12647 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12649 break 2
12651 done
12652 done
12653 IFS=$as_save_IFS
12657 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12658 if test -n "$ac_ct_OBJDUMP"; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12660 $as_echo "$ac_ct_OBJDUMP" >&6; }
12661 else
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663 $as_echo "no" >&6; }
12666 if test "x$ac_ct_OBJDUMP" = x; then
12667 OBJDUMP="false"
12668 else
12669 case $cross_compiling:$ac_tool_warned in
12670 yes:)
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12673 ac_tool_warned=yes ;;
12674 esac
12675 OBJDUMP=$ac_ct_OBJDUMP
12677 else
12678 OBJDUMP="$ac_cv_prog_OBJDUMP"
12681 test -z "$OBJDUMP" && OBJDUMP=objdump
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12692 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12693 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12694 $as_echo_n "(cached) " >&6
12695 else
12696 lt_cv_file_magic_cmd='$MAGIC_CMD'
12697 lt_cv_file_magic_test_file=
12698 lt_cv_deplibs_check_method='unknown'
12699 # Need to set the preceding variable on all platforms that support
12700 # interlibrary dependencies.
12701 # 'none' -- dependencies not supported.
12702 # `unknown' -- same as none, but documents that we really don't know.
12703 # 'pass_all' -- all dependencies passed with no checks.
12704 # 'test_compile' -- check by making test program.
12705 # 'file_magic [[regex]]' -- check by looking for files in library path
12706 # which responds to the $file_magic_cmd with a given extended regex.
12707 # If you have `file' or equivalent on your system and you're not sure
12708 # whether `pass_all' will *always* work, you probably want this one.
12710 case $host_os in
12711 aix[4-9]*)
12712 lt_cv_deplibs_check_method=pass_all
12715 beos*)
12716 lt_cv_deplibs_check_method=pass_all
12719 bsdi[45]*)
12720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12721 lt_cv_file_magic_cmd='/usr/bin/file -L'
12722 lt_cv_file_magic_test_file=/shlib/libc.so
12725 cygwin*)
12726 # func_win32_libid is a shell function defined in ltmain.sh
12727 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12728 lt_cv_file_magic_cmd='func_win32_libid'
12731 mingw* | pw32*)
12732 # Base MSYS/MinGW do not provide the 'file' command needed by
12733 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12734 # unless we find 'file', for example because we are cross-compiling.
12735 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12736 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12737 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12738 lt_cv_file_magic_cmd='func_win32_libid'
12739 else
12740 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12741 lt_cv_file_magic_cmd='$OBJDUMP -f'
12745 cegcc*)
12746 # use the weaker test based on 'objdump'. See mingw*.
12747 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12748 lt_cv_file_magic_cmd='$OBJDUMP -f'
12751 darwin* | rhapsody*)
12752 lt_cv_deplibs_check_method=pass_all
12755 freebsd* | dragonfly*)
12756 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12757 case $host_cpu in
12758 i*86 )
12759 # Not sure whether the presence of OpenBSD here was a mistake.
12760 # Let's accept both of them until this is cleared up.
12761 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12762 lt_cv_file_magic_cmd=/usr/bin/file
12763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12765 esac
12766 else
12767 lt_cv_deplibs_check_method=pass_all
12771 gnu*)
12772 lt_cv_deplibs_check_method=pass_all
12775 haiku*)
12776 lt_cv_deplibs_check_method=pass_all
12779 hpux10.20* | hpux11*)
12780 lt_cv_file_magic_cmd=/usr/bin/file
12781 case $host_cpu in
12782 ia64*)
12783 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12784 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12786 hppa*64*)
12787 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]'
12788 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12791 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12792 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12794 esac
12797 interix[3-9]*)
12798 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12802 irix5* | irix6* | nonstopux*)
12803 case $LD in
12804 *-32|*"-32 ") libmagic=32-bit;;
12805 *-n32|*"-n32 ") libmagic=N32;;
12806 *-64|*"-64 ") libmagic=64-bit;;
12807 *) libmagic=never-match;;
12808 esac
12809 lt_cv_deplibs_check_method=pass_all
12812 # This must be Linux ELF.
12813 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12814 lt_cv_deplibs_check_method=pass_all
12817 netbsd*)
12818 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12820 else
12821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12825 newos6*)
12826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12827 lt_cv_file_magic_cmd=/usr/bin/file
12828 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12831 *nto* | *qnx*)
12832 lt_cv_deplibs_check_method=pass_all
12835 openbsd*)
12836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12838 else
12839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12843 osf3* | osf4* | osf5*)
12844 lt_cv_deplibs_check_method=pass_all
12847 rdos*)
12848 lt_cv_deplibs_check_method=pass_all
12851 solaris*)
12852 lt_cv_deplibs_check_method=pass_all
12855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12856 lt_cv_deplibs_check_method=pass_all
12859 sysv4 | sysv4.3*)
12860 case $host_vendor in
12861 motorola)
12862 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]'
12863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12865 ncr)
12866 lt_cv_deplibs_check_method=pass_all
12868 sequent)
12869 lt_cv_file_magic_cmd='/bin/file'
12870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12872 sni)
12873 lt_cv_file_magic_cmd='/bin/file'
12874 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12875 lt_cv_file_magic_test_file=/lib/libc.so
12877 siemens)
12878 lt_cv_deplibs_check_method=pass_all
12881 lt_cv_deplibs_check_method=pass_all
12883 esac
12886 tpf*)
12887 lt_cv_deplibs_check_method=pass_all
12889 esac
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12893 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12894 file_magic_cmd=$lt_cv_file_magic_cmd
12895 deplibs_check_method=$lt_cv_deplibs_check_method
12896 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12909 if test -n "$ac_tool_prefix"; then
12910 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12911 set dummy ${ac_tool_prefix}ar; ac_word=$2
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12913 $as_echo_n "checking for $ac_word... " >&6; }
12914 if test "${ac_cv_prog_AR+set}" = set; then :
12915 $as_echo_n "(cached) " >&6
12916 else
12917 if test -n "$AR"; then
12918 ac_cv_prog_AR="$AR" # Let the user override the test.
12919 else
12920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921 for as_dir in $PATH
12923 IFS=$as_save_IFS
12924 test -z "$as_dir" && as_dir=.
12925 for ac_exec_ext in '' $ac_executable_extensions; do
12926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12927 ac_cv_prog_AR="${ac_tool_prefix}ar"
12928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12929 break 2
12931 done
12932 done
12933 IFS=$as_save_IFS
12937 AR=$ac_cv_prog_AR
12938 if test -n "$AR"; then
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12940 $as_echo "$AR" >&6; }
12941 else
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12943 $as_echo "no" >&6; }
12948 if test -z "$ac_cv_prog_AR"; then
12949 ac_ct_AR=$AR
12950 # Extract the first word of "ar", so it can be a program name with args.
12951 set dummy ar; ac_word=$2
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12953 $as_echo_n "checking for $ac_word... " >&6; }
12954 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
12956 else
12957 if test -n "$ac_ct_AR"; then
12958 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12959 else
12960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12961 for as_dir in $PATH
12963 IFS=$as_save_IFS
12964 test -z "$as_dir" && as_dir=.
12965 for ac_exec_ext in '' $ac_executable_extensions; do
12966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12967 ac_cv_prog_ac_ct_AR="ar"
12968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12969 break 2
12971 done
12972 done
12973 IFS=$as_save_IFS
12977 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12978 if test -n "$ac_ct_AR"; then
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12980 $as_echo "$ac_ct_AR" >&6; }
12981 else
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12986 if test "x$ac_ct_AR" = x; then
12987 AR="false"
12988 else
12989 case $cross_compiling:$ac_tool_warned in
12990 yes:)
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12993 ac_tool_warned=yes ;;
12994 esac
12995 AR=$ac_ct_AR
12997 else
12998 AR="$ac_cv_prog_AR"
13001 test -z "$AR" && AR=ar
13002 test -z "$AR_FLAGS" && AR_FLAGS=cru
13014 if test -n "$ac_tool_prefix"; then
13015 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13016 set dummy ${ac_tool_prefix}strip; ac_word=$2
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13018 $as_echo_n "checking for $ac_word... " >&6; }
13019 if test "${ac_cv_prog_STRIP+set}" = set; then :
13020 $as_echo_n "(cached) " >&6
13021 else
13022 if test -n "$STRIP"; then
13023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13024 else
13025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026 for as_dir in $PATH
13028 IFS=$as_save_IFS
13029 test -z "$as_dir" && as_dir=.
13030 for ac_exec_ext in '' $ac_executable_extensions; do
13031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13032 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13034 break 2
13036 done
13037 done
13038 IFS=$as_save_IFS
13042 STRIP=$ac_cv_prog_STRIP
13043 if test -n "$STRIP"; then
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13045 $as_echo "$STRIP" >&6; }
13046 else
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048 $as_echo "no" >&6; }
13053 if test -z "$ac_cv_prog_STRIP"; then
13054 ac_ct_STRIP=$STRIP
13055 # Extract the first word of "strip", so it can be a program name with args.
13056 set dummy strip; ac_word=$2
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13058 $as_echo_n "checking for $ac_word... " >&6; }
13059 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 if test -n "$ac_ct_STRIP"; then
13063 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13064 else
13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066 for as_dir in $PATH
13068 IFS=$as_save_IFS
13069 test -z "$as_dir" && as_dir=.
13070 for ac_exec_ext in '' $ac_executable_extensions; do
13071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13072 ac_cv_prog_ac_ct_STRIP="strip"
13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13074 break 2
13076 done
13077 done
13078 IFS=$as_save_IFS
13082 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13083 if test -n "$ac_ct_STRIP"; then
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13085 $as_echo "$ac_ct_STRIP" >&6; }
13086 else
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13091 if test "x$ac_ct_STRIP" = x; then
13092 STRIP=":"
13093 else
13094 case $cross_compiling:$ac_tool_warned in
13095 yes:)
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13098 ac_tool_warned=yes ;;
13099 esac
13100 STRIP=$ac_ct_STRIP
13102 else
13103 STRIP="$ac_cv_prog_STRIP"
13106 test -z "$STRIP" && STRIP=:
13113 if test -n "$ac_tool_prefix"; then
13114 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13115 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13117 $as_echo_n "checking for $ac_word... " >&6; }
13118 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13119 $as_echo_n "(cached) " >&6
13120 else
13121 if test -n "$RANLIB"; then
13122 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13123 else
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 for as_dir in $PATH
13127 IFS=$as_save_IFS
13128 test -z "$as_dir" && as_dir=.
13129 for ac_exec_ext in '' $ac_executable_extensions; do
13130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13131 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13133 break 2
13135 done
13136 done
13137 IFS=$as_save_IFS
13141 RANLIB=$ac_cv_prog_RANLIB
13142 if test -n "$RANLIB"; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13144 $as_echo "$RANLIB" >&6; }
13145 else
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 $as_echo "no" >&6; }
13152 if test -z "$ac_cv_prog_RANLIB"; then
13153 ac_ct_RANLIB=$RANLIB
13154 # Extract the first word of "ranlib", so it can be a program name with args.
13155 set dummy ranlib; ac_word=$2
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157 $as_echo_n "checking for $ac_word... " >&6; }
13158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 if test -n "$ac_ct_RANLIB"; then
13162 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13163 else
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $PATH
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13171 ac_cv_prog_ac_ct_RANLIB="ranlib"
13172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13175 done
13176 done
13177 IFS=$as_save_IFS
13181 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13182 if test -n "$ac_ct_RANLIB"; then
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13184 $as_echo "$ac_ct_RANLIB" >&6; }
13185 else
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187 $as_echo "no" >&6; }
13190 if test "x$ac_ct_RANLIB" = x; then
13191 RANLIB=":"
13192 else
13193 case $cross_compiling:$ac_tool_warned in
13194 yes:)
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13197 ac_tool_warned=yes ;;
13198 esac
13199 RANLIB=$ac_ct_RANLIB
13201 else
13202 RANLIB="$ac_cv_prog_RANLIB"
13205 test -z "$RANLIB" && RANLIB=:
13212 # Determine commands to create old-style static archives.
13213 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13214 old_postinstall_cmds='chmod 644 $oldlib'
13215 old_postuninstall_cmds=
13217 if test -n "$RANLIB"; then
13218 case $host_os in
13219 openbsd*)
13220 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13223 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13225 esac
13226 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13229 case $host_os in
13230 darwin*)
13231 lock_old_archive_extraction=yes ;;
13233 lock_old_archive_extraction=no ;;
13234 esac
13274 # If no C compiler was specified, use CC.
13275 LTCC=${LTCC-"$CC"}
13277 # If no C compiler flags were specified, use CFLAGS.
13278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13280 # Allow CC to be a program name with arguments.
13281 compiler=$CC
13284 # Check for command to grab the raw symbol name followed by C symbol from nm.
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13286 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13287 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13291 # These are sane defaults that work on at least a few old systems.
13292 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13294 # Character class describing NM global symbol codes.
13295 symcode='[BCDEGRST]'
13297 # Regexp to match symbols that can be accessed directly from C.
13298 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13300 # Define system-specific variables.
13301 case $host_os in
13302 aix*)
13303 symcode='[BCDT]'
13305 cygwin* | mingw* | pw32* | cegcc*)
13306 symcode='[ABCDGISTW]'
13308 hpux*)
13309 if test "$host_cpu" = ia64; then
13310 symcode='[ABCDEGRST]'
13313 irix* | nonstopux*)
13314 symcode='[BCDEGRST]'
13316 osf*)
13317 symcode='[BCDEGQRST]'
13319 solaris*)
13320 symcode='[BDRT]'
13322 sco3.2v5*)
13323 symcode='[DT]'
13325 sysv4.2uw2*)
13326 symcode='[DT]'
13328 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13329 symcode='[ABDT]'
13331 sysv4)
13332 symcode='[DFNSTU]'
13334 esac
13336 # If we're using GNU nm, then use its standard symbol codes.
13337 case `$NM -V 2>&1` in
13338 *GNU* | *'with BFD'*)
13339 symcode='[ABCDGIRSTW]' ;;
13340 esac
13342 # Transform an extracted symbol line into a proper C declaration.
13343 # Some systems (esp. on ia64) link data and code symbols differently,
13344 # so use this general approach.
13345 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13347 # Transform an extracted symbol line into symbol name and symbol address
13348 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13349 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'"
13351 # Handle CRLF in mingw tool chain
13352 opt_cr=
13353 case $build_os in
13354 mingw*)
13355 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13357 esac
13359 # Try without a prefix underscore, then with it.
13360 for ac_symprfx in "" "_"; do
13362 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13363 symxfrm="\\1 $ac_symprfx\\2 \\2"
13365 # Write the raw and C identifiers.
13366 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13367 # Fake it for dumpbin and say T for any non-static function
13368 # and D for any global variable.
13369 # Also find C++ and __fastcall symbols from MSVC++,
13370 # which start with @ or ?.
13371 lt_cv_sys_global_symbol_pipe="$AWK '"\
13372 " {last_section=section; section=\$ 3};"\
13373 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13374 " \$ 0!~/External *\|/{next};"\
13375 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13376 " {if(hide[section]) next};"\
13377 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13378 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13379 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13380 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13381 " ' prfx=^$ac_symprfx"
13382 else
13383 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13386 # Check to see that the pipe works correctly.
13387 pipe_works=no
13389 rm -f conftest*
13390 cat > conftest.$ac_ext <<_LT_EOF
13391 #ifdef __cplusplus
13392 extern "C" {
13393 #endif
13394 char nm_test_var;
13395 void nm_test_func(void);
13396 void nm_test_func(void){}
13397 #ifdef __cplusplus
13399 #endif
13400 int main(){nm_test_var='a';nm_test_func();return(0);}
13401 _LT_EOF
13403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13404 (eval $ac_compile) 2>&5
13405 ac_status=$?
13406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13407 test $ac_status = 0; }; then
13408 # Now try to grab the symbols.
13409 nlist=conftest.nm
13410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13411 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13412 ac_status=$?
13413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13414 test $ac_status = 0; } && test -s "$nlist"; then
13415 # Try sorting and uniquifying the output.
13416 if sort "$nlist" | uniq > "$nlist"T; then
13417 mv -f "$nlist"T "$nlist"
13418 else
13419 rm -f "$nlist"T
13422 # Make sure that we snagged all the symbols we need.
13423 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13424 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13425 cat <<_LT_EOF > conftest.$ac_ext
13426 #ifdef __cplusplus
13427 extern "C" {
13428 #endif
13430 _LT_EOF
13431 # Now generate the symbol file.
13432 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13434 cat <<_LT_EOF >> conftest.$ac_ext
13436 /* The mapping between symbol names and symbols. */
13437 const struct {
13438 const char *name;
13439 void *address;
13441 lt__PROGRAM__LTX_preloaded_symbols[] =
13443 { "@PROGRAM@", (void *) 0 },
13444 _LT_EOF
13445 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13446 cat <<\_LT_EOF >> conftest.$ac_ext
13447 {0, (void *) 0}
13450 /* This works around a problem in FreeBSD linker */
13451 #ifdef FREEBSD_WORKAROUND
13452 static const void *lt_preloaded_setup() {
13453 return lt__PROGRAM__LTX_preloaded_symbols;
13455 #endif
13457 #ifdef __cplusplus
13459 #endif
13460 _LT_EOF
13461 # Now try linking the two files.
13462 mv conftest.$ac_objext conftstm.$ac_objext
13463 lt_save_LIBS="$LIBS"
13464 lt_save_CFLAGS="$CFLAGS"
13465 LIBS="conftstm.$ac_objext"
13466 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13468 (eval $ac_link) 2>&5
13469 ac_status=$?
13470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13471 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13472 pipe_works=yes
13474 LIBS="$lt_save_LIBS"
13475 CFLAGS="$lt_save_CFLAGS"
13476 else
13477 echo "cannot find nm_test_func in $nlist" >&5
13479 else
13480 echo "cannot find nm_test_var in $nlist" >&5
13482 else
13483 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13485 else
13486 echo "$progname: failed program was:" >&5
13487 cat conftest.$ac_ext >&5
13489 rm -rf conftest* conftst*
13491 # Do not use the global_symbol_pipe unless it works.
13492 if test "$pipe_works" = yes; then
13493 break
13494 else
13495 lt_cv_sys_global_symbol_pipe=
13497 done
13501 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13502 lt_cv_sys_global_symbol_to_cdecl=
13504 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13506 $as_echo "failed" >&6; }
13507 else
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13509 $as_echo "ok" >&6; }
13533 # Check whether --enable-libtool-lock was given.
13534 if test "${enable_libtool_lock+set}" = set; then :
13535 enableval=$enable_libtool_lock;
13538 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13540 # Some flags need to be propagated to the compiler or linker for good
13541 # libtool support.
13542 case $host in
13543 ia64-*-hpux*)
13544 # Find out which ABI we are using.
13545 echo 'int i;' > conftest.$ac_ext
13546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13547 (eval $ac_compile) 2>&5
13548 ac_status=$?
13549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13550 test $ac_status = 0; }; then
13551 case `/usr/bin/file conftest.$ac_objext` in
13552 *ELF-32*)
13553 HPUX_IA64_MODE="32"
13555 *ELF-64*)
13556 HPUX_IA64_MODE="64"
13558 esac
13560 rm -rf conftest*
13562 *-*-irix6*)
13563 # Find out which ABI we are using.
13564 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13566 (eval $ac_compile) 2>&5
13567 ac_status=$?
13568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13569 test $ac_status = 0; }; then
13570 if test "$lt_cv_prog_gnu_ld" = yes; then
13571 case `/usr/bin/file conftest.$ac_objext` in
13572 *32-bit*)
13573 LD="${LD-ld} -melf32bsmip"
13575 *N32*)
13576 LD="${LD-ld} -melf32bmipn32"
13578 *64-bit*)
13579 LD="${LD-ld} -melf64bmip"
13581 esac
13582 else
13583 case `/usr/bin/file conftest.$ac_objext` in
13584 *32-bit*)
13585 LD="${LD-ld} -32"
13587 *N32*)
13588 LD="${LD-ld} -n32"
13590 *64-bit*)
13591 LD="${LD-ld} -64"
13593 esac
13596 rm -rf conftest*
13599 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13600 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13601 # Find out which ABI we are using.
13602 echo 'int i;' > conftest.$ac_ext
13603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13604 (eval $ac_compile) 2>&5
13605 ac_status=$?
13606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13607 test $ac_status = 0; }; then
13608 case `/usr/bin/file conftest.o` in
13609 *32-bit*)
13610 case $host in
13611 x86_64-*kfreebsd*-gnu)
13612 LD="${LD-ld} -m elf_i386_fbsd"
13614 x86_64-*linux*)
13615 case `/usr/bin/file conftest.o` in
13616 *x86-64*)
13617 LD="${LD-ld} -m elf32_x86_64"
13620 LD="${LD-ld} -m elf_i386"
13622 esac
13624 ppc64-*linux*|powerpc64-*linux*)
13625 LD="${LD-ld} -m elf32ppclinux"
13627 s390x-*linux*)
13628 LD="${LD-ld} -m elf_s390"
13630 sparc64-*linux*)
13631 LD="${LD-ld} -m elf32_sparc"
13633 esac
13635 *64-bit*)
13636 case $host in
13637 x86_64-*kfreebsd*-gnu)
13638 LD="${LD-ld} -m elf_x86_64_fbsd"
13640 x86_64-*linux*)
13641 LD="${LD-ld} -m elf_x86_64"
13643 ppc*-*linux*|powerpc*-*linux*)
13644 LD="${LD-ld} -m elf64ppc"
13646 s390*-*linux*|s390*-*tpf*)
13647 LD="${LD-ld} -m elf64_s390"
13649 sparc*-*linux*)
13650 LD="${LD-ld} -m elf64_sparc"
13652 esac
13654 esac
13656 rm -rf conftest*
13659 *-*-sco3.2v5*)
13660 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13661 SAVE_CFLAGS="$CFLAGS"
13662 CFLAGS="$CFLAGS -belf"
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13664 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13665 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13666 $as_echo_n "(cached) " >&6
13667 else
13668 ac_ext=c
13669 ac_cpp='$CPP $CPPFLAGS'
13670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13678 main ()
13682 return 0;
13684 _ACEOF
13685 if ac_fn_c_try_link "$LINENO"; then :
13686 lt_cv_cc_needs_belf=yes
13687 else
13688 lt_cv_cc_needs_belf=no
13690 rm -f core conftest.err conftest.$ac_objext \
13691 conftest$ac_exeext conftest.$ac_ext
13692 ac_ext=c
13693 ac_cpp='$CPP $CPPFLAGS'
13694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13700 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13701 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13702 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13703 CFLAGS="$SAVE_CFLAGS"
13706 sparc*-*solaris*)
13707 # Find out which ABI we are using.
13708 echo 'int i;' > conftest.$ac_ext
13709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13710 (eval $ac_compile) 2>&5
13711 ac_status=$?
13712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13713 test $ac_status = 0; }; then
13714 case `/usr/bin/file conftest.o` in
13715 *64-bit*)
13716 case $lt_cv_prog_gnu_ld in
13717 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13719 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13720 LD="${LD-ld} -64"
13723 esac
13725 esac
13727 rm -rf conftest*
13729 esac
13731 need_locks="$enable_libtool_lock"
13734 case $host_os in
13735 rhapsody* | darwin*)
13736 if test -n "$ac_tool_prefix"; then
13737 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13738 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13740 $as_echo_n "checking for $ac_word... " >&6; }
13741 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13742 $as_echo_n "(cached) " >&6
13743 else
13744 if test -n "$DSYMUTIL"; then
13745 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13746 else
13747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13748 for as_dir in $PATH
13750 IFS=$as_save_IFS
13751 test -z "$as_dir" && as_dir=.
13752 for ac_exec_ext in '' $ac_executable_extensions; do
13753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13754 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13756 break 2
13758 done
13759 done
13760 IFS=$as_save_IFS
13764 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13765 if test -n "$DSYMUTIL"; then
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13767 $as_echo "$DSYMUTIL" >&6; }
13768 else
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770 $as_echo "no" >&6; }
13775 if test -z "$ac_cv_prog_DSYMUTIL"; then
13776 ac_ct_DSYMUTIL=$DSYMUTIL
13777 # Extract the first word of "dsymutil", so it can be a program name with args.
13778 set dummy dsymutil; ac_word=$2
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13780 $as_echo_n "checking for $ac_word... " >&6; }
13781 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13782 $as_echo_n "(cached) " >&6
13783 else
13784 if test -n "$ac_ct_DSYMUTIL"; then
13785 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13786 else
13787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13788 for as_dir in $PATH
13790 IFS=$as_save_IFS
13791 test -z "$as_dir" && as_dir=.
13792 for ac_exec_ext in '' $ac_executable_extensions; do
13793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13794 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13796 break 2
13798 done
13799 done
13800 IFS=$as_save_IFS
13804 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13805 if test -n "$ac_ct_DSYMUTIL"; then
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13807 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13808 else
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13810 $as_echo "no" >&6; }
13813 if test "x$ac_ct_DSYMUTIL" = x; then
13814 DSYMUTIL=":"
13815 else
13816 case $cross_compiling:$ac_tool_warned in
13817 yes:)
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13820 ac_tool_warned=yes ;;
13821 esac
13822 DSYMUTIL=$ac_ct_DSYMUTIL
13824 else
13825 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13828 if test -n "$ac_tool_prefix"; then
13829 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13830 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13832 $as_echo_n "checking for $ac_word... " >&6; }
13833 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13834 $as_echo_n "(cached) " >&6
13835 else
13836 if test -n "$NMEDIT"; then
13837 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13838 else
13839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13840 for as_dir in $PATH
13842 IFS=$as_save_IFS
13843 test -z "$as_dir" && as_dir=.
13844 for ac_exec_ext in '' $ac_executable_extensions; do
13845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13846 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13848 break 2
13850 done
13851 done
13852 IFS=$as_save_IFS
13856 NMEDIT=$ac_cv_prog_NMEDIT
13857 if test -n "$NMEDIT"; then
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13859 $as_echo "$NMEDIT" >&6; }
13860 else
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13862 $as_echo "no" >&6; }
13867 if test -z "$ac_cv_prog_NMEDIT"; then
13868 ac_ct_NMEDIT=$NMEDIT
13869 # Extract the first word of "nmedit", so it can be a program name with args.
13870 set dummy nmedit; ac_word=$2
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13872 $as_echo_n "checking for $ac_word... " >&6; }
13873 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13874 $as_echo_n "(cached) " >&6
13875 else
13876 if test -n "$ac_ct_NMEDIT"; then
13877 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13878 else
13879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13880 for as_dir in $PATH
13882 IFS=$as_save_IFS
13883 test -z "$as_dir" && as_dir=.
13884 for ac_exec_ext in '' $ac_executable_extensions; do
13885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13886 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13888 break 2
13890 done
13891 done
13892 IFS=$as_save_IFS
13896 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13897 if test -n "$ac_ct_NMEDIT"; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13899 $as_echo "$ac_ct_NMEDIT" >&6; }
13900 else
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13902 $as_echo "no" >&6; }
13905 if test "x$ac_ct_NMEDIT" = x; then
13906 NMEDIT=":"
13907 else
13908 case $cross_compiling:$ac_tool_warned in
13909 yes:)
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13912 ac_tool_warned=yes ;;
13913 esac
13914 NMEDIT=$ac_ct_NMEDIT
13916 else
13917 NMEDIT="$ac_cv_prog_NMEDIT"
13920 if test -n "$ac_tool_prefix"; then
13921 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13922 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13924 $as_echo_n "checking for $ac_word... " >&6; }
13925 if test "${ac_cv_prog_LIPO+set}" = set; then :
13926 $as_echo_n "(cached) " >&6
13927 else
13928 if test -n "$LIPO"; then
13929 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13930 else
13931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13932 for as_dir in $PATH
13934 IFS=$as_save_IFS
13935 test -z "$as_dir" && as_dir=.
13936 for ac_exec_ext in '' $ac_executable_extensions; do
13937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13938 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13940 break 2
13942 done
13943 done
13944 IFS=$as_save_IFS
13948 LIPO=$ac_cv_prog_LIPO
13949 if test -n "$LIPO"; then
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13951 $as_echo "$LIPO" >&6; }
13952 else
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13954 $as_echo "no" >&6; }
13959 if test -z "$ac_cv_prog_LIPO"; then
13960 ac_ct_LIPO=$LIPO
13961 # Extract the first word of "lipo", so it can be a program name with args.
13962 set dummy lipo; ac_word=$2
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13964 $as_echo_n "checking for $ac_word... " >&6; }
13965 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13966 $as_echo_n "(cached) " >&6
13967 else
13968 if test -n "$ac_ct_LIPO"; then
13969 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13970 else
13971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13972 for as_dir in $PATH
13974 IFS=$as_save_IFS
13975 test -z "$as_dir" && as_dir=.
13976 for ac_exec_ext in '' $ac_executable_extensions; do
13977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13978 ac_cv_prog_ac_ct_LIPO="lipo"
13979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13980 break 2
13982 done
13983 done
13984 IFS=$as_save_IFS
13988 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13989 if test -n "$ac_ct_LIPO"; then
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13991 $as_echo "$ac_ct_LIPO" >&6; }
13992 else
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994 $as_echo "no" >&6; }
13997 if test "x$ac_ct_LIPO" = x; then
13998 LIPO=":"
13999 else
14000 case $cross_compiling:$ac_tool_warned in
14001 yes:)
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14004 ac_tool_warned=yes ;;
14005 esac
14006 LIPO=$ac_ct_LIPO
14008 else
14009 LIPO="$ac_cv_prog_LIPO"
14012 if test -n "$ac_tool_prefix"; then
14013 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14014 set dummy ${ac_tool_prefix}otool; ac_word=$2
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14016 $as_echo_n "checking for $ac_word... " >&6; }
14017 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14018 $as_echo_n "(cached) " >&6
14019 else
14020 if test -n "$OTOOL"; then
14021 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14022 else
14023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14024 for as_dir in $PATH
14026 IFS=$as_save_IFS
14027 test -z "$as_dir" && as_dir=.
14028 for ac_exec_ext in '' $ac_executable_extensions; do
14029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14030 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14032 break 2
14034 done
14035 done
14036 IFS=$as_save_IFS
14040 OTOOL=$ac_cv_prog_OTOOL
14041 if test -n "$OTOOL"; then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14043 $as_echo "$OTOOL" >&6; }
14044 else
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14046 $as_echo "no" >&6; }
14051 if test -z "$ac_cv_prog_OTOOL"; then
14052 ac_ct_OTOOL=$OTOOL
14053 # Extract the first word of "otool", so it can be a program name with args.
14054 set dummy otool; ac_word=$2
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14056 $as_echo_n "checking for $ac_word... " >&6; }
14057 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14058 $as_echo_n "(cached) " >&6
14059 else
14060 if test -n "$ac_ct_OTOOL"; then
14061 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14062 else
14063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14064 for as_dir in $PATH
14066 IFS=$as_save_IFS
14067 test -z "$as_dir" && as_dir=.
14068 for ac_exec_ext in '' $ac_executable_extensions; do
14069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14070 ac_cv_prog_ac_ct_OTOOL="otool"
14071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14072 break 2
14074 done
14075 done
14076 IFS=$as_save_IFS
14080 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14081 if test -n "$ac_ct_OTOOL"; then
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14083 $as_echo "$ac_ct_OTOOL" >&6; }
14084 else
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14086 $as_echo "no" >&6; }
14089 if test "x$ac_ct_OTOOL" = x; then
14090 OTOOL=":"
14091 else
14092 case $cross_compiling:$ac_tool_warned in
14093 yes:)
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14096 ac_tool_warned=yes ;;
14097 esac
14098 OTOOL=$ac_ct_OTOOL
14100 else
14101 OTOOL="$ac_cv_prog_OTOOL"
14104 if test -n "$ac_tool_prefix"; then
14105 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14106 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14108 $as_echo_n "checking for $ac_word... " >&6; }
14109 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 if test -n "$OTOOL64"; then
14113 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14114 else
14115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116 for as_dir in $PATH
14118 IFS=$as_save_IFS
14119 test -z "$as_dir" && as_dir=.
14120 for ac_exec_ext in '' $ac_executable_extensions; do
14121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14122 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14124 break 2
14126 done
14127 done
14128 IFS=$as_save_IFS
14132 OTOOL64=$ac_cv_prog_OTOOL64
14133 if test -n "$OTOOL64"; then
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14135 $as_echo "$OTOOL64" >&6; }
14136 else
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138 $as_echo "no" >&6; }
14143 if test -z "$ac_cv_prog_OTOOL64"; then
14144 ac_ct_OTOOL64=$OTOOL64
14145 # Extract the first word of "otool64", so it can be a program name with args.
14146 set dummy otool64; ac_word=$2
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14148 $as_echo_n "checking for $ac_word... " >&6; }
14149 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14150 $as_echo_n "(cached) " >&6
14151 else
14152 if test -n "$ac_ct_OTOOL64"; then
14153 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14154 else
14155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14156 for as_dir in $PATH
14158 IFS=$as_save_IFS
14159 test -z "$as_dir" && as_dir=.
14160 for ac_exec_ext in '' $ac_executable_extensions; do
14161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14162 ac_cv_prog_ac_ct_OTOOL64="otool64"
14163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14164 break 2
14166 done
14167 done
14168 IFS=$as_save_IFS
14172 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14173 if test -n "$ac_ct_OTOOL64"; then
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14175 $as_echo "$ac_ct_OTOOL64" >&6; }
14176 else
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178 $as_echo "no" >&6; }
14181 if test "x$ac_ct_OTOOL64" = x; then
14182 OTOOL64=":"
14183 else
14184 case $cross_compiling:$ac_tool_warned in
14185 yes:)
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14188 ac_tool_warned=yes ;;
14189 esac
14190 OTOOL64=$ac_ct_OTOOL64
14192 else
14193 OTOOL64="$ac_cv_prog_OTOOL64"
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14223 $as_echo_n "checking for -single_module linker flag... " >&6; }
14224 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14225 $as_echo_n "(cached) " >&6
14226 else
14227 lt_cv_apple_cc_single_mod=no
14228 if test -z "${LT_MULTI_MODULE}"; then
14229 # By default we will add the -single_module flag. You can override
14230 # by either setting the environment variable LT_MULTI_MODULE
14231 # non-empty at configure time, or by adding -multi_module to the
14232 # link flags.
14233 rm -rf libconftest.dylib*
14234 echo "int foo(void){return 1;}" > conftest.c
14235 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14236 -dynamiclib -Wl,-single_module conftest.c" >&5
14237 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14238 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14239 _lt_result=$?
14240 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14241 lt_cv_apple_cc_single_mod=yes
14242 else
14243 cat conftest.err >&5
14245 rm -rf libconftest.dylib*
14246 rm -f conftest.*
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14250 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14252 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14253 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14254 $as_echo_n "(cached) " >&6
14255 else
14256 lt_cv_ld_exported_symbols_list=no
14257 save_LDFLAGS=$LDFLAGS
14258 echo "_main" > conftest.sym
14259 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h. */
14264 main ()
14268 return 0;
14270 _ACEOF
14271 if ac_fn_c_try_link "$LINENO"; then :
14272 lt_cv_ld_exported_symbols_list=yes
14273 else
14274 lt_cv_ld_exported_symbols_list=no
14276 rm -f core conftest.err conftest.$ac_objext \
14277 conftest$ac_exeext conftest.$ac_ext
14278 LDFLAGS="$save_LDFLAGS"
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14282 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14284 $as_echo_n "checking for -force_load linker flag... " >&6; }
14285 if test "${lt_cv_ld_force_load+set}" = set; then :
14286 $as_echo_n "(cached) " >&6
14287 else
14288 lt_cv_ld_force_load=no
14289 cat > conftest.c << _LT_EOF
14290 int forced_loaded() { return 2;}
14291 _LT_EOF
14292 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14293 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14294 echo "$AR cru libconftest.a conftest.o" >&5
14295 $AR cru libconftest.a conftest.o 2>&5
14296 cat > conftest.c << _LT_EOF
14297 int main() { return 0;}
14298 _LT_EOF
14299 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14300 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14301 _lt_result=$?
14302 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14303 lt_cv_ld_force_load=yes
14304 else
14305 cat conftest.err >&5
14307 rm -f conftest.err libconftest.a conftest conftest.c
14308 rm -rf conftest.dSYM
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14312 $as_echo "$lt_cv_ld_force_load" >&6; }
14313 case $host_os in
14314 rhapsody* | darwin1.[012])
14315 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14316 darwin1.*)
14317 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14318 darwin*) # darwin 5.x on
14319 # if running on 10.5 or later, the deployment target defaults
14320 # to the OS version, if on x86, and 10.4, the deployment
14321 # target defaults to 10.4. Don't you love it?
14322 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14323 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14324 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14325 10.[012]*)
14326 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14327 10.*)
14328 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14329 esac
14331 esac
14332 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14333 _lt_dar_single_mod='$single_module'
14335 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14336 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14337 else
14338 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14340 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14341 _lt_dsymutil='~$DSYMUTIL $lib || :'
14342 else
14343 _lt_dsymutil=
14346 esac
14348 for ac_header in dlfcn.h
14349 do :
14350 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14351 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14352 cat >>confdefs.h <<_ACEOF
14353 #define HAVE_DLFCN_H 1
14354 _ACEOF
14357 done
14363 # Set options
14367 enable_dlopen=no
14370 enable_win32_dll=no
14373 # Check whether --enable-shared was given.
14374 if test "${enable_shared+set}" = set; then :
14375 enableval=$enable_shared; p=${PACKAGE-default}
14376 case $enableval in
14377 yes) enable_shared=yes ;;
14378 no) enable_shared=no ;;
14380 enable_shared=no
14381 # Look at the argument we got. We use all the common list separators.
14382 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14383 for pkg in $enableval; do
14384 IFS="$lt_save_ifs"
14385 if test "X$pkg" = "X$p"; then
14386 enable_shared=yes
14388 done
14389 IFS="$lt_save_ifs"
14391 esac
14392 else
14393 enable_shared=yes
14404 # Check whether --enable-static was given.
14405 if test "${enable_static+set}" = set; then :
14406 enableval=$enable_static; p=${PACKAGE-default}
14407 case $enableval in
14408 yes) enable_static=yes ;;
14409 no) enable_static=no ;;
14411 enable_static=no
14412 # Look at the argument we got. We use all the common list separators.
14413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14414 for pkg in $enableval; do
14415 IFS="$lt_save_ifs"
14416 if test "X$pkg" = "X$p"; then
14417 enable_static=yes
14419 done
14420 IFS="$lt_save_ifs"
14422 esac
14423 else
14424 enable_static=yes
14436 # Check whether --with-pic was given.
14437 if test "${with_pic+set}" = set; then :
14438 withval=$with_pic; pic_mode="$withval"
14439 else
14440 pic_mode=default
14444 test -z "$pic_mode" && pic_mode=default
14452 # Check whether --enable-fast-install was given.
14453 if test "${enable_fast_install+set}" = set; then :
14454 enableval=$enable_fast_install; p=${PACKAGE-default}
14455 case $enableval in
14456 yes) enable_fast_install=yes ;;
14457 no) enable_fast_install=no ;;
14459 enable_fast_install=no
14460 # Look at the argument we got. We use all the common list separators.
14461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14462 for pkg in $enableval; do
14463 IFS="$lt_save_ifs"
14464 if test "X$pkg" = "X$p"; then
14465 enable_fast_install=yes
14467 done
14468 IFS="$lt_save_ifs"
14470 esac
14471 else
14472 enable_fast_install=yes
14485 # This can be used to rebuild libtool when needed
14486 LIBTOOL_DEPS="$ltmain"
14488 # Always use our own libtool.
14489 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14516 test -z "$LN_S" && LN_S="ln -s"
14531 if test -n "${ZSH_VERSION+set}" ; then
14532 setopt NO_GLOB_SUBST
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14536 $as_echo_n "checking for objdir... " >&6; }
14537 if test "${lt_cv_objdir+set}" = set; then :
14538 $as_echo_n "(cached) " >&6
14539 else
14540 rm -f .libs 2>/dev/null
14541 mkdir .libs 2>/dev/null
14542 if test -d .libs; then
14543 lt_cv_objdir=.libs
14544 else
14545 # MS-DOS does not allow filenames that begin with a dot.
14546 lt_cv_objdir=_libs
14548 rmdir .libs 2>/dev/null
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14551 $as_echo "$lt_cv_objdir" >&6; }
14552 objdir=$lt_cv_objdir
14558 cat >>confdefs.h <<_ACEOF
14559 #define LT_OBJDIR "$lt_cv_objdir/"
14560 _ACEOF
14565 case $host_os in
14566 aix3*)
14567 # AIX sometimes has problems with the GCC collect2 program. For some
14568 # reason, if we set the COLLECT_NAMES environment variable, the problems
14569 # vanish in a puff of smoke.
14570 if test "X${COLLECT_NAMES+set}" != Xset; then
14571 COLLECT_NAMES=
14572 export COLLECT_NAMES
14575 esac
14577 # Global variables:
14578 ofile=libtool
14579 can_build_shared=yes
14581 # All known linkers require a `.a' archive for static linking (except MSVC,
14582 # which needs '.lib').
14583 libext=a
14585 with_gnu_ld="$lt_cv_prog_gnu_ld"
14587 old_CC="$CC"
14588 old_CFLAGS="$CFLAGS"
14590 # Set sane defaults for various variables
14591 test -z "$CC" && CC=cc
14592 test -z "$LTCC" && LTCC=$CC
14593 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14594 test -z "$LD" && LD=ld
14595 test -z "$ac_objext" && ac_objext=o
14597 for cc_temp in $compiler""; do
14598 case $cc_temp in
14599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14601 \-*) ;;
14602 *) break;;
14603 esac
14604 done
14605 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14608 # Only perform the check for file, if the check method requires it
14609 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14610 case $deplibs_check_method in
14611 file_magic*)
14612 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14614 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14615 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14616 $as_echo_n "(cached) " >&6
14617 else
14618 case $MAGIC_CMD in
14619 [\\/*] | ?:[\\/]*)
14620 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14623 lt_save_MAGIC_CMD="$MAGIC_CMD"
14624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14625 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14626 for ac_dir in $ac_dummy; do
14627 IFS="$lt_save_ifs"
14628 test -z "$ac_dir" && ac_dir=.
14629 if test -f $ac_dir/${ac_tool_prefix}file; then
14630 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14631 if test -n "$file_magic_test_file"; then
14632 case $deplibs_check_method in
14633 "file_magic "*)
14634 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14635 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14636 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14637 $EGREP "$file_magic_regex" > /dev/null; then
14639 else
14640 cat <<_LT_EOF 1>&2
14642 *** Warning: the command libtool uses to detect shared libraries,
14643 *** $file_magic_cmd, produces output that libtool cannot recognize.
14644 *** The result is that libtool may fail to recognize shared libraries
14645 *** as such. This will affect the creation of libtool libraries that
14646 *** depend on shared libraries, but programs linked with such libtool
14647 *** libraries will work regardless of this problem. Nevertheless, you
14648 *** may want to report the problem to your system manager and/or to
14649 *** bug-libtool@gnu.org
14651 _LT_EOF
14652 fi ;;
14653 esac
14655 break
14657 done
14658 IFS="$lt_save_ifs"
14659 MAGIC_CMD="$lt_save_MAGIC_CMD"
14661 esac
14664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14665 if test -n "$MAGIC_CMD"; then
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14667 $as_echo "$MAGIC_CMD" >&6; }
14668 else
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14670 $as_echo "no" >&6; }
14677 if test -z "$lt_cv_path_MAGIC_CMD"; then
14678 if test -n "$ac_tool_prefix"; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14680 $as_echo_n "checking for file... " >&6; }
14681 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14682 $as_echo_n "(cached) " >&6
14683 else
14684 case $MAGIC_CMD in
14685 [\\/*] | ?:[\\/]*)
14686 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14689 lt_save_MAGIC_CMD="$MAGIC_CMD"
14690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14691 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14692 for ac_dir in $ac_dummy; do
14693 IFS="$lt_save_ifs"
14694 test -z "$ac_dir" && ac_dir=.
14695 if test -f $ac_dir/file; then
14696 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14697 if test -n "$file_magic_test_file"; then
14698 case $deplibs_check_method in
14699 "file_magic "*)
14700 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14702 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14703 $EGREP "$file_magic_regex" > /dev/null; then
14705 else
14706 cat <<_LT_EOF 1>&2
14708 *** Warning: the command libtool uses to detect shared libraries,
14709 *** $file_magic_cmd, produces output that libtool cannot recognize.
14710 *** The result is that libtool may fail to recognize shared libraries
14711 *** as such. This will affect the creation of libtool libraries that
14712 *** depend on shared libraries, but programs linked with such libtool
14713 *** libraries will work regardless of this problem. Nevertheless, you
14714 *** may want to report the problem to your system manager and/or to
14715 *** bug-libtool@gnu.org
14717 _LT_EOF
14718 fi ;;
14719 esac
14721 break
14723 done
14724 IFS="$lt_save_ifs"
14725 MAGIC_CMD="$lt_save_MAGIC_CMD"
14727 esac
14730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14731 if test -n "$MAGIC_CMD"; then
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14733 $as_echo "$MAGIC_CMD" >&6; }
14734 else
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736 $as_echo "no" >&6; }
14740 else
14741 MAGIC_CMD=:
14747 esac
14749 # Use C for the default configuration in the libtool script
14751 lt_save_CC="$CC"
14752 ac_ext=c
14753 ac_cpp='$CPP $CPPFLAGS'
14754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14759 # Source file extension for C test sources.
14760 ac_ext=c
14762 # Object file extension for compiled C test sources.
14763 objext=o
14764 objext=$objext
14766 # Code to be used in simple compile tests
14767 lt_simple_compile_test_code="int some_variable = 0;"
14769 # Code to be used in simple link tests
14770 lt_simple_link_test_code='int main(){return(0);}'
14778 # If no C compiler was specified, use CC.
14779 LTCC=${LTCC-"$CC"}
14781 # If no C compiler flags were specified, use CFLAGS.
14782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14784 # Allow CC to be a program name with arguments.
14785 compiler=$CC
14787 # Save the default compiler, since it gets overwritten when the other
14788 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14789 compiler_DEFAULT=$CC
14791 # save warnings/boilerplate of simple test code
14792 ac_outfile=conftest.$ac_objext
14793 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14794 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14795 _lt_compiler_boilerplate=`cat conftest.err`
14796 $RM conftest*
14798 ac_outfile=conftest.$ac_objext
14799 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14800 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14801 _lt_linker_boilerplate=`cat conftest.err`
14802 $RM -r conftest*
14805 ## CAVEAT EMPTOR:
14806 ## There is no encapsulation within the following macros, do not change
14807 ## the running order or otherwise move them around unless you know exactly
14808 ## what you are doing...
14809 if test -n "$compiler"; then
14811 lt_prog_compiler_no_builtin_flag=
14813 if test "$GCC" = yes; then
14814 case $cc_basename in
14815 nvcc*)
14816 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14818 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14819 esac
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14822 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14823 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14824 $as_echo_n "(cached) " >&6
14825 else
14826 lt_cv_prog_compiler_rtti_exceptions=no
14827 ac_outfile=conftest.$ac_objext
14828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14829 lt_compiler_flag="-fno-rtti -fno-exceptions"
14830 # Insert the option either (1) after the last *FLAGS variable, or
14831 # (2) before a word containing "conftest.", or (3) at the end.
14832 # Note that $ac_compile itself does not contain backslashes and begins
14833 # with a dollar sign (not a hyphen), so the echo should work correctly.
14834 # The option is referenced via a variable to avoid confusing sed.
14835 lt_compile=`echo "$ac_compile" | $SED \
14836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14838 -e 's:$: $lt_compiler_flag:'`
14839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14840 (eval "$lt_compile" 2>conftest.err)
14841 ac_status=$?
14842 cat conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 if (exit $ac_status) && test -s "$ac_outfile"; then
14845 # The compiler can only warn and ignore the option if not recognized
14846 # So say no if there are warnings other than the usual output.
14847 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14850 lt_cv_prog_compiler_rtti_exceptions=yes
14853 $RM conftest*
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14857 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14859 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14860 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14861 else
14872 lt_prog_compiler_wl=
14873 lt_prog_compiler_pic=
14874 lt_prog_compiler_static=
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14877 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14879 if test "$GCC" = yes; then
14880 lt_prog_compiler_wl='-Wl,'
14881 lt_prog_compiler_static='-static'
14883 case $host_os in
14884 aix*)
14885 # All AIX code is PIC.
14886 if test "$host_cpu" = ia64; then
14887 # AIX 5 now supports IA64 processor
14888 lt_prog_compiler_static='-Bstatic'
14890 lt_prog_compiler_pic='-fPIC'
14893 amigaos*)
14894 case $host_cpu in
14895 powerpc)
14896 # see comment about AmigaOS4 .so support
14897 lt_prog_compiler_pic='-fPIC'
14899 m68k)
14900 # FIXME: we need at least 68020 code to build shared libraries, but
14901 # adding the `-m68020' flag to GCC prevents building anything better,
14902 # like `-m68040'.
14903 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14905 esac
14908 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14909 # PIC is the default for these OSes.
14912 mingw* | cygwin* | pw32* | os2* | cegcc*)
14913 # This hack is so that the source file can tell whether it is being
14914 # built for inclusion in a dll (and should export symbols for example).
14915 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14916 # (--disable-auto-import) libraries
14917 lt_prog_compiler_pic='-DDLL_EXPORT'
14920 darwin* | rhapsody*)
14921 # PIC is the default on this platform
14922 # Common symbols not allowed in MH_DYLIB files
14923 lt_prog_compiler_pic='-fno-common'
14926 haiku*)
14927 # PIC is the default for Haiku.
14928 # The "-static" flag exists, but is broken.
14929 lt_prog_compiler_static=
14932 hpux*)
14933 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14934 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14935 # sets the default TLS model and affects inlining.
14936 case $host_cpu in
14937 hppa*64*)
14938 # +Z the default
14941 lt_prog_compiler_pic='-fPIC'
14943 esac
14946 interix[3-9]*)
14947 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14948 # Instead, we relocate shared libraries at runtime.
14951 msdosdjgpp*)
14952 # Just because we use GCC doesn't mean we suddenly get shared libraries
14953 # on systems that don't support them.
14954 lt_prog_compiler_can_build_shared=no
14955 enable_shared=no
14958 *nto* | *qnx*)
14959 # QNX uses GNU C++, but need to define -shared option too, otherwise
14960 # it will coredump.
14961 lt_prog_compiler_pic='-fPIC -shared'
14964 sysv4*MP*)
14965 if test -d /usr/nec; then
14966 lt_prog_compiler_pic=-Kconform_pic
14971 lt_prog_compiler_pic='-fPIC'
14973 esac
14975 case $cc_basename in
14976 nvcc*) # Cuda Compiler Driver 2.2
14977 lt_prog_compiler_wl='-Xlinker '
14978 lt_prog_compiler_pic='-Xcompiler -fPIC'
14980 esac
14981 else
14982 # PORTME Check for flag to pass linker flags through the system compiler.
14983 case $host_os in
14984 aix*)
14985 lt_prog_compiler_wl='-Wl,'
14986 if test "$host_cpu" = ia64; then
14987 # AIX 5 now supports IA64 processor
14988 lt_prog_compiler_static='-Bstatic'
14989 else
14990 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14994 mingw* | cygwin* | pw32* | os2* | cegcc*)
14995 # This hack is so that the source file can tell whether it is being
14996 # built for inclusion in a dll (and should export symbols for example).
14997 lt_prog_compiler_pic='-DDLL_EXPORT'
15000 hpux9* | hpux10* | hpux11*)
15001 lt_prog_compiler_wl='-Wl,'
15002 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15003 # not for PA HP-UX.
15004 case $host_cpu in
15005 hppa*64*|ia64*)
15006 # +Z the default
15009 lt_prog_compiler_pic='+Z'
15011 esac
15012 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15013 lt_prog_compiler_static='${wl}-a ${wl}archive'
15016 irix5* | irix6* | nonstopux*)
15017 lt_prog_compiler_wl='-Wl,'
15018 # PIC (with -KPIC) is the default.
15019 lt_prog_compiler_static='-non_shared'
15022 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15023 case $cc_basename in
15024 # old Intel for x86_64 which still supported -KPIC.
15025 ecc*)
15026 lt_prog_compiler_wl='-Wl,'
15027 lt_prog_compiler_pic='-KPIC'
15028 lt_prog_compiler_static='-static'
15030 # icc used to be incompatible with GCC.
15031 # ICC 10 doesn't accept -KPIC any more.
15032 icc* | ifort*)
15033 lt_prog_compiler_wl='-Wl,'
15034 lt_prog_compiler_pic='-fPIC'
15035 lt_prog_compiler_static='-static'
15037 # Lahey Fortran 8.1.
15038 lf95*)
15039 lt_prog_compiler_wl='-Wl,'
15040 lt_prog_compiler_pic='--shared'
15041 lt_prog_compiler_static='--static'
15043 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15044 # Portland Group compilers (*not* the Pentium gcc compiler,
15045 # which looks to be a dead project)
15046 lt_prog_compiler_wl='-Wl,'
15047 lt_prog_compiler_pic='-fpic'
15048 lt_prog_compiler_static='-Bstatic'
15050 ccc*)
15051 lt_prog_compiler_wl='-Wl,'
15052 # All Alpha code is PIC.
15053 lt_prog_compiler_static='-non_shared'
15055 xl* | bgxl* | bgf* | mpixl*)
15056 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15057 lt_prog_compiler_wl='-Wl,'
15058 lt_prog_compiler_pic='-qpic'
15059 lt_prog_compiler_static='-qstaticlink'
15062 case `$CC -V 2>&1 | sed 5q` in
15063 *Sun\ F* | *Sun*Fortran*)
15064 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15065 lt_prog_compiler_pic='-KPIC'
15066 lt_prog_compiler_static='-Bstatic'
15067 lt_prog_compiler_wl=''
15069 *Sun\ C*)
15070 # Sun C 5.9
15071 lt_prog_compiler_pic='-KPIC'
15072 lt_prog_compiler_static='-Bstatic'
15073 lt_prog_compiler_wl='-Wl,'
15075 esac
15077 esac
15080 newsos6)
15081 lt_prog_compiler_pic='-KPIC'
15082 lt_prog_compiler_static='-Bstatic'
15085 *nto* | *qnx*)
15086 # QNX uses GNU C++, but need to define -shared option too, otherwise
15087 # it will coredump.
15088 lt_prog_compiler_pic='-fPIC -shared'
15091 osf3* | osf4* | osf5*)
15092 lt_prog_compiler_wl='-Wl,'
15093 # All OSF/1 code is PIC.
15094 lt_prog_compiler_static='-non_shared'
15097 rdos*)
15098 lt_prog_compiler_static='-non_shared'
15101 solaris*)
15102 lt_prog_compiler_pic='-KPIC'
15103 lt_prog_compiler_static='-Bstatic'
15104 case $cc_basename in
15105 f77* | f90* | f95*)
15106 lt_prog_compiler_wl='-Qoption ld ';;
15108 lt_prog_compiler_wl='-Wl,';;
15109 esac
15112 sunos4*)
15113 lt_prog_compiler_wl='-Qoption ld '
15114 lt_prog_compiler_pic='-PIC'
15115 lt_prog_compiler_static='-Bstatic'
15118 sysv4 | sysv4.2uw2* | sysv4.3*)
15119 lt_prog_compiler_wl='-Wl,'
15120 lt_prog_compiler_pic='-KPIC'
15121 lt_prog_compiler_static='-Bstatic'
15124 sysv4*MP*)
15125 if test -d /usr/nec ;then
15126 lt_prog_compiler_pic='-Kconform_pic'
15127 lt_prog_compiler_static='-Bstatic'
15131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15132 lt_prog_compiler_wl='-Wl,'
15133 lt_prog_compiler_pic='-KPIC'
15134 lt_prog_compiler_static='-Bstatic'
15137 unicos*)
15138 lt_prog_compiler_wl='-Wl,'
15139 lt_prog_compiler_can_build_shared=no
15142 uts4*)
15143 lt_prog_compiler_pic='-pic'
15144 lt_prog_compiler_static='-Bstatic'
15148 lt_prog_compiler_can_build_shared=no
15150 esac
15153 case $host_os in
15154 # For platforms which do not support PIC, -DPIC is meaningless:
15155 *djgpp*)
15156 lt_prog_compiler_pic=
15159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15161 esac
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15163 $as_echo "$lt_prog_compiler_pic" >&6; }
15171 # Check to make sure the PIC flag actually works.
15173 if test -n "$lt_prog_compiler_pic"; then
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15175 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15176 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15177 $as_echo_n "(cached) " >&6
15178 else
15179 lt_cv_prog_compiler_pic_works=no
15180 ac_outfile=conftest.$ac_objext
15181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15182 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15183 # Insert the option either (1) after the last *FLAGS variable, or
15184 # (2) before a word containing "conftest.", or (3) at the end.
15185 # Note that $ac_compile itself does not contain backslashes and begins
15186 # with a dollar sign (not a hyphen), so the echo should work correctly.
15187 # The option is referenced via a variable to avoid confusing sed.
15188 lt_compile=`echo "$ac_compile" | $SED \
15189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15191 -e 's:$: $lt_compiler_flag:'`
15192 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15193 (eval "$lt_compile" 2>conftest.err)
15194 ac_status=$?
15195 cat conftest.err >&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 if (exit $ac_status) && test -s "$ac_outfile"; then
15198 # The compiler can only warn and ignore the option if not recognized
15199 # So say no if there are warnings other than the usual output.
15200 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15202 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15203 lt_cv_prog_compiler_pic_works=yes
15206 $RM conftest*
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15210 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15212 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15213 case $lt_prog_compiler_pic in
15214 "" | " "*) ;;
15215 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15216 esac
15217 else
15218 lt_prog_compiler_pic=
15219 lt_prog_compiler_can_build_shared=no
15230 # Check to make sure the static flag actually works.
15232 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15234 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15235 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15236 $as_echo_n "(cached) " >&6
15237 else
15238 lt_cv_prog_compiler_static_works=no
15239 save_LDFLAGS="$LDFLAGS"
15240 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15241 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15243 # The linker can only warn and ignore the option if not recognized
15244 # So say no if there are warnings
15245 if test -s conftest.err; then
15246 # Append any errors to the config.log.
15247 cat conftest.err 1>&5
15248 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15250 if diff conftest.exp conftest.er2 >/dev/null; then
15251 lt_cv_prog_compiler_static_works=yes
15253 else
15254 lt_cv_prog_compiler_static_works=yes
15257 $RM -r conftest*
15258 LDFLAGS="$save_LDFLAGS"
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15262 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15264 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15266 else
15267 lt_prog_compiler_static=
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15277 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15278 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15279 $as_echo_n "(cached) " >&6
15280 else
15281 lt_cv_prog_compiler_c_o=no
15282 $RM -r conftest 2>/dev/null
15283 mkdir conftest
15284 cd conftest
15285 mkdir out
15286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15288 lt_compiler_flag="-o out/conftest2.$ac_objext"
15289 # Insert the option either (1) after the last *FLAGS variable, or
15290 # (2) before a word containing "conftest.", or (3) at the end.
15291 # Note that $ac_compile itself does not contain backslashes and begins
15292 # with a dollar sign (not a hyphen), so the echo should work correctly.
15293 lt_compile=`echo "$ac_compile" | $SED \
15294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15296 -e 's:$: $lt_compiler_flag:'`
15297 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15298 (eval "$lt_compile" 2>out/conftest.err)
15299 ac_status=$?
15300 cat out/conftest.err >&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15303 then
15304 # The compiler can only warn and ignore the option if not recognized
15305 # So say no if there are warnings
15306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15309 lt_cv_prog_compiler_c_o=yes
15312 chmod u+w . 2>&5
15313 $RM conftest*
15314 # SGI C++ compiler will create directory out/ii_files/ for
15315 # template instantiation
15316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15317 $RM out/* && rmdir out
15318 cd ..
15319 $RM -r conftest
15320 $RM conftest*
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15324 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15332 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15333 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15334 $as_echo_n "(cached) " >&6
15335 else
15336 lt_cv_prog_compiler_c_o=no
15337 $RM -r conftest 2>/dev/null
15338 mkdir conftest
15339 cd conftest
15340 mkdir out
15341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15343 lt_compiler_flag="-o out/conftest2.$ac_objext"
15344 # Insert the option either (1) after the last *FLAGS variable, or
15345 # (2) before a word containing "conftest.", or (3) at the end.
15346 # Note that $ac_compile itself does not contain backslashes and begins
15347 # with a dollar sign (not a hyphen), so the echo should work correctly.
15348 lt_compile=`echo "$ac_compile" | $SED \
15349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15351 -e 's:$: $lt_compiler_flag:'`
15352 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15353 (eval "$lt_compile" 2>out/conftest.err)
15354 ac_status=$?
15355 cat out/conftest.err >&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15358 then
15359 # The compiler can only warn and ignore the option if not recognized
15360 # So say no if there are warnings
15361 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15364 lt_cv_prog_compiler_c_o=yes
15367 chmod u+w . 2>&5
15368 $RM conftest*
15369 # SGI C++ compiler will create directory out/ii_files/ for
15370 # template instantiation
15371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15372 $RM out/* && rmdir out
15373 cd ..
15374 $RM -r conftest
15375 $RM conftest*
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15379 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15384 hard_links="nottested"
15385 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15386 # do not overwrite the value of need_locks provided by the user
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15388 $as_echo_n "checking if we can lock with hard links... " >&6; }
15389 hard_links=yes
15390 $RM conftest*
15391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15392 touch conftest.a
15393 ln conftest.a conftest.b 2>&5 || hard_links=no
15394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15396 $as_echo "$hard_links" >&6; }
15397 if test "$hard_links" = no; then
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15399 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15400 need_locks=warn
15402 else
15403 need_locks=no
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15412 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15414 runpath_var=
15415 allow_undefined_flag=
15416 always_export_symbols=no
15417 archive_cmds=
15418 archive_expsym_cmds=
15419 compiler_needs_object=no
15420 enable_shared_with_static_runtimes=no
15421 export_dynamic_flag_spec=
15422 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15423 hardcode_automatic=no
15424 hardcode_direct=no
15425 hardcode_direct_absolute=no
15426 hardcode_libdir_flag_spec=
15427 hardcode_libdir_flag_spec_ld=
15428 hardcode_libdir_separator=
15429 hardcode_minus_L=no
15430 hardcode_shlibpath_var=unsupported
15431 inherit_rpath=no
15432 link_all_deplibs=unknown
15433 module_cmds=
15434 module_expsym_cmds=
15435 old_archive_from_new_cmds=
15436 old_archive_from_expsyms_cmds=
15437 thread_safe_flag_spec=
15438 whole_archive_flag_spec=
15439 # include_expsyms should be a list of space-separated symbols to be *always*
15440 # included in the symbol list
15441 include_expsyms=
15442 # exclude_expsyms can be an extended regexp of symbols to exclude
15443 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15444 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15445 # as well as any symbol that contains `d'.
15446 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15447 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15448 # platforms (ab)use it in PIC code, but their linkers get confused if
15449 # the symbol is explicitly referenced. Since portable code cannot
15450 # rely on this symbol name, it's probably fine to never include it in
15451 # preloaded symbol tables.
15452 # Exclude shared library initialization/finalization symbols.
15453 extract_expsyms_cmds=
15455 case $host_os in
15456 cygwin* | mingw* | pw32* | cegcc*)
15457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15458 # When not using gcc, we currently assume that we are using
15459 # Microsoft Visual C++.
15460 if test "$GCC" != yes; then
15461 with_gnu_ld=no
15464 interix*)
15465 # we just hope/assume this is gcc and not c89 (= MSVC++)
15466 with_gnu_ld=yes
15468 openbsd*)
15469 with_gnu_ld=no
15471 esac
15473 ld_shlibs=yes
15475 # On some targets, GNU ld is compatible enough with the native linker
15476 # that we're better off using the native interface for both.
15477 lt_use_gnu_ld_interface=no
15478 if test "$with_gnu_ld" = yes; then
15479 case $host_os in
15480 aix*)
15481 # The AIX port of GNU ld has always aspired to compatibility
15482 # with the native linker. However, as the warning in the GNU ld
15483 # block says, versions before 2.19.5* couldn't really create working
15484 # shared libraries, regardless of the interface used.
15485 case `$LD -v 2>&1` in
15486 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15487 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15488 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15490 lt_use_gnu_ld_interface=yes
15492 esac
15495 lt_use_gnu_ld_interface=yes
15497 esac
15500 if test "$lt_use_gnu_ld_interface" = yes; then
15501 # If archive_cmds runs LD, not CC, wlarc should be empty
15502 wlarc='${wl}'
15504 # Set some defaults for GNU ld with shared library support. These
15505 # are reset later if shared libraries are not supported. Putting them
15506 # here allows them to be overridden if necessary.
15507 runpath_var=LD_RUN_PATH
15508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15509 export_dynamic_flag_spec='${wl}--export-dynamic'
15510 # ancient GNU ld didn't support --whole-archive et. al.
15511 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15512 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15513 else
15514 whole_archive_flag_spec=
15516 supports_anon_versioning=no
15517 case `$LD -v 2>&1` in
15518 *GNU\ gold*) supports_anon_versioning=yes ;;
15519 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15520 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15521 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15522 *\ 2.11.*) ;; # other 2.11 versions
15523 *) supports_anon_versioning=yes ;;
15524 esac
15526 # See if GNU ld supports shared libraries.
15527 case $host_os in
15528 aix[3-9]*)
15529 # On AIX/PPC, the GNU linker is very broken
15530 if test "$host_cpu" != ia64; then
15531 ld_shlibs=no
15532 cat <<_LT_EOF 1>&2
15534 *** Warning: the GNU linker, at least up to release 2.19, is reported
15535 *** to be unable to reliably create shared libraries on AIX.
15536 *** Therefore, libtool is disabling shared libraries support. If you
15537 *** really care for shared libraries, you may want to install binutils
15538 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15539 *** You will then need to restart the configuration process.
15541 _LT_EOF
15545 amigaos*)
15546 case $host_cpu in
15547 powerpc)
15548 # see comment about AmigaOS4 .so support
15549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15550 archive_expsym_cmds=''
15552 m68k)
15553 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)'
15554 hardcode_libdir_flag_spec='-L$libdir'
15555 hardcode_minus_L=yes
15557 esac
15560 beos*)
15561 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15562 allow_undefined_flag=unsupported
15563 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15564 # support --undefined. This deserves some investigation. FIXME
15565 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15566 else
15567 ld_shlibs=no
15571 cygwin* | mingw* | pw32* | cegcc*)
15572 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15573 # as there is no search path for DLLs.
15574 hardcode_libdir_flag_spec='-L$libdir'
15575 export_dynamic_flag_spec='${wl}--export-all-symbols'
15576 allow_undefined_flag=unsupported
15577 always_export_symbols=no
15578 enable_shared_with_static_runtimes=yes
15579 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15581 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15583 # If the export-symbols file already is a .def file (1st line
15584 # is EXPORTS), use it as is; otherwise, prepend...
15585 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15586 cp $export_symbols $output_objdir/$soname.def;
15587 else
15588 echo EXPORTS > $output_objdir/$soname.def;
15589 cat $export_symbols >> $output_objdir/$soname.def;
15591 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15592 else
15593 ld_shlibs=no
15597 haiku*)
15598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15599 link_all_deplibs=yes
15602 interix[3-9]*)
15603 hardcode_direct=no
15604 hardcode_shlibpath_var=no
15605 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15606 export_dynamic_flag_spec='${wl}-E'
15607 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15608 # Instead, shared libraries are loaded at an image base (0x10000000 by
15609 # default) and relocated if they conflict, which is a slow very memory
15610 # consuming and fragmenting process. To avoid this, we pick a random,
15611 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15612 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15613 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15614 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'
15617 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15618 tmp_diet=no
15619 if test "$host_os" = linux-dietlibc; then
15620 case $cc_basename in
15621 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15622 esac
15624 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15625 && test "$tmp_diet" = no
15626 then
15627 tmp_addflag=
15628 tmp_sharedflag='-shared'
15629 case $cc_basename,$host_cpu in
15630 pgcc*) # Portland Group C compiler
15631 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'
15632 tmp_addflag=' $pic_flag'
15634 pgf77* | pgf90* | pgf95* | pgfortran*)
15635 # Portland Group f77 and f90 compilers
15636 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'
15637 tmp_addflag=' $pic_flag -Mnomain' ;;
15638 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15639 tmp_addflag=' -i_dynamic' ;;
15640 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15641 tmp_addflag=' -i_dynamic -nofor_main' ;;
15642 ifc* | ifort*) # Intel Fortran compiler
15643 tmp_addflag=' -nofor_main' ;;
15644 lf95*) # Lahey Fortran 8.1
15645 whole_archive_flag_spec=
15646 tmp_sharedflag='--shared' ;;
15647 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15648 tmp_sharedflag='-qmkshrobj'
15649 tmp_addflag= ;;
15650 nvcc*) # Cuda Compiler Driver 2.2
15651 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'
15652 compiler_needs_object=yes
15654 esac
15655 case `$CC -V 2>&1 | sed 5q` in
15656 *Sun\ C*) # Sun C 5.9
15657 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'
15658 compiler_needs_object=yes
15659 tmp_sharedflag='-G' ;;
15660 *Sun\ F*) # Sun Fortran 8.3
15661 tmp_sharedflag='-G' ;;
15662 esac
15663 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15665 if test "x$supports_anon_versioning" = xyes; then
15666 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15667 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15668 echo "local: *; };" >> $output_objdir/$libname.ver~
15669 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15672 case $cc_basename in
15673 xlf* | bgf* | bgxlf* | mpixlf*)
15674 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15675 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15676 hardcode_libdir_flag_spec=
15677 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15678 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15679 if test "x$supports_anon_versioning" = xyes; then
15680 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15681 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15682 echo "local: *; };" >> $output_objdir/$libname.ver~
15683 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15686 esac
15687 else
15688 ld_shlibs=no
15692 netbsd*)
15693 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15694 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15695 wlarc=
15696 else
15697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15698 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15702 solaris*)
15703 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15704 ld_shlibs=no
15705 cat <<_LT_EOF 1>&2
15707 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15708 *** create shared libraries on Solaris systems. Therefore, libtool
15709 *** is disabling shared libraries support. We urge you to upgrade GNU
15710 *** binutils to release 2.9.1 or newer. Another option is to modify
15711 *** your PATH or compiler configuration so that the native linker is
15712 *** used, and then restart.
15714 _LT_EOF
15715 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15717 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15718 else
15719 ld_shlibs=no
15723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15724 case `$LD -v 2>&1` in
15725 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15726 ld_shlibs=no
15727 cat <<_LT_EOF 1>&2
15729 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15730 *** reliably create shared libraries on SCO systems. Therefore, libtool
15731 *** is disabling shared libraries support. We urge you to upgrade GNU
15732 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15733 *** your PATH or compiler configuration so that the native linker is
15734 *** used, and then restart.
15736 _LT_EOF
15739 # For security reasons, it is highly recommended that you always
15740 # use absolute paths for naming shared libraries, and exclude the
15741 # DT_RUNPATH tag from executables and libraries. But doing so
15742 # requires that you compile everything twice, which is a pain.
15743 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15747 else
15748 ld_shlibs=no
15751 esac
15754 sunos4*)
15755 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15756 wlarc=
15757 hardcode_direct=yes
15758 hardcode_shlibpath_var=no
15762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15765 else
15766 ld_shlibs=no
15769 esac
15771 if test "$ld_shlibs" = no; then
15772 runpath_var=
15773 hardcode_libdir_flag_spec=
15774 export_dynamic_flag_spec=
15775 whole_archive_flag_spec=
15777 else
15778 # PORTME fill in a description of your system's linker (not GNU ld)
15779 case $host_os in
15780 aix3*)
15781 allow_undefined_flag=unsupported
15782 always_export_symbols=yes
15783 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'
15784 # Note: this linker hardcodes the directories in LIBPATH if there
15785 # are no directories specified by -L.
15786 hardcode_minus_L=yes
15787 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15788 # Neither direct hardcoding nor static linking is supported with a
15789 # broken collect2.
15790 hardcode_direct=unsupported
15794 aix[4-9]*)
15795 if test "$host_cpu" = ia64; then
15796 # On IA64, the linker does run time linking by default, so we don't
15797 # have to do anything special.
15798 aix_use_runtimelinking=no
15799 exp_sym_flag='-Bexport'
15800 no_entry_flag=""
15801 else
15802 # If we're using GNU nm, then we don't want the "-C" option.
15803 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15804 # Also, AIX nm treats weak defined symbols like other global
15805 # defined symbols, whereas GNU nm marks them as "W".
15806 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15807 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'
15808 else
15809 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'
15811 aix_use_runtimelinking=no
15813 # Test if we are trying to use run time linking or normal
15814 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15815 # need to do runtime linking.
15816 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15817 for ld_flag in $LDFLAGS; do
15818 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15819 aix_use_runtimelinking=yes
15820 break
15822 done
15824 esac
15826 exp_sym_flag='-bexport'
15827 no_entry_flag='-bnoentry'
15830 # When large executables or shared objects are built, AIX ld can
15831 # have problems creating the table of contents. If linking a library
15832 # or program results in "error TOC overflow" add -mminimal-toc to
15833 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15834 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15836 archive_cmds=''
15837 hardcode_direct=yes
15838 hardcode_direct_absolute=yes
15839 hardcode_libdir_separator=':'
15840 link_all_deplibs=yes
15841 file_list_spec='${wl}-f,'
15843 if test "$GCC" = yes; then
15844 case $host_os in aix4.[012]|aix4.[012].*)
15845 # We only want to do this on AIX 4.2 and lower, the check
15846 # below for broken collect2 doesn't work under 4.3+
15847 collect2name=`${CC} -print-prog-name=collect2`
15848 if test -f "$collect2name" &&
15849 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15850 then
15851 # We have reworked collect2
15853 else
15854 # We have old collect2
15855 hardcode_direct=unsupported
15856 # It fails to find uninstalled libraries when the uninstalled
15857 # path is not listed in the libpath. Setting hardcode_minus_L
15858 # to unsupported forces relinking
15859 hardcode_minus_L=yes
15860 hardcode_libdir_flag_spec='-L$libdir'
15861 hardcode_libdir_separator=
15864 esac
15865 shared_flag='-shared'
15866 if test "$aix_use_runtimelinking" = yes; then
15867 shared_flag="$shared_flag "'${wl}-G'
15869 else
15870 # not using gcc
15871 if test "$host_cpu" = ia64; then
15872 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15873 # chokes on -Wl,-G. The following line is correct:
15874 shared_flag='-G'
15875 else
15876 if test "$aix_use_runtimelinking" = yes; then
15877 shared_flag='${wl}-G'
15878 else
15879 shared_flag='${wl}-bM:SRE'
15884 export_dynamic_flag_spec='${wl}-bexpall'
15885 # It seems that -bexpall does not export symbols beginning with
15886 # underscore (_), so it is better to generate a list of symbols to export.
15887 always_export_symbols=yes
15888 if test "$aix_use_runtimelinking" = yes; then
15889 # Warning - without using the other runtime loading flags (-brtl),
15890 # -berok will link without error, but may produce a broken library.
15891 allow_undefined_flag='-berok'
15892 # Determine the default libpath from the value encoded in an
15893 # empty executable.
15894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895 /* end confdefs.h. */
15898 main ()
15902 return 0;
15904 _ACEOF
15905 if ac_fn_c_try_link "$LINENO"; then :
15907 lt_aix_libpath_sed='
15908 /Import File Strings/,/^$/ {
15909 /^0/ {
15910 s/^0 *\(.*\)$/\1/
15914 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15915 # Check for a 64-bit object if we didn't find anything.
15916 if test -z "$aix_libpath"; then
15917 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15920 rm -f core conftest.err conftest.$ac_objext \
15921 conftest$ac_exeext conftest.$ac_ext
15922 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15924 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15925 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"
15926 else
15927 if test "$host_cpu" = ia64; then
15928 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15929 allow_undefined_flag="-z nodefs"
15930 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"
15931 else
15932 # Determine the default libpath from the value encoded in an
15933 # empty executable.
15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15935 /* end confdefs.h. */
15938 main ()
15942 return 0;
15944 _ACEOF
15945 if ac_fn_c_try_link "$LINENO"; then :
15947 lt_aix_libpath_sed='
15948 /Import File Strings/,/^$/ {
15949 /^0/ {
15950 s/^0 *\(.*\)$/\1/
15954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15955 # Check for a 64-bit object if we didn't find anything.
15956 if test -z "$aix_libpath"; then
15957 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15960 rm -f core conftest.err conftest.$ac_objext \
15961 conftest$ac_exeext conftest.$ac_ext
15962 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15964 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15965 # Warning - without using the other run time loading flags,
15966 # -berok will link without error, but may produce a broken library.
15967 no_undefined_flag=' ${wl}-bernotok'
15968 allow_undefined_flag=' ${wl}-berok'
15969 if test "$with_gnu_ld" = yes; then
15970 # We only use this code for GNU lds that support --whole-archive.
15971 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15972 else
15973 # Exported symbols can be pulled into shared objects from archives
15974 whole_archive_flag_spec='$convenience'
15976 archive_cmds_need_lc=yes
15977 # This is similar to how AIX traditionally builds its shared libraries.
15978 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'
15983 amigaos*)
15984 case $host_cpu in
15985 powerpc)
15986 # see comment about AmigaOS4 .so support
15987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15988 archive_expsym_cmds=''
15990 m68k)
15991 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)'
15992 hardcode_libdir_flag_spec='-L$libdir'
15993 hardcode_minus_L=yes
15995 esac
15998 bsdi[45]*)
15999 export_dynamic_flag_spec=-rdynamic
16002 cygwin* | mingw* | pw32* | cegcc*)
16003 # When not using gcc, we currently assume that we are using
16004 # Microsoft Visual C++.
16005 # hardcode_libdir_flag_spec is actually meaningless, as there is
16006 # no search path for DLLs.
16007 hardcode_libdir_flag_spec=' '
16008 allow_undefined_flag=unsupported
16009 # Tell ltmain to make .lib files, not .a files.
16010 libext=lib
16011 # Tell ltmain to make .dll files, not .so files.
16012 shrext_cmds=".dll"
16013 # FIXME: Setting linknames here is a bad hack.
16014 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16015 # The linker will automatically build a .lib file if we build a DLL.
16016 old_archive_from_new_cmds='true'
16017 # FIXME: Should let the user specify the lib program.
16018 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16019 fix_srcfile_path='`cygpath -w "$srcfile"`'
16020 enable_shared_with_static_runtimes=yes
16023 darwin* | rhapsody*)
16026 archive_cmds_need_lc=no
16027 hardcode_direct=no
16028 hardcode_automatic=yes
16029 hardcode_shlibpath_var=unsupported
16030 if test "$lt_cv_ld_force_load" = "yes"; then
16031 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\"`'
16032 else
16033 whole_archive_flag_spec=''
16035 link_all_deplibs=yes
16036 allow_undefined_flag="$_lt_dar_allow_undefined"
16037 case $cc_basename in
16038 ifort*) _lt_dar_can_shared=yes ;;
16039 *) _lt_dar_can_shared=$GCC ;;
16040 esac
16041 if test "$_lt_dar_can_shared" = "yes"; then
16042 output_verbose_link_cmd=func_echo_all
16043 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16044 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16045 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}"
16046 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}"
16048 else
16049 ld_shlibs=no
16054 dgux*)
16055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16056 hardcode_libdir_flag_spec='-L$libdir'
16057 hardcode_shlibpath_var=no
16060 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16061 # support. Future versions do this automatically, but an explicit c++rt0.o
16062 # does not break anything, and helps significantly (at the cost of a little
16063 # extra space).
16064 freebsd2.2*)
16065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16066 hardcode_libdir_flag_spec='-R$libdir'
16067 hardcode_direct=yes
16068 hardcode_shlibpath_var=no
16071 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16072 freebsd2.*)
16073 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16074 hardcode_direct=yes
16075 hardcode_minus_L=yes
16076 hardcode_shlibpath_var=no
16079 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16080 freebsd* | dragonfly*)
16081 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16082 hardcode_libdir_flag_spec='-R$libdir'
16083 hardcode_direct=yes
16084 hardcode_shlibpath_var=no
16087 hpux9*)
16088 if test "$GCC" = yes; then
16089 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'
16090 else
16091 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'
16093 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16094 hardcode_libdir_separator=:
16095 hardcode_direct=yes
16097 # hardcode_minus_L: Not really in the search PATH,
16098 # but as the default location of the library.
16099 hardcode_minus_L=yes
16100 export_dynamic_flag_spec='${wl}-E'
16103 hpux10*)
16104 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16105 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16106 else
16107 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16109 if test "$with_gnu_ld" = no; then
16110 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16111 hardcode_libdir_flag_spec_ld='+b $libdir'
16112 hardcode_libdir_separator=:
16113 hardcode_direct=yes
16114 hardcode_direct_absolute=yes
16115 export_dynamic_flag_spec='${wl}-E'
16116 # hardcode_minus_L: Not really in the search PATH,
16117 # but as the default location of the library.
16118 hardcode_minus_L=yes
16122 hpux11*)
16123 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16124 case $host_cpu in
16125 hppa*64*)
16126 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16128 ia64*)
16129 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16132 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16134 esac
16135 else
16136 case $host_cpu in
16137 hppa*64*)
16138 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16140 ia64*)
16141 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16145 # Older versions of the 11.00 compiler do not understand -b yet
16146 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16148 $as_echo_n "checking if $CC understands -b... " >&6; }
16149 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16150 $as_echo_n "(cached) " >&6
16151 else
16152 lt_cv_prog_compiler__b=no
16153 save_LDFLAGS="$LDFLAGS"
16154 LDFLAGS="$LDFLAGS -b"
16155 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16156 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16157 # The linker can only warn and ignore the option if not recognized
16158 # So say no if there are warnings
16159 if test -s conftest.err; then
16160 # Append any errors to the config.log.
16161 cat conftest.err 1>&5
16162 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16163 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16164 if diff conftest.exp conftest.er2 >/dev/null; then
16165 lt_cv_prog_compiler__b=yes
16167 else
16168 lt_cv_prog_compiler__b=yes
16171 $RM -r conftest*
16172 LDFLAGS="$save_LDFLAGS"
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16176 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16178 if test x"$lt_cv_prog_compiler__b" = xyes; then
16179 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16180 else
16181 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16185 esac
16187 if test "$with_gnu_ld" = no; then
16188 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16189 hardcode_libdir_separator=:
16191 case $host_cpu in
16192 hppa*64*|ia64*)
16193 hardcode_direct=no
16194 hardcode_shlibpath_var=no
16197 hardcode_direct=yes
16198 hardcode_direct_absolute=yes
16199 export_dynamic_flag_spec='${wl}-E'
16201 # hardcode_minus_L: Not really in the search PATH,
16202 # but as the default location of the library.
16203 hardcode_minus_L=yes
16205 esac
16209 irix5* | irix6* | nonstopux*)
16210 if test "$GCC" = yes; then
16211 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'
16212 # Try to use the -exported_symbol ld option, if it does not
16213 # work, assume that -exports_file does not work either and
16214 # implicitly export all symbols.
16215 save_LDFLAGS="$LDFLAGS"
16216 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h. */
16219 int foo(void) {}
16220 _ACEOF
16221 if ac_fn_c_try_link "$LINENO"; then :
16222 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'
16225 rm -f core conftest.err conftest.$ac_objext \
16226 conftest$ac_exeext conftest.$ac_ext
16227 LDFLAGS="$save_LDFLAGS"
16228 else
16229 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'
16230 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'
16232 archive_cmds_need_lc='no'
16233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16234 hardcode_libdir_separator=:
16235 inherit_rpath=yes
16236 link_all_deplibs=yes
16239 netbsd*)
16240 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16242 else
16243 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16245 hardcode_libdir_flag_spec='-R$libdir'
16246 hardcode_direct=yes
16247 hardcode_shlibpath_var=no
16250 newsos6)
16251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16252 hardcode_direct=yes
16253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16254 hardcode_libdir_separator=:
16255 hardcode_shlibpath_var=no
16258 *nto* | *qnx*)
16261 openbsd*)
16262 if test -f /usr/libexec/ld.so; then
16263 hardcode_direct=yes
16264 hardcode_shlibpath_var=no
16265 hardcode_direct_absolute=yes
16266 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16268 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16270 export_dynamic_flag_spec='${wl}-E'
16271 else
16272 case $host_os in
16273 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16275 hardcode_libdir_flag_spec='-R$libdir'
16278 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16281 esac
16283 else
16284 ld_shlibs=no
16288 os2*)
16289 hardcode_libdir_flag_spec='-L$libdir'
16290 hardcode_minus_L=yes
16291 allow_undefined_flag=unsupported
16292 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'
16293 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16296 osf3*)
16297 if test "$GCC" = yes; then
16298 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16299 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'
16300 else
16301 allow_undefined_flag=' -expect_unresolved \*'
16302 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'
16304 archive_cmds_need_lc='no'
16305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16306 hardcode_libdir_separator=:
16309 osf4* | osf5*) # as osf3* with the addition of -msym flag
16310 if test "$GCC" = yes; then
16311 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16312 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'
16313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16314 else
16315 allow_undefined_flag=' -expect_unresolved \*'
16316 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'
16317 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~
16318 $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'
16320 # Both c and cxx compiler support -rpath directly
16321 hardcode_libdir_flag_spec='-rpath $libdir'
16323 archive_cmds_need_lc='no'
16324 hardcode_libdir_separator=:
16327 solaris*)
16328 no_undefined_flag=' -z defs'
16329 if test "$GCC" = yes; then
16330 wlarc='${wl}'
16331 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16333 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16334 else
16335 case `$CC -V 2>&1` in
16336 *"Compilers 5.0"*)
16337 wlarc=''
16338 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16340 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16343 wlarc='${wl}'
16344 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16345 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16346 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16348 esac
16350 hardcode_libdir_flag_spec='-R$libdir'
16351 hardcode_shlibpath_var=no
16352 case $host_os in
16353 solaris2.[0-5] | solaris2.[0-5].*) ;;
16355 # The compiler driver will combine and reorder linker options,
16356 # but understands `-z linker_flag'. GCC discards it without `$wl',
16357 # but is careful enough not to reorder.
16358 # Supported since Solaris 2.6 (maybe 2.5.1?)
16359 if test "$GCC" = yes; then
16360 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16361 else
16362 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16365 esac
16366 link_all_deplibs=yes
16369 sunos4*)
16370 if test "x$host_vendor" = xsequent; then
16371 # Use $CC to link under sequent, because it throws in some extra .o
16372 # files that make .init and .fini sections work.
16373 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16374 else
16375 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16377 hardcode_libdir_flag_spec='-L$libdir'
16378 hardcode_direct=yes
16379 hardcode_minus_L=yes
16380 hardcode_shlibpath_var=no
16383 sysv4)
16384 case $host_vendor in
16385 sni)
16386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16387 hardcode_direct=yes # is this really true???
16389 siemens)
16390 ## LD is ld it makes a PLAMLIB
16391 ## CC just makes a GrossModule.
16392 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16393 reload_cmds='$CC -r -o $output$reload_objs'
16394 hardcode_direct=no
16396 motorola)
16397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16398 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16400 esac
16401 runpath_var='LD_RUN_PATH'
16402 hardcode_shlibpath_var=no
16405 sysv4.3*)
16406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16407 hardcode_shlibpath_var=no
16408 export_dynamic_flag_spec='-Bexport'
16411 sysv4*MP*)
16412 if test -d /usr/nec; then
16413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16414 hardcode_shlibpath_var=no
16415 runpath_var=LD_RUN_PATH
16416 hardcode_runpath_var=yes
16417 ld_shlibs=yes
16421 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16422 no_undefined_flag='${wl}-z,text'
16423 archive_cmds_need_lc=no
16424 hardcode_shlibpath_var=no
16425 runpath_var='LD_RUN_PATH'
16427 if test "$GCC" = yes; then
16428 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16429 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16430 else
16431 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16432 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16436 sysv5* | sco3.2v5* | sco5v6*)
16437 # Note: We can NOT use -z defs as we might desire, because we do not
16438 # link with -lc, and that would cause any symbols used from libc to
16439 # always be unresolved, which means just about no library would
16440 # ever link correctly. If we're not using GNU ld we use -z text
16441 # though, which does catch some bad symbols but isn't as heavy-handed
16442 # as -z defs.
16443 no_undefined_flag='${wl}-z,text'
16444 allow_undefined_flag='${wl}-z,nodefs'
16445 archive_cmds_need_lc=no
16446 hardcode_shlibpath_var=no
16447 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16448 hardcode_libdir_separator=':'
16449 link_all_deplibs=yes
16450 export_dynamic_flag_spec='${wl}-Bexport'
16451 runpath_var='LD_RUN_PATH'
16453 if test "$GCC" = yes; then
16454 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16455 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16456 else
16457 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16458 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16462 uts4*)
16463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16464 hardcode_libdir_flag_spec='-L$libdir'
16465 hardcode_shlibpath_var=no
16469 ld_shlibs=no
16471 esac
16473 if test x$host_vendor = xsni; then
16474 case $host in
16475 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16476 export_dynamic_flag_spec='${wl}-Blargedynsym'
16478 esac
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16483 $as_echo "$ld_shlibs" >&6; }
16484 test "$ld_shlibs" = no && can_build_shared=no
16486 with_gnu_ld=$with_gnu_ld
16503 # Do we need to explicitly link libc?
16505 case "x$archive_cmds_need_lc" in
16506 x|xyes)
16507 # Assume -lc should be added
16508 archive_cmds_need_lc=yes
16510 if test "$enable_shared" = yes && test "$GCC" = yes; then
16511 case $archive_cmds in
16512 *'~'*)
16513 # FIXME: we may have to deal with multi-command sequences.
16515 '$CC '*)
16516 # Test whether the compiler implicitly links with -lc since on some
16517 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16518 # to ld, don't add -lc before -lgcc.
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16520 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16521 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16522 $as_echo_n "(cached) " >&6
16523 else
16524 $RM conftest*
16525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16528 (eval $ac_compile) 2>&5
16529 ac_status=$?
16530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16531 test $ac_status = 0; } 2>conftest.err; then
16532 soname=conftest
16533 lib=conftest
16534 libobjs=conftest.$ac_objext
16535 deplibs=
16536 wl=$lt_prog_compiler_wl
16537 pic_flag=$lt_prog_compiler_pic
16538 compiler_flags=-v
16539 linker_flags=-v
16540 verstring=
16541 output_objdir=.
16542 libname=conftest
16543 lt_save_allow_undefined_flag=$allow_undefined_flag
16544 allow_undefined_flag=
16545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16546 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16547 ac_status=$?
16548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16549 test $ac_status = 0; }
16550 then
16551 lt_cv_archive_cmds_need_lc=no
16552 else
16553 lt_cv_archive_cmds_need_lc=yes
16555 allow_undefined_flag=$lt_save_allow_undefined_flag
16556 else
16557 cat conftest.err 1>&5
16559 $RM conftest*
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16563 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16564 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16566 esac
16569 esac
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16728 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16730 if test "$GCC" = yes; then
16731 case $host_os in
16732 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16733 *) lt_awk_arg="/^libraries:/" ;;
16734 esac
16735 case $host_os in
16736 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16737 *) lt_sed_strip_eq="s,=/,/,g" ;;
16738 esac
16739 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16740 case $lt_search_path_spec in
16741 *\;*)
16742 # if the path contains ";" then we assume it to be the separator
16743 # otherwise default to the standard path separator (i.e. ":") - it is
16744 # assumed that no part of a normal pathname contains ";" but that should
16745 # okay in the real world where ";" in dirpaths is itself problematic.
16746 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16749 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16751 esac
16752 # Ok, now we have the path, separated by spaces, we can step through it
16753 # and add multilib dir if necessary.
16754 lt_tmp_lt_search_path_spec=
16755 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16756 for lt_sys_path in $lt_search_path_spec; do
16757 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16758 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16759 else
16760 test -d "$lt_sys_path" && \
16761 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16763 done
16764 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16765 BEGIN {RS=" "; FS="/|\n";} {
16766 lt_foo="";
16767 lt_count=0;
16768 for (lt_i = NF; lt_i > 0; lt_i--) {
16769 if ($lt_i != "" && $lt_i != ".") {
16770 if ($lt_i == "..") {
16771 lt_count++;
16772 } else {
16773 if (lt_count == 0) {
16774 lt_foo="/" $lt_i lt_foo;
16775 } else {
16776 lt_count--;
16781 if (lt_foo != "") { lt_freq[lt_foo]++; }
16782 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16784 # AWK program above erroneously prepends '/' to C:/dos/paths
16785 # for these hosts.
16786 case $host_os in
16787 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16788 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16789 esac
16790 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16791 else
16792 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16794 library_names_spec=
16795 libname_spec='lib$name'
16796 soname_spec=
16797 shrext_cmds=".so"
16798 postinstall_cmds=
16799 postuninstall_cmds=
16800 finish_cmds=
16801 finish_eval=
16802 shlibpath_var=
16803 shlibpath_overrides_runpath=unknown
16804 version_type=none
16805 dynamic_linker="$host_os ld.so"
16806 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16807 need_lib_prefix=unknown
16808 hardcode_into_libs=no
16810 # when you set need_version to no, make sure it does not cause -set_version
16811 # flags to be left without arguments
16812 need_version=unknown
16814 case $host_os in
16815 aix3*)
16816 version_type=linux
16817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16818 shlibpath_var=LIBPATH
16820 # AIX 3 has no versioning support, so we append a major version to the name.
16821 soname_spec='${libname}${release}${shared_ext}$major'
16824 aix[4-9]*)
16825 version_type=linux
16826 need_lib_prefix=no
16827 need_version=no
16828 hardcode_into_libs=yes
16829 if test "$host_cpu" = ia64; then
16830 # AIX 5 supports IA64
16831 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 else
16834 # With GCC up to 2.95.x, collect2 would create an import file
16835 # for dependence libraries. The import file would start with
16836 # the line `#! .'. This would cause the generated library to
16837 # depend on `.', always an invalid library. This was fixed in
16838 # development snapshots of GCC prior to 3.0.
16839 case $host_os in
16840 aix4 | aix4.[01] | aix4.[01].*)
16841 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16842 echo ' yes '
16843 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16845 else
16846 can_build_shared=no
16849 esac
16850 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16851 # soname into executable. Probably we can add versioning support to
16852 # collect2, so additional links can be useful in future.
16853 if test "$aix_use_runtimelinking" = yes; then
16854 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16855 # instead of lib<name>.a to let people know that these are not
16856 # typical AIX shared libraries.
16857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16858 else
16859 # We preserve .a as extension for shared libraries through AIX4.2
16860 # and later when we are not doing run time linking.
16861 library_names_spec='${libname}${release}.a $libname.a'
16862 soname_spec='${libname}${release}${shared_ext}$major'
16864 shlibpath_var=LIBPATH
16868 amigaos*)
16869 case $host_cpu in
16870 powerpc)
16871 # Since July 2007 AmigaOS4 officially supports .so libraries.
16872 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16875 m68k)
16876 library_names_spec='$libname.ixlibrary $libname.a'
16877 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16878 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'
16880 esac
16883 beos*)
16884 library_names_spec='${libname}${shared_ext}'
16885 dynamic_linker="$host_os ld.so"
16886 shlibpath_var=LIBRARY_PATH
16889 bsdi[45]*)
16890 version_type=linux
16891 need_version=no
16892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16893 soname_spec='${libname}${release}${shared_ext}$major'
16894 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16895 shlibpath_var=LD_LIBRARY_PATH
16896 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16897 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16898 # the default ld.so.conf also contains /usr/contrib/lib and
16899 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16900 # libtool to hard-code these into programs
16903 cygwin* | mingw* | pw32* | cegcc*)
16904 version_type=windows
16905 shrext_cmds=".dll"
16906 need_version=no
16907 need_lib_prefix=no
16909 case $GCC,$host_os in
16910 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16911 library_names_spec='$libname.dll.a'
16912 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16913 postinstall_cmds='base_file=`basename \${file}`~
16914 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16915 dldir=$destdir/`dirname \$dlpath`~
16916 test -d \$dldir || mkdir -p \$dldir~
16917 $install_prog $dir/$dlname \$dldir/$dlname~
16918 chmod a+x \$dldir/$dlname~
16919 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16920 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16922 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16923 dlpath=$dir/\$dldll~
16924 $RM \$dlpath'
16925 shlibpath_overrides_runpath=yes
16927 case $host_os in
16928 cygwin*)
16929 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16930 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16932 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16934 mingw* | cegcc*)
16935 # MinGW DLLs use traditional 'lib' prefix
16936 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16938 pw32*)
16939 # pw32 DLLs use 'pw' prefix rather than 'lib'
16940 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16942 esac
16946 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16948 esac
16949 dynamic_linker='Win32 ld.exe'
16950 # FIXME: first we should search . and the directory the executable is in
16951 shlibpath_var=PATH
16954 darwin* | rhapsody*)
16955 dynamic_linker="$host_os dyld"
16956 version_type=darwin
16957 need_lib_prefix=no
16958 need_version=no
16959 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16960 soname_spec='${libname}${release}${major}$shared_ext'
16961 shlibpath_overrides_runpath=yes
16962 shlibpath_var=DYLD_LIBRARY_PATH
16963 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16965 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16966 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16969 dgux*)
16970 version_type=linux
16971 need_lib_prefix=no
16972 need_version=no
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16974 soname_spec='${libname}${release}${shared_ext}$major'
16975 shlibpath_var=LD_LIBRARY_PATH
16978 freebsd* | dragonfly*)
16979 # DragonFly does not have aout. When/if they implement a new
16980 # versioning mechanism, adjust this.
16981 if test -x /usr/bin/objformat; then
16982 objformat=`/usr/bin/objformat`
16983 else
16984 case $host_os in
16985 freebsd[23].*) objformat=aout ;;
16986 *) objformat=elf ;;
16987 esac
16989 version_type=freebsd-$objformat
16990 case $version_type in
16991 freebsd-elf*)
16992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16993 need_version=no
16994 need_lib_prefix=no
16996 freebsd-*)
16997 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16998 need_version=yes
17000 esac
17001 shlibpath_var=LD_LIBRARY_PATH
17002 case $host_os in
17003 freebsd2.*)
17004 shlibpath_overrides_runpath=yes
17006 freebsd3.[01]* | freebsdelf3.[01]*)
17007 shlibpath_overrides_runpath=yes
17008 hardcode_into_libs=yes
17010 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17011 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17012 shlibpath_overrides_runpath=no
17013 hardcode_into_libs=yes
17015 *) # from 4.6 on, and DragonFly
17016 shlibpath_overrides_runpath=yes
17017 hardcode_into_libs=yes
17019 esac
17022 gnu*)
17023 version_type=linux
17024 need_lib_prefix=no
17025 need_version=no
17026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17027 soname_spec='${libname}${release}${shared_ext}$major'
17028 shlibpath_var=LD_LIBRARY_PATH
17029 hardcode_into_libs=yes
17032 haiku*)
17033 version_type=linux
17034 need_lib_prefix=no
17035 need_version=no
17036 dynamic_linker="$host_os runtime_loader"
17037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17038 soname_spec='${libname}${release}${shared_ext}$major'
17039 shlibpath_var=LIBRARY_PATH
17040 shlibpath_overrides_runpath=yes
17041 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17042 hardcode_into_libs=yes
17045 hpux9* | hpux10* | hpux11*)
17046 # Give a soname corresponding to the major version so that dld.sl refuses to
17047 # link against other versions.
17048 version_type=sunos
17049 need_lib_prefix=no
17050 need_version=no
17051 case $host_cpu in
17052 ia64*)
17053 shrext_cmds='.so'
17054 hardcode_into_libs=yes
17055 dynamic_linker="$host_os dld.so"
17056 shlibpath_var=LD_LIBRARY_PATH
17057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17059 soname_spec='${libname}${release}${shared_ext}$major'
17060 if test "X$HPUX_IA64_MODE" = X32; then
17061 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17062 else
17063 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17067 hppa*64*)
17068 shrext_cmds='.sl'
17069 hardcode_into_libs=yes
17070 dynamic_linker="$host_os dld.sl"
17071 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17074 soname_spec='${libname}${release}${shared_ext}$major'
17075 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17076 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17079 shrext_cmds='.sl'
17080 dynamic_linker="$host_os dld.sl"
17081 shlibpath_var=SHLIB_PATH
17082 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17084 soname_spec='${libname}${release}${shared_ext}$major'
17086 esac
17087 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17088 postinstall_cmds='chmod 555 $lib'
17089 # or fails outright, so override atomically:
17090 install_override_mode=555
17093 interix[3-9]*)
17094 version_type=linux
17095 need_lib_prefix=no
17096 need_version=no
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17098 soname_spec='${libname}${release}${shared_ext}$major'
17099 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17100 shlibpath_var=LD_LIBRARY_PATH
17101 shlibpath_overrides_runpath=no
17102 hardcode_into_libs=yes
17105 irix5* | irix6* | nonstopux*)
17106 case $host_os in
17107 nonstopux*) version_type=nonstopux ;;
17109 if test "$lt_cv_prog_gnu_ld" = yes; then
17110 version_type=linux
17111 else
17112 version_type=irix
17113 fi ;;
17114 esac
17115 need_lib_prefix=no
17116 need_version=no
17117 soname_spec='${libname}${release}${shared_ext}$major'
17118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17119 case $host_os in
17120 irix5* | nonstopux*)
17121 libsuff= shlibsuff=
17124 case $LD in # libtool.m4 will add one of these switches to LD
17125 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17126 libsuff= shlibsuff= libmagic=32-bit;;
17127 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17128 libsuff=32 shlibsuff=N32 libmagic=N32;;
17129 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17130 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17131 *) libsuff= shlibsuff= libmagic=never-match;;
17132 esac
17134 esac
17135 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17136 shlibpath_overrides_runpath=no
17137 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17138 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17139 hardcode_into_libs=yes
17142 # No shared lib support for Linux oldld, aout, or coff.
17143 linux*oldld* | linux*aout* | linux*coff*)
17144 dynamic_linker=no
17147 # This must be Linux ELF.
17148 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17149 version_type=linux
17150 need_lib_prefix=no
17151 need_version=no
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17155 shlibpath_var=LD_LIBRARY_PATH
17156 shlibpath_overrides_runpath=no
17158 # Some binutils ld are patched to set DT_RUNPATH
17159 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17160 $as_echo_n "(cached) " >&6
17161 else
17162 lt_cv_shlibpath_overrides_runpath=no
17163 save_LDFLAGS=$LDFLAGS
17164 save_libdir=$libdir
17165 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17166 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17168 /* end confdefs.h. */
17171 main ()
17175 return 0;
17177 _ACEOF
17178 if ac_fn_c_try_link "$LINENO"; then :
17179 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17180 lt_cv_shlibpath_overrides_runpath=yes
17183 rm -f core conftest.err conftest.$ac_objext \
17184 conftest$ac_exeext conftest.$ac_ext
17185 LDFLAGS=$save_LDFLAGS
17186 libdir=$save_libdir
17190 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17192 # This implies no fast_install, which is unacceptable.
17193 # Some rework will be needed to allow for fast_install
17194 # before this can be enabled.
17195 hardcode_into_libs=yes
17197 # Append ld.so.conf contents to the search path
17198 if test -f /etc/ld.so.conf; then
17199 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' ' '`
17200 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17203 # We used to test for /lib/ld.so.1 and disable shared libraries on
17204 # powerpc, because MkLinux only supported shared libraries with the
17205 # GNU dynamic linker. Since this was broken with cross compilers,
17206 # most powerpc-linux boxes support dynamic linking these days and
17207 # people can always --disable-shared, the test was removed, and we
17208 # assume the GNU/Linux dynamic linker is in use.
17209 dynamic_linker='GNU/Linux ld.so'
17212 netbsd*)
17213 version_type=sunos
17214 need_lib_prefix=no
17215 need_version=no
17216 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17219 dynamic_linker='NetBSD (a.out) ld.so'
17220 else
17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17222 soname_spec='${libname}${release}${shared_ext}$major'
17223 dynamic_linker='NetBSD ld.elf_so'
17225 shlibpath_var=LD_LIBRARY_PATH
17226 shlibpath_overrides_runpath=yes
17227 hardcode_into_libs=yes
17230 newsos6)
17231 version_type=linux
17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17233 shlibpath_var=LD_LIBRARY_PATH
17234 shlibpath_overrides_runpath=yes
17237 *nto* | *qnx*)
17238 version_type=qnx
17239 need_lib_prefix=no
17240 need_version=no
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17242 soname_spec='${libname}${release}${shared_ext}$major'
17243 shlibpath_var=LD_LIBRARY_PATH
17244 shlibpath_overrides_runpath=no
17245 hardcode_into_libs=yes
17246 dynamic_linker='ldqnx.so'
17249 openbsd*)
17250 version_type=sunos
17251 sys_lib_dlsearch_path_spec="/usr/lib"
17252 need_lib_prefix=no
17253 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17254 case $host_os in
17255 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17256 *) need_version=no ;;
17257 esac
17258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17260 shlibpath_var=LD_LIBRARY_PATH
17261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17262 case $host_os in
17263 openbsd2.[89] | openbsd2.[89].*)
17264 shlibpath_overrides_runpath=no
17267 shlibpath_overrides_runpath=yes
17269 esac
17270 else
17271 shlibpath_overrides_runpath=yes
17275 os2*)
17276 libname_spec='$name'
17277 shrext_cmds=".dll"
17278 need_lib_prefix=no
17279 library_names_spec='$libname${shared_ext} $libname.a'
17280 dynamic_linker='OS/2 ld.exe'
17281 shlibpath_var=LIBPATH
17284 osf3* | osf4* | osf5*)
17285 version_type=osf
17286 need_lib_prefix=no
17287 need_version=no
17288 soname_spec='${libname}${release}${shared_ext}$major'
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290 shlibpath_var=LD_LIBRARY_PATH
17291 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17292 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17295 rdos*)
17296 dynamic_linker=no
17299 solaris*)
17300 version_type=linux
17301 need_lib_prefix=no
17302 need_version=no
17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17304 soname_spec='${libname}${release}${shared_ext}$major'
17305 shlibpath_var=LD_LIBRARY_PATH
17306 shlibpath_overrides_runpath=yes
17307 hardcode_into_libs=yes
17308 # ldd complains unless libraries are executable
17309 postinstall_cmds='chmod +x $lib'
17312 sunos4*)
17313 version_type=sunos
17314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17315 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17316 shlibpath_var=LD_LIBRARY_PATH
17317 shlibpath_overrides_runpath=yes
17318 if test "$with_gnu_ld" = yes; then
17319 need_lib_prefix=no
17321 need_version=yes
17324 sysv4 | sysv4.3*)
17325 version_type=linux
17326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327 soname_spec='${libname}${release}${shared_ext}$major'
17328 shlibpath_var=LD_LIBRARY_PATH
17329 case $host_vendor in
17330 sni)
17331 shlibpath_overrides_runpath=no
17332 need_lib_prefix=no
17333 runpath_var=LD_RUN_PATH
17335 siemens)
17336 need_lib_prefix=no
17338 motorola)
17339 need_lib_prefix=no
17340 need_version=no
17341 shlibpath_overrides_runpath=no
17342 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17344 esac
17347 sysv4*MP*)
17348 if test -d /usr/nec ;then
17349 version_type=linux
17350 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17351 soname_spec='$libname${shared_ext}.$major'
17352 shlibpath_var=LD_LIBRARY_PATH
17356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17357 version_type=freebsd-elf
17358 need_lib_prefix=no
17359 need_version=no
17360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17361 soname_spec='${libname}${release}${shared_ext}$major'
17362 shlibpath_var=LD_LIBRARY_PATH
17363 shlibpath_overrides_runpath=yes
17364 hardcode_into_libs=yes
17365 if test "$with_gnu_ld" = yes; then
17366 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17367 else
17368 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17369 case $host_os in
17370 sco3.2v5*)
17371 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17373 esac
17375 sys_lib_dlsearch_path_spec='/usr/lib'
17378 tpf*)
17379 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17380 version_type=linux
17381 need_lib_prefix=no
17382 need_version=no
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17384 shlibpath_var=LD_LIBRARY_PATH
17385 shlibpath_overrides_runpath=no
17386 hardcode_into_libs=yes
17389 uts4*)
17390 version_type=linux
17391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17392 soname_spec='${libname}${release}${shared_ext}$major'
17393 shlibpath_var=LD_LIBRARY_PATH
17397 dynamic_linker=no
17399 esac
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17401 $as_echo "$dynamic_linker" >&6; }
17402 test "$dynamic_linker" = no && can_build_shared=no
17404 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17405 if test "$GCC" = yes; then
17406 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17409 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17410 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17412 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17413 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17508 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17509 hardcode_action=
17510 if test -n "$hardcode_libdir_flag_spec" ||
17511 test -n "$runpath_var" ||
17512 test "X$hardcode_automatic" = "Xyes" ; then
17514 # We can hardcode non-existent directories.
17515 if test "$hardcode_direct" != no &&
17516 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17517 # have to relink, otherwise we might link with an installed library
17518 # when we should be linking with a yet-to-be-installed one
17519 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17520 test "$hardcode_minus_L" != no; then
17521 # Linking always hardcodes the temporary library directory.
17522 hardcode_action=relink
17523 else
17524 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17525 hardcode_action=immediate
17527 else
17528 # We cannot hardcode anything, or else we can only hardcode existing
17529 # directories.
17530 hardcode_action=unsupported
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17533 $as_echo "$hardcode_action" >&6; }
17535 if test "$hardcode_action" = relink ||
17536 test "$inherit_rpath" = yes; then
17537 # Fast installation is not supported
17538 enable_fast_install=no
17539 elif test "$shlibpath_overrides_runpath" = yes ||
17540 test "$enable_shared" = no; then
17541 # Fast installation is not necessary
17542 enable_fast_install=needless
17550 if test "x$enable_dlopen" != xyes; then
17551 enable_dlopen=unknown
17552 enable_dlopen_self=unknown
17553 enable_dlopen_self_static=unknown
17554 else
17555 lt_cv_dlopen=no
17556 lt_cv_dlopen_libs=
17558 case $host_os in
17559 beos*)
17560 lt_cv_dlopen="load_add_on"
17561 lt_cv_dlopen_libs=
17562 lt_cv_dlopen_self=yes
17565 mingw* | pw32* | cegcc*)
17566 lt_cv_dlopen="LoadLibrary"
17567 lt_cv_dlopen_libs=
17570 cygwin*)
17571 lt_cv_dlopen="dlopen"
17572 lt_cv_dlopen_libs=
17575 darwin*)
17576 # if libdl is installed we need to link against it
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17578 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17579 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17580 $as_echo_n "(cached) " >&6
17581 else
17582 ac_check_lib_save_LIBS=$LIBS
17583 LIBS="-ldl $LIBS"
17584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17585 /* end confdefs.h. */
17587 /* Override any GCC internal prototype to avoid an error.
17588 Use char because int might match the return type of a GCC
17589 builtin and then its argument prototype would still apply. */
17590 #ifdef __cplusplus
17591 extern "C"
17592 #endif
17593 char dlopen ();
17595 main ()
17597 return dlopen ();
17599 return 0;
17601 _ACEOF
17602 if ac_fn_c_try_link "$LINENO"; then :
17603 ac_cv_lib_dl_dlopen=yes
17604 else
17605 ac_cv_lib_dl_dlopen=no
17607 rm -f core conftest.err conftest.$ac_objext \
17608 conftest$ac_exeext conftest.$ac_ext
17609 LIBS=$ac_check_lib_save_LIBS
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17612 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17613 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17614 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17615 else
17617 lt_cv_dlopen="dyld"
17618 lt_cv_dlopen_libs=
17619 lt_cv_dlopen_self=yes
17626 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17627 if test "x$ac_cv_func_shl_load" = x""yes; then :
17628 lt_cv_dlopen="shl_load"
17629 else
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17631 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17632 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17633 $as_echo_n "(cached) " >&6
17634 else
17635 ac_check_lib_save_LIBS=$LIBS
17636 LIBS="-ldld $LIBS"
17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h. */
17640 /* Override any GCC internal prototype to avoid an error.
17641 Use char because int might match the return type of a GCC
17642 builtin and then its argument prototype would still apply. */
17643 #ifdef __cplusplus
17644 extern "C"
17645 #endif
17646 char shl_load ();
17648 main ()
17650 return shl_load ();
17652 return 0;
17654 _ACEOF
17655 if ac_fn_c_try_link "$LINENO"; then :
17656 ac_cv_lib_dld_shl_load=yes
17657 else
17658 ac_cv_lib_dld_shl_load=no
17660 rm -f core conftest.err conftest.$ac_objext \
17661 conftest$ac_exeext conftest.$ac_ext
17662 LIBS=$ac_check_lib_save_LIBS
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17665 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17666 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17667 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17668 else
17669 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17670 if test "x$ac_cv_func_dlopen" = x""yes; then :
17671 lt_cv_dlopen="dlopen"
17672 else
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17674 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17675 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17676 $as_echo_n "(cached) " >&6
17677 else
17678 ac_check_lib_save_LIBS=$LIBS
17679 LIBS="-ldl $LIBS"
17680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17681 /* end confdefs.h. */
17683 /* Override any GCC internal prototype to avoid an error.
17684 Use char because int might match the return type of a GCC
17685 builtin and then its argument prototype would still apply. */
17686 #ifdef __cplusplus
17687 extern "C"
17688 #endif
17689 char dlopen ();
17691 main ()
17693 return dlopen ();
17695 return 0;
17697 _ACEOF
17698 if ac_fn_c_try_link "$LINENO"; then :
17699 ac_cv_lib_dl_dlopen=yes
17700 else
17701 ac_cv_lib_dl_dlopen=no
17703 rm -f core conftest.err conftest.$ac_objext \
17704 conftest$ac_exeext conftest.$ac_ext
17705 LIBS=$ac_check_lib_save_LIBS
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17708 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17709 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17710 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17711 else
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17713 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17714 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17715 $as_echo_n "(cached) " >&6
17716 else
17717 ac_check_lib_save_LIBS=$LIBS
17718 LIBS="-lsvld $LIBS"
17719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h. */
17722 /* Override any GCC internal prototype to avoid an error.
17723 Use char because int might match the return type of a GCC
17724 builtin and then its argument prototype would still apply. */
17725 #ifdef __cplusplus
17726 extern "C"
17727 #endif
17728 char dlopen ();
17730 main ()
17732 return dlopen ();
17734 return 0;
17736 _ACEOF
17737 if ac_fn_c_try_link "$LINENO"; then :
17738 ac_cv_lib_svld_dlopen=yes
17739 else
17740 ac_cv_lib_svld_dlopen=no
17742 rm -f core conftest.err conftest.$ac_objext \
17743 conftest$ac_exeext conftest.$ac_ext
17744 LIBS=$ac_check_lib_save_LIBS
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17747 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17748 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17750 else
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17752 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17753 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17754 $as_echo_n "(cached) " >&6
17755 else
17756 ac_check_lib_save_LIBS=$LIBS
17757 LIBS="-ldld $LIBS"
17758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17759 /* end confdefs.h. */
17761 /* Override any GCC internal prototype to avoid an error.
17762 Use char because int might match the return type of a GCC
17763 builtin and then its argument prototype would still apply. */
17764 #ifdef __cplusplus
17765 extern "C"
17766 #endif
17767 char dld_link ();
17769 main ()
17771 return dld_link ();
17773 return 0;
17775 _ACEOF
17776 if ac_fn_c_try_link "$LINENO"; then :
17777 ac_cv_lib_dld_dld_link=yes
17778 else
17779 ac_cv_lib_dld_dld_link=no
17781 rm -f core conftest.err conftest.$ac_objext \
17782 conftest$ac_exeext conftest.$ac_ext
17783 LIBS=$ac_check_lib_save_LIBS
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17786 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17787 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17788 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17807 esac
17809 if test "x$lt_cv_dlopen" != xno; then
17810 enable_dlopen=yes
17811 else
17812 enable_dlopen=no
17815 case $lt_cv_dlopen in
17816 dlopen)
17817 save_CPPFLAGS="$CPPFLAGS"
17818 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17820 save_LDFLAGS="$LDFLAGS"
17821 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17823 save_LIBS="$LIBS"
17824 LIBS="$lt_cv_dlopen_libs $LIBS"
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17827 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17828 if test "${lt_cv_dlopen_self+set}" = set; then :
17829 $as_echo_n "(cached) " >&6
17830 else
17831 if test "$cross_compiling" = yes; then :
17832 lt_cv_dlopen_self=cross
17833 else
17834 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17835 lt_status=$lt_dlunknown
17836 cat > conftest.$ac_ext <<_LT_EOF
17837 #line 17837 "configure"
17838 #include "confdefs.h"
17840 #if HAVE_DLFCN_H
17841 #include <dlfcn.h>
17842 #endif
17844 #include <stdio.h>
17846 #ifdef RTLD_GLOBAL
17847 # define LT_DLGLOBAL RTLD_GLOBAL
17848 #else
17849 # ifdef DL_GLOBAL
17850 # define LT_DLGLOBAL DL_GLOBAL
17851 # else
17852 # define LT_DLGLOBAL 0
17853 # endif
17854 #endif
17856 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17857 find out it does not work in some platform. */
17858 #ifndef LT_DLLAZY_OR_NOW
17859 # ifdef RTLD_LAZY
17860 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17861 # else
17862 # ifdef DL_LAZY
17863 # define LT_DLLAZY_OR_NOW DL_LAZY
17864 # else
17865 # ifdef RTLD_NOW
17866 # define LT_DLLAZY_OR_NOW RTLD_NOW
17867 # else
17868 # ifdef DL_NOW
17869 # define LT_DLLAZY_OR_NOW DL_NOW
17870 # else
17871 # define LT_DLLAZY_OR_NOW 0
17872 # endif
17873 # endif
17874 # endif
17875 # endif
17876 #endif
17878 /* When -fvisbility=hidden is used, assume the code has been annotated
17879 correspondingly for the symbols needed. */
17880 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17881 void fnord () __attribute__((visibility("default")));
17882 #endif
17884 void fnord () { int i=42; }
17885 int main ()
17887 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17888 int status = $lt_dlunknown;
17890 if (self)
17892 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17893 else
17895 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17896 else puts (dlerror ());
17898 /* dlclose (self); */
17900 else
17901 puts (dlerror ());
17903 return status;
17905 _LT_EOF
17906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17907 (eval $ac_link) 2>&5
17908 ac_status=$?
17909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17910 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17911 (./conftest; exit; ) >&5 2>/dev/null
17912 lt_status=$?
17913 case x$lt_status in
17914 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17915 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17916 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17917 esac
17918 else :
17919 # compilation failed
17920 lt_cv_dlopen_self=no
17923 rm -fr conftest*
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17928 $as_echo "$lt_cv_dlopen_self" >&6; }
17930 if test "x$lt_cv_dlopen_self" = xyes; then
17931 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17933 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17934 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17935 $as_echo_n "(cached) " >&6
17936 else
17937 if test "$cross_compiling" = yes; then :
17938 lt_cv_dlopen_self_static=cross
17939 else
17940 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17941 lt_status=$lt_dlunknown
17942 cat > conftest.$ac_ext <<_LT_EOF
17943 #line 17943 "configure"
17944 #include "confdefs.h"
17946 #if HAVE_DLFCN_H
17947 #include <dlfcn.h>
17948 #endif
17950 #include <stdio.h>
17952 #ifdef RTLD_GLOBAL
17953 # define LT_DLGLOBAL RTLD_GLOBAL
17954 #else
17955 # ifdef DL_GLOBAL
17956 # define LT_DLGLOBAL DL_GLOBAL
17957 # else
17958 # define LT_DLGLOBAL 0
17959 # endif
17960 #endif
17962 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17963 find out it does not work in some platform. */
17964 #ifndef LT_DLLAZY_OR_NOW
17965 # ifdef RTLD_LAZY
17966 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17967 # else
17968 # ifdef DL_LAZY
17969 # define LT_DLLAZY_OR_NOW DL_LAZY
17970 # else
17971 # ifdef RTLD_NOW
17972 # define LT_DLLAZY_OR_NOW RTLD_NOW
17973 # else
17974 # ifdef DL_NOW
17975 # define LT_DLLAZY_OR_NOW DL_NOW
17976 # else
17977 # define LT_DLLAZY_OR_NOW 0
17978 # endif
17979 # endif
17980 # endif
17981 # endif
17982 #endif
17984 /* When -fvisbility=hidden is used, assume the code has been annotated
17985 correspondingly for the symbols needed. */
17986 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17987 void fnord () __attribute__((visibility("default")));
17988 #endif
17990 void fnord () { int i=42; }
17991 int main ()
17993 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17994 int status = $lt_dlunknown;
17996 if (self)
17998 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17999 else
18001 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18002 else puts (dlerror ());
18004 /* dlclose (self); */
18006 else
18007 puts (dlerror ());
18009 return status;
18011 _LT_EOF
18012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18013 (eval $ac_link) 2>&5
18014 ac_status=$?
18015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18016 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18017 (./conftest; exit; ) >&5 2>/dev/null
18018 lt_status=$?
18019 case x$lt_status in
18020 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18021 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18022 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18023 esac
18024 else :
18025 # compilation failed
18026 lt_cv_dlopen_self_static=no
18029 rm -fr conftest*
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18034 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18037 CPPFLAGS="$save_CPPFLAGS"
18038 LDFLAGS="$save_LDFLAGS"
18039 LIBS="$save_LIBS"
18041 esac
18043 case $lt_cv_dlopen_self in
18044 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18045 *) enable_dlopen_self=unknown ;;
18046 esac
18048 case $lt_cv_dlopen_self_static in
18049 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18050 *) enable_dlopen_self_static=unknown ;;
18051 esac
18070 striplib=
18071 old_striplib=
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18073 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18074 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18075 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18076 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18078 $as_echo "yes" >&6; }
18079 else
18080 # FIXME - insert some real tests, host_os isn't really good enough
18081 case $host_os in
18082 darwin*)
18083 if test -n "$STRIP" ; then
18084 striplib="$STRIP -x"
18085 old_striplib="$STRIP -S"
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18087 $as_echo "yes" >&6; }
18088 else
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18090 $as_echo "no" >&6; }
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18095 $as_echo "no" >&6; }
18097 esac
18111 # Report which library types will actually be built
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18113 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18115 $as_echo "$can_build_shared" >&6; }
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18118 $as_echo_n "checking whether to build shared libraries... " >&6; }
18119 test "$can_build_shared" = "no" && enable_shared=no
18121 # On AIX, shared libraries and static libraries use the same namespace, and
18122 # are all built from PIC.
18123 case $host_os in
18124 aix3*)
18125 test "$enable_shared" = yes && enable_static=no
18126 if test -n "$RANLIB"; then
18127 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18128 postinstall_cmds='$RANLIB $lib'
18132 aix[4-9]*)
18133 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18134 test "$enable_shared" = yes && enable_static=no
18137 esac
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18139 $as_echo "$enable_shared" >&6; }
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18142 $as_echo_n "checking whether to build static libraries... " >&6; }
18143 # Make sure either enable_shared or enable_static is yes.
18144 test "$enable_shared" = yes || enable_static=yes
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18146 $as_echo "$enable_static" >&6; }
18152 ac_ext=c
18153 ac_cpp='$CPP $CPPFLAGS'
18154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18158 CC="$lt_save_CC"
18160 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18161 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18162 (test "X$CXX" != "Xg++"))) ; then
18163 ac_ext=cpp
18164 ac_cpp='$CXXCPP $CPPFLAGS'
18165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18169 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18170 if test -z "$CXXCPP"; then
18171 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18172 $as_echo_n "(cached) " >&6
18173 else
18174 # Double quotes because CXXCPP needs to be expanded
18175 for CXXCPP in "$CXX -E" "/lib/cpp"
18177 ac_preproc_ok=false
18178 for ac_cxx_preproc_warn_flag in '' yes
18180 # Use a header file that comes with gcc, so configuring glibc
18181 # with a fresh cross-compiler works.
18182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18183 # <limits.h> exists even on freestanding compilers.
18184 # On the NeXT, cc -E runs the code through the compiler's parser,
18185 # not just through cpp. "Syntax error" is here to catch this case.
18186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187 /* end confdefs.h. */
18188 #ifdef __STDC__
18189 # include <limits.h>
18190 #else
18191 # include <assert.h>
18192 #endif
18193 Syntax error
18194 _ACEOF
18195 if ac_fn_cxx_try_cpp "$LINENO"; then :
18197 else
18198 # Broken: fails on valid input.
18199 continue
18201 rm -f conftest.err conftest.$ac_ext
18203 # OK, works on sane cases. Now check whether nonexistent headers
18204 # can be detected and how.
18205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18206 /* end confdefs.h. */
18207 #include <ac_nonexistent.h>
18208 _ACEOF
18209 if ac_fn_cxx_try_cpp "$LINENO"; then :
18210 # Broken: success on invalid input.
18211 continue
18212 else
18213 # Passes both tests.
18214 ac_preproc_ok=:
18215 break
18217 rm -f conftest.err conftest.$ac_ext
18219 done
18220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18221 rm -f conftest.err conftest.$ac_ext
18222 if $ac_preproc_ok; then :
18223 break
18226 done
18227 ac_cv_prog_CXXCPP=$CXXCPP
18230 CXXCPP=$ac_cv_prog_CXXCPP
18231 else
18232 ac_cv_prog_CXXCPP=$CXXCPP
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18235 $as_echo "$CXXCPP" >&6; }
18236 ac_preproc_ok=false
18237 for ac_cxx_preproc_warn_flag in '' yes
18239 # Use a header file that comes with gcc, so configuring glibc
18240 # with a fresh cross-compiler works.
18241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18242 # <limits.h> exists even on freestanding compilers.
18243 # On the NeXT, cc -E runs the code through the compiler's parser,
18244 # not just through cpp. "Syntax error" is here to catch this case.
18245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h. */
18247 #ifdef __STDC__
18248 # include <limits.h>
18249 #else
18250 # include <assert.h>
18251 #endif
18252 Syntax error
18253 _ACEOF
18254 if ac_fn_cxx_try_cpp "$LINENO"; then :
18256 else
18257 # Broken: fails on valid input.
18258 continue
18260 rm -f conftest.err conftest.$ac_ext
18262 # OK, works on sane cases. Now check whether nonexistent headers
18263 # can be detected and how.
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18266 #include <ac_nonexistent.h>
18267 _ACEOF
18268 if ac_fn_cxx_try_cpp "$LINENO"; then :
18269 # Broken: success on invalid input.
18270 continue
18271 else
18272 # Passes both tests.
18273 ac_preproc_ok=:
18274 break
18276 rm -f conftest.err conftest.$ac_ext
18278 done
18279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18280 rm -f conftest.err conftest.$ac_ext
18281 if $ac_preproc_ok; then :
18283 else
18284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18286 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18287 See \`config.log' for more details." "$LINENO" 5; }
18290 ac_ext=c
18291 ac_cpp='$CPP $CPPFLAGS'
18292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18296 else
18297 _lt_caught_CXX_error=yes
18300 ac_ext=cpp
18301 ac_cpp='$CXXCPP $CPPFLAGS'
18302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18306 archive_cmds_need_lc_CXX=no
18307 allow_undefined_flag_CXX=
18308 always_export_symbols_CXX=no
18309 archive_expsym_cmds_CXX=
18310 compiler_needs_object_CXX=no
18311 export_dynamic_flag_spec_CXX=
18312 hardcode_direct_CXX=no
18313 hardcode_direct_absolute_CXX=no
18314 hardcode_libdir_flag_spec_CXX=
18315 hardcode_libdir_flag_spec_ld_CXX=
18316 hardcode_libdir_separator_CXX=
18317 hardcode_minus_L_CXX=no
18318 hardcode_shlibpath_var_CXX=unsupported
18319 hardcode_automatic_CXX=no
18320 inherit_rpath_CXX=no
18321 module_cmds_CXX=
18322 module_expsym_cmds_CXX=
18323 link_all_deplibs_CXX=unknown
18324 old_archive_cmds_CXX=$old_archive_cmds
18325 reload_flag_CXX=$reload_flag
18326 reload_cmds_CXX=$reload_cmds
18327 no_undefined_flag_CXX=
18328 whole_archive_flag_spec_CXX=
18329 enable_shared_with_static_runtimes_CXX=no
18331 # Source file extension for C++ test sources.
18332 ac_ext=cpp
18334 # Object file extension for compiled C++ test sources.
18335 objext=o
18336 objext_CXX=$objext
18338 # No sense in running all these tests if we already determined that
18339 # the CXX compiler isn't working. Some variables (like enable_shared)
18340 # are currently assumed to apply to all compilers on this platform,
18341 # and will be corrupted by setting them based on a non-working compiler.
18342 if test "$_lt_caught_CXX_error" != yes; then
18343 # Code to be used in simple compile tests
18344 lt_simple_compile_test_code="int some_variable = 0;"
18346 # Code to be used in simple link tests
18347 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18349 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18356 # If no C compiler was specified, use CC.
18357 LTCC=${LTCC-"$CC"}
18359 # If no C compiler flags were specified, use CFLAGS.
18360 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18362 # Allow CC to be a program name with arguments.
18363 compiler=$CC
18366 # save warnings/boilerplate of simple test code
18367 ac_outfile=conftest.$ac_objext
18368 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18369 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18370 _lt_compiler_boilerplate=`cat conftest.err`
18371 $RM conftest*
18373 ac_outfile=conftest.$ac_objext
18374 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18375 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18376 _lt_linker_boilerplate=`cat conftest.err`
18377 $RM -r conftest*
18380 # Allow CC to be a program name with arguments.
18381 lt_save_CC=$CC
18382 lt_save_LD=$LD
18383 lt_save_GCC=$GCC
18384 GCC=$GXX
18385 lt_save_with_gnu_ld=$with_gnu_ld
18386 lt_save_path_LD=$lt_cv_path_LD
18387 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18388 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18389 else
18390 $as_unset lt_cv_prog_gnu_ld
18392 if test -n "${lt_cv_path_LDCXX+set}"; then
18393 lt_cv_path_LD=$lt_cv_path_LDCXX
18394 else
18395 $as_unset lt_cv_path_LD
18397 test -z "${LDCXX+set}" || LD=$LDCXX
18398 CC=${CXX-"c++"}
18399 compiler=$CC
18400 compiler_CXX=$CC
18401 for cc_temp in $compiler""; do
18402 case $cc_temp in
18403 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18404 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18405 \-*) ;;
18406 *) break;;
18407 esac
18408 done
18409 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18412 if test -n "$compiler"; then
18413 # We don't want -fno-exception when compiling C++ code, so set the
18414 # no_builtin_flag separately
18415 if test "$GXX" = yes; then
18416 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18417 else
18418 lt_prog_compiler_no_builtin_flag_CXX=
18421 if test "$GXX" = yes; then
18422 # Set up default GNU C++ configuration
18426 # Check whether --with-gnu-ld was given.
18427 if test "${with_gnu_ld+set}" = set; then :
18428 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18429 else
18430 with_gnu_ld=no
18433 ac_prog=ld
18434 if test "$GCC" = yes; then
18435 # Check if gcc -print-prog-name=ld gives a path.
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18437 $as_echo_n "checking for ld used by $CC... " >&6; }
18438 case $host in
18439 *-*-mingw*)
18440 # gcc leaves a trailing carriage return which upsets mingw
18441 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18443 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18444 esac
18445 case $ac_prog in
18446 # Accept absolute paths.
18447 [\\/]* | ?:[\\/]*)
18448 re_direlt='/[^/][^/]*/\.\./'
18449 # Canonicalize the pathname of ld
18450 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18451 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18452 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18453 done
18454 test -z "$LD" && LD="$ac_prog"
18457 # If it fails, then pretend we aren't using GCC.
18458 ac_prog=ld
18461 # If it is relative, then search for the first ld in PATH.
18462 with_gnu_ld=unknown
18464 esac
18465 elif test "$with_gnu_ld" = yes; then
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18467 $as_echo_n "checking for GNU ld... " >&6; }
18468 else
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18470 $as_echo_n "checking for non-GNU ld... " >&6; }
18472 if test "${lt_cv_path_LD+set}" = set; then :
18473 $as_echo_n "(cached) " >&6
18474 else
18475 if test -z "$LD"; then
18476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18477 for ac_dir in $PATH; do
18478 IFS="$lt_save_ifs"
18479 test -z "$ac_dir" && ac_dir=.
18480 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18481 lt_cv_path_LD="$ac_dir/$ac_prog"
18482 # Check to see if the program is GNU ld. I'd rather use --version,
18483 # but apparently some variants of GNU ld only accept -v.
18484 # Break only if it was the GNU/non-GNU ld that we prefer.
18485 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18486 *GNU* | *'with BFD'*)
18487 test "$with_gnu_ld" != no && break
18490 test "$with_gnu_ld" != yes && break
18492 esac
18494 done
18495 IFS="$lt_save_ifs"
18496 else
18497 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18501 LD="$lt_cv_path_LD"
18502 if test -n "$LD"; then
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18504 $as_echo "$LD" >&6; }
18505 else
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18507 $as_echo "no" >&6; }
18509 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18511 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18512 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18513 $as_echo_n "(cached) " >&6
18514 else
18515 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18516 case `$LD -v 2>&1 </dev/null` in
18517 *GNU* | *'with BFD'*)
18518 lt_cv_prog_gnu_ld=yes
18521 lt_cv_prog_gnu_ld=no
18523 esac
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18526 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18527 with_gnu_ld=$lt_cv_prog_gnu_ld
18535 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18536 # archiving commands below assume that GNU ld is being used.
18537 if test "$with_gnu_ld" = yes; then
18538 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18539 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'
18541 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18542 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18544 # If archive_cmds runs LD, not CC, wlarc should be empty
18545 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18546 # investigate it a little bit more. (MM)
18547 wlarc='${wl}'
18549 # ancient GNU ld didn't support --whole-archive et. al.
18550 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18551 $GREP 'no-whole-archive' > /dev/null; then
18552 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18553 else
18554 whole_archive_flag_spec_CXX=
18556 else
18557 with_gnu_ld=no
18558 wlarc=
18560 # A generic and very simple default shared library creation
18561 # command for GNU C++ for the case where it uses the native
18562 # linker, instead of GNU ld. If possible, this setting should
18563 # overridden to take advantage of the native linker features on
18564 # the platform it is being used on.
18565 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18568 # Commands to make compiler produce verbose output that lists
18569 # what "hidden" libraries, object files and flags are used when
18570 # linking a shared library.
18571 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18573 else
18574 GXX=no
18575 with_gnu_ld=no
18576 wlarc=
18579 # PORTME: fill in a description of your system's C++ link characteristics
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18581 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18582 ld_shlibs_CXX=yes
18583 case $host_os in
18584 aix3*)
18585 # FIXME: insert proper C++ library support
18586 ld_shlibs_CXX=no
18588 aix[4-9]*)
18589 if test "$host_cpu" = ia64; then
18590 # On IA64, the linker does run time linking by default, so we don't
18591 # have to do anything special.
18592 aix_use_runtimelinking=no
18593 exp_sym_flag='-Bexport'
18594 no_entry_flag=""
18595 else
18596 aix_use_runtimelinking=no
18598 # Test if we are trying to use run time linking or normal
18599 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18600 # need to do runtime linking.
18601 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18602 for ld_flag in $LDFLAGS; do
18603 case $ld_flag in
18604 *-brtl*)
18605 aix_use_runtimelinking=yes
18606 break
18608 esac
18609 done
18611 esac
18613 exp_sym_flag='-bexport'
18614 no_entry_flag='-bnoentry'
18617 # When large executables or shared objects are built, AIX ld can
18618 # have problems creating the table of contents. If linking a library
18619 # or program results in "error TOC overflow" add -mminimal-toc to
18620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18623 archive_cmds_CXX=''
18624 hardcode_direct_CXX=yes
18625 hardcode_direct_absolute_CXX=yes
18626 hardcode_libdir_separator_CXX=':'
18627 link_all_deplibs_CXX=yes
18628 file_list_spec_CXX='${wl}-f,'
18630 if test "$GXX" = yes; then
18631 case $host_os in aix4.[012]|aix4.[012].*)
18632 # We only want to do this on AIX 4.2 and lower, the check
18633 # below for broken collect2 doesn't work under 4.3+
18634 collect2name=`${CC} -print-prog-name=collect2`
18635 if test -f "$collect2name" &&
18636 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18637 then
18638 # We have reworked collect2
18640 else
18641 # We have old collect2
18642 hardcode_direct_CXX=unsupported
18643 # It fails to find uninstalled libraries when the uninstalled
18644 # path is not listed in the libpath. Setting hardcode_minus_L
18645 # to unsupported forces relinking
18646 hardcode_minus_L_CXX=yes
18647 hardcode_libdir_flag_spec_CXX='-L$libdir'
18648 hardcode_libdir_separator_CXX=
18650 esac
18651 shared_flag='-shared'
18652 if test "$aix_use_runtimelinking" = yes; then
18653 shared_flag="$shared_flag "'${wl}-G'
18655 else
18656 # not using gcc
18657 if test "$host_cpu" = ia64; then
18658 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18659 # chokes on -Wl,-G. The following line is correct:
18660 shared_flag='-G'
18661 else
18662 if test "$aix_use_runtimelinking" = yes; then
18663 shared_flag='${wl}-G'
18664 else
18665 shared_flag='${wl}-bM:SRE'
18670 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18671 # It seems that -bexpall does not export symbols beginning with
18672 # underscore (_), so it is better to generate a list of symbols to
18673 # export.
18674 always_export_symbols_CXX=yes
18675 if test "$aix_use_runtimelinking" = yes; then
18676 # Warning - without using the other runtime loading flags (-brtl),
18677 # -berok will link without error, but may produce a broken library.
18678 allow_undefined_flag_CXX='-berok'
18679 # Determine the default libpath from the value encoded in an empty
18680 # executable.
18681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18682 /* end confdefs.h. */
18685 main ()
18689 return 0;
18691 _ACEOF
18692 if ac_fn_cxx_try_link "$LINENO"; then :
18694 lt_aix_libpath_sed='
18695 /Import File Strings/,/^$/ {
18696 /^0/ {
18697 s/^0 *\(.*\)$/\1/
18701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18702 # Check for a 64-bit object if we didn't find anything.
18703 if test -z "$aix_libpath"; then
18704 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18707 rm -f core conftest.err conftest.$ac_objext \
18708 conftest$ac_exeext conftest.$ac_ext
18709 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18711 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18713 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"
18714 else
18715 if test "$host_cpu" = ia64; then
18716 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18717 allow_undefined_flag_CXX="-z nodefs"
18718 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"
18719 else
18720 # Determine the default libpath from the value encoded in an
18721 # empty executable.
18722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18723 /* end confdefs.h. */
18726 main ()
18730 return 0;
18732 _ACEOF
18733 if ac_fn_cxx_try_link "$LINENO"; then :
18735 lt_aix_libpath_sed='
18736 /Import File Strings/,/^$/ {
18737 /^0/ {
18738 s/^0 *\(.*\)$/\1/
18742 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18743 # Check for a 64-bit object if we didn't find anything.
18744 if test -z "$aix_libpath"; then
18745 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18748 rm -f core conftest.err conftest.$ac_objext \
18749 conftest$ac_exeext conftest.$ac_ext
18750 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18752 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18753 # Warning - without using the other run time loading flags,
18754 # -berok will link without error, but may produce a broken library.
18755 no_undefined_flag_CXX=' ${wl}-bernotok'
18756 allow_undefined_flag_CXX=' ${wl}-berok'
18757 if test "$with_gnu_ld" = yes; then
18758 # We only use this code for GNU lds that support --whole-archive.
18759 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18760 else
18761 # Exported symbols can be pulled into shared objects from archives
18762 whole_archive_flag_spec_CXX='$convenience'
18764 archive_cmds_need_lc_CXX=yes
18765 # This is similar to how AIX traditionally builds its shared
18766 # libraries.
18767 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'
18772 beos*)
18773 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18774 allow_undefined_flag_CXX=unsupported
18775 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18776 # support --undefined. This deserves some investigation. FIXME
18777 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18778 else
18779 ld_shlibs_CXX=no
18783 chorus*)
18784 case $cc_basename in
18786 # FIXME: insert proper C++ library support
18787 ld_shlibs_CXX=no
18789 esac
18792 cygwin* | mingw* | pw32* | cegcc*)
18793 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18794 # as there is no search path for DLLs.
18795 hardcode_libdir_flag_spec_CXX='-L$libdir'
18796 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18797 allow_undefined_flag_CXX=unsupported
18798 always_export_symbols_CXX=no
18799 enable_shared_with_static_runtimes_CXX=yes
18801 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18802 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'
18803 # If the export-symbols file already is a .def file (1st line
18804 # is EXPORTS), use it as is; otherwise, prepend...
18805 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18806 cp $export_symbols $output_objdir/$soname.def;
18807 else
18808 echo EXPORTS > $output_objdir/$soname.def;
18809 cat $export_symbols >> $output_objdir/$soname.def;
18811 $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'
18812 else
18813 ld_shlibs_CXX=no
18816 darwin* | rhapsody*)
18819 archive_cmds_need_lc_CXX=no
18820 hardcode_direct_CXX=no
18821 hardcode_automatic_CXX=yes
18822 hardcode_shlibpath_var_CXX=unsupported
18823 if test "$lt_cv_ld_force_load" = "yes"; then
18824 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\"`'
18825 else
18826 whole_archive_flag_spec_CXX=''
18828 link_all_deplibs_CXX=yes
18829 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18830 case $cc_basename in
18831 ifort*) _lt_dar_can_shared=yes ;;
18832 *) _lt_dar_can_shared=$GCC ;;
18833 esac
18834 if test "$_lt_dar_can_shared" = "yes"; then
18835 output_verbose_link_cmd=func_echo_all
18836 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}"
18837 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18838 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}"
18839 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}"
18840 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18841 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}"
18842 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}"
18845 else
18846 ld_shlibs_CXX=no
18851 dgux*)
18852 case $cc_basename in
18853 ec++*)
18854 # FIXME: insert proper C++ library support
18855 ld_shlibs_CXX=no
18857 ghcx*)
18858 # Green Hills C++ Compiler
18859 # FIXME: insert proper C++ library support
18860 ld_shlibs_CXX=no
18863 # FIXME: insert proper C++ library support
18864 ld_shlibs_CXX=no
18866 esac
18869 freebsd2.*)
18870 # C++ shared libraries reported to be fairly broken before
18871 # switch to ELF
18872 ld_shlibs_CXX=no
18875 freebsd-elf*)
18876 archive_cmds_need_lc_CXX=no
18879 freebsd* | dragonfly*)
18880 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18881 # conventions
18882 ld_shlibs_CXX=yes
18885 gnu*)
18888 haiku*)
18889 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18890 link_all_deplibs_CXX=yes
18893 hpux9*)
18894 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18895 hardcode_libdir_separator_CXX=:
18896 export_dynamic_flag_spec_CXX='${wl}-E'
18897 hardcode_direct_CXX=yes
18898 hardcode_minus_L_CXX=yes # Not in the search PATH,
18899 # but as the default
18900 # location of the library.
18902 case $cc_basename in
18903 CC*)
18904 # FIXME: insert proper C++ library support
18905 ld_shlibs_CXX=no
18907 aCC*)
18908 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'
18909 # Commands to make compiler produce verbose output that lists
18910 # what "hidden" libraries, object files and flags are used when
18911 # linking a shared library.
18913 # There doesn't appear to be a way to prevent this compiler from
18914 # explicitly linking system object files so we need to strip them
18915 # from the output so that they don't get included in the library
18916 # dependencies.
18917 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"'
18920 if test "$GXX" = yes; then
18921 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'
18922 else
18923 # FIXME: insert proper C++ library support
18924 ld_shlibs_CXX=no
18927 esac
18930 hpux10*|hpux11*)
18931 if test $with_gnu_ld = no; then
18932 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18933 hardcode_libdir_separator_CXX=:
18935 case $host_cpu in
18936 hppa*64*|ia64*)
18939 export_dynamic_flag_spec_CXX='${wl}-E'
18941 esac
18943 case $host_cpu in
18944 hppa*64*|ia64*)
18945 hardcode_direct_CXX=no
18946 hardcode_shlibpath_var_CXX=no
18949 hardcode_direct_CXX=yes
18950 hardcode_direct_absolute_CXX=yes
18951 hardcode_minus_L_CXX=yes # Not in the search PATH,
18952 # but as the default
18953 # location of the library.
18955 esac
18957 case $cc_basename in
18958 CC*)
18959 # FIXME: insert proper C++ library support
18960 ld_shlibs_CXX=no
18962 aCC*)
18963 case $host_cpu in
18964 hppa*64*)
18965 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18967 ia64*)
18968 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18971 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18973 esac
18974 # Commands to make compiler produce verbose output that lists
18975 # what "hidden" libraries, object files and flags are used when
18976 # linking a shared library.
18978 # There doesn't appear to be a way to prevent this compiler from
18979 # explicitly linking system object files so we need to strip them
18980 # from the output so that they don't get included in the library
18981 # dependencies.
18982 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"'
18985 if test "$GXX" = yes; then
18986 if test $with_gnu_ld = no; then
18987 case $host_cpu in
18988 hppa*64*)
18989 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18991 ia64*)
18992 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18995 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'
18997 esac
18999 else
19000 # FIXME: insert proper C++ library support
19001 ld_shlibs_CXX=no
19004 esac
19007 interix[3-9]*)
19008 hardcode_direct_CXX=no
19009 hardcode_shlibpath_var_CXX=no
19010 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19011 export_dynamic_flag_spec_CXX='${wl}-E'
19012 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19013 # Instead, shared libraries are loaded at an image base (0x10000000 by
19014 # default) and relocated if they conflict, which is a slow very memory
19015 # consuming and fragmenting process. To avoid this, we pick a random,
19016 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19017 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19018 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'
19019 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'
19021 irix5* | irix6*)
19022 case $cc_basename in
19023 CC*)
19024 # SGI C++
19025 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'
19027 # Archives containing C++ object files must be created using
19028 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19029 # necessary to make sure instantiated templates are included
19030 # in the archive.
19031 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19034 if test "$GXX" = yes; then
19035 if test "$with_gnu_ld" = no; then
19036 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'
19037 else
19038 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'
19041 link_all_deplibs_CXX=yes
19043 esac
19044 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19045 hardcode_libdir_separator_CXX=:
19046 inherit_rpath_CXX=yes
19049 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19050 case $cc_basename in
19051 KCC*)
19052 # Kuck and Associates, Inc. (KAI) C++ Compiler
19054 # KCC will only create a shared library if the output file
19055 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19056 # to its proper name (with version) after linking.
19057 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'
19058 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'
19059 # Commands to make compiler produce verbose output that lists
19060 # what "hidden" libraries, object files and flags are used when
19061 # linking a shared library.
19063 # There doesn't appear to be a way to prevent this compiler from
19064 # explicitly linking system object files so we need to strip them
19065 # from the output so that they don't get included in the library
19066 # dependencies.
19067 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"'
19069 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19070 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19072 # Archives containing C++ object files must be created using
19073 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19074 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19076 icpc* | ecpc* )
19077 # Intel C++
19078 with_gnu_ld=yes
19079 # version 8.0 and above of icpc choke on multiply defined symbols
19080 # if we add $predep_objects and $postdep_objects, however 7.1 and
19081 # earlier do not add the objects themselves.
19082 case `$CC -V 2>&1` in
19083 *"Version 7."*)
19084 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19085 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'
19087 *) # Version 8.0 or newer
19088 tmp_idyn=
19089 case $host_cpu in
19090 ia64*) tmp_idyn=' -i_dynamic';;
19091 esac
19092 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19093 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'
19095 esac
19096 archive_cmds_need_lc_CXX=no
19097 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19098 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19099 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19101 pgCC* | pgcpp*)
19102 # Portland Group C++ compiler
19103 case `$CC -V` in
19104 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19105 prelink_cmds_CXX='tpldir=Template.dir~
19106 rm -rf $tpldir~
19107 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19108 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19109 old_archive_cmds_CXX='tpldir=Template.dir~
19110 rm -rf $tpldir~
19111 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19112 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19113 $RANLIB $oldlib'
19114 archive_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 -o $lib'
19118 archive_expsym_cmds_CXX='tpldir=Template.dir~
19119 rm -rf $tpldir~
19120 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19121 $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'
19123 *) # Version 6 and above use weak symbols
19124 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19125 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'
19127 esac
19129 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19130 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19131 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'
19133 cxx*)
19134 # Compaq C++
19135 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19136 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'
19138 runpath_var=LD_RUN_PATH
19139 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19140 hardcode_libdir_separator_CXX=:
19142 # Commands to make compiler produce verbose output that lists
19143 # what "hidden" libraries, object files and flags are used when
19144 # linking a shared library.
19146 # There doesn't appear to be a way to prevent this compiler from
19147 # explicitly linking system object files so we need to strip them
19148 # from the output so that they don't get included in the library
19149 # dependencies.
19150 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'
19152 xl* | mpixl* | bgxl*)
19153 # IBM XL 8.0 on PPC, with GNU ld
19154 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19155 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19156 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19157 if test "x$supports_anon_versioning" = xyes; then
19158 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19159 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19160 echo "local: *; };" >> $output_objdir/$libname.ver~
19161 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19165 case `$CC -V 2>&1 | sed 5q` in
19166 *Sun\ C*)
19167 # Sun C++ 5.9
19168 no_undefined_flag_CXX=' -zdefs'
19169 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19170 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'
19171 hardcode_libdir_flag_spec_CXX='-R$libdir'
19172 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'
19173 compiler_needs_object_CXX=yes
19175 # Not sure whether something based on
19176 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19177 # would be better.
19178 output_verbose_link_cmd='func_echo_all'
19180 # Archives containing C++ object files must be created using
19181 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19182 # necessary to make sure instantiated templates are included
19183 # in the archive.
19184 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19186 esac
19188 esac
19191 lynxos*)
19192 # FIXME: insert proper C++ library support
19193 ld_shlibs_CXX=no
19196 m88k*)
19197 # FIXME: insert proper C++ library support
19198 ld_shlibs_CXX=no
19201 mvs*)
19202 case $cc_basename in
19203 cxx*)
19204 # FIXME: insert proper C++ library support
19205 ld_shlibs_CXX=no
19208 # FIXME: insert proper C++ library support
19209 ld_shlibs_CXX=no
19211 esac
19214 netbsd*)
19215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19216 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19217 wlarc=
19218 hardcode_libdir_flag_spec_CXX='-R$libdir'
19219 hardcode_direct_CXX=yes
19220 hardcode_shlibpath_var_CXX=no
19222 # Workaround some broken pre-1.5 toolchains
19223 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19226 *nto* | *qnx*)
19227 ld_shlibs_CXX=yes
19230 openbsd2*)
19231 # C++ shared libraries are fairly broken
19232 ld_shlibs_CXX=no
19235 openbsd*)
19236 if test -f /usr/libexec/ld.so; then
19237 hardcode_direct_CXX=yes
19238 hardcode_shlibpath_var_CXX=no
19239 hardcode_direct_absolute_CXX=yes
19240 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19242 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19243 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19244 export_dynamic_flag_spec_CXX='${wl}-E'
19245 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19247 output_verbose_link_cmd=func_echo_all
19248 else
19249 ld_shlibs_CXX=no
19253 osf3* | osf4* | osf5*)
19254 case $cc_basename in
19255 KCC*)
19256 # Kuck and Associates, Inc. (KAI) C++ Compiler
19258 # KCC will only create a shared library if the output file
19259 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19260 # to its proper name (with version) after linking.
19261 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'
19263 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19264 hardcode_libdir_separator_CXX=:
19266 # Archives containing C++ object files must be created using
19267 # the KAI C++ compiler.
19268 case $host in
19269 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19270 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19271 esac
19273 RCC*)
19274 # Rational C++ 2.4.1
19275 # FIXME: insert proper C++ library support
19276 ld_shlibs_CXX=no
19278 cxx*)
19279 case $host in
19280 osf3*)
19281 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19282 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'
19283 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19286 allow_undefined_flag_CXX=' -expect_unresolved \*'
19287 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'
19288 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19289 echo "-hidden">> $lib.exp~
19290 $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~
19291 $RM $lib.exp'
19292 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19294 esac
19296 hardcode_libdir_separator_CXX=:
19298 # Commands to make compiler produce verbose output that lists
19299 # what "hidden" libraries, object files and flags are used when
19300 # linking a shared library.
19302 # There doesn't appear to be a way to prevent this compiler from
19303 # explicitly linking system object files so we need to strip them
19304 # from the output so that they don't get included in the library
19305 # dependencies.
19306 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"'
19309 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19310 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19311 case $host in
19312 osf3*)
19313 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'
19316 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'
19318 esac
19320 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19321 hardcode_libdir_separator_CXX=:
19323 # Commands to make compiler produce verbose output that lists
19324 # what "hidden" libraries, object files and flags are used when
19325 # linking a shared library.
19326 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19328 else
19329 # FIXME: insert proper C++ library support
19330 ld_shlibs_CXX=no
19333 esac
19336 psos*)
19337 # FIXME: insert proper C++ library support
19338 ld_shlibs_CXX=no
19341 sunos4*)
19342 case $cc_basename in
19343 CC*)
19344 # Sun C++ 4.x
19345 # FIXME: insert proper C++ library support
19346 ld_shlibs_CXX=no
19348 lcc*)
19349 # Lucid
19350 # FIXME: insert proper C++ library support
19351 ld_shlibs_CXX=no
19354 # FIXME: insert proper C++ library support
19355 ld_shlibs_CXX=no
19357 esac
19360 solaris*)
19361 case $cc_basename in
19362 CC*)
19363 # Sun C++ 4.2, 5.x and Centerline C++
19364 archive_cmds_need_lc_CXX=yes
19365 no_undefined_flag_CXX=' -zdefs'
19366 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19367 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19368 $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'
19370 hardcode_libdir_flag_spec_CXX='-R$libdir'
19371 hardcode_shlibpath_var_CXX=no
19372 case $host_os in
19373 solaris2.[0-5] | solaris2.[0-5].*) ;;
19375 # The compiler driver will combine and reorder linker options,
19376 # but understands `-z linker_flag'.
19377 # Supported since Solaris 2.6 (maybe 2.5.1?)
19378 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19380 esac
19381 link_all_deplibs_CXX=yes
19383 output_verbose_link_cmd='func_echo_all'
19385 # Archives containing C++ object files must be created using
19386 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19387 # necessary to make sure instantiated templates are included
19388 # in the archive.
19389 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19391 gcx*)
19392 # Green Hills C++ Compiler
19393 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19395 # The C++ compiler must be used to create the archive.
19396 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19399 # GNU C++ compiler with Solaris linker
19400 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19401 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19402 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19403 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19404 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19405 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19407 # Commands to make compiler produce verbose output that lists
19408 # what "hidden" libraries, object files and flags are used when
19409 # linking a shared library.
19410 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19411 else
19412 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19413 # platform.
19414 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19415 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19416 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19418 # Commands to make compiler produce verbose output that lists
19419 # what "hidden" libraries, object files and flags are used when
19420 # linking a shared library.
19421 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19424 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19425 case $host_os in
19426 solaris2.[0-5] | solaris2.[0-5].*) ;;
19428 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19430 esac
19433 esac
19436 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19437 no_undefined_flag_CXX='${wl}-z,text'
19438 archive_cmds_need_lc_CXX=no
19439 hardcode_shlibpath_var_CXX=no
19440 runpath_var='LD_RUN_PATH'
19442 case $cc_basename in
19443 CC*)
19444 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19445 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19448 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19449 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19451 esac
19454 sysv5* | sco3.2v5* | sco5v6*)
19455 # Note: We can NOT use -z defs as we might desire, because we do not
19456 # link with -lc, and that would cause any symbols used from libc to
19457 # always be unresolved, which means just about no library would
19458 # ever link correctly. If we're not using GNU ld we use -z text
19459 # though, which does catch some bad symbols but isn't as heavy-handed
19460 # as -z defs.
19461 no_undefined_flag_CXX='${wl}-z,text'
19462 allow_undefined_flag_CXX='${wl}-z,nodefs'
19463 archive_cmds_need_lc_CXX=no
19464 hardcode_shlibpath_var_CXX=no
19465 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19466 hardcode_libdir_separator_CXX=':'
19467 link_all_deplibs_CXX=yes
19468 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19469 runpath_var='LD_RUN_PATH'
19471 case $cc_basename in
19472 CC*)
19473 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19474 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19475 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19476 '"$old_archive_cmds_CXX"
19477 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19478 '"$reload_cmds_CXX"
19481 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19482 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19484 esac
19487 tandem*)
19488 case $cc_basename in
19489 NCC*)
19490 # NonStop-UX NCC 3.20
19491 # FIXME: insert proper C++ library support
19492 ld_shlibs_CXX=no
19495 # FIXME: insert proper C++ library support
19496 ld_shlibs_CXX=no
19498 esac
19501 vxworks*)
19502 # FIXME: insert proper C++ library support
19503 ld_shlibs_CXX=no
19507 # FIXME: insert proper C++ library support
19508 ld_shlibs_CXX=no
19510 esac
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19513 $as_echo "$ld_shlibs_CXX" >&6; }
19514 test "$ld_shlibs_CXX" = no && can_build_shared=no
19516 GCC_CXX="$GXX"
19517 LD_CXX="$LD"
19519 ## CAVEAT EMPTOR:
19520 ## There is no encapsulation within the following macros, do not change
19521 ## the running order or otherwise move them around unless you know exactly
19522 ## what you are doing...
19523 # Dependencies to place before and after the object being linked:
19524 predep_objects_CXX=
19525 postdep_objects_CXX=
19526 predeps_CXX=
19527 postdeps_CXX=
19528 compiler_lib_search_path_CXX=
19530 cat > conftest.$ac_ext <<_LT_EOF
19531 class Foo
19533 public:
19534 Foo (void) { a = 0; }
19535 private:
19536 int a;
19538 _LT_EOF
19540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19541 (eval $ac_compile) 2>&5
19542 ac_status=$?
19543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19544 test $ac_status = 0; }; then
19545 # Parse the compiler output and extract the necessary
19546 # objects, libraries and library flags.
19548 # Sentinel used to keep track of whether or not we are before
19549 # the conftest object file.
19550 pre_test_object_deps_done=no
19552 for p in `eval "$output_verbose_link_cmd"`; do
19553 case $p in
19555 -L* | -R* | -l*)
19556 # Some compilers place space between "-{L,R}" and the path.
19557 # Remove the space.
19558 if test $p = "-L" ||
19559 test $p = "-R"; then
19560 prev=$p
19561 continue
19562 else
19563 prev=
19566 if test "$pre_test_object_deps_done" = no; then
19567 case $p in
19568 -L* | -R*)
19569 # Internal compiler library paths should come after those
19570 # provided the user. The postdeps already come after the
19571 # user supplied libs so there is no need to process them.
19572 if test -z "$compiler_lib_search_path_CXX"; then
19573 compiler_lib_search_path_CXX="${prev}${p}"
19574 else
19575 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19578 # The "-l" case would never come before the object being
19579 # linked, so don't bother handling this case.
19580 esac
19581 else
19582 if test -z "$postdeps_CXX"; then
19583 postdeps_CXX="${prev}${p}"
19584 else
19585 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19590 *.$objext)
19591 # This assumes that the test object file only shows up
19592 # once in the compiler output.
19593 if test "$p" = "conftest.$objext"; then
19594 pre_test_object_deps_done=yes
19595 continue
19598 if test "$pre_test_object_deps_done" = no; then
19599 if test -z "$predep_objects_CXX"; then
19600 predep_objects_CXX="$p"
19601 else
19602 predep_objects_CXX="$predep_objects_CXX $p"
19604 else
19605 if test -z "$postdep_objects_CXX"; then
19606 postdep_objects_CXX="$p"
19607 else
19608 postdep_objects_CXX="$postdep_objects_CXX $p"
19613 *) ;; # Ignore the rest.
19615 esac
19616 done
19618 # Clean up.
19619 rm -f a.out a.exe
19620 else
19621 echo "libtool.m4: error: problem compiling CXX test program"
19624 $RM -f confest.$objext
19626 # PORTME: override above test on systems where it is broken
19627 case $host_os in
19628 interix[3-9]*)
19629 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19630 # hack all around it, let's just trust "g++" to DTRT.
19631 predep_objects_CXX=
19632 postdep_objects_CXX=
19633 postdeps_CXX=
19636 linux*)
19637 case `$CC -V 2>&1 | sed 5q` in
19638 *Sun\ C*)
19639 # Sun C++ 5.9
19641 # The more standards-conforming stlport4 library is
19642 # incompatible with the Cstd library. Avoid specifying
19643 # it if it's in CXXFLAGS. Ignore libCrun as
19644 # -library=stlport4 depends on it.
19645 case " $CXX $CXXFLAGS " in
19646 *" -library=stlport4 "*)
19647 solaris_use_stlport4=yes
19649 esac
19651 if test "$solaris_use_stlport4" != yes; then
19652 postdeps_CXX='-library=Cstd -library=Crun'
19655 esac
19658 solaris*)
19659 case $cc_basename in
19660 CC*)
19661 # The more standards-conforming stlport4 library is
19662 # incompatible with the Cstd library. Avoid specifying
19663 # it if it's in CXXFLAGS. Ignore libCrun as
19664 # -library=stlport4 depends on it.
19665 case " $CXX $CXXFLAGS " in
19666 *" -library=stlport4 "*)
19667 solaris_use_stlport4=yes
19669 esac
19671 # Adding this requires a known-good setup of shared libraries for
19672 # Sun compiler versions before 5.6, else PIC objects from an old
19673 # archive will be linked into the output, leading to subtle bugs.
19674 if test "$solaris_use_stlport4" != yes; then
19675 postdeps_CXX='-library=Cstd -library=Crun'
19678 esac
19680 esac
19683 case " $postdeps_CXX " in
19684 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19685 esac
19686 compiler_lib_search_dirs_CXX=
19687 if test -n "${compiler_lib_search_path_CXX}"; then
19688 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19721 lt_prog_compiler_wl_CXX=
19722 lt_prog_compiler_pic_CXX=
19723 lt_prog_compiler_static_CXX=
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19726 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19728 # C++ specific cases for pic, static, wl, etc.
19729 if test "$GXX" = yes; then
19730 lt_prog_compiler_wl_CXX='-Wl,'
19731 lt_prog_compiler_static_CXX='-static'
19733 case $host_os in
19734 aix*)
19735 # All AIX code is PIC.
19736 if test "$host_cpu" = ia64; then
19737 # AIX 5 now supports IA64 processor
19738 lt_prog_compiler_static_CXX='-Bstatic'
19740 lt_prog_compiler_pic_CXX='-fPIC'
19743 amigaos*)
19744 case $host_cpu in
19745 powerpc)
19746 # see comment about AmigaOS4 .so support
19747 lt_prog_compiler_pic_CXX='-fPIC'
19749 m68k)
19750 # FIXME: we need at least 68020 code to build shared libraries, but
19751 # adding the `-m68020' flag to GCC prevents building anything better,
19752 # like `-m68040'.
19753 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19755 esac
19758 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19759 # PIC is the default for these OSes.
19761 mingw* | cygwin* | os2* | pw32* | cegcc*)
19762 # This hack is so that the source file can tell whether it is being
19763 # built for inclusion in a dll (and should export symbols for example).
19764 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19765 # (--disable-auto-import) libraries
19766 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19768 darwin* | rhapsody*)
19769 # PIC is the default on this platform
19770 # Common symbols not allowed in MH_DYLIB files
19771 lt_prog_compiler_pic_CXX='-fno-common'
19773 *djgpp*)
19774 # DJGPP does not support shared libraries at all
19775 lt_prog_compiler_pic_CXX=
19777 haiku*)
19778 # PIC is the default for Haiku.
19779 # The "-static" flag exists, but is broken.
19780 lt_prog_compiler_static_CXX=
19782 interix[3-9]*)
19783 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19784 # Instead, we relocate shared libraries at runtime.
19786 sysv4*MP*)
19787 if test -d /usr/nec; then
19788 lt_prog_compiler_pic_CXX=-Kconform_pic
19791 hpux*)
19792 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19793 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19794 # sets the default TLS model and affects inlining.
19795 case $host_cpu in
19796 hppa*64*)
19799 lt_prog_compiler_pic_CXX='-fPIC'
19801 esac
19803 *qnx* | *nto*)
19804 # QNX uses GNU C++, but need to define -shared option too, otherwise
19805 # it will coredump.
19806 lt_prog_compiler_pic_CXX='-fPIC -shared'
19809 lt_prog_compiler_pic_CXX='-fPIC'
19811 esac
19812 else
19813 case $host_os in
19814 aix[4-9]*)
19815 # All AIX code is PIC.
19816 if test "$host_cpu" = ia64; then
19817 # AIX 5 now supports IA64 processor
19818 lt_prog_compiler_static_CXX='-Bstatic'
19819 else
19820 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19823 chorus*)
19824 case $cc_basename in
19825 cxch68*)
19826 # Green Hills C++ Compiler
19827 # _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"
19829 esac
19831 dgux*)
19832 case $cc_basename in
19833 ec++*)
19834 lt_prog_compiler_pic_CXX='-KPIC'
19836 ghcx*)
19837 # Green Hills C++ Compiler
19838 lt_prog_compiler_pic_CXX='-pic'
19842 esac
19844 freebsd* | dragonfly*)
19845 # FreeBSD uses GNU C++
19847 hpux9* | hpux10* | hpux11*)
19848 case $cc_basename in
19849 CC*)
19850 lt_prog_compiler_wl_CXX='-Wl,'
19851 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19852 if test "$host_cpu" != ia64; then
19853 lt_prog_compiler_pic_CXX='+Z'
19856 aCC*)
19857 lt_prog_compiler_wl_CXX='-Wl,'
19858 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19859 case $host_cpu in
19860 hppa*64*|ia64*)
19861 # +Z the default
19864 lt_prog_compiler_pic_CXX='+Z'
19866 esac
19870 esac
19872 interix*)
19873 # This is c89, which is MS Visual C++ (no shared libs)
19874 # Anyone wants to do a port?
19876 irix5* | irix6* | nonstopux*)
19877 case $cc_basename in
19878 CC*)
19879 lt_prog_compiler_wl_CXX='-Wl,'
19880 lt_prog_compiler_static_CXX='-non_shared'
19881 # CC pic flag -KPIC is the default.
19885 esac
19887 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19888 case $cc_basename in
19889 KCC*)
19890 # KAI C++ Compiler
19891 lt_prog_compiler_wl_CXX='--backend -Wl,'
19892 lt_prog_compiler_pic_CXX='-fPIC'
19894 ecpc* )
19895 # old Intel C++ for x86_64 which still supported -KPIC.
19896 lt_prog_compiler_wl_CXX='-Wl,'
19897 lt_prog_compiler_pic_CXX='-KPIC'
19898 lt_prog_compiler_static_CXX='-static'
19900 icpc* )
19901 # Intel C++, used to be incompatible with GCC.
19902 # ICC 10 doesn't accept -KPIC any more.
19903 lt_prog_compiler_wl_CXX='-Wl,'
19904 lt_prog_compiler_pic_CXX='-fPIC'
19905 lt_prog_compiler_static_CXX='-static'
19907 pgCC* | pgcpp*)
19908 # Portland Group C++ compiler
19909 lt_prog_compiler_wl_CXX='-Wl,'
19910 lt_prog_compiler_pic_CXX='-fpic'
19911 lt_prog_compiler_static_CXX='-Bstatic'
19913 cxx*)
19914 # Compaq C++
19915 # Make sure the PIC flag is empty. It appears that all Alpha
19916 # Linux and Compaq Tru64 Unix objects are PIC.
19917 lt_prog_compiler_pic_CXX=
19918 lt_prog_compiler_static_CXX='-non_shared'
19920 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19921 # IBM XL 8.0, 9.0 on PPC and BlueGene
19922 lt_prog_compiler_wl_CXX='-Wl,'
19923 lt_prog_compiler_pic_CXX='-qpic'
19924 lt_prog_compiler_static_CXX='-qstaticlink'
19927 case `$CC -V 2>&1 | sed 5q` in
19928 *Sun\ C*)
19929 # Sun C++ 5.9
19930 lt_prog_compiler_pic_CXX='-KPIC'
19931 lt_prog_compiler_static_CXX='-Bstatic'
19932 lt_prog_compiler_wl_CXX='-Qoption ld '
19934 esac
19936 esac
19938 lynxos*)
19940 m88k*)
19942 mvs*)
19943 case $cc_basename in
19944 cxx*)
19945 lt_prog_compiler_pic_CXX='-W c,exportall'
19949 esac
19951 netbsd*)
19953 *qnx* | *nto*)
19954 # QNX uses GNU C++, but need to define -shared option too, otherwise
19955 # it will coredump.
19956 lt_prog_compiler_pic_CXX='-fPIC -shared'
19958 osf3* | osf4* | osf5*)
19959 case $cc_basename in
19960 KCC*)
19961 lt_prog_compiler_wl_CXX='--backend -Wl,'
19963 RCC*)
19964 # Rational C++ 2.4.1
19965 lt_prog_compiler_pic_CXX='-pic'
19967 cxx*)
19968 # Digital/Compaq C++
19969 lt_prog_compiler_wl_CXX='-Wl,'
19970 # Make sure the PIC flag is empty. It appears that all Alpha
19971 # Linux and Compaq Tru64 Unix objects are PIC.
19972 lt_prog_compiler_pic_CXX=
19973 lt_prog_compiler_static_CXX='-non_shared'
19977 esac
19979 psos*)
19981 solaris*)
19982 case $cc_basename in
19983 CC*)
19984 # Sun C++ 4.2, 5.x and Centerline C++
19985 lt_prog_compiler_pic_CXX='-KPIC'
19986 lt_prog_compiler_static_CXX='-Bstatic'
19987 lt_prog_compiler_wl_CXX='-Qoption ld '
19989 gcx*)
19990 # Green Hills C++ Compiler
19991 lt_prog_compiler_pic_CXX='-PIC'
19995 esac
19997 sunos4*)
19998 case $cc_basename in
19999 CC*)
20000 # Sun C++ 4.x
20001 lt_prog_compiler_pic_CXX='-pic'
20002 lt_prog_compiler_static_CXX='-Bstatic'
20004 lcc*)
20005 # Lucid
20006 lt_prog_compiler_pic_CXX='-pic'
20010 esac
20012 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20013 case $cc_basename in
20014 CC*)
20015 lt_prog_compiler_wl_CXX='-Wl,'
20016 lt_prog_compiler_pic_CXX='-KPIC'
20017 lt_prog_compiler_static_CXX='-Bstatic'
20019 esac
20021 tandem*)
20022 case $cc_basename in
20023 NCC*)
20024 # NonStop-UX NCC 3.20
20025 lt_prog_compiler_pic_CXX='-KPIC'
20029 esac
20031 vxworks*)
20034 lt_prog_compiler_can_build_shared_CXX=no
20036 esac
20039 case $host_os in
20040 # For platforms which do not support PIC, -DPIC is meaningless:
20041 *djgpp*)
20042 lt_prog_compiler_pic_CXX=
20045 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20047 esac
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20049 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20054 # Check to make sure the PIC flag actually works.
20056 if test -n "$lt_prog_compiler_pic_CXX"; then
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20058 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20059 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20060 $as_echo_n "(cached) " >&6
20061 else
20062 lt_cv_prog_compiler_pic_works_CXX=no
20063 ac_outfile=conftest.$ac_objext
20064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20065 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20066 # Insert the option either (1) after the last *FLAGS variable, or
20067 # (2) before a word containing "conftest.", or (3) at the end.
20068 # Note that $ac_compile itself does not contain backslashes and begins
20069 # with a dollar sign (not a hyphen), so the echo should work correctly.
20070 # The option is referenced via a variable to avoid confusing sed.
20071 lt_compile=`echo "$ac_compile" | $SED \
20072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20074 -e 's:$: $lt_compiler_flag:'`
20075 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20076 (eval "$lt_compile" 2>conftest.err)
20077 ac_status=$?
20078 cat conftest.err >&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 if (exit $ac_status) && test -s "$ac_outfile"; then
20081 # The compiler can only warn and ignore the option if not recognized
20082 # So say no if there are warnings other than the usual output.
20083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20084 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20085 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20086 lt_cv_prog_compiler_pic_works_CXX=yes
20089 $RM conftest*
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20093 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20095 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20096 case $lt_prog_compiler_pic_CXX in
20097 "" | " "*) ;;
20098 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20099 esac
20100 else
20101 lt_prog_compiler_pic_CXX=
20102 lt_prog_compiler_can_build_shared_CXX=no
20110 # Check to make sure the static flag actually works.
20112 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20114 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20115 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20116 $as_echo_n "(cached) " >&6
20117 else
20118 lt_cv_prog_compiler_static_works_CXX=no
20119 save_LDFLAGS="$LDFLAGS"
20120 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20121 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20122 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20123 # The linker can only warn and ignore the option if not recognized
20124 # So say no if there are warnings
20125 if test -s conftest.err; then
20126 # Append any errors to the config.log.
20127 cat conftest.err 1>&5
20128 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20129 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20130 if diff conftest.exp conftest.er2 >/dev/null; then
20131 lt_cv_prog_compiler_static_works_CXX=yes
20133 else
20134 lt_cv_prog_compiler_static_works_CXX=yes
20137 $RM -r conftest*
20138 LDFLAGS="$save_LDFLAGS"
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20142 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20144 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20146 else
20147 lt_prog_compiler_static_CXX=
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20154 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20155 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20156 $as_echo_n "(cached) " >&6
20157 else
20158 lt_cv_prog_compiler_c_o_CXX=no
20159 $RM -r conftest 2>/dev/null
20160 mkdir conftest
20161 cd conftest
20162 mkdir out
20163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20165 lt_compiler_flag="-o out/conftest2.$ac_objext"
20166 # Insert the option either (1) after the last *FLAGS variable, or
20167 # (2) before a word containing "conftest.", or (3) at the end.
20168 # Note that $ac_compile itself does not contain backslashes and begins
20169 # with a dollar sign (not a hyphen), so the echo should work correctly.
20170 lt_compile=`echo "$ac_compile" | $SED \
20171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20173 -e 's:$: $lt_compiler_flag:'`
20174 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20175 (eval "$lt_compile" 2>out/conftest.err)
20176 ac_status=$?
20177 cat out/conftest.err >&5
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20180 then
20181 # The compiler can only warn and ignore the option if not recognized
20182 # So say no if there are warnings
20183 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20184 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20185 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20186 lt_cv_prog_compiler_c_o_CXX=yes
20189 chmod u+w . 2>&5
20190 $RM conftest*
20191 # SGI C++ compiler will create directory out/ii_files/ for
20192 # template instantiation
20193 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20194 $RM out/* && rmdir out
20195 cd ..
20196 $RM -r conftest
20197 $RM conftest*
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20201 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20206 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20207 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20208 $as_echo_n "(cached) " >&6
20209 else
20210 lt_cv_prog_compiler_c_o_CXX=no
20211 $RM -r conftest 2>/dev/null
20212 mkdir conftest
20213 cd conftest
20214 mkdir out
20215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20217 lt_compiler_flag="-o out/conftest2.$ac_objext"
20218 # Insert the option either (1) after the last *FLAGS variable, or
20219 # (2) before a word containing "conftest.", or (3) at the end.
20220 # Note that $ac_compile itself does not contain backslashes and begins
20221 # with a dollar sign (not a hyphen), so the echo should work correctly.
20222 lt_compile=`echo "$ac_compile" | $SED \
20223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20225 -e 's:$: $lt_compiler_flag:'`
20226 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20227 (eval "$lt_compile" 2>out/conftest.err)
20228 ac_status=$?
20229 cat out/conftest.err >&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20232 then
20233 # The compiler can only warn and ignore the option if not recognized
20234 # So say no if there are warnings
20235 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20238 lt_cv_prog_compiler_c_o_CXX=yes
20241 chmod u+w . 2>&5
20242 $RM conftest*
20243 # SGI C++ compiler will create directory out/ii_files/ for
20244 # template instantiation
20245 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20246 $RM out/* && rmdir out
20247 cd ..
20248 $RM -r conftest
20249 $RM conftest*
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20253 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20258 hard_links="nottested"
20259 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20260 # do not overwrite the value of need_locks provided by the user
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20262 $as_echo_n "checking if we can lock with hard links... " >&6; }
20263 hard_links=yes
20264 $RM conftest*
20265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20266 touch conftest.a
20267 ln conftest.a conftest.b 2>&5 || hard_links=no
20268 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20270 $as_echo "$hard_links" >&6; }
20271 if test "$hard_links" = no; then
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20273 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20274 need_locks=warn
20276 else
20277 need_locks=no
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20283 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20285 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20286 case $host_os in
20287 aix[4-9]*)
20288 # If we're using GNU nm, then we don't want the "-C" option.
20289 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20290 # Also, AIX nm treats weak defined symbols like other global defined
20291 # symbols, whereas GNU nm marks them as "W".
20292 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20293 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'
20294 else
20295 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'
20298 pw32*)
20299 export_symbols_cmds_CXX="$ltdll_cmds"
20301 cygwin* | mingw* | cegcc*)
20302 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'
20305 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20307 esac
20308 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20311 $as_echo "$ld_shlibs_CXX" >&6; }
20312 test "$ld_shlibs_CXX" = no && can_build_shared=no
20314 with_gnu_ld_CXX=$with_gnu_ld
20322 # Do we need to explicitly link libc?
20324 case "x$archive_cmds_need_lc_CXX" in
20325 x|xyes)
20326 # Assume -lc should be added
20327 archive_cmds_need_lc_CXX=yes
20329 if test "$enable_shared" = yes && test "$GCC" = yes; then
20330 case $archive_cmds_CXX in
20331 *'~'*)
20332 # FIXME: we may have to deal with multi-command sequences.
20334 '$CC '*)
20335 # Test whether the compiler implicitly links with -lc since on some
20336 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20337 # to ld, don't add -lc before -lgcc.
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20339 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20340 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20341 $as_echo_n "(cached) " >&6
20342 else
20343 $RM conftest*
20344 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20347 (eval $ac_compile) 2>&5
20348 ac_status=$?
20349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20350 test $ac_status = 0; } 2>conftest.err; then
20351 soname=conftest
20352 lib=conftest
20353 libobjs=conftest.$ac_objext
20354 deplibs=
20355 wl=$lt_prog_compiler_wl_CXX
20356 pic_flag=$lt_prog_compiler_pic_CXX
20357 compiler_flags=-v
20358 linker_flags=-v
20359 verstring=
20360 output_objdir=.
20361 libname=conftest
20362 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20363 allow_undefined_flag_CXX=
20364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20365 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20366 ac_status=$?
20367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20368 test $ac_status = 0; }
20369 then
20370 lt_cv_archive_cmds_need_lc_CXX=no
20371 else
20372 lt_cv_archive_cmds_need_lc_CXX=yes
20374 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20375 else
20376 cat conftest.err 1>&5
20378 $RM conftest*
20381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20382 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20383 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20385 esac
20388 esac
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20454 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20456 library_names_spec=
20457 libname_spec='lib$name'
20458 soname_spec=
20459 shrext_cmds=".so"
20460 postinstall_cmds=
20461 postuninstall_cmds=
20462 finish_cmds=
20463 finish_eval=
20464 shlibpath_var=
20465 shlibpath_overrides_runpath=unknown
20466 version_type=none
20467 dynamic_linker="$host_os ld.so"
20468 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20469 need_lib_prefix=unknown
20470 hardcode_into_libs=no
20472 # when you set need_version to no, make sure it does not cause -set_version
20473 # flags to be left without arguments
20474 need_version=unknown
20476 case $host_os in
20477 aix3*)
20478 version_type=linux
20479 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20480 shlibpath_var=LIBPATH
20482 # AIX 3 has no versioning support, so we append a major version to the name.
20483 soname_spec='${libname}${release}${shared_ext}$major'
20486 aix[4-9]*)
20487 version_type=linux
20488 need_lib_prefix=no
20489 need_version=no
20490 hardcode_into_libs=yes
20491 if test "$host_cpu" = ia64; then
20492 # AIX 5 supports IA64
20493 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20494 shlibpath_var=LD_LIBRARY_PATH
20495 else
20496 # With GCC up to 2.95.x, collect2 would create an import file
20497 # for dependence libraries. The import file would start with
20498 # the line `#! .'. This would cause the generated library to
20499 # depend on `.', always an invalid library. This was fixed in
20500 # development snapshots of GCC prior to 3.0.
20501 case $host_os in
20502 aix4 | aix4.[01] | aix4.[01].*)
20503 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20504 echo ' yes '
20505 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20507 else
20508 can_build_shared=no
20511 esac
20512 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20513 # soname into executable. Probably we can add versioning support to
20514 # collect2, so additional links can be useful in future.
20515 if test "$aix_use_runtimelinking" = yes; then
20516 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20517 # instead of lib<name>.a to let people know that these are not
20518 # typical AIX shared libraries.
20519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20520 else
20521 # We preserve .a as extension for shared libraries through AIX4.2
20522 # and later when we are not doing run time linking.
20523 library_names_spec='${libname}${release}.a $libname.a'
20524 soname_spec='${libname}${release}${shared_ext}$major'
20526 shlibpath_var=LIBPATH
20530 amigaos*)
20531 case $host_cpu in
20532 powerpc)
20533 # Since July 2007 AmigaOS4 officially supports .so libraries.
20534 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20537 m68k)
20538 library_names_spec='$libname.ixlibrary $libname.a'
20539 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20540 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'
20542 esac
20545 beos*)
20546 library_names_spec='${libname}${shared_ext}'
20547 dynamic_linker="$host_os ld.so"
20548 shlibpath_var=LIBRARY_PATH
20551 bsdi[45]*)
20552 version_type=linux
20553 need_version=no
20554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20555 soname_spec='${libname}${release}${shared_ext}$major'
20556 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20557 shlibpath_var=LD_LIBRARY_PATH
20558 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20559 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20560 # the default ld.so.conf also contains /usr/contrib/lib and
20561 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20562 # libtool to hard-code these into programs
20565 cygwin* | mingw* | pw32* | cegcc*)
20566 version_type=windows
20567 shrext_cmds=".dll"
20568 need_version=no
20569 need_lib_prefix=no
20571 case $GCC,$host_os in
20572 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20573 library_names_spec='$libname.dll.a'
20574 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20575 postinstall_cmds='base_file=`basename \${file}`~
20576 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20577 dldir=$destdir/`dirname \$dlpath`~
20578 test -d \$dldir || mkdir -p \$dldir~
20579 $install_prog $dir/$dlname \$dldir/$dlname~
20580 chmod a+x \$dldir/$dlname~
20581 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20582 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20585 dlpath=$dir/\$dldll~
20586 $RM \$dlpath'
20587 shlibpath_overrides_runpath=yes
20589 case $host_os in
20590 cygwin*)
20591 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20592 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20595 mingw* | cegcc*)
20596 # MinGW DLLs use traditional 'lib' prefix
20597 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20599 pw32*)
20600 # pw32 DLLs use 'pw' prefix rather than 'lib'
20601 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20603 esac
20607 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20609 esac
20610 dynamic_linker='Win32 ld.exe'
20611 # FIXME: first we should search . and the directory the executable is in
20612 shlibpath_var=PATH
20615 darwin* | rhapsody*)
20616 dynamic_linker="$host_os dyld"
20617 version_type=darwin
20618 need_lib_prefix=no
20619 need_version=no
20620 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20621 soname_spec='${libname}${release}${major}$shared_ext'
20622 shlibpath_overrides_runpath=yes
20623 shlibpath_var=DYLD_LIBRARY_PATH
20624 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20626 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20629 dgux*)
20630 version_type=linux
20631 need_lib_prefix=no
20632 need_version=no
20633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20634 soname_spec='${libname}${release}${shared_ext}$major'
20635 shlibpath_var=LD_LIBRARY_PATH
20638 freebsd* | dragonfly*)
20639 # DragonFly does not have aout. When/if they implement a new
20640 # versioning mechanism, adjust this.
20641 if test -x /usr/bin/objformat; then
20642 objformat=`/usr/bin/objformat`
20643 else
20644 case $host_os in
20645 freebsd[23].*) objformat=aout ;;
20646 *) objformat=elf ;;
20647 esac
20649 version_type=freebsd-$objformat
20650 case $version_type in
20651 freebsd-elf*)
20652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20653 need_version=no
20654 need_lib_prefix=no
20656 freebsd-*)
20657 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20658 need_version=yes
20660 esac
20661 shlibpath_var=LD_LIBRARY_PATH
20662 case $host_os in
20663 freebsd2.*)
20664 shlibpath_overrides_runpath=yes
20666 freebsd3.[01]* | freebsdelf3.[01]*)
20667 shlibpath_overrides_runpath=yes
20668 hardcode_into_libs=yes
20670 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20671 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20672 shlibpath_overrides_runpath=no
20673 hardcode_into_libs=yes
20675 *) # from 4.6 on, and DragonFly
20676 shlibpath_overrides_runpath=yes
20677 hardcode_into_libs=yes
20679 esac
20682 gnu*)
20683 version_type=linux
20684 need_lib_prefix=no
20685 need_version=no
20686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20687 soname_spec='${libname}${release}${shared_ext}$major'
20688 shlibpath_var=LD_LIBRARY_PATH
20689 hardcode_into_libs=yes
20692 haiku*)
20693 version_type=linux
20694 need_lib_prefix=no
20695 need_version=no
20696 dynamic_linker="$host_os runtime_loader"
20697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20698 soname_spec='${libname}${release}${shared_ext}$major'
20699 shlibpath_var=LIBRARY_PATH
20700 shlibpath_overrides_runpath=yes
20701 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20702 hardcode_into_libs=yes
20705 hpux9* | hpux10* | hpux11*)
20706 # Give a soname corresponding to the major version so that dld.sl refuses to
20707 # link against other versions.
20708 version_type=sunos
20709 need_lib_prefix=no
20710 need_version=no
20711 case $host_cpu in
20712 ia64*)
20713 shrext_cmds='.so'
20714 hardcode_into_libs=yes
20715 dynamic_linker="$host_os dld.so"
20716 shlibpath_var=LD_LIBRARY_PATH
20717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20719 soname_spec='${libname}${release}${shared_ext}$major'
20720 if test "X$HPUX_IA64_MODE" = X32; then
20721 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20722 else
20723 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20727 hppa*64*)
20728 shrext_cmds='.sl'
20729 hardcode_into_libs=yes
20730 dynamic_linker="$host_os dld.sl"
20731 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20734 soname_spec='${libname}${release}${shared_ext}$major'
20735 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20739 shrext_cmds='.sl'
20740 dynamic_linker="$host_os dld.sl"
20741 shlibpath_var=SHLIB_PATH
20742 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20744 soname_spec='${libname}${release}${shared_ext}$major'
20746 esac
20747 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20748 postinstall_cmds='chmod 555 $lib'
20749 # or fails outright, so override atomically:
20750 install_override_mode=555
20753 interix[3-9]*)
20754 version_type=linux
20755 need_lib_prefix=no
20756 need_version=no
20757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20758 soname_spec='${libname}${release}${shared_ext}$major'
20759 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20760 shlibpath_var=LD_LIBRARY_PATH
20761 shlibpath_overrides_runpath=no
20762 hardcode_into_libs=yes
20765 irix5* | irix6* | nonstopux*)
20766 case $host_os in
20767 nonstopux*) version_type=nonstopux ;;
20769 if test "$lt_cv_prog_gnu_ld" = yes; then
20770 version_type=linux
20771 else
20772 version_type=irix
20773 fi ;;
20774 esac
20775 need_lib_prefix=no
20776 need_version=no
20777 soname_spec='${libname}${release}${shared_ext}$major'
20778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20779 case $host_os in
20780 irix5* | nonstopux*)
20781 libsuff= shlibsuff=
20784 case $LD in # libtool.m4 will add one of these switches to LD
20785 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20786 libsuff= shlibsuff= libmagic=32-bit;;
20787 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20788 libsuff=32 shlibsuff=N32 libmagic=N32;;
20789 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20790 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20791 *) libsuff= shlibsuff= libmagic=never-match;;
20792 esac
20794 esac
20795 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20796 shlibpath_overrides_runpath=no
20797 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20798 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20799 hardcode_into_libs=yes
20802 # No shared lib support for Linux oldld, aout, or coff.
20803 linux*oldld* | linux*aout* | linux*coff*)
20804 dynamic_linker=no
20807 # This must be Linux ELF.
20808 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20809 version_type=linux
20810 need_lib_prefix=no
20811 need_version=no
20812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20813 soname_spec='${libname}${release}${shared_ext}$major'
20814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20815 shlibpath_var=LD_LIBRARY_PATH
20816 shlibpath_overrides_runpath=no
20818 # Some binutils ld are patched to set DT_RUNPATH
20819 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20820 $as_echo_n "(cached) " >&6
20821 else
20822 lt_cv_shlibpath_overrides_runpath=no
20823 save_LDFLAGS=$LDFLAGS
20824 save_libdir=$libdir
20825 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20826 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20828 /* end confdefs.h. */
20831 main ()
20835 return 0;
20837 _ACEOF
20838 if ac_fn_cxx_try_link "$LINENO"; then :
20839 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20840 lt_cv_shlibpath_overrides_runpath=yes
20843 rm -f core conftest.err conftest.$ac_objext \
20844 conftest$ac_exeext conftest.$ac_ext
20845 LDFLAGS=$save_LDFLAGS
20846 libdir=$save_libdir
20850 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20852 # This implies no fast_install, which is unacceptable.
20853 # Some rework will be needed to allow for fast_install
20854 # before this can be enabled.
20855 hardcode_into_libs=yes
20857 # Append ld.so.conf contents to the search path
20858 if test -f /etc/ld.so.conf; then
20859 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' ' '`
20860 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20863 # We used to test for /lib/ld.so.1 and disable shared libraries on
20864 # powerpc, because MkLinux only supported shared libraries with the
20865 # GNU dynamic linker. Since this was broken with cross compilers,
20866 # most powerpc-linux boxes support dynamic linking these days and
20867 # people can always --disable-shared, the test was removed, and we
20868 # assume the GNU/Linux dynamic linker is in use.
20869 dynamic_linker='GNU/Linux ld.so'
20872 netbsd*)
20873 version_type=sunos
20874 need_lib_prefix=no
20875 need_version=no
20876 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20879 dynamic_linker='NetBSD (a.out) ld.so'
20880 else
20881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20882 soname_spec='${libname}${release}${shared_ext}$major'
20883 dynamic_linker='NetBSD ld.elf_so'
20885 shlibpath_var=LD_LIBRARY_PATH
20886 shlibpath_overrides_runpath=yes
20887 hardcode_into_libs=yes
20890 newsos6)
20891 version_type=linux
20892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20893 shlibpath_var=LD_LIBRARY_PATH
20894 shlibpath_overrides_runpath=yes
20897 *nto* | *qnx*)
20898 version_type=qnx
20899 need_lib_prefix=no
20900 need_version=no
20901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20902 soname_spec='${libname}${release}${shared_ext}$major'
20903 shlibpath_var=LD_LIBRARY_PATH
20904 shlibpath_overrides_runpath=no
20905 hardcode_into_libs=yes
20906 dynamic_linker='ldqnx.so'
20909 openbsd*)
20910 version_type=sunos
20911 sys_lib_dlsearch_path_spec="/usr/lib"
20912 need_lib_prefix=no
20913 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20914 case $host_os in
20915 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20916 *) need_version=no ;;
20917 esac
20918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20920 shlibpath_var=LD_LIBRARY_PATH
20921 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20922 case $host_os in
20923 openbsd2.[89] | openbsd2.[89].*)
20924 shlibpath_overrides_runpath=no
20927 shlibpath_overrides_runpath=yes
20929 esac
20930 else
20931 shlibpath_overrides_runpath=yes
20935 os2*)
20936 libname_spec='$name'
20937 shrext_cmds=".dll"
20938 need_lib_prefix=no
20939 library_names_spec='$libname${shared_ext} $libname.a'
20940 dynamic_linker='OS/2 ld.exe'
20941 shlibpath_var=LIBPATH
20944 osf3* | osf4* | osf5*)
20945 version_type=osf
20946 need_lib_prefix=no
20947 need_version=no
20948 soname_spec='${libname}${release}${shared_ext}$major'
20949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20950 shlibpath_var=LD_LIBRARY_PATH
20951 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20952 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20955 rdos*)
20956 dynamic_linker=no
20959 solaris*)
20960 version_type=linux
20961 need_lib_prefix=no
20962 need_version=no
20963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20964 soname_spec='${libname}${release}${shared_ext}$major'
20965 shlibpath_var=LD_LIBRARY_PATH
20966 shlibpath_overrides_runpath=yes
20967 hardcode_into_libs=yes
20968 # ldd complains unless libraries are executable
20969 postinstall_cmds='chmod +x $lib'
20972 sunos4*)
20973 version_type=sunos
20974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20975 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20976 shlibpath_var=LD_LIBRARY_PATH
20977 shlibpath_overrides_runpath=yes
20978 if test "$with_gnu_ld" = yes; then
20979 need_lib_prefix=no
20981 need_version=yes
20984 sysv4 | sysv4.3*)
20985 version_type=linux
20986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20987 soname_spec='${libname}${release}${shared_ext}$major'
20988 shlibpath_var=LD_LIBRARY_PATH
20989 case $host_vendor in
20990 sni)
20991 shlibpath_overrides_runpath=no
20992 need_lib_prefix=no
20993 runpath_var=LD_RUN_PATH
20995 siemens)
20996 need_lib_prefix=no
20998 motorola)
20999 need_lib_prefix=no
21000 need_version=no
21001 shlibpath_overrides_runpath=no
21002 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21004 esac
21007 sysv4*MP*)
21008 if test -d /usr/nec ;then
21009 version_type=linux
21010 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21011 soname_spec='$libname${shared_ext}.$major'
21012 shlibpath_var=LD_LIBRARY_PATH
21016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21017 version_type=freebsd-elf
21018 need_lib_prefix=no
21019 need_version=no
21020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21021 soname_spec='${libname}${release}${shared_ext}$major'
21022 shlibpath_var=LD_LIBRARY_PATH
21023 shlibpath_overrides_runpath=yes
21024 hardcode_into_libs=yes
21025 if test "$with_gnu_ld" = yes; then
21026 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21027 else
21028 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21029 case $host_os in
21030 sco3.2v5*)
21031 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21033 esac
21035 sys_lib_dlsearch_path_spec='/usr/lib'
21038 tpf*)
21039 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21040 version_type=linux
21041 need_lib_prefix=no
21042 need_version=no
21043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21044 shlibpath_var=LD_LIBRARY_PATH
21045 shlibpath_overrides_runpath=no
21046 hardcode_into_libs=yes
21049 uts4*)
21050 version_type=linux
21051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21052 soname_spec='${libname}${release}${shared_ext}$major'
21053 shlibpath_var=LD_LIBRARY_PATH
21057 dynamic_linker=no
21059 esac
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21061 $as_echo "$dynamic_linker" >&6; }
21062 test "$dynamic_linker" = no && can_build_shared=no
21064 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21065 if test "$GCC" = yes; then
21066 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21069 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21070 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21072 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21073 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21114 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21115 hardcode_action_CXX=
21116 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21117 test -n "$runpath_var_CXX" ||
21118 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21120 # We can hardcode non-existent directories.
21121 if test "$hardcode_direct_CXX" != no &&
21122 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21123 # have to relink, otherwise we might link with an installed library
21124 # when we should be linking with a yet-to-be-installed one
21125 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21126 test "$hardcode_minus_L_CXX" != no; then
21127 # Linking always hardcodes the temporary library directory.
21128 hardcode_action_CXX=relink
21129 else
21130 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21131 hardcode_action_CXX=immediate
21133 else
21134 # We cannot hardcode anything, or else we can only hardcode existing
21135 # directories.
21136 hardcode_action_CXX=unsupported
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21139 $as_echo "$hardcode_action_CXX" >&6; }
21141 if test "$hardcode_action_CXX" = relink ||
21142 test "$inherit_rpath_CXX" = yes; then
21143 # Fast installation is not supported
21144 enable_fast_install=no
21145 elif test "$shlibpath_overrides_runpath" = yes ||
21146 test "$enable_shared" = no; then
21147 # Fast installation is not necessary
21148 enable_fast_install=needless
21157 fi # test -n "$compiler"
21159 CC=$lt_save_CC
21160 LDCXX=$LD
21161 LD=$lt_save_LD
21162 GCC=$lt_save_GCC
21163 with_gnu_ld=$lt_save_with_gnu_ld
21164 lt_cv_path_LDCXX=$lt_cv_path_LD
21165 lt_cv_path_LD=$lt_save_path_LD
21166 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21167 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21168 fi # test "$_lt_caught_CXX_error" != yes
21170 ac_ext=c
21171 ac_cpp='$CPP $CPPFLAGS'
21172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21191 # Only expand once:
21197 # Identify the assembler which will work hand-in-glove with the newly
21198 # built GCC, so that we can examine its features. This is the assembler
21199 # which will be driven by the driver program.
21201 # If build != host, and we aren't building gas in-tree, we identify a
21202 # build->target assembler and hope that it will have the same features
21203 # as the host->target assembler we'll be using.
21204 gcc_cv_gas_major_version=
21205 gcc_cv_gas_minor_version=
21206 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21208 if test "${gcc_cv_as+set}" = set; then :
21210 else
21212 if test -x "$DEFAULT_ASSEMBLER"; then
21213 gcc_cv_as="$DEFAULT_ASSEMBLER"
21214 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21215 && test -f ../gas/Makefile \
21216 && test x$build = x$host; then
21217 gcc_cv_as=../gas/as-new$build_exeext
21218 elif test -x as$build_exeext; then
21219 # Build using assembler in the current directory.
21220 gcc_cv_as=./as$build_exeext
21221 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21222 gcc_cv_as="$AS_FOR_TARGET"
21223 else
21224 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21225 set dummy $AS_FOR_TARGET; ac_word=$2
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21227 $as_echo_n "checking for $ac_word... " >&6; }
21228 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21229 $as_echo_n "(cached) " >&6
21230 else
21231 case $gcc_cv_as in
21232 [\\/]* | ?:[\\/]*)
21233 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21237 for as_dir in $PATH
21239 IFS=$as_save_IFS
21240 test -z "$as_dir" && as_dir=.
21241 for ac_exec_ext in '' $ac_executable_extensions; do
21242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21243 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21245 break 2
21247 done
21248 done
21249 IFS=$as_save_IFS
21252 esac
21254 gcc_cv_as=$ac_cv_path_gcc_cv_as
21255 if test -n "$gcc_cv_as"; then
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21257 $as_echo "$gcc_cv_as" >&6; }
21258 else
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21260 $as_echo "no" >&6; }
21267 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21269 case "$ORIGINAL_AS_FOR_TARGET" in
21270 ./as | ./as$build_exeext) ;;
21271 *) ac_config_files="$ac_config_files as:exec-tool.in"
21273 esac
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21276 $as_echo_n "checking what assembler to use... " >&6; }
21277 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21278 # Single tree build which includes gas. We want to prefer it
21279 # over whatever linker top-level may have detected, since
21280 # we'll use what we're building after installation anyway.
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21282 $as_echo "newly built gas" >&6; }
21283 in_tree_gas=yes
21284 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21285 for f in $gcc_cv_as_bfd_srcdir/configure \
21286 $gcc_cv_as_gas_srcdir/configure \
21287 $gcc_cv_as_gas_srcdir/configure.in \
21288 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21289 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21290 if test x$gcc_cv_gas_version != x; then
21291 break
21293 done
21294 case $gcc_cv_gas_version in
21295 VERSION=[0-9]*) ;;
21296 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21297 esac
21298 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21299 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21300 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21301 case $gcc_cv_gas_patch_version in
21302 "") gcc_cv_gas_patch_version="0" ;;
21303 esac
21304 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21305 + $gcc_cv_gas_minor_version \) \* 1000 \
21306 + $gcc_cv_gas_patch_version`
21308 in_tree_gas_is_elf=no
21309 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21310 || (grep 'obj_format = multi' ../gas/Makefile \
21311 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21312 then
21313 in_tree_gas_is_elf=yes
21315 else
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21317 $as_echo "$gcc_cv_as" >&6; }
21318 in_tree_gas=no
21321 # Identify the linker which will work hand-in-glove with the newly
21322 # built GCC, so that we can examine its features. This is the linker
21323 # which will be driven by the driver program.
21325 # If build != host, and we aren't building gas in-tree, we identify a
21326 # build->target linker and hope that it will have the same features
21327 # as the host->target linker we'll be using.
21328 gcc_cv_gld_major_version=
21329 gcc_cv_gld_minor_version=
21330 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21331 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21333 if test "${gcc_cv_ld+set}" = set; then :
21335 else
21337 if test -x "$DEFAULT_LINKER"; then
21338 gcc_cv_ld="$DEFAULT_LINKER"
21339 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21340 && test -f ../ld/Makefile \
21341 && test x$build = x$host; then
21342 gcc_cv_ld=../ld/ld-new$build_exeext
21343 elif test -x collect-ld$build_exeext; then
21344 # Build using linker in the current directory.
21345 gcc_cv_ld=./collect-ld$build_exeext
21346 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21347 gcc_cv_ld="$LD_FOR_TARGET"
21348 else
21349 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21350 set dummy $LD_FOR_TARGET; ac_word=$2
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21352 $as_echo_n "checking for $ac_word... " >&6; }
21353 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21354 $as_echo_n "(cached) " >&6
21355 else
21356 case $gcc_cv_ld in
21357 [\\/]* | ?:[\\/]*)
21358 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21362 for as_dir in $PATH
21364 IFS=$as_save_IFS
21365 test -z "$as_dir" && as_dir=.
21366 for ac_exec_ext in '' $ac_executable_extensions; do
21367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21368 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21370 break 2
21372 done
21373 done
21374 IFS=$as_save_IFS
21377 esac
21379 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21380 if test -n "$gcc_cv_ld"; then
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21382 $as_echo "$gcc_cv_ld" >&6; }
21383 else
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21385 $as_echo "no" >&6; }
21392 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21393 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21394 # if the PLUGIN_LD is set ld-new, just have it as ld
21395 # as that is the installed named.
21396 if test x$PLUGIN_LD_SUFFIX = xld-new \
21397 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21398 PLUGIN_LD_SUFFIX=ld
21401 # Check whether --with-plugin-ld was given.
21402 if test "${with_plugin_ld+set}" = set; then :
21403 withval=$with_plugin_ld; if test x"$withval" != x; then
21404 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21405 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21411 cat >>confdefs.h <<_ACEOF
21412 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21413 _ACEOF
21416 # Check to see if we are using gold instead of ld
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21418 $as_echo_n "checking whether we are using gold... " >&6; }
21419 ld_is_gold=no
21420 if test x$gcc_cv_ld != x; then
21421 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21422 | grep "GNU gold" > /dev/null; then
21423 ld_is_gold=yes
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21427 $as_echo "$ld_is_gold" >&6; }
21429 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21431 case "$ORIGINAL_LD_FOR_TARGET" in
21432 ./collect-ld | ./collect-ld$build_exeext) ;;
21433 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21435 esac
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21438 $as_echo_n "checking what linker to use... " >&6; }
21439 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21440 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21441 # Single tree build which includes ld. We want to prefer it
21442 # over whatever linker top-level may have detected, since
21443 # we'll use what we're building after installation anyway.
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21445 $as_echo "newly built ld" >&6; }
21446 in_tree_ld=yes
21447 in_tree_ld_is_elf=no
21448 if (grep 'EMUL = .*elf' ../ld/Makefile \
21449 || grep 'EMUL = .*linux' ../ld/Makefile \
21450 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21451 in_tree_ld_is_elf=yes
21452 elif test "$ld_is_gold" = yes; then
21453 in_tree_ld_is_elf=yes
21455 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
21457 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21458 if test x$gcc_cv_gld_version != x; then
21459 break
21461 done
21462 case $gcc_cv_gld_version in
21463 VERSION=[0-9]*) ;;
21464 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21465 esac
21466 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21467 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21468 else
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21470 $as_echo "$gcc_cv_ld" >&6; }
21471 in_tree_ld=no
21474 # Figure out what nm we will be using.
21475 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21476 if test "${gcc_cv_nm+set}" = set; then :
21478 else
21480 if test -f $gcc_cv_binutils_srcdir/configure.in \
21481 && test -f ../binutils/Makefile \
21482 && test x$build = x$host; then
21483 gcc_cv_nm=../binutils/nm-new$build_exeext
21484 elif test -x nm$build_exeext; then
21485 gcc_cv_nm=./nm$build_exeext
21486 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21487 gcc_cv_nm="$NM_FOR_TARGET"
21488 else
21489 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21490 set dummy $NM_FOR_TARGET; ac_word=$2
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21492 $as_echo_n "checking for $ac_word... " >&6; }
21493 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21494 $as_echo_n "(cached) " >&6
21495 else
21496 case $gcc_cv_nm in
21497 [\\/]* | ?:[\\/]*)
21498 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21502 for as_dir in $PATH
21504 IFS=$as_save_IFS
21505 test -z "$as_dir" && as_dir=.
21506 for ac_exec_ext in '' $ac_executable_extensions; do
21507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21508 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21510 break 2
21512 done
21513 done
21514 IFS=$as_save_IFS
21517 esac
21519 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21520 if test -n "$gcc_cv_nm"; then
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21522 $as_echo "$gcc_cv_nm" >&6; }
21523 else
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21525 $as_echo "no" >&6; }
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21533 $as_echo_n "checking what nm to use... " >&6; }
21534 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21535 # Single tree build which includes binutils.
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21537 $as_echo "newly built nm" >&6; }
21538 in_tree_nm=yes
21539 else
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21541 $as_echo "$gcc_cv_nm" >&6; }
21542 in_tree_nm=no
21545 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21547 case "$ORIGINAL_NM_FOR_TARGET" in
21548 ./nm | ./nm$build_exeext) ;;
21549 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21551 esac
21554 # Figure out what objdump we will be using.
21555 if test "${gcc_cv_objdump+set}" = set; then :
21557 else
21559 if test -f $gcc_cv_binutils_srcdir/configure.in \
21560 && test -f ../binutils/Makefile \
21561 && test x$build = x$host; then
21562 # Single tree build which includes binutils.
21563 gcc_cv_objdump=../binutils/objdump$build_exeext
21564 elif test -x objdump$build_exeext; then
21565 gcc_cv_objdump=./objdump$build_exeext
21566 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21567 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21568 else
21569 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21570 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21572 $as_echo_n "checking for $ac_word... " >&6; }
21573 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21574 $as_echo_n "(cached) " >&6
21575 else
21576 case $gcc_cv_objdump in
21577 [\\/]* | ?:[\\/]*)
21578 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21582 for as_dir in $PATH
21584 IFS=$as_save_IFS
21585 test -z "$as_dir" && as_dir=.
21586 for ac_exec_ext in '' $ac_executable_extensions; do
21587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21588 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21590 break 2
21592 done
21593 done
21594 IFS=$as_save_IFS
21597 esac
21599 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21600 if test -n "$gcc_cv_objdump"; then
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21602 $as_echo "$gcc_cv_objdump" >&6; }
21603 else
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21605 $as_echo "no" >&6; }
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21613 $as_echo_n "checking what objdump to use... " >&6; }
21614 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21615 # Single tree build which includes binutils.
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21617 $as_echo "newly built objdump" >&6; }
21618 elif test x$gcc_cv_objdump = x; then
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21620 $as_echo "not found" >&6; }
21621 else
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21623 $as_echo "$gcc_cv_objdump" >&6; }
21626 # Figure out what readelf we will be using.
21627 if test "${gcc_cv_readelf+set}" = set; then :
21629 else
21631 if test -f $gcc_cv_binutils_srcdir/configure.in \
21632 && test -f ../binutils/Makefile \
21633 && test x$build = x$host; then
21634 # Single tree build which includes binutils.
21635 gcc_cv_readelf=../binutils/readelf$build_exeext
21636 elif test -x readelf$build_exeext; then
21637 gcc_cv_readelf=./readelf$build_exeext
21638 else
21639 # Extract the first word of "readelf", so it can be a program name with args.
21640 set dummy readelf; ac_word=$2
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21642 $as_echo_n "checking for $ac_word... " >&6; }
21643 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21644 $as_echo_n "(cached) " >&6
21645 else
21646 case $gcc_cv_readelf in
21647 [\\/]* | ?:[\\/]*)
21648 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21652 for as_dir in $PATH
21654 IFS=$as_save_IFS
21655 test -z "$as_dir" && as_dir=.
21656 for ac_exec_ext in '' $ac_executable_extensions; do
21657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21658 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21660 break 2
21662 done
21663 done
21664 IFS=$as_save_IFS
21667 esac
21669 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21670 if test -n "$gcc_cv_readelf"; then
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21672 $as_echo "$gcc_cv_readelf" >&6; }
21673 else
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21675 $as_echo "no" >&6; }
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21683 $as_echo_n "checking what readelf to use... " >&6; }
21684 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21685 # Single tree build which includes binutils.
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21687 $as_echo "newly built readelf" >&6; }
21688 elif test x$gcc_cv_readelf = x; then
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21690 $as_echo "not found" >&6; }
21691 else
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21693 $as_echo "$gcc_cv_readelf" >&6; }
21696 # Figure out what assembler alignment features are present.
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21698 $as_echo_n "checking assembler flags... " >&6; }
21699 if test "${gcc_cv_as_flags+set}" = set; then :
21700 $as_echo_n "(cached) " >&6
21701 else
21702 case "$target" in
21703 i[34567]86-*-linux*)
21704 gcc_cv_as_flags="--32"
21706 powerpc*-*-darwin*)
21707 gcc_cv_as_flags="-arch ppc"
21710 gcc_cv_as_flags=" "
21712 esac
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21715 $as_echo "$gcc_cv_as_flags" >&6; }
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21718 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21719 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21720 $as_echo_n "(cached) " >&6
21721 else
21722 gcc_cv_as_balign_and_p2align=no
21723 if test $in_tree_gas = yes; then
21724 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21725 then gcc_cv_as_balign_and_p2align=yes
21727 elif test x$gcc_cv_as != x; then
21728 $as_echo '.balign 4
21729 .p2align 2' > conftest.s
21730 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21732 (eval $ac_try) 2>&5
21733 ac_status=$?
21734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21735 test $ac_status = 0; }; }
21736 then
21737 gcc_cv_as_balign_and_p2align=yes
21738 else
21739 echo "configure: failed program was" >&5
21740 cat conftest.s >&5
21742 rm -f conftest.o conftest.s
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21746 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21747 if test $gcc_cv_as_balign_and_p2align = yes; then
21749 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21754 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21755 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21756 $as_echo_n "(cached) " >&6
21757 else
21758 gcc_cv_as_max_skip_p2align=no
21759 if test $in_tree_gas = yes; then
21760 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21761 then gcc_cv_as_max_skip_p2align=yes
21763 elif test x$gcc_cv_as != x; then
21764 $as_echo '.p2align 4,,7' > conftest.s
21765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21767 (eval $ac_try) 2>&5
21768 ac_status=$?
21769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21770 test $ac_status = 0; }; }
21771 then
21772 gcc_cv_as_max_skip_p2align=yes
21773 else
21774 echo "configure: failed program was" >&5
21775 cat conftest.s >&5
21777 rm -f conftest.o conftest.s
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21781 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21782 if test $gcc_cv_as_max_skip_p2align = yes; then
21784 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21789 $as_echo_n "checking assembler for .literal16... " >&6; }
21790 if test "${gcc_cv_as_literal16+set}" = set; then :
21791 $as_echo_n "(cached) " >&6
21792 else
21793 gcc_cv_as_literal16=no
21794 if test $in_tree_gas = yes; then
21795 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21796 then gcc_cv_as_literal16=yes
21798 elif test x$gcc_cv_as != x; then
21799 $as_echo '.literal16' > conftest.s
21800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21802 (eval $ac_try) 2>&5
21803 ac_status=$?
21804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21805 test $ac_status = 0; }; }
21806 then
21807 gcc_cv_as_literal16=yes
21808 else
21809 echo "configure: failed program was" >&5
21810 cat conftest.s >&5
21812 rm -f conftest.o conftest.s
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21816 $as_echo "$gcc_cv_as_literal16" >&6; }
21817 if test $gcc_cv_as_literal16 = yes; then
21819 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21824 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21825 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21826 $as_echo_n "(cached) " >&6
21827 else
21828 gcc_cv_as_subsection_m1=no
21829 if test $in_tree_gas = yes; then
21830 if test $in_tree_gas_is_elf = yes \
21831 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21832 then gcc_cv_as_subsection_m1=yes
21834 elif test x$gcc_cv_as != x; then
21835 $as_echo 'conftest_label1: .word 0
21836 .subsection -1
21837 conftest_label2: .word 0
21838 .previous' > conftest.s
21839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21844 test $ac_status = 0; }; }
21845 then
21846 if test x$gcc_cv_nm != x; then
21847 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21848 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21849 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21850 then :
21851 else gcc_cv_as_subsection_m1=yes
21853 rm -f conftest.nm1 conftest.nm2
21855 else
21856 echo "configure: failed program was" >&5
21857 cat conftest.s >&5
21859 rm -f conftest.o conftest.s
21862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21863 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21864 if test $gcc_cv_as_subsection_m1 = yes; then
21866 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21871 $as_echo_n "checking assembler for .weak... " >&6; }
21872 if test "${gcc_cv_as_weak+set}" = set; then :
21873 $as_echo_n "(cached) " >&6
21874 else
21875 gcc_cv_as_weak=no
21876 if test $in_tree_gas = yes; then
21877 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21878 then gcc_cv_as_weak=yes
21880 elif test x$gcc_cv_as != x; then
21881 $as_echo ' .weak foobar' > conftest.s
21882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21884 (eval $ac_try) 2>&5
21885 ac_status=$?
21886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21887 test $ac_status = 0; }; }
21888 then
21889 gcc_cv_as_weak=yes
21890 else
21891 echo "configure: failed program was" >&5
21892 cat conftest.s >&5
21894 rm -f conftest.o conftest.s
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21898 $as_echo "$gcc_cv_as_weak" >&6; }
21899 if test $gcc_cv_as_weak = yes; then
21901 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21906 $as_echo_n "checking assembler for .weakref... " >&6; }
21907 if test "${gcc_cv_as_weakref+set}" = set; then :
21908 $as_echo_n "(cached) " >&6
21909 else
21910 gcc_cv_as_weakref=no
21911 if test $in_tree_gas = yes; then
21912 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21913 then gcc_cv_as_weakref=yes
21915 elif test x$gcc_cv_as != x; then
21916 $as_echo ' .weakref foobar, barfnot' > conftest.s
21917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21919 (eval $ac_try) 2>&5
21920 ac_status=$?
21921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21922 test $ac_status = 0; }; }
21923 then
21924 gcc_cv_as_weakref=yes
21925 else
21926 echo "configure: failed program was" >&5
21927 cat conftest.s >&5
21929 rm -f conftest.o conftest.s
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21933 $as_echo "$gcc_cv_as_weakref" >&6; }
21934 if test $gcc_cv_as_weakref = yes; then
21936 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21941 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21942 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21943 $as_echo_n "(cached) " >&6
21944 else
21945 gcc_cv_as_nsubspa_comdat=no
21946 if test $in_tree_gas = yes; then
21947 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21948 then gcc_cv_as_nsubspa_comdat=yes
21950 elif test x$gcc_cv_as != x; then
21951 $as_echo ' .SPACE $TEXT$
21952 .NSUBSPA $CODE$,COMDAT' > conftest.s
21953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21955 (eval $ac_try) 2>&5
21956 ac_status=$?
21957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21958 test $ac_status = 0; }; }
21959 then
21960 gcc_cv_as_nsubspa_comdat=yes
21961 else
21962 echo "configure: failed program was" >&5
21963 cat conftest.s >&5
21965 rm -f conftest.o conftest.s
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21969 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21970 if test $gcc_cv_as_nsubspa_comdat = yes; then
21972 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21976 # .hidden needs to be supported in both the assembler and the linker,
21977 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21978 # This is irritatingly difficult to feature test for; we have to check the
21979 # date string after the version number. If we've got an in-tree
21980 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21981 # to be safe.
21982 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21984 $as_echo_n "checking assembler for .hidden... " >&6; }
21985 if test "${gcc_cv_as_hidden+set}" = set; then :
21986 $as_echo_n "(cached) " >&6
21987 else
21988 gcc_cv_as_hidden=no
21989 if test $in_tree_gas = yes; then
21990 if test $in_tree_gas_is_elf = yes \
21991 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21992 then gcc_cv_as_hidden=yes
21994 elif test x$gcc_cv_as != x; then
21995 $as_echo ' .hidden foobar
21996 foobar:' > conftest.s
21997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21999 (eval $ac_try) 2>&5
22000 ac_status=$?
22001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22002 test $ac_status = 0; }; }
22003 then
22005 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22006 # STV_HIDDEN, so disable .hidden support if so.
22007 case "${target}" in
22008 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22009 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22010 cat > conftest.s <<EOF
22011 .globl hidden
22012 .hidden hidden
22013 hidden:
22014 .globl default
22015 .set default,hidden
22017 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22018 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22019 grep '\.hidden default' > /dev/null; then
22020 gcc_cv_as_hidden=no
22021 else
22022 gcc_cv_as_hidden=yes
22024 else
22025 # Assume bug is present if objdump is missing.
22026 gcc_cv_as_hidden=no
22030 gcc_cv_as_hidden=yes
22032 esac
22033 else
22034 echo "configure: failed program was" >&5
22035 cat conftest.s >&5
22037 rm -f conftest.o conftest.s
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22041 $as_echo "$gcc_cv_as_hidden" >&6; }
22043 case "${target}" in
22044 *-*-darwin*)
22045 # Darwin as has some visibility support, though with a different syntax.
22046 gcc_cv_as_hidden=yes
22048 esac
22050 # gnu_indirect_function type is an extension proposed at
22051 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22052 # selection of function implementation
22053 # Check whether --enable-gnu-indirect-function was given.
22054 if test "${enable_gnu_indirect_function+set}" = set; then :
22055 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22056 yes | no) ;;
22057 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22058 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22059 esac
22060 else
22061 enable_gnu_indirect_function="$default_gnu_indirect_function"
22065 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22067 cat >>confdefs.h <<_ACEOF
22068 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22069 _ACEOF
22073 if test $in_tree_ld != yes ; then
22074 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22075 if echo "$ld_ver" | grep GNU > /dev/null; then
22076 if test x"$ld_is_gold" = xyes; then
22077 # GNU gold --version looks like this:
22079 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22081 # We extract the binutils version which is more familiar and specific
22082 # than the gold version.
22083 ld_vers=`echo $ld_ver | sed -n \
22084 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22085 else
22086 # GNU ld --version looks like this:
22088 # GNU ld (GNU Binutils) 2.21.51.20110225
22089 ld_vers=`echo $ld_ver | sed -n \
22090 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22092 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'`
22093 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22094 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22095 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22096 else
22097 case "${target}" in
22098 *-*-solaris2*)
22099 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22100 # format.
22102 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22103 # /usr/ccs/bin/ld has been configured.
22104 ld_ver=`$gcc_cv_ld -V 2>&1`
22105 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22106 ld_vers=`echo $ld_ver | sed -n \
22107 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22108 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22109 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22112 esac
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22117 $as_echo_n "checking linker for .hidden support... " >&6; }
22118 if test "${gcc_cv_ld_hidden+set}" = set; then :
22119 $as_echo_n "(cached) " >&6
22120 else
22121 if test $in_tree_ld = yes ; then
22122 gcc_cv_ld_hidden=no
22123 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 \
22124 && test $in_tree_ld_is_elf = yes; then
22125 gcc_cv_ld_hidden=yes
22127 else
22128 gcc_cv_ld_hidden=yes
22129 if test x"$ld_is_gold" = xyes; then
22131 elif echo "$ld_ver" | grep GNU > /dev/null; then
22132 case "${target}" in
22133 mmix-knuth-mmixware)
22134 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22135 gcc_cv_ld_hidden=no
22137 esac
22138 if test 0"$ld_date" -lt 20020404; then
22139 if test -n "$ld_date"; then
22140 # If there was date string, but was earlier than 2002-04-04, fail
22141 gcc_cv_ld_hidden=no
22142 elif test -z "$ld_vers"; then
22143 # If there was no date string nor ld version number, something is wrong
22144 gcc_cv_ld_hidden=no
22145 else
22146 test -z "$ld_vers_patch" && ld_vers_patch=0
22147 if test "$ld_vers_major" -lt 2; then
22148 gcc_cv_ld_hidden=no
22149 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22150 gcc_cv_ld_hidden="no"
22151 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22152 gcc_cv_ld_hidden=no
22156 else
22157 case "${target}" in
22158 *-*-darwin*)
22159 # Darwin ld has some visibility support.
22160 gcc_cv_ld_hidden=yes
22162 hppa64*-*-hpux* | ia64*-*-hpux*)
22163 gcc_cv_ld_hidden=yes
22165 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22166 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22167 # .symbolic was only added in Solaris 9 12/02.
22168 gcc_cv_ld_hidden=yes
22171 gcc_cv_ld_hidden=no
22173 esac
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22178 $as_echo "$gcc_cv_ld_hidden" >&6; }
22179 libgcc_visibility=no
22182 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22183 libgcc_visibility=yes
22185 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22190 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22191 gcc_cv_ld_ro_rw_mix=unknown
22192 if test $in_tree_ld = yes ; then
22193 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 \
22194 && test $in_tree_ld_is_elf = yes; then
22195 gcc_cv_ld_ro_rw_mix=read-write
22197 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22198 echo '.section myfoosect, "a"' > conftest1.s
22199 echo '.section myfoosect, "aw"' > conftest2.s
22200 echo '.byte 1' >> conftest2.s
22201 echo '.section myfoosect, "a"' > conftest3.s
22202 echo '.byte 0' >> conftest3.s
22203 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22204 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22205 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22206 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22207 conftest2.o conftest3.o > /dev/null 2>&1; then
22208 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22209 | sed -e '/myfoosect/!d' -e N`
22210 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22211 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22212 gcc_cv_ld_ro_rw_mix=read-only
22213 else
22214 gcc_cv_ld_ro_rw_mix=read-write
22218 rm -f conftest.* conftest[123].*
22220 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22222 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22226 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22228 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22229 case "${target}" in
22230 *-*-solaris2*)
22232 # Solaris 2 ld -V output looks like this for a regular version:
22234 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22236 # but test versions add stuff at the end:
22238 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22240 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22241 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22242 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22243 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22244 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22245 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22248 esac
22251 # Check whether --enable-initfini-array was given.
22252 if test "${enable_initfini_array+set}" = set; then :
22253 enableval=$enable_initfini_array;
22254 else
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22257 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22258 if test "${gcc_cv_initfini_array+set}" = set; then :
22259 $as_echo_n "(cached) " >&6
22260 else
22261 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22262 case "${target}" in
22263 ia64-*)
22264 if test "$cross_compiling" = yes; then :
22265 gcc_cv_initfini_array=no
22266 else
22267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22268 /* end confdefs.h. */
22270 #ifndef __ELF__
22271 #error Not an ELF OS
22272 #endif
22273 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22274 if it can be used. */
22275 static int x = -1;
22276 int main (void) { return x; }
22277 int foo (void) { x = 0; }
22278 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22280 _ACEOF
22281 if ac_fn_c_try_run "$LINENO"; then :
22282 gcc_cv_initfini_array=yes
22283 else
22284 gcc_cv_initfini_array=no
22286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22287 conftest.$ac_objext conftest.beam conftest.$ac_ext
22291 gcc_cv_initfini_array=no
22292 if test $in_tree_ld = yes ; then
22293 if test "$gcc_cv_gld_major_version" -eq 2 \
22294 -a "$gcc_cv_gld_minor_version" -ge 22 \
22295 -o "$gcc_cv_gld_major_version" -gt 2 \
22296 && test $in_tree_ld_is_elf = yes; then
22297 gcc_cv_initfini_array=yes
22299 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22300 cat > conftest.s <<\EOF
22301 .section .dtors,"a",%progbits
22302 .balign 4
22303 .byte 'A', 'A', 'A', 'A'
22304 .section .ctors,"a",%progbits
22305 .balign 4
22306 .byte 'B', 'B', 'B', 'B'
22307 .section .fini_array.65530,"a",%progbits
22308 .balign 4
22309 .byte 'C', 'C', 'C', 'C'
22310 .section .init_array.65530,"a",%progbits
22311 .balign 4
22312 .byte 'D', 'D', 'D', 'D'
22313 .section .dtors.64528,"a",%progbits
22314 .balign 4
22315 .byte 'E', 'E', 'E', 'E'
22316 .section .ctors.64528,"a",%progbits
22317 .balign 4
22318 .byte 'F', 'F', 'F', 'F'
22319 .section .fini_array.01005,"a",%progbits
22320 .balign 4
22321 .byte 'G', 'G', 'G', 'G'
22322 .section .init_array.01005,"a",%progbits
22323 .balign 4
22324 .byte 'H', 'H', 'H', 'H'
22325 .text
22326 .globl _start
22327 _start:
22329 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22330 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22331 && $gcc_cv_objdump -s -j .init_array conftest \
22332 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22333 && $gcc_cv_objdump -s -j .fini_array conftest \
22334 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22335 gcc_cv_initfini_array=yes
22337 rm -f conftest conftest.*
22339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22340 /* end confdefs.h. */
22342 #ifndef __ELF__
22343 # error Not an ELF OS
22344 #endif
22345 #include <stdlib.h>
22346 #if defined __GLIBC_PREREQ
22347 # if __GLIBC_PREREQ (2, 4)
22348 # else
22349 # error GLIBC 2.4 required
22350 # endif
22351 #else
22352 # if defined __sun__ && defined __svr4__
22353 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22354 # else
22355 # error The C library not known to support .init_array/.fini_array
22356 # endif
22357 #endif
22359 _ACEOF
22360 if ac_fn_c_try_cpp "$LINENO"; then :
22362 else
22363 gcc_cv_initfini_array=no
22365 rm -f conftest.err conftest.$ac_ext;;
22366 esac
22367 else
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22369 $as_echo_n "checking cross compile... guessing... " >&6; }
22370 gcc_cv_initfini_array=no
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22374 $as_echo "$gcc_cv_initfini_array" >&6; }
22375 enable_initfini_array=$gcc_cv_initfini_array
22379 if test $enable_initfini_array = yes; then
22381 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22385 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22387 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22388 if test "${gcc_cv_as_leb128+set}" = set; then :
22389 $as_echo_n "(cached) " >&6
22390 else
22391 gcc_cv_as_leb128=no
22392 if test $in_tree_gas = yes; then
22393 if test $in_tree_gas_is_elf = yes \
22394 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22395 then gcc_cv_as_leb128=yes
22397 elif test x$gcc_cv_as != x; then
22398 $as_echo ' .data
22399 .uleb128 L2 - L1
22401 .uleb128 1280
22402 .sleb128 -1010
22403 L2:' > conftest.s
22404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22406 (eval $ac_try) 2>&5
22407 ac_status=$?
22408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22409 test $ac_status = 0; }; }
22410 then
22411 # GAS versions before 2.11 do not support uleb128,
22412 # despite appearing to.
22413 # ??? There exists an elf-specific test that will crash
22414 # the assembler. Perhaps it's better to figure out whether
22415 # arbitrary sections are supported and try the test.
22416 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22417 if echo "$as_ver" | grep GNU > /dev/null; then
22418 as_vers=`echo $as_ver | sed -n \
22419 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22420 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22421 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22422 if test $as_major -eq 2 && test $as_minor -lt 11
22423 then :
22424 else gcc_cv_as_leb128=yes
22427 else
22428 echo "configure: failed program was" >&5
22429 cat conftest.s >&5
22431 rm -f conftest.o conftest.s
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22435 $as_echo "$gcc_cv_as_leb128" >&6; }
22436 if test $gcc_cv_as_leb128 = yes; then
22438 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22442 # Check if we have assembler support for unwind directives.
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22444 $as_echo_n "checking assembler for cfi directives... " >&6; }
22445 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22446 $as_echo_n "(cached) " >&6
22447 else
22448 gcc_cv_as_cfi_directive=no
22449 if test x$gcc_cv_as != x; then
22450 $as_echo ' .text
22451 .cfi_startproc
22452 .cfi_offset 0, 0
22453 .cfi_same_value 1
22454 .cfi_def_cfa 1, 2
22455 .cfi_escape 1, 2, 3, 4, 5
22456 .cfi_endproc' > conftest.s
22457 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22459 (eval $ac_try) 2>&5
22460 ac_status=$?
22461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22462 test $ac_status = 0; }; }
22463 then
22464 case "$target" in
22465 *-*-solaris*)
22466 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22467 # read-only and read-write sections, we need to make sure that the
22468 # assembler used emits read-write .eh_frame sections.
22469 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22470 if test "x$gcc_cv_objdump" != x; then
22471 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22472 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22473 gcc_cv_as_cfi_directive=no
22474 else
22475 case "$target" in
22476 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22477 # On Solaris/x86, make sure that GCC and gas agree on using
22478 # read-only .eh_frame sections for 64-bit.
22479 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22480 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22481 sed -e /.eh_frame/!d -e N | \
22482 grep READONLY > /dev/null; then
22483 gcc_cv_as_cfi_directive=yes
22484 else
22485 gcc_cv_as_cfi_directive=no
22489 gcc_cv_as_cfi_directive=yes
22491 esac
22493 else
22494 # no objdump, err on the side of caution
22495 gcc_cv_as_cfi_directive=no
22497 else
22498 gcc_cv_as_cfi_directive=yes
22501 *-*-*)
22502 gcc_cv_as_cfi_directive=yes
22504 esac
22505 else
22506 echo "configure: failed program was" >&5
22507 cat conftest.s >&5
22509 rm -f conftest.o conftest.s
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22513 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22515 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22517 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22518 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22519 $as_echo_n "(cached) " >&6
22520 else
22521 gcc_cv_as_cfi_advance_working=no
22522 if test x$gcc_cv_as != x; then
22523 $as_echo ' .text
22524 .cfi_startproc
22525 .cfi_adjust_cfa_offset 64
22526 .skip 75040, 0
22527 .cfi_adjust_cfa_offset 128
22528 .cfi_endproc' > conftest.s
22529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22531 (eval $ac_try) 2>&5
22532 ac_status=$?
22533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22534 test $ac_status = 0; }; }
22535 then
22537 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22538 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22539 gcc_cv_as_cfi_advance_working=yes
22542 else
22543 echo "configure: failed program was" >&5
22544 cat conftest.s >&5
22546 rm -f conftest.o conftest.s
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22550 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22552 else
22553 # no objdump, err on the side of caution
22554 gcc_cv_as_cfi_advance_working=no
22558 cat >>confdefs.h <<_ACEOF
22559 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22560 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22561 _ACEOF
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22566 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22567 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22568 $as_echo_n "(cached) " >&6
22569 else
22570 gcc_cv_as_cfi_personality_directive=no
22571 if test x$gcc_cv_as != x; then
22572 $as_echo ' .text
22573 .cfi_startproc
22574 .cfi_personality 0, symbol
22575 .cfi_endproc' > conftest.s
22576 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22578 (eval $ac_try) 2>&5
22579 ac_status=$?
22580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22581 test $ac_status = 0; }; }
22582 then
22583 gcc_cv_as_cfi_personality_directive=yes
22584 else
22585 echo "configure: failed program was" >&5
22586 cat conftest.s >&5
22588 rm -f conftest.o conftest.s
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22592 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22595 cat >>confdefs.h <<_ACEOF
22596 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22597 then echo 1; else echo 0; fi`
22598 _ACEOF
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22602 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22603 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22604 $as_echo_n "(cached) " >&6
22605 else
22606 gcc_cv_as_cfi_sections_directive=no
22607 if test x$gcc_cv_as != x; then
22608 $as_echo ' .text
22609 .cfi_sections .debug_frame, .eh_frame
22610 .cfi_startproc
22611 .cfi_endproc' > conftest.s
22612 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22614 (eval $ac_try) 2>&5
22615 ac_status=$?
22616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22617 test $ac_status = 0; }; }
22618 then
22619 case $target_os in
22620 win32 | pe | cygwin* | mingw32* | uwin*)
22621 # Need to check that we generated the correct relocation for the
22622 # .debug_frame section. This was fixed for binutils 2.21.
22623 gcc_cv_as_cfi_sections_directive=no
22624 if test "x$gcc_cv_objdump" != x; then
22625 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22626 grep secrel > /dev/null; then
22627 gcc_cv_as_cfi_sections_directive=yes
22632 gcc_cv_as_cfi_sections_directive=yes
22634 esac
22635 else
22636 echo "configure: failed program was" >&5
22637 cat conftest.s >&5
22639 rm -f conftest.o conftest.s
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22643 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22647 cat >>confdefs.h <<_ACEOF
22648 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22649 then echo 1; else echo 0; fi`
22650 _ACEOF
22653 # GAS versions up to and including 2.11.0 may mis-optimize
22654 # .eh_frame data.
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22656 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22657 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22658 $as_echo_n "(cached) " >&6
22659 else
22660 gcc_cv_as_eh_frame=no
22661 if test $in_tree_gas = yes; then
22662 if test $in_tree_gas_is_elf = yes \
22663 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22664 then gcc_cv_as_eh_frame=yes
22666 elif test x$gcc_cv_as != x; then
22667 $as_echo ' .text
22668 .LFB1:
22669 .4byte 0
22670 .L1:
22671 .4byte 0
22672 .LFE1:
22673 .section .eh_frame,"aw",@progbits
22674 __FRAME_BEGIN__:
22675 .4byte .LECIE1-.LSCIE1
22676 .LSCIE1:
22677 .4byte 0x0
22678 .byte 0x1
22679 .ascii "z\0"
22680 .byte 0x1
22681 .byte 0x78
22682 .byte 0x1a
22683 .byte 0x0
22684 .byte 0x4
22685 .4byte 1
22686 .p2align 1
22687 .LECIE1:
22688 .LSFDE1:
22689 .4byte .LEFDE1-.LASFDE1
22690 .LASFDE1:
22691 .4byte .LASFDE1-__FRAME_BEGIN__
22692 .4byte .LFB1
22693 .4byte .LFE1-.LFB1
22694 .byte 0x4
22695 .4byte .LFE1-.LFB1
22696 .byte 0x4
22697 .4byte .L1-.LFB1
22698 .LEFDE1:' > conftest.s
22699 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22701 (eval $ac_try) 2>&5
22702 ac_status=$?
22703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22704 test $ac_status = 0; }; }
22705 then
22706 cat > conftest.lit <<EOF
22707 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22708 0010 01000000 12000000 18000000 00000000 ................
22709 0020 08000000 04080000 0044 .........D
22711 cat > conftest.big <<EOF
22712 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22713 0010 00000001 00000012 00000018 00000000 ................
22714 0020 00000008 04000000 0844 .........D
22716 # If the assembler didn't choke, and we can objdump,
22717 # and we got the correct data, then succeed.
22718 # The text in the here-document typically retains its unix-style line
22719 # endings, while the output of objdump will use host line endings.
22720 # Therefore, use diff -b for the comparisons.
22721 if test x$gcc_cv_objdump != x \
22722 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22723 | tail -3 > conftest.got \
22724 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22725 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22726 then
22727 gcc_cv_as_eh_frame=yes
22728 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22730 (eval $ac_try) 2>&5
22731 ac_status=$?
22732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22733 test $ac_status = 0; }; }; then
22734 gcc_cv_as_eh_frame=buggy
22735 else
22736 # Uh oh, what do we do now?
22737 gcc_cv_as_eh_frame=no
22739 else
22740 echo "configure: failed program was" >&5
22741 cat conftest.s >&5
22743 rm -f conftest.o conftest.s
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22747 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22750 if test $gcc_cv_as_eh_frame = buggy; then
22752 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22757 $as_echo_n "checking assembler for section merging support... " >&6; }
22758 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22759 $as_echo_n "(cached) " >&6
22760 else
22761 gcc_cv_as_shf_merge=no
22762 if test $in_tree_gas = yes; then
22763 if test $in_tree_gas_is_elf = yes \
22764 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22765 then gcc_cv_as_shf_merge=yes
22767 elif test x$gcc_cv_as != x; then
22768 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22771 (eval $ac_try) 2>&5
22772 ac_status=$?
22773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22774 test $ac_status = 0; }; }
22775 then
22776 gcc_cv_as_shf_merge=yes
22777 else
22778 echo "configure: failed program was" >&5
22779 cat conftest.s >&5
22781 rm -f conftest.o conftest.s
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22785 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22787 if test $gcc_cv_as_shf_merge = no; then
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22789 $as_echo_n "checking assembler for section merging support... " >&6; }
22790 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22791 $as_echo_n "(cached) " >&6
22792 else
22793 gcc_cv_as_shf_merge=no
22794 if test $in_tree_gas = yes; then
22795 if test $in_tree_gas_is_elf = yes \
22796 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22797 then gcc_cv_as_shf_merge=yes
22799 elif test x$gcc_cv_as != x; then
22800 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22803 (eval $ac_try) 2>&5
22804 ac_status=$?
22805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22806 test $ac_status = 0; }; }
22807 then
22808 gcc_cv_as_shf_merge=yes
22809 else
22810 echo "configure: failed program was" >&5
22811 cat conftest.s >&5
22813 rm -f conftest.o conftest.s
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22817 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22821 cat >>confdefs.h <<_ACEOF
22822 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22823 _ACEOF
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22827 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22828 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22829 $as_echo_n "(cached) " >&6
22830 else
22831 gcc_cv_as_comdat_group=no
22832 if test $in_tree_gas = yes; then
22833 if test $in_tree_gas_is_elf = yes \
22834 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22835 then gcc_cv_as_comdat_group=yes
22837 elif test x$gcc_cv_as != x; then
22838 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22841 (eval $ac_try) 2>&5
22842 ac_status=$?
22843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22844 test $ac_status = 0; }; }
22845 then
22846 gcc_cv_as_comdat_group=yes
22847 else
22848 echo "configure: failed program was" >&5
22849 cat conftest.s >&5
22851 rm -f conftest.o conftest.s
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22855 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22857 if test $gcc_cv_as_comdat_group = yes; then
22858 gcc_cv_as_comdat_group_percent=no
22859 gcc_cv_as_comdat_group_group=no
22860 else
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22862 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22863 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22864 $as_echo_n "(cached) " >&6
22865 else
22866 gcc_cv_as_comdat_group_percent=no
22867 if test $in_tree_gas = yes; then
22868 if test $in_tree_gas_is_elf = yes \
22869 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22870 then gcc_cv_as_comdat_group_percent=yes
22872 elif test x$gcc_cv_as != x; then
22873 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22874 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22876 (eval $ac_try) 2>&5
22877 ac_status=$?
22878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22879 test $ac_status = 0; }; }
22880 then
22881 gcc_cv_as_comdat_group_percent=yes
22882 else
22883 echo "configure: failed program was" >&5
22884 cat conftest.s >&5
22886 rm -f conftest.o conftest.s
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22890 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22892 if test $gcc_cv_as_comdat_group_percent = yes; then
22893 gcc_cv_as_comdat_group_group=no
22894 else
22895 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22896 gcc_cv_as_comdat_group_group=no
22898 case "${target}" in
22899 # Sun as uses a completely different syntax.
22900 *-*-solaris2*)
22901 case "${target}" in
22902 sparc*-*-solaris2*)
22903 conftest_s='
22904 .group foo,".text%foo",#comdat
22905 .section ".text%foo", #alloc,#execinstr,#progbits
22906 .globl foo
22907 foo:
22910 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22911 conftest_s='
22912 .group foo,.text%foo,#comdat
22913 .section .text%foo, "ax", @progbits
22914 .globl foo
22915 foo:
22918 esac
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22920 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22921 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22922 $as_echo_n "(cached) " >&6
22923 else
22924 gcc_cv_as_comdat_group_group=no
22925 if test x$gcc_cv_as != x; then
22926 $as_echo "$conftest_s" > conftest.s
22927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22929 (eval $ac_try) 2>&5
22930 ac_status=$?
22931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22932 test $ac_status = 0; }; }
22933 then
22934 gcc_cv_as_comdat_group_group=yes
22935 else
22936 echo "configure: failed program was" >&5
22937 cat conftest.s >&5
22939 rm -f conftest.o conftest.s
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22943 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22946 esac
22949 if test x"$ld_is_gold" = xyes; then
22950 comdat_group=yes
22951 elif test $in_tree_ld = yes ; then
22952 comdat_group=no
22953 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 \
22954 && test $in_tree_ld_is_elf = yes; then
22955 comdat_group=yes
22957 elif echo "$ld_ver" | grep GNU > /dev/null; then
22958 comdat_group=yes
22959 if test 0"$ld_date" -lt 20050308; then
22960 if test -n "$ld_date"; then
22961 # If there was date string, but was earlier than 2005-03-08, fail
22962 comdat_group=no
22963 elif test "$ld_vers_major" -lt 2; then
22964 comdat_group=no
22965 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22966 comdat_group=no
22969 else
22970 case "${target}" in
22971 *-*-solaris2.1[1-9]*)
22972 comdat_group=no
22973 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22974 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22975 # version 1.688.
22977 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22978 # least ld version 1.2267.
22979 if test "$ld_vers_major" -gt 1; then
22980 comdat_group=yes
22981 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22982 comdat_group=yes
22983 elif test "$ld_vers_minor" -ge 2267; then
22984 comdat_group=yes
22988 # Assume linkers other than GNU ld don't support COMDAT group.
22989 comdat_group=no
22991 esac
22993 # Allow overriding the automatic COMDAT group tests above.
22994 # Check whether --enable-comdat was given.
22995 if test "${enable_comdat+set}" = set; then :
22996 enableval=$enable_comdat; comdat_group="$enable_comdat"
22999 if test $comdat_group = no; then
23000 gcc_cv_as_comdat_group=no
23001 gcc_cv_as_comdat_group_percent=no
23002 gcc_cv_as_comdat_group_group=no
23005 cat >>confdefs.h <<_ACEOF
23006 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23007 || test $gcc_cv_as_comdat_group_percent = yes \
23008 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23009 _ACEOF
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23013 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23014 if test "${gcc_cv_as_discriminator+set}" = set; then :
23015 $as_echo_n "(cached) " >&6
23016 else
23017 gcc_cv_as_discriminator=no
23018 if test $in_tree_gas = yes; then
23019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23020 then gcc_cv_as_discriminator=yes
23022 elif test x$gcc_cv_as != x; then
23023 $as_echo ' .text
23024 .file 1 "conf.c"
23025 .loc 1 1 0 discriminator 1' > conftest.s
23026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23028 (eval $ac_try) 2>&5
23029 ac_status=$?
23030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23031 test $ac_status = 0; }; }
23032 then
23033 gcc_cv_as_discriminator=yes
23034 else
23035 echo "configure: failed program was" >&5
23036 cat conftest.s >&5
23038 rm -f conftest.o conftest.s
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23042 $as_echo "$gcc_cv_as_discriminator" >&6; }
23043 if test $gcc_cv_as_discriminator = yes; then
23045 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23049 # Thread-local storage - the check is heavily parameterized.
23050 conftest_s=
23051 tls_first_major=
23052 tls_first_minor=
23053 tls_as_opt=
23054 case "$target" in
23055 alpha*-*-*)
23056 conftest_s='
23057 .section ".tdata","awT",@progbits
23058 foo: .long 25
23059 .text
23060 ldq $27,__tls_get_addr($29) !literal!1
23061 lda $16,foo($29) !tlsgd!1
23062 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23063 ldq $27,__tls_get_addr($29) !literal!2
23064 lda $16,foo($29) !tlsldm!2
23065 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23066 ldq $1,foo($29) !gotdtprel
23067 ldah $2,foo($29) !dtprelhi
23068 lda $3,foo($2) !dtprello
23069 lda $4,foo($29) !dtprel
23070 ldq $1,foo($29) !gottprel
23071 ldah $2,foo($29) !tprelhi
23072 lda $3,foo($2) !tprello
23073 lda $4,foo($29) !tprel'
23074 tls_first_major=2
23075 tls_first_minor=13
23076 tls_as_opt=--fatal-warnings
23078 cris-*-*|crisv32-*-*)
23079 conftest_s='
23080 .section ".tdata","awT",@progbits
23081 x: .long 25
23082 .text
23083 move.d x:IE,$r10
23084 nop'
23085 tls_first_major=2
23086 tls_first_minor=20
23087 tls_as_opt=--fatal-warnings
23089 frv*-*-*)
23090 conftest_s='
23091 .section ".tdata","awT",@progbits
23092 x: .long 25
23093 .text
23094 call #gettlsoff(x)'
23095 tls_first_major=2
23096 tls_first_minor=14
23098 hppa*-*-linux*)
23099 conftest_s='
23100 t1: .reg %r20
23101 t2: .reg %r21
23102 gp: .reg %r19
23103 .section ".tdata","awT",@progbits
23104 foo: .long 25
23105 .text
23106 .align 4
23107 addil LT%foo-$tls_gdidx$,gp
23108 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23109 b __tls_get_addr
23111 addil LT%foo-$tls_ldidx$,gp
23112 b __tls_get_addr
23113 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23114 addil LR%foo-$tls_dtpoff$,%ret0
23115 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23116 mfctl %cr27,%t1
23117 addil LT%foo-$tls_ieoff$,gp
23118 ldw RT%foo-$tls_ieoff$(%r1),%t2
23119 add %t1,%t2,%t3
23120 mfctl %cr27,%t1
23121 addil LR%foo-$tls_leoff$,%t1
23122 ldo RR%foo-$tls_leoff$(%r1),%t2'
23123 tls_first_major=2
23124 tls_first_minor=15
23125 tls_as_opt=--fatal-warnings
23127 arm*-*-*)
23128 conftest_s='
23129 .section ".tdata","awT",%progbits
23130 foo: .long 25
23131 .text
23132 .word foo(gottpoff)
23133 .word foo(tpoff)
23134 .word foo(tlsgd)
23135 .word foo(tlsldm)
23136 .word foo(tlsldo)'
23137 tls_first_major=2
23138 tls_first_minor=17
23140 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23141 case "$target" in
23142 i[34567]86-*-solaris2.*)
23143 on_solaris=yes
23144 tga_func=___tls_get_addr
23146 x86_64-*-solaris2.1[0-9]*)
23147 on_solaris=yes
23148 tga_func=__tls_get_addr
23151 on_solaris=no
23153 esac
23154 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23155 conftest_s='
23156 .section .tdata,"awt",@progbits'
23157 tls_first_major=0
23158 tls_first_minor=0
23160 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23162 else
23163 conftest_s='
23164 .section ".tdata","awT",@progbits'
23165 tls_first_major=2
23166 tls_first_minor=14
23167 tls_as_opt="--fatal-warnings"
23169 conftest_s="$conftest_s
23170 foo: .long 25
23171 .text
23172 movl %gs:0, %eax
23173 leal foo@tlsgd(,%ebx,1), %eax
23174 leal foo@tlsldm(%ebx), %eax
23175 leal foo@dtpoff(%eax), %edx
23176 movl foo@gottpoff(%ebx), %eax
23177 subl foo@gottpoff(%ebx), %eax
23178 addl foo@gotntpoff(%ebx), %eax
23179 movl foo@indntpoff, %eax
23180 movl \$foo@tpoff, %eax
23181 subl \$foo@tpoff, %eax
23182 leal foo@ntpoff(%ecx), %eax"
23184 x86_64-*-*)
23185 conftest_s='
23186 .section ".tdata","awT",@progbits
23187 foo: .long 25
23188 .text
23189 movq %fs:0, %rax
23190 leaq foo@TLSGD(%rip), %rdi
23191 leaq foo@TLSLD(%rip), %rdi
23192 leaq foo@DTPOFF(%rax), %rdx
23193 movq foo@GOTTPOFF(%rip), %rax
23194 movq $foo@TPOFF, %rax'
23195 tls_first_major=2
23196 tls_first_minor=14
23197 tls_as_opt=--fatal-warnings
23199 ia64-*-*)
23200 conftest_s='
23201 .section ".tdata","awT",@progbits
23202 foo: data8 25
23203 .text
23204 addl r16 = @ltoff(@dtpmod(foo#)), gp
23205 addl r17 = @ltoff(@dtprel(foo#)), gp
23206 addl r18 = @ltoff(@tprel(foo#)), gp
23207 addl r19 = @dtprel(foo#), gp
23208 adds r21 = @dtprel(foo#), r13
23209 movl r23 = @dtprel(foo#)
23210 addl r20 = @tprel(foo#), gp
23211 adds r22 = @tprel(foo#), r13
23212 movl r24 = @tprel(foo#)'
23213 tls_first_major=2
23214 tls_first_minor=13
23215 tls_as_opt=--fatal-warnings
23217 microblaze*-*-*)
23218 conftest_s='
23219 .section .tdata,"awT",@progbits
23221 .word 2
23222 .text
23223 addik r5,r20,x@TLSGD
23224 addik r5,r20,x@TLSLDM'
23225 tls_first_major=2
23226 tls_first_minor=20
23227 tls_as_opt='--fatal-warnings'
23229 mips*-*-*)
23230 conftest_s='
23231 .section .tdata,"awT",@progbits
23233 .word 2
23234 .text
23235 addiu $4, $28, %tlsgd(x)
23236 addiu $4, $28, %tlsldm(x)
23237 lui $4, %dtprel_hi(x)
23238 addiu $4, $4, %dtprel_lo(x)
23239 lw $4, %gottprel(x)($28)
23240 lui $4, %tprel_hi(x)
23241 addiu $4, $4, %tprel_lo(x)'
23242 tls_first_major=2
23243 tls_first_minor=16
23244 tls_as_opt='-32 --fatal-warnings'
23246 m68k-*-*)
23247 conftest_s='
23248 .section .tdata,"awT",@progbits
23250 .word 2
23251 .text
23252 foo:
23253 move.l x@TLSGD(%a5),%a0
23254 move.l x@TLSLDM(%a5),%a0
23255 move.l x@TLSLDO(%a5),%a0
23256 move.l x@TLSIE(%a5),%a0
23257 move.l x@TLSLE(%a5),%a0'
23258 tls_first_major=2
23259 tls_first_minor=19
23260 tls_as_opt='--fatal-warnings'
23262 aarch64*-*-*)
23263 conftest_s='
23264 .section ".tdata","awT",%progbits
23265 foo: .long 25
23266 .text
23267 adrp x0, :tlsgd:x
23268 add x0, x0, #:tlsgd_lo12:x
23269 bl __tls_get_addr
23270 nop'
23271 tls_first_major=2
23272 tls_first_minor=20
23273 tls_as_opt='--fatal-warnings'
23275 powerpc-ibm-aix*)
23276 conftest_s='
23277 .extern __get_tpointer
23278 .toc
23279 LC..1:
23280 .tc a[TC],a[TL]@le
23281 .csect .text[PR]
23282 .tlstest:
23283 lwz 9,LC..1(2)
23284 bla __get_tpointer
23285 lwzx 3,9,3
23286 .globl a
23287 .csect a[TL],4
23289 .space 4'
23290 tls_first_major=0
23291 tls_first_minor=0
23293 powerpc64*-*-*)
23294 conftest_s='
23295 .section ".tdata","awT",@progbits
23296 .align 3
23297 ld0: .space 8
23298 ld1: .space 8
23299 x1: .space 8
23300 x2: .space 8
23301 x3: .space 8
23302 .text
23303 addi 3,2,ld0@got@tlsgd
23304 bl .__tls_get_addr
23306 addi 3,2,ld1@toc
23307 bl .__tls_get_addr
23309 addi 3,2,x1@got@tlsld
23310 bl .__tls_get_addr
23312 addi 9,3,x1@dtprel
23313 bl .__tls_get_addr
23315 addis 9,3,x2@dtprel@ha
23316 addi 9,9,x2@dtprel@l
23317 bl .__tls_get_addr
23319 ld 9,x3@got@dtprel(2)
23320 add 9,9,3
23321 bl .__tls_get_addr
23322 nop'
23323 tls_first_major=2
23324 tls_first_minor=14
23325 tls_as_opt="-a64 --fatal-warnings"
23327 powerpc*-*-*)
23328 conftest_s='
23329 .section ".tdata","awT",@progbits
23330 .align 2
23331 ld0: .space 4
23332 ld1: .space 4
23333 x1: .space 4
23334 x2: .space 4
23335 x3: .space 4
23336 .text
23337 addi 3,31,ld0@got@tlsgd
23338 bl __tls_get_addr
23339 addi 3,31,x1@got@tlsld
23340 bl __tls_get_addr
23341 addi 9,3,x1@dtprel
23342 addis 9,3,x2@dtprel@ha
23343 addi 9,9,x2@dtprel@l
23344 lwz 9,x3@got@tprel(31)
23345 add 9,9,x@tls
23346 addi 9,2,x1@tprel
23347 addis 9,2,x2@tprel@ha
23348 addi 9,9,x2@tprel@l'
23349 tls_first_major=2
23350 tls_first_minor=14
23351 tls_as_opt="-a32 --fatal-warnings"
23353 s390-*-*)
23354 conftest_s='
23355 .section ".tdata","awT",@progbits
23356 foo: .long 25
23357 .text
23358 .long foo@TLSGD
23359 .long foo@TLSLDM
23360 .long foo@DTPOFF
23361 .long foo@NTPOFF
23362 .long foo@GOTNTPOFF
23363 .long foo@INDNTPOFF
23364 l %r1,foo@GOTNTPOFF(%r12)
23365 l %r1,0(%r1):tls_load:foo
23366 bas %r14,0(%r1,%r13):tls_gdcall:foo
23367 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23368 tls_first_major=2
23369 tls_first_minor=14
23370 tls_as_opt="-m31 --fatal-warnings"
23372 s390x-*-*)
23373 conftest_s='
23374 .section ".tdata","awT",@progbits
23375 foo: .long 25
23376 .text
23377 .quad foo@TLSGD
23378 .quad foo@TLSLDM
23379 .quad foo@DTPOFF
23380 .quad foo@NTPOFF
23381 .quad foo@GOTNTPOFF
23382 lg %r1,foo@GOTNTPOFF(%r12)
23383 larl %r1,foo@INDNTPOFF
23384 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23385 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23386 tls_first_major=2
23387 tls_first_minor=14
23388 tls_as_opt="-m64 -Aesame --fatal-warnings"
23390 sh-*-* | sh[34]-*-*)
23391 conftest_s='
23392 .section ".tdata","awT",@progbits
23393 foo: .long 25
23394 .text
23395 .long foo@TLSGD
23396 .long foo@TLSLDM
23397 .long foo@DTPOFF
23398 .long foo@GOTTPOFF
23399 .long foo@TPOFF'
23400 tls_first_major=2
23401 tls_first_minor=13
23402 tls_as_opt=--fatal-warnings
23404 sparc*-*-*)
23405 case "$target" in
23406 sparc*-sun-solaris2.*)
23407 on_solaris=yes
23408 tga_func=__tls_get_addr
23411 on_solaris=no
23413 esac
23414 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23415 conftest_s='
23416 .section ".tdata",#alloc,#write,#tls'
23417 tls_first_major=0
23418 tls_first_minor=0
23419 else
23420 conftest_s='
23421 .section ".tdata","awT",@progbits'
23422 tls_first_major=2
23423 tls_first_minor=14
23424 tls_as_opt="-32 --fatal-warnings"
23426 conftest_s="$conftest_s
23427 foo: .long 25
23428 .text
23429 sethi %tgd_hi22(foo), %o0
23430 add %o0, %tgd_lo10(foo), %o1
23431 add %l7, %o1, %o0, %tgd_add(foo)
23432 call __tls_get_addr, %tgd_call(foo)
23433 sethi %tldm_hi22(foo), %l1
23434 add %l1, %tldm_lo10(foo), %l2
23435 add %l7, %l2, %o0, %tldm_add(foo)
23436 call __tls_get_addr, %tldm_call(foo)
23437 sethi %tldo_hix22(foo), %l3
23438 xor %l3, %tldo_lox10(foo), %l4
23439 add %o0, %l4, %l5, %tldo_add(foo)
23440 sethi %tie_hi22(foo), %o3
23441 add %o3, %tie_lo10(foo), %o3
23442 ld [%l7 + %o3], %o2, %tie_ld(foo)
23443 add %g7, %o2, %o4, %tie_add(foo)
23444 sethi %tle_hix22(foo), %l1
23445 xor %l1, %tle_lox10(foo), %o5
23446 ld [%g7 + %o5], %o1"
23448 tilepro*-*-*)
23449 conftest_s='
23450 .section ".tdata","awT",@progbits
23451 foo: .long 25
23452 .text
23453 addli r0, zero, tls_gd(foo)
23454 auli r0, zero, tls_gd_ha16(foo)
23455 addli r0, r0, tls_gd_lo16(foo)
23456 jal __tls_get_addr
23457 addli r0, zero, tls_ie(foo)
23458 auli r0, r0, tls_ie_ha16(foo)
23459 addli r0, r0, tls_ie_lo16(foo)'
23460 tls_first_major=2
23461 tls_first_minor=22
23462 tls_as_opt="--fatal-warnings"
23464 tilegx*-*-*)
23465 conftest_s='
23466 .section ".tdata","awT",@progbits
23467 foo: .long 25
23468 .text
23469 shl16insli r0, zero, hw0_last_tls_gd(foo)
23470 shl16insli r0, zero, hw1_last_tls_gd(foo)
23471 shl16insli r0, r0, hw0_tls_gd(foo)
23472 jal __tls_get_addr
23473 shl16insli r0, zero, hw1_last_tls_ie(foo)
23474 shl16insli r0, r0, hw0_tls_ie(foo)'
23475 tls_first_major=2
23476 tls_first_minor=22
23477 tls_as_opt="--fatal-warnings"
23479 xtensa*-*-*)
23480 conftest_s='
23481 .section ".tdata","awT",@progbits
23482 foo: .long 25
23483 .text
23484 movi a8, foo@TLSFUNC
23485 movi a10, foo@TLSARG
23486 callx8.tls a8, foo@TLSCALL'
23487 tls_first_major=2
23488 tls_first_minor=19
23490 esac
23491 set_have_as_tls=no
23492 if test "x$enable_tls" = xno ; then
23493 : # TLS explicitly disabled.
23494 elif test "x$enable_tls" = xyes ; then
23495 set_have_as_tls=yes # TLS explicitly enabled.
23496 elif test -z "$tls_first_major"; then
23497 : # If we don't have a check, assume no support.
23498 else
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23500 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23501 if test "${gcc_cv_as_tls+set}" = set; then :
23502 $as_echo_n "(cached) " >&6
23503 else
23504 gcc_cv_as_tls=no
23505 if test $in_tree_gas = yes; then
23506 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23507 then gcc_cv_as_tls=yes
23509 elif test x$gcc_cv_as != x; then
23510 $as_echo "$conftest_s" > conftest.s
23511 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23513 (eval $ac_try) 2>&5
23514 ac_status=$?
23515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23516 test $ac_status = 0; }; }
23517 then
23518 gcc_cv_as_tls=yes
23519 else
23520 echo "configure: failed program was" >&5
23521 cat conftest.s >&5
23523 rm -f conftest.o conftest.s
23526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23527 $as_echo "$gcc_cv_as_tls" >&6; }
23528 if test $gcc_cv_as_tls = yes; then
23529 set_have_as_tls=yes
23532 case "$target" in
23533 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23534 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23535 # Sun style that Sun ld and GCC don't support any longer.
23536 *-*-solaris2.*)
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23538 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23539 ld_tls_support=no
23540 # Check ld and ld.so.1 TLS support.
23541 if echo "$ld_ver" | grep GNU > /dev/null; then
23542 # Assume all interesting versions of GNU ld have TLS support.
23543 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23544 ld_tls_support=yes
23545 else
23546 case "$target" in
23547 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23548 i?86-*-solaris2.9)
23549 min_tls_ld_vers_minor=374
23551 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23552 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23553 min_tls_ld_vers_minor=343
23555 esac
23556 if test "$ld_vers_major" -gt 1 || \
23557 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23558 ld_tls_support=yes
23559 else
23560 set_have_as_tls=no
23563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23564 $as_echo "$ld_tls_support" >&6; }
23566 save_LIBS="$LIBS"
23567 save_LDFLAGS="$LDFLAGS"
23568 LIBS=
23569 LDFLAGS=
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23572 $as_echo_n "checking library containing $tga_func... " >&6; }
23573 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23574 # (32-bit x86) only lived in libthread, so check for that. Keep
23575 # set_have_as_tls if found, disable if not.
23576 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23578 $as_echo_n "checking for library containing $tga_func... " >&6; }
23579 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23580 $as_echo_n "(cached) " >&6
23581 else
23582 ac_func_search_save_LIBS=$LIBS
23583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23584 /* end confdefs.h. */
23586 /* Override any GCC internal prototype to avoid an error.
23587 Use char because int might match the return type of a GCC
23588 builtin and then its argument prototype would still apply. */
23589 #ifdef __cplusplus
23590 extern "C"
23591 #endif
23592 char $tga_func ();
23594 main ()
23596 return $tga_func ();
23598 return 0;
23600 _ACEOF
23601 for ac_lib in '' thread; do
23602 if test -z "$ac_lib"; then
23603 ac_res="none required"
23604 else
23605 ac_res=-l$ac_lib
23606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23608 if ac_fn_c_try_link "$LINENO"; then :
23609 eval "$as_ac_Search=\$ac_res"
23611 rm -f core conftest.err conftest.$ac_objext \
23612 conftest$ac_exeext
23613 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23614 break
23616 done
23617 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23619 else
23620 eval "$as_ac_Search=no"
23622 rm conftest.$ac_ext
23623 LIBS=$ac_func_search_save_LIBS
23625 eval ac_res=\$$as_ac_Search
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23627 $as_echo "$ac_res" >&6; }
23628 eval ac_res=\$$as_ac_Search
23629 if test "$ac_res" != no; then :
23630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23632 else
23633 set_have_as_tls=no
23636 # Clear LIBS if we cannot support TLS.
23637 if test $set_have_as_tls = no; then
23638 LIBS=
23640 # Always define LIB_TLS_SPEC, even without TLS support.
23642 cat >>confdefs.h <<_ACEOF
23643 #define LIB_TLS_SPEC "$LIBS"
23644 _ACEOF
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23647 $as_echo "$LIBS" >&6; }
23649 LIBS="$save_LIBS"
23650 LDFLAGS="$save_LDFLAGS"
23652 esac
23653 if test $set_have_as_tls = yes ; then
23655 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23659 # Target-specific assembler checks.
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23662 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23663 gcc_cv_ld_static_dynamic=no
23664 gcc_cv_ld_static_option='-Bstatic'
23665 gcc_cv_ld_dynamic_option='-Bdynamic'
23666 if test $in_tree_ld = yes ; then
23667 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
23668 gcc_cv_ld_static_dynamic=yes
23670 elif test x$gcc_cv_ld != x; then
23671 # Check if linker supports -Bstatic/-Bdynamic option
23672 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23673 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23674 gcc_cv_ld_static_dynamic=yes
23675 else
23676 case "$target" in
23677 # AIX ld uses -b flags
23678 *-*-aix4.[23]* | *-*-aix[5-9]*)
23679 gcc_cv_ld_static_dynamic=yes
23680 gcc_cv_ld_static_option="-bstatic"
23681 gcc_cv_ld_dynamic_option="-bdynamic"
23683 # HP-UX ld uses -a flags to select between shared and archive.
23684 *-*-hpux*)
23685 if test x"$gnu_ld" = xno; then
23686 gcc_cv_ld_static_dynamic=yes
23687 gcc_cv_ld_static_option="-aarchive_shared"
23688 gcc_cv_ld_dynamic_option="-adefault"
23691 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23692 *-*-solaris2*)
23693 gcc_cv_ld_static_dynamic=yes
23695 esac
23698 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23700 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23703 cat >>confdefs.h <<_ACEOF
23704 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23705 _ACEOF
23708 cat >>confdefs.h <<_ACEOF
23709 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23710 _ACEOF
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23714 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23716 if test x"$demangler_in_ld" = xyes; then
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23718 $as_echo_n "checking linker --demangle support... " >&6; }
23719 gcc_cv_ld_demangle=no
23720 if test $in_tree_ld = yes; then
23721 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 \
23722 gcc_cv_ld_demangle=yes
23724 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23725 # Check if the GNU linker supports --demangle option
23726 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23727 gcc_cv_ld_demangle=yes
23730 if test x"$gcc_cv_ld_demangle" = xyes; then
23732 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23736 $as_echo "$gcc_cv_ld_demangle" >&6; }
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23740 $as_echo_n "checking linker plugin support... " >&6; }
23741 gcc_cv_lto_plugin=0
23742 if test -f liblto_plugin.la; then
23743 save_ld_ver="$ld_ver"
23744 save_ld_vers_major="$ld_vers_major"
23745 save_ld_vers_minor="$ld_vers_minor"
23746 save_ld_is_gold="$ld_is_gold"
23748 ld_is_gold=no
23750 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23751 ld_ver="GNU ld"
23752 # FIXME: ld_is_gold?
23753 ld_vers_major="$gcc_cv_gld_major_version"
23754 ld_vers_minor="$gcc_cv_gld_minor_version"
23755 else
23756 # Determine plugin linker version.
23757 # FIXME: Partial duplicate from above, generalize.
23758 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23759 if echo "$ld_ver" | grep GNU > /dev/null; then
23760 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23761 ld_is_gold=yes
23762 ld_vers=`echo $ld_ver | sed -n \
23763 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23764 else
23765 ld_vers=`echo $ld_ver | sed -n \
23766 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23768 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23769 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23773 # Determine plugin support.
23774 if echo "$ld_ver" | grep GNU > /dev/null; then
23775 # Require GNU ld or gold 2.21+ for plugin support by default.
23776 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23777 gcc_cv_lto_plugin=2
23778 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23779 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23780 gcc_cv_lto_plugin=1
23784 ld_ver="$save_ld_ver"
23785 ld_vers_major="$save_ld_vers_major"
23786 ld_vers_minor="$save_ld_vers_minor"
23787 ld_is_gold="$save_ld_is_gold"
23790 cat >>confdefs.h <<_ACEOF
23791 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23792 _ACEOF
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23795 $as_echo "$gcc_cv_lto_plugin" >&6; }
23797 case "$target" in
23798 # All TARGET_ABI_OSF targets.
23799 alpha*-*-linux* | alpha*-*-*bsd*)
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23801 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23802 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23803 $as_echo_n "(cached) " >&6
23804 else
23805 gcc_cv_as_alpha_explicit_relocs=no
23806 if test $in_tree_gas = yes; then
23807 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23808 then gcc_cv_as_alpha_explicit_relocs=yes
23810 elif test x$gcc_cv_as != x; then
23811 $as_echo ' .set nomacro
23812 .text
23813 extbl $3, $2, $3 !lituse_bytoff!1
23814 ldq $2, a($29) !literal!1
23815 ldq $4, b($29) !literal!2
23816 ldq_u $3, 0($2) !lituse_base!1
23817 ldq $27, f($29) !literal!5
23818 jsr $26, ($27), f !lituse_jsr!5
23819 ldah $29, 0($26) !gpdisp!3
23820 lda $0, c($29) !gprel
23821 ldah $1, d($29) !gprelhigh
23822 lda $1, d($1) !gprellow
23823 lda $29, 0($29) !gpdisp!3' > conftest.s
23824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23826 (eval $ac_try) 2>&5
23827 ac_status=$?
23828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23829 test $ac_status = 0; }; }
23830 then
23831 gcc_cv_as_alpha_explicit_relocs=yes
23832 else
23833 echo "configure: failed program was" >&5
23834 cat conftest.s >&5
23836 rm -f conftest.o conftest.s
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23840 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23841 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23843 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23847 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23848 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23849 $as_echo_n "(cached) " >&6
23850 else
23851 gcc_cv_as_alpha_jsrdirect_relocs=no
23852 if test $in_tree_gas = yes; then
23853 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23854 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23856 elif test x$gcc_cv_as != x; then
23857 $as_echo ' .set nomacro
23858 .text
23859 ldq $27, a($29) !literal!1
23860 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23861 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23863 (eval $ac_try) 2>&5
23864 ac_status=$?
23865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23866 test $ac_status = 0; }; }
23867 then
23868 gcc_cv_as_alpha_jsrdirect_relocs=yes
23869 else
23870 echo "configure: failed program was" >&5
23871 cat conftest.s >&5
23873 rm -f conftest.o conftest.s
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23877 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23878 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23880 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23885 cris-*-*)
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23887 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23888 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23889 $as_echo_n "(cached) " >&6
23890 else
23891 gcc_cv_as_cris_no_mul_bug=no
23892 if test $in_tree_gas = yes; then
23893 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23894 then gcc_cv_as_cris_no_mul_bug=yes
23896 elif test x$gcc_cv_as != x; then
23897 $as_echo '.text' > conftest.s
23898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23900 (eval $ac_try) 2>&5
23901 ac_status=$?
23902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23903 test $ac_status = 0; }; }
23904 then
23905 gcc_cv_as_cris_no_mul_bug=yes
23906 else
23907 echo "configure: failed program was" >&5
23908 cat conftest.s >&5
23910 rm -f conftest.o conftest.s
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23914 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23915 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23917 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23922 sparc*-*-*)
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23924 $as_echo_n "checking assembler for .register... " >&6; }
23925 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23926 $as_echo_n "(cached) " >&6
23927 else
23928 gcc_cv_as_sparc_register_op=no
23929 if test x$gcc_cv_as != x; then
23930 $as_echo '.register %g2, #scratch' > conftest.s
23931 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23933 (eval $ac_try) 2>&5
23934 ac_status=$?
23935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23936 test $ac_status = 0; }; }
23937 then
23938 gcc_cv_as_sparc_register_op=yes
23939 else
23940 echo "configure: failed program was" >&5
23941 cat conftest.s >&5
23943 rm -f conftest.o conftest.s
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23947 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23948 if test $gcc_cv_as_sparc_register_op = yes; then
23950 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
23955 $as_echo_n "checking assembler for #nobits... " >&6; }
23956 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
23957 $as_echo_n "(cached) " >&6
23958 else
23959 gcc_cv_as_sparc_nobits=no
23960 if test x$gcc_cv_as != x; then
23961 $as_echo '.section "nobits",#alloc,#write,#nobits
23962 .section "progbits",#alloc,#write,#progbits' > conftest.s
23963 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23965 (eval $ac_try) 2>&5
23966 ac_status=$?
23967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23968 test $ac_status = 0; }; }
23969 then
23970 gcc_cv_as_sparc_nobits=yes
23971 else
23972 echo "configure: failed program was" >&5
23973 cat conftest.s >&5
23975 rm -f conftest.o conftest.s
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
23979 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
23982 cat >>confdefs.h <<_ACEOF
23983 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
23984 _ACEOF
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23988 $as_echo_n "checking assembler for -relax option... " >&6; }
23989 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23990 $as_echo_n "(cached) " >&6
23991 else
23992 gcc_cv_as_sparc_relax=no
23993 if test x$gcc_cv_as != x; then
23994 $as_echo '.text' > conftest.s
23995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23997 (eval $ac_try) 2>&5
23998 ac_status=$?
23999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24000 test $ac_status = 0; }; }
24001 then
24002 gcc_cv_as_sparc_relax=yes
24003 else
24004 echo "configure: failed program was" >&5
24005 cat conftest.s >&5
24007 rm -f conftest.o conftest.s
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24011 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24012 if test $gcc_cv_as_sparc_relax = yes; then
24014 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24019 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24020 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24021 $as_echo_n "(cached) " >&6
24022 else
24023 gcc_cv_as_sparc_gotdata_op=no
24024 if test x$gcc_cv_as != x; then
24025 $as_echo '.text
24026 .align 4
24027 foo:
24029 bar:
24030 sethi %gdop_hix22(foo), %g1
24031 xor %g1, %gdop_lox10(foo), %g1
24032 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24035 (eval $ac_try) 2>&5
24036 ac_status=$?
24037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24038 test $ac_status = 0; }; }
24039 then
24040 if test x$gcc_cv_ld != x \
24041 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24042 if test x$gcc_cv_objdump != x; then
24043 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24044 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24045 gcc_cv_as_sparc_gotdata_op=no
24046 else
24047 gcc_cv_as_sparc_gotdata_op=yes
24051 rm -f conftest
24052 else
24053 echo "configure: failed program was" >&5
24054 cat conftest.s >&5
24056 rm -f conftest.o conftest.s
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24060 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24061 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24063 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24068 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24069 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24070 $as_echo_n "(cached) " >&6
24071 else
24072 gcc_cv_as_sparc_ua_pcrel=no
24073 if test x$gcc_cv_as != x; then
24074 $as_echo '.text
24075 foo:
24077 .data
24078 .align 4
24079 .byte 0
24080 .uaword %r_disp32(foo)' > conftest.s
24081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24083 (eval $ac_try) 2>&5
24084 ac_status=$?
24085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24086 test $ac_status = 0; }; }
24087 then
24088 if test x$gcc_cv_ld != x \
24089 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24090 gcc_cv_as_sparc_ua_pcrel=yes
24092 rm -f conftest
24093 else
24094 echo "configure: failed program was" >&5
24095 cat conftest.s >&5
24097 rm -f conftest.o conftest.s
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24101 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24102 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24104 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24108 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24109 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24110 $as_echo_n "(cached) " >&6
24111 else
24112 gcc_cv_as_sparc_ua_pcrel_hidden=no
24113 if test x$gcc_cv_as != x; then
24114 $as_echo '.data
24115 .align 4
24116 .byte 0x31
24117 .uaword %r_disp32(foo)
24118 .byte 0x32, 0x33, 0x34
24119 .global foo
24120 .hidden foo
24121 foo:
24122 .skip 4' > conftest.s
24123 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24125 (eval $ac_try) 2>&5
24126 ac_status=$?
24127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24128 test $ac_status = 0; }; }
24129 then
24130 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24131 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24132 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24133 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24134 if $gcc_cv_objdump -R conftest 2> /dev/null \
24135 | grep 'DISP32' > /dev/null 2>&1; then
24137 else
24138 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24141 rm -f conftest
24142 else
24143 echo "configure: failed program was" >&5
24144 cat conftest.s >&5
24146 rm -f conftest.o conftest.s
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24150 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24151 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24153 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24157 fi # unaligned pcrel relocs
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24160 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24161 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24162 $as_echo_n "(cached) " >&6
24163 else
24164 gcc_cv_as_sparc_offsetable_lo10=no
24165 if test x$gcc_cv_as != x; then
24166 $as_echo '.text
24167 or %g1, %lo(ab) + 12, %g1
24168 or %g1, %lo(ab + 12), %g1' > conftest.s
24169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24171 (eval $ac_try) 2>&5
24172 ac_status=$?
24173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24174 test $ac_status = 0; }; }
24175 then
24176 if test x$gcc_cv_objdump != x \
24177 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24178 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24179 gcc_cv_as_sparc_offsetable_lo10=yes
24181 else
24182 echo "configure: failed program was" >&5
24183 cat conftest.s >&5
24185 rm -f conftest.o conftest.s
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24189 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24190 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24192 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24197 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24198 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24199 $as_echo_n "(cached) " >&6
24200 else
24201 gcc_cv_as_sparc_fmaf=no
24202 if test x$gcc_cv_as != x; then
24203 $as_echo '.text
24204 .register %g2, #scratch
24205 .register %g3, #scratch
24206 .align 4
24207 fmaddd %f0, %f2, %f4, %f6
24208 addxccc %g1, %g2, %g3
24209 fsrl32 %f2, %f4, %f8
24210 fnaddd %f10, %f12, %f14' > conftest.s
24211 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24213 (eval $ac_try) 2>&5
24214 ac_status=$?
24215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24216 test $ac_status = 0; }; }
24217 then
24218 gcc_cv_as_sparc_fmaf=yes
24219 else
24220 echo "configure: failed program was" >&5
24221 cat conftest.s >&5
24223 rm -f conftest.o conftest.s
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24227 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24228 if test $gcc_cv_as_sparc_fmaf = yes; then
24230 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24235 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24236 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24237 $as_echo_n "(cached) " >&6
24238 else
24239 gcc_cv_as_sparc_sparc4=no
24240 if test x$gcc_cv_as != x; then
24241 $as_echo '.text
24242 .register %g2, #scratch
24243 .register %g3, #scratch
24244 .align 4
24245 cxbe %g2, %g3, 1f
24246 1: cwbneg %g2, %g3, 1f
24247 1: sha1
24249 aes_kexpand0 %f4, %f6, %f8
24250 des_round %f38, %f40, %f42, %f44
24251 camellia_f %f54, %f56, %f58, %f60
24252 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24255 (eval $ac_try) 2>&5
24256 ac_status=$?
24257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24258 test $ac_status = 0; }; }
24259 then
24260 gcc_cv_as_sparc_sparc4=yes
24261 else
24262 echo "configure: failed program was" >&5
24263 cat conftest.s >&5
24265 rm -f conftest.o conftest.s
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24269 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24270 if test $gcc_cv_as_sparc_sparc4 = yes; then
24272 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24277 i[34567]86-*-* | x86_64-*-*)
24278 case $target_os in
24279 cygwin*)
24280 # Full C++ conformance when using a shared libstdc++-v3 requires some
24281 # support from the Cygwin DLL, which in more recent versions exports
24282 # wrappers to aid in interposing and redirecting operators new, delete,
24283 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24284 # are configuring for a version of Cygwin that exports the wrappers.
24285 if test x$host = x$target && test x$host_cpu = xi686; then
24286 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24287 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24288 gcc_ac_cygwin_dll_wrappers=yes
24289 else
24290 gcc_ac_cygwin_dll_wrappers=no
24293 else
24294 # Can't check presence of libc functions during cross-compile, so
24295 # we just have to assume we're building for an up-to-date target.
24296 gcc_ac_cygwin_dll_wrappers=yes
24299 cat >>confdefs.h <<_ACEOF
24300 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24301 _ACEOF
24303 esac
24304 case $target_os in
24305 cygwin* | pe | mingw32* | interix*)
24306 # Recent binutils allows the three-operand form of ".comm" on PE. This
24307 # definition is used unconditionally to initialise the default state of
24308 # the target option variable that governs usage of the feature.
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24310 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24311 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24312 $as_echo_n "(cached) " >&6
24313 else
24314 gcc_cv_as_comm_has_align=no
24315 if test $in_tree_gas = yes; then
24316 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24317 then gcc_cv_as_comm_has_align=yes
24319 elif test x$gcc_cv_as != x; then
24320 $as_echo '.comm foo,1,32' > conftest.s
24321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24323 (eval $ac_try) 2>&5
24324 ac_status=$?
24325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24326 test $ac_status = 0; }; }
24327 then
24328 gcc_cv_as_comm_has_align=yes
24329 else
24330 echo "configure: failed program was" >&5
24331 cat conftest.s >&5
24333 rm -f conftest.o conftest.s
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24337 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24340 cat >>confdefs.h <<_ACEOF
24341 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24342 _ACEOF
24344 # Used for DWARF 2 in PE
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24346 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24347 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24348 $as_echo_n "(cached) " >&6
24349 else
24350 gcc_cv_as_ix86_pe_secrel32=no
24351 if test $in_tree_gas = yes; then
24352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24353 then gcc_cv_as_ix86_pe_secrel32=yes
24355 elif test x$gcc_cv_as != x; then
24356 $as_echo '.text
24357 foo: nop
24358 .data
24359 .secrel32 foo' > conftest.s
24360 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24362 (eval $ac_try) 2>&5
24363 ac_status=$?
24364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24365 test $ac_status = 0; }; }
24366 then
24367 if test x$gcc_cv_ld != x \
24368 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24369 gcc_cv_as_ix86_pe_secrel32=yes
24371 rm -f conftest
24372 else
24373 echo "configure: failed program was" >&5
24374 cat conftest.s >&5
24376 rm -f conftest.o conftest.s
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24380 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24381 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24383 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24386 # Test if the assembler supports the extended form of the .section
24387 # directive that specifies section alignment. LTO support uses this,
24388 # but normally only after installation, so we warn but don't fail the
24389 # configure if LTO is enabled but the assembler does not support it.
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24391 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24392 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24393 $as_echo_n "(cached) " >&6
24394 else
24395 gcc_cv_as_section_has_align=no
24396 if test $in_tree_gas = yes; then
24397 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24398 then gcc_cv_as_section_has_align=yes
24400 elif test x$gcc_cv_as != x; then
24401 $as_echo '.section lto_test,"dr0"' > conftest.s
24402 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24404 (eval $ac_try) 2>&5
24405 ac_status=$?
24406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24407 test $ac_status = 0; }; }
24408 then
24409 gcc_cv_as_section_has_align=yes
24410 else
24411 echo "configure: failed program was" >&5
24412 cat conftest.s >&5
24414 rm -f conftest.o conftest.s
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24418 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24420 if test x$gcc_cv_as_section_has_align != xyes; then
24421 case ",$enable_languages," in
24422 *,lto,*)
24423 { $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
24424 $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;}
24426 esac
24428 # Test if the assembler supports the section flag 'e' for specifying
24429 # an excluded section.
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24431 $as_echo_n "checking assembler for .section with e... " >&6; }
24432 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24433 $as_echo_n "(cached) " >&6
24434 else
24435 gcc_cv_as_section_has_e=no
24436 if test $in_tree_gas = yes; then
24437 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24438 then gcc_cv_as_section_has_e=yes
24440 elif test x$gcc_cv_as != x; then
24441 $as_echo '.section foo1,"e"
24442 .byte 0,0,0,0' > conftest.s
24443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24445 (eval $ac_try) 2>&5
24446 ac_status=$?
24447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24448 test $ac_status = 0; }; }
24449 then
24450 gcc_cv_as_section_has_e=yes
24451 else
24452 echo "configure: failed program was" >&5
24453 cat conftest.s >&5
24455 rm -f conftest.o conftest.s
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24459 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24462 cat >>confdefs.h <<_ACEOF
24463 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24464 _ACEOF
24467 esac
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24470 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24471 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24472 $as_echo_n "(cached) " >&6
24473 else
24474 gcc_cv_as_ix86_filds=no
24475 if test x$gcc_cv_as != x; then
24476 $as_echo 'filds mem; fists mem' > conftest.s
24477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24479 (eval $ac_try) 2>&5
24480 ac_status=$?
24481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24482 test $ac_status = 0; }; }
24483 then
24484 gcc_cv_as_ix86_filds=yes
24485 else
24486 echo "configure: failed program was" >&5
24487 cat conftest.s >&5
24489 rm -f conftest.o conftest.s
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24493 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24494 if test $gcc_cv_as_ix86_filds = yes; then
24496 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24501 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24502 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24503 $as_echo_n "(cached) " >&6
24504 else
24505 gcc_cv_as_ix86_fildq=no
24506 if test x$gcc_cv_as != x; then
24507 $as_echo 'fildq mem; fistpq mem' > conftest.s
24508 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510 (eval $ac_try) 2>&5
24511 ac_status=$?
24512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513 test $ac_status = 0; }; }
24514 then
24515 gcc_cv_as_ix86_fildq=yes
24516 else
24517 echo "configure: failed program was" >&5
24518 cat conftest.s >&5
24520 rm -f conftest.o conftest.s
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24524 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24525 if test $gcc_cv_as_ix86_fildq = yes; then
24527 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24532 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24533 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24534 $as_echo_n "(cached) " >&6
24535 else
24536 gcc_cv_as_ix86_cmov_sun_syntax=no
24537 if test x$gcc_cv_as != x; then
24538 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24539 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24541 (eval $ac_try) 2>&5
24542 ac_status=$?
24543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24544 test $ac_status = 0; }; }
24545 then
24546 gcc_cv_as_ix86_cmov_sun_syntax=yes
24547 else
24548 echo "configure: failed program was" >&5
24549 cat conftest.s >&5
24551 rm -f conftest.o conftest.s
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24555 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24556 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24558 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24563 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24564 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24565 $as_echo_n "(cached) " >&6
24566 else
24567 gcc_cv_as_ix86_ffreep=no
24568 if test x$gcc_cv_as != x; then
24569 $as_echo 'ffreep %st(1)' > conftest.s
24570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24572 (eval $ac_try) 2>&5
24573 ac_status=$?
24574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24575 test $ac_status = 0; }; }
24576 then
24577 gcc_cv_as_ix86_ffreep=yes
24578 else
24579 echo "configure: failed program was" >&5
24580 cat conftest.s >&5
24582 rm -f conftest.o conftest.s
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24586 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24587 if test $gcc_cv_as_ix86_ffreep = yes; then
24589 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24594 $as_echo_n "checking assembler for .quad directive... " >&6; }
24595 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24596 $as_echo_n "(cached) " >&6
24597 else
24598 gcc_cv_as_ix86_quad=no
24599 if test x$gcc_cv_as != x; then
24600 $as_echo '.quad 0' > conftest.s
24601 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24603 (eval $ac_try) 2>&5
24604 ac_status=$?
24605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24606 test $ac_status = 0; }; }
24607 then
24608 gcc_cv_as_ix86_quad=yes
24609 else
24610 echo "configure: failed program was" >&5
24611 cat conftest.s >&5
24613 rm -f conftest.o conftest.s
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24617 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24618 if test $gcc_cv_as_ix86_quad = yes; then
24620 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24625 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24626 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24627 $as_echo_n "(cached) " >&6
24628 else
24629 gcc_cv_as_ix86_sahf=no
24630 if test x$gcc_cv_as != x; then
24631 $as_echo '.code64
24632 sahf' > conftest.s
24633 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24635 (eval $ac_try) 2>&5
24636 ac_status=$?
24637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24638 test $ac_status = 0; }; }
24639 then
24640 gcc_cv_as_ix86_sahf=yes
24641 else
24642 echo "configure: failed program was" >&5
24643 cat conftest.s >&5
24645 rm -f conftest.o conftest.s
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24649 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24650 if test $gcc_cv_as_ix86_sahf = yes; then
24652 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24657 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24658 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24659 $as_echo_n "(cached) " >&6
24660 else
24661 gcc_cv_as_ix86_interunit_movq=no
24662 if test x$gcc_cv_as != x; then
24663 $as_echo '.code64
24664 movq %mm0, %rax
24665 movq %rax, %xmm0' > conftest.s
24666 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24668 (eval $ac_try) 2>&5
24669 ac_status=$?
24670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24671 test $ac_status = 0; }; }
24672 then
24673 gcc_cv_as_ix86_interunit_movq=yes
24674 else
24675 echo "configure: failed program was" >&5
24676 cat conftest.s >&5
24678 rm -f conftest.o conftest.s
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24682 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24683 if test $gcc_cv_as_ix86_interunit_movq = yes; then
24685 $as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24690 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24691 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24692 $as_echo_n "(cached) " >&6
24693 else
24694 gcc_cv_as_ix86_hle=no
24695 if test x$gcc_cv_as != x; then
24696 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24699 (eval $ac_try) 2>&5
24700 ac_status=$?
24701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702 test $ac_status = 0; }; }
24703 then
24704 gcc_cv_as_ix86_hle=yes
24705 else
24706 echo "configure: failed program was" >&5
24707 cat conftest.s >&5
24709 rm -f conftest.o conftest.s
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24713 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24714 if test $gcc_cv_as_ix86_hle = yes; then
24716 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24721 $as_echo_n "checking assembler for swap suffix... " >&6; }
24722 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24723 $as_echo_n "(cached) " >&6
24724 else
24725 gcc_cv_as_ix86_swap=no
24726 if test x$gcc_cv_as != x; then
24727 $as_echo 'movl.s %esp, %ebp' > conftest.s
24728 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24730 (eval $ac_try) 2>&5
24731 ac_status=$?
24732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24733 test $ac_status = 0; }; }
24734 then
24735 gcc_cv_as_ix86_swap=yes
24736 else
24737 echo "configure: failed program was" >&5
24738 cat conftest.s >&5
24740 rm -f conftest.o conftest.s
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24744 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24745 if test $gcc_cv_as_ix86_swap = yes; then
24747 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24752 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24753 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24754 $as_echo_n "(cached) " >&6
24755 else
24756 gcc_cv_as_ix86_diff_sect_delta=no
24757 if test x$gcc_cv_as != x; then
24758 $as_echo '.section .rodata
24759 .L1:
24760 .long .L2-.L1
24761 .long .L3-.L1
24762 .text
24763 .L3: nop
24764 .L2: nop' > conftest.s
24765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24767 (eval $ac_try) 2>&5
24768 ac_status=$?
24769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24770 test $ac_status = 0; }; }
24771 then
24772 gcc_cv_as_ix86_diff_sect_delta=yes
24773 else
24774 echo "configure: failed program was" >&5
24775 cat conftest.s >&5
24777 rm -f conftest.o conftest.s
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24781 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24782 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24784 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24788 # These two are used unconditionally by i386.[ch]; it is to be defined
24789 # to 1 if the feature is present, 0 otherwise.
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24791 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24792 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24793 $as_echo_n "(cached) " >&6
24794 else
24795 gcc_cv_as_ix86_gotoff_in_data=no
24796 if test $in_tree_gas = yes; then
24797 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24798 then gcc_cv_as_ix86_gotoff_in_data=yes
24800 elif test x$gcc_cv_as != x; then
24801 $as_echo ' .text
24802 .L0:
24804 .data
24805 .long .L0@GOTOFF' > conftest.s
24806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24808 (eval $ac_try) 2>&5
24809 ac_status=$?
24810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24811 test $ac_status = 0; }; }
24812 then
24813 gcc_cv_as_ix86_gotoff_in_data=yes
24814 else
24815 echo "configure: failed program was" >&5
24816 cat conftest.s >&5
24818 rm -f conftest.o conftest.s
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24822 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24825 cat >>confdefs.h <<_ACEOF
24826 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24827 _ACEOF
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24831 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24832 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24833 $as_echo_n "(cached) " >&6
24834 else
24835 gcc_cv_as_ix86_rep_lock_prefix=no
24836 if test x$gcc_cv_as != x; then
24837 $as_echo 'rep movsl
24838 rep ret
24839 rep nop
24840 rep bsf %ecx, %eax
24841 rep bsr %ecx, %eax
24842 lock addl %edi, (%eax,%esi)
24843 lock orl $0, (%esp)' > conftest.s
24844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24846 (eval $ac_try) 2>&5
24847 ac_status=$?
24848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24849 test $ac_status = 0; }; }
24850 then
24851 gcc_cv_as_ix86_rep_lock_prefix=yes
24852 else
24853 echo "configure: failed program was" >&5
24854 cat conftest.s >&5
24856 rm -f conftest.o conftest.s
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24860 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24861 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24863 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24868 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24869 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24870 $as_echo_n "(cached) " >&6
24871 else
24872 gcc_cv_as_ix86_tlsgdplt=no
24873 if test x$gcc_cv_as != x; then
24874 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24875 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24877 (eval $ac_try) 2>&5
24878 ac_status=$?
24879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24880 test $ac_status = 0; }; }
24881 then
24882 if test x$gcc_cv_ld != x \
24883 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24884 gcc_cv_as_ix86_tlsgdplt=yes
24886 rm -f conftest
24887 else
24888 echo "configure: failed program was" >&5
24889 cat conftest.s >&5
24891 rm -f conftest.o conftest.s
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24895 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24896 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24898 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24903 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24904 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24905 $as_echo_n "(cached) " >&6
24906 else
24907 gcc_cv_as_ix86_tlsldmplt=no
24908 if test x$gcc_cv_as != x; then
24909 $as_echo 'tls_ld:
24910 call tls_ld@tlsldmplt' > conftest.s
24911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24913 (eval $ac_try) 2>&5
24914 ac_status=$?
24915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916 test $ac_status = 0; }; }
24917 then
24918 if test x$gcc_cv_ld != x \
24919 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24920 gcc_cv_as_ix86_tlsldmplt=yes
24922 rm -f conftest
24923 else
24924 echo "configure: failed program was" >&5
24925 cat conftest.s >&5
24927 rm -f conftest.o conftest.s
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24931 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24932 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24934 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24940 ia64*-*-*)
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24942 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24943 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24944 $as_echo_n "(cached) " >&6
24945 else
24946 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24947 if test $in_tree_gas = yes; then
24948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24949 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24951 elif test x$gcc_cv_as != x; then
24952 $as_echo ' .text
24953 addl r15 = @ltoffx(x#), gp
24955 ld8.mov r16 = [r15], x#' > conftest.s
24956 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24958 (eval $ac_try) 2>&5
24959 ac_status=$?
24960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24961 test $ac_status = 0; }; }
24962 then
24963 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24964 else
24965 echo "configure: failed program was" >&5
24966 cat conftest.s >&5
24968 rm -f conftest.o conftest.s
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24972 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24973 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24975 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24981 powerpc*-*-*)
24982 case $target in
24983 *-*-aix*) conftest_s=' .machine "pwr5"
24984 .csect .text[PR]
24985 mfcr 3,128';;
24986 *-*-darwin*)
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24988 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24989 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24990 $as_echo_n "(cached) " >&6
24991 else
24992 gcc_cv_as_machine_directive=no
24993 if test x$gcc_cv_as != x; then
24994 $as_echo ' .machine ppc7400' > conftest.s
24995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24997 (eval $ac_try) 2>&5
24998 ac_status=$?
24999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25000 test $ac_status = 0; }; }
25001 then
25002 gcc_cv_as_machine_directive=yes
25003 else
25004 echo "configure: failed program was" >&5
25005 cat conftest.s >&5
25007 rm -f conftest.o conftest.s
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25011 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25013 if test x$gcc_cv_as_machine_directive != xyes; then
25014 echo "*** This target requires an assembler supporting \".machine\"" >&2
25015 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25016 test x$build = x$target && exit 1
25018 conftest_s=' .text
25019 mfcr r3,128';;
25020 *) conftest_s=' .machine power4
25021 .text
25022 mfcr 3,128';;
25023 esac
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25026 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25027 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25028 $as_echo_n "(cached) " >&6
25029 else
25030 gcc_cv_as_powerpc_mfcrf=no
25031 if test $in_tree_gas = yes; then
25032 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25033 then gcc_cv_as_powerpc_mfcrf=yes
25035 elif test x$gcc_cv_as != x; then
25036 $as_echo "$conftest_s" > conftest.s
25037 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25039 (eval $ac_try) 2>&5
25040 ac_status=$?
25041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25042 test $ac_status = 0; }; }
25043 then
25044 gcc_cv_as_powerpc_mfcrf=yes
25045 else
25046 echo "configure: failed program was" >&5
25047 cat conftest.s >&5
25049 rm -f conftest.o conftest.s
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25053 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25054 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25056 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25060 case $target in
25061 *-*-aix*) conftest_s=' .machine "pwr5"
25062 .csect .text[PR]
25063 popcntb 3,3';;
25064 *) conftest_s=' .machine power5
25065 .text
25066 popcntb 3,3';;
25067 esac
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25070 $as_echo_n "checking assembler for popcntb support... " >&6; }
25071 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25072 $as_echo_n "(cached) " >&6
25073 else
25074 gcc_cv_as_powerpc_popcntb=no
25075 if test $in_tree_gas = yes; then
25076 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25077 then gcc_cv_as_powerpc_popcntb=yes
25079 elif test x$gcc_cv_as != x; then
25080 $as_echo "$conftest_s" > conftest.s
25081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25083 (eval $ac_try) 2>&5
25084 ac_status=$?
25085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25086 test $ac_status = 0; }; }
25087 then
25088 gcc_cv_as_powerpc_popcntb=yes
25089 else
25090 echo "configure: failed program was" >&5
25091 cat conftest.s >&5
25093 rm -f conftest.o conftest.s
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25097 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25098 if test $gcc_cv_as_powerpc_popcntb = yes; then
25100 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25104 case $target in
25105 *-*-aix*) conftest_s=' .machine "pwr5x"
25106 .csect .text[PR]
25107 frin 1,1';;
25108 *) conftest_s=' .machine power5
25109 .text
25110 frin 1,1';;
25111 esac
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25114 $as_echo_n "checking assembler for fp round support... " >&6; }
25115 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25116 $as_echo_n "(cached) " >&6
25117 else
25118 gcc_cv_as_powerpc_fprnd=no
25119 if test $in_tree_gas = yes; then
25120 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25121 then gcc_cv_as_powerpc_fprnd=yes
25123 elif test x$gcc_cv_as != x; then
25124 $as_echo "$conftest_s" > conftest.s
25125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25127 (eval $ac_try) 2>&5
25128 ac_status=$?
25129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25130 test $ac_status = 0; }; }
25131 then
25132 gcc_cv_as_powerpc_fprnd=yes
25133 else
25134 echo "configure: failed program was" >&5
25135 cat conftest.s >&5
25137 rm -f conftest.o conftest.s
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25141 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25142 if test $gcc_cv_as_powerpc_fprnd = yes; then
25144 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25148 case $target in
25149 *-*-aix*) conftest_s=' .machine "pwr6"
25150 .csect .text[PR]
25151 mffgpr 1,3';;
25152 *) conftest_s=' .machine power6
25153 .text
25154 mffgpr 1,3';;
25155 esac
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25158 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25159 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25160 $as_echo_n "(cached) " >&6
25161 else
25162 gcc_cv_as_powerpc_mfpgpr=no
25163 if test $in_tree_gas = yes; then
25164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25165 then gcc_cv_as_powerpc_mfpgpr=yes
25167 elif test x$gcc_cv_as != x; then
25168 $as_echo "$conftest_s" > conftest.s
25169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25171 (eval $ac_try) 2>&5
25172 ac_status=$?
25173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25174 test $ac_status = 0; }; }
25175 then
25176 gcc_cv_as_powerpc_mfpgpr=yes
25177 else
25178 echo "configure: failed program was" >&5
25179 cat conftest.s >&5
25181 rm -f conftest.o conftest.s
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25185 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25186 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25188 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25192 case $target in
25193 *-*-aix*) conftest_s=' .csect .text[PR]
25194 LCF..0:
25195 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25196 *-*-darwin*)
25197 conftest_s=' .text
25198 LCF0:
25199 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25200 *) conftest_s=' .text
25201 .LCF0:
25202 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25203 esac
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25206 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25207 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25208 $as_echo_n "(cached) " >&6
25209 else
25210 gcc_cv_as_powerpc_rel16=no
25211 if test $in_tree_gas = yes; then
25212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25213 then gcc_cv_as_powerpc_rel16=yes
25215 elif test x$gcc_cv_as != x; then
25216 $as_echo "$conftest_s" > conftest.s
25217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25219 (eval $ac_try) 2>&5
25220 ac_status=$?
25221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25222 test $ac_status = 0; }; }
25223 then
25224 gcc_cv_as_powerpc_rel16=yes
25225 else
25226 echo "configure: failed program was" >&5
25227 cat conftest.s >&5
25229 rm -f conftest.o conftest.s
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25233 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25234 if test $gcc_cv_as_powerpc_rel16 = yes; then
25236 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25240 case $target in
25241 *-*-aix*) conftest_s=' .machine "pwr6"
25242 .csect .text[PR]
25243 cmpb 3,4,5';;
25244 *) conftest_s=' .machine power6
25245 .text
25246 cmpb 3,4,5';;
25247 esac
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25250 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25251 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25252 $as_echo_n "(cached) " >&6
25253 else
25254 gcc_cv_as_powerpc_cmpb=no
25255 if test $in_tree_gas = yes; then
25256 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25257 then gcc_cv_as_powerpc_cmpb=yes
25259 elif test x$gcc_cv_as != x; then
25260 $as_echo "$conftest_s" > conftest.s
25261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25263 (eval $ac_try) 2>&5
25264 ac_status=$?
25265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25266 test $ac_status = 0; }; }
25267 then
25268 gcc_cv_as_powerpc_cmpb=yes
25269 else
25270 echo "configure: failed program was" >&5
25271 cat conftest.s >&5
25273 rm -f conftest.o conftest.s
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25277 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25278 if test $gcc_cv_as_powerpc_cmpb = yes; then
25280 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25284 case $target in
25285 *-*-aix*) conftest_s=' .machine "pwr6"
25286 .csect .text[PR]
25287 dadd 1,2,3';;
25288 *) conftest_s=' .machine power6
25289 .text
25290 dadd 1,2,3';;
25291 esac
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25294 $as_echo_n "checking assembler for decimal float support... " >&6; }
25295 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25296 $as_echo_n "(cached) " >&6
25297 else
25298 gcc_cv_as_powerpc_dfp=no
25299 if test $in_tree_gas = yes; then
25300 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25301 then gcc_cv_as_powerpc_dfp=yes
25303 elif test x$gcc_cv_as != x; then
25304 $as_echo "$conftest_s" > conftest.s
25305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25307 (eval $ac_try) 2>&5
25308 ac_status=$?
25309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25310 test $ac_status = 0; }; }
25311 then
25312 gcc_cv_as_powerpc_dfp=yes
25313 else
25314 echo "configure: failed program was" >&5
25315 cat conftest.s >&5
25317 rm -f conftest.o conftest.s
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25321 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25322 if test $gcc_cv_as_powerpc_dfp = yes; then
25324 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25328 case $target in
25329 *-*-aix*) conftest_s=' .machine "pwr7"
25330 .csect .text[PR]
25331 lxvd2x 1,2,3';;
25332 *) conftest_s=' .machine power7
25333 .text
25334 lxvd2x 1,2,3';;
25335 esac
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25338 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25339 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25340 $as_echo_n "(cached) " >&6
25341 else
25342 gcc_cv_as_powerpc_vsx=no
25343 if test $in_tree_gas = yes; then
25344 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25345 then gcc_cv_as_powerpc_vsx=yes
25347 elif test x$gcc_cv_as != x; then
25348 $as_echo "$conftest_s" > conftest.s
25349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25351 (eval $ac_try) 2>&5
25352 ac_status=$?
25353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25354 test $ac_status = 0; }; }
25355 then
25356 gcc_cv_as_powerpc_vsx=yes
25357 else
25358 echo "configure: failed program was" >&5
25359 cat conftest.s >&5
25361 rm -f conftest.o conftest.s
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25365 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25366 if test $gcc_cv_as_powerpc_vsx = yes; then
25368 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25372 case $target in
25373 *-*-aix*) conftest_s=' .machine "pwr7"
25374 .csect .text[PR]
25375 popcntd 3,3';;
25376 *) conftest_s=' .machine power7
25377 .text
25378 popcntd 3,3';;
25379 esac
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25382 $as_echo_n "checking assembler for popcntd support... " >&6; }
25383 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25384 $as_echo_n "(cached) " >&6
25385 else
25386 gcc_cv_as_powerpc_popcntd=no
25387 if test $in_tree_gas = yes; then
25388 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25389 then gcc_cv_as_powerpc_popcntd=yes
25391 elif test x$gcc_cv_as != x; then
25392 $as_echo "$conftest_s" > conftest.s
25393 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25395 (eval $ac_try) 2>&5
25396 ac_status=$?
25397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25398 test $ac_status = 0; }; }
25399 then
25400 gcc_cv_as_powerpc_popcntd=yes
25401 else
25402 echo "configure: failed program was" >&5
25403 cat conftest.s >&5
25405 rm -f conftest.o conftest.s
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25409 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25410 if test $gcc_cv_as_powerpc_popcntd = yes; then
25412 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25416 case $target in
25417 *-*-aix*) conftest_s=' .machine "pwr8"
25418 .csect .text[PR]';;
25419 *) conftest_s=' .machine power8
25420 .text';;
25421 esac
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25424 $as_echo_n "checking assembler for power8 support... " >&6; }
25425 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25426 $as_echo_n "(cached) " >&6
25427 else
25428 gcc_cv_as_powerpc_power8=no
25429 if test $in_tree_gas = yes; then
25430 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25431 then gcc_cv_as_powerpc_power8=yes
25433 elif test x$gcc_cv_as != x; then
25434 $as_echo "$conftest_s" > conftest.s
25435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25440 test $ac_status = 0; }; }
25441 then
25442 gcc_cv_as_powerpc_power8=yes
25443 else
25444 echo "configure: failed program was" >&5
25445 cat conftest.s >&5
25447 rm -f conftest.o conftest.s
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25451 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25452 if test $gcc_cv_as_powerpc_power8 = yes; then
25454 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25458 case $target in
25459 *-*-aix*) conftest_s=' .csect .text[PR]
25460 lwsync';;
25461 *) conftest_s=' .text
25462 lwsync';;
25463 esac
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25466 $as_echo_n "checking assembler for lwsync support... " >&6; }
25467 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25468 $as_echo_n "(cached) " >&6
25469 else
25470 gcc_cv_as_powerpc_lwsync=no
25471 if test $in_tree_gas = yes; then
25472 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25473 then gcc_cv_as_powerpc_lwsync=yes
25475 elif test x$gcc_cv_as != x; then
25476 $as_echo "$conftest_s" > conftest.s
25477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25479 (eval $ac_try) 2>&5
25480 ac_status=$?
25481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25482 test $ac_status = 0; }; }
25483 then
25484 gcc_cv_as_powerpc_lwsync=yes
25485 else
25486 echo "configure: failed program was" >&5
25487 cat conftest.s >&5
25489 rm -f conftest.o conftest.s
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25493 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25494 if test $gcc_cv_as_powerpc_lwsync = yes; then
25496 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25500 case $target in
25501 *-*-aix*) conftest_s=' .machine "476"
25502 .csect .text[PR]
25503 dci 0';;
25504 *) conftest_s=' .machine "476"
25505 .text
25506 dci 0';;
25507 esac
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25510 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25511 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25512 $as_echo_n "(cached) " >&6
25513 else
25514 gcc_cv_as_powerpc_dci=no
25515 if test $in_tree_gas = yes; then
25516 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25517 then gcc_cv_as_powerpc_dci=yes
25519 elif test x$gcc_cv_as != x; then
25520 $as_echo "$conftest_s" > conftest.s
25521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25523 (eval $ac_try) 2>&5
25524 ac_status=$?
25525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25526 test $ac_status = 0; }; }
25527 then
25528 gcc_cv_as_powerpc_dci=yes
25529 else
25530 echo "configure: failed program was" >&5
25531 cat conftest.s >&5
25533 rm -f conftest.o conftest.s
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25537 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25538 if test $gcc_cv_as_powerpc_dci = yes; then
25540 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25545 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25546 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25547 $as_echo_n "(cached) " >&6
25548 else
25549 gcc_cv_as_powerpc_gnu_attribute=no
25550 if test $in_tree_gas = yes; then
25551 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25552 then gcc_cv_as_powerpc_gnu_attribute=yes
25554 elif test x$gcc_cv_as != x; then
25555 $as_echo '.gnu_attribute 4,1' > conftest.s
25556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25558 (eval $ac_try) 2>&5
25559 ac_status=$?
25560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25561 test $ac_status = 0; }; }
25562 then
25563 gcc_cv_as_powerpc_gnu_attribute=yes
25564 else
25565 echo "configure: failed program was" >&5
25566 cat conftest.s >&5
25568 rm -f conftest.o conftest.s
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25572 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25573 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25575 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25580 $as_echo_n "checking assembler for tls marker support... " >&6; }
25581 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25582 $as_echo_n "(cached) " >&6
25583 else
25584 gcc_cv_as_powerpc_tls_markers=no
25585 if test $in_tree_gas = yes; then
25586 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25587 then gcc_cv_as_powerpc_tls_markers=yes
25589 elif test x$gcc_cv_as != x; then
25590 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25591 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25593 (eval $ac_try) 2>&5
25594 ac_status=$?
25595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25596 test $ac_status = 0; }; }
25597 then
25598 gcc_cv_as_powerpc_tls_markers=yes
25599 else
25600 echo "configure: failed program was" >&5
25601 cat conftest.s >&5
25603 rm -f conftest.o conftest.s
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25607 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25608 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25610 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25614 case $target in
25615 *-*-aix*)
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25617 $as_echo_n "checking assembler for .ref support... " >&6; }
25618 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25619 $as_echo_n "(cached) " >&6
25620 else
25621 gcc_cv_as_aix_ref=no
25622 if test $in_tree_gas = yes; then
25623 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25624 then gcc_cv_as_aix_ref=yes
25626 elif test x$gcc_cv_as != x; then
25627 $as_echo ' .csect stuff[rw]
25628 stuff:
25629 .long 1
25630 .extern sym
25631 .ref sym
25632 ' > conftest.s
25633 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25635 (eval $ac_try) 2>&5
25636 ac_status=$?
25637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25638 test $ac_status = 0; }; }
25639 then
25640 gcc_cv_as_aix_ref=yes
25641 else
25642 echo "configure: failed program was" >&5
25643 cat conftest.s >&5
25645 rm -f conftest.o conftest.s
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25649 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25650 if test $gcc_cv_as_aix_ref = yes; then
25652 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25656 esac
25659 mips*-*-*)
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25661 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25662 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25663 $as_echo_n "(cached) " >&6
25664 else
25665 gcc_cv_as_mips_explicit_relocs=no
25666 if test $in_tree_gas = yes; then
25667 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25668 then gcc_cv_as_mips_explicit_relocs=yes
25670 elif test x$gcc_cv_as != x; then
25671 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25674 (eval $ac_try) 2>&5
25675 ac_status=$?
25676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25677 test $ac_status = 0; }; }
25678 then
25679 gcc_cv_as_mips_explicit_relocs=yes
25680 else
25681 echo "configure: failed program was" >&5
25682 cat conftest.s >&5
25684 rm -f conftest.o conftest.s
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25688 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25689 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25690 if test x$target_cpu_default = x
25691 then target_cpu_default=MASK_EXPLICIT_RELOCS
25692 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25696 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25697 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25698 $as_echo_n "(cached) " >&6
25699 else
25700 gcc_cv_as_mips_no_shared=no
25701 if test $in_tree_gas = yes; then
25702 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25703 then gcc_cv_as_mips_no_shared=yes
25705 elif test x$gcc_cv_as != x; then
25706 $as_echo 'nop' > conftest.s
25707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25709 (eval $ac_try) 2>&5
25710 ac_status=$?
25711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25712 test $ac_status = 0; }; }
25713 then
25714 gcc_cv_as_mips_no_shared=yes
25715 else
25716 echo "configure: failed program was" >&5
25717 cat conftest.s >&5
25719 rm -f conftest.o conftest.s
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25723 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25724 if test $gcc_cv_as_mips_no_shared = yes; then
25726 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25731 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25732 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25733 $as_echo_n "(cached) " >&6
25734 else
25735 gcc_cv_as_mips_gnu_attribute=no
25736 if test $in_tree_gas = yes; then
25737 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25738 then gcc_cv_as_mips_gnu_attribute=yes
25740 elif test x$gcc_cv_as != x; then
25741 $as_echo '.gnu_attribute 4,1' > conftest.s
25742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25744 (eval $ac_try) 2>&5
25745 ac_status=$?
25746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25747 test $ac_status = 0; }; }
25748 then
25749 gcc_cv_as_mips_gnu_attribute=yes
25750 else
25751 echo "configure: failed program was" >&5
25752 cat conftest.s >&5
25754 rm -f conftest.o conftest.s
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25758 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25759 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25761 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25766 $as_echo_n "checking assembler for .micromips support... " >&6; }
25767 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25768 $as_echo_n "(cached) " >&6
25769 else
25770 gcc_cv_as_micromips_support=no
25771 if test x$gcc_cv_as != x; then
25772 $as_echo '.set micromips' > conftest.s
25773 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25775 (eval $ac_try) 2>&5
25776 ac_status=$?
25777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25778 test $ac_status = 0; }; }
25779 then
25780 gcc_cv_as_micromips_support=yes
25781 else
25782 echo "configure: failed program was" >&5
25783 cat conftest.s >&5
25785 rm -f conftest.o conftest.s
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25789 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25790 if test $gcc_cv_as_micromips_support = yes; then
25792 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25797 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25798 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25799 $as_echo_n "(cached) " >&6
25800 else
25801 gcc_cv_as_mips_dtprelword=no
25802 if test $in_tree_gas = yes; then
25803 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25804 then gcc_cv_as_mips_dtprelword=yes
25806 elif test x$gcc_cv_as != x; then
25807 $as_echo '.section .tdata,"awT",@progbits
25809 .word 2
25810 .text
25811 .dtprelword x+0x8000' > conftest.s
25812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25814 (eval $ac_try) 2>&5
25815 ac_status=$?
25816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25817 test $ac_status = 0; }; }
25818 then
25819 gcc_cv_as_mips_dtprelword=yes
25820 else
25821 echo "configure: failed program was" >&5
25822 cat conftest.s >&5
25824 rm -f conftest.o conftest.s
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25828 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25829 if test $gcc_cv_as_mips_dtprelword = yes; then
25831 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25836 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25837 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25838 $as_echo_n "(cached) " >&6
25839 else
25840 gcc_cv_as_mips_dspr1_mult=no
25841 if test x$gcc_cv_as != x; then
25842 $as_echo ' .set mips32r2
25843 .set nodspr2
25844 .set dsp
25845 madd $ac3,$4,$5
25846 maddu $ac3,$4,$5
25847 msub $ac3,$4,$5
25848 msubu $ac3,$4,$5
25849 mult $ac3,$4,$5
25850 multu $ac3,$4,$5' > conftest.s
25851 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25853 (eval $ac_try) 2>&5
25854 ac_status=$?
25855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25856 test $ac_status = 0; }; }
25857 then
25858 gcc_cv_as_mips_dspr1_mult=yes
25859 else
25860 echo "configure: failed program was" >&5
25861 cat conftest.s >&5
25863 rm -f conftest.o conftest.s
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25867 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25868 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25870 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25875 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25876 gcc_cv_as_ld_jalr_reloc=no
25877 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25878 if test $in_tree_ld = yes ; then
25879 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 \
25880 && test $in_tree_ld_is_elf = yes; then
25881 gcc_cv_as_ld_jalr_reloc=yes
25883 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25884 echo ' .ent x' > conftest.s
25885 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25886 echo ' ld $25,%call16(y)($28)' >> conftest.s
25887 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25888 echo '1: jalr $25' >> conftest.s
25889 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25890 echo '1: jalr $25' >> conftest.s
25891 echo ' .end x' >> conftest.s
25892 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25893 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25894 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25895 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25896 gcc_cv_as_ld_jalr_reloc=yes
25899 rm -f conftest.*
25902 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25903 if test x$target_cpu_default = x; then
25904 target_cpu_default=MASK_RELAX_PIC_CALLS
25905 else
25906 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25910 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25913 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25914 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25915 $as_echo_n "(cached) " >&6
25916 else
25917 gcc_cv_ld_mips_personality_relaxation=no
25918 if test $in_tree_ld = yes ; then
25919 if test "$gcc_cv_gld_major_version" -eq 2 \
25920 -a "$gcc_cv_gld_minor_version" -ge 21 \
25921 -o "$gcc_cv_gld_major_version" -gt 2; then
25922 gcc_cv_ld_mips_personality_relaxation=yes
25924 elif test x$gcc_cv_as != x \
25925 -a x$gcc_cv_ld != x \
25926 -a x$gcc_cv_readelf != x ; then
25927 cat > conftest.s <<EOF
25928 .cfi_startproc
25929 .cfi_personality 0x80,indirect_ptr
25930 .ent test
25931 test:
25933 .end test
25934 .cfi_endproc
25936 .section .data,"aw",@progbits
25937 indirect_ptr:
25938 .dc.a personality
25940 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25941 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25942 if $gcc_cv_readelf -d conftest 2>&1 \
25943 | grep TEXTREL > /dev/null 2>&1; then
25945 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25946 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25948 else
25949 gcc_cv_ld_mips_personality_relaxation=yes
25953 rm -f conftest.s conftest.o conftest
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25956 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25957 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25959 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25963 esac
25965 # Mips and HP-UX need the GNU assembler.
25966 # Linux on IA64 might be able to use the Intel assembler.
25968 case "$target" in
25969 mips*-*-* | *-*-hpux* )
25970 if test x$gas_flag = xyes \
25971 || test x"$host" != x"$build" \
25972 || test ! -x "$gcc_cv_as" \
25973 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25975 else
25976 echo "*** This configuration requires the GNU assembler" >&2
25977 exit 1
25980 esac
25982 # ??? Not all targets support dwarf2 debug_line, even within a version
25983 # of gas. Moreover, we need to emit a valid instruction to trigger any
25984 # info to the output file. So, as supported targets are added to gas 2.11,
25985 # add some instruction here to (also) show we expect this might work.
25986 # ??? Once 2.11 is released, probably need to add first known working
25987 # version to the per-target configury.
25988 case "$cpu_type" in
25989 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25990 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25991 insn="nop"
25993 ia64 | s390)
25994 insn="nop 0"
25996 mmix)
25997 insn="swym 0"
25999 esac
26000 if test x"$insn" != x; then
26001 conftest_s="\
26002 .file 1 \"conftest.s\"
26003 .loc 1 3 0
26004 $insn"
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26006 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26007 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26008 $as_echo_n "(cached) " >&6
26009 else
26010 gcc_cv_as_dwarf2_debug_line=no
26011 if test $in_tree_gas = yes; then
26012 if test $in_tree_gas_is_elf = yes \
26013 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26014 then gcc_cv_as_dwarf2_debug_line=yes
26016 elif test x$gcc_cv_as != x; then
26017 $as_echo "$conftest_s" > conftest.s
26018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26020 (eval $ac_try) 2>&5
26021 ac_status=$?
26022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26023 test $ac_status = 0; }; }
26024 then
26025 if test x$gcc_cv_objdump != x \
26026 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26027 | grep debug_line > /dev/null 2>&1; then
26028 gcc_cv_as_dwarf2_debug_line=yes
26030 else
26031 echo "configure: failed program was" >&5
26032 cat conftest.s >&5
26034 rm -f conftest.o conftest.s
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26038 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26041 # The .debug_line file table must be in the exact order that
26042 # we specified the files, since these indices are also used
26043 # by DW_AT_decl_file. Approximate this test by testing if
26044 # the assembler bitches if the same index is assigned twice.
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26046 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26047 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26048 $as_echo_n "(cached) " >&6
26049 else
26050 gcc_cv_as_dwarf2_file_buggy=no
26051 if test x$gcc_cv_as != x; then
26052 $as_echo ' .file 1 "foo.s"
26053 .file 1 "bar.s"' > conftest.s
26054 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26056 (eval $ac_try) 2>&5
26057 ac_status=$?
26058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26059 test $ac_status = 0; }; }
26060 then
26061 gcc_cv_as_dwarf2_file_buggy=yes
26062 else
26063 echo "configure: failed program was" >&5
26064 cat conftest.s >&5
26066 rm -f conftest.o conftest.s
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26070 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26073 if test $gcc_cv_as_dwarf2_debug_line = yes \
26074 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26076 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26081 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26082 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26083 $as_echo_n "(cached) " >&6
26084 else
26085 gcc_cv_as_gdwarf2_flag=no
26086 if test $in_tree_gas = yes; then
26087 if test $in_tree_gas_is_elf = yes \
26088 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26089 then gcc_cv_as_gdwarf2_flag=yes
26091 elif test x$gcc_cv_as != x; then
26092 $as_echo "$insn" > conftest.s
26093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26095 (eval $ac_try) 2>&5
26096 ac_status=$?
26097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26098 test $ac_status = 0; }; }
26099 then
26100 gcc_cv_as_gdwarf2_flag=yes
26101 else
26102 echo "configure: failed program was" >&5
26103 cat conftest.s >&5
26105 rm -f conftest.o conftest.s
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26109 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26110 if test $gcc_cv_as_gdwarf2_flag = yes; then
26112 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26117 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26118 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26119 $as_echo_n "(cached) " >&6
26120 else
26121 gcc_cv_as_gstabs_flag=no
26122 if test $in_tree_gas = yes; then
26123 if test $in_tree_gas_is_elf = yes \
26124 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26125 then gcc_cv_as_gstabs_flag=yes
26127 elif test x$gcc_cv_as != x; then
26128 $as_echo "$insn" > conftest.s
26129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26131 (eval $ac_try) 2>&5
26132 ac_status=$?
26133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26134 test $ac_status = 0; }; }
26135 then
26136 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26137 # and warns about it, but still exits successfully. So check for
26138 # this.
26139 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26141 (eval $ac_try) 2>&5
26142 ac_status=$?
26143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26144 test $ac_status = 0; }; }
26145 then :
26146 else gcc_cv_as_gstabs_flag=yes
26148 else
26149 echo "configure: failed program was" >&5
26150 cat conftest.s >&5
26152 rm -f conftest.o conftest.s
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26156 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26157 if test $gcc_cv_as_gstabs_flag = yes; then
26159 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26164 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26165 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26166 $as_echo_n "(cached) " >&6
26167 else
26168 gcc_cv_as_debug_prefix_map_flag=no
26169 if test $in_tree_gas = yes; then
26170 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26171 then gcc_cv_as_debug_prefix_map_flag=yes
26173 elif test x$gcc_cv_as != x; then
26174 $as_echo "$insn" > conftest.s
26175 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26177 (eval $ac_try) 2>&5
26178 ac_status=$?
26179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26180 test $ac_status = 0; }; }
26181 then
26182 gcc_cv_as_debug_prefix_map_flag=yes
26183 else
26184 echo "configure: failed program was" >&5
26185 cat conftest.s >&5
26187 rm -f conftest.o conftest.s
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26191 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26192 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26194 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26200 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26201 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26202 $as_echo_n "(cached) " >&6
26203 else
26204 gcc_cv_as_lcomm_with_alignment=no
26205 if test x$gcc_cv_as != x; then
26206 $as_echo '.lcomm bar,4,16' > conftest.s
26207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26209 (eval $ac_try) 2>&5
26210 ac_status=$?
26211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26212 test $ac_status = 0; }; }
26213 then
26214 gcc_cv_as_lcomm_with_alignment=yes
26215 else
26216 echo "configure: failed program was" >&5
26217 cat conftest.s >&5
26219 rm -f conftest.o conftest.s
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26223 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26224 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26226 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26230 # Check whether --enable-gnu-unique-object was given.
26231 if test "${enable_gnu_unique_object+set}" = set; then :
26232 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26233 yes | no) ;;
26234 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26235 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26236 esac
26237 else
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26239 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26240 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26241 $as_echo_n "(cached) " >&6
26242 else
26243 gcc_cv_as_gnu_unique_object=no
26244 if test $in_tree_gas = yes; then
26245 if test $in_tree_gas_is_elf = yes \
26246 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26247 then gcc_cv_as_gnu_unique_object=yes
26249 elif test x$gcc_cv_as != x; then
26250 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26253 (eval $ac_try) 2>&5
26254 ac_status=$?
26255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26256 test $ac_status = 0; }; }
26257 then
26258 gcc_cv_as_gnu_unique_object=yes
26259 else
26260 echo "configure: failed program was" >&5
26261 cat conftest.s >&5
26263 rm -f conftest.o conftest.s
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26267 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26268 if test $gcc_cv_as_gnu_unique_object = yes; then
26269 # We need to unquote above to to use the definition from config.gcc.
26270 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26271 if test x$host = x$build -a x$host = x$target &&
26272 ldd --version 2>/dev/null &&
26273 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26274 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26275 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26276 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26277 if test "$glibcnum" -ge 2011 ; then
26278 enable_gnu_unique_object=yes
26284 if test x$enable_gnu_unique_object = xyes; then
26286 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26291 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26292 if test "${gcc_cv_as_line_zero+set}" = set; then :
26293 $as_echo_n "(cached) " >&6
26294 else
26295 gcc_cv_as_line_zero=no
26296 if test $in_tree_gas = yes; then
26297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26298 then gcc_cv_as_line_zero=yes
26300 elif test "x$gcc_cv_as" != x; then
26301 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26302 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26304 (eval $ac_try) 2>&5
26305 ac_status=$?
26306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26307 test $ac_status = 0; }; } &&
26308 test "x`cat conftest.out`" = x
26309 then
26310 gcc_cv_as_line_zero=yes
26311 else
26312 echo "configure: failed program was" >&5
26313 cat conftest.s >&5
26314 echo "configure: error output was" >&5
26315 cat conftest.out >&5
26317 rm -f conftest.o conftest.s conftest.out
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26321 $as_echo "$gcc_cv_as_line_zero" >&6; }
26322 if test "x$gcc_cv_as_line_zero" = xyes; then
26324 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26329 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26330 gcc_cv_ld_eh_frame_hdr=no
26331 if test $in_tree_ld = yes ; then
26332 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 \
26333 && test $in_tree_ld_is_elf = yes; then
26334 gcc_cv_ld_eh_frame_hdr=yes
26336 elif test x$gcc_cv_ld != x; then
26337 if echo "$ld_ver" | grep GNU > /dev/null; then
26338 # Check if linker supports --eh-frame-hdr option
26339 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26340 gcc_cv_ld_eh_frame_hdr=yes
26342 else
26343 case "$target" in
26344 *-*-solaris2*)
26345 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26346 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26347 gcc_cv_ld_eh_frame_hdr=yes
26350 esac
26354 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26356 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26360 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26363 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26364 gcc_cv_ld_eh_frame_ciev3=no
26365 if test $in_tree_ld = yes ; then
26366 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 \
26367 && test $in_tree_ld_is_elf = yes; then
26368 gcc_cv_ld_eh_frame_ciev3=yes
26370 elif test x$gcc_cv_ld != x; then
26371 if echo "$ld_ver" | grep GNU > /dev/null; then
26372 gcc_cv_ld_eh_frame_ciev3=yes
26373 if test 0"$ld_date" -lt 20040513; then
26374 if test -n "$ld_date"; then
26375 # If there was date string, but was earlier than 2004-05-13, fail
26376 gcc_cv_ld_eh_frame_ciev3=no
26377 elif test "$ld_vers_major" -lt 2; then
26378 gcc_cv_ld_eh_frame_ciev3=no
26379 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26380 gcc_cv_ld_eh_frame_ciev3=no
26383 else
26384 case "$target" in
26385 *-*-solaris2*)
26386 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26387 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26388 gcc_cv_ld_eh_frame_ciev3=yes
26391 esac
26395 cat >>confdefs.h <<_ACEOF
26396 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26397 _ACEOF
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26400 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26403 $as_echo_n "checking linker position independent executable support... " >&6; }
26404 gcc_cv_ld_pie=no
26405 if test $in_tree_ld = yes ; then
26406 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 \
26407 && test $in_tree_ld_is_elf = yes; then
26408 gcc_cv_ld_pie=yes
26410 elif test x$gcc_cv_ld != x; then
26411 # Check if linker supports -pie option
26412 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26413 gcc_cv_ld_pie=yes
26416 if test x"$gcc_cv_ld_pie" = xyes; then
26418 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26422 $as_echo "$gcc_cv_ld_pie" >&6; }
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26425 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26426 gcc_cv_ld_eh_gc_sections=no
26427 if test $in_tree_ld = yes ; then
26428 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 \
26429 && test $in_tree_ld_is_elf = yes; then
26430 gcc_cv_ld_eh_gc_sections=yes
26432 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26433 cat > conftest.s <<EOF
26434 .section .text
26435 .globl _start
26436 .type _start, @function
26437 _start:
26438 .long foo
26439 .size _start, .-_start
26440 .section .text.foo,"ax",@progbits
26441 .type foo, @function
26442 foo:
26443 .long 0
26444 .size foo, .-foo
26445 .section .gcc_except_table.foo,"a",@progbits
26446 .L0:
26447 .long 0
26448 .section .eh_frame,"a",@progbits
26449 .long .L0
26451 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26452 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26453 | grep "gc-sections option ignored" > /dev/null; then
26454 gcc_cv_ld_eh_gc_sections=no
26455 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26456 | grep gcc_except_table > /dev/null; then
26457 gcc_cv_ld_eh_gc_sections=yes
26458 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26459 if test x$gcc_cv_as_comdat_group != xyes; then
26460 gcc_cv_ld_eh_gc_sections=no
26461 cat > conftest.s <<EOF
26462 .section .text
26463 .globl _start
26464 .type _start, @function
26465 _start:
26466 .long foo
26467 .size _start, .-_start
26468 .section .gnu.linkonce.t.foo,"ax",@progbits
26469 .type foo, @function
26470 foo:
26471 .long 0
26472 .size foo, .-foo
26473 .section .gcc_except_table.foo,"a",@progbits
26474 .L0:
26475 .long 0
26476 .section .eh_frame,"a",@progbits
26477 .long .L0
26479 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26480 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26481 | grep "gc-sections option ignored" > /dev/null; then
26482 gcc_cv_ld_eh_gc_sections=no
26483 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26484 | grep gcc_except_table > /dev/null; then
26485 gcc_cv_ld_eh_gc_sections=yes
26491 rm -f conftest.s conftest.o conftest
26493 case "$target" in
26494 hppa*-*-linux*)
26495 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26496 gcc_cv_ld_eh_gc_sections=no
26498 esac
26499 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26501 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26505 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26508 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26509 gcc_cv_ld_eh_gc_sections_bug=no
26510 if test $in_tree_ld = yes ; then
26511 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 \
26512 && test $in_tree_ld_is_elf = yes; then
26513 gcc_cv_ld_eh_gc_sections_bug=yes
26515 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
26516 gcc_cv_ld_eh_gc_sections_bug=yes
26517 cat > conftest.s <<EOF
26518 .section .text
26519 .globl _start
26520 .type _start, @function
26521 _start:
26522 .long foo
26523 .size _start, .-_start
26524 .section .text.startup.foo,"ax",@progbits
26525 .type foo, @function
26526 foo:
26527 .long 0
26528 .size foo, .-foo
26529 .section .gcc_except_table.foo,"a",@progbits
26530 .L0:
26531 .long 0
26532 .section .eh_frame,"a",@progbits
26533 .long .L0
26535 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26536 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26537 | grep "gc-sections option ignored" > /dev/null; then
26539 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26540 | grep gcc_except_table > /dev/null; then
26541 gcc_cv_ld_eh_gc_sections_bug=no
26544 rm -f conftest.s conftest.o conftest
26546 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26548 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26552 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26554 # --------
26555 # UNSORTED
26556 # --------
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26559 $as_echo_n "checking linker --as-needed support... " >&6; }
26560 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26561 $as_echo_n "(cached) " >&6
26562 else
26563 gcc_cv_ld_as_needed=no
26564 gcc_cv_ld_as_needed_option='--as-needed'
26565 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26566 if test $in_tree_ld = yes ; then
26567 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 \
26568 && test $in_tree_ld_is_elf = yes; then
26569 gcc_cv_ld_as_needed=yes
26571 elif test x$gcc_cv_ld != x; then
26572 # Check if linker supports --as-needed and --no-as-needed options
26573 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26574 gcc_cv_ld_as_needed=yes
26575 else
26576 case "$target" in
26577 # Solaris 2 ld always supports -z ignore/-z record.
26578 *-*-solaris2*)
26579 gcc_cv_ld_as_needed=yes
26580 gcc_cv_ld_as_needed_option="-z ignore"
26581 gcc_cv_ld_no_as_needed_option="-z record"
26583 esac
26586 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26587 # dl_iterate_phdr, i.e. since Solaris 11.
26588 case "$target" in
26589 *-*-solaris2.1[1-9]*)
26590 case "$target" in
26591 i?86-*-* | x86_64-*-*)
26592 if echo "$ld_ver" | grep GNU > /dev/null; then
26593 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26594 gcc_cv_ld_as_needed=no
26597 esac
26599 *-*-solaris2*)
26600 gcc_cv_ld_as_needed=no
26602 esac
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26606 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26607 if test x"$gcc_cv_ld_as_needed" = xyes; then
26609 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26612 cat >>confdefs.h <<_ACEOF
26613 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26614 _ACEOF
26617 cat >>confdefs.h <<_ACEOF
26618 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26619 _ACEOF
26623 case "$target:$tm_file" in
26624 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26625 case "$target" in
26626 *le-*-linux*)
26627 emul_name="-melf64lppc"
26629 *-*-linux*)
26630 emul_name="-melf64ppc"
26632 *-*-freebsd*)
26633 emul_name="-melf64ppc_fbsd"
26635 esac
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26637 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26638 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26639 $as_echo_n "(cached) " >&6
26640 else
26641 gcc_cv_ld_no_dot_syms=no
26642 if test x"$ld_is_gold" = xyes; then
26643 gcc_cv_ld_no_dot_syms=yes
26644 elif test $in_tree_ld = yes ; then
26645 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
26646 gcc_cv_ld_no_dot_syms=yes
26648 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26649 cat > conftest1.s <<EOF
26650 .text
26651 bl .foo
26653 cat > conftest2.s <<EOF
26654 .section ".opd","aw"
26655 .align 3
26656 .globl foo
26657 .type foo,@function
26658 foo:
26659 .quad .LEfoo,.TOC.@tocbase,0
26660 .text
26661 .LEfoo:
26663 .size foo,.-.LEfoo
26665 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26666 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26667 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26668 gcc_cv_ld_no_dot_syms=yes
26670 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26675 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26676 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26678 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26683 $as_echo_n "checking linker large toc support... " >&6; }
26684 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26685 $as_echo_n "(cached) " >&6
26686 else
26687 gcc_cv_ld_large_toc=no
26688 if test x"$ld_is_gold" = xyes; then
26689 gcc_cv_ld_large_toc=yes
26690 elif test $in_tree_ld = yes ; then
26691 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
26692 gcc_cv_ld_large_toc=yes
26694 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26695 cat > conftest.s <<EOF
26696 .section ".tbss","awT",@nobits
26697 .align 3
26698 ie0: .space 8
26699 .global _start
26700 .text
26701 _start:
26702 addis 9,13,ie0@got@tprel@ha
26703 ld 9,ie0@got@tprel@l(9)
26705 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26706 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26707 gcc_cv_ld_large_toc=yes
26709 rm -f conftest conftest.o conftest.s
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26714 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26715 if test x"$gcc_cv_ld_large_toc" = xyes; then
26717 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26721 esac
26723 case "$target" in
26724 *-*-aix*)
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26726 $as_echo_n "checking linker large toc support... " >&6; }
26727 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26728 $as_echo_n "(cached) " >&6
26729 else
26730 gcc_cv_ld_large_toc=no
26731 if test x$gcc_cv_as != x ; then
26732 cat > conftest.s <<EOF
26733 .toc
26734 LC..1:
26735 .tc a[TC],a[RW]
26736 .extern a[RW]
26737 .csect .text[PR]
26738 .largetoctest:
26739 addis 9,LC..1@u(2)
26740 ld 3,LC..1@l(9)
26742 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26743 gcc_cv_ld_large_toc=yes
26745 rm -f conftest conftest.o conftest.s
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26750 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26751 if test x"$gcc_cv_ld_large_toc" = xyes; then
26753 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26757 esac
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26760 $as_echo_n "checking linker --build-id support... " >&6; }
26761 if test "${gcc_cv_ld_buildid+set}" = set; then :
26762 $as_echo_n "(cached) " >&6
26763 else
26764 gcc_cv_ld_buildid=no
26765 if test $in_tree_ld = yes ; then
26766 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26767 "$gcc_cv_gld_minor_version" -ge 18 -o \
26768 "$gcc_cv_gld_major_version" -gt 2 \
26769 && test $in_tree_ld_is_elf = yes; then
26770 gcc_cv_ld_buildid=yes
26772 elif test x$gcc_cv_ld != x; then
26773 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26774 gcc_cv_ld_buildid=yes
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26779 $as_echo "$gcc_cv_ld_buildid" >&6; }
26780 if test x"$gcc_cv_ld_buildid" = xyes; then
26782 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26786 # Check whether --enable-linker-build-id was given.
26787 if test "${enable_linker_build_id+set}" = set; then :
26788 enableval=$enable_linker_build_id;
26789 else
26790 enable_linker_build_id=no
26794 if test x"$enable_linker_build_id" = xyes; then
26795 if test x"$gcc_cv_ld_buildid" = xyes; then
26797 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26799 else
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26801 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26805 # In binutils 2.21, GNU ld gained support for new emulations fully
26806 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26808 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26809 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26810 $as_echo_n "(cached) " >&6
26811 else
26812 gcc_cv_ld_sol2_emulation=no
26813 if test $in_tree_ld = yes ; then
26814 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26815 "$gcc_cv_gld_minor_version" -ge 21 -o \
26816 "$gcc_cv_gld_major_version" -gt 2 \
26817 && test $in_tree_ld_is_elf = yes; then
26818 gcc_cv_ld_sol2_emulation=yes
26820 elif test x$gcc_cv_ld != x; then
26821 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26822 grep _sol2 > /dev/null; then
26823 gcc_cv_ld_sol2_emulation=yes
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26828 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26829 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26831 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26836 $as_echo_n "checking linker --sysroot support... " >&6; }
26837 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26838 $as_echo_n "(cached) " >&6
26839 else
26840 gcc_cv_ld_sysroot=no
26841 if test $in_tree_ld = yes ; then
26842 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
26843 gcc_cv_ld_sysroot=yes
26845 elif test x$gcc_cv_ld != x; then
26846 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26847 gcc_cv_ld_sysroot=yes
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26852 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26853 if test x"$gcc_cv_ld_sysroot" = xyes; then
26855 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26859 if test x$with_sysroot = x && test x$host = x$target \
26860 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26861 && test "$prefix" != "NONE"; then
26863 cat >>confdefs.h <<_ACEOF
26864 #define PREFIX_INCLUDE_DIR "$prefix/include"
26865 _ACEOF
26869 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26870 if test "x$with_headers" != x; then
26871 target_header_dir=$with_headers
26872 elif test "x$with_sysroot" = x; then
26873 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26874 elif test "x$with_build_sysroot" != "x"; then
26875 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26876 elif test "x$with_sysroot" = xyes; then
26877 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26878 else
26879 target_header_dir="${with_sysroot}${native_system_header_dir}"
26881 else
26882 target_header_dir=${native_system_header_dir}
26885 # Test for stack protector support in target C library.
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26887 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26888 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26889 $as_echo_n "(cached) " >&6
26890 else
26891 gcc_cv_libc_provides_ssp=no
26892 case "$target" in
26893 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26894 # glibc 2.4 and later provides __stack_chk_fail and
26895 # either __stack_chk_guard, or TLS access to stack guard canary.
26896 if test -f $target_header_dir/features.h \
26897 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26898 $target_header_dir/features.h > /dev/null; then
26899 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26900 $target_header_dir/features.h > /dev/null; then
26901 gcc_cv_libc_provides_ssp=yes
26902 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26903 $target_header_dir/features.h > /dev/null \
26904 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26905 $target_header_dir/features.h > /dev/null; then
26906 gcc_cv_libc_provides_ssp=yes
26907 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26908 $target_header_dir/features.h > /dev/null && \
26909 test -f $target_header_dir/bits/uClibc_config.h && \
26910 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26911 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26912 gcc_cv_libc_provides_ssp=yes
26914 # all versions of Bionic support stack protector
26915 elif test -f $target_header_dir/sys/cdefs.h \
26916 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26917 $target_header_dir/sys/cdefs.h > /dev/null; then
26918 gcc_cv_libc_provides_ssp=yes
26921 *-*-gnu*)
26922 # Avoid complicated tests (see
26923 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26924 # simply assert that glibc does provide this, which is true for all
26925 # realistically usable GNU/Hurd configurations.
26926 gcc_cv_libc_provides_ssp=yes;;
26927 *-*-darwin* | *-*-freebsd*)
26928 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26929 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26930 gcc_cv_libc_provides_ssp=yes
26931 else
26932 echo "no __stack_chk_fail on this target"
26936 *) gcc_cv_libc_provides_ssp=no ;;
26937 esac
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26940 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26942 if test x$gcc_cv_libc_provides_ssp = xyes; then
26944 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26948 # Test for <sys/sdt.h> on the target.
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26951 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26952 have_sys_sdt_h=no
26953 if test -f $target_header_dir/sys/sdt.h; then
26954 have_sys_sdt_h=yes
26956 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26960 $as_echo "$have_sys_sdt_h" >&6; }
26962 # Check if TFmode long double should be used by default or not.
26963 # Some glibc targets used DFmode long double, but with glibc 2.4
26964 # and later they can use TFmode.
26965 case "$target" in
26966 powerpc*-*-linux* | \
26967 sparc*-*-linux* | \
26968 s390*-*-linux* | \
26969 alpha*-*-linux*)
26971 # Check whether --with-long-double-128 was given.
26972 if test "${with_long_double_128+set}" = set; then :
26973 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26974 else
26975 gcc_cv_target_ldbl128=no
26976 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26977 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26978 && gcc_cv_target_ldbl128=yes
26983 esac
26984 if test x$gcc_cv_target_ldbl128 = xyes; then
26986 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26991 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26992 gcc_cv_target_dl_iterate_phdr=unknown
26993 case "$target" in
26994 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26995 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26996 # libdl there, both complicating its use and breaking compatibility
26997 # between Solaris 10 updates.
26998 *-*-solaris2.1[1-9]*)
26999 # <link.h> needs both a dl_iterate_phdr declaration and support for
27000 # compilation with largefile support.
27001 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27002 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27003 gcc_cv_target_dl_iterate_phdr=yes
27004 else
27005 gcc_cv_target_dl_iterate_phdr=no
27008 esac
27010 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27012 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27016 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27018 # We no longer support different GC mechanisms. Emit an error if
27019 # the user configures with --with-gc.
27021 # Check whether --with-gc was given.
27022 if test "${with_gc+set}" = set; then :
27023 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27027 # Libraries to use on the host. This will normally be set by the top
27028 # level Makefile. Here we simply capture the value for our Makefile.
27029 if test -z "${HOST_LIBS+set}"; then
27030 HOST_LIBS=
27034 # Use the system's zlib library.
27035 zlibdir=-L../zlib
27036 zlibinc="-I\$(srcdir)/../zlib"
27038 # Check whether --with-system-zlib was given.
27039 if test "${with_system_zlib+set}" = set; then :
27040 withval=$with_system_zlib; zlibdir=
27041 zlibinc=
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27050 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27051 # Check whether --enable-maintainer-mode was given.
27052 if test "${enable_maintainer_mode+set}" = set; then :
27053 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27054 else
27055 maintainer_mode=no
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27060 $as_echo "$maintainer_mode" >&6; }
27062 if test "$maintainer_mode" = "yes"; then
27063 MAINT=''
27064 else
27065 MAINT='#'
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27070 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27071 # Check whether --enable-link-mutex was given.
27072 if test "${enable_link_mutex+set}" = set; then :
27073 enableval=$enable_link_mutex; do_link_mutex=$enableval
27074 else
27075 do_link_mutex=no
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27079 $as_echo "$do_link_mutex" >&6; }
27081 if test "$do_link_mutex" = "yes"; then
27082 DO_LINK_MUTEX=true
27083 else
27084 DO_LINK_MUTEX=false
27088 # --------------
27089 # Language hooks
27090 # --------------
27092 # Make empty files to contain the specs and options for each language.
27093 # Then add #include lines to for a compiler that has specs and/or options.
27095 subdirs=
27096 lang_opt_files=
27097 lang_specs_files=
27098 lang_tree_files=
27099 # These (without "all_") are set in each config-lang.in.
27100 # `language' must be a single word so is spelled singularly.
27101 all_languages=
27102 all_compilers=
27103 all_outputs='Makefile'
27104 # List of language makefile fragments.
27105 all_lang_makefrags=
27106 # Additional files for gengtype
27107 all_gtfiles="$target_gtfiles"
27109 # These are the languages that are set in --enable-languages,
27110 # and are available in the GCC tree.
27111 all_selected_languages=
27113 # Add the language fragments.
27114 # Languages are added via two mechanisms. Some information must be
27115 # recorded in makefile variables, these are defined in config-lang.in.
27116 # We accumulate them and plug them into the main Makefile.
27117 # The other mechanism is a set of hooks for each of the main targets
27118 # like `clean', `install', etc.
27120 language_hooks="Make-hooks"
27122 for lang in ${srcdir}/*/config-lang.in
27124 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27126 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27127 if test "x$lang_alias" = x
27128 then
27129 echo "$lang doesn't set \$language." 1>&2
27130 exit 1
27132 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27133 subdirs="$subdirs $subdir"
27135 # $gcc_subdir is where the gcc integration files are to be found
27136 # for a language, both for internal compiler purposes (compiler
27137 # sources implementing front-end to GCC tree converters), and for
27138 # build infrastructure purposes (Make-lang.in, etc.)
27140 # This will be <subdir> (relative to $srcdir) if a line like
27141 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27142 # is found in <langdir>/config-lang.in, and will remain <langdir>
27143 # otherwise.
27145 # Except for the language alias (fetched above), the regular
27146 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27147 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27148 # only this and the language alias.
27150 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27151 if [ "$gcc_subdir" = "" ]; then
27152 gcc_subdir="$subdir"
27155 case ",$enable_languages," in
27156 *,$lang_alias,*)
27157 all_selected_languages="$all_selected_languages $lang_alias"
27158 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27159 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27162 esac
27164 language=
27165 boot_language=
27166 compilers=
27167 outputs=
27168 gtfiles=
27169 subdir_requires=
27170 . ${srcdir}/$gcc_subdir/config-lang.in
27171 if test "x$language" = x
27172 then
27173 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27174 exit 1
27177 ok=:
27178 case ",$enable_languages," in
27179 *,$lang_alias,*) ;;
27181 for i in $subdir_requires; do
27182 test -f "${srcdir}/$i/config-lang.in" && continue
27183 ok=false
27184 break
27185 done
27187 esac
27188 $ok || continue
27190 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27191 if test -f $srcdir/$gcc_subdir/lang.opt; then
27192 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27193 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27195 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27196 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27198 all_languages="$all_languages $language"
27199 all_compilers="$all_compilers $compilers"
27200 all_outputs="$all_outputs $outputs"
27201 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27202 case ",$enable_languages," in
27203 *,lto,*)
27205 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27207 enable_lto=yes
27210 *) ;;
27211 esac
27212 done
27214 check_languages=
27215 for language in $all_selected_languages
27217 check_languages="$check_languages check-$language"
27218 done
27220 # We link each language in with a set of hooks, reached indirectly via
27221 # lang.${target}. Only do so for selected languages.
27223 rm -f Make-hooks
27224 touch Make-hooks
27225 target_list="all.cross start.encap rest.encap tags \
27226 install-common install-man install-info install-pdf install-html dvi \
27227 pdf html uninstall info man srcextra srcman srcinfo \
27228 mostlyclean clean distclean maintainer-clean install-plugin"
27230 for t in $target_list
27233 for lang in $all_selected_languages
27235 x="$x $lang.$t"
27236 done
27237 echo "lang.$t: $x" >> Make-hooks
27238 done
27240 # --------
27241 # Option include files
27242 # --------
27244 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27245 option_includes="option-includes.mk"
27248 # --------
27249 # UNSORTED
27250 # --------
27252 # Create .gdbinit.
27254 echo "dir ." > .gdbinit
27255 echo "dir ${srcdir}" >> .gdbinit
27256 if test x$gdb_needs_out_file_path = xyes
27257 then
27258 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27260 if test "x$subdirs" != x; then
27261 for s in $subdirs
27263 echo "dir ${srcdir}/$s" >> .gdbinit
27264 done
27266 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27268 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27272 # Find a directory in which to install a shared libgcc.
27274 # Check whether --enable-version-specific-runtime-libs was given.
27275 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27276 enableval=$enable_version_specific_runtime_libs;
27280 # Substitute configuration variables
27343 # Echo link setup.
27344 if test x${build} = x${host} ; then
27345 if test x${host} = x${target} ; then
27346 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27347 else
27348 echo "Links are now set up to build a cross-compiler" 1>&2
27349 echo " from ${host} to ${target}." 1>&2
27351 else
27352 if test x${host} = x${target} ; then
27353 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27354 echo " for ${target}." 1>&2
27355 else
27356 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27357 echo " from ${host} to ${target}." 1>&2
27369 if test "x${CLOOGLIBS}" != "x" ; then
27371 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27375 # Check for plugin support
27376 # Check whether --enable-plugin was given.
27377 if test "${enable_plugin+set}" = set; then :
27378 enableval=$enable_plugin; enable_plugin=$enableval
27379 else
27380 enable_plugin=yes; default_plugin=yes
27384 pluginlibs=
27386 case "${host}" in
27387 *-*-darwin*)
27388 if test x$build = x$host; then
27389 export_sym_check="nm${exeext} -g"
27390 elif test x$host = x$target; then
27391 export_sym_check="$gcc_cv_nm -g"
27392 else
27393 export_sym_check=
27397 if test x$build = x$host; then
27398 export_sym_check="objdump${exeext} -T"
27399 elif test x$host = x$target; then
27400 export_sym_check="$gcc_cv_objdump -T"
27401 else
27402 export_sym_check=
27405 esac
27407 if test x"$enable_plugin" = x"yes"; then
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27410 $as_echo_n "checking for exported symbols... " >&6; }
27411 if test "x$export_sym_check" != x; then
27412 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27413 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27414 if $export_sym_check conftest | grep foobar > /dev/null; then
27415 : # No need to use a flag
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27417 $as_echo "yes" >&6; }
27418 else
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27420 $as_echo "yes" >&6; }
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27422 $as_echo_n "checking for -rdynamic... " >&6; }
27423 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27424 if $export_sym_check conftest | grep foobar > /dev/null; then
27425 plugin_rdynamic=yes
27426 pluginlibs="-rdynamic"
27427 else
27428 plugin_rdynamic=no
27429 enable_plugin=no
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27432 $as_echo "$plugin_rdynamic" >&6; }
27434 else
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27436 $as_echo "unable to check" >&6; }
27439 # Check -ldl
27440 saved_LIBS="$LIBS"
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27442 $as_echo_n "checking for library containing dlopen... " >&6; }
27443 if test "${ac_cv_search_dlopen+set}" = set; then :
27444 $as_echo_n "(cached) " >&6
27445 else
27446 ac_func_search_save_LIBS=$LIBS
27447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27448 /* end confdefs.h. */
27450 /* Override any GCC internal prototype to avoid an error.
27451 Use char because int might match the return type of a GCC
27452 builtin and then its argument prototype would still apply. */
27453 #ifdef __cplusplus
27454 extern "C"
27455 #endif
27456 char dlopen ();
27458 main ()
27460 return dlopen ();
27462 return 0;
27464 _ACEOF
27465 for ac_lib in '' dl; do
27466 if test -z "$ac_lib"; then
27467 ac_res="none required"
27468 else
27469 ac_res=-l$ac_lib
27470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27472 if ac_fn_c_try_link "$LINENO"; then :
27473 ac_cv_search_dlopen=$ac_res
27475 rm -f core conftest.err conftest.$ac_objext \
27476 conftest$ac_exeext
27477 if test "${ac_cv_search_dlopen+set}" = set; then :
27478 break
27480 done
27481 if test "${ac_cv_search_dlopen+set}" = set; then :
27483 else
27484 ac_cv_search_dlopen=no
27486 rm conftest.$ac_ext
27487 LIBS=$ac_func_search_save_LIBS
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27490 $as_echo "$ac_cv_search_dlopen" >&6; }
27491 ac_res=$ac_cv_search_dlopen
27492 if test "$ac_res" != no; then :
27493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27497 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27498 pluginlibs="$pluginlibs -ldl"
27500 LIBS="$saved_LIBS"
27502 # Check that we can build shared objects with -fPIC -shared
27503 saved_LDFLAGS="$LDFLAGS"
27504 saved_CFLAGS="$CFLAGS"
27505 case "${host}" in
27506 *-*-darwin*)
27507 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27508 CFLAGS="$CFLAGS -fPIC"
27509 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27512 CFLAGS="$CFLAGS -fPIC"
27513 LDFLAGS="$LDFLAGS -fPIC -shared"
27515 esac
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27517 $as_echo_n "checking for -fPIC -shared... " >&6; }
27518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27519 /* end confdefs.h. */
27520 extern int X;
27522 main ()
27524 return X == 0;
27526 return 0;
27528 _ACEOF
27529 if ac_fn_c_try_link "$LINENO"; then :
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27531 $as_echo "yes" >&6; }; have_pic_shared=yes
27532 else
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27534 $as_echo "no" >&6; }; have_pic_shared=no
27536 rm -f core conftest.err conftest.$ac_objext \
27537 conftest$ac_exeext conftest.$ac_ext
27538 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27539 pluginlibs=
27540 enable_plugin=no
27542 LDFLAGS="$saved_LDFLAGS"
27543 CFLAGS="$saved_CFLAGS"
27545 # If plugin support had been requested but not available, fail.
27546 if test x"$enable_plugin" = x"no" ; then
27547 if test x"$default_plugin" != x"yes"; then
27548 as_fn_error "
27549 Building GCC with plugin support requires a host that supports
27550 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27557 if test x"$enable_plugin" = x"yes"; then
27559 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27564 # Check whether --enable-libquadmath-support was given.
27565 if test "${enable_libquadmath_support+set}" = set; then :
27566 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27567 else
27568 ENABLE_LIBQUADMATH_SUPPORT=yes
27571 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27573 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27578 # Specify what hash style to use by default.
27580 # Check whether --with-linker-hash-style was given.
27581 if test "${with_linker_hash_style+set}" = set; then :
27582 withval=$with_linker_hash_style; case x"$withval" in
27583 xsysv)
27584 LINKER_HASH_STYLE=sysv
27586 xgnu)
27587 LINKER_HASH_STYLE=gnu
27589 xboth)
27590 LINKER_HASH_STYLE=both
27593 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27595 esac
27596 else
27597 LINKER_HASH_STYLE=''
27600 if test x"${LINKER_HASH_STYLE}" != x; then
27602 cat >>confdefs.h <<_ACEOF
27603 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27604 _ACEOF
27608 # Configure the subdirectories
27609 # AC_CONFIG_SUBDIRS($subdirs)
27611 # Create the Makefile
27612 # and configure language subdirectories
27613 ac_config_files="$ac_config_files $all_outputs"
27616 ac_config_commands="$ac_config_commands default"
27618 cat >confcache <<\_ACEOF
27619 # This file is a shell script that caches the results of configure
27620 # tests run on this system so they can be shared between configure
27621 # scripts and configure runs, see configure's option --config-cache.
27622 # It is not useful on other systems. If it contains results you don't
27623 # want to keep, you may remove or edit it.
27625 # config.status only pays attention to the cache file if you give it
27626 # the --recheck option to rerun configure.
27628 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27629 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27630 # following values.
27632 _ACEOF
27634 # The following way of writing the cache mishandles newlines in values,
27635 # but we know of no workaround that is simple, portable, and efficient.
27636 # So, we kill variables containing newlines.
27637 # Ultrix sh set writes to stderr and can't be redirected directly,
27638 # and sets the high bit in the cache file unless we assign to the vars.
27640 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27641 eval ac_val=\$$ac_var
27642 case $ac_val in #(
27643 *${as_nl}*)
27644 case $ac_var in #(
27645 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27646 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27647 esac
27648 case $ac_var in #(
27649 _ | IFS | as_nl) ;; #(
27650 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27651 *) { eval $ac_var=; unset $ac_var;} ;;
27652 esac ;;
27653 esac
27654 done
27656 (set) 2>&1 |
27657 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27658 *${as_nl}ac_space=\ *)
27659 # `set' does not quote correctly, so add quotes: double-quote
27660 # substitution turns \\\\ into \\, and sed turns \\ into \.
27661 sed -n \
27662 "s/'/'\\\\''/g;
27663 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27664 ;; #(
27666 # `set' quotes correctly as required by POSIX, so do not add quotes.
27667 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27669 esac |
27670 sort
27672 sed '
27673 /^ac_cv_env_/b end
27674 t clear
27675 :clear
27676 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27677 t end
27678 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27679 :end' >>confcache
27680 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27681 if test -w "$cache_file"; then
27682 test "x$cache_file" != "x/dev/null" &&
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27684 $as_echo "$as_me: updating cache $cache_file" >&6;}
27685 cat confcache >$cache_file
27686 else
27687 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27688 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27691 rm -f confcache
27693 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27694 # Let make expand exec_prefix.
27695 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27697 DEFS=-DHAVE_CONFIG_H
27699 ac_libobjs=
27700 ac_ltlibobjs=
27701 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27702 # 1. Remove the extension, and $U if already installed.
27703 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27704 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27705 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27706 # will be set to the directory where LIBOBJS objects are built.
27707 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27708 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27709 done
27710 LIBOBJS=$ac_libobjs
27712 LTLIBOBJS=$ac_ltlibobjs
27717 : ${CONFIG_STATUS=./config.status}
27718 ac_write_fail=0
27719 ac_clean_files_save=$ac_clean_files
27720 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27722 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27723 as_write_fail=0
27724 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27725 #! $SHELL
27726 # Generated by $as_me.
27727 # Run this file to recreate the current configuration.
27728 # Compiler output produced by configure, useful for debugging
27729 # configure, is in config.log if it exists.
27731 debug=false
27732 ac_cs_recheck=false
27733 ac_cs_silent=false
27735 SHELL=\${CONFIG_SHELL-$SHELL}
27736 export SHELL
27737 _ASEOF
27738 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27739 ## -------------------- ##
27740 ## M4sh Initialization. ##
27741 ## -------------------- ##
27743 # Be more Bourne compatible
27744 DUALCASE=1; export DUALCASE # for MKS sh
27745 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27746 emulate sh
27747 NULLCMD=:
27748 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27749 # is contrary to our usage. Disable this feature.
27750 alias -g '${1+"$@"}'='"$@"'
27751 setopt NO_GLOB_SUBST
27752 else
27753 case `(set -o) 2>/dev/null` in #(
27754 *posix*) :
27755 set -o posix ;; #(
27756 *) :
27758 esac
27762 as_nl='
27764 export as_nl
27765 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27766 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27767 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27768 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27769 # Prefer a ksh shell builtin over an external printf program on Solaris,
27770 # but without wasting forks for bash or zsh.
27771 if test -z "$BASH_VERSION$ZSH_VERSION" \
27772 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27773 as_echo='print -r --'
27774 as_echo_n='print -rn --'
27775 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27776 as_echo='printf %s\n'
27777 as_echo_n='printf %s'
27778 else
27779 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27780 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27781 as_echo_n='/usr/ucb/echo -n'
27782 else
27783 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27784 as_echo_n_body='eval
27785 arg=$1;
27786 case $arg in #(
27787 *"$as_nl"*)
27788 expr "X$arg" : "X\\(.*\\)$as_nl";
27789 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27790 esac;
27791 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27793 export as_echo_n_body
27794 as_echo_n='sh -c $as_echo_n_body as_echo'
27796 export as_echo_body
27797 as_echo='sh -c $as_echo_body as_echo'
27800 # The user is always right.
27801 if test "${PATH_SEPARATOR+set}" != set; then
27802 PATH_SEPARATOR=:
27803 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27804 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27805 PATH_SEPARATOR=';'
27810 # IFS
27811 # We need space, tab and new line, in precisely that order. Quoting is
27812 # there to prevent editors from complaining about space-tab.
27813 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27814 # splitting by setting IFS to empty value.)
27815 IFS=" "" $as_nl"
27817 # Find who we are. Look in the path if we contain no directory separator.
27818 case $0 in #((
27819 *[\\/]* ) as_myself=$0 ;;
27820 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27821 for as_dir in $PATH
27823 IFS=$as_save_IFS
27824 test -z "$as_dir" && as_dir=.
27825 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27826 done
27827 IFS=$as_save_IFS
27830 esac
27831 # We did not find ourselves, most probably we were run as `sh COMMAND'
27832 # in which case we are not to be found in the path.
27833 if test "x$as_myself" = x; then
27834 as_myself=$0
27836 if test ! -f "$as_myself"; then
27837 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27838 exit 1
27841 # Unset variables that we do not need and which cause bugs (e.g. in
27842 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27843 # suppresses any "Segmentation fault" message there. '((' could
27844 # trigger a bug in pdksh 5.2.14.
27845 for as_var in BASH_ENV ENV MAIL MAILPATH
27846 do eval test x\${$as_var+set} = xset \
27847 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27848 done
27849 PS1='$ '
27850 PS2='> '
27851 PS4='+ '
27853 # NLS nuisances.
27854 LC_ALL=C
27855 export LC_ALL
27856 LANGUAGE=C
27857 export LANGUAGE
27859 # CDPATH.
27860 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27863 # as_fn_error ERROR [LINENO LOG_FD]
27864 # ---------------------------------
27865 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27866 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27867 # script with status $?, using 1 if that was 0.
27868 as_fn_error ()
27870 as_status=$?; test $as_status -eq 0 && as_status=1
27871 if test "$3"; then
27872 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27873 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27875 $as_echo "$as_me: error: $1" >&2
27876 as_fn_exit $as_status
27877 } # as_fn_error
27880 # as_fn_set_status STATUS
27881 # -----------------------
27882 # Set $? to STATUS, without forking.
27883 as_fn_set_status ()
27885 return $1
27886 } # as_fn_set_status
27888 # as_fn_exit STATUS
27889 # -----------------
27890 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27891 as_fn_exit ()
27893 set +e
27894 as_fn_set_status $1
27895 exit $1
27896 } # as_fn_exit
27898 # as_fn_unset VAR
27899 # ---------------
27900 # Portably unset VAR.
27901 as_fn_unset ()
27903 { eval $1=; unset $1;}
27905 as_unset=as_fn_unset
27906 # as_fn_append VAR VALUE
27907 # ----------------------
27908 # Append the text in VALUE to the end of the definition contained in VAR. Take
27909 # advantage of any shell optimizations that allow amortized linear growth over
27910 # repeated appends, instead of the typical quadratic growth present in naive
27911 # implementations.
27912 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27913 eval 'as_fn_append ()
27915 eval $1+=\$2
27917 else
27918 as_fn_append ()
27920 eval $1=\$$1\$2
27922 fi # as_fn_append
27924 # as_fn_arith ARG...
27925 # ------------------
27926 # Perform arithmetic evaluation on the ARGs, and store the result in the
27927 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27928 # must be portable across $(()) and expr.
27929 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27930 eval 'as_fn_arith ()
27932 as_val=$(( $* ))
27934 else
27935 as_fn_arith ()
27937 as_val=`expr "$@" || test $? -eq 1`
27939 fi # as_fn_arith
27942 if expr a : '\(a\)' >/dev/null 2>&1 &&
27943 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27944 as_expr=expr
27945 else
27946 as_expr=false
27949 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27950 as_basename=basename
27951 else
27952 as_basename=false
27955 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27956 as_dirname=dirname
27957 else
27958 as_dirname=false
27961 as_me=`$as_basename -- "$0" ||
27962 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27963 X"$0" : 'X\(//\)$' \| \
27964 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27965 $as_echo X/"$0" |
27966 sed '/^.*\/\([^/][^/]*\)\/*$/{
27967 s//\1/
27970 /^X\/\(\/\/\)$/{
27971 s//\1/
27974 /^X\/\(\/\).*/{
27975 s//\1/
27978 s/.*/./; q'`
27980 # Avoid depending upon Character Ranges.
27981 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27982 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27983 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27984 as_cr_digits='0123456789'
27985 as_cr_alnum=$as_cr_Letters$as_cr_digits
27987 ECHO_C= ECHO_N= ECHO_T=
27988 case `echo -n x` in #(((((
27989 -n*)
27990 case `echo 'xy\c'` in
27991 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27992 xy) ECHO_C='\c';;
27993 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27994 ECHO_T=' ';;
27995 esac;;
27997 ECHO_N='-n';;
27998 esac
28000 rm -f conf$$ conf$$.exe conf$$.file
28001 if test -d conf$$.dir; then
28002 rm -f conf$$.dir/conf$$.file
28003 else
28004 rm -f conf$$.dir
28005 mkdir conf$$.dir 2>/dev/null
28007 if (echo >conf$$.file) 2>/dev/null; then
28008 if ln -s conf$$.file conf$$ 2>/dev/null; then
28009 as_ln_s='ln -s'
28010 # ... but there are two gotchas:
28011 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28012 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28013 # In both cases, we have to default to `cp -p'.
28014 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28015 as_ln_s='cp -p'
28016 elif ln conf$$.file conf$$ 2>/dev/null; then
28017 as_ln_s=ln
28018 else
28019 as_ln_s='cp -p'
28021 else
28022 as_ln_s='cp -p'
28024 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28025 rmdir conf$$.dir 2>/dev/null
28028 # as_fn_mkdir_p
28029 # -------------
28030 # Create "$as_dir" as a directory, including parents if necessary.
28031 as_fn_mkdir_p ()
28034 case $as_dir in #(
28035 -*) as_dir=./$as_dir;;
28036 esac
28037 test -d "$as_dir" || eval $as_mkdir_p || {
28038 as_dirs=
28039 while :; do
28040 case $as_dir in #(
28041 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28042 *) as_qdir=$as_dir;;
28043 esac
28044 as_dirs="'$as_qdir' $as_dirs"
28045 as_dir=`$as_dirname -- "$as_dir" ||
28046 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28047 X"$as_dir" : 'X\(//\)[^/]' \| \
28048 X"$as_dir" : 'X\(//\)$' \| \
28049 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28050 $as_echo X"$as_dir" |
28051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28052 s//\1/
28055 /^X\(\/\/\)[^/].*/{
28056 s//\1/
28059 /^X\(\/\/\)$/{
28060 s//\1/
28063 /^X\(\/\).*/{
28064 s//\1/
28067 s/.*/./; q'`
28068 test -d "$as_dir" && break
28069 done
28070 test -z "$as_dirs" || eval "mkdir $as_dirs"
28071 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28074 } # as_fn_mkdir_p
28075 if mkdir -p . 2>/dev/null; then
28076 as_mkdir_p='mkdir -p "$as_dir"'
28077 else
28078 test -d ./-p && rmdir ./-p
28079 as_mkdir_p=false
28082 if test -x / >/dev/null 2>&1; then
28083 as_test_x='test -x'
28084 else
28085 if ls -dL / >/dev/null 2>&1; then
28086 as_ls_L_option=L
28087 else
28088 as_ls_L_option=
28090 as_test_x='
28091 eval sh -c '\''
28092 if test -d "$1"; then
28093 test -d "$1/.";
28094 else
28095 case $1 in #(
28096 -*)set "./$1";;
28097 esac;
28098 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28099 ???[sx]*):;;*)false;;esac;fi
28100 '\'' sh
28103 as_executable_p=$as_test_x
28105 # Sed expression to map a string onto a valid CPP name.
28106 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28108 # Sed expression to map a string onto a valid variable name.
28109 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28112 exec 6>&1
28113 ## ----------------------------------- ##
28114 ## Main body of $CONFIG_STATUS script. ##
28115 ## ----------------------------------- ##
28116 _ASEOF
28117 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28120 # Save the log message, to keep $0 and so on meaningful, and to
28121 # report actual input values of CONFIG_FILES etc. instead of their
28122 # values after options handling.
28123 ac_log="
28124 This file was extended by $as_me, which was
28125 generated by GNU Autoconf 2.64. Invocation command line was
28127 CONFIG_FILES = $CONFIG_FILES
28128 CONFIG_HEADERS = $CONFIG_HEADERS
28129 CONFIG_LINKS = $CONFIG_LINKS
28130 CONFIG_COMMANDS = $CONFIG_COMMANDS
28131 $ $0 $@
28133 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28136 _ACEOF
28138 case $ac_config_files in *"
28139 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28140 esac
28142 case $ac_config_headers in *"
28143 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28144 esac
28147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28148 # Files that config.status was made for.
28149 config_files="$ac_config_files"
28150 config_headers="$ac_config_headers"
28151 config_commands="$ac_config_commands"
28153 _ACEOF
28155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28156 ac_cs_usage="\
28157 \`$as_me' instantiates files and other configuration actions
28158 from templates according to the current configuration. Unless the files
28159 and actions are specified as TAGs, all are instantiated by default.
28161 Usage: $0 [OPTION]... [TAG]...
28163 -h, --help print this help, then exit
28164 -V, --version print version number and configuration settings, then exit
28165 -q, --quiet, --silent
28166 do not print progress messages
28167 -d, --debug don't remove temporary files
28168 --recheck update $as_me by reconfiguring in the same conditions
28169 --file=FILE[:TEMPLATE]
28170 instantiate the configuration file FILE
28171 --header=FILE[:TEMPLATE]
28172 instantiate the configuration header FILE
28174 Configuration files:
28175 $config_files
28177 Configuration headers:
28178 $config_headers
28180 Configuration commands:
28181 $config_commands
28183 Report bugs to the package provider."
28185 _ACEOF
28186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28187 ac_cs_version="\\
28188 config.status
28189 configured by $0, generated by GNU Autoconf 2.64,
28190 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28192 Copyright (C) 2009 Free Software Foundation, Inc.
28193 This config.status script is free software; the Free Software Foundation
28194 gives unlimited permission to copy, distribute and modify it."
28196 ac_pwd='$ac_pwd'
28197 srcdir='$srcdir'
28198 AWK='$AWK'
28199 test -n "\$AWK" || AWK=awk
28200 _ACEOF
28202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28203 # The default lists apply if the user does not specify any file.
28204 ac_need_defaults=:
28205 while test $# != 0
28207 case $1 in
28208 --*=*)
28209 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28210 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28211 ac_shift=:
28214 ac_option=$1
28215 ac_optarg=$2
28216 ac_shift=shift
28218 esac
28220 case $ac_option in
28221 # Handling of the options.
28222 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28223 ac_cs_recheck=: ;;
28224 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28225 $as_echo "$ac_cs_version"; exit ;;
28226 --debug | --debu | --deb | --de | --d | -d )
28227 debug=: ;;
28228 --file | --fil | --fi | --f )
28229 $ac_shift
28230 case $ac_optarg in
28231 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28232 esac
28233 as_fn_append CONFIG_FILES " '$ac_optarg'"
28234 ac_need_defaults=false;;
28235 --header | --heade | --head | --hea )
28236 $ac_shift
28237 case $ac_optarg in
28238 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28239 esac
28240 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28241 ac_need_defaults=false;;
28242 --he | --h)
28243 # Conflict between --help and --header
28244 as_fn_error "ambiguous option: \`$1'
28245 Try \`$0 --help' for more information.";;
28246 --help | --hel | -h )
28247 $as_echo "$ac_cs_usage"; exit ;;
28248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28249 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28250 ac_cs_silent=: ;;
28252 # This is an error.
28253 -*) as_fn_error "unrecognized option: \`$1'
28254 Try \`$0 --help' for more information." ;;
28256 *) as_fn_append ac_config_targets " $1"
28257 ac_need_defaults=false ;;
28259 esac
28260 shift
28261 done
28263 ac_configure_extra_args=
28265 if $ac_cs_silent; then
28266 exec 6>/dev/null
28267 ac_configure_extra_args="$ac_configure_extra_args --silent"
28270 _ACEOF
28271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28272 if \$ac_cs_recheck; then
28273 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28274 shift
28275 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28276 CONFIG_SHELL='$SHELL'
28277 export CONFIG_SHELL
28278 exec "\$@"
28281 _ACEOF
28282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28283 exec 5>>config.log
28285 echo
28286 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28287 ## Running $as_me. ##
28288 _ASBOX
28289 $as_echo "$ac_log"
28290 } >&5
28292 _ACEOF
28293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28295 # INIT-COMMANDS
28297 subdirs='$subdirs'
28299 _ACEOF
28301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28303 # Handling of arguments.
28304 for ac_config_target in $ac_config_targets
28306 case $ac_config_target in
28307 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28308 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28309 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28310 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28311 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28312 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28314 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28315 esac
28316 done
28319 # If the user did not use the arguments to specify the items to instantiate,
28320 # then the envvar interface is used. Set only those that are not.
28321 # We use the long form for the default assignment because of an extremely
28322 # bizarre bug on SunOS 4.1.3.
28323 if $ac_need_defaults; then
28324 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28325 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28326 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28329 # Have a temporary directory for convenience. Make it in the build tree
28330 # simply because there is no reason against having it here, and in addition,
28331 # creating and moving files from /tmp can sometimes cause problems.
28332 # Hook for its removal unless debugging.
28333 # Note that there is a small window in which the directory will not be cleaned:
28334 # after its creation but before its name has been assigned to `$tmp'.
28335 $debug ||
28337 tmp=
28338 trap 'exit_status=$?
28339 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28341 trap 'as_fn_exit 1' 1 2 13 15
28343 # Create a (secure) tmp directory for tmp files.
28346 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28347 test -n "$tmp" && test -d "$tmp"
28348 } ||
28350 tmp=./conf$$-$RANDOM
28351 (umask 077 && mkdir "$tmp")
28352 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28354 # Set up the scripts for CONFIG_FILES section.
28355 # No need to generate them if there are no CONFIG_FILES.
28356 # This happens for instance with `./config.status config.h'.
28357 if test -n "$CONFIG_FILES"; then
28359 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28360 ac_cs_awk_getline=:
28361 ac_cs_awk_pipe_init=
28362 ac_cs_awk_read_file='
28363 while ((getline aline < (F[key])) > 0)
28364 print(aline)
28365 close(F[key])'
28366 ac_cs_awk_pipe_fini=
28367 else
28368 ac_cs_awk_getline=false
28369 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28370 ac_cs_awk_read_file='
28371 print "|#_!!_#|"
28372 print "cat " F[key] " &&"
28373 '$ac_cs_awk_pipe_init
28374 # The final `:' finishes the AND list.
28375 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28377 ac_cr=`echo X | tr X '\015'`
28378 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28379 # But we know of no other shell where ac_cr would be empty at this
28380 # point, so we can use a bashism as a fallback.
28381 if test "x$ac_cr" = x; then
28382 eval ac_cr=\$\'\\r\'
28384 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28385 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28386 ac_cs_awk_cr='\r'
28387 else
28388 ac_cs_awk_cr=$ac_cr
28391 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28392 _ACEOF
28394 # Create commands to substitute file output variables.
28396 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28397 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28398 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28399 echo "_ACAWK" &&
28400 echo "_ACEOF"
28401 } >conf$$files.sh &&
28402 . ./conf$$files.sh ||
28403 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28404 rm -f conf$$files.sh
28407 echo "cat >conf$$subs.awk <<_ACEOF" &&
28408 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28409 echo "_ACEOF"
28410 } >conf$$subs.sh ||
28411 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28412 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28413 ac_delim='%!_!# '
28414 for ac_last_try in false false false false false :; do
28415 . ./conf$$subs.sh ||
28416 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28418 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28419 if test $ac_delim_n = $ac_delim_num; then
28420 break
28421 elif $ac_last_try; then
28422 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28423 else
28424 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28426 done
28427 rm -f conf$$subs.sh
28429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28430 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28431 _ACEOF
28432 sed -n '
28434 s/^/S["/; s/!.*/"]=/
28437 s/^[^!]*!//
28438 :repl
28439 t repl
28440 s/'"$ac_delim"'$//
28441 t delim
28444 s/\(.\{148\}\).*/\1/
28445 t more1
28446 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28449 b repl
28450 :more1
28451 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28454 s/.\{148\}//
28455 t nl
28456 :delim
28458 s/\(.\{148\}\).*/\1/
28459 t more2
28460 s/["\\]/\\&/g; s/^/"/; s/$/"/
28463 :more2
28464 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28467 s/.\{148\}//
28468 t delim
28469 ' <conf$$subs.awk | sed '
28470 /^[^""]/{
28472 s/\n//
28474 ' >>$CONFIG_STATUS || ac_write_fail=1
28475 rm -f conf$$subs.awk
28476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28477 _ACAWK
28478 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28479 for (key in S) S_is_set[key] = 1
28480 FS = "\a"
28481 \$ac_cs_awk_pipe_init
28484 line = $ 0
28485 nfields = split(line, field, "@")
28486 substed = 0
28487 len = length(field[1])
28488 for (i = 2; i < nfields; i++) {
28489 key = field[i]
28490 keylen = length(key)
28491 if (S_is_set[key]) {
28492 value = S[key]
28493 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28494 len += length(value) + length(field[++i])
28495 substed = 1
28496 } else
28497 len += 1 + keylen
28499 if (nfields == 3 && !substed) {
28500 key = field[2]
28501 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28502 \$ac_cs_awk_read_file
28503 next
28506 print line
28508 \$ac_cs_awk_pipe_fini
28509 _ACAWK
28510 _ACEOF
28511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28512 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28513 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28514 else
28516 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28517 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28518 _ACEOF
28520 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28521 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28522 # trailing colons and then remove the whole line if VPATH becomes empty
28523 # (actually we leave an empty line to preserve line numbers).
28524 if test "x$srcdir" = x.; then
28525 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28526 s/:*\$(srcdir):*/:/
28527 s/:*\${srcdir}:*/:/
28528 s/:*@srcdir@:*/:/
28529 s/^\([^=]*=[ ]*\):*/\1/
28530 s/:*$//
28531 s/^[^=]*=[ ]*$//
28535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28536 fi # test -n "$CONFIG_FILES"
28538 # Set up the scripts for CONFIG_HEADERS section.
28539 # No need to generate them if there are no CONFIG_HEADERS.
28540 # This happens for instance with `./config.status Makefile'.
28541 if test -n "$CONFIG_HEADERS"; then
28542 cat >"$tmp/defines.awk" <<\_ACAWK ||
28543 BEGIN {
28544 _ACEOF
28546 # Transform confdefs.h into an awk script `defines.awk', embedded as
28547 # here-document in config.status, that substitutes the proper values into
28548 # config.h.in to produce config.h.
28550 # Create a delimiter string that does not exist in confdefs.h, to ease
28551 # handling of long lines.
28552 ac_delim='%!_!# '
28553 for ac_last_try in false false :; do
28554 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28555 if test -z "$ac_t"; then
28556 break
28557 elif $ac_last_try; then
28558 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28559 else
28560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28562 done
28564 # For the awk script, D is an array of macro values keyed by name,
28565 # likewise P contains macro parameters if any. Preserve backslash
28566 # newline sequences.
28568 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28569 sed -n '
28570 s/.\{148\}/&'"$ac_delim"'/g
28571 t rset
28572 :rset
28573 s/^[ ]*#[ ]*define[ ][ ]*/ /
28574 t def
28576 :def
28577 s/\\$//
28578 t bsnl
28579 s/["\\]/\\&/g
28580 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28581 D["\1"]=" \3"/p
28582 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28584 :bsnl
28585 s/["\\]/\\&/g
28586 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28587 D["\1"]=" \3\\\\\\n"\\/p
28588 t cont
28589 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28590 t cont
28592 :cont
28594 s/.\{148\}/&'"$ac_delim"'/g
28595 t clear
28596 :clear
28597 s/\\$//
28598 t bsnlc
28599 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28601 :bsnlc
28602 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28603 b cont
28604 ' <confdefs.h | sed '
28605 s/'"$ac_delim"'/"\\\
28606 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28609 for (key in D) D_is_set[key] = 1
28610 FS = "\a"
28612 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28613 line = \$ 0
28614 split(line, arg, " ")
28615 if (arg[1] == "#") {
28616 defundef = arg[2]
28617 mac1 = arg[3]
28618 } else {
28619 defundef = substr(arg[1], 2)
28620 mac1 = arg[2]
28622 split(mac1, mac2, "(") #)
28623 macro = mac2[1]
28624 prefix = substr(line, 1, index(line, defundef) - 1)
28625 if (D_is_set[macro]) {
28626 # Preserve the white space surrounding the "#".
28627 print prefix "define", macro P[macro] D[macro]
28628 next
28629 } else {
28630 # Replace #undef with comments. This is necessary, for example,
28631 # in the case of _POSIX_SOURCE, which is predefined and required
28632 # on some systems where configure will not decide to define it.
28633 if (defundef == "undef") {
28634 print "/*", prefix defundef, macro, "*/"
28635 next
28639 { print }
28640 _ACAWK
28641 _ACEOF
28642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28643 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28644 fi # test -n "$CONFIG_HEADERS"
28647 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28648 shift
28649 for ac_tag
28651 case $ac_tag in
28652 :[FHLC]) ac_mode=$ac_tag; continue;;
28653 esac
28654 case $ac_mode$ac_tag in
28655 :[FHL]*:*);;
28656 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28657 :[FH]-) ac_tag=-:-;;
28658 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28659 esac
28660 ac_save_IFS=$IFS
28661 IFS=:
28662 set x $ac_tag
28663 IFS=$ac_save_IFS
28664 shift
28665 ac_file=$1
28666 shift
28668 case $ac_mode in
28669 :L) ac_source=$1;;
28670 :[FH])
28671 ac_file_inputs=
28672 for ac_f
28674 case $ac_f in
28675 -) ac_f="$tmp/stdin";;
28676 *) # Look for the file first in the build tree, then in the source tree
28677 # (if the path is not absolute). The absolute path cannot be DOS-style,
28678 # because $ac_f cannot contain `:'.
28679 test -f "$ac_f" ||
28680 case $ac_f in
28681 [\\/$]*) false;;
28682 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28683 esac ||
28684 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28685 esac
28686 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28687 as_fn_append ac_file_inputs " '$ac_f'"
28688 done
28690 # Let's still pretend it is `configure' which instantiates (i.e., don't
28691 # use $as_me), people would be surprised to read:
28692 # /* config.h. Generated by config.status. */
28693 configure_input='Generated from '`
28694 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28695 `' by configure.'
28696 if test x"$ac_file" != x-; then
28697 configure_input="$ac_file. $configure_input"
28698 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28699 $as_echo "$as_me: creating $ac_file" >&6;}
28701 # Neutralize special characters interpreted by sed in replacement strings.
28702 case $configure_input in #(
28703 *\&* | *\|* | *\\* )
28704 ac_sed_conf_input=`$as_echo "$configure_input" |
28705 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28706 *) ac_sed_conf_input=$configure_input;;
28707 esac
28709 case $ac_tag in
28710 *:-:* | *:-) cat >"$tmp/stdin" \
28711 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28712 esac
28714 esac
28716 ac_dir=`$as_dirname -- "$ac_file" ||
28717 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28718 X"$ac_file" : 'X\(//\)[^/]' \| \
28719 X"$ac_file" : 'X\(//\)$' \| \
28720 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28721 $as_echo X"$ac_file" |
28722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28723 s//\1/
28726 /^X\(\/\/\)[^/].*/{
28727 s//\1/
28730 /^X\(\/\/\)$/{
28731 s//\1/
28734 /^X\(\/\).*/{
28735 s//\1/
28738 s/.*/./; q'`
28739 as_dir="$ac_dir"; as_fn_mkdir_p
28740 ac_builddir=.
28742 case "$ac_dir" in
28743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28746 # A ".." for each directory in $ac_dir_suffix.
28747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28748 case $ac_top_builddir_sub in
28749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28751 esac ;;
28752 esac
28753 ac_abs_top_builddir=$ac_pwd
28754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28755 # for backward compatibility:
28756 ac_top_builddir=$ac_top_build_prefix
28758 case $srcdir in
28759 .) # We are building in place.
28760 ac_srcdir=.
28761 ac_top_srcdir=$ac_top_builddir_sub
28762 ac_abs_top_srcdir=$ac_pwd ;;
28763 [\\/]* | ?:[\\/]* ) # Absolute name.
28764 ac_srcdir=$srcdir$ac_dir_suffix;
28765 ac_top_srcdir=$srcdir
28766 ac_abs_top_srcdir=$srcdir ;;
28767 *) # Relative name.
28768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28769 ac_top_srcdir=$ac_top_build_prefix$srcdir
28770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28771 esac
28772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28775 case $ac_mode in
28778 # CONFIG_FILE
28781 _ACEOF
28783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28784 # If the template does not know about datarootdir, expand it.
28785 # FIXME: This hack should be removed a few years after 2.60.
28786 ac_datarootdir_hack=; ac_datarootdir_seen=
28787 ac_sed_dataroot='
28788 /datarootdir/ {
28792 /@datadir@/p
28793 /@docdir@/p
28794 /@infodir@/p
28795 /@localedir@/p
28796 /@mandir@/p'
28797 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28798 *datarootdir*) ac_datarootdir_seen=yes;;
28799 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28801 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28802 _ACEOF
28803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28804 ac_datarootdir_hack='
28805 s&@datadir@&$datadir&g
28806 s&@docdir@&$docdir&g
28807 s&@infodir@&$infodir&g
28808 s&@localedir@&$localedir&g
28809 s&@mandir@&$mandir&g
28810 s&\\\${datarootdir}&$datarootdir&g' ;;
28811 esac
28812 _ACEOF
28814 # Neutralize VPATH when `$srcdir' = `.'.
28815 # Shell code in configure.ac might set extrasub.
28816 # FIXME: do we really want to maintain this feature?
28817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28818 ac_sed_extra="$ac_vpsub
28819 $extrasub
28820 _ACEOF
28821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28824 s|@configure_input@|$ac_sed_conf_input|;t t
28825 s&@top_builddir@&$ac_top_builddir_sub&;t t
28826 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28827 s&@srcdir@&$ac_srcdir&;t t
28828 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28829 s&@top_srcdir@&$ac_top_srcdir&;t t
28830 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28831 s&@builddir@&$ac_builddir&;t t
28832 s&@abs_builddir@&$ac_abs_builddir&;t t
28833 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28834 $ac_datarootdir_hack
28836 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28837 if $ac_cs_awk_getline; then
28838 $AWK -f "$tmp/subs.awk"
28839 else
28840 $AWK -f "$tmp/subs.awk" | $SHELL
28841 fi >$tmp/out \
28842 || as_fn_error "could not create $ac_file" "$LINENO" 5
28844 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28845 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28846 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28848 which seems to be undefined. Please make sure it is defined." >&5
28849 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28850 which seems to be undefined. Please make sure it is defined." >&2;}
28852 rm -f "$tmp/stdin"
28853 case $ac_file in
28854 -) cat "$tmp/out" && rm -f "$tmp/out";;
28855 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28856 esac \
28857 || as_fn_error "could not create $ac_file" "$LINENO" 5
28861 # CONFIG_HEADER
28863 if test x"$ac_file" != x-; then
28865 $as_echo "/* $configure_input */" \
28866 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28867 } >"$tmp/config.h" \
28868 || as_fn_error "could not create $ac_file" "$LINENO" 5
28869 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28871 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28872 else
28873 rm -f "$ac_file"
28874 mv "$tmp/config.h" "$ac_file" \
28875 || as_fn_error "could not create $ac_file" "$LINENO" 5
28877 else
28878 $as_echo "/* $configure_input */" \
28879 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28880 || as_fn_error "could not create -" "$LINENO" 5
28884 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28885 $as_echo "$as_me: executing $ac_file commands" >&6;}
28887 esac
28890 case $ac_file$ac_mode in
28891 "as":F) chmod +x as ;;
28892 "collect-ld":F) chmod +x collect-ld ;;
28893 "nm":F) chmod +x nm ;;
28894 "default":C)
28895 case ${CONFIG_HEADERS} in
28896 *auto-host.h:config.in*)
28897 echo > cstamp-h ;;
28898 esac
28899 # Make sure all the subdirs exist.
28900 for d in $subdirs doc build common c-family
28902 test -d $d || mkdir $d
28903 done
28906 esac
28907 done # for ac_tag
28910 as_fn_exit 0
28911 _ACEOF
28912 ac_clean_files=$ac_clean_files_save
28914 test $ac_write_fail = 0 ||
28915 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28918 # configure is writing to config.log, and then calls config.status.
28919 # config.status does its own redirection, appending to config.log.
28920 # Unfortunately, on DOS this fails, as config.log is still kept open
28921 # by configure, so config.status won't be able to write to it; its
28922 # output is simply discarded. So we exec the FD to /dev/null,
28923 # effectively closing config.log, so it can be properly (re)opened and
28924 # appended to by config.status. When coming back to configure, we
28925 # need to make the FD available again.
28926 if test "$no_create" != yes; then
28927 ac_cs_success=:
28928 ac_config_status_args=
28929 test "$silent" = yes &&
28930 ac_config_status_args="$ac_config_status_args --quiet"
28931 exec 5>/dev/null
28932 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28933 exec 5>>config.log
28934 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28935 # would make configure fail if this is the last instruction.
28936 $ac_cs_success || as_fn_exit $?
28938 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28940 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}