PR c++/55261
[official-gcc.git] / gcc / configure
blob76eec2983c1cda2f62b5f607cdae7d5848a65aa2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
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 enable_multiarch
770 enable_multilib
771 coverage_flags
772 valgrind_command
773 valgrind_path_defines
774 valgrind_path
775 TREEBROWSER
776 nocommon_flag
777 noexception_flags
778 warn_cxxflags
779 warn_cflags
780 c_strict_warn
781 strict_warn
782 c_loose_warn
783 loose_warn
784 EGREP
785 GREP
787 PICFLAG_FOR_TARGET
788 OUTPUT_OPTION
789 NO_MINUS_C_MINUS_O
790 GNATMAKE
791 GNATBIND
792 ac_ct_CXX
793 CXXFLAGS
795 OBJEXT
796 EXEEXT
797 ac_ct_CC
798 CPPFLAGS
799 LDFLAGS
800 CFLAGS
802 GENINSRC
803 target_subdir
804 host_subdir
805 build_subdir
806 build_libsubdir
807 target_noncanonical
808 target_os
809 target_vendor
810 target_cpu
811 target
812 host_os
813 host_vendor
814 host_cpu
815 host
816 build_os
817 build_vendor
818 build_cpu
819 build
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL'
858 ac_subst_files='option_includes
859 language_hooks'
860 ac_user_opts='
861 enable_option_checking
862 with_build_libsubdir
863 with_local_prefix
864 with_gxx_include_dir
865 with_cpp_install_dir
866 enable_generated_files_in_srcdir
867 with_gnu_ld
868 with_ld
869 with_demangler_in_ld
870 with_gnu_as
871 with_as
872 enable_largefile
873 enable_werror_always
874 enable_checking
875 enable_coverage
876 enable_gather_detailed_mem_stats
877 with_stabs
878 enable_multilib
879 enable_multiarch
880 enable___cxa_atexit
881 enable_decimal_float
882 enable_fixed_point
883 enable_threads
884 enable_tls
885 enable_objc_gc
886 with_dwarf2
887 enable_shared
888 with_native_system_header_dir
889 with_build_sysroot
890 with_sysroot
891 with_specs
892 with_pkgversion
893 with_bugurl
894 enable_languages
895 with_multilib_list
896 enable_rpath
897 with_libiconv_prefix
898 enable_sjlj_exceptions
899 enable_secureplt
900 enable_leading_mingw64_underscores
901 enable_cld
902 enable_frame_pointer
903 enable_win32_registry
904 enable_static
905 with_pic
906 enable_fast_install
907 enable_libtool_lock
908 with_plugin_ld
909 enable_gnu_indirect_function
910 enable_initfini_array
911 enable_comdat
912 enable_gnu_unique_object
913 enable_linker_build_id
914 with_long_double_128
915 with_gc
916 with_system_zlib
917 enable_maintainer_mode
918 enable_version_specific_runtime_libs
919 enable_plugin
920 enable_libquadmath_support
921 with_linker_hash_style
923 ac_precious_vars='build_alias
924 host_alias
925 target_alias
927 CFLAGS
928 LDFLAGS
929 LIBS
930 CPPFLAGS
932 CXXFLAGS
935 CXXCPP
936 GMPLIBS
937 GMPINC
938 ISLLIBS
939 ISLINC
940 CLOOGLIBS
941 CLOOGINC'
944 # Initialize some variables set by options.
945 ac_init_help=
946 ac_init_version=false
947 ac_unrecognized_opts=
948 ac_unrecognized_sep=
949 # The variables have the same names as the options, with
950 # dashes changed to underlines.
951 cache_file=/dev/null
952 exec_prefix=NONE
953 no_create=
954 no_recursion=
955 prefix=NONE
956 program_prefix=NONE
957 program_suffix=NONE
958 program_transform_name=s,x,x,
959 silent=
960 site=
961 srcdir=
962 verbose=
963 x_includes=NONE
964 x_libraries=NONE
966 # Installation directory options.
967 # These are left unexpanded so users can "make install exec_prefix=/foo"
968 # and all the variables that are supposed to be based on exec_prefix
969 # by default will actually change.
970 # Use braces instead of parens because sh, perl, etc. also accept them.
971 # (The list follows the same order as the GNU Coding Standards.)
972 bindir='${exec_prefix}/bin'
973 sbindir='${exec_prefix}/sbin'
974 libexecdir='${exec_prefix}/libexec'
975 datarootdir='${prefix}/share'
976 datadir='${datarootdir}'
977 sysconfdir='${prefix}/etc'
978 sharedstatedir='${prefix}/com'
979 localstatedir='${prefix}/var'
980 includedir='${prefix}/include'
981 oldincludedir='/usr/include'
982 docdir='${datarootdir}/doc/${PACKAGE}'
983 infodir='${datarootdir}/info'
984 htmldir='${docdir}'
985 dvidir='${docdir}'
986 pdfdir='${docdir}'
987 psdir='${docdir}'
988 libdir='${exec_prefix}/lib'
989 localedir='${datarootdir}/locale'
990 mandir='${datarootdir}/man'
992 ac_prev=
993 ac_dashdash=
994 for ac_option
996 # If the previous option needs an argument, assign it.
997 if test -n "$ac_prev"; then
998 eval $ac_prev=\$ac_option
999 ac_prev=
1000 continue
1003 case $ac_option in
1004 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 *) ac_optarg=yes ;;
1006 esac
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1010 case $ac_dashdash$ac_option in
1012 ac_dashdash=yes ;;
1014 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 ac_prev=bindir ;;
1016 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017 bindir=$ac_optarg ;;
1019 -build | --build | --buil | --bui | --bu)
1020 ac_prev=build_alias ;;
1021 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022 build_alias=$ac_optarg ;;
1024 -cache-file | --cache-file | --cache-fil | --cache-fi \
1025 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026 ac_prev=cache_file ;;
1027 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029 cache_file=$ac_optarg ;;
1031 --config-cache | -C)
1032 cache_file=config.cache ;;
1034 -datadir | --datadir | --datadi | --datad)
1035 ac_prev=datadir ;;
1036 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037 datadir=$ac_optarg ;;
1039 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040 | --dataroo | --dataro | --datar)
1041 ac_prev=datarootdir ;;
1042 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044 datarootdir=$ac_optarg ;;
1046 -disable-* | --disable-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error "invalid feature name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_$ac_useropt"
1056 "*) ;;
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1059 esac
1060 eval enable_$ac_useropt=no ;;
1062 -docdir | --docdir | --docdi | --doc | --do)
1063 ac_prev=docdir ;;
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 ac_prev=dvidir ;;
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
1072 -enable-* | --enable-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error "invalid feature name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "enable_$ac_useropt"
1082 "*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval enable_$ac_useropt=\$ac_optarg ;;
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1099 with_gas=yes ;;
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 ac_prev=htmldir ;;
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 | --ht=*)
1117 htmldir=$ac_optarg ;;
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 ac_prev=infodir ;;
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1131 -libdir | --libdir | --libdi | --libd)
1132 ac_prev=libdir ;;
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 ac_prev=mandir ;;
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1162 with_fp=no ;;
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1166 no_create=yes ;;
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 no_recursion=yes ;;
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 ac_prev=prefix ;;
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 ac_prev=pdfdir ;;
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1222 -psdir | --psdir | --psdi | --psd | --ps)
1223 ac_prev=psdir ;;
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 psdir=$ac_optarg ;;
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1229 silent=yes ;;
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 ac_prev=sbindir ;;
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 | --sbi=* | --sb=*)
1235 sbindir=$ac_optarg ;;
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1240 | --sha | --sh)
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 | --sha=* | --sh=*)
1246 sharedstatedir=$ac_optarg ;;
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1276 -with-* | --with-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error "invalid package name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1285 "with_$ac_useropt"
1286 "*) ;;
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1289 esac
1290 eval with_$ac_useropt=\$ac_optarg ;;
1292 -without-* | --without-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=no ;;
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1326 -*) as_fn_error "unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information."
1330 *=*)
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' | [0-9]* | *[!_$as_cr_alnum]* )
1335 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1336 esac
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 esac
1349 done
1351 if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error "missing argument to $ac_option"
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1358 no) ;;
1359 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 esac
1364 # Check all directory arguments for consistency.
1365 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1370 eval ac_val=\$$ac_var
1371 # Remove trailing slashes.
1372 case $ac_val in
1373 */ )
1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\$ac_val;;
1376 esac
1377 # Be sure to have absolute directory names.
1378 case $ac_val in
1379 [\\/$]* | ?:[\\/]* ) continue;;
1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381 esac
1382 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1383 done
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1388 build=$build_alias
1389 host=$host_alias
1390 target=$target_alias
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
1396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406 test "$silent" = yes && exec 6>/dev/null
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error "pwd does not report name of working directory"
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428 s//\1/
1431 /^X\(\/\/\)[^/].*/{
1432 s//\1/
1435 /^X\(\/\/\)$/{
1436 s//\1/
1439 /^X\(\/\).*/{
1440 s//\1/
1443 s/.*/./; q'`
1444 srcdir=$ac_confdir
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 srcdir=..
1448 else
1449 ac_srcdir_defaulted=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1458 pwd)`
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 srcdir=.
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1466 case $srcdir in
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 esac
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474 done
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1482 cat <<_ACEOF
1483 \`configure' configures this package to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1492 Configuration:
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 [PREFIX]
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1536 _ACEOF
1538 cat <<\_ACEOF
1540 Program names:
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1545 System types:
1546 --build=BUILD configure for building on BUILD [guessed]
1547 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1548 --target=TARGET configure for building compilers for TARGET [HOST]
1549 _ACEOF
1552 if test -n "$ac_init_help"; then
1554 cat <<\_ACEOF
1556 Optional Features:
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --enable-generated-files-in-srcdir
1561 put copies of generated files in source dir intended
1562 for creating source tarballs for users without
1563 texinfo bison or flex
1564 --disable-largefile omit support for large files
1565 --enable-werror-always enable -Werror despite compiler version
1566 --enable-checking[=LIST]
1567 enable expensive run-time checks. With LIST, enable
1568 only specific categories of checks. Categories are:
1569 yes,no,all,none,release. Flags are:
1570 assert,df,fold,gc,gcac,gimple,misc,
1571 rtlflag,rtl,runtime,tree,valgrind,types
1572 --enable-coverage[=LEVEL]
1573 enable compiler's code coverage collection. Use to
1574 measure compiler performance and locate unused parts
1575 of the compiler. With LEVEL, specify optimization.
1576 Values are opt, noopt, default is noopt
1577 --enable-gather-detailed-mem-stats
1578 enable detailed memory allocation stats gathering
1579 --enable-multilib enable library support for multiple ABIs
1580 --enable-multiarch enable support for multiarch paths
1581 --enable-__cxa_atexit enable __cxa_atexit for C++
1582 --enable-decimal-float={no,yes,bid,dpd}
1583 enable decimal float extension to C. Selecting 'bid'
1584 or 'dpd' choses which decimal floating point format
1585 to use
1586 --enable-fixed-point enable fixed-point arithmetic extension to C
1587 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1588 package
1589 --enable-tls enable or disable generation of tls code overriding
1590 the assembler check for tls support
1591 --enable-objc-gc enable the use of Boehm's garbage collector with the
1592 GNU Objective-C runtime
1593 --disable-shared don't provide a shared libgcc
1594 --enable-languages=LIST specify which front-ends to build
1595 --disable-rpath do not hardcode runtime library paths
1596 --enable-sjlj-exceptions
1597 arrange to use setjmp/longjmp exception handling
1598 --enable-secureplt enable -msecure-plt by default for PowerPC
1599 --enable-leading-mingw64-underscores
1600 enable leading underscores on 64 bit mingw targets
1601 --enable-cld enable -mcld by default for 32bit x86
1602 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1604 --disable-win32-registry
1605 disable lookup of installation paths in the Registry
1606 on Windows hosts
1607 --enable-win32-registry enable registry lookup (default)
1608 --enable-win32-registry=KEY
1609 use KEY instead of GCC version as the last portion
1610 of the registry key
1611 --enable-shared[=PKGS] build shared libraries [default=yes]
1612 --enable-static[=PKGS] build static libraries [default=yes]
1613 --enable-fast-install[=PKGS]
1614 optimize for fast installation [default=yes]
1615 --disable-libtool-lock avoid locking (might break parallel builds)
1616 --enable-gnu-indirect-function
1617 enable the use of the @gnu_indirect_function to
1618 glibc systems
1619 --enable-initfini-array use .init_array/.fini_array sections
1620 --enable-comdat enable COMDAT group support
1621 --enable-gnu-unique-object
1622 enable the use of the @gnu_unique_object ELF
1623 extension on glibc systems
1624 --enable-linker-build-id
1625 compiler will always pass --build-id to linker
1626 --enable-maintainer-mode
1627 enable make rules and dependencies not useful (and
1628 sometimes confusing) to the casual installer
1629 --enable-version-specific-runtime-libs
1630 specify that runtime libraries should be installed
1631 in a compiler-specific directory
1632 --enable-plugin enable plugin support
1633 --disable-libquadmath-support
1634 disable libquadmath support for Fortran
1636 Optional Packages:
1637 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1638 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1639 --with-build-libsubdir=DIR Directory where to find libraries for build system
1640 --with-local-prefix=DIR specifies directory to put local include
1641 --with-gxx-include-dir=DIR
1642 specifies directory to put g++ header files
1643 --with-cpp-install-dir=DIR
1644 install the user visible C preprocessor in DIR
1645 (relative to PREFIX) as well as PREFIX/bin
1646 --with-gnu-ld arrange to work with GNU ld
1647 --with-ld arrange to use the specified ld (full pathname)
1648 --with-demangler-in-ld try to use demangler in GNU ld
1649 --with-gnu-as arrange to work with GNU as
1650 --with-as arrange to use the specified as (full pathname)
1651 --with-stabs arrange to use stabs instead of host debug format
1652 --with-dwarf2 force the default debug format to be DWARF 2
1653 --with-native-system-header-dir=dir
1654 use dir as the directory to look for standard
1655 system header files in. Defaults to /usr/include.
1656 --with-build-sysroot=sysroot
1657 use sysroot as the system root during the build
1658 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1659 --with-specs=SPECS add SPECS to driver command-line processing
1660 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1661 --with-bugurl=URL Direct users to URL to report a bug
1662 --with-multilib-list select multilibs (SH and x86-64 only)
1663 --with-gnu-ld assume the C compiler uses GNU ld default=no
1664 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1665 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1666 --with-pic try to use only PIC/non-PIC objects [default=use
1667 both]
1668 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1669 --with-plugin-ld=[ARG] specify the plugin linker
1670 --with-long-double-128 use 128-bit long double by default
1671 --with-gc={page,zone} choose the garbage collection mechanism to use with
1672 the compiler
1673 --with-system-zlib use installed libz
1674 --with-linker-hash-style={sysv,gnu,both}
1675 specify the linker hash style
1677 Some influential environment variables:
1678 CC C compiler command
1679 CFLAGS C compiler flags
1680 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1681 nonstandard directory <lib dir>
1682 LIBS libraries to pass to the linker, e.g. -l<library>
1683 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1684 you have headers in a nonstandard directory <include dir>
1685 CXX C++ compiler command
1686 CXXFLAGS C++ compiler flags
1687 CPP C preprocessor
1688 CXXCPP C++ preprocessor
1689 GMPLIBS How to link GMP
1690 GMPINC How to find GMP include files
1691 ISLLIBS How to link ISL
1692 ISLINC How to find ISL include files
1693 CLOOGLIBS How to link CLOOG
1694 CLOOGINC How to find CLOOG include files
1696 Use these variables to override the choices made by `configure' or to help
1697 it to find libraries and programs with nonstandard names/locations.
1699 Report bugs to the package provider.
1700 _ACEOF
1701 ac_status=$?
1704 if test "$ac_init_help" = "recursive"; then
1705 # If there are subdirs, report their specific --help.
1706 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1707 test -d "$ac_dir" ||
1708 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1709 continue
1710 ac_builddir=.
1712 case "$ac_dir" in
1713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1716 # A ".." for each directory in $ac_dir_suffix.
1717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1718 case $ac_top_builddir_sub in
1719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1721 esac ;;
1722 esac
1723 ac_abs_top_builddir=$ac_pwd
1724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1725 # for backward compatibility:
1726 ac_top_builddir=$ac_top_build_prefix
1728 case $srcdir in
1729 .) # We are building in place.
1730 ac_srcdir=.
1731 ac_top_srcdir=$ac_top_builddir_sub
1732 ac_abs_top_srcdir=$ac_pwd ;;
1733 [\\/]* | ?:[\\/]* ) # Absolute name.
1734 ac_srcdir=$srcdir$ac_dir_suffix;
1735 ac_top_srcdir=$srcdir
1736 ac_abs_top_srcdir=$srcdir ;;
1737 *) # Relative name.
1738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1739 ac_top_srcdir=$ac_top_build_prefix$srcdir
1740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1741 esac
1742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1744 cd "$ac_dir" || { ac_status=$?; continue; }
1745 # Check for guested configure.
1746 if test -f "$ac_srcdir/configure.gnu"; then
1747 echo &&
1748 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1749 elif test -f "$ac_srcdir/configure"; then
1750 echo &&
1751 $SHELL "$ac_srcdir/configure" --help=recursive
1752 else
1753 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1754 fi || ac_status=$?
1755 cd "$ac_pwd" || { ac_status=$?; break; }
1756 done
1759 test -n "$ac_init_help" && exit $ac_status
1760 if $ac_init_version; then
1761 cat <<\_ACEOF
1762 configure
1763 generated by GNU Autoconf 2.64
1765 Copyright (C) 2009 Free Software Foundation, Inc.
1766 This configure script is free software; the Free Software Foundation
1767 gives unlimited permission to copy, distribute and modify it.
1768 _ACEOF
1769 exit
1772 ## ------------------------ ##
1773 ## Autoconf initialization. ##
1774 ## ------------------------ ##
1776 # ac_fn_c_try_compile LINENO
1777 # --------------------------
1778 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_compile ()
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 rm -f conftest.$ac_objext
1783 if { { ac_try="$ac_compile"
1784 case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_compile") 2>conftest.err
1791 ac_status=$?
1792 if test -s conftest.err; then
1793 grep -v '^ *+' conftest.err >conftest.er1
1794 cat conftest.er1 >&5
1795 mv -f conftest.er1 conftest.err
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && {
1799 test -z "$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1801 } && test -s conftest.$ac_objext; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1807 ac_retval=1
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 return $ac_retval
1812 } # ac_fn_c_try_compile
1814 # ac_fn_cxx_try_compile LINENO
1815 # ----------------------------
1816 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_cxx_try_compile ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 rm -f conftest.$ac_objext
1821 if { { ac_try="$ac_compile"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_compile") 2>conftest.err
1829 ac_status=$?
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_cxx_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest.$ac_objext; then :
1840 ac_retval=0
1841 else
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1845 ac_retval=1
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 return $ac_retval
1850 } # ac_fn_cxx_try_compile
1852 # ac_fn_c_try_cpp LINENO
1853 # ----------------------
1854 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_c_try_cpp ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_cpp conftest.$ac_ext"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1866 ac_status=$?
1867 if test -s conftest.err; then
1868 grep -v '^ *+' conftest.err >conftest.er1
1869 cat conftest.er1 >&5
1870 mv -f conftest.er1 conftest.err
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } >/dev/null && {
1874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1875 test ! -s conftest.err
1876 }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1882 ac_retval=1
1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885 return $ac_retval
1887 } # ac_fn_c_try_cpp
1889 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1890 # -------------------------------------------------------
1891 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1892 # the include files in INCLUDES and setting the cache variable VAR
1893 # accordingly.
1894 ac_fn_c_check_header_mongrel ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 else
1907 # Is the header compilable?
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1909 $as_echo_n "checking $2 usability... " >&6; }
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 ac_header_compiler=yes
1917 else
1918 ac_header_compiler=no
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1922 $as_echo "$ac_header_compiler" >&6; }
1924 # Is the header present?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1926 $as_echo_n "checking $2 presence... " >&6; }
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1929 #include <$2>
1930 _ACEOF
1931 if ac_fn_c_try_cpp "$LINENO"; then :
1932 ac_header_preproc=yes
1933 else
1934 ac_header_preproc=no
1936 rm -f conftest.err conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1938 $as_echo "$ac_header_preproc" >&6; }
1940 # So? What about this header?
1941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1942 yes:no: )
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1944 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1948 no:yes:* )
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1950 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1952 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1954 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1956 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1958 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960 esac
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1965 else
1966 eval "$3=\$ac_header_compiler"
1968 eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 } # ac_fn_c_check_header_mongrel
1976 # ac_fn_c_try_run LINENO
1977 # ----------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1979 # that executables *can* be run.
1980 ac_fn_c_try_run ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if { { ac_try="$ac_link"
1984 case "(($ac_try" in
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>&5
1991 ac_status=$?
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1994 { { case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_try") 2>&5
2001 ac_status=$?
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; }; }; then :
2004 ac_retval=0
2005 else
2006 $as_echo "$as_me: program exited with status $ac_status" >&5
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2010 ac_retval=$ac_status
2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014 return $ac_retval
2016 } # ac_fn_c_try_run
2018 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2019 # -------------------------------------------------------
2020 # Tests whether HEADER exists and can be compiled using the include files in
2021 # INCLUDES, setting the cache variable VAR accordingly.
2022 ac_fn_c_check_header_compile ()
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2033 #include <$2>
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 eval "$3=yes"
2037 else
2038 eval "$3=no"
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2047 } # ac_fn_c_check_header_compile
2049 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2050 # --------------------------------------------
2051 # Tries to find the compile-time value of EXPR in a program that includes
2052 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2053 # computed
2054 ac_fn_c_compute_int ()
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 if test "$cross_compiling" = yes; then
2058 # Depending upon the size, compute the lo and hi bounds.
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2063 main ()
2065 static int test_array [1 - 2 * !(($2) >= 0)];
2066 test_array [0] = 0
2069 return 0;
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_lo=0 ac_mid=0
2074 while :; do
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2079 main ()
2081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2082 test_array [0] = 0
2085 return 0;
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_hi=$ac_mid; break
2090 else
2091 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2092 if test $ac_lo -le $ac_mid; then
2093 ac_lo= ac_hi=
2094 break
2096 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 done
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2105 main ()
2107 static int test_array [1 - 2 * !(($2) < 0)];
2108 test_array [0] = 0
2111 return 0;
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_hi=-1 ac_mid=-1
2116 while :; do
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2121 main ()
2123 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2124 test_array [0] = 0
2127 return 0;
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131 ac_lo=$ac_mid; break
2132 else
2133 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2134 if test $ac_mid -le $ac_hi; then
2135 ac_lo= ac_hi=
2136 break
2138 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 done
2142 else
2143 ac_lo= ac_hi=
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 # Binary search between lo and hi bounds.
2149 while test "x$ac_lo" != "x$ac_hi"; do
2150 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2155 main ()
2157 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2158 test_array [0] = 0
2161 return 0;
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 ac_hi=$ac_mid
2166 else
2167 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 done
2171 case $ac_lo in #((
2172 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2173 '') ac_retval=1 ;;
2174 esac
2175 else
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2179 static long int longval () { return $2; }
2180 static unsigned long int ulongval () { return $2; }
2181 #include <stdio.h>
2182 #include <stdlib.h>
2184 main ()
2187 FILE *f = fopen ("conftest.val", "w");
2188 if (! f)
2189 return 1;
2190 if (($2) < 0)
2192 long int i = longval ();
2193 if (i != ($2))
2194 return 1;
2195 fprintf (f, "%ld", i);
2197 else
2199 unsigned long int i = ulongval ();
2200 if (i != ($2))
2201 return 1;
2202 fprintf (f, "%lu", i);
2204 /* Do not output a trailing newline, as this causes \r\n confusion
2205 on some platforms. */
2206 return ferror (f) || fclose (f) != 0;
2209 return 0;
2211 _ACEOF
2212 if ac_fn_c_try_run "$LINENO"; then :
2213 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2214 else
2215 ac_retval=1
2217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2218 conftest.$ac_objext conftest.beam conftest.$ac_ext
2219 rm -f conftest.val
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223 return $ac_retval
2225 } # ac_fn_c_compute_int
2227 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2228 # -------------------------------------------
2229 # Tests whether TYPE exists after having included INCLUDES, setting cache
2230 # variable VAR accordingly.
2231 ac_fn_c_check_type ()
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235 $as_echo_n "checking for $2... " >&6; }
2236 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2237 $as_echo_n "(cached) " >&6
2238 else
2239 eval "$3=no"
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2244 main ()
2246 if (sizeof ($2))
2247 return 0;
2249 return 0;
2251 _ACEOF
2252 if ac_fn_c_try_compile "$LINENO"; then :
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2257 main ()
2259 if (sizeof (($2)))
2260 return 0;
2262 return 0;
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2267 else
2268 eval "$3=yes"
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 eval ac_res=\$$3
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276 $as_echo "$ac_res" >&6; }
2277 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2279 } # ac_fn_c_check_type
2281 # ac_fn_c_find_intX_t LINENO BITS VAR
2282 # -----------------------------------
2283 # Finds a signed integer type with width BITS, setting cache variable VAR
2284 # accordingly.
2285 ac_fn_c_find_intX_t ()
2287 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2289 $as_echo_n "checking for int$2_t... " >&6; }
2290 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 eval "$3=no"
2294 for ac_type in int$2_t 'int' 'long int' \
2295 'long long int' 'short int' 'signed char'; do
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2298 $ac_includes_default
2300 main ()
2302 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2303 test_array [0] = 0
2306 return 0;
2308 _ACEOF
2309 if ac_fn_c_try_compile "$LINENO"; then :
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 $ac_includes_default
2314 main ()
2316 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2317 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2318 test_array [0] = 0
2321 return 0;
2323 _ACEOF
2324 if ac_fn_c_try_compile "$LINENO"; then :
2326 else
2327 case $ac_type in #(
2328 int$2_t) :
2329 eval "$3=yes" ;; #(
2330 *) :
2331 eval "$3=\$ac_type" ;;
2332 esac
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 eval as_val=\$$3
2338 if test "x$as_val" = x""no; then :
2340 else
2341 break
2343 done
2345 eval ac_res=\$$3
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347 $as_echo "$ac_res" >&6; }
2348 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2350 } # ac_fn_c_find_intX_t
2352 # ac_fn_c_try_link LINENO
2353 # -----------------------
2354 # Try to link conftest.$ac_ext, and return whether this succeeded.
2355 ac_fn_c_try_link ()
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 rm -f conftest.$ac_objext conftest$ac_exeext
2359 if { { ac_try="$ac_link"
2360 case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363 esac
2364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365 $as_echo "$ac_try_echo"; } >&5
2366 (eval "$ac_link") 2>conftest.err
2367 ac_status=$?
2368 if test -s conftest.err; then
2369 grep -v '^ *+' conftest.err >conftest.er1
2370 cat conftest.er1 >&5
2371 mv -f conftest.er1 conftest.err
2373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374 test $ac_status = 0; } && {
2375 test -z "$ac_c_werror_flag" ||
2376 test ! -s conftest.err
2377 } && test -s conftest$ac_exeext && {
2378 test "$cross_compiling" = yes ||
2379 $as_test_x conftest$ac_exeext
2380 }; then :
2381 ac_retval=0
2382 else
2383 $as_echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2386 ac_retval=1
2388 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2389 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2390 # interfere with the next link command; also delete a directory that is
2391 # left behind by Apple's compiler. We do this before executing the actions.
2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 return $ac_retval
2396 } # ac_fn_c_try_link
2398 # ac_fn_c_find_uintX_t LINENO BITS VAR
2399 # ------------------------------------
2400 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2401 # accordingly.
2402 ac_fn_c_find_uintX_t ()
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2406 $as_echo_n "checking for uint$2_t... " >&6; }
2407 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2408 $as_echo_n "(cached) " >&6
2409 else
2410 eval "$3=no"
2411 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2412 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2415 $ac_includes_default
2417 main ()
2419 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2420 test_array [0] = 0
2423 return 0;
2425 _ACEOF
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427 case $ac_type in #(
2428 uint$2_t) :
2429 eval "$3=yes" ;; #(
2430 *) :
2431 eval "$3=\$ac_type" ;;
2432 esac
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 eval as_val=\$$3
2436 if test "x$as_val" = x""no; then :
2438 else
2439 break
2441 done
2443 eval ac_res=\$$3
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2448 } # ac_fn_c_find_uintX_t
2450 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2451 # ----------------------------------------------
2452 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2453 ac_fn_c_check_header_preproc ()
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457 $as_echo_n "checking for $2... " >&6; }
2458 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2463 #include <$2>
2464 _ACEOF
2465 if ac_fn_c_try_cpp "$LINENO"; then :
2466 eval "$3=yes"
2467 else
2468 eval "$3=no"
2470 rm -f conftest.err conftest.$ac_ext
2472 eval ac_res=\$$3
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2477 } # ac_fn_c_check_header_preproc
2479 # ac_fn_cxx_try_cpp LINENO
2480 # ------------------------
2481 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2482 ac_fn_cxx_try_cpp ()
2484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485 if { { ac_try="$ac_cpp conftest.$ac_ext"
2486 case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489 esac
2490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2491 $as_echo "$ac_try_echo"; } >&5
2492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2493 ac_status=$?
2494 if test -s conftest.err; then
2495 grep -v '^ *+' conftest.err >conftest.er1
2496 cat conftest.er1 >&5
2497 mv -f conftest.er1 conftest.err
2499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2500 test $ac_status = 0; } >/dev/null && {
2501 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2502 test ! -s conftest.err
2503 }; then :
2504 ac_retval=0
2505 else
2506 $as_echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2509 ac_retval=1
2511 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2512 return $ac_retval
2514 } # ac_fn_cxx_try_cpp
2516 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2517 # ------------------------------------------------
2518 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2519 ac_fn_cxx_check_header_preproc ()
2521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2523 $as_echo_n "checking for $2... " >&6; }
2524 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2525 $as_echo_n "(cached) " >&6
2526 else
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2529 #include <$2>
2530 _ACEOF
2531 if ac_fn_cxx_try_cpp "$LINENO"; then :
2532 eval "$3=yes"
2533 else
2534 eval "$3=no"
2536 rm -f conftest.err conftest.$ac_ext
2538 eval ac_res=\$$3
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2540 $as_echo "$ac_res" >&6; }
2541 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2543 } # ac_fn_cxx_check_header_preproc
2545 # ac_fn_c_check_func LINENO FUNC VAR
2546 # ----------------------------------
2547 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2548 ac_fn_c_check_func ()
2550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2552 $as_echo_n "checking for $2... " >&6; }
2553 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557 /* end confdefs.h. */
2558 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2560 #define $2 innocuous_$2
2562 /* System header to define __stub macros and hopefully few prototypes,
2563 which can conflict with char $2 (); below.
2564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2565 <limits.h> exists even on freestanding compilers. */
2567 #ifdef __STDC__
2568 # include <limits.h>
2569 #else
2570 # include <assert.h>
2571 #endif
2573 #undef $2
2575 /* Override any GCC internal prototype to avoid an error.
2576 Use char because int might match the return type of a GCC
2577 builtin and then its argument prototype would still apply. */
2578 #ifdef __cplusplus
2579 extern "C"
2580 #endif
2581 char $2 ();
2582 /* The GNU C library defines this for functions which it implements
2583 to always fail with ENOSYS. Some functions are actually named
2584 something starting with __ and the normal name is an alias. */
2585 #if defined __stub_$2 || defined __stub___$2
2586 choke me
2587 #endif
2590 main ()
2592 return $2 ();
2594 return 0;
2596 _ACEOF
2597 if ac_fn_c_try_link "$LINENO"; then :
2598 eval "$3=yes"
2599 else
2600 eval "$3=no"
2602 rm -f core conftest.err conftest.$ac_objext \
2603 conftest$ac_exeext conftest.$ac_ext
2605 eval ac_res=\$$3
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2607 $as_echo "$ac_res" >&6; }
2608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2610 } # ac_fn_c_check_func
2612 # ac_fn_cxx_try_link LINENO
2613 # -------------------------
2614 # Try to link conftest.$ac_ext, and return whether this succeeded.
2615 ac_fn_cxx_try_link ()
2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618 rm -f conftest.$ac_objext conftest$ac_exeext
2619 if { { ac_try="$ac_link"
2620 case "(($ac_try" in
2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2623 esac
2624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2625 $as_echo "$ac_try_echo"; } >&5
2626 (eval "$ac_link") 2>conftest.err
2627 ac_status=$?
2628 if test -s conftest.err; then
2629 grep -v '^ *+' conftest.err >conftest.er1
2630 cat conftest.er1 >&5
2631 mv -f conftest.er1 conftest.err
2633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2634 test $ac_status = 0; } && {
2635 test -z "$ac_cxx_werror_flag" ||
2636 test ! -s conftest.err
2637 } && test -s conftest$ac_exeext && {
2638 test "$cross_compiling" = yes ||
2639 $as_test_x conftest$ac_exeext
2640 }; then :
2641 ac_retval=0
2642 else
2643 $as_echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2646 ac_retval=1
2648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2650 # interfere with the next link command; also delete a directory that is
2651 # left behind by Apple's compiler. We do this before executing the actions.
2652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2654 return $ac_retval
2656 } # ac_fn_cxx_try_link
2657 cat >config.log <<_ACEOF
2658 This file contains any messages produced by compilers while
2659 running configure, to aid debugging if configure makes a mistake.
2661 It was created by $as_me, which was
2662 generated by GNU Autoconf 2.64. Invocation command line was
2664 $ $0 $@
2666 _ACEOF
2667 exec 5>>config.log
2669 cat <<_ASUNAME
2670 ## --------- ##
2671 ## Platform. ##
2672 ## --------- ##
2674 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2675 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2676 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2677 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2678 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2680 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2681 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2683 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2684 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2685 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2686 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2687 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2688 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2689 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2691 _ASUNAME
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 $as_echo "PATH: $as_dir"
2699 done
2700 IFS=$as_save_IFS
2702 } >&5
2704 cat >&5 <<_ACEOF
2707 ## ----------- ##
2708 ## Core tests. ##
2709 ## ----------- ##
2711 _ACEOF
2714 # Keep a trace of the command line.
2715 # Strip out --no-create and --no-recursion so they do not pile up.
2716 # Strip out --silent because we don't want to record it for future runs.
2717 # Also quote any args containing shell meta-characters.
2718 # Make two passes to allow for proper duplicate-argument suppression.
2719 ac_configure_args=
2720 ac_configure_args0=
2721 ac_configure_args1=
2722 ac_must_keep_next=false
2723 for ac_pass in 1 2
2725 for ac_arg
2727 case $ac_arg in
2728 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2730 | -silent | --silent | --silen | --sile | --sil)
2731 continue ;;
2732 *\'*)
2733 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2734 esac
2735 case $ac_pass in
2736 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2738 as_fn_append ac_configure_args1 " '$ac_arg'"
2739 if test $ac_must_keep_next = true; then
2740 ac_must_keep_next=false # Got value, back to normal.
2741 else
2742 case $ac_arg in
2743 *=* | --config-cache | -C | -disable-* | --disable-* \
2744 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2745 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2746 | -with-* | --with-* | -without-* | --without-* | --x)
2747 case "$ac_configure_args0 " in
2748 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2749 esac
2751 -* ) ac_must_keep_next=true ;;
2752 esac
2754 as_fn_append ac_configure_args " '$ac_arg'"
2756 esac
2757 done
2758 done
2759 { ac_configure_args0=; unset ac_configure_args0;}
2760 { ac_configure_args1=; unset ac_configure_args1;}
2762 # When interrupted or exit'd, cleanup temporary files, and complete
2763 # config.log. We remove comments because anyway the quotes in there
2764 # would cause problems or look ugly.
2765 # WARNING: Use '\'' to represent an apostrophe within the trap.
2766 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2767 trap 'exit_status=$?
2768 # Save into config.log some information that might help in debugging.
2770 echo
2772 cat <<\_ASBOX
2773 ## ---------------- ##
2774 ## Cache variables. ##
2775 ## ---------------- ##
2776 _ASBOX
2777 echo
2778 # The following way of writing the cache mishandles newlines in values,
2780 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2781 eval ac_val=\$$ac_var
2782 case $ac_val in #(
2783 *${as_nl}*)
2784 case $ac_var in #(
2785 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2786 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2787 esac
2788 case $ac_var in #(
2789 _ | IFS | as_nl) ;; #(
2790 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2791 *) { eval $ac_var=; unset $ac_var;} ;;
2792 esac ;;
2793 esac
2794 done
2795 (set) 2>&1 |
2796 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2797 *${as_nl}ac_space=\ *)
2798 sed -n \
2799 "s/'\''/'\''\\\\'\'''\''/g;
2800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2801 ;; #(
2803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2805 esac |
2806 sort
2808 echo
2810 cat <<\_ASBOX
2811 ## ----------------- ##
2812 ## Output variables. ##
2813 ## ----------------- ##
2814 _ASBOX
2815 echo
2816 for ac_var in $ac_subst_vars
2818 eval ac_val=\$$ac_var
2819 case $ac_val in
2820 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2821 esac
2822 $as_echo "$ac_var='\''$ac_val'\''"
2823 done | sort
2824 echo
2826 if test -n "$ac_subst_files"; then
2827 cat <<\_ASBOX
2828 ## ------------------- ##
2829 ## File substitutions. ##
2830 ## ------------------- ##
2831 _ASBOX
2832 echo
2833 for ac_var in $ac_subst_files
2835 eval ac_val=\$$ac_var
2836 case $ac_val in
2837 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2838 esac
2839 $as_echo "$ac_var='\''$ac_val'\''"
2840 done | sort
2841 echo
2844 if test -s confdefs.h; then
2845 cat <<\_ASBOX
2846 ## ----------- ##
2847 ## confdefs.h. ##
2848 ## ----------- ##
2849 _ASBOX
2850 echo
2851 cat confdefs.h
2852 echo
2854 test "$ac_signal" != 0 &&
2855 $as_echo "$as_me: caught signal $ac_signal"
2856 $as_echo "$as_me: exit $exit_status"
2857 } >&5
2858 rm -f core *.core core.conftest.* &&
2859 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2860 exit $exit_status
2862 for ac_signal in 1 2 13 15; do
2863 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2864 done
2865 ac_signal=0
2867 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2868 rm -f -r conftest* confdefs.h
2870 $as_echo "/* confdefs.h */" > confdefs.h
2872 # Predefined preprocessor variables.
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_NAME "$PACKAGE_NAME"
2876 _ACEOF
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2880 _ACEOF
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2884 _ACEOF
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_STRING "$PACKAGE_STRING"
2888 _ACEOF
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2892 _ACEOF
2894 cat >>confdefs.h <<_ACEOF
2895 #define PACKAGE_URL "$PACKAGE_URL"
2896 _ACEOF
2899 # Let the site file select an alternate cache file if it wants to.
2900 # Prefer an explicitly selected file to automatically selected ones.
2901 ac_site_file1=NONE
2902 ac_site_file2=NONE
2903 if test -n "$CONFIG_SITE"; then
2904 ac_site_file1=$CONFIG_SITE
2905 elif test "x$prefix" != xNONE; then
2906 ac_site_file1=$prefix/share/config.site
2907 ac_site_file2=$prefix/etc/config.site
2908 else
2909 ac_site_file1=$ac_default_prefix/share/config.site
2910 ac_site_file2=$ac_default_prefix/etc/config.site
2912 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2914 test "x$ac_site_file" = xNONE && continue
2915 if test -r "$ac_site_file"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2917 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2918 sed 's/^/| /' "$ac_site_file" >&5
2919 . "$ac_site_file"
2921 done
2923 if test -r "$cache_file"; then
2924 # Some versions of bash will fail to source /dev/null (special
2925 # files actually), so we avoid doing that.
2926 if test -f "$cache_file"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2928 $as_echo "$as_me: loading cache $cache_file" >&6;}
2929 case $cache_file in
2930 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2931 *) . "./$cache_file";;
2932 esac
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2936 $as_echo "$as_me: creating cache $cache_file" >&6;}
2937 >$cache_file
2940 # Check that the precious variables saved in the cache have kept the same
2941 # value.
2942 ac_cache_corrupted=false
2943 for ac_var in $ac_precious_vars; do
2944 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2945 eval ac_new_set=\$ac_env_${ac_var}_set
2946 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2947 eval ac_new_val=\$ac_env_${ac_var}_value
2948 case $ac_old_set,$ac_new_set in
2949 set,)
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2951 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2952 ac_cache_corrupted=: ;;
2953 ,set)
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2955 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2956 ac_cache_corrupted=: ;;
2957 ,);;
2959 if test "x$ac_old_val" != "x$ac_new_val"; then
2960 # differences in whitespace do not lead to failure.
2961 ac_old_val_w=`echo x $ac_old_val`
2962 ac_new_val_w=`echo x $ac_new_val`
2963 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2965 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2966 ac_cache_corrupted=:
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2969 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2970 eval $ac_var=\$ac_old_val
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2973 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2975 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2976 fi;;
2977 esac
2978 # Pass precious variables to config.status.
2979 if test "$ac_new_set" = set; then
2980 case $ac_new_val in
2981 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2982 *) ac_arg=$ac_var=$ac_new_val ;;
2983 esac
2984 case " $ac_configure_args " in
2985 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2986 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2987 esac
2989 done
2990 if $ac_cache_corrupted; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2994 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2995 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2997 ## -------------------- ##
2998 ## Main body of script. ##
2999 ## -------------------- ##
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3015 gcc_version=`cat $srcdir/BASE-VER`
3017 # Determine the host, build, and target systems
3018 ac_aux_dir=
3019 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3020 for ac_t in install-sh install.sh shtool; do
3021 if test -f "$ac_dir/$ac_t"; then
3022 ac_aux_dir=$ac_dir
3023 ac_install_sh="$ac_aux_dir/$ac_t -c"
3024 break 2
3026 done
3027 done
3028 if test -z "$ac_aux_dir"; then
3029 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3032 # These three variables are undocumented and unsupported,
3033 # and are intended to be withdrawn in a future Autoconf release.
3034 # They can cause serious problems if a builder's source tree is in a directory
3035 # whose full name contains unusual characters.
3036 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3037 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3038 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3041 # Make sure we can run config.sub.
3042 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3043 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3046 $as_echo_n "checking build system type... " >&6; }
3047 if test "${ac_cv_build+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
3049 else
3050 ac_build_alias=$build_alias
3051 test "x$ac_build_alias" = x &&
3052 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3053 test "x$ac_build_alias" = x &&
3054 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3055 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3056 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3060 $as_echo "$ac_cv_build" >&6; }
3061 case $ac_cv_build in
3062 *-*-*) ;;
3063 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3064 esac
3065 build=$ac_cv_build
3066 ac_save_IFS=$IFS; IFS='-'
3067 set x $ac_cv_build
3068 shift
3069 build_cpu=$1
3070 build_vendor=$2
3071 shift; shift
3072 # Remember, the first character of IFS is used to create $*,
3073 # except with old shells:
3074 build_os=$*
3075 IFS=$ac_save_IFS
3076 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3080 $as_echo_n "checking host system type... " >&6; }
3081 if test "${ac_cv_host+set}" = set; then :
3082 $as_echo_n "(cached) " >&6
3083 else
3084 if test "x$host_alias" = x; then
3085 ac_cv_host=$ac_cv_build
3086 else
3087 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3088 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3093 $as_echo "$ac_cv_host" >&6; }
3094 case $ac_cv_host in
3095 *-*-*) ;;
3096 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3097 esac
3098 host=$ac_cv_host
3099 ac_save_IFS=$IFS; IFS='-'
3100 set x $ac_cv_host
3101 shift
3102 host_cpu=$1
3103 host_vendor=$2
3104 shift; shift
3105 # Remember, the first character of IFS is used to create $*,
3106 # except with old shells:
3107 host_os=$*
3108 IFS=$ac_save_IFS
3109 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3113 $as_echo_n "checking target system type... " >&6; }
3114 if test "${ac_cv_target+set}" = set; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test "x$target_alias" = x; then
3118 ac_cv_target=$ac_cv_host
3119 else
3120 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3121 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3126 $as_echo "$ac_cv_target" >&6; }
3127 case $ac_cv_target in
3128 *-*-*) ;;
3129 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3130 esac
3131 target=$ac_cv_target
3132 ac_save_IFS=$IFS; IFS='-'
3133 set x $ac_cv_target
3134 shift
3135 target_cpu=$1
3136 target_vendor=$2
3137 shift; shift
3138 # Remember, the first character of IFS is used to create $*,
3139 # except with old shells:
3140 target_os=$*
3141 IFS=$ac_save_IFS
3142 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3145 # The aliases save the names the user supplied, while $host etc.
3146 # will get canonicalized.
3147 test -n "$target_alias" &&
3148 test "$program_prefix$program_suffix$program_transform_name" = \
3149 NONENONEs,x,x, &&
3150 program_prefix=${target_alias}-
3152 # Determine the noncanonical target name, for directory use.
3153 case ${build_alias} in
3154 "") build_noncanonical=${build} ;;
3155 *) build_noncanonical=${build_alias} ;;
3156 esac
3158 case ${host_alias} in
3159 "") host_noncanonical=${build_noncanonical} ;;
3160 *) host_noncanonical=${host_alias} ;;
3161 esac
3163 case ${target_alias} in
3164 "") target_noncanonical=${host_noncanonical} ;;
3165 *) target_noncanonical=${target_alias} ;;
3166 esac
3171 # Determine the target- and build-specific subdirectories
3173 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3174 # have matching libraries, they should use host libraries: Makefile.tpl
3175 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3176 # However, they still use the build modules, because the corresponding
3177 # host modules (e.g. bison) are only built for the host when bootstrap
3178 # finishes. So:
3179 # - build_subdir is where we find build modules, and never changes.
3180 # - build_libsubdir is where we find build libraries, and can be overridden.
3182 # Prefix 'build-' so this never conflicts with target_subdir.
3183 build_subdir="build-${build_noncanonical}"
3185 # Check whether --with-build-libsubdir was given.
3186 if test "${with_build_libsubdir+set}" = set; then :
3187 withval=$with_build_libsubdir; build_libsubdir="$withval"
3188 else
3189 build_libsubdir="$build_subdir"
3192 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3193 if ( test $srcdir = . && test -d gcc ) \
3194 || test -d $srcdir/../host-${host_noncanonical}; then
3195 host_subdir="host-${host_noncanonical}"
3196 else
3197 host_subdir=.
3199 # No prefix.
3200 target_subdir=${target_noncanonical}
3203 # Set program_transform_name
3204 test "$program_prefix" != NONE &&
3205 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3206 # Use a double $ so make ignores it.
3207 test "$program_suffix" != NONE &&
3208 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3209 # Double any \ or $.
3210 # By default was `s,x,x', remove it if useless.
3211 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3212 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3215 # Check for bogus environment variables.
3216 # Test if LIBRARY_PATH contains the notation for the current directory
3217 # since this would lead to problems installing/building glibc.
3218 # LIBRARY_PATH contains the current directory if one of the following
3219 # is true:
3220 # - one of the terminals (":" and ";") is the first or last sign
3221 # - two terminals occur directly after each other
3222 # - the path contains an element with a dot in it
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3224 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3225 case ${LIBRARY_PATH} in
3226 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3227 library_path_setting="contains current directory"
3230 library_path_setting="ok"
3232 esac
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3234 $as_echo "$library_path_setting" >&6; }
3235 if test "$library_path_setting" != "ok"; then
3236 as_fn_error "
3237 *** LIBRARY_PATH shouldn't contain the current directory when
3238 *** building gcc. Please change the environment variable
3239 *** and run configure again." "$LINENO" 5
3242 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3243 # since this would lead to problems installing/building glibc.
3244 # GCC_EXEC_PREFIX contains the current directory if one of the following
3245 # is true:
3246 # - one of the terminals (":" and ";") is the first or last sign
3247 # - two terminals occur directly after each other
3248 # - the path contains an element with a dot in it
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3250 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3251 case ${GCC_EXEC_PREFIX} in
3252 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3253 gcc_exec_prefix_setting="contains current directory"
3256 gcc_exec_prefix_setting="ok"
3258 esac
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3260 $as_echo "$gcc_exec_prefix_setting" >&6; }
3261 if test "$gcc_exec_prefix_setting" != "ok"; then
3262 as_fn_error "
3263 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3264 *** building gcc. Please change the environment variable
3265 *** and run configure again." "$LINENO" 5
3268 # -----------
3269 # Directories
3270 # -----------
3272 # Specify the local prefix
3273 local_prefix=
3275 # Check whether --with-local-prefix was given.
3276 if test "${with_local_prefix+set}" = set; then :
3277 withval=$with_local_prefix; case "${withval}" in
3278 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3279 no) ;;
3280 *) local_prefix=$with_local_prefix ;;
3281 esac
3285 # Default local prefix if it is empty
3286 if test x$local_prefix = x; then
3287 local_prefix=/usr/local
3290 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3291 # passed in by the toplevel make and thus we'd get different behavior
3292 # depending on where we built the sources.
3293 gcc_gxx_include_dir=
3294 # Specify the g++ header file directory
3296 # Check whether --with-gxx-include-dir was given.
3297 if test "${with_gxx_include_dir+set}" = set; then :
3298 withval=$with_gxx_include_dir; case "${withval}" in
3299 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3300 no) ;;
3301 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3302 esac
3306 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3307 if test x${gcc_gxx_include_dir} = x; then
3308 if test x${enable_version_specific_runtime_libs} = xyes; then
3309 gcc_gxx_include_dir='${libsubdir}/include/c++'
3310 else
3311 libstdcxx_incdir='include/c++/$(version)'
3312 if test x$host != x$target; then
3313 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3315 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3319 gcc_gxx_include_dir_add_sysroot=0
3320 if test "${with_sysroot+set}" = set; then
3321 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3322 if test "${gcc_gxx_without_sysroot}"; then
3323 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3324 gcc_gxx_include_dir_add_sysroot=1
3329 # Check whether --with-cpp_install_dir was given.
3330 if test "${with_cpp_install_dir+set}" = set; then :
3331 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3332 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3333 elif test x$withval != xno; then
3334 cpp_install_dir=$withval
3339 # We would like to our source tree to be readonly. However when releases or
3340 # pre-releases are generated, the flex/bison generated files as well as the
3341 # various formats of manuals need to be included along with the rest of the
3342 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3343 # just that.
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3346 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3347 # Check whether --enable-generated-files-in-srcdir was given.
3348 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3349 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3350 else
3351 generated_files_in_srcdir=no
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3356 $as_echo "$generated_files_in_srcdir" >&6; }
3358 if test "$generated_files_in_srcdir" = "yes"; then
3359 GENINSRC=''
3360 else
3361 GENINSRC='#'
3365 # -------------------
3366 # Find default linker
3367 # -------------------
3369 # With GNU ld
3371 # Check whether --with-gnu-ld was given.
3372 if test "${with_gnu_ld+set}" = set; then :
3373 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3374 else
3375 gnu_ld_flag=no
3379 # With pre-defined ld
3381 # Check whether --with-ld was given.
3382 if test "${with_ld+set}" = set; then :
3383 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3386 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3387 if test ! -x "$DEFAULT_LINKER"; then
3388 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3389 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3390 gnu_ld_flag=yes
3393 cat >>confdefs.h <<_ACEOF
3394 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3395 _ACEOF
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3400 $as_echo_n "checking whether a default linker was specified... " >&6; }
3401 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3402 if test x"$gnu_ld_flag" = x"no"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3404 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3407 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3409 else
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3414 # With demangler in GNU ld
3416 # Check whether --with-demangler-in-ld was given.
3417 if test "${with_demangler_in_ld+set}" = set; then :
3418 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3419 else
3420 demangler_in_ld=yes
3424 # ----------------------
3425 # Find default assembler
3426 # ----------------------
3428 # With GNU as
3430 # Check whether --with-gnu-as was given.
3431 if test "${with_gnu_as+set}" = set; then :
3432 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3433 else
3434 gas_flag=no
3439 # Check whether --with-as was given.
3440 if test "${with_as+set}" = set; then :
3441 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3444 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3445 if test ! -x "$DEFAULT_ASSEMBLER"; then
3446 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3447 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3448 gas_flag=yes
3451 cat >>confdefs.h <<_ACEOF
3452 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3453 _ACEOF
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3458 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3459 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3460 if test x"$gas_flag" = x"no"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3462 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3463 else
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3465 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3467 else
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3472 # ---------------
3473 # Find C compiler
3474 # ---------------
3476 # If a non-executable a.out is present (e.g. created by GNU as above even if
3477 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3478 # file, even when creating an executable, so an execution test fails.
3479 # Remove possible default executable files to avoid this.
3481 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3482 # Autoconf includes it.
3483 rm -f a.out a.exe b.out
3485 # Find the native compiler
3486 ac_ext=c
3487 ac_cpp='$CPP $CPPFLAGS'
3488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491 if test -n "$ac_tool_prefix"; then
3492 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3493 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_CC+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC="$CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3513 done
3514 done
3515 IFS=$as_save_IFS
3519 CC=$ac_cv_prog_CC
3520 if test -n "$CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3522 $as_echo "$CC" >&6; }
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3530 if test -z "$ac_cv_prog_CC"; then
3531 ac_ct_CC=$CC
3532 # Extract the first word of "gcc", so it can be a program name with args.
3533 set dummy gcc; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 if test -n "$ac_ct_CC"; then
3540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_ac_ct_CC="gcc"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3553 done
3554 done
3555 IFS=$as_save_IFS
3559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3562 $as_echo "$ac_ct_CC" >&6; }
3563 else
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3568 if test "x$ac_ct_CC" = x; then
3569 CC=""
3570 else
3571 case $cross_compiling:$ac_tool_warned in
3572 yes:)
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3575 ac_tool_warned=yes ;;
3576 esac
3577 CC=$ac_ct_CC
3579 else
3580 CC="$ac_cv_prog_CC"
3583 if test -z "$CC"; then
3584 if test -n "$ac_tool_prefix"; then
3585 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3586 set dummy ${ac_tool_prefix}cc; ac_word=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if test "${ac_cv_prog_CC+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 if test -n "$CC"; then
3593 ac_cv_prog_CC="$CC" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3602 ac_cv_prog_CC="${ac_tool_prefix}cc"
3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3606 done
3607 done
3608 IFS=$as_save_IFS
3612 CC=$ac_cv_prog_CC
3613 if test -n "$CC"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615 $as_echo "$CC" >&6; }
3616 else
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3624 if test -z "$CC"; then
3625 # Extract the first word of "cc", so it can be a program name with args.
3626 set dummy cc; ac_word=$2
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628 $as_echo_n "checking for $ac_word... " >&6; }
3629 if test "${ac_cv_prog_CC+set}" = set; then :
3630 $as_echo_n "(cached) " >&6
3631 else
3632 if test -n "$CC"; then
3633 ac_cv_prog_CC="$CC" # Let the user override the test.
3634 else
3635 ac_prog_rejected=no
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3644 ac_prog_rejected=yes
3645 continue
3647 ac_cv_prog_CC="cc"
3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 break 2
3651 done
3652 done
3653 IFS=$as_save_IFS
3655 if test $ac_prog_rejected = yes; then
3656 # We found a bogon in the path, so make sure we never use it.
3657 set dummy $ac_cv_prog_CC
3658 shift
3659 if test $# != 0; then
3660 # We chose a different compiler from the bogus one.
3661 # However, it has the same basename, so the bogon will be chosen
3662 # first if we set CC to just the basename; use the full file name.
3663 shift
3664 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3669 CC=$ac_cv_prog_CC
3670 if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 $as_echo "$CC" >&6; }
3673 else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3680 if test -z "$CC"; then
3681 if test -n "$ac_tool_prefix"; then
3682 for ac_prog in cl.exe
3684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if test "${ac_cv_prog_CC+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 if test -n "$CC"; then
3692 ac_cv_prog_CC="$CC" # Let the user override the test.
3693 else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3705 done
3706 done
3707 IFS=$as_save_IFS
3711 CC=$ac_cv_prog_CC
3712 if test -n "$CC"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3714 $as_echo "$CC" >&6; }
3715 else
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3721 test -n "$CC" && break
3722 done
3724 if test -z "$CC"; then
3725 ac_ct_CC=$CC
3726 for ac_prog in cl.exe
3728 # Extract the first word of "$ac_prog", so it can be a program name with args.
3729 set dummy $ac_prog; ac_word=$2
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 $as_echo_n "checking for $ac_word... " >&6; }
3732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 if test -n "$ac_ct_CC"; then
3736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3745 ac_cv_prog_ac_ct_CC="$ac_prog"
3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3749 done
3750 done
3751 IFS=$as_save_IFS
3755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3756 if test -n "$ac_ct_CC"; then
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3758 $as_echo "$ac_ct_CC" >&6; }
3759 else
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 $as_echo "no" >&6; }
3765 test -n "$ac_ct_CC" && break
3766 done
3768 if test "x$ac_ct_CC" = x; then
3769 CC=""
3770 else
3771 case $cross_compiling:$ac_tool_warned in
3772 yes:)
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3775 ac_tool_warned=yes ;;
3776 esac
3777 CC=$ac_ct_CC
3784 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3786 as_fn_error "no acceptable C compiler found in \$PATH
3787 See \`config.log' for more details." "$LINENO" 5; }
3789 # Provide some information about the compiler.
3790 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3791 set X $ac_compile
3792 ac_compiler=$2
3793 for ac_option in --version -v -V -qversion; do
3794 { { ac_try="$ac_compiler $ac_option >&5"
3795 case "(($ac_try" in
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3798 esac
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3802 ac_status=$?
3803 if test -s conftest.err; then
3804 sed '10a\
3805 ... rest of stderr output deleted ...
3806 10q' conftest.err >conftest.er1
3807 cat conftest.er1 >&5
3808 rm -f conftest.er1 conftest.err
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }
3812 done
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3818 main ()
3822 return 0;
3824 _ACEOF
3825 ac_clean_files_save=$ac_clean_files
3826 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3827 # Try to create an executable without -o first, disregard a.out.
3828 # It will help us diagnose broken compilers, and finding out an intuition
3829 # of exeext.
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3831 $as_echo_n "checking for C compiler default output file name... " >&6; }
3832 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3834 # The possible output files:
3835 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3837 ac_rmfiles=
3838 for ac_file in $ac_files
3840 case $ac_file in
3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3842 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3843 esac
3844 done
3845 rm -f $ac_rmfiles
3847 if { { ac_try="$ac_link_default"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_link_default") 2>&5
3855 ac_status=$?
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }; then :
3858 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3859 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3860 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3861 # so that the user can short-circuit this test for compilers unknown to
3862 # Autoconf.
3863 for ac_file in $ac_files ''
3865 test -f "$ac_file" || continue
3866 case $ac_file in
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3869 [ab].out )
3870 # We found the default executable, but exeext='' is most
3871 # certainly right.
3872 break;;
3873 *.* )
3874 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3875 then :; else
3876 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3878 # We set ac_cv_exeext here because the later test for it is not
3879 # safe: cross compilers may not add the suffix if given an `-o'
3880 # argument, so we may need to know it at that point already.
3881 # Even if this section looks crufty: it has the advantage of
3882 # actually working.
3883 break;;
3885 break;;
3886 esac
3887 done
3888 test "$ac_cv_exeext" = no && ac_cv_exeext=
3890 else
3891 ac_file=''
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3894 $as_echo "$ac_file" >&6; }
3895 if test -z "$ac_file"; then :
3896 $as_echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 { as_fn_set_status 77
3902 as_fn_error "C compiler cannot create executables
3903 See \`config.log' for more details." "$LINENO" 5; }; }
3905 ac_exeext=$ac_cv_exeext
3907 # Check that the compiler produces executables we can run. If not, either
3908 # the compiler is broken, or we cross compile.
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3910 $as_echo_n "checking whether the C compiler works... " >&6; }
3911 # If not cross compiling, check that we can run a simple program.
3912 if test "$cross_compiling" != yes; then
3913 if { ac_try='./$ac_file'
3914 { { case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_try") 2>&5
3921 ac_status=$?
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; }; then
3924 cross_compiling=no
3925 else
3926 if test "$cross_compiling" = maybe; then
3927 cross_compiling=yes
3928 else
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error "cannot run C compiled programs.
3932 If you meant to cross compile, use \`--host'.
3933 See \`config.log' for more details." "$LINENO" 5; }
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3938 $as_echo "yes" >&6; }
3940 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3941 ac_clean_files=$ac_clean_files_save
3942 # Check that the compiler produces executables we can run. If not, either
3943 # the compiler is broken, or we cross compile.
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3945 $as_echo_n "checking whether we are cross compiling... " >&6; }
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3947 $as_echo "$cross_compiling" >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3950 $as_echo_n "checking for suffix of executables... " >&6; }
3951 if { { ac_try="$ac_link"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_link") 2>&5
3959 ac_status=$?
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; then :
3962 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3963 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3964 # work properly (i.e., refer to `conftest.exe'), while it won't with
3965 # `rm'.
3966 for ac_file in conftest.exe conftest conftest.*; do
3967 test -f "$ac_file" || continue
3968 case $ac_file in
3969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3970 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3971 break;;
3972 * ) break;;
3973 esac
3974 done
3975 else
3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error "cannot compute suffix of executables: cannot compile and link
3979 See \`config.log' for more details." "$LINENO" 5; }
3981 rm -f conftest$ac_cv_exeext
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3983 $as_echo "$ac_cv_exeext" >&6; }
3985 rm -f conftest.$ac_ext
3986 EXEEXT=$ac_cv_exeext
3987 ac_exeext=$EXEEXT
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3989 $as_echo_n "checking for suffix of object files... " >&6; }
3990 if test "${ac_cv_objext+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3997 main ()
4001 return 0;
4003 _ACEOF
4004 rm -f conftest.o conftest.obj
4005 if { { ac_try="$ac_compile"
4006 case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 $as_echo "$ac_try_echo"; } >&5
4012 (eval "$ac_compile") 2>&5
4013 ac_status=$?
4014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }; then :
4016 for ac_file in conftest.o conftest.obj conftest.*; do
4017 test -f "$ac_file" || continue;
4018 case $ac_file in
4019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4020 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4021 break;;
4022 esac
4023 done
4024 else
4025 $as_echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030 as_fn_error "cannot compute suffix of object files: cannot compile
4031 See \`config.log' for more details." "$LINENO" 5; }
4033 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4036 $as_echo "$ac_cv_objext" >&6; }
4037 OBJEXT=$ac_cv_objext
4038 ac_objext=$OBJEXT
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4040 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4041 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4048 main ()
4050 #ifndef __GNUC__
4051 choke me
4052 #endif
4055 return 0;
4057 _ACEOF
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_compiler_gnu=yes
4060 else
4061 ac_compiler_gnu=no
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4068 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4069 if test $ac_compiler_gnu = yes; then
4070 GCC=yes
4071 else
4072 GCC=
4074 ac_test_CFLAGS=${CFLAGS+set}
4075 ac_save_CFLAGS=$CFLAGS
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4077 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4078 if test "${ac_cv_prog_cc_g+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 ac_save_c_werror_flag=$ac_c_werror_flag
4082 ac_c_werror_flag=yes
4083 ac_cv_prog_cc_g=no
4084 CFLAGS="-g"
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4089 main ()
4093 return 0;
4095 _ACEOF
4096 if ac_fn_c_try_compile "$LINENO"; then :
4097 ac_cv_prog_cc_g=yes
4098 else
4099 CFLAGS=""
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4104 main ()
4108 return 0;
4110 _ACEOF
4111 if ac_fn_c_try_compile "$LINENO"; then :
4113 else
4114 ac_c_werror_flag=$ac_save_c_werror_flag
4115 CFLAGS="-g"
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4120 main ()
4124 return 0;
4126 _ACEOF
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_cv_prog_cc_g=yes
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 ac_c_werror_flag=$ac_save_c_werror_flag
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4138 $as_echo "$ac_cv_prog_cc_g" >&6; }
4139 if test "$ac_test_CFLAGS" = set; then
4140 CFLAGS=$ac_save_CFLAGS
4141 elif test $ac_cv_prog_cc_g = yes; then
4142 if test "$GCC" = yes; then
4143 CFLAGS="-g -O2"
4144 else
4145 CFLAGS="-g"
4147 else
4148 if test "$GCC" = yes; then
4149 CFLAGS="-O2"
4150 else
4151 CFLAGS=
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4155 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4156 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 ac_cv_prog_cc_c89=no
4160 ac_save_CC=$CC
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163 #include <stdarg.h>
4164 #include <stdio.h>
4165 #include <sys/types.h>
4166 #include <sys/stat.h>
4167 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4168 struct buf { int x; };
4169 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4170 static char *e (p, i)
4171 char **p;
4172 int i;
4174 return p[i];
4176 static char *f (char * (*g) (char **, int), char **p, ...)
4178 char *s;
4179 va_list v;
4180 va_start (v,p);
4181 s = g (p, va_arg (v,int));
4182 va_end (v);
4183 return s;
4186 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4187 function prototypes and stuff, but not '\xHH' hex character constants.
4188 These don't provoke an error unfortunately, instead are silently treated
4189 as 'x'. The following induces an error, until -std is added to get
4190 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4191 array size at least. It's necessary to write '\x00'==0 to get something
4192 that's true only with -std. */
4193 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4195 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4196 inside strings and character constants. */
4197 #define FOO(x) 'x'
4198 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4200 int test (int i, double x);
4201 struct s1 {int (*f) (int a);};
4202 struct s2 {int (*f) (double a);};
4203 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4204 int argc;
4205 char **argv;
4207 main ()
4209 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4211 return 0;
4213 _ACEOF
4214 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4215 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4217 CC="$ac_save_CC $ac_arg"
4218 if ac_fn_c_try_compile "$LINENO"; then :
4219 ac_cv_prog_cc_c89=$ac_arg
4221 rm -f core conftest.err conftest.$ac_objext
4222 test "x$ac_cv_prog_cc_c89" != "xno" && break
4223 done
4224 rm -f conftest.$ac_ext
4225 CC=$ac_save_CC
4228 # AC_CACHE_VAL
4229 case "x$ac_cv_prog_cc_c89" in
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4232 $as_echo "none needed" >&6; } ;;
4233 xno)
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4235 $as_echo "unsupported" >&6; } ;;
4237 CC="$CC $ac_cv_prog_cc_c89"
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4239 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4240 esac
4241 if test "x$ac_cv_prog_cc_c89" != xno; then :
4245 ac_ext=c
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251 if test "x$CC" != xcc; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4253 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4254 else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4256 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4258 set dummy $CC; ac_cc=`$as_echo "$2" |
4259 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4260 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4267 main ()
4271 return 0;
4273 _ACEOF
4274 # Make sure it works both with $CC and with simple cc.
4275 # We do the test twice because some compilers refuse to overwrite an
4276 # existing .o file with -o, though they will create one.
4277 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4278 rm -f conftest2.*
4279 if { { case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285 (eval "$ac_try") 2>&5
4286 ac_status=$?
4287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288 test $ac_status = 0; } &&
4289 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292 esac
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 $as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_try") 2>&5
4296 ac_status=$?
4297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; };
4299 then
4300 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4301 if test "x$CC" != xcc; then
4302 # Test first that cc exists at all.
4303 if { ac_try='cc -c conftest.$ac_ext >&5'
4304 { { case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4309 $as_echo "$ac_try_echo"; } >&5
4310 (eval "$ac_try") 2>&5
4311 ac_status=$?
4312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4313 test $ac_status = 0; }; }; then
4314 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4315 rm -f conftest2.*
4316 if { { case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319 esac
4320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321 $as_echo "$ac_try_echo"; } >&5
4322 (eval "$ac_try") 2>&5
4323 ac_status=$?
4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; } &&
4326 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329 esac
4330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_try") 2>&5
4333 ac_status=$?
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; };
4336 then
4337 # cc works too.
4339 else
4340 # cc exists but doesn't like -o.
4341 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4345 else
4346 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4348 rm -f core conftest*
4351 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4353 $as_echo "yes" >&6; }
4354 else
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356 $as_echo "no" >&6; }
4358 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4362 # expand $ac_aux_dir to an absolute path
4363 am_aux_dir=`cd $ac_aux_dir && pwd`
4365 # FIXME: we rely on the cache variable name because
4366 # there is no other way.
4367 set dummy $CC
4368 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4369 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4370 if test "$am_t" != yes; then
4371 # Losing compiler, so override with the script.
4372 # FIXME: It is wrong to rewrite CC.
4373 # But if we don't then we get into trouble of one sort or another.
4374 # A longer-term fix would be to have automake use am__CC in this case,
4375 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4376 CC="$am_aux_dir/compile $CC"
4380 ac_ext=cpp
4381 ac_cpp='$CXXCPP $CPPFLAGS'
4382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4385 if test -z "$CXX"; then
4386 if test -n "$CCC"; then
4387 CXX=$CCC
4388 else
4389 if test -n "$ac_tool_prefix"; then
4390 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395 $as_echo_n "checking for $ac_word... " >&6; }
4396 if test "${ac_cv_prog_CXX+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 if test -n "$CXX"; then
4400 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4409 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4413 done
4414 done
4415 IFS=$as_save_IFS
4419 CXX=$ac_cv_prog_CXX
4420 if test -n "$CXX"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4422 $as_echo "$CXX" >&6; }
4423 else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4429 test -n "$CXX" && break
4430 done
4432 if test -z "$CXX"; then
4433 ac_ct_CXX=$CXX
4434 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4436 # Extract the first word of "$ac_prog", so it can be a program name with args.
4437 set dummy $ac_prog; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test -n "$ac_ct_CXX"; then
4444 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_prog_ac_ct_CXX="$ac_prog"
4454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4457 done
4458 done
4459 IFS=$as_save_IFS
4463 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4464 if test -n "$ac_ct_CXX"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4466 $as_echo "$ac_ct_CXX" >&6; }
4467 else
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 $as_echo "no" >&6; }
4473 test -n "$ac_ct_CXX" && break
4474 done
4476 if test "x$ac_ct_CXX" = x; then
4477 CXX="g++"
4478 else
4479 case $cross_compiling:$ac_tool_warned in
4480 yes:)
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4483 ac_tool_warned=yes ;;
4484 esac
4485 CXX=$ac_ct_CXX
4491 # Provide some information about the compiler.
4492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4493 set X $ac_compile
4494 ac_compiler=$2
4495 for ac_option in --version -v -V -qversion; do
4496 { { ac_try="$ac_compiler $ac_option >&5"
4497 case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500 esac
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4504 ac_status=$?
4505 if test -s conftest.err; then
4506 sed '10a\
4507 ... rest of stderr output deleted ...
4508 10q' conftest.err >conftest.er1
4509 cat conftest.er1 >&5
4510 rm -f conftest.er1 conftest.err
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }
4514 done
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4517 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4518 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4525 main ()
4527 #ifndef __GNUC__
4528 choke me
4529 #endif
4532 return 0;
4534 _ACEOF
4535 if ac_fn_cxx_try_compile "$LINENO"; then :
4536 ac_compiler_gnu=yes
4537 else
4538 ac_compiler_gnu=no
4540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4545 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4546 if test $ac_compiler_gnu = yes; then
4547 GXX=yes
4548 else
4549 GXX=
4551 ac_test_CXXFLAGS=${CXXFLAGS+set}
4552 ac_save_CXXFLAGS=$CXXFLAGS
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4554 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4555 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4559 ac_cxx_werror_flag=yes
4560 ac_cv_prog_cxx_g=no
4561 CXXFLAGS="-g"
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4566 main ()
4570 return 0;
4572 _ACEOF
4573 if ac_fn_cxx_try_compile "$LINENO"; then :
4574 ac_cv_prog_cxx_g=yes
4575 else
4576 CXXFLAGS=""
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4581 main ()
4585 return 0;
4587 _ACEOF
4588 if ac_fn_cxx_try_compile "$LINENO"; then :
4590 else
4591 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4592 CXXFLAGS="-g"
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4597 main ()
4601 return 0;
4603 _ACEOF
4604 if ac_fn_cxx_try_compile "$LINENO"; then :
4605 ac_cv_prog_cxx_g=yes
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4615 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4616 if test "$ac_test_CXXFLAGS" = set; then
4617 CXXFLAGS=$ac_save_CXXFLAGS
4618 elif test $ac_cv_prog_cxx_g = yes; then
4619 if test "$GXX" = yes; then
4620 CXXFLAGS="-g -O2"
4621 else
4622 CXXFLAGS="-g"
4624 else
4625 if test "$GXX" = yes; then
4626 CXXFLAGS="-O2"
4627 else
4628 CXXFLAGS=
4631 ac_ext=c
4632 ac_cpp='$CPP $CPPFLAGS'
4633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640 if test -n "$ac_tool_prefix"; then
4641 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4642 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 if test -n "$GNATBIND"; then
4649 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4662 done
4663 done
4664 IFS=$as_save_IFS
4668 GNATBIND=$ac_cv_prog_GNATBIND
4669 if test -n "$GNATBIND"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4671 $as_echo "$GNATBIND" >&6; }
4672 else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4679 if test -z "$ac_cv_prog_GNATBIND"; then
4680 ac_ct_GNATBIND=$GNATBIND
4681 # Extract the first word of "gnatbind", so it can be a program name with args.
4682 set dummy gnatbind; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if test -n "$ac_ct_GNATBIND"; then
4689 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4702 done
4703 done
4704 IFS=$as_save_IFS
4708 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4709 if test -n "$ac_ct_GNATBIND"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4711 $as_echo "$ac_ct_GNATBIND" >&6; }
4712 else
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4717 if test "x$ac_ct_GNATBIND" = x; then
4718 GNATBIND="no"
4719 else
4720 case $cross_compiling:$ac_tool_warned in
4721 yes:)
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4724 ac_tool_warned=yes ;;
4725 esac
4726 GNATBIND=$ac_ct_GNATBIND
4728 else
4729 GNATBIND="$ac_cv_prog_GNATBIND"
4732 if test -n "$ac_tool_prefix"; then
4733 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4734 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 if test -n "$GNATMAKE"; then
4741 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 break 2
4754 done
4755 done
4756 IFS=$as_save_IFS
4760 GNATMAKE=$ac_cv_prog_GNATMAKE
4761 if test -n "$GNATMAKE"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4763 $as_echo "$GNATMAKE" >&6; }
4764 else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4771 if test -z "$ac_cv_prog_GNATMAKE"; then
4772 ac_ct_GNATMAKE=$GNATMAKE
4773 # Extract the first word of "gnatmake", so it can be a program name with args.
4774 set dummy gnatmake; ac_word=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 if test -n "$ac_ct_GNATMAKE"; then
4781 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4782 else
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 break 2
4794 done
4795 done
4796 IFS=$as_save_IFS
4800 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4801 if test -n "$ac_ct_GNATMAKE"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4803 $as_echo "$ac_ct_GNATMAKE" >&6; }
4804 else
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4809 if test "x$ac_ct_GNATMAKE" = x; then
4810 GNATMAKE="no"
4811 else
4812 case $cross_compiling:$ac_tool_warned in
4813 yes:)
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4816 ac_tool_warned=yes ;;
4817 esac
4818 GNATMAKE=$ac_ct_GNATMAKE
4820 else
4821 GNATMAKE="$ac_cv_prog_GNATMAKE"
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4825 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4826 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 cat >conftest.adb <<EOF
4830 procedure conftest is begin null; end conftest;
4832 acx_cv_cc_gcc_supports_ada=no
4833 # There is a bug in old released versions of GCC which causes the
4834 # driver to exit successfully when the appropriate language module
4835 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4836 # Therefore we must check for the error message as well as an
4837 # unsuccessful exit.
4838 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4839 # given a .adb file, but produce no object file. So we must check
4840 # if an object file was really produced to guard against this.
4841 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4842 if test x"$errors" = x && test -f conftest.$ac_objext; then
4843 acx_cv_cc_gcc_supports_ada=yes
4845 rm -f conftest.*
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4848 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4850 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4851 have_gnat=yes
4852 else
4853 have_gnat=no
4857 # autoconf is lame and doesn't give us any substitution variable for this.
4858 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4859 NO_MINUS_C_MINUS_O=yes
4860 else
4861 OUTPUT_OPTION='-o $@'
4866 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4867 # optimizations to be activated explicitly by the toplevel.
4868 case "$CC" in
4869 */prev-gcc/xgcc*) ;;
4870 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4871 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4872 esac
4876 # Determine PICFLAG for target gnatlib.
4881 case "${target}" in
4882 # PIC is the default on some targets or must not be used.
4883 *-*-darwin*)
4884 # PIC is the default on this platform
4885 # Common symbols not allowed in MH_DYLIB files
4886 PICFLAG_FOR_TARGET=-fno-common
4888 alpha*-dec-osf5*)
4889 # PIC is the default.
4891 hppa*64*-*-hpux*)
4892 # PIC is the default for 64-bit PA HP-UX.
4894 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4896 i[34567]86-*-interix[3-9]*)
4897 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4898 # Instead, we relocate shared libraries at runtime.
4900 i[34567]86-*-nto-qnx*)
4901 # QNX uses GNU C++, but need to define -shared option too, otherwise
4902 # it will coredump.
4903 PICFLAG_FOR_TARGET='-fPIC -shared'
4905 i[34567]86-pc-msdosdjgpp*)
4906 # DJGPP does not support shared libraries at all.
4908 ia64*-*-hpux*)
4909 # On IA64 HP-UX, PIC is the default but the pic flag
4910 # sets the default TLS model and affects inlining.
4911 PICFLAG_FOR_TARGET=-fPIC
4913 mips-sgi-irix6*)
4914 # PIC is the default.
4916 rs6000-ibm-aix* | powerpc-ibm-aix*)
4917 # All AIX code is PIC.
4920 # Some targets support both -fPIC and -fpic, but prefer the latter.
4921 # FIXME: Why?
4922 i[34567]86-*-* | x86_64-*-*)
4923 PICFLAG_FOR_TARGET=-fpic
4925 m68k-*-*)
4926 PICFLAG_FOR_TARGET=-fpic
4928 # FIXME: Override -fPIC default in libgcc only?
4929 sh-*-linux* | sh[2346lbe]*-*-linux*)
4930 PICFLAG_FOR_TARGET=-fpic
4932 # FIXME: Simplify to sh*-*-netbsd*?
4933 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4934 sh64-*-netbsd* | sh64l*-*-netbsd*)
4935 PICFLAG_FOR_TARGET=-fpic
4937 # Default to -fPIC unless specified otherwise.
4939 PICFLAG_FOR_TARGET=-fPIC
4941 esac
4943 # If the user explicitly uses -fpic/-fPIC, keep that.
4944 case "${CFLAGS_FOR_TARGET}" in
4945 *-fpic*)
4946 PICFLAG_FOR_TARGET=-fpic
4948 *-fPIC*)
4949 PICFLAG_FOR_TARGET=-fPIC
4951 esac
4955 # -------------------------
4956 # Check C compiler features
4957 # -------------------------
4960 ac_ext=c
4961 ac_cpp='$CPP $CPPFLAGS'
4962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4966 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4967 # On Suns, sometimes $CPP names a directory.
4968 if test -n "$CPP" && test -d "$CPP"; then
4969 CPP=
4971 if test -z "$CPP"; then
4972 if test "${ac_cv_prog_CPP+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 # Double quotes because CPP needs to be expanded
4976 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4978 ac_preproc_ok=false
4979 for ac_c_preproc_warn_flag in '' yes
4981 # Use a header file that comes with gcc, so configuring glibc
4982 # with a fresh cross-compiler works.
4983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4984 # <limits.h> exists even on freestanding compilers.
4985 # On the NeXT, cc -E runs the code through the compiler's parser,
4986 # not just through cpp. "Syntax error" is here to catch this case.
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989 #ifdef __STDC__
4990 # include <limits.h>
4991 #else
4992 # include <assert.h>
4993 #endif
4994 Syntax error
4995 _ACEOF
4996 if ac_fn_c_try_cpp "$LINENO"; then :
4998 else
4999 # Broken: fails on valid input.
5000 continue
5002 rm -f conftest.err conftest.$ac_ext
5004 # OK, works on sane cases. Now check whether nonexistent headers
5005 # can be detected and how.
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 #include <ac_nonexistent.h>
5009 _ACEOF
5010 if ac_fn_c_try_cpp "$LINENO"; then :
5011 # Broken: success on invalid input.
5012 continue
5013 else
5014 # Passes both tests.
5015 ac_preproc_ok=:
5016 break
5018 rm -f conftest.err conftest.$ac_ext
5020 done
5021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022 rm -f conftest.err conftest.$ac_ext
5023 if $ac_preproc_ok; then :
5024 break
5027 done
5028 ac_cv_prog_CPP=$CPP
5031 CPP=$ac_cv_prog_CPP
5032 else
5033 ac_cv_prog_CPP=$CPP
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5036 $as_echo "$CPP" >&6; }
5037 ac_preproc_ok=false
5038 for ac_c_preproc_warn_flag in '' yes
5040 # Use a header file that comes with gcc, so configuring glibc
5041 # with a fresh cross-compiler works.
5042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043 # <limits.h> exists even on freestanding compilers.
5044 # On the NeXT, cc -E runs the code through the compiler's parser,
5045 # not just through cpp. "Syntax error" is here to catch this case.
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048 #ifdef __STDC__
5049 # include <limits.h>
5050 #else
5051 # include <assert.h>
5052 #endif
5053 Syntax error
5054 _ACEOF
5055 if ac_fn_c_try_cpp "$LINENO"; then :
5057 else
5058 # Broken: fails on valid input.
5059 continue
5061 rm -f conftest.err conftest.$ac_ext
5063 # OK, works on sane cases. Now check whether nonexistent headers
5064 # can be detected and how.
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067 #include <ac_nonexistent.h>
5068 _ACEOF
5069 if ac_fn_c_try_cpp "$LINENO"; then :
5070 # Broken: success on invalid input.
5071 continue
5072 else
5073 # Passes both tests.
5074 ac_preproc_ok=:
5075 break
5077 rm -f conftest.err conftest.$ac_ext
5079 done
5080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5081 rm -f conftest.err conftest.$ac_ext
5082 if $ac_preproc_ok; then :
5084 else
5085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5087 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5088 See \`config.log' for more details." "$LINENO" 5; }
5091 ac_ext=c
5092 ac_cpp='$CPP $CPPFLAGS'
5093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5099 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5100 if test "${ac_cv_path_GREP+set}" = set; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -z "$GREP"; then
5104 ac_path_GREP_found=false
5105 # Loop through the user's path and test for each of PROGNAME-LIST
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_prog in grep ggrep; do
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5114 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5115 # Check for GNU ac_path_GREP and select it if it is found.
5116 # Check for GNU $ac_path_GREP
5117 case `"$ac_path_GREP" --version 2>&1` in
5118 *GNU*)
5119 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5121 ac_count=0
5122 $as_echo_n 0123456789 >"conftest.in"
5123 while :
5125 cat "conftest.in" "conftest.in" >"conftest.tmp"
5126 mv "conftest.tmp" "conftest.in"
5127 cp "conftest.in" "conftest.nl"
5128 $as_echo 'GREP' >> "conftest.nl"
5129 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5131 as_fn_arith $ac_count + 1 && ac_count=$as_val
5132 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5133 # Best one so far, save it but keep looking for a better one
5134 ac_cv_path_GREP="$ac_path_GREP"
5135 ac_path_GREP_max=$ac_count
5137 # 10*(2^10) chars as input seems more than enough
5138 test $ac_count -gt 10 && break
5139 done
5140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5141 esac
5143 $ac_path_GREP_found && break 3
5144 done
5145 done
5146 done
5147 IFS=$as_save_IFS
5148 if test -z "$ac_cv_path_GREP"; then
5149 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5151 else
5152 ac_cv_path_GREP=$GREP
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5157 $as_echo "$ac_cv_path_GREP" >&6; }
5158 GREP="$ac_cv_path_GREP"
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5162 $as_echo_n "checking for egrep... " >&6; }
5163 if test "${ac_cv_path_EGREP+set}" = set; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5167 then ac_cv_path_EGREP="$GREP -E"
5168 else
5169 if test -z "$EGREP"; then
5170 ac_path_EGREP_found=false
5171 # Loop through the user's path and test for each of PROGNAME-LIST
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_prog in egrep; do
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5180 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5181 # Check for GNU ac_path_EGREP and select it if it is found.
5182 # Check for GNU $ac_path_EGREP
5183 case `"$ac_path_EGREP" --version 2>&1` in
5184 *GNU*)
5185 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5187 ac_count=0
5188 $as_echo_n 0123456789 >"conftest.in"
5189 while :
5191 cat "conftest.in" "conftest.in" >"conftest.tmp"
5192 mv "conftest.tmp" "conftest.in"
5193 cp "conftest.in" "conftest.nl"
5194 $as_echo 'EGREP' >> "conftest.nl"
5195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5197 as_fn_arith $ac_count + 1 && ac_count=$as_val
5198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5199 # Best one so far, save it but keep looking for a better one
5200 ac_cv_path_EGREP="$ac_path_EGREP"
5201 ac_path_EGREP_max=$ac_count
5203 # 10*(2^10) chars as input seems more than enough
5204 test $ac_count -gt 10 && break
5205 done
5206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5207 esac
5209 $ac_path_EGREP_found && break 3
5210 done
5211 done
5212 done
5213 IFS=$as_save_IFS
5214 if test -z "$ac_cv_path_EGREP"; then
5215 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5217 else
5218 ac_cv_path_EGREP=$EGREP
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5224 $as_echo "$ac_cv_path_EGREP" >&6; }
5225 EGREP="$ac_cv_path_EGREP"
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5229 $as_echo_n "checking for ANSI C header files... " >&6; }
5230 if test "${ac_cv_header_stdc+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5235 #include <stdlib.h>
5236 #include <stdarg.h>
5237 #include <string.h>
5238 #include <float.h>
5241 main ()
5245 return 0;
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"; then :
5249 ac_cv_header_stdc=yes
5250 else
5251 ac_cv_header_stdc=no
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 if test $ac_cv_header_stdc = yes; then
5256 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 #include <string.h>
5261 _ACEOF
5262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5263 $EGREP "memchr" >/dev/null 2>&1; then :
5265 else
5266 ac_cv_header_stdc=no
5268 rm -f conftest*
5272 if test $ac_cv_header_stdc = yes; then
5273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5276 #include <stdlib.h>
5278 _ACEOF
5279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280 $EGREP "free" >/dev/null 2>&1; then :
5282 else
5283 ac_cv_header_stdc=no
5285 rm -f conftest*
5289 if test $ac_cv_header_stdc = yes; then
5290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5291 if test "$cross_compiling" = yes; then :
5293 else
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 #include <ctype.h>
5297 #include <stdlib.h>
5298 #if ((' ' & 0x0FF) == 0x020)
5299 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5300 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5301 #else
5302 # define ISLOWER(c) \
5303 (('a' <= (c) && (c) <= 'i') \
5304 || ('j' <= (c) && (c) <= 'r') \
5305 || ('s' <= (c) && (c) <= 'z'))
5306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5307 #endif
5309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5311 main ()
5313 int i;
5314 for (i = 0; i < 256; i++)
5315 if (XOR (islower (i), ISLOWER (i))
5316 || toupper (i) != TOUPPER (i))
5317 return 2;
5318 return 0;
5320 _ACEOF
5321 if ac_fn_c_try_run "$LINENO"; then :
5323 else
5324 ac_cv_header_stdc=no
5326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5327 conftest.$ac_objext conftest.beam conftest.$ac_ext
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5333 $as_echo "$ac_cv_header_stdc" >&6; }
5334 if test $ac_cv_header_stdc = yes; then
5336 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5341 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5342 inttypes.h stdint.h unistd.h
5343 do :
5344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5345 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5347 eval as_val=\$$as_ac_Header
5348 if test "x$as_val" = x""yes; then :
5349 cat >>confdefs.h <<_ACEOF
5350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5351 _ACEOF
5355 done
5359 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5360 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5361 MINIX=yes
5362 else
5363 MINIX=
5367 if test "$MINIX" = yes; then
5369 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5372 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5375 $as_echo "#define _MINIX 1" >>confdefs.h
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5381 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5382 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5388 # define __EXTENSIONS__ 1
5389 $ac_includes_default
5391 main ()
5395 return 0;
5397 _ACEOF
5398 if ac_fn_c_try_compile "$LINENO"; then :
5399 ac_cv_safe_to_define___extensions__=yes
5400 else
5401 ac_cv_safe_to_define___extensions__=no
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5406 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5407 test $ac_cv_safe_to_define___extensions__ = yes &&
5408 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5410 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5412 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5414 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5416 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5419 ac_ext=c
5420 ac_cpp='$CPP $CPPFLAGS'
5421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5425 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5426 # On Suns, sometimes $CPP names a directory.
5427 if test -n "$CPP" && test -d "$CPP"; then
5428 CPP=
5430 if test -z "$CPP"; then
5431 if test "${ac_cv_prog_CPP+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 # Double quotes because CPP needs to be expanded
5435 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5437 ac_preproc_ok=false
5438 for ac_c_preproc_warn_flag in '' yes
5440 # Use a header file that comes with gcc, so configuring glibc
5441 # with a fresh cross-compiler works.
5442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5443 # <limits.h> exists even on freestanding compilers.
5444 # On the NeXT, cc -E runs the code through the compiler's parser,
5445 # not just through cpp. "Syntax error" is here to catch this case.
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 #ifdef __STDC__
5449 # include <limits.h>
5450 #else
5451 # include <assert.h>
5452 #endif
5453 Syntax error
5454 _ACEOF
5455 if ac_fn_c_try_cpp "$LINENO"; then :
5457 else
5458 # Broken: fails on valid input.
5459 continue
5461 rm -f conftest.err conftest.$ac_ext
5463 # OK, works on sane cases. Now check whether nonexistent headers
5464 # can be detected and how.
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #include <ac_nonexistent.h>
5468 _ACEOF
5469 if ac_fn_c_try_cpp "$LINENO"; then :
5470 # Broken: success on invalid input.
5471 continue
5472 else
5473 # Passes both tests.
5474 ac_preproc_ok=:
5475 break
5477 rm -f conftest.err conftest.$ac_ext
5479 done
5480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5481 rm -f conftest.err conftest.$ac_ext
5482 if $ac_preproc_ok; then :
5483 break
5486 done
5487 ac_cv_prog_CPP=$CPP
5490 CPP=$ac_cv_prog_CPP
5491 else
5492 ac_cv_prog_CPP=$CPP
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5495 $as_echo "$CPP" >&6; }
5496 ac_preproc_ok=false
5497 for ac_c_preproc_warn_flag in '' yes
5499 # Use a header file that comes with gcc, so configuring glibc
5500 # with a fresh cross-compiler works.
5501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5502 # <limits.h> exists even on freestanding compilers.
5503 # On the NeXT, cc -E runs the code through the compiler's parser,
5504 # not just through cpp. "Syntax error" is here to catch this case.
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 #ifdef __STDC__
5508 # include <limits.h>
5509 #else
5510 # include <assert.h>
5511 #endif
5512 Syntax error
5513 _ACEOF
5514 if ac_fn_c_try_cpp "$LINENO"; then :
5516 else
5517 # Broken: fails on valid input.
5518 continue
5520 rm -f conftest.err conftest.$ac_ext
5522 # OK, works on sane cases. Now check whether nonexistent headers
5523 # can be detected and how.
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 #include <ac_nonexistent.h>
5527 _ACEOF
5528 if ac_fn_c_try_cpp "$LINENO"; then :
5529 # Broken: success on invalid input.
5530 continue
5531 else
5532 # Passes both tests.
5533 ac_preproc_ok=:
5534 break
5536 rm -f conftest.err conftest.$ac_ext
5538 done
5539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5540 rm -f conftest.err conftest.$ac_ext
5541 if $ac_preproc_ok; then :
5543 else
5544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5546 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5547 See \`config.log' for more details." "$LINENO" 5; }
5550 ac_ext=c
5551 ac_cpp='$CPP $CPPFLAGS'
5552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5557 $as_echo_n "checking for inline... " >&6; }
5558 if test "${ac_cv_c_inline+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 ac_cv_c_inline=no
5562 for ac_kw in inline __inline__ __inline; do
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565 #ifndef __cplusplus
5566 typedef int foo_t;
5567 static $ac_kw foo_t static_foo () {return 0; }
5568 $ac_kw foo_t foo () {return 0; }
5569 #endif
5571 _ACEOF
5572 if ac_fn_c_try_compile "$LINENO"; then :
5573 ac_cv_c_inline=$ac_kw
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 test "$ac_cv_c_inline" != no && break
5577 done
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5581 $as_echo "$ac_cv_c_inline" >&6; }
5583 case $ac_cv_c_inline in
5584 inline | yes) ;;
5586 case $ac_cv_c_inline in
5587 no) ac_val=;;
5588 *) ac_val=$ac_cv_c_inline;;
5589 esac
5590 cat >>confdefs.h <<_ACEOF
5591 #ifndef __cplusplus
5592 #define inline $ac_val
5593 #endif
5594 _ACEOF
5596 esac
5599 # Check whether --enable-largefile was given.
5600 if test "${enable_largefile+set}" = set; then :
5601 enableval=$enable_largefile;
5604 if test "$enable_largefile" != no; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5607 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5608 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 ac_cv_sys_largefile_CC=no
5612 if test "$GCC" != yes; then
5613 ac_save_CC=$CC
5614 while :; do
5615 # IRIX 6.2 and later do not support large files by default,
5616 # so use the C compiler's -n32 option if that helps.
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #include <sys/types.h>
5620 /* Check that off_t can represent 2**63 - 1 correctly.
5621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5622 since some C++ compilers masquerading as C compilers
5623 incorrectly reject 9223372036854775807. */
5624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5626 && LARGE_OFF_T % 2147483647 == 1)
5627 ? 1 : -1];
5629 main ()
5633 return 0;
5635 _ACEOF
5636 if ac_fn_c_try_compile "$LINENO"; then :
5637 break
5639 rm -f core conftest.err conftest.$ac_objext
5640 CC="$CC -n32"
5641 if ac_fn_c_try_compile "$LINENO"; then :
5642 ac_cv_sys_largefile_CC=' -n32'; break
5644 rm -f core conftest.err conftest.$ac_objext
5645 break
5646 done
5647 CC=$ac_save_CC
5648 rm -f conftest.$ac_ext
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5652 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5653 if test "$ac_cv_sys_largefile_CC" != no; then
5654 CC=$CC$ac_cv_sys_largefile_CC
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5658 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5659 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5662 while :; do
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5665 #include <sys/types.h>
5666 /* Check that off_t can represent 2**63 - 1 correctly.
5667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5668 since some C++ compilers masquerading as C compilers
5669 incorrectly reject 9223372036854775807. */
5670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5672 && LARGE_OFF_T % 2147483647 == 1)
5673 ? 1 : -1];
5675 main ()
5679 return 0;
5681 _ACEOF
5682 if ac_fn_c_try_compile "$LINENO"; then :
5683 ac_cv_sys_file_offset_bits=no; break
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 #define _FILE_OFFSET_BITS 64
5689 #include <sys/types.h>
5690 /* Check that off_t can represent 2**63 - 1 correctly.
5691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5692 since some C++ compilers masquerading as C compilers
5693 incorrectly reject 9223372036854775807. */
5694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5696 && LARGE_OFF_T % 2147483647 == 1)
5697 ? 1 : -1];
5699 main ()
5703 return 0;
5705 _ACEOF
5706 if ac_fn_c_try_compile "$LINENO"; then :
5707 ac_cv_sys_file_offset_bits=64; break
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 ac_cv_sys_file_offset_bits=unknown
5711 break
5712 done
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5715 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5716 case $ac_cv_sys_file_offset_bits in #(
5717 no | unknown) ;;
5719 cat >>confdefs.h <<_ACEOF
5720 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5721 _ACEOF
5723 esac
5724 rm -rf conftest*
5725 if test $ac_cv_sys_file_offset_bits = unknown; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5727 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5728 if test "${ac_cv_sys_large_files+set}" = set; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 while :; do
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5734 #include <sys/types.h>
5735 /* Check that off_t can represent 2**63 - 1 correctly.
5736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5737 since some C++ compilers masquerading as C compilers
5738 incorrectly reject 9223372036854775807. */
5739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5741 && LARGE_OFF_T % 2147483647 == 1)
5742 ? 1 : -1];
5744 main ()
5748 return 0;
5750 _ACEOF
5751 if ac_fn_c_try_compile "$LINENO"; then :
5752 ac_cv_sys_large_files=no; break
5754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 #define _LARGE_FILES 1
5758 #include <sys/types.h>
5759 /* Check that off_t can represent 2**63 - 1 correctly.
5760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5761 since some C++ compilers masquerading as C compilers
5762 incorrectly reject 9223372036854775807. */
5763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5765 && LARGE_OFF_T % 2147483647 == 1)
5766 ? 1 : -1];
5768 main ()
5772 return 0;
5774 _ACEOF
5775 if ac_fn_c_try_compile "$LINENO"; then :
5776 ac_cv_sys_large_files=1; break
5778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 ac_cv_sys_large_files=unknown
5780 break
5781 done
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5784 $as_echo "$ac_cv_sys_large_files" >&6; }
5785 case $ac_cv_sys_large_files in #(
5786 no | unknown) ;;
5788 cat >>confdefs.h <<_ACEOF
5789 #define _LARGE_FILES $ac_cv_sys_large_files
5790 _ACEOF
5792 esac
5793 rm -rf conftest*
5798 # sizeof(char) is 1 by definition.
5799 # The cast to long int works around a bug in the HP C Compiler
5800 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5801 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5802 # This bug is HP SR number 8606223364.
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5804 $as_echo_n "checking size of void *... " >&6; }
5805 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5810 else
5811 if test "$ac_cv_type_void_p" = yes; then
5812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5814 { as_fn_set_status 77
5815 as_fn_error "cannot compute sizeof (void *)
5816 See \`config.log' for more details." "$LINENO" 5; }; }
5817 else
5818 ac_cv_sizeof_void_p=0
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5824 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5828 cat >>confdefs.h <<_ACEOF
5829 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5830 _ACEOF
5833 # The cast to long int works around a bug in the HP C Compiler
5834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5836 # This bug is HP SR number 8606223364.
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5838 $as_echo_n "checking size of short... " >&6; }
5839 if test "${ac_cv_sizeof_short+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5844 else
5845 if test "$ac_cv_type_short" = yes; then
5846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5848 { as_fn_set_status 77
5849 as_fn_error "cannot compute sizeof (short)
5850 See \`config.log' for more details." "$LINENO" 5; }; }
5851 else
5852 ac_cv_sizeof_short=0
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5858 $as_echo "$ac_cv_sizeof_short" >&6; }
5862 cat >>confdefs.h <<_ACEOF
5863 #define SIZEOF_SHORT $ac_cv_sizeof_short
5864 _ACEOF
5867 # The cast to long int works around a bug in the HP C Compiler
5868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5869 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5870 # This bug is HP SR number 8606223364.
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5872 $as_echo_n "checking size of int... " >&6; }
5873 if test "${ac_cv_sizeof_int+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5878 else
5879 if test "$ac_cv_type_int" = yes; then
5880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5882 { as_fn_set_status 77
5883 as_fn_error "cannot compute sizeof (int)
5884 See \`config.log' for more details." "$LINENO" 5; }; }
5885 else
5886 ac_cv_sizeof_int=0
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5892 $as_echo "$ac_cv_sizeof_int" >&6; }
5896 cat >>confdefs.h <<_ACEOF
5897 #define SIZEOF_INT $ac_cv_sizeof_int
5898 _ACEOF
5901 # The cast to long int works around a bug in the HP C Compiler
5902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5904 # This bug is HP SR number 8606223364.
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5906 $as_echo_n "checking size of long... " >&6; }
5907 if test "${ac_cv_sizeof_long+set}" = set; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5912 else
5913 if test "$ac_cv_type_long" = yes; then
5914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5916 { as_fn_set_status 77
5917 as_fn_error "cannot compute sizeof (long)
5918 See \`config.log' for more details." "$LINENO" 5; }; }
5919 else
5920 ac_cv_sizeof_long=0
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5926 $as_echo "$ac_cv_sizeof_long" >&6; }
5930 cat >>confdefs.h <<_ACEOF
5931 #define SIZEOF_LONG $ac_cv_sizeof_long
5932 _ACEOF
5935 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5936 if test "x$ac_cv_type_long_long" = x""yes; then :
5938 cat >>confdefs.h <<_ACEOF
5939 #define HAVE_LONG_LONG 1
5940 _ACEOF
5942 # The cast to long int works around a bug in the HP C Compiler
5943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5945 # This bug is HP SR number 8606223364.
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5947 $as_echo_n "checking size of long long... " >&6; }
5948 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5953 else
5954 if test "$ac_cv_type_long_long" = yes; then
5955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5957 { as_fn_set_status 77
5958 as_fn_error "cannot compute sizeof (long long)
5959 See \`config.log' for more details." "$LINENO" 5; }; }
5960 else
5961 ac_cv_sizeof_long_long=0
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5967 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5971 cat >>confdefs.h <<_ACEOF
5972 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5973 _ACEOF
5978 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5979 if test "x$ac_cv_type___int64" = x""yes; then :
5981 cat >>confdefs.h <<_ACEOF
5982 #define HAVE___INT64 1
5983 _ACEOF
5985 # The cast to long int works around a bug in the HP C Compiler
5986 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5987 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5988 # This bug is HP SR number 8606223364.
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5990 $as_echo_n "checking size of __int64... " >&6; }
5991 if test "${ac_cv_sizeof___int64+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5996 else
5997 if test "$ac_cv_type___int64" = yes; then
5998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6000 { as_fn_set_status 77
6001 as_fn_error "cannot compute sizeof (__int64)
6002 See \`config.log' for more details." "$LINENO" 5; }; }
6003 else
6004 ac_cv_sizeof___int64=0
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6010 $as_echo "$ac_cv_sizeof___int64" >&6; }
6014 cat >>confdefs.h <<_ACEOF
6015 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6016 _ACEOF
6021 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6022 case $ac_cv_c_int8_t in #(
6023 no|yes) ;; #(
6026 cat >>confdefs.h <<_ACEOF
6027 #define int8_t $ac_cv_c_int8_t
6028 _ACEOF
6030 esac
6032 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6033 case $ac_cv_c_int16_t in #(
6034 no|yes) ;; #(
6037 cat >>confdefs.h <<_ACEOF
6038 #define int16_t $ac_cv_c_int16_t
6039 _ACEOF
6041 esac
6043 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6044 case $ac_cv_c_int32_t in #(
6045 no|yes) ;; #(
6048 cat >>confdefs.h <<_ACEOF
6049 #define int32_t $ac_cv_c_int32_t
6050 _ACEOF
6052 esac
6054 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6055 case $ac_cv_c_int64_t in #(
6056 no|yes) ;; #(
6059 cat >>confdefs.h <<_ACEOF
6060 #define int64_t $ac_cv_c_int64_t
6061 _ACEOF
6063 esac
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6067 $as_echo_n "checking for long long int... " >&6; }
6068 if test "${ac_cv_type_long_long_int+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6070 else
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6074 /* For now, do not test the preprocessor; as of 2007 there are too many
6075 implementations with broken preprocessors. Perhaps this can
6076 be revisited in 2012. In the meantime, code should not expect
6077 #if to work with literals wider than 32 bits. */
6078 /* Test literals. */
6079 long long int ll = 9223372036854775807ll;
6080 long long int nll = -9223372036854775807LL;
6081 unsigned long long int ull = 18446744073709551615ULL;
6082 /* Test constant expressions. */
6083 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6084 ? 1 : -1)];
6085 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6086 ? 1 : -1)];
6087 int i = 63;
6089 main ()
6091 /* Test availability of runtime routines for shift and division. */
6092 long long int llmax = 9223372036854775807ll;
6093 unsigned long long int ullmax = 18446744073709551615ull;
6094 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6095 | (llmax / ll) | (llmax % ll)
6096 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6097 | (ullmax / ull) | (ullmax % ull));
6099 return 0;
6102 _ACEOF
6103 if ac_fn_c_try_link "$LINENO"; then :
6104 if test "$cross_compiling" = yes; then :
6105 ac_cv_type_long_long_int=yes
6106 else
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 #include <limits.h>
6110 #ifndef LLONG_MAX
6111 # define HALF \
6112 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6113 # define LLONG_MAX (HALF - 1 + HALF)
6114 #endif
6116 main ()
6118 long long int n = 1;
6119 int i;
6120 for (i = 0; ; i++)
6122 long long int m = n << i;
6123 if (m >> i != n)
6124 return 1;
6125 if (LLONG_MAX / 2 < m)
6126 break;
6128 return 0;
6130 return 0;
6132 _ACEOF
6133 if ac_fn_c_try_run "$LINENO"; then :
6134 ac_cv_type_long_long_int=yes
6135 else
6136 ac_cv_type_long_long_int=no
6138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6139 conftest.$ac_objext conftest.beam conftest.$ac_ext
6142 else
6143 ac_cv_type_long_long_int=no
6145 rm -f core conftest.err conftest.$ac_objext \
6146 conftest$ac_exeext conftest.$ac_ext
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6149 $as_echo "$ac_cv_type_long_long_int" >&6; }
6150 if test $ac_cv_type_long_long_int = yes; then
6152 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6158 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6159 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6161 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6163 else
6164 test $ac_cv_type_long_long_int = yes \
6165 && ac_type='long long int' \
6166 || ac_type='long int'
6168 cat >>confdefs.h <<_ACEOF
6169 #define intmax_t $ac_type
6170 _ACEOF
6176 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6177 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6179 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6181 else
6182 for ac_type in 'int' 'long int' 'long long int'; do
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 $ac_includes_default
6187 main ()
6189 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6190 test_array [0] = 0
6193 return 0;
6195 _ACEOF
6196 if ac_fn_c_try_compile "$LINENO"; then :
6198 cat >>confdefs.h <<_ACEOF
6199 #define intptr_t $ac_type
6200 _ACEOF
6202 ac_type=
6204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205 test -z "$ac_type" && break
6206 done
6210 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6211 case $ac_cv_c_uint8_t in #(
6212 no|yes) ;; #(
6215 $as_echo "#define _UINT8_T 1" >>confdefs.h
6218 cat >>confdefs.h <<_ACEOF
6219 #define uint8_t $ac_cv_c_uint8_t
6220 _ACEOF
6222 esac
6224 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6225 case $ac_cv_c_uint16_t in #(
6226 no|yes) ;; #(
6230 cat >>confdefs.h <<_ACEOF
6231 #define uint16_t $ac_cv_c_uint16_t
6232 _ACEOF
6234 esac
6236 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6237 case $ac_cv_c_uint32_t in #(
6238 no|yes) ;; #(
6241 $as_echo "#define _UINT32_T 1" >>confdefs.h
6244 cat >>confdefs.h <<_ACEOF
6245 #define uint32_t $ac_cv_c_uint32_t
6246 _ACEOF
6248 esac
6250 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6251 case $ac_cv_c_uint64_t in #(
6252 no|yes) ;; #(
6255 $as_echo "#define _UINT64_T 1" >>confdefs.h
6258 cat >>confdefs.h <<_ACEOF
6259 #define uint64_t $ac_cv_c_uint64_t
6260 _ACEOF
6262 esac
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6266 $as_echo_n "checking for unsigned long long int... " >&6; }
6267 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271 /* end confdefs.h. */
6273 /* For now, do not test the preprocessor; as of 2007 there are too many
6274 implementations with broken preprocessors. Perhaps this can
6275 be revisited in 2012. In the meantime, code should not expect
6276 #if to work with literals wider than 32 bits. */
6277 /* Test literals. */
6278 long long int ll = 9223372036854775807ll;
6279 long long int nll = -9223372036854775807LL;
6280 unsigned long long int ull = 18446744073709551615ULL;
6281 /* Test constant expressions. */
6282 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6283 ? 1 : -1)];
6284 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6285 ? 1 : -1)];
6286 int i = 63;
6288 main ()
6290 /* Test availability of runtime routines for shift and division. */
6291 long long int llmax = 9223372036854775807ll;
6292 unsigned long long int ullmax = 18446744073709551615ull;
6293 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6294 | (llmax / ll) | (llmax % ll)
6295 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6296 | (ullmax / ull) | (ullmax % ull));
6298 return 0;
6301 _ACEOF
6302 if ac_fn_c_try_link "$LINENO"; then :
6303 ac_cv_type_unsigned_long_long_int=yes
6304 else
6305 ac_cv_type_unsigned_long_long_int=no
6307 rm -f core conftest.err conftest.$ac_objext \
6308 conftest$ac_exeext conftest.$ac_ext
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6311 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6312 if test $ac_cv_type_unsigned_long_long_int = yes; then
6314 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6320 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6321 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6323 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6325 else
6326 test $ac_cv_type_unsigned_long_long_int = yes \
6327 && ac_type='unsigned long long int' \
6328 || ac_type='unsigned long int'
6330 cat >>confdefs.h <<_ACEOF
6331 #define uintmax_t $ac_type
6332 _ACEOF
6338 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6339 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6341 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6343 else
6344 for ac_type in 'unsigned int' 'unsigned long int' \
6345 'unsigned long long int'; do
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6348 $ac_includes_default
6350 main ()
6352 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6353 test_array [0] = 0
6356 return 0;
6358 _ACEOF
6359 if ac_fn_c_try_compile "$LINENO"; then :
6361 cat >>confdefs.h <<_ACEOF
6362 #define uintptr_t $ac_type
6363 _ACEOF
6365 ac_type=
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 test -z "$ac_type" && break
6369 done
6386 # ---------------------
6387 # Warnings and checking
6388 # ---------------------
6390 # Check $CC warning features (if it's GCC).
6391 # We want to use -pedantic, but we don't want warnings about
6392 # * 'long long'
6393 # * variadic macros
6394 # * overlong strings
6395 # * C++11 narrowing conversions in { }
6396 # So, we only use -pedantic if we can disable those warnings.
6398 loose_warn=
6399 save_CFLAGS="$CFLAGS"
6400 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6401 # Do the check with the no- prefix removed since gcc silently
6402 # accepts any -Wno-* option on purpose
6403 case $real_option in
6404 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6405 *) option=$real_option ;;
6406 esac
6407 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6410 $as_echo_n "checking whether $CC supports $option... " >&6; }
6411 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 CFLAGS="$option"
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6419 main ()
6423 return 0;
6425 _ACEOF
6426 if ac_fn_c_try_compile "$LINENO"; then :
6427 eval "$as_acx_Woption=yes"
6428 else
6429 eval "$as_acx_Woption=no"
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434 eval ac_res=\$$as_acx_Woption
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6436 $as_echo "$ac_res" >&6; }
6437 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6438 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6440 done
6441 CFLAGS="$save_CFLAGS"
6443 c_loose_warn=
6444 save_CFLAGS="$CFLAGS"
6445 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6446 # Do the check with the no- prefix removed since gcc silently
6447 # accepts any -Wno-* option on purpose
6448 case $real_option in
6449 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6450 *) option=$real_option ;;
6451 esac
6452 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6455 $as_echo_n "checking whether $CC supports $option... " >&6; }
6456 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 CFLAGS="$option"
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6464 main ()
6468 return 0;
6470 _ACEOF
6471 if ac_fn_c_try_compile "$LINENO"; then :
6472 eval "$as_acx_Woption=yes"
6473 else
6474 eval "$as_acx_Woption=no"
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 eval ac_res=\$$as_acx_Woption
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6481 $as_echo "$ac_res" >&6; }
6482 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6483 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6485 done
6486 CFLAGS="$save_CFLAGS"
6488 strict_warn=
6489 save_CFLAGS="$CFLAGS"
6490 for real_option in -Wmissing-format-attribute; do
6491 # Do the check with the no- prefix removed since gcc silently
6492 # accepts any -Wno-* option on purpose
6493 case $real_option in
6494 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6495 *) option=$real_option ;;
6496 esac
6497 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6500 $as_echo_n "checking whether $CC supports $option... " >&6; }
6501 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 CFLAGS="$option"
6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506 /* end confdefs.h. */
6509 main ()
6513 return 0;
6515 _ACEOF
6516 if ac_fn_c_try_compile "$LINENO"; then :
6517 eval "$as_acx_Woption=yes"
6518 else
6519 eval "$as_acx_Woption=no"
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6524 eval ac_res=\$$as_acx_Woption
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6526 $as_echo "$ac_res" >&6; }
6527 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6528 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6530 done
6531 CFLAGS="$save_CFLAGS"
6533 c_strict_warn=
6534 save_CFLAGS="$CFLAGS"
6535 for real_option in -Wold-style-definition -Wc++-compat; do
6536 # Do the check with the no- prefix removed since gcc silently
6537 # accepts any -Wno-* option on purpose
6538 case $real_option in
6539 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6540 *) option=$real_option ;;
6541 esac
6542 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6545 $as_echo_n "checking whether $CC supports $option... " >&6; }
6546 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 CFLAGS="$option"
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6554 main ()
6558 return 0;
6560 _ACEOF
6561 if ac_fn_c_try_compile "$LINENO"; then :
6562 eval "$as_acx_Woption=yes"
6563 else
6564 eval "$as_acx_Woption=no"
6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 eval ac_res=\$$as_acx_Woption
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6571 $as_echo "$ac_res" >&6; }
6572 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6573 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6575 done
6576 CFLAGS="$save_CFLAGS"
6578 # Do the check with the no- prefix removed from the warning options
6579 # since gcc silently accepts any -Wno-* option on purpose
6580 if test "$GCC" = yes; then :
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6582 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6583 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 save_CFLAGS="$CFLAGS"
6587 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6592 main ()
6596 return 0;
6598 _ACEOF
6599 if ac_fn_c_try_compile "$LINENO"; then :
6600 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6601 else
6602 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 CFLAGS="$save_CFLAGS"
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6608 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6609 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6610 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6615 # Check whether --enable-werror-always was given.
6616 if test "${enable_werror_always+set}" = set; then :
6617 enableval=$enable_werror_always;
6618 else
6619 enable_werror_always=no
6622 if test $enable_werror_always = yes; then :
6623 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6628 # The above macros do nothing if the compiler is not GCC. However, the
6629 # Makefile has more goo to add other flags, so these variables are used
6630 # to enable warnings only for GCC.
6631 warn_cflags=
6632 warn_cxxflags=
6633 if test "x$GCC" = "xyes"; then
6634 warn_cflags='$(GCC_WARN_CFLAGS)'
6635 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6640 # Disable exceptions and RTTI if building with g++
6641 noexception_flags=
6642 save_CFLAGS="$CFLAGS"
6643 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6644 # Do the check with the no- prefix removed since gcc silently
6645 # accepts any -Wno-* option on purpose
6646 case $real_option in
6647 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6648 *) option=$real_option ;;
6649 esac
6650 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6653 $as_echo_n "checking whether $CC supports $option... " >&6; }
6654 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 CFLAGS="$option"
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6662 main ()
6666 return 0;
6668 _ACEOF
6669 if ac_fn_c_try_compile "$LINENO"; then :
6670 eval "$as_acx_Woption=yes"
6671 else
6672 eval "$as_acx_Woption=no"
6674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677 eval ac_res=\$$as_acx_Woption
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6679 $as_echo "$ac_res" >&6; }
6680 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6681 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6683 done
6684 CFLAGS="$save_CFLAGS"
6687 # Enable expensive internal checks
6688 is_release=
6689 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6690 is_release=yes
6693 # Check whether --enable-checking was given.
6694 if test "${enable_checking+set}" = set; then :
6695 enableval=$enable_checking; ac_checking_flags="${enableval}"
6696 else
6698 # Determine the default checks.
6699 if test x$is_release = x ; then
6700 ac_checking_flags=yes
6701 else
6702 ac_checking_flags=release
6706 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6707 for check in release $ac_checking_flags
6709 case $check in
6710 # these set all the flags to specific states
6711 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6712 ac_fold_checking= ; ac_gc_checking=1 ;
6713 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6714 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6715 ac_tree_checking=1 ; ac_valgrind_checking= ;
6716 ac_types_checking=1 ;;
6717 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6718 ac_fold_checking= ; ac_gc_checking= ;
6719 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6720 ac_rtlflag_checking= ; ac_runtime_checking= ;
6721 ac_tree_checking= ; ac_valgrind_checking= ;
6722 ac_types_checking= ;;
6723 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6724 ac_fold_checking=1 ; ac_gc_checking=1 ;
6725 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6726 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6727 ac_tree_checking=1 ; ac_valgrind_checking= ;
6728 ac_types_checking=1 ;;
6729 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6730 ac_fold_checking= ; ac_gc_checking= ;
6731 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6732 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6733 ac_tree_checking= ; ac_valgrind_checking= ;
6734 ac_types_checking= ;;
6735 # these enable particular checks
6736 assert) ac_assert_checking=1 ;;
6737 df) ac_df_checking=1 ;;
6738 fold) ac_fold_checking=1 ;;
6739 gc) ac_gc_checking=1 ;;
6740 gcac) ac_gc_always_collect=1 ;;
6741 gimple) ac_gimple_checking=1 ;;
6742 misc) ac_checking=1 ;;
6743 rtl) ac_rtl_checking=1 ;;
6744 rtlflag) ac_rtlflag_checking=1 ;;
6745 runtime) ac_runtime_checking=1 ;;
6746 tree) ac_tree_checking=1 ;;
6747 types) ac_types_checking=1 ;;
6748 valgrind) ac_valgrind_checking=1 ;;
6749 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6750 esac
6751 done
6752 IFS="$ac_save_IFS"
6754 nocommon_flag=""
6755 if test x$ac_checking != x ; then
6757 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6759 nocommon_flag=-fno-common
6762 if test x$ac_df_checking != x ; then
6764 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6767 if test x$ac_assert_checking != x ; then
6769 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6772 if test x$ac_gimple_checking != x ; then
6774 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6778 if test x$ac_runtime_checking != x ; then
6780 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6783 if test x$ac_tree_checking != x ; then
6785 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6787 TREEBROWSER=tree-browser.o
6789 if test x$ac_types_checking != x ; then
6791 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6795 if test x$ac_rtl_checking != x ; then
6797 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6800 if test x$ac_rtlflag_checking != x ; then
6802 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6805 if test x$ac_gc_checking != x ; then
6807 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6810 if test x$ac_gc_always_collect != x ; then
6812 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6815 if test x$ac_fold_checking != x ; then
6817 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6820 valgrind_path_defines=
6821 valgrind_command=
6823 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6824 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6825 have_valgrind_h=yes
6826 else
6827 have_valgrind_h=no
6832 if test x$ac_valgrind_checking != x ; then
6833 # It is certainly possible that there's valgrind but no valgrind.h.
6834 # GCC relies on making annotations so we must have both.
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6836 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6839 #include <valgrind/memcheck.h>
6840 #ifndef VALGRIND_DISCARD
6841 #error VALGRIND_DISCARD not defined
6842 #endif
6843 _ACEOF
6844 if ac_fn_c_try_cpp "$LINENO"; then :
6845 gcc_cv_header_valgrind_memcheck_h=yes
6846 else
6847 gcc_cv_header_valgrind_memcheck_h=no
6849 rm -f conftest.err conftest.$ac_ext
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6851 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6853 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856 #include <memcheck.h>
6857 #ifndef VALGRIND_DISCARD
6858 #error VALGRIND_DISCARD not defined
6859 #endif
6860 _ACEOF
6861 if ac_fn_c_try_cpp "$LINENO"; then :
6862 gcc_cv_header_memcheck_h=yes
6863 else
6864 gcc_cv_header_memcheck_h=no
6866 rm -f conftest.err conftest.$ac_ext
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6868 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6870 # Prepare PATH_SEPARATOR.
6871 # The user is always right.
6872 if test "${PATH_SEPARATOR+set}" != set; then
6873 echo "#! /bin/sh" >conf$$.sh
6874 echo "exit 0" >>conf$$.sh
6875 chmod +x conf$$.sh
6876 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6877 PATH_SEPARATOR=';'
6878 else
6879 PATH_SEPARATOR=:
6881 rm -f conf$$.sh
6884 # Find out how to test for executable files. Don't use a zero-byte file,
6885 # as systems may use methods other than mode bits to determine executability.
6886 cat >conf$$.file <<_ASEOF
6887 #! /bin/sh
6888 exit 0
6889 _ASEOF
6890 chmod +x conf$$.file
6891 if test -x conf$$.file >/dev/null 2>&1; then
6892 ac_executable_p="test -x"
6893 else
6894 ac_executable_p="test -f"
6896 rm -f conf$$.file
6898 # Extract the first word of "valgrind", so it can be a program name with args.
6899 set dummy valgrind; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6903 $as_echo_n "(cached) " >&6
6904 else
6905 case "$valgrind_path" in
6906 [\\/]* | ?:[\\/]*)
6907 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6910 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6911 for ac_dir in $PATH; do
6912 IFS="$ac_save_IFS"
6913 test -z "$ac_dir" && ac_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6916 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6917 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6918 break 2
6921 done
6922 done
6923 IFS="$ac_save_IFS"
6925 esac
6927 valgrind_path="$ac_cv_path_valgrind_path"
6928 if test -n "$valgrind_path"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6930 $as_echo "$valgrind_path" >&6; }
6931 else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6936 if test "x$valgrind_path" = "x" \
6937 || (test $have_valgrind_h = no \
6938 && test $gcc_cv_header_memcheck_h = no \
6939 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6940 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6942 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6943 valgrind_command="$valgrind_path -q"
6945 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6947 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6949 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6952 if test $gcc_cv_header_memcheck_h = yes; then
6954 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6961 # Enable code coverage collection
6962 # Check whether --enable-coverage was given.
6963 if test "${enable_coverage+set}" = set; then :
6964 enableval=$enable_coverage; case "${enableval}" in
6965 yes|noopt)
6966 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6968 opt)
6969 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6972 # a.k.a. --disable-coverage
6973 coverage_flags=""
6976 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6978 esac
6979 else
6980 coverage_flags=""
6985 # Check whether --enable-gather-detailed-mem-stats was given.
6986 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6987 enableval=$enable_gather_detailed_mem_stats;
6988 else
6989 enable_gather_detailed_mem_stats=no
6992 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6994 cat >>confdefs.h <<_ACEOF
6995 #define GATHER_STATISTICS $gather_stats
6996 _ACEOF
6999 # -------------------------------
7000 # Miscenalleous configure options
7001 # -------------------------------
7003 # With stabs
7005 # Check whether --with-stabs was given.
7006 if test "${with_stabs+set}" = set; then :
7007 withval=$with_stabs; stabs="$with_stabs"
7008 else
7009 stabs=no
7013 # Determine whether or not multilibs are enabled.
7014 # Check whether --enable-multilib was given.
7015 if test "${enable_multilib+set}" = set; then :
7016 enableval=$enable_multilib;
7017 else
7018 enable_multilib=yes
7023 # Determine whether or not multiarch is enabled.
7024 # Check whether --enable-multiarch was given.
7025 if test "${enable_multiarch+set}" = set; then :
7026 enableval=$enable_multiarch; case "${withval}" in
7027 yes|no|auto) enable_multiarch=$withval;;
7028 *) as_fn_error "bad value ${withval} given for --enable-multiarch option" "$LINENO" 5 ;;
7029 esac
7030 else
7031 enable_multiarch=auto
7034 if test x${enable_multiarch} = xauto; then
7035 if test x${with_native_system_header_dir} != x; then
7036 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7037 enable_multiarch=no
7039 if test x$host != x$target && test "x$with_sysroot" = x; then
7040 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7041 enable_multiarch=no
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7045 $as_echo_n "checking for multiarch configuration... " >&6; }
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7048 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7050 # needed for setting the multiarch name for soft-float/hard-float ABIs
7053 # Enable __cxa_atexit for C++.
7054 # Check whether --enable-__cxa_atexit was given.
7055 if test "${enable___cxa_atexit+set}" = set; then :
7056 enableval=$enable___cxa_atexit;
7060 # Enable C extension for decimal float if target supports it.
7062 # Check whether --enable-decimal-float was given.
7063 if test "${enable_decimal_float+set}" = set; then :
7064 enableval=$enable_decimal_float;
7065 case $enable_decimal_float in
7066 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7067 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7068 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7069 esac
7071 else
7073 case $target in
7074 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7075 i?86*-*-mingw* | x86_64*-*-mingw* | \
7076 i?86*-*-cygwin*)
7077 enable_decimal_float=yes
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7081 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7082 enable_decimal_float=no
7084 esac
7089 # x86's use BID format instead of DPD
7090 case x$enable_decimal_float in
7091 xyes)
7092 case $target in
7093 i?86*-*-* | x86_64*-*-*)
7094 enable_decimal_float=bid
7097 enable_decimal_float=dpd
7099 esac
7100 default_decimal_float=$enable_decimal_float
7102 xno)
7103 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7104 # dependency on libdecnumber.
7105 default_decimal_float=dpd
7107 esac
7112 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7114 cat >>confdefs.h <<_ACEOF
7115 #define ENABLE_DECIMAL_FLOAT $dfp
7116 _ACEOF
7119 # Use default_decimal_float for dependency.
7120 enable_decimal_float=$default_decimal_float
7122 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7124 cat >>confdefs.h <<_ACEOF
7125 #define ENABLE_DECIMAL_BID_FORMAT $bid
7126 _ACEOF
7129 # Enable C extension for fixed-point arithmetic.
7130 # Check whether --enable-fixed-point was given.
7131 if test "${enable_fixed_point+set}" = set; then :
7132 enableval=$enable_fixed_point;
7133 else
7135 case $target in
7136 arm*)
7137 enable_fixed_point=yes
7140 mips*-*-*)
7141 enable_fixed_point=yes
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7145 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7146 enable_fixed_point=no
7148 esac
7154 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7156 cat >>confdefs.h <<_ACEOF
7157 #define ENABLE_FIXED_POINT $fixedpoint
7158 _ACEOF
7161 # Enable threads
7162 # Pass with no value to take the default
7163 # Pass with a value to specify a thread package
7164 # Check whether --enable-threads was given.
7165 if test "${enable_threads+set}" = set; then :
7166 enableval=$enable_threads;
7167 else
7168 enable_threads=''
7172 # Check whether --enable-tls was given.
7173 if test "${enable_tls+set}" = set; then :
7174 enableval=$enable_tls;
7175 case $enable_tls in
7176 yes | no) ;;
7177 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7178 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7179 esac
7181 else
7182 enable_tls=''
7186 # Check whether --enable-objc-gc was given.
7187 if test "${enable_objc_gc+set}" = set; then :
7188 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7189 objc_boehm_gc=''
7190 else
7191 objc_boehm_gc=1
7193 else
7194 objc_boehm_gc=''
7199 # Check whether --with-dwarf2 was given.
7200 if test "${with_dwarf2+set}" = set; then :
7201 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7202 else
7203 dwarf2=no
7207 # Check whether --enable-shared was given.
7208 if test "${enable_shared+set}" = set; then :
7209 enableval=$enable_shared;
7210 case $enable_shared in
7211 yes | no) ;;
7213 enable_shared=no
7214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7215 for pkg in $enableval; do
7216 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7217 enable_shared=yes
7219 done
7220 IFS="$ac_save_ifs"
7222 esac
7224 else
7225 enable_shared=yes
7231 # Check whether --with-native-system-header-dir was given.
7232 if test "${with_native_system_header_dir+set}" = set; then :
7233 withval=$with_native_system_header_dir;
7234 case ${with_native_system_header_dir} in
7235 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7236 /* | [A-Za-z]:[\\/]*) ;;
7237 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7238 esac
7239 configured_native_system_header_dir="${withval}"
7241 else
7242 configured_native_system_header_dir=
7247 # Check whether --with-build-sysroot was given.
7248 if test "${with_build_sysroot+set}" = set; then :
7249 withval=$with_build_sysroot; if test x"$withval" != x ; then
7250 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7252 else
7253 SYSROOT_CFLAGS_FOR_TARGET=
7258 if test "x$prefix" = xNONE; then
7259 test_prefix=/usr/local
7260 else
7261 test_prefix=$prefix
7263 if test "x$exec_prefix" = xNONE; then
7264 test_exec_prefix=$test_prefix
7265 else
7266 test_exec_prefix=$exec_prefix
7270 # Check whether --with-sysroot was given.
7271 if test "${with_sysroot+set}" = set; then :
7272 withval=$with_sysroot;
7273 case ${with_sysroot} in
7274 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7275 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7276 esac
7278 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7279 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7281 case ${TARGET_SYSTEM_ROOT} in
7282 "${test_prefix}"|"${test_prefix}/"*|\
7283 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7284 '${prefix}'|'${prefix}/'*|\
7285 '${exec_prefix}'|'${exec_prefix}/'*)
7286 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7287 TARGET_SYSTEM_ROOT_DEFINE="$t"
7289 esac
7291 else
7293 TARGET_SYSTEM_ROOT=
7294 TARGET_SYSTEM_ROOT_DEFINE=
7295 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7304 # Check whether --with-specs was given.
7305 if test "${with_specs+set}" = set; then :
7306 withval=$with_specs; CONFIGURE_SPECS=$withval
7307 else
7308 CONFIGURE_SPECS=
7316 # Check whether --with-pkgversion was given.
7317 if test "${with_pkgversion+set}" = set; then :
7318 withval=$with_pkgversion; case "$withval" in
7319 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7320 no) PKGVERSION= ;;
7321 *) PKGVERSION="($withval) " ;;
7322 esac
7323 else
7324 PKGVERSION="(GCC) "
7332 # Check whether --with-bugurl was given.
7333 if test "${with_bugurl+set}" = set; then :
7334 withval=$with_bugurl; case "$withval" in
7335 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7336 no) BUGURL=
7338 *) BUGURL="$withval"
7340 esac
7341 else
7342 BUGURL="http://gcc.gnu.org/bugs.html"
7346 case ${BUGURL} in
7348 REPORT_BUGS_TO=
7349 REPORT_BUGS_TEXI=
7352 REPORT_BUGS_TO="<$BUGURL>"
7353 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7355 esac;
7360 # Sanity check enable_languages in case someone does not run the toplevel
7361 # configure # script.
7362 # Check whether --enable-languages was given.
7363 if test "${enable_languages+set}" = set; then :
7364 enableval=$enable_languages; case ,${enable_languages}, in
7365 ,,|,yes,)
7366 # go safe -- we cannot be much sure without the toplevel
7367 # configure's
7368 # analysis of which target libs are present and usable
7369 enable_languages=c
7371 *,all,*)
7372 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7374 *,c,*)
7377 enable_languages=c,${enable_languages}
7379 esac
7380 else
7381 enable_languages=c
7386 # Check whether --with-multilib-list was given.
7387 if test "${with_multilib_list+set}" = set; then :
7388 withval=$with_multilib_list; :
7389 else
7390 with_multilib_list=default
7394 # -------------------------
7395 # Checks for other programs
7396 # -------------------------
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7399 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7400 set x ${MAKE-make}
7401 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7402 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7403 $as_echo_n "(cached) " >&6
7404 else
7405 cat >conftest.make <<\_ACEOF
7406 SHELL = /bin/sh
7407 all:
7408 @echo '@@@%%%=$(MAKE)=@@@%%%'
7409 _ACEOF
7410 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7411 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7412 *@@@%%%=?*=@@@%%%*)
7413 eval ac_cv_prog_make_${ac_make}_set=yes;;
7415 eval ac_cv_prog_make_${ac_make}_set=no;;
7416 esac
7417 rm -f conftest.make
7419 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7421 $as_echo "yes" >&6; }
7422 SET_MAKE=
7423 else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7426 SET_MAKE="MAKE=${MAKE-make}"
7430 # Find some useful tools
7431 for ac_prog in gawk mawk nawk awk
7433 # Extract the first word of "$ac_prog", so it can be a program name with args.
7434 set dummy $ac_prog; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if test "${ac_cv_prog_AWK+set}" = set; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 if test -n "$AWK"; then
7441 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_prog_AWK="$ac_prog"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 break 2
7454 done
7455 done
7456 IFS=$as_save_IFS
7460 AWK=$ac_cv_prog_AWK
7461 if test -n "$AWK"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7463 $as_echo "$AWK" >&6; }
7464 else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7470 test -n "$AWK" && break
7471 done
7473 # We need awk to create options.c and options.h.
7474 # Bail out if it's missing.
7475 case ${AWK} in
7476 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7477 esac
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7480 $as_echo_n "checking whether ln -s works... " >&6; }
7481 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7484 rm -f conftestdata_t
7485 echo >conftestdata_f
7486 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7487 then
7488 gcc_cv_prog_LN_S="ln -s"
7489 else
7490 if ln conftestdata_f conftestdata_t 2>/dev/null
7491 then
7492 gcc_cv_prog_LN_S=ln
7493 else
7494 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7495 then
7496 gcc_cv_prog_LN_S="cp -p"
7497 else
7498 gcc_cv_prog_LN_S=cp
7502 rm -f conftestdata_f conftestdata_t
7505 LN_S="$gcc_cv_prog_LN_S"
7506 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7508 $as_echo "yes" >&6; }
7509 else
7510 if test "$gcc_cv_prog_LN_S" = "ln"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7512 $as_echo "no, using ln" >&6; }
7513 else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7515 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7520 $as_echo_n "checking whether ln works... " >&6; }
7521 if test "${acx_cv_prog_LN+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7523 else
7524 rm -f conftestdata_t
7525 echo >conftestdata_f
7526 if ln conftestdata_f conftestdata_t 2>/dev/null
7527 then
7528 acx_cv_prog_LN=ln
7529 else
7530 acx_cv_prog_LN=no
7532 rm -f conftestdata_f conftestdata_t
7535 if test $acx_cv_prog_LN = no; then
7536 LN="$LN_S"
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7538 $as_echo "no, using $LN" >&6; }
7539 else
7540 LN="$acx_cv_prog_LN"
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7542 $as_echo "yes" >&6; }
7545 if test -n "$ac_tool_prefix"; then
7546 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7547 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 if test -n "$RANLIB"; then
7554 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7567 done
7568 done
7569 IFS=$as_save_IFS
7573 RANLIB=$ac_cv_prog_RANLIB
7574 if test -n "$RANLIB"; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7576 $as_echo "$RANLIB" >&6; }
7577 else
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7584 if test -z "$ac_cv_prog_RANLIB"; then
7585 ac_ct_RANLIB=$RANLIB
7586 # Extract the first word of "ranlib", so it can be a program name with args.
7587 set dummy ranlib; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 if test -n "$ac_ct_RANLIB"; then
7594 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_prog_ac_ct_RANLIB="ranlib"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7607 done
7608 done
7609 IFS=$as_save_IFS
7613 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7614 if test -n "$ac_ct_RANLIB"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7616 $as_echo "$ac_ct_RANLIB" >&6; }
7617 else
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7622 if test "x$ac_ct_RANLIB" = x; then
7623 RANLIB=":"
7624 else
7625 case $cross_compiling:$ac_tool_warned in
7626 yes:)
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7629 ac_tool_warned=yes ;;
7630 esac
7631 RANLIB=$ac_ct_RANLIB
7633 else
7634 RANLIB="$ac_cv_prog_RANLIB"
7637 ranlib_flags=""
7640 # Find a good install program. We prefer a C program (faster),
7641 # so one script is as good as another. But avoid the broken or
7642 # incompatible versions:
7643 # SysV /etc/install, /usr/sbin/install
7644 # SunOS /usr/etc/install
7645 # IRIX /sbin/install
7646 # AIX /bin/install
7647 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7648 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7649 # ./install, which can be erroneously created by make from ./install.sh.
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7651 $as_echo_n "checking for a BSD compatible install... " >&6; }
7652 if test -z "$INSTALL"; then
7653 if test "${ac_cv_path_install+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7657 for ac_dir in $PATH; do
7658 # Account for people who put trailing slashes in PATH elements.
7659 case "$ac_dir/" in
7660 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7662 # OSF1 and SCO ODT 3.0 have their own names for install.
7663 for ac_prog in ginstall scoinst install; do
7664 if test -f $ac_dir/$ac_prog; then
7665 if test $ac_prog = install &&
7666 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7667 # AIX install. It has an incompatible calling convention.
7668 # OSF/1 installbsd also uses dspmsg, but is usable.
7670 else
7671 ac_cv_path_install="$ac_dir/$ac_prog -c"
7672 break 2
7675 done
7677 esac
7678 done
7679 IFS="$ac_save_IFS"
7682 if test "${ac_cv_path_install+set}" = set; then
7683 INSTALL="$ac_cv_path_install"
7684 else
7685 # As a last resort, use the slow shell script. We don't cache a
7686 # path for INSTALL within a source directory, because that will
7687 # break other packages using the cache if that directory is
7688 # removed, or if the path is relative.
7689 INSTALL="$ac_install_sh"
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7693 $as_echo "$INSTALL" >&6; }
7695 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7696 # It thinks the first close brace ends the variable substitution.
7697 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7702 # See if cmp has --ignore-initial.
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7704 $as_echo_n "checking for cmp's capabilities... " >&6; }
7705 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 echo abfoo >t1
7709 echo cdfoo >t2
7710 gcc_cv_prog_cmp_skip=slowcompare
7711 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7712 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7714 else
7715 gcc_cv_prog_cmp_skip=gnucompare
7718 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7719 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7720 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7722 else
7723 gcc_cv_prog_cmp_skip=fastcompare
7727 rm t1 t2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7731 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7732 make_compare_target=$gcc_cv_prog_cmp_skip
7736 # See if we have the mktemp command.
7737 # Extract the first word of "mktemp", so it can be a program name with args.
7738 set dummy mktemp; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 if test -n "$have_mktemp_command"; then
7745 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7754 ac_cv_prog_have_mktemp_command="yes"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7758 done
7759 done
7760 IFS=$as_save_IFS
7762 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7765 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7766 if test -n "$have_mktemp_command"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7768 $as_echo "$have_mktemp_command" >&6; }
7769 else
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7776 # See if makeinfo has been installed and is modern enough
7777 # that we can use it.
7779 # Extract the first word of "makeinfo", so it can be a program name with args.
7780 set dummy makeinfo; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7786 if test -n "$MAKEINFO"; then
7787 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7788 else
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 for as_dir in $PATH
7792 IFS=$as_save_IFS
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7796 ac_cv_prog_MAKEINFO="makeinfo"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 break 2
7800 done
7801 done
7802 IFS=$as_save_IFS
7806 MAKEINFO=$ac_cv_prog_MAKEINFO
7807 if test -n "$MAKEINFO"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7809 $as_echo "$MAKEINFO" >&6; }
7810 else
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7816 if test -n "$MAKEINFO"; then
7817 # Found it, now check the version.
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7819 $as_echo_n "checking for modern makeinfo... " >&6; }
7820 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7824 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7826 case $ac_prog_version in
7827 '') gcc_cv_prog_makeinfo_modern=no;;
7828 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7829 *) gcc_cv_prog_makeinfo_modern=no;;
7830 esac
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7834 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7835 else
7836 gcc_cv_prog_makeinfo_modern=no
7838 if test $gcc_cv_prog_makeinfo_modern = no; then
7839 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7842 if test $gcc_cv_prog_makeinfo_modern = no; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7844 *** Makeinfo is missing or too old.
7845 *** Info documentation will not be built." >&5
7846 $as_echo "$as_me: WARNING:
7847 *** Makeinfo is missing or too old.
7848 *** Info documentation will not be built." >&2;}
7849 BUILD_INFO=
7850 else
7851 BUILD_INFO=info
7855 # Is pod2man recent enough to regenerate manpages?
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7857 $as_echo_n "checking for recent Pod::Man... " >&6; }
7858 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7860 $as_echo "yes" >&6; }
7861 GENERATED_MANPAGES=generated-manpages
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7865 GENERATED_MANPAGES=
7869 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7871 # How about lex?
7872 for ac_prog in flex
7874 # Extract the first word of "$ac_prog", so it can be a program name with args.
7875 set dummy $ac_prog; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if test "${ac_cv_prog_FLEX+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 if test -n "$FLEX"; then
7882 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7883 else
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_prog_FLEX="$ac_prog"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 break 2
7895 done
7896 done
7897 IFS=$as_save_IFS
7901 FLEX=$ac_cv_prog_FLEX
7902 if test -n "$FLEX"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7904 $as_echo "$FLEX" >&6; }
7905 else
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7911 test -n "$FLEX" && break
7912 done
7913 test -n "$FLEX" || FLEX="$MISSING flex"
7916 # Bison?
7917 for ac_prog in bison
7919 # Extract the first word of "$ac_prog", so it can be a program name with args.
7920 set dummy $ac_prog; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if test "${ac_cv_prog_BISON+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 if test -n "$BISON"; then
7927 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_BISON="$ac_prog"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7940 done
7941 done
7942 IFS=$as_save_IFS
7946 BISON=$ac_cv_prog_BISON
7947 if test -n "$BISON"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7949 $as_echo "$BISON" >&6; }
7950 else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7956 test -n "$BISON" && break
7957 done
7958 test -n "$BISON" || BISON="$MISSING bison"
7961 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7962 # check for build == host before using them.
7964 # NM
7965 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7966 && test -d ../binutils ; then
7967 NM='${objdir}/../binutils/nm-new'
7968 else
7969 # Extract the first word of "nm", so it can be a program name with args.
7970 set dummy nm; ac_word=$2
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 $as_echo_n "checking for $ac_word... " >&6; }
7973 if test "${ac_cv_prog_NM+set}" = set; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 if test -n "$NM"; then
7977 ac_cv_prog_NM="$NM" # Let the user override the test.
7978 else
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7982 IFS=$as_save_IFS
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7986 ac_cv_prog_NM="nm"
7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 break 2
7990 done
7991 done
7992 IFS=$as_save_IFS
7994 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7997 NM=$ac_cv_prog_NM
7998 if test -n "$NM"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8000 $as_echo "$NM" >&6; }
8001 else
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8009 # AR
8010 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8011 && test -d ../binutils ; then
8012 AR='${objdir}/../binutils/ar'
8013 else
8014 # Extract the first word of "ar", so it can be a program name with args.
8015 set dummy ar; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if test "${ac_cv_prog_AR+set}" = set; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 if test -n "$AR"; then
8022 ac_cv_prog_AR="$AR" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_prog_AR="ar"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8035 done
8036 done
8037 IFS=$as_save_IFS
8039 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8042 AR=$ac_cv_prog_AR
8043 if test -n "$AR"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8045 $as_echo "$AR" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8055 # --------------------
8056 # Checks for C headers
8057 # --------------------
8059 # Need to reject headers which give warnings, so that the -Werror bootstrap
8060 # works later. *sigh* This needs to come before all header checks.
8062 ac_c_preproc_warn_flag=yes
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8065 $as_echo_n "checking for ANSI C header files... " >&6; }
8066 if test "${ac_cv_header_stdc+set}" = set; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 #include <stdlib.h>
8072 #include <stdarg.h>
8073 #include <string.h>
8074 #include <float.h>
8077 main ()
8081 return 0;
8083 _ACEOF
8084 if ac_fn_c_try_compile "$LINENO"; then :
8085 ac_cv_header_stdc=yes
8086 else
8087 ac_cv_header_stdc=no
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 if test $ac_cv_header_stdc = yes; then
8092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8095 #include <string.h>
8097 _ACEOF
8098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8099 $EGREP "memchr" >/dev/null 2>&1; then :
8101 else
8102 ac_cv_header_stdc=no
8104 rm -f conftest*
8108 if test $ac_cv_header_stdc = yes; then
8109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 #include <stdlib.h>
8114 _ACEOF
8115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8116 $EGREP "free" >/dev/null 2>&1; then :
8118 else
8119 ac_cv_header_stdc=no
8121 rm -f conftest*
8125 if test $ac_cv_header_stdc = yes; then
8126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8127 if test "$cross_compiling" = yes; then :
8129 else
8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131 /* end confdefs.h. */
8132 #include <ctype.h>
8133 #include <stdlib.h>
8134 #if ((' ' & 0x0FF) == 0x020)
8135 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8136 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8137 #else
8138 # define ISLOWER(c) \
8139 (('a' <= (c) && (c) <= 'i') \
8140 || ('j' <= (c) && (c) <= 'r') \
8141 || ('s' <= (c) && (c) <= 'z'))
8142 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8143 #endif
8145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8147 main ()
8149 int i;
8150 for (i = 0; i < 256; i++)
8151 if (XOR (islower (i), ISLOWER (i))
8152 || toupper (i) != TOUPPER (i))
8153 return 2;
8154 return 0;
8156 _ACEOF
8157 if ac_fn_c_try_run "$LINENO"; then :
8159 else
8160 ac_cv_header_stdc=no
8162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8163 conftest.$ac_objext conftest.beam conftest.$ac_ext
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8169 $as_echo "$ac_cv_header_stdc" >&6; }
8170 if test $ac_cv_header_stdc = yes; then
8172 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8177 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8178 if test "${ac_cv_header_time+set}" = set; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183 #include <sys/types.h>
8184 #include <sys/time.h>
8185 #include <time.h>
8188 main ()
8190 if ((struct tm *) 0)
8191 return 0;
8193 return 0;
8195 _ACEOF
8196 if ac_fn_c_try_compile "$LINENO"; then :
8197 ac_cv_header_time=yes
8198 else
8199 ac_cv_header_time=no
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8204 $as_echo "$ac_cv_header_time" >&6; }
8205 if test $ac_cv_header_time = yes; then
8207 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8212 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8213 if test "${gcc_cv_header_string+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 #include <string.h>
8219 #include <strings.h>
8221 main ()
8225 return 0;
8227 _ACEOF
8228 if ac_fn_c_try_compile "$LINENO"; then :
8229 gcc_cv_header_string=yes
8230 else
8231 gcc_cv_header_string=no
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8236 $as_echo "$gcc_cv_header_string" >&6; }
8237 if test $gcc_cv_header_string = yes; then
8239 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8244 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8245 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8250 #include <sys/types.h>
8251 #include <sys/wait.h>
8252 #ifndef WEXITSTATUS
8253 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8254 #endif
8255 #ifndef WIFEXITED
8256 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8257 #endif
8260 main ()
8262 int s;
8263 wait (&s);
8264 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8266 return 0;
8268 _ACEOF
8269 if ac_fn_c_try_compile "$LINENO"; then :
8270 ac_cv_header_sys_wait_h=yes
8271 else
8272 ac_cv_header_sys_wait_h=no
8274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8277 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8278 if test $ac_cv_header_sys_wait_h = yes; then
8280 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8284 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8285 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8286 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8287 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h libintl.h
8288 do :
8289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8290 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8291 eval as_val=\$$as_ac_Header
8292 if test "x$as_val" = x""yes; then :
8293 cat >>confdefs.h <<_ACEOF
8294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8295 _ACEOF
8298 done
8301 # Check for thread headers.
8302 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8303 if test "x$ac_cv_header_thread_h" = x""yes; then :
8304 have_thread_h=yes
8305 else
8306 have_thread_h=
8309 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8310 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8311 have_pthread_h=yes
8312 else
8313 have_pthread_h=
8317 # These tests can't be done till we know if we have limits.h.
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8319 $as_echo_n "checking for CHAR_BIT... " >&6; }
8320 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325 #ifdef HAVE_LIMITS_H
8326 #include <limits.h>
8327 #endif
8328 #ifdef CHAR_BIT
8329 found
8330 #endif
8331 _ACEOF
8332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8333 $EGREP "found" >/dev/null 2>&1; then :
8334 gcc_cv_decl_char_bit=yes
8335 else
8336 gcc_cv_decl_char_bit=no
8338 rm -f conftest*
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8343 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8344 if test $gcc_cv_decl_char_bit = no; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8346 $as_echo_n "checking number of bits in a byte... " >&6; }
8347 if test "${gcc_cv_c_nbby+set}" = set; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8351 gcc_cv_c_nbby=
8352 while test $i -lt 65; do
8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8357 main ()
8359 switch(0) {
8360 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8361 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8364 return 0;
8366 _ACEOF
8367 if ac_fn_c_try_compile "$LINENO"; then :
8368 gcc_cv_c_nbby=$i; break
8370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371 i=`expr $i + 1`
8372 done
8373 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8377 $as_echo "$gcc_cv_c_nbby" >&6; }
8378 if test $gcc_cv_c_nbby = failed; then
8379 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8380 else
8382 cat >>confdefs.h <<_ACEOF
8383 #define CHAR_BIT $gcc_cv_c_nbby
8384 _ACEOF
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8389 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8390 if test "${ac_cv_c_bigendian+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 ac_cv_c_bigendian=unknown
8394 # See if we're dealing with a universal compiler.
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #ifndef __APPLE_CC__
8398 not a universal capable compiler
8399 #endif
8400 typedef int dummy;
8402 _ACEOF
8403 if ac_fn_c_try_compile "$LINENO"; then :
8405 # Check for potential -arch flags. It is not universal unless
8406 # there are at least two -arch flags with different values.
8407 ac_arch=
8408 ac_prev=
8409 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8410 if test -n "$ac_prev"; then
8411 case $ac_word in
8412 i?86 | x86_64 | ppc | ppc64)
8413 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8414 ac_arch=$ac_word
8415 else
8416 ac_cv_c_bigendian=universal
8417 break
8420 esac
8421 ac_prev=
8422 elif test "x$ac_word" = "x-arch"; then
8423 ac_prev=arch
8425 done
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 if test $ac_cv_c_bigendian = unknown; then
8429 # See if sys/param.h defines the BYTE_ORDER macro.
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #include <sys/types.h>
8433 #include <sys/param.h>
8436 main ()
8438 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8439 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8440 && LITTLE_ENDIAN)
8441 bogus endian macros
8442 #endif
8445 return 0;
8447 _ACEOF
8448 if ac_fn_c_try_compile "$LINENO"; then :
8449 # It does; now see whether it defined to BIG_ENDIAN or not.
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 #include <sys/types.h>
8453 #include <sys/param.h>
8456 main ()
8458 #if BYTE_ORDER != BIG_ENDIAN
8459 not big endian
8460 #endif
8463 return 0;
8465 _ACEOF
8466 if ac_fn_c_try_compile "$LINENO"; then :
8467 ac_cv_c_bigendian=yes
8468 else
8469 ac_cv_c_bigendian=no
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 if test $ac_cv_c_bigendian = unknown; then
8476 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8479 #include <limits.h>
8482 main ()
8484 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8485 bogus endian macros
8486 #endif
8489 return 0;
8491 _ACEOF
8492 if ac_fn_c_try_compile "$LINENO"; then :
8493 # It does; now see whether it defined to _BIG_ENDIAN or not.
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 #include <limits.h>
8499 main ()
8501 #ifndef _BIG_ENDIAN
8502 not big endian
8503 #endif
8506 return 0;
8508 _ACEOF
8509 if ac_fn_c_try_compile "$LINENO"; then :
8510 ac_cv_c_bigendian=yes
8511 else
8512 ac_cv_c_bigendian=no
8514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 if test $ac_cv_c_bigendian = unknown; then
8519 # Compile a test program.
8520 if test "$cross_compiling" = yes; then :
8521 # Try to guess by grepping values from an object file.
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 short int ascii_mm[] =
8525 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8526 short int ascii_ii[] =
8527 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8528 int use_ascii (int i) {
8529 return ascii_mm[i] + ascii_ii[i];
8531 short int ebcdic_ii[] =
8532 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8533 short int ebcdic_mm[] =
8534 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8535 int use_ebcdic (int i) {
8536 return ebcdic_mm[i] + ebcdic_ii[i];
8538 extern int foo;
8541 main ()
8543 return use_ascii (foo) == use_ebcdic (foo);
8545 return 0;
8547 _ACEOF
8548 if ac_fn_c_try_compile "$LINENO"; then :
8549 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8550 ac_cv_c_bigendian=yes
8552 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8553 if test "$ac_cv_c_bigendian" = unknown; then
8554 ac_cv_c_bigendian=no
8555 else
8556 # finding both strings is unlikely to happen, but who knows?
8557 ac_cv_c_bigendian=unknown
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 else
8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 $ac_includes_default
8567 main ()
8570 /* Are we little or big endian? From Harbison&Steele. */
8571 union
8573 long int l;
8574 char c[sizeof (long int)];
8575 } u;
8576 u.l = 1;
8577 return u.c[sizeof (long int) - 1] == 1;
8580 return 0;
8582 _ACEOF
8583 if ac_fn_c_try_run "$LINENO"; then :
8584 ac_cv_c_bigendian=no
8585 else
8586 ac_cv_c_bigendian=yes
8588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8589 conftest.$ac_objext conftest.beam conftest.$ac_ext
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8595 $as_echo "$ac_cv_c_bigendian" >&6; }
8596 case $ac_cv_c_bigendian in #(
8597 yes)
8598 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8599 ;; #(
8601 ;; #(
8602 universal)
8604 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8606 ;; #(
8608 as_fn_error "unknown endianness
8609 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8610 esac
8613 # ----------------------
8614 # Checks for C++ headers
8615 # ----------------------
8617 ac_ext=cpp
8618 ac_cpp='$CXXCPP $CPPFLAGS'
8619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8623 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8624 if test -z "$CXXCPP"; then
8625 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8628 # Double quotes because CXXCPP needs to be expanded
8629 for CXXCPP in "$CXX -E" "/lib/cpp"
8631 ac_preproc_ok=false
8632 for ac_cxx_preproc_warn_flag in '' yes
8634 # Use a header file that comes with gcc, so configuring glibc
8635 # with a fresh cross-compiler works.
8636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8637 # <limits.h> exists even on freestanding compilers.
8638 # On the NeXT, cc -E runs the code through the compiler's parser,
8639 # not just through cpp. "Syntax error" is here to catch this case.
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 #ifdef __STDC__
8643 # include <limits.h>
8644 #else
8645 # include <assert.h>
8646 #endif
8647 Syntax error
8648 _ACEOF
8649 if ac_fn_cxx_try_cpp "$LINENO"; then :
8651 else
8652 # Broken: fails on valid input.
8653 continue
8655 rm -f conftest.err conftest.$ac_ext
8657 # OK, works on sane cases. Now check whether nonexistent headers
8658 # can be detected and how.
8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8661 #include <ac_nonexistent.h>
8662 _ACEOF
8663 if ac_fn_cxx_try_cpp "$LINENO"; then :
8664 # Broken: success on invalid input.
8665 continue
8666 else
8667 # Passes both tests.
8668 ac_preproc_ok=:
8669 break
8671 rm -f conftest.err conftest.$ac_ext
8673 done
8674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8675 rm -f conftest.err conftest.$ac_ext
8676 if $ac_preproc_ok; then :
8677 break
8680 done
8681 ac_cv_prog_CXXCPP=$CXXCPP
8684 CXXCPP=$ac_cv_prog_CXXCPP
8685 else
8686 ac_cv_prog_CXXCPP=$CXXCPP
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8689 $as_echo "$CXXCPP" >&6; }
8690 ac_preproc_ok=false
8691 for ac_cxx_preproc_warn_flag in '' yes
8693 # Use a header file that comes with gcc, so configuring glibc
8694 # with a fresh cross-compiler works.
8695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8696 # <limits.h> exists even on freestanding compilers.
8697 # On the NeXT, cc -E runs the code through the compiler's parser,
8698 # not just through cpp. "Syntax error" is here to catch this case.
8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8701 #ifdef __STDC__
8702 # include <limits.h>
8703 #else
8704 # include <assert.h>
8705 #endif
8706 Syntax error
8707 _ACEOF
8708 if ac_fn_cxx_try_cpp "$LINENO"; then :
8710 else
8711 # Broken: fails on valid input.
8712 continue
8714 rm -f conftest.err conftest.$ac_ext
8716 # OK, works on sane cases. Now check whether nonexistent headers
8717 # can be detected and how.
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8720 #include <ac_nonexistent.h>
8721 _ACEOF
8722 if ac_fn_cxx_try_cpp "$LINENO"; then :
8723 # Broken: success on invalid input.
8724 continue
8725 else
8726 # Passes both tests.
8727 ac_preproc_ok=:
8728 break
8730 rm -f conftest.err conftest.$ac_ext
8732 done
8733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8734 rm -f conftest.err conftest.$ac_ext
8735 if $ac_preproc_ok; then :
8737 else
8738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8741 See \`config.log' for more details." >&5
8742 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8743 See \`config.log' for more details." >&2;}; }
8746 ac_ext=c
8747 ac_cpp='$CPP $CPPFLAGS'
8748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8753 ac_ext=cpp
8754 ac_cpp='$CXXCPP $CPPFLAGS'
8755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8762 for ac_header in unordered_map
8763 do :
8764 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8765 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8766 cat >>confdefs.h <<_ACEOF
8767 #define HAVE_UNORDERED_MAP 1
8768 _ACEOF
8771 done
8773 for ac_header in tr1/unordered_map
8774 do :
8775 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8776 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8777 cat >>confdefs.h <<_ACEOF
8778 #define HAVE_TR1_UNORDERED_MAP 1
8779 _ACEOF
8782 done
8784 for ac_header in ext/hash_map
8785 do :
8786 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8787 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8788 cat >>confdefs.h <<_ACEOF
8789 #define HAVE_EXT_HASH_MAP 1
8790 _ACEOF
8793 done
8796 ac_ext=c
8797 ac_cpp='$CPP $CPPFLAGS'
8798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8803 # --------
8804 # UNSORTED
8805 # --------
8808 # These libraries may be used by collect2.
8809 # We may need a special search path to get them linked.
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8811 $as_echo_n "checking for collect2 libraries... " >&6; }
8812 if test "${gcc_cv_collect2_libs+set}" = set; then :
8813 $as_echo_n "(cached) " >&6
8814 else
8815 save_LIBS="$LIBS"
8816 for libs in '' -lld -lmld \
8817 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8818 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8820 LIBS="$libs"
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8824 /* Override any GCC internal prototype to avoid an error.
8825 Use char because int might match the return type of a GCC
8826 builtin and then its argument prototype would still apply. */
8827 #ifdef __cplusplus
8828 extern "C"
8829 #endif
8830 char ldopen ();
8832 main ()
8834 return ldopen ();
8836 return 0;
8838 _ACEOF
8839 if ac_fn_c_try_link "$LINENO"; then :
8840 gcc_cv_collect2_libs="$libs"; break
8842 rm -f core conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
8844 done
8845 LIBS="$save_LIBS"
8846 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8849 $as_echo "$gcc_cv_collect2_libs" >&6; }
8850 case $gcc_cv_collect2_libs in
8851 "none required") ;;
8852 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8853 esac
8856 # When building Ada code on Alpha, we need exc_resume which is usually in
8857 # -lexc. So test for it.
8858 save_LIBS="$LIBS"
8859 LIBS=
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8861 $as_echo_n "checking for library containing exc_resume... " >&6; }
8862 if test "${ac_cv_search_exc_resume+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 ac_func_search_save_LIBS=$LIBS
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8869 /* Override any GCC internal prototype to avoid an error.
8870 Use char because int might match the return type of a GCC
8871 builtin and then its argument prototype would still apply. */
8872 #ifdef __cplusplus
8873 extern "C"
8874 #endif
8875 char exc_resume ();
8877 main ()
8879 return exc_resume ();
8881 return 0;
8883 _ACEOF
8884 for ac_lib in '' exc; do
8885 if test -z "$ac_lib"; then
8886 ac_res="none required"
8887 else
8888 ac_res=-l$ac_lib
8889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8891 if ac_fn_c_try_link "$LINENO"; then :
8892 ac_cv_search_exc_resume=$ac_res
8894 rm -f core conftest.err conftest.$ac_objext \
8895 conftest$ac_exeext
8896 if test "${ac_cv_search_exc_resume+set}" = set; then :
8897 break
8899 done
8900 if test "${ac_cv_search_exc_resume+set}" = set; then :
8902 else
8903 ac_cv_search_exc_resume=no
8905 rm conftest.$ac_ext
8906 LIBS=$ac_func_search_save_LIBS
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8909 $as_echo "$ac_cv_search_exc_resume" >&6; }
8910 ac_res=$ac_cv_search_exc_resume
8911 if test "$ac_res" != no; then :
8912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8916 GNAT_LIBEXC="$LIBS"
8917 LIBS="$save_LIBS"
8920 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8921 save_LIBS="$LIBS"
8922 LIBS=
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8924 $as_echo_n "checking for library containing kstat_open... " >&6; }
8925 if test "${ac_cv_search_kstat_open+set}" = set; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 ac_func_search_save_LIBS=$LIBS
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8932 /* Override any GCC internal prototype to avoid an error.
8933 Use char because int might match the return type of a GCC
8934 builtin and then its argument prototype would still apply. */
8935 #ifdef __cplusplus
8936 extern "C"
8937 #endif
8938 char kstat_open ();
8940 main ()
8942 return kstat_open ();
8944 return 0;
8946 _ACEOF
8947 for ac_lib in '' kstat; do
8948 if test -z "$ac_lib"; then
8949 ac_res="none required"
8950 else
8951 ac_res=-l$ac_lib
8952 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8954 if ac_fn_c_try_link "$LINENO"; then :
8955 ac_cv_search_kstat_open=$ac_res
8957 rm -f core conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext
8959 if test "${ac_cv_search_kstat_open+set}" = set; then :
8960 break
8962 done
8963 if test "${ac_cv_search_kstat_open+set}" = set; then :
8965 else
8966 ac_cv_search_kstat_open=no
8968 rm conftest.$ac_ext
8969 LIBS=$ac_func_search_save_LIBS
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8972 $as_echo "$ac_cv_search_kstat_open" >&6; }
8973 ac_res=$ac_cv_search_kstat_open
8974 if test "$ac_res" != no; then :
8975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8979 EXTRA_GCC_LIBS="$LIBS"
8980 LIBS="$save_LIBS"
8983 # Some systems put ldexp and frexp in libm instead of libc; assume
8984 # they're both in the same place. jcf-dump needs them.
8985 save_LIBS="$LIBS"
8986 LIBS=
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8988 $as_echo_n "checking for library containing ldexp... " >&6; }
8989 if test "${ac_cv_search_ldexp+set}" = set; then :
8990 $as_echo_n "(cached) " >&6
8991 else
8992 ac_func_search_save_LIBS=$LIBS
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8996 /* Override any GCC internal prototype to avoid an error.
8997 Use char because int might match the return type of a GCC
8998 builtin and then its argument prototype would still apply. */
8999 #ifdef __cplusplus
9000 extern "C"
9001 #endif
9002 char ldexp ();
9004 main ()
9006 return ldexp ();
9008 return 0;
9010 _ACEOF
9011 for ac_lib in '' m; do
9012 if test -z "$ac_lib"; then
9013 ac_res="none required"
9014 else
9015 ac_res=-l$ac_lib
9016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9018 if ac_fn_c_try_link "$LINENO"; then :
9019 ac_cv_search_ldexp=$ac_res
9021 rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext
9023 if test "${ac_cv_search_ldexp+set}" = set; then :
9024 break
9026 done
9027 if test "${ac_cv_search_ldexp+set}" = set; then :
9029 else
9030 ac_cv_search_ldexp=no
9032 rm conftest.$ac_ext
9033 LIBS=$ac_func_search_save_LIBS
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9036 $as_echo "$ac_cv_search_ldexp" >&6; }
9037 ac_res=$ac_cv_search_ldexp
9038 if test "$ac_res" != no; then :
9039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9043 LDEXP_LIB="$LIBS"
9044 LIBS="$save_LIBS"
9047 # Use <inttypes.h> only if it exists,
9048 # doesn't clash with <sys/types.h>, and declares intmax_t.
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9050 $as_echo_n "checking for inttypes.h... " >&6; }
9051 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9056 #include <sys/types.h>
9057 #include <inttypes.h>
9059 main ()
9061 intmax_t i = -1;
9063 return 0;
9065 _ACEOF
9066 if ac_fn_c_try_compile "$LINENO"; then :
9067 gcc_cv_header_inttypes_h=yes
9068 else
9069 gcc_cv_header_inttypes_h=no
9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9075 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9076 if test $gcc_cv_header_inttypes_h = yes; then
9078 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9084 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9085 sysconf strsignal getrusage nl_langinfo \
9086 gettimeofday mbstowcs wcswidth mmap setlocale \
9087 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
9088 do :
9089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9090 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9091 eval as_val=\$$as_ac_var
9092 if test "x$as_val" = x""yes; then :
9093 cat >>confdefs.h <<_ACEOF
9094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9095 _ACEOF
9098 done
9101 if test x$ac_cv_func_mbstowcs = xyes; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9103 $as_echo_n "checking whether mbstowcs works... " >&6; }
9104 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 if test "$cross_compiling" = yes; then :
9108 gcc_cv_func_mbstowcs_works=yes
9109 else
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 #include <stdlib.h>
9113 int main()
9115 mbstowcs(0, "", 0);
9116 return 0;
9118 _ACEOF
9119 if ac_fn_c_try_run "$LINENO"; then :
9120 gcc_cv_func_mbstowcs_works=yes
9121 else
9122 gcc_cv_func_mbstowcs_works=no
9124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9125 conftest.$ac_objext conftest.beam conftest.$ac_ext
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9130 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9131 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9133 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9138 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9139 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9141 else
9143 cat >>confdefs.h <<_ACEOF
9144 #define ssize_t int
9145 _ACEOF
9149 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9150 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9152 else
9154 cat >>confdefs.h <<_ACEOF
9155 #define caddr_t char *
9156 _ACEOF
9162 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9163 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9164 gcc_header_sys_mman_h=yes
9165 else
9166 gcc_header_sys_mman_h=no
9169 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9170 if test "x$ac_cv_func_mmap" = x""yes; then :
9171 gcc_func_mmap=yes
9172 else
9173 gcc_func_mmap=no
9176 if test "$gcc_header_sys_mman_h" != yes \
9177 || test "$gcc_func_mmap" != yes; then
9178 gcc_cv_func_mmap_file=no
9179 gcc_cv_func_mmap_dev_zero=no
9180 gcc_cv_func_mmap_anon=no
9181 else
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9183 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9184 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 # Add a system to this blacklist if
9188 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9189 # memory area containing the same data that you'd get if you applied
9190 # read() to the same fd. The only system known to have a problem here
9191 # is VMS, where text files have record structure.
9192 case "$host_os" in
9193 *vms* | ultrix*)
9194 gcc_cv_func_mmap_file=no ;;
9196 gcc_cv_func_mmap_file=yes;;
9197 esac
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9200 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9202 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9203 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 # Add a system to this blacklist if it has mmap() but /dev/zero
9207 # does not exist, or if mmapping /dev/zero does not give anonymous
9208 # zeroed pages with both the following properties:
9209 # 1. If you map N consecutive pages in with one call, and then
9210 # unmap any subset of those pages, the pages that were not
9211 # explicitly unmapped remain accessible.
9212 # 2. If you map two adjacent blocks of memory and then unmap them
9213 # both at once, they must both go away.
9214 # Systems known to be in this category are Windows (all variants),
9215 # VMS, and Darwin.
9216 case "$host_os" in
9217 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9218 gcc_cv_func_mmap_dev_zero=no ;;
9220 gcc_cv_func_mmap_dev_zero=yes;;
9221 esac
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9224 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9226 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9228 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9229 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9230 $as_echo_n "(cached) " >&6
9231 else
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9234 #include <sys/types.h>
9235 #include <sys/mman.h>
9236 #include <unistd.h>
9238 #ifndef MAP_ANONYMOUS
9239 #define MAP_ANONYMOUS MAP_ANON
9240 #endif
9243 main ()
9245 int n = MAP_ANONYMOUS;
9247 return 0;
9249 _ACEOF
9250 if ac_fn_c_try_compile "$LINENO"; then :
9251 gcc_cv_decl_map_anon=yes
9252 else
9253 gcc_cv_decl_map_anon=no
9255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9258 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9260 if test $gcc_cv_decl_map_anon = no; then
9261 gcc_cv_func_mmap_anon=no
9262 else
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9264 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9265 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9269 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9270 # doesn't give anonymous zeroed pages with the same properties listed
9271 # above for use of /dev/zero.
9272 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9273 case "$host_os" in
9274 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9275 gcc_cv_func_mmap_anon=no ;;
9277 gcc_cv_func_mmap_anon=yes;;
9278 esac
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9281 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9285 if test $gcc_cv_func_mmap_file = yes; then
9287 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9290 if test $gcc_cv_func_mmap_dev_zero = yes; then
9292 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9295 if test $gcc_cv_func_mmap_anon = yes; then
9297 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9302 case "${host}" in
9303 *-*-*vms*)
9304 # Under VMS, vfork works very differently than on Unix. The standard test
9305 # won't work, and it isn't easily adaptable. It makes more sense to
9306 # just force it.
9307 ac_cv_func_vfork_works=yes
9309 esac
9310 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9311 if test "x$ac_cv_type_pid_t" = x""yes; then :
9313 else
9315 cat >>confdefs.h <<_ACEOF
9316 #define pid_t int
9317 _ACEOF
9321 for ac_header in vfork.h
9322 do :
9323 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9324 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9325 cat >>confdefs.h <<_ACEOF
9326 #define HAVE_VFORK_H 1
9327 _ACEOF
9330 done
9332 for ac_func in fork vfork
9333 do :
9334 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9335 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9336 eval as_val=\$$as_ac_var
9337 if test "x$as_val" = x""yes; then :
9338 cat >>confdefs.h <<_ACEOF
9339 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9340 _ACEOF
9343 done
9345 if test "x$ac_cv_func_fork" = xyes; then
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9347 $as_echo_n "checking for working fork... " >&6; }
9348 if test "${ac_cv_func_fork_works+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 if test "$cross_compiling" = yes; then :
9352 ac_cv_func_fork_works=cross
9353 else
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356 $ac_includes_default
9358 main ()
9361 /* By Ruediger Kuhlmann. */
9362 return fork () < 0;
9365 return 0;
9367 _ACEOF
9368 if ac_fn_c_try_run "$LINENO"; then :
9369 ac_cv_func_fork_works=yes
9370 else
9371 ac_cv_func_fork_works=no
9373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9374 conftest.$ac_objext conftest.beam conftest.$ac_ext
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9379 $as_echo "$ac_cv_func_fork_works" >&6; }
9381 else
9382 ac_cv_func_fork_works=$ac_cv_func_fork
9384 if test "x$ac_cv_func_fork_works" = xcross; then
9385 case $host in
9386 *-*-amigaos* | *-*-msdosdjgpp*)
9387 # Override, as these systems have only a dummy fork() stub
9388 ac_cv_func_fork_works=no
9391 ac_cv_func_fork_works=yes
9393 esac
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9395 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9397 ac_cv_func_vfork_works=$ac_cv_func_vfork
9398 if test "x$ac_cv_func_vfork" = xyes; then
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9400 $as_echo_n "checking for working vfork... " >&6; }
9401 if test "${ac_cv_func_vfork_works+set}" = set; then :
9402 $as_echo_n "(cached) " >&6
9403 else
9404 if test "$cross_compiling" = yes; then :
9405 ac_cv_func_vfork_works=cross
9406 else
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 /* Thanks to Paul Eggert for this test. */
9410 $ac_includes_default
9411 #include <sys/wait.h>
9412 #ifdef HAVE_VFORK_H
9413 # include <vfork.h>
9414 #endif
9415 /* On some sparc systems, changes by the child to local and incoming
9416 argument registers are propagated back to the parent. The compiler
9417 is told about this with #include <vfork.h>, but some compilers
9418 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9419 static variable whose address is put into a register that is
9420 clobbered by the vfork. */
9421 static void
9422 #ifdef __cplusplus
9423 sparc_address_test (int arg)
9424 # else
9425 sparc_address_test (arg) int arg;
9426 #endif
9428 static pid_t child;
9429 if (!child) {
9430 child = vfork ();
9431 if (child < 0) {
9432 perror ("vfork");
9433 _exit(2);
9435 if (!child) {
9436 arg = getpid();
9437 write(-1, "", 0);
9438 _exit (arg);
9444 main ()
9446 pid_t parent = getpid ();
9447 pid_t child;
9449 sparc_address_test (0);
9451 child = vfork ();
9453 if (child == 0) {
9454 /* Here is another test for sparc vfork register problems. This
9455 test uses lots of local variables, at least as many local
9456 variables as main has allocated so far including compiler
9457 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9458 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9459 reuse the register of parent for one of the local variables,
9460 since it will think that parent can't possibly be used any more
9461 in this routine. Assigning to the local variable will thus
9462 munge parent in the parent process. */
9463 pid_t
9464 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9465 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9466 /* Convince the compiler that p..p7 are live; otherwise, it might
9467 use the same hardware register for all 8 local variables. */
9468 if (p != p1 || p != p2 || p != p3 || p != p4
9469 || p != p5 || p != p6 || p != p7)
9470 _exit(1);
9472 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9473 from child file descriptors. If the child closes a descriptor
9474 before it execs or exits, this munges the parent's descriptor
9475 as well. Test for this by closing stdout in the child. */
9476 _exit(close(fileno(stdout)) != 0);
9477 } else {
9478 int status;
9479 struct stat st;
9481 while (wait(&status) != child)
9483 return (
9484 /* Was there some problem with vforking? */
9485 child < 0
9487 /* Did the child fail? (This shouldn't happen.) */
9488 || status
9490 /* Did the vfork/compiler bug occur? */
9491 || parent != getpid()
9493 /* Did the file descriptor bug occur? */
9494 || fstat(fileno(stdout), &st) != 0
9498 _ACEOF
9499 if ac_fn_c_try_run "$LINENO"; then :
9500 ac_cv_func_vfork_works=yes
9501 else
9502 ac_cv_func_vfork_works=no
9504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9505 conftest.$ac_objext conftest.beam conftest.$ac_ext
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9510 $as_echo "$ac_cv_func_vfork_works" >&6; }
9513 if test "x$ac_cv_func_fork_works" = xcross; then
9514 ac_cv_func_vfork_works=$ac_cv_func_vfork
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9516 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9519 if test "x$ac_cv_func_vfork_works" = xyes; then
9521 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9523 else
9525 $as_echo "#define vfork fork" >>confdefs.h
9528 if test "x$ac_cv_func_fork_works" = xyes; then
9530 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9535 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9536 # iconv() prototype.
9537 ac_ext=cpp
9538 ac_cpp='$CXXCPP $CPPFLAGS'
9539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9544 if test "X$prefix" = "XNONE"; then
9545 acl_final_prefix="$ac_default_prefix"
9546 else
9547 acl_final_prefix="$prefix"
9549 if test "X$exec_prefix" = "XNONE"; then
9550 acl_final_exec_prefix='${prefix}'
9551 else
9552 acl_final_exec_prefix="$exec_prefix"
9554 acl_save_prefix="$prefix"
9555 prefix="$acl_final_prefix"
9556 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9557 prefix="$acl_save_prefix"
9560 # Check whether --with-gnu-ld was given.
9561 if test "${with_gnu_ld+set}" = set; then :
9562 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9563 else
9564 with_gnu_ld=no
9567 # Prepare PATH_SEPARATOR.
9568 # The user is always right.
9569 if test "${PATH_SEPARATOR+set}" != set; then
9570 echo "#! /bin/sh" >conf$$.sh
9571 echo "exit 0" >>conf$$.sh
9572 chmod +x conf$$.sh
9573 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9574 PATH_SEPARATOR=';'
9575 else
9576 PATH_SEPARATOR=:
9578 rm -f conf$$.sh
9580 ac_prog=ld
9581 if test "$GCC" = yes; then
9582 # Check if gcc -print-prog-name=ld gives a path.
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9584 $as_echo_n "checking for ld used by GCC... " >&6; }
9585 case $host in
9586 *-*-mingw*)
9587 # gcc leaves a trailing carriage return which upsets mingw
9588 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9590 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9591 esac
9592 case $ac_prog in
9593 # Accept absolute paths.
9594 [\\/]* | [A-Za-z]:[\\/]*)
9595 re_direlt='/[^/][^/]*/\.\./'
9596 # Canonicalize the path of ld
9597 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9598 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9599 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9600 done
9601 test -z "$LD" && LD="$ac_prog"
9604 # If it fails, then pretend we aren't using GCC.
9605 ac_prog=ld
9608 # If it is relative, then search for the first ld in PATH.
9609 with_gnu_ld=unknown
9611 esac
9612 elif test "$with_gnu_ld" = yes; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9614 $as_echo_n "checking for GNU ld... " >&6; }
9615 else
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9617 $as_echo_n "checking for non-GNU ld... " >&6; }
9619 if test "${acl_cv_path_LD+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 if test -z "$LD"; then
9623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9624 for ac_dir in $PATH; do
9625 test -z "$ac_dir" && ac_dir=.
9626 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9627 acl_cv_path_LD="$ac_dir/$ac_prog"
9628 # Check to see if the program is GNU ld. I'd rather use --version,
9629 # but apparently some GNU ld's only accept -v.
9630 # Break only if it was the GNU/non-GNU ld that we prefer.
9631 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9632 test "$with_gnu_ld" != no && break
9633 else
9634 test "$with_gnu_ld" != yes && break
9637 done
9638 IFS="$ac_save_ifs"
9639 else
9640 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9644 LD="$acl_cv_path_LD"
9645 if test -n "$LD"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9647 $as_echo "$LD" >&6; }
9648 else
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9652 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9654 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9655 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9656 $as_echo_n "(cached) " >&6
9657 else
9658 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9659 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9660 acl_cv_prog_gnu_ld=yes
9661 else
9662 acl_cv_prog_gnu_ld=no
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9666 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9667 with_gnu_ld=$acl_cv_prog_gnu_ld
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9672 $as_echo_n "checking for shared library run path origin... " >&6; }
9673 if test "${acl_cv_rpath+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9677 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9678 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9679 . ./conftest.sh
9680 rm -f ./conftest.sh
9681 acl_cv_rpath=done
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9685 $as_echo "$acl_cv_rpath" >&6; }
9686 wl="$acl_cv_wl"
9687 libext="$acl_cv_libext"
9688 shlibext="$acl_cv_shlibext"
9689 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9690 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9691 hardcode_direct="$acl_cv_hardcode_direct"
9692 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9693 # Check whether --enable-rpath was given.
9694 if test "${enable_rpath+set}" = set; then :
9695 enableval=$enable_rpath; :
9696 else
9697 enable_rpath=yes
9707 use_additional=yes
9709 acl_save_prefix="$prefix"
9710 prefix="$acl_final_prefix"
9711 acl_save_exec_prefix="$exec_prefix"
9712 exec_prefix="$acl_final_exec_prefix"
9714 eval additional_includedir=\"$includedir\"
9715 eval additional_libdir=\"$libdir\"
9717 exec_prefix="$acl_save_exec_prefix"
9718 prefix="$acl_save_prefix"
9721 # Check whether --with-libiconv-prefix was given.
9722 if test "${with_libiconv_prefix+set}" = set; then :
9723 withval=$with_libiconv_prefix;
9724 if test "X$withval" = "Xno"; then
9725 use_additional=no
9726 else
9727 if test "X$withval" = "X"; then
9729 acl_save_prefix="$prefix"
9730 prefix="$acl_final_prefix"
9731 acl_save_exec_prefix="$exec_prefix"
9732 exec_prefix="$acl_final_exec_prefix"
9734 eval additional_includedir=\"$includedir\"
9735 eval additional_libdir=\"$libdir\"
9737 exec_prefix="$acl_save_exec_prefix"
9738 prefix="$acl_save_prefix"
9740 else
9741 additional_includedir="$withval/include"
9742 additional_libdir="$withval/lib"
9748 LIBICONV=
9749 LTLIBICONV=
9750 INCICONV=
9751 rpathdirs=
9752 ltrpathdirs=
9753 names_already_handled=
9754 names_next_round='iconv '
9755 while test -n "$names_next_round"; do
9756 names_this_round="$names_next_round"
9757 names_next_round=
9758 for name in $names_this_round; do
9759 already_handled=
9760 for n in $names_already_handled; do
9761 if test "$n" = "$name"; then
9762 already_handled=yes
9763 break
9765 done
9766 if test -z "$already_handled"; then
9767 names_already_handled="$names_already_handled $name"
9768 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9769 eval value=\"\$HAVE_LIB$uppername\"
9770 if test -n "$value"; then
9771 if test "$value" = yes; then
9772 eval value=\"\$LIB$uppername\"
9773 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9774 eval value=\"\$LTLIB$uppername\"
9775 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9776 else
9779 else
9780 found_dir=
9781 found_la=
9782 found_so=
9783 found_a=
9784 if test $use_additional = yes; then
9785 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9786 found_dir="$additional_libdir"
9787 found_so="$additional_libdir/lib$name.$shlibext"
9788 if test -f "$additional_libdir/lib$name.la"; then
9789 found_la="$additional_libdir/lib$name.la"
9791 else
9792 if test -f "$additional_libdir/lib$name.$libext"; then
9793 found_dir="$additional_libdir"
9794 found_a="$additional_libdir/lib$name.$libext"
9795 if test -f "$additional_libdir/lib$name.la"; then
9796 found_la="$additional_libdir/lib$name.la"
9801 if test "X$found_dir" = "X"; then
9802 for x in $LDFLAGS $LTLIBICONV; do
9804 acl_save_prefix="$prefix"
9805 prefix="$acl_final_prefix"
9806 acl_save_exec_prefix="$exec_prefix"
9807 exec_prefix="$acl_final_exec_prefix"
9808 eval x=\"$x\"
9809 exec_prefix="$acl_save_exec_prefix"
9810 prefix="$acl_save_prefix"
9812 case "$x" in
9813 -L*)
9814 dir=`echo "X$x" | sed -e 's/^X-L//'`
9815 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9816 found_dir="$dir"
9817 found_so="$dir/lib$name.$shlibext"
9818 if test -f "$dir/lib$name.la"; then
9819 found_la="$dir/lib$name.la"
9821 else
9822 if test -f "$dir/lib$name.$libext"; then
9823 found_dir="$dir"
9824 found_a="$dir/lib$name.$libext"
9825 if test -f "$dir/lib$name.la"; then
9826 found_la="$dir/lib$name.la"
9831 esac
9832 if test "X$found_dir" != "X"; then
9833 break
9835 done
9837 if test "X$found_dir" != "X"; then
9838 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9839 if test "X$found_so" != "X"; then
9840 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9841 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9842 else
9843 haveit=
9844 for x in $ltrpathdirs; do
9845 if test "X$x" = "X$found_dir"; then
9846 haveit=yes
9847 break
9849 done
9850 if test -z "$haveit"; then
9851 ltrpathdirs="$ltrpathdirs $found_dir"
9853 if test "$hardcode_direct" = yes; then
9854 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9855 else
9856 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9857 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9858 haveit=
9859 for x in $rpathdirs; do
9860 if test "X$x" = "X$found_dir"; then
9861 haveit=yes
9862 break
9864 done
9865 if test -z "$haveit"; then
9866 rpathdirs="$rpathdirs $found_dir"
9868 else
9869 haveit=
9870 for x in $LDFLAGS $LIBICONV; do
9872 acl_save_prefix="$prefix"
9873 prefix="$acl_final_prefix"
9874 acl_save_exec_prefix="$exec_prefix"
9875 exec_prefix="$acl_final_exec_prefix"
9876 eval x=\"$x\"
9877 exec_prefix="$acl_save_exec_prefix"
9878 prefix="$acl_save_prefix"
9880 if test "X$x" = "X-L$found_dir"; then
9881 haveit=yes
9882 break
9884 done
9885 if test -z "$haveit"; then
9886 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9888 if test "$hardcode_minus_L" != no; then
9889 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9890 else
9891 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9896 else
9897 if test "X$found_a" != "X"; then
9898 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9899 else
9900 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9903 additional_includedir=
9904 case "$found_dir" in
9905 */lib | */lib/)
9906 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9907 additional_includedir="$basedir/include"
9909 esac
9910 if test "X$additional_includedir" != "X"; then
9911 if test "X$additional_includedir" != "X/usr/include"; then
9912 haveit=
9913 if test "X$additional_includedir" = "X/usr/local/include"; then
9914 if test -n "$GCC"; then
9915 case $host_os in
9916 linux*) haveit=yes;;
9917 esac
9920 if test -z "$haveit"; then
9921 for x in $CPPFLAGS $INCICONV; do
9923 acl_save_prefix="$prefix"
9924 prefix="$acl_final_prefix"
9925 acl_save_exec_prefix="$exec_prefix"
9926 exec_prefix="$acl_final_exec_prefix"
9927 eval x=\"$x\"
9928 exec_prefix="$acl_save_exec_prefix"
9929 prefix="$acl_save_prefix"
9931 if test "X$x" = "X-I$additional_includedir"; then
9932 haveit=yes
9933 break
9935 done
9936 if test -z "$haveit"; then
9937 if test -d "$additional_includedir"; then
9938 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9944 if test -n "$found_la"; then
9945 save_libdir="$libdir"
9946 case "$found_la" in
9947 */* | *\\*) . "$found_la" ;;
9948 *) . "./$found_la" ;;
9949 esac
9950 libdir="$save_libdir"
9951 for dep in $dependency_libs; do
9952 case "$dep" in
9953 -L*)
9954 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9955 if test "X$additional_libdir" != "X/usr/lib"; then
9956 haveit=
9957 if test "X$additional_libdir" = "X/usr/local/lib"; then
9958 if test -n "$GCC"; then
9959 case $host_os in
9960 linux*) haveit=yes;;
9961 esac
9964 if test -z "$haveit"; then
9965 haveit=
9966 for x in $LDFLAGS $LIBICONV; do
9968 acl_save_prefix="$prefix"
9969 prefix="$acl_final_prefix"
9970 acl_save_exec_prefix="$exec_prefix"
9971 exec_prefix="$acl_final_exec_prefix"
9972 eval x=\"$x\"
9973 exec_prefix="$acl_save_exec_prefix"
9974 prefix="$acl_save_prefix"
9976 if test "X$x" = "X-L$additional_libdir"; then
9977 haveit=yes
9978 break
9980 done
9981 if test -z "$haveit"; then
9982 if test -d "$additional_libdir"; then
9983 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9986 haveit=
9987 for x in $LDFLAGS $LTLIBICONV; do
9989 acl_save_prefix="$prefix"
9990 prefix="$acl_final_prefix"
9991 acl_save_exec_prefix="$exec_prefix"
9992 exec_prefix="$acl_final_exec_prefix"
9993 eval x=\"$x\"
9994 exec_prefix="$acl_save_exec_prefix"
9995 prefix="$acl_save_prefix"
9997 if test "X$x" = "X-L$additional_libdir"; then
9998 haveit=yes
9999 break
10001 done
10002 if test -z "$haveit"; then
10003 if test -d "$additional_libdir"; then
10004 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10010 -R*)
10011 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10012 if test "$enable_rpath" != no; then
10013 haveit=
10014 for x in $rpathdirs; do
10015 if test "X$x" = "X$dir"; then
10016 haveit=yes
10017 break
10019 done
10020 if test -z "$haveit"; then
10021 rpathdirs="$rpathdirs $dir"
10023 haveit=
10024 for x in $ltrpathdirs; do
10025 if test "X$x" = "X$dir"; then
10026 haveit=yes
10027 break
10029 done
10030 if test -z "$haveit"; then
10031 ltrpathdirs="$ltrpathdirs $dir"
10035 -l*)
10036 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10038 *.la)
10039 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10042 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10043 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10045 esac
10046 done
10048 else
10049 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10050 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10054 done
10055 done
10056 if test "X$rpathdirs" != "X"; then
10057 if test -n "$hardcode_libdir_separator"; then
10058 alldirs=
10059 for found_dir in $rpathdirs; do
10060 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10061 done
10062 acl_save_libdir="$libdir"
10063 libdir="$alldirs"
10064 eval flag=\"$hardcode_libdir_flag_spec\"
10065 libdir="$acl_save_libdir"
10066 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10067 else
10068 for found_dir in $rpathdirs; do
10069 acl_save_libdir="$libdir"
10070 libdir="$found_dir"
10071 eval flag=\"$hardcode_libdir_flag_spec\"
10072 libdir="$acl_save_libdir"
10073 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10074 done
10077 if test "X$ltrpathdirs" != "X"; then
10078 for found_dir in $ltrpathdirs; do
10079 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10080 done
10089 am_save_CPPFLAGS="$CPPFLAGS"
10091 for element in $INCICONV; do
10092 haveit=
10093 for x in $CPPFLAGS; do
10095 acl_save_prefix="$prefix"
10096 prefix="$acl_final_prefix"
10097 acl_save_exec_prefix="$exec_prefix"
10098 exec_prefix="$acl_final_exec_prefix"
10099 eval x=\"$x\"
10100 exec_prefix="$acl_save_exec_prefix"
10101 prefix="$acl_save_prefix"
10103 if test "X$x" = "X$element"; then
10104 haveit=yes
10105 break
10107 done
10108 if test -z "$haveit"; then
10109 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10111 done
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10115 $as_echo_n "checking for iconv... " >&6; }
10116 if test "${am_cv_func_iconv+set}" = set; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10120 am_cv_func_iconv="no, consider installing GNU libiconv"
10121 am_cv_lib_iconv=no
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10124 #include <stdlib.h>
10125 #include <iconv.h>
10127 main ()
10129 iconv_t cd = iconv_open("","");
10130 iconv(cd,NULL,NULL,NULL,NULL);
10131 iconv_close(cd);
10133 return 0;
10135 _ACEOF
10136 if ac_fn_cxx_try_link "$LINENO"; then :
10137 am_cv_func_iconv=yes
10139 rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
10141 if test "$am_cv_func_iconv" != yes; then
10142 am_save_LIBS="$LIBS"
10143 LIBS="$LIBS $LIBICONV"
10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10146 #include <stdlib.h>
10147 #include <iconv.h>
10149 main ()
10151 iconv_t cd = iconv_open("","");
10152 iconv(cd,NULL,NULL,NULL,NULL);
10153 iconv_close(cd);
10155 return 0;
10157 _ACEOF
10158 if ac_fn_cxx_try_link "$LINENO"; then :
10159 am_cv_lib_iconv=yes
10160 am_cv_func_iconv=yes
10162 rm -f core conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
10164 LIBS="$am_save_LIBS"
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10169 $as_echo "$am_cv_func_iconv" >&6; }
10170 if test "$am_cv_func_iconv" = yes; then
10172 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10175 if test "$am_cv_lib_iconv" = yes; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10177 $as_echo_n "checking how to link with libiconv... " >&6; }
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10179 $as_echo "$LIBICONV" >&6; }
10180 else
10181 CPPFLAGS="$am_save_CPPFLAGS"
10182 LIBICONV=
10183 LTLIBICONV=
10188 if test "$am_cv_func_iconv" = yes; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10190 $as_echo_n "checking for iconv declaration... " >&6; }
10191 if test "${am_cv_proto_iconv+set}" = set; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10198 #include <stdlib.h>
10199 #include <iconv.h>
10200 extern
10201 #ifdef __cplusplus
10203 #endif
10204 #if defined(__STDC__) || defined(__cplusplus)
10205 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10206 #else
10207 size_t iconv();
10208 #endif
10211 main ()
10215 return 0;
10217 _ACEOF
10218 if ac_fn_cxx_try_compile "$LINENO"; then :
10219 am_cv_proto_iconv_arg1=""
10220 else
10221 am_cv_proto_iconv_arg1="const"
10223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10224 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);"
10227 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10229 }$am_cv_proto_iconv" >&5
10230 $as_echo "${ac_t:-
10231 }$am_cv_proto_iconv" >&6; }
10233 cat >>confdefs.h <<_ACEOF
10234 #define ICONV_CONST $am_cv_proto_iconv_arg1
10235 _ACEOF
10239 ac_ext=c
10240 ac_cpp='$CPP $CPPFLAGS'
10241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10246 # Until we have in-tree GNU iconv:
10247 LIBICONV_DEP=
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10252 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10253 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258 #include <locale.h>
10260 main ()
10262 return LC_MESSAGES
10264 return 0;
10266 _ACEOF
10267 if ac_fn_c_try_link "$LINENO"; then :
10268 am_cv_val_LC_MESSAGES=yes
10269 else
10270 am_cv_val_LC_MESSAGES=no
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10276 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10277 if test $am_cv_val_LC_MESSAGES = yes; then
10279 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10286 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10287 if test "${am_cv_langinfo_codeset+set}" = set; then :
10288 $as_echo_n "(cached) " >&6
10289 else
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10292 #include <langinfo.h>
10294 main ()
10296 char* cs = nl_langinfo(CODESET);
10298 return 0;
10300 _ACEOF
10301 if ac_fn_c_try_link "$LINENO"; then :
10302 am_cv_langinfo_codeset=yes
10303 else
10304 am_cv_langinfo_codeset=no
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10311 $as_echo "$am_cv_langinfo_codeset" >&6; }
10312 if test $am_cv_langinfo_codeset = yes; then
10314 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10319 # We will need to find libiberty.h and ansidecl.h
10320 saved_CFLAGS="$CFLAGS"
10321 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10322 saved_CXXFLAGS="$CXXFLAGS"
10323 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10324 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10325 strsignal strstr stpcpy strverscmp \
10326 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10327 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
10329 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10331 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10332 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10333 $as_echo_n "(cached) " >&6
10334 else
10335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10336 /* end confdefs.h. */
10337 #undef $ac_tr_decl
10338 #define $ac_tr_decl 1
10340 #include "ansidecl.h"
10341 #include "system.h"
10344 main ()
10346 #ifndef $ac_func
10347 char *(*pfn) = (char *(*)) $ac_func ;
10348 #endif
10350 return 0;
10352 _ACEOF
10353 if ac_fn_c_try_compile "$LINENO"; then :
10354 eval "gcc_cv_have_decl_$ac_func=yes"
10355 else
10356 eval "gcc_cv_have_decl_$ac_func=no"
10358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10361 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10363 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10364 #define $ac_tr_decl 1
10365 _ACEOF
10367 else
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10369 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10370 #define $ac_tr_decl 0
10371 _ACEOF
10375 done
10378 for ac_func in getrlimit setrlimit getrusage
10380 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10382 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10383 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 #undef $ac_tr_decl
10389 #define $ac_tr_decl 1
10391 #include "ansidecl.h"
10392 #include "system.h"
10393 #ifdef HAVE_SYS_RESOURCE_H
10394 #include <sys/resource.h>
10395 #endif
10399 main ()
10401 #ifndef $ac_func
10402 char *(*pfn) = (char *(*)) $ac_func ;
10403 #endif
10405 return 0;
10407 _ACEOF
10408 if ac_fn_c_try_compile "$LINENO"; then :
10409 eval "gcc_cv_have_decl_$ac_func=yes"
10410 else
10411 eval "gcc_cv_have_decl_$ac_func=no"
10413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10416 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10418 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10419 #define $ac_tr_decl 1
10420 _ACEOF
10422 else
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10425 #define $ac_tr_decl 0
10426 _ACEOF
10430 done
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10436 #include "ansidecl.h"
10437 #include "system.h"
10438 #ifdef HAVE_SYS_RESOURCE_H
10439 #include <sys/resource.h>
10440 #endif
10443 main ()
10445 rlim_t l = 0;
10447 return 0;
10449 _ACEOF
10450 if ac_fn_c_try_compile "$LINENO"; then :
10452 else
10454 $as_echo "#define rlim_t long" >>confdefs.h
10457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10460 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10461 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10462 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10463 for ac_func in ldgetname
10465 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10467 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10468 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10469 $as_echo_n "(cached) " >&6
10470 else
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10473 #undef $ac_tr_decl
10474 #define $ac_tr_decl 1
10476 #include "ansidecl.h"
10477 #include "system.h"
10478 #ifdef HAVE_LDFCN_H
10479 #undef FREAD
10480 #undef FWRITE
10481 #include <ldfcn.h>
10482 #endif
10486 main ()
10488 #ifndef $ac_func
10489 char *(*pfn) = (char *(*)) $ac_func ;
10490 #endif
10492 return 0;
10494 _ACEOF
10495 if ac_fn_c_try_compile "$LINENO"; then :
10496 eval "gcc_cv_have_decl_$ac_func=yes"
10497 else
10498 eval "gcc_cv_have_decl_$ac_func=no"
10500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10503 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10505 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10506 #define $ac_tr_decl 1
10507 _ACEOF
10509 else
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10512 #define $ac_tr_decl 0
10513 _ACEOF
10517 done
10520 for ac_func in times
10522 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10524 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10525 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530 #undef $ac_tr_decl
10531 #define $ac_tr_decl 1
10533 #include "ansidecl.h"
10534 #include "system.h"
10535 #ifdef HAVE_SYS_TIMES_H
10536 #include <sys/times.h>
10537 #endif
10541 main ()
10543 #ifndef $ac_func
10544 char *(*pfn) = (char *(*)) $ac_func ;
10545 #endif
10547 return 0;
10549 _ACEOF
10550 if ac_fn_c_try_compile "$LINENO"; then :
10551 eval "gcc_cv_have_decl_$ac_func=yes"
10552 else
10553 eval "gcc_cv_have_decl_$ac_func=no"
10555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10558 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10560 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10561 #define $ac_tr_decl 1
10562 _ACEOF
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10567 #define $ac_tr_decl 0
10568 _ACEOF
10572 done
10575 for ac_func in sigaltstack
10577 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10579 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10580 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10581 $as_echo_n "(cached) " >&6
10582 else
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585 #undef $ac_tr_decl
10586 #define $ac_tr_decl 1
10588 #include "ansidecl.h"
10589 #include "system.h"
10590 #include <signal.h>
10594 main ()
10596 #ifndef $ac_func
10597 char *(*pfn) = (char *(*)) $ac_func ;
10598 #endif
10600 return 0;
10602 _ACEOF
10603 if ac_fn_c_try_compile "$LINENO"; then :
10604 eval "gcc_cv_have_decl_$ac_func=yes"
10605 else
10606 eval "gcc_cv_have_decl_$ac_func=no"
10608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10611 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10613 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10614 #define $ac_tr_decl 1
10615 _ACEOF
10617 else
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10620 #define $ac_tr_decl 0
10621 _ACEOF
10625 done
10628 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10629 # prototype.
10630 ac_ext=cpp
10631 ac_cpp='$CXXCPP $CPPFLAGS'
10632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10636 for ac_func in madvise
10638 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10640 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10641 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10642 $as_echo_n "(cached) " >&6
10643 else
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10646 #undef $ac_tr_decl
10647 #define $ac_tr_decl 1
10649 #include "ansidecl.h"
10650 #include "system.h"
10654 main ()
10656 #ifndef $ac_func
10657 char *(*pfn) = (char *(*)) $ac_func ;
10658 #endif
10660 return 0;
10662 _ACEOF
10663 if ac_fn_cxx_try_compile "$LINENO"; then :
10664 eval "gcc_cv_have_decl_$ac_func=yes"
10665 else
10666 eval "gcc_cv_have_decl_$ac_func=no"
10668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10673 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10674 #define $ac_tr_decl 1
10675 _ACEOF
10677 else
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10680 #define $ac_tr_decl 0
10681 _ACEOF
10685 done
10687 ac_ext=c
10688 ac_cpp='$CPP $CPPFLAGS'
10689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10694 # More time-related stuff.
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10696 $as_echo_n "checking for struct tms... " >&6; }
10697 if test "${ac_cv_struct_tms+set}" = set; then :
10698 $as_echo_n "(cached) " >&6
10699 else
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10704 #include "ansidecl.h"
10705 #include "system.h"
10706 #ifdef HAVE_SYS_TIMES_H
10707 #include <sys/times.h>
10708 #endif
10711 main ()
10713 struct tms tms;
10715 return 0;
10717 _ACEOF
10718 if ac_fn_c_try_compile "$LINENO"; then :
10719 ac_cv_struct_tms=yes
10720 else
10721 ac_cv_struct_tms=no
10723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10726 $as_echo "$ac_cv_struct_tms" >&6; }
10727 if test $ac_cv_struct_tms = yes; then
10729 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10733 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10734 # revisit after autoconf 2.50.
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10736 $as_echo_n "checking for clock_t... " >&6; }
10737 if test "${gcc_cv_type_clock_t+set}" = set; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10742 /* end confdefs.h. */
10744 #include "ansidecl.h"
10745 #include "system.h"
10748 main ()
10750 clock_t x;
10752 return 0;
10754 _ACEOF
10755 if ac_fn_c_try_compile "$LINENO"; then :
10756 gcc_cv_type_clock_t=yes
10757 else
10758 gcc_cv_type_clock_t=no
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10763 $as_echo "$gcc_cv_type_clock_t" >&6; }
10764 if test $gcc_cv_type_clock_t = yes; then
10766 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10770 # Check if F_SETLKW is supported by fcntl.
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10772 $as_echo_n "checking for F_SETLKW... " >&6; }
10773 if test "${ac_cv_f_setlkw+set}" = set; then :
10774 $as_echo_n "(cached) " >&6
10775 else
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10780 #include <fcntl.h>
10782 main ()
10785 struct flock fl;
10786 fl.l_whence = 0;
10787 fl.l_start = 0;
10788 fl.l_len = 0;
10789 fl.l_pid = 0;
10790 return fcntl (1, F_SETLKW, &fl);
10792 return 0;
10794 _ACEOF
10795 if ac_fn_c_try_compile "$LINENO"; then :
10796 ac_cv_f_setlkw=yes
10797 else
10798 ac_cv_f_setlkw=no
10800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10803 $as_echo "$ac_cv_f_setlkw" >&6; }
10804 if test $ac_cv_f_setlkw = yes; then
10806 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10810 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10811 CFLAGS="$saved_CFLAGS"
10812 CXXFLAGS="$saved_CXXFLAGS"
10814 # mkdir takes a single argument on some systems.
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10816 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10817 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10818 $as_echo_n "(cached) " >&6
10819 else
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10823 #include <sys/types.h>
10824 #ifdef HAVE_SYS_STAT_H
10825 # include <sys/stat.h>
10826 #endif
10827 #ifdef HAVE_UNISTD_H
10828 # include <unistd.h>
10829 #endif
10830 #ifdef HAVE_DIRECT_H
10831 # include <direct.h>
10832 #endif
10834 main ()
10836 mkdir ("foo", 0);
10838 return 0;
10840 _ACEOF
10841 if ac_fn_c_try_compile "$LINENO"; then :
10842 gcc_cv_mkdir_takes_one_arg=no
10843 else
10844 gcc_cv_mkdir_takes_one_arg=yes
10846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10849 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10850 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10852 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10857 # File extensions
10858 manext='.1'
10859 objext='.o'
10863 # With Setjmp/Longjmp based exception handling.
10864 # Check whether --enable-sjlj-exceptions was given.
10865 if test "${enable_sjlj_exceptions+set}" = set; then :
10866 enableval=$enable_sjlj_exceptions; case $target in
10867 *-*-hpux10*)
10868 if test $enableval != yes; then
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10870 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10871 enableval=yes
10874 esac
10875 force_sjlj_exceptions=yes
10876 else
10877 case $target in
10878 *-*-hpux10*)
10879 force_sjlj_exceptions=yes
10880 enableval=yes
10883 force_sjlj_exceptions=no
10885 esac
10888 if test $force_sjlj_exceptions = yes; then
10889 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10891 cat >>confdefs.h <<_ACEOF
10892 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10893 _ACEOF
10897 # --------------------------------------------------------
10898 # Build, host, and target specific configuration fragments
10899 # --------------------------------------------------------
10901 # Collect build-machine-specific information.
10902 . ${srcdir}/config.build
10904 # Collect host-machine-specific information.
10905 . ${srcdir}/config.host
10907 target_gtfiles=
10909 # Collect target-machine-specific information.
10910 . ${srcdir}/config.gcc
10912 extra_objs="${host_extra_objs} ${extra_objs}"
10913 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10915 # Default the target-machine variables that were not explicitly set.
10916 if test x"$tm_file" = x
10917 then tm_file=$cpu_type/$cpu_type.h; fi
10919 if test x"$extra_headers" = x
10920 then extra_headers=; fi
10922 if test x$md_file = x
10923 then md_file=$cpu_type/$cpu_type.md; fi
10925 if test x$out_file = x
10926 then out_file=$cpu_type/$cpu_type.c; fi
10928 if test x"$tmake_file" = x
10929 then tmake_file=$cpu_type/t-$cpu_type
10932 # Support --enable-initfini-array.
10933 if test x$enable_initfini_array != xno; then
10934 tm_file="${tm_file} initfini-array.h"
10937 if test x"$dwarf2" = xyes
10938 then tm_file="$tm_file tm-dwarf2.h"
10941 # Say what files are being used for the output code and MD file.
10942 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10943 echo "Using \`$srcdir/config/$md_file' as machine description file."
10945 # If any of the xm_file variables contain nonexistent files, warn
10946 # about them and drop them.
10949 for x in $build_xm_file; do
10950 if test -f $srcdir/config/$x
10951 then bx="$bx $x"
10952 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10953 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10955 done
10956 build_xm_file="$bx"
10959 for x in $host_xm_file; do
10960 if test -f $srcdir/config/$x
10961 then hx="$hx $x"
10962 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10963 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10965 done
10966 host_xm_file="$hx"
10969 for x in $xm_file; do
10970 if test -f $srcdir/config/$x
10971 then tx="$tx $x"
10972 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10973 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10975 done
10976 xm_file="$tx"
10978 count=a
10979 for f in $tm_file; do
10980 count=${count}x
10981 done
10982 if test $count = ax; then
10983 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10984 else
10985 echo "Using the following target machine macro files:"
10986 for f in $tm_file; do
10987 echo " $srcdir/config/$f"
10988 done
10991 if test x$need_64bit_hwint = xyes; then
10993 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10997 if test x$use_long_long_for_widest_fast_int = xyes; then
10999 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11003 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11005 cat >>confdefs.h <<_ACEOF
11006 #define HAVE_GNU_LD $gnu_ld_bool
11007 _ACEOF
11010 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11012 cat >>confdefs.h <<_ACEOF
11013 #define HAVE_GNU_AS $gnu_as_bool
11014 _ACEOF
11017 count=a
11018 for f in $host_xm_file; do
11019 count=${count}x
11020 done
11021 if test $count = a; then
11023 elif test $count = ax; then
11024 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11025 else
11026 echo "Using the following host machine macro files:"
11027 for f in $host_xm_file; do
11028 echo " $srcdir/config/$f"
11029 done
11031 echo "Using ${out_host_hook_obj} for host machine hooks."
11033 if test "$host_xm_file" != "$build_xm_file"; then
11034 count=a
11035 for f in $build_xm_file; do
11036 count=${count}x
11037 done
11038 if test $count = a; then
11040 elif test $count = ax; then
11041 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11042 else
11043 echo "Using the following build machine macro files:"
11044 for f in $build_xm_file; do
11045 echo " $srcdir/config/$f"
11046 done
11050 if test -n "$configured_native_system_header_dir"; then
11051 native_system_header_dir=$configured_native_system_header_dir
11053 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11056 case ${host} in
11057 powerpc*-*-darwin*)
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11059 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11060 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11061 $as_echo_n "(cached) " >&6
11062 else
11063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064 /* end confdefs.h. */
11066 #include <sys/cdefs.h>
11067 #include <sys/signal.h>
11068 #include <ucontext.h>
11069 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11071 _ACEOF
11072 if ac_fn_c_try_compile "$LINENO"; then :
11073 gcc_cv_mcontext_underscores=no
11074 else
11075 gcc_cv_mcontext_underscores=yes
11077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11080 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11081 if test $gcc_cv_mcontext_underscores = yes; then
11083 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11087 esac
11089 # ---------
11090 # Threading
11091 # ---------
11093 # Check if a valid thread package
11094 case ${enable_threads} in
11095 "" | no)
11096 # No threads
11097 target_thread_file='single'
11099 yes)
11100 # default
11101 target_thread_file='single'
11103 aix | dce | lynx | mipssde | posix | rtems | \
11104 single | tpf | vxworks | win32)
11105 target_thread_file=${enable_threads}
11108 echo "${enable_threads} is an unknown thread package" 1>&2
11109 exit 1
11111 esac
11113 if test x${thread_file} = x; then
11114 # No thread file set by target-specific clauses in config.gcc,
11115 # so use file chosen by default logic above
11116 thread_file=${target_thread_file}
11119 # --------
11120 # UNSORTED
11121 # --------
11123 use_cxa_atexit=no
11124 if test x$enable___cxa_atexit = xyes || \
11125 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11126 if test x$host = x$target; then
11127 case $host in
11128 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11129 # keyed to flag_use_cxa_atexit
11130 *-*-mingw32*)
11131 use_cxa_atexit=yes
11134 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11135 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11136 use_cxa_atexit=yes
11137 else
11138 echo "__cxa_atexit can't be enabled on this target"
11142 esac
11143 else
11144 # We can't check for __cxa_atexit when building a cross, so assume
11145 # it is available
11146 use_cxa_atexit=yes
11148 if test x$use_cxa_atexit = xyes; then
11150 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11155 # Look for a file containing extra machine modes.
11156 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11157 extra_modes_file='$(srcdir)'/config/${extra_modes}
11160 cat >>confdefs.h <<_ACEOF
11161 #define EXTRA_MODES_FILE "config/$extra_modes"
11162 _ACEOF
11166 # Convert extra_options into a form suitable for Makefile use.
11167 extra_opt_files=
11168 all_opt_files=
11169 for f in $extra_options; do
11170 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11171 all_opt_files="$all_opt_files $srcdir/config/$f"
11172 done
11175 # auto-host.h is the file containing items generated by autoconf and is
11176 # the first file included by config.h.
11177 # If host=build, it is correct to have bconfig include auto-host.h
11178 # as well. If host!=build, we are in error and need to do more
11179 # work to find out the build config parameters.
11180 if test x$host = x$build
11181 then
11182 build_auto=auto-host.h
11183 else
11184 # We create a subdir, then run autoconf in the subdir.
11185 # To prevent recursion we set host and build for the new
11186 # invocation of configure to the build for this invocation
11187 # of configure.
11188 tempdir=build.$$
11189 rm -rf $tempdir
11190 mkdir $tempdir
11191 cd $tempdir
11192 case ${srcdir} in
11193 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11194 *) realsrcdir=../${srcdir};;
11195 esac
11196 saved_CFLAGS="${CFLAGS}"
11197 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11198 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11199 ${realsrcdir}/configure \
11200 --enable-languages=${enable_languages-all} \
11201 --target=$target_alias --host=$build_alias --build=$build_alias
11202 CFLAGS="${saved_CFLAGS}"
11204 # We just finished tests for the build machine, so rename
11205 # the file auto-build.h in the gcc directory.
11206 mv auto-host.h ../auto-build.h
11207 cd ..
11208 rm -rf $tempdir
11209 build_auto=auto-build.h
11213 tm_file="${tm_file} defaults.h"
11214 tm_p_file="${tm_p_file} tm-preds.h"
11215 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11216 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11217 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11218 # put this back in temporarily.
11219 xm_file="auto-host.h ansidecl.h ${xm_file}"
11221 # --------
11222 # UNSORTED
11223 # --------
11225 # Compile in configure arguments.
11226 if test -f configargs.h ; then
11227 # Being re-configured.
11228 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11229 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11230 else
11231 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11234 # Double all backslashes and backslash all quotes to turn
11235 # gcc_config_arguments into a C string.
11236 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11237 $gcc_config_arguments
11239 gcc_config_arguments_str=`cat conftest.out`
11240 rm -f conftest.out
11242 cat > configargs.h <<EOF
11243 /* Generated automatically. */
11244 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11245 static const char thread_model[] = "$thread_file";
11247 static const struct {
11248 const char *name, *value;
11249 } configure_default_options[] = $configure_default_options;
11252 gcc_BASEVER=`cat $srcdir/BASE-VER`
11253 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11254 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11255 if test -f $srcdir/REVISION ; then
11256 gcc_REVISION=`cat $srcdir/REVISION`
11257 else
11258 gcc_REVISION=""
11260 cat > plugin-version.h <<EOF
11261 #include "configargs.h"
11263 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11264 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11265 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11266 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11268 static char basever[] = "$gcc_BASEVER";
11269 static char datestamp[] = "$gcc_DATESTAMP";
11270 static char devphase[] = "$gcc_DEVPHASE";
11271 static char revision[] = "$gcc_REVISION";
11273 /* FIXME plugins: We should make the version information more precise.
11274 One way to do is to add a checksum. */
11276 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11277 devphase, revision,
11278 configuration_arguments};
11281 # Internationalization
11282 # If we haven't got the data from the intl directory,
11283 # assume NLS is disabled.
11284 USE_NLS=no
11285 LIBINTL=
11286 LIBINTL_DEP=
11287 INCINTL=
11288 XGETTEXT=
11289 GMSGFMT=
11290 POSUB=
11292 if test -f ../intl/config.intl; then
11293 . ../intl/config.intl
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11296 $as_echo_n "checking whether NLS is requested... " >&6; }
11297 if test x"$USE_NLS" != xyes; then
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299 $as_echo "no" >&6; }
11300 else
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11302 $as_echo "yes" >&6; }
11304 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11308 $as_echo_n "checking for catalogs to be installed... " >&6; }
11309 # Look for .po and .gmo files in the source directory.
11310 CATALOGS=
11311 XLINGUAS=
11312 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11313 # If there aren't any .gmo files the shell will give us the
11314 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11315 # weeded out.
11316 case "$cat" in *\**)
11317 continue;;
11318 esac
11319 # The quadruple backslash is collapsed to a double backslash
11320 # by the backticks, then collapsed again by the double quotes,
11321 # leaving us with one backslash in the sed expression (right
11322 # before the dot that mustn't act as a wildcard).
11323 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11324 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11325 # The user is allowed to set LINGUAS to a list of languages to
11326 # install catalogs for. If it's empty that means "all of them."
11327 if test "x$LINGUAS" = x; then
11328 CATALOGS="$CATALOGS $cat"
11329 XLINGUAS="$XLINGUAS $lang"
11330 else
11331 case "$LINGUAS" in *$lang*)
11332 CATALOGS="$CATALOGS $cat"
11333 XLINGUAS="$XLINGUAS $lang"
11335 esac
11337 done
11338 LINGUAS="$XLINGUAS"
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11340 $as_echo "$LINGUAS" >&6; }
11343 DATADIRNAME=share
11345 INSTOBJEXT=.mo
11347 GENCAT=gencat
11349 CATOBJEXT=.gmo
11353 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11354 # -liconv on the link line twice.
11355 case "$LIBINTL" in *$LIBICONV*)
11356 LIBICONV= ;;
11357 esac
11359 # Check whether --enable-secureplt was given.
11360 if test "${enable_secureplt+set}" = set; then :
11361 enableval=$enable_secureplt;
11365 # Check whether --enable-leading-mingw64-underscores was given.
11366 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11367 enableval=$enable_leading_mingw64_underscores;
11370 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11372 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11376 # Check whether --enable-cld was given.
11377 if test "${enable_cld+set}" = set; then :
11378 enableval=$enable_cld;
11379 else
11380 enable_cld=no
11384 # Check whether --enable-frame-pointer was given.
11385 if test "${enable_frame_pointer+set}" = set; then :
11386 enableval=$enable_frame_pointer;
11387 else
11389 case $target_os in
11390 linux* | darwin[8912]*)
11391 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11392 # DWARF2.
11393 enable_frame_pointer=no
11396 enable_frame_pointer=yes
11398 esac
11403 # Windows32 Registry support for specifying GCC installation paths.
11404 # Check whether --enable-win32-registry was given.
11405 if test "${enable_win32_registry+set}" = set; then :
11406 enableval=$enable_win32_registry;
11410 case $host_os in
11411 win32 | pe | cygwin* | mingw32* | uwin*)
11412 if test "x$enable_win32_registry" != xno; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11414 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11415 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 ac_func_search_save_LIBS=$LIBS
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11422 /* Override any GCC internal prototype to avoid an error.
11423 Use char because int might match the return type of a GCC
11424 builtin and then its argument prototype would still apply. */
11425 #ifdef __cplusplus
11426 extern "C"
11427 #endif
11428 char RegOpenKeyExA ();
11430 main ()
11432 return RegOpenKeyExA ();
11434 return 0;
11436 _ACEOF
11437 for ac_lib in '' advapi32; do
11438 if test -z "$ac_lib"; then
11439 ac_res="none required"
11440 else
11441 ac_res=-l$ac_lib
11442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11444 if ac_fn_c_try_link "$LINENO"; then :
11445 ac_cv_search_RegOpenKeyExA=$ac_res
11447 rm -f core conftest.err conftest.$ac_objext \
11448 conftest$ac_exeext
11449 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11450 break
11452 done
11453 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11455 else
11456 ac_cv_search_RegOpenKeyExA=no
11458 rm conftest.$ac_ext
11459 LIBS=$ac_func_search_save_LIBS
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11462 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11463 ac_res=$ac_cv_search_RegOpenKeyExA
11464 if test "$ac_res" != no; then :
11465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11467 else
11468 enable_win32_registry=no
11473 if test "x$enable_win32_registry" != xno; then
11475 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11478 if test "x$enable_win32_registry" != xyes \
11479 && test "x$enable_win32_registry" != x; then
11481 cat >>confdefs.h <<_ACEOF
11482 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11483 _ACEOF
11488 esac
11490 # Get an absolute path to the GCC top-level source directory
11491 holddir=`${PWDCMD-pwd}`
11492 cd $srcdir
11493 topdir=`${PWDCMD-pwd}`
11494 cd $holddir
11496 # Conditionalize the makefile for this host machine.
11497 xmake_file=
11498 for f in ${host_xmake_file}
11500 if test -f ${srcdir}/config/$f
11501 then
11502 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11504 done
11506 # Conditionalize the makefile for this target machine.
11507 tmake_file_=
11508 for f in ${tmake_file}
11510 if test -f ${srcdir}/config/$f
11511 then
11512 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11514 done
11515 tmake_file="${tmake_file_}"
11517 out_object_file=`basename $out_file .c`.o
11518 common_out_object_file=`basename $common_out_file .c`.o
11520 tm_file_list="options.h"
11521 tm_include_list="options.h insn-constants.h"
11522 for f in $tm_file; do
11523 case $f in
11524 ./* )
11525 f=`echo $f | sed 's/^..//'`
11526 tm_file_list="${tm_file_list} $f"
11527 tm_include_list="${tm_include_list} $f"
11529 defaults.h )
11530 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11531 tm_include_list="${tm_include_list} $f"
11534 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11535 tm_include_list="${tm_include_list} config/$f"
11537 esac
11538 done
11540 tm_p_file_list=
11541 tm_p_include_list=
11542 for f in $tm_p_file; do
11543 case $f in
11544 tm-preds.h )
11545 tm_p_file_list="${tm_p_file_list} $f"
11546 tm_p_include_list="${tm_p_include_list} $f"
11549 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11550 tm_p_include_list="${tm_p_include_list} config/$f"
11551 esac
11552 done
11554 xm_file_list=
11555 xm_include_list=
11556 for f in $xm_file; do
11557 case $f in
11558 ansidecl.h )
11559 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11560 xm_include_list="${xm_include_list} $f"
11562 auto-host.h )
11563 xm_file_list="${xm_file_list} $f"
11564 xm_include_list="${xm_include_list} $f"
11567 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11568 xm_include_list="${xm_include_list} config/$f"
11570 esac
11571 done
11573 host_xm_file_list=
11574 host_xm_include_list=
11575 for f in $host_xm_file; do
11576 case $f in
11577 ansidecl.h )
11578 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11579 host_xm_include_list="${host_xm_include_list} $f"
11581 auto-host.h )
11582 host_xm_file_list="${host_xm_file_list} $f"
11583 host_xm_include_list="${host_xm_include_list} $f"
11586 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11587 host_xm_include_list="${host_xm_include_list} config/$f"
11589 esac
11590 done
11592 build_xm_file_list=
11593 for f in $build_xm_file; do
11594 case $f in
11595 ansidecl.h )
11596 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11597 build_xm_include_list="${build_xm_include_list} $f"
11599 auto-build.h | auto-host.h )
11600 build_xm_file_list="${build_xm_file_list} $f"
11601 build_xm_include_list="${build_xm_include_list} $f"
11604 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11605 build_xm_include_list="${build_xm_include_list} config/$f"
11607 esac
11608 done
11610 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11611 # cross-compiler which does not use the native headers and libraries.
11612 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11613 CROSS=
11614 ALL=all.internal
11615 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11617 if test "x$with_build_sysroot" != x; then
11618 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11619 else
11620 # This value is used, even on a native system, because
11621 # CROSS_SYSTEM_HEADER_DIR is just
11622 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11623 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11626 if test x$host != x$target
11627 then
11628 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11629 ALL=all.cross
11630 SYSTEM_HEADER_DIR=$build_system_header_dir
11631 case "$host","$target" in
11632 # Darwin crosses can use the host system's libraries and headers,
11633 # because of the fat library support. Of course, it must be the
11634 # same version of Darwin on both sides. Allow the user to
11635 # just say --target=foo-darwin without a version number to mean
11636 # "the version on this system".
11637 *-*-darwin*,*-*-darwin*)
11638 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11639 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11640 if test $hostos = $targetos -o $targetos = darwin ; then
11641 CROSS=
11642 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11643 with_headers=yes
11647 i?86-*-*,x86_64-*-* \
11648 | powerpc*-*-*,powerpc64*-*-*)
11649 CROSS="$CROSS -DNATIVE_CROSS" ;;
11650 esac
11652 case $target in
11653 *-*-mingw*)
11654 if test "x$with_headers" = x; then
11655 with_headers=yes
11660 esac
11661 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11662 SYSTEM_HEADER_DIR=$build_system_header_dir
11665 # If this is a cross-compiler that does not
11666 # have its own set of headers then define
11667 # inhibit_libc
11669 # If this is using newlib, without having the headers available now,
11670 # then define inhibit_libc in LIBGCC2_CFLAGS.
11671 # This prevents libgcc2 from containing any code which requires libc
11672 # support.
11673 : ${inhibit_libc=false}
11674 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11675 test x$with_newlib = xyes ; } &&
11676 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11677 inhibit_libc=true
11681 # When building gcc with a cross-compiler, we need to adjust things so
11682 # that the generator programs are still built with the native compiler.
11683 # Also, we cannot run fixincludes.
11685 # These are the normal (build=host) settings:
11686 CC_FOR_BUILD='$(CC)'
11687 CXX_FOR_BUILD='$(CXX)'
11688 BUILD_CFLAGS='$(ALL_CFLAGS)'
11689 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11690 BUILD_LDFLAGS='$(LDFLAGS)'
11691 STMP_FIXINC=stmp-fixinc
11693 # And these apply if build != host, or we are generating coverage data
11694 if test x$build != x$host || test "x$coverage_flags" != x
11695 then
11696 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11697 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11700 # Expand extra_headers to include complete path.
11701 # This substitutes for lots of t-* files.
11702 extra_headers_list=
11703 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11704 for file in ${extra_headers} ; do
11705 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11706 done
11708 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11709 if test x"$use_gcc_tgmath" = xyes
11710 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11713 # Define collect2 in Makefile.
11714 case $host_can_use_collect2 in
11715 no) collect2= ;;
11716 *) collect2='collect2$(exeext)' ;;
11717 esac
11720 # Add a definition of USE_COLLECT2 if system wants one.
11721 case $use_collect2 in
11722 no) use_collect2= ;;
11723 "") ;;
11725 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11726 xm_defines="${xm_defines} USE_COLLECT2"
11727 case $host_can_use_collect2 in
11729 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11731 esac
11733 esac
11736 cat >>confdefs.h <<_ACEOF
11737 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11738 _ACEOF
11741 # ---------------------------
11742 # Assembler & linker features
11743 # ---------------------------
11745 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11746 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11747 # However when ld-new is first executed from the build tree, libtool will
11748 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11749 # to the build tree. While doing this we need to use the previous-stage
11750 # linker, or we have an infinite loop. The presence of a shell script as
11751 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11752 # the gcc/collect-ld script. So we need to know how libtool works, or
11753 # exec-tool will fail.
11756 case `pwd` in
11757 *\ * | *\ *)
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11759 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11760 esac
11764 macro_version='2.2.7a'
11765 macro_revision='1.3134'
11779 ltmain="$ac_aux_dir/ltmain.sh"
11781 # Backslashify metacharacters that are still active within
11782 # double-quoted strings.
11783 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11785 # Same as above, but do not quote variable references.
11786 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11788 # Sed substitution to delay expansion of an escaped shell variable in a
11789 # double_quote_subst'ed string.
11790 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11792 # Sed substitution to delay expansion of an escaped single quote.
11793 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11795 # Sed substitution to avoid accidental globbing in evaled expressions
11796 no_glob_subst='s/\*/\\\*/g'
11798 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11799 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11800 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11803 $as_echo_n "checking how to print strings... " >&6; }
11804 # Test print first, because it will be a builtin if present.
11805 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11806 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11807 ECHO='print -r --'
11808 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11809 ECHO='printf %s\n'
11810 else
11811 # Use this function as a fallback that always works.
11812 func_fallback_echo ()
11814 eval 'cat <<_LTECHO_EOF
11816 _LTECHO_EOF'
11818 ECHO='func_fallback_echo'
11821 # func_echo_all arg...
11822 # Invoke $ECHO with all args, space-separated.
11823 func_echo_all ()
11825 $ECHO ""
11828 case "$ECHO" in
11829 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11830 $as_echo "printf" >&6; } ;;
11831 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11832 $as_echo "print -r" >&6; } ;;
11833 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11834 $as_echo "cat" >&6; } ;;
11835 esac
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11851 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11852 if test "${ac_cv_path_SED+set}" = set; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11856 for ac_i in 1 2 3 4 5 6 7; do
11857 ac_script="$ac_script$as_nl$ac_script"
11858 done
11859 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11860 { ac_script=; unset ac_script;}
11861 if test -z "$SED"; then
11862 ac_path_SED_found=false
11863 # Loop through the user's path and test for each of PROGNAME-LIST
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
11869 for ac_prog in sed gsed; do
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11872 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11873 # Check for GNU ac_path_SED and select it if it is found.
11874 # Check for GNU $ac_path_SED
11875 case `"$ac_path_SED" --version 2>&1` in
11876 *GNU*)
11877 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11879 ac_count=0
11880 $as_echo_n 0123456789 >"conftest.in"
11881 while :
11883 cat "conftest.in" "conftest.in" >"conftest.tmp"
11884 mv "conftest.tmp" "conftest.in"
11885 cp "conftest.in" "conftest.nl"
11886 $as_echo '' >> "conftest.nl"
11887 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11889 as_fn_arith $ac_count + 1 && ac_count=$as_val
11890 if test $ac_count -gt ${ac_path_SED_max-0}; then
11891 # Best one so far, save it but keep looking for a better one
11892 ac_cv_path_SED="$ac_path_SED"
11893 ac_path_SED_max=$ac_count
11895 # 10*(2^10) chars as input seems more than enough
11896 test $ac_count -gt 10 && break
11897 done
11898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11899 esac
11901 $ac_path_SED_found && break 3
11902 done
11903 done
11904 done
11905 IFS=$as_save_IFS
11906 if test -z "$ac_cv_path_SED"; then
11907 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11909 else
11910 ac_cv_path_SED=$SED
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11915 $as_echo "$ac_cv_path_SED" >&6; }
11916 SED="$ac_cv_path_SED"
11917 rm -f conftest.sed
11919 test -z "$SED" && SED=sed
11920 Xsed="$SED -e 1s/^X//"
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11933 $as_echo_n "checking for fgrep... " >&6; }
11934 if test "${ac_cv_path_FGREP+set}" = set; then :
11935 $as_echo_n "(cached) " >&6
11936 else
11937 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11938 then ac_cv_path_FGREP="$GREP -F"
11939 else
11940 if test -z "$FGREP"; then
11941 ac_path_FGREP_found=false
11942 # Loop through the user's path and test for each of PROGNAME-LIST
11943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11946 IFS=$as_save_IFS
11947 test -z "$as_dir" && as_dir=.
11948 for ac_prog in fgrep; do
11949 for ac_exec_ext in '' $ac_executable_extensions; do
11950 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11951 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11952 # Check for GNU ac_path_FGREP and select it if it is found.
11953 # Check for GNU $ac_path_FGREP
11954 case `"$ac_path_FGREP" --version 2>&1` in
11955 *GNU*)
11956 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11958 ac_count=0
11959 $as_echo_n 0123456789 >"conftest.in"
11960 while :
11962 cat "conftest.in" "conftest.in" >"conftest.tmp"
11963 mv "conftest.tmp" "conftest.in"
11964 cp "conftest.in" "conftest.nl"
11965 $as_echo 'FGREP' >> "conftest.nl"
11966 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11968 as_fn_arith $ac_count + 1 && ac_count=$as_val
11969 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11970 # Best one so far, save it but keep looking for a better one
11971 ac_cv_path_FGREP="$ac_path_FGREP"
11972 ac_path_FGREP_max=$ac_count
11974 # 10*(2^10) chars as input seems more than enough
11975 test $ac_count -gt 10 && break
11976 done
11977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11978 esac
11980 $ac_path_FGREP_found && break 3
11981 done
11982 done
11983 done
11984 IFS=$as_save_IFS
11985 if test -z "$ac_cv_path_FGREP"; then
11986 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11988 else
11989 ac_cv_path_FGREP=$FGREP
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11995 $as_echo "$ac_cv_path_FGREP" >&6; }
11996 FGREP="$ac_cv_path_FGREP"
11999 test -z "$GREP" && GREP=grep
12019 # Check whether --with-gnu-ld was given.
12020 if test "${with_gnu_ld+set}" = set; then :
12021 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12022 else
12023 with_gnu_ld=no
12026 ac_prog=ld
12027 if test "$GCC" = yes; then
12028 # Check if gcc -print-prog-name=ld gives a path.
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12030 $as_echo_n "checking for ld used by $CC... " >&6; }
12031 case $host in
12032 *-*-mingw*)
12033 # gcc leaves a trailing carriage return which upsets mingw
12034 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12036 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12037 esac
12038 case $ac_prog in
12039 # Accept absolute paths.
12040 [\\/]* | ?:[\\/]*)
12041 re_direlt='/[^/][^/]*/\.\./'
12042 # Canonicalize the pathname of ld
12043 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12044 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12045 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12046 done
12047 test -z "$LD" && LD="$ac_prog"
12050 # If it fails, then pretend we aren't using GCC.
12051 ac_prog=ld
12054 # If it is relative, then search for the first ld in PATH.
12055 with_gnu_ld=unknown
12057 esac
12058 elif test "$with_gnu_ld" = yes; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12060 $as_echo_n "checking for GNU ld... " >&6; }
12061 else
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12063 $as_echo_n "checking for non-GNU ld... " >&6; }
12065 if test "${lt_cv_path_LD+set}" = set; then :
12066 $as_echo_n "(cached) " >&6
12067 else
12068 if test -z "$LD"; then
12069 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12070 for ac_dir in $PATH; do
12071 IFS="$lt_save_ifs"
12072 test -z "$ac_dir" && ac_dir=.
12073 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12074 lt_cv_path_LD="$ac_dir/$ac_prog"
12075 # Check to see if the program is GNU ld. I'd rather use --version,
12076 # but apparently some variants of GNU ld only accept -v.
12077 # Break only if it was the GNU/non-GNU ld that we prefer.
12078 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12079 *GNU* | *'with BFD'*)
12080 test "$with_gnu_ld" != no && break
12083 test "$with_gnu_ld" != yes && break
12085 esac
12087 done
12088 IFS="$lt_save_ifs"
12089 else
12090 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12094 LD="$lt_cv_path_LD"
12095 if test -n "$LD"; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12097 $as_echo "$LD" >&6; }
12098 else
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100 $as_echo "no" >&6; }
12102 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12104 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12105 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12106 $as_echo_n "(cached) " >&6
12107 else
12108 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12109 case `$LD -v 2>&1 </dev/null` in
12110 *GNU* | *'with BFD'*)
12111 lt_cv_prog_gnu_ld=yes
12114 lt_cv_prog_gnu_ld=no
12116 esac
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12119 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12120 with_gnu_ld=$lt_cv_prog_gnu_ld
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12131 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12132 if test "${lt_cv_path_NM+set}" = set; then :
12133 $as_echo_n "(cached) " >&6
12134 else
12135 if test -n "$NM"; then
12136 # Let the user override the test.
12137 lt_cv_path_NM="$NM"
12138 else
12139 lt_nm_to_check="${ac_tool_prefix}nm"
12140 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12141 lt_nm_to_check="$lt_nm_to_check nm"
12143 for lt_tmp_nm in $lt_nm_to_check; do
12144 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12145 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12146 IFS="$lt_save_ifs"
12147 test -z "$ac_dir" && ac_dir=.
12148 tmp_nm="$ac_dir/$lt_tmp_nm"
12149 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12150 # Check to see if the nm accepts a BSD-compat flag.
12151 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12152 # nm: unknown option "B" ignored
12153 # Tru64's nm complains that /dev/null is an invalid object file
12154 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12155 */dev/null* | *'Invalid file or object type'*)
12156 lt_cv_path_NM="$tmp_nm -B"
12157 break
12160 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12161 */dev/null*)
12162 lt_cv_path_NM="$tmp_nm -p"
12163 break
12166 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12167 continue # so that we can try to find one that supports BSD flags
12169 esac
12171 esac
12173 done
12174 IFS="$lt_save_ifs"
12175 done
12176 : ${lt_cv_path_NM=no}
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12180 $as_echo "$lt_cv_path_NM" >&6; }
12181 if test "$lt_cv_path_NM" != "no"; then
12182 NM="$lt_cv_path_NM"
12183 else
12184 # Didn't find any BSD compatible name lister, look for dumpbin.
12185 if test -n "$DUMPBIN"; then :
12186 # Let the user override the test.
12187 else
12188 if test -n "$ac_tool_prefix"; then
12189 for ac_prog in dumpbin "link -dump"
12191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 if test -n "$DUMPBIN"; then
12199 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12200 else
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12208 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 break 2
12212 done
12213 done
12214 IFS=$as_save_IFS
12218 DUMPBIN=$ac_cv_prog_DUMPBIN
12219 if test -n "$DUMPBIN"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12221 $as_echo "$DUMPBIN" >&6; }
12222 else
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12228 test -n "$DUMPBIN" && break
12229 done
12231 if test -z "$DUMPBIN"; then
12232 ac_ct_DUMPBIN=$DUMPBIN
12233 for ac_prog in dumpbin "link -dump"
12235 # Extract the first word of "$ac_prog", so it can be a program name with args.
12236 set dummy $ac_prog; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 if test -n "$ac_ct_DUMPBIN"; then
12243 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12244 else
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12252 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254 break 2
12256 done
12257 done
12258 IFS=$as_save_IFS
12262 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12263 if test -n "$ac_ct_DUMPBIN"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12265 $as_echo "$ac_ct_DUMPBIN" >&6; }
12266 else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12272 test -n "$ac_ct_DUMPBIN" && break
12273 done
12275 if test "x$ac_ct_DUMPBIN" = x; then
12276 DUMPBIN=":"
12277 else
12278 case $cross_compiling:$ac_tool_warned in
12279 yes:)
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12282 ac_tool_warned=yes ;;
12283 esac
12284 DUMPBIN=$ac_ct_DUMPBIN
12288 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12289 *COFF*)
12290 DUMPBIN="$DUMPBIN -symbols"
12293 DUMPBIN=:
12295 esac
12298 if test "$DUMPBIN" != ":"; then
12299 NM="$DUMPBIN"
12302 test -z "$NM" && NM=nm
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12310 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12311 if test "${lt_cv_nm_interface+set}" = set; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12314 lt_cv_nm_interface="BSD nm"
12315 echo "int some_variable = 0;" > conftest.$ac_ext
12316 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12317 (eval "$ac_compile" 2>conftest.err)
12318 cat conftest.err >&5
12319 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12320 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12321 cat conftest.err >&5
12322 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12323 cat conftest.out >&5
12324 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12325 lt_cv_nm_interface="MS dumpbin"
12327 rm -f conftest*
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12330 $as_echo "$lt_cv_nm_interface" >&6; }
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12333 $as_echo_n "checking whether ln -s works... " >&6; }
12334 LN_S=$as_ln_s
12335 if test "$LN_S" = "ln -s"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12337 $as_echo "yes" >&6; }
12338 else
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12340 $as_echo "no, using $LN_S" >&6; }
12343 # find the maximum length of command line arguments
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12345 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12346 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12350 teststring="ABCD"
12352 case $build_os in
12353 msdosdjgpp*)
12354 # On DJGPP, this test can blow up pretty badly due to problems in libc
12355 # (any single argument exceeding 2000 bytes causes a buffer overrun
12356 # during glob expansion). Even if it were fixed, the result of this
12357 # check would be larger than it should be.
12358 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12361 gnu*)
12362 # Under GNU Hurd, this test is not required because there is
12363 # no limit to the length of command line arguments.
12364 # Libtool will interpret -1 as no limit whatsoever
12365 lt_cv_sys_max_cmd_len=-1;
12368 cygwin* | mingw* | cegcc*)
12369 # On Win9x/ME, this test blows up -- it succeeds, but takes
12370 # about 5 minutes as the teststring grows exponentially.
12371 # Worse, since 9x/ME are not pre-emptively multitasking,
12372 # you end up with a "frozen" computer, even though with patience
12373 # the test eventually succeeds (with a max line length of 256k).
12374 # Instead, let's just punt: use the minimum linelength reported by
12375 # all of the supported platforms: 8192 (on NT/2K/XP).
12376 lt_cv_sys_max_cmd_len=8192;
12379 mint*)
12380 # On MiNT this can take a long time and run out of memory.
12381 lt_cv_sys_max_cmd_len=8192;
12384 amigaos*)
12385 # On AmigaOS with pdksh, this test takes hours, literally.
12386 # So we just punt and use a minimum line length of 8192.
12387 lt_cv_sys_max_cmd_len=8192;
12390 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12391 # This has been around since 386BSD, at least. Likely further.
12392 if test -x /sbin/sysctl; then
12393 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12394 elif test -x /usr/sbin/sysctl; then
12395 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12396 else
12397 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12399 # And add a safety zone
12400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12404 interix*)
12405 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12406 lt_cv_sys_max_cmd_len=196608
12409 osf*)
12410 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12411 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12412 # nice to cause kernel panics so lets avoid the loop below.
12413 # First set a reasonable default.
12414 lt_cv_sys_max_cmd_len=16384
12416 if test -x /sbin/sysconfig; then
12417 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12418 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12419 esac
12422 sco3.2v5*)
12423 lt_cv_sys_max_cmd_len=102400
12425 sysv5* | sco5v6* | sysv4.2uw2*)
12426 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12427 if test -n "$kargmax"; then
12428 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12429 else
12430 lt_cv_sys_max_cmd_len=32768
12434 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12435 if test -n "$lt_cv_sys_max_cmd_len"; then
12436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12438 else
12439 # Make teststring a little bigger before we do anything with it.
12440 # a 1K string should be a reasonable start.
12441 for i in 1 2 3 4 5 6 7 8 ; do
12442 teststring=$teststring$teststring
12443 done
12444 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12445 # If test is not a shell built-in, we'll probably end up computing a
12446 # maximum length that is only half of the actual maximum length, but
12447 # we can't tell.
12448 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12449 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12450 test $i != 17 # 1/2 MB should be enough
12452 i=`expr $i + 1`
12453 teststring=$teststring$teststring
12454 done
12455 # Only check the string length outside the loop.
12456 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12457 teststring=
12458 # Add a significant safety factor because C++ compilers can tack on
12459 # massive amounts of additional arguments before passing them to the
12460 # linker. It appears as though 1/2 is a usable value.
12461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12464 esac
12468 if test -n $lt_cv_sys_max_cmd_len ; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12470 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12471 else
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12473 $as_echo "none" >&6; }
12475 max_cmd_len=$lt_cv_sys_max_cmd_len
12482 : ${CP="cp -f"}
12483 : ${MV="mv -f"}
12484 : ${RM="rm -f"}
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12487 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12488 # Try some XSI features
12489 xsi_shell=no
12490 ( _lt_dummy="a/b/c"
12491 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12492 = c,a/b,, \
12493 && eval 'test $(( 1 + 1 )) -eq 2 \
12494 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12495 && xsi_shell=yes
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12497 $as_echo "$xsi_shell" >&6; }
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12501 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12502 lt_shell_append=no
12503 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12504 >/dev/null 2>&1 \
12505 && lt_shell_append=yes
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12507 $as_echo "$lt_shell_append" >&6; }
12510 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12511 lt_unset=unset
12512 else
12513 lt_unset=false
12520 # test EBCDIC or ASCII
12521 case `echo X|tr X '\101'` in
12522 A) # ASCII based system
12523 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12524 lt_SP2NL='tr \040 \012'
12525 lt_NL2SP='tr \015\012 \040\040'
12527 *) # EBCDIC based system
12528 lt_SP2NL='tr \100 \n'
12529 lt_NL2SP='tr \r\n \100\100'
12531 esac
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12542 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12543 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12544 $as_echo_n "(cached) " >&6
12545 else
12546 lt_cv_ld_reload_flag='-r'
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12549 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12550 reload_flag=$lt_cv_ld_reload_flag
12551 case $reload_flag in
12552 "" | " "*) ;;
12553 *) reload_flag=" $reload_flag" ;;
12554 esac
12555 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12556 case $host_os in
12557 darwin*)
12558 if test "$GCC" = yes; then
12559 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12560 else
12561 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12564 esac
12574 if test -n "$ac_tool_prefix"; then
12575 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12576 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578 $as_echo_n "checking for $ac_word... " >&6; }
12579 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12580 $as_echo_n "(cached) " >&6
12581 else
12582 if test -n "$OBJDUMP"; then
12583 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12584 else
12585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12588 IFS=$as_save_IFS
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12592 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12594 break 2
12596 done
12597 done
12598 IFS=$as_save_IFS
12602 OBJDUMP=$ac_cv_prog_OBJDUMP
12603 if test -n "$OBJDUMP"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12605 $as_echo "$OBJDUMP" >&6; }
12606 else
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12613 if test -z "$ac_cv_prog_OBJDUMP"; then
12614 ac_ct_OBJDUMP=$OBJDUMP
12615 # Extract the first word of "objdump", so it can be a program name with args.
12616 set dummy objdump; ac_word=$2
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12618 $as_echo_n "checking for $ac_word... " >&6; }
12619 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12620 $as_echo_n "(cached) " >&6
12621 else
12622 if test -n "$ac_ct_OBJDUMP"; then
12623 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12624 else
12625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in $PATH
12628 IFS=$as_save_IFS
12629 test -z "$as_dir" && as_dir=.
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12632 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12634 break 2
12636 done
12637 done
12638 IFS=$as_save_IFS
12642 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12643 if test -n "$ac_ct_OBJDUMP"; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12645 $as_echo "$ac_ct_OBJDUMP" >&6; }
12646 else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648 $as_echo "no" >&6; }
12651 if test "x$ac_ct_OBJDUMP" = x; then
12652 OBJDUMP="false"
12653 else
12654 case $cross_compiling:$ac_tool_warned in
12655 yes:)
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12658 ac_tool_warned=yes ;;
12659 esac
12660 OBJDUMP=$ac_ct_OBJDUMP
12662 else
12663 OBJDUMP="$ac_cv_prog_OBJDUMP"
12666 test -z "$OBJDUMP" && OBJDUMP=objdump
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12677 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12678 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 lt_cv_file_magic_cmd='$MAGIC_CMD'
12682 lt_cv_file_magic_test_file=
12683 lt_cv_deplibs_check_method='unknown'
12684 # Need to set the preceding variable on all platforms that support
12685 # interlibrary dependencies.
12686 # 'none' -- dependencies not supported.
12687 # `unknown' -- same as none, but documents that we really don't know.
12688 # 'pass_all' -- all dependencies passed with no checks.
12689 # 'test_compile' -- check by making test program.
12690 # 'file_magic [[regex]]' -- check by looking for files in library path
12691 # which responds to the $file_magic_cmd with a given extended regex.
12692 # If you have `file' or equivalent on your system and you're not sure
12693 # whether `pass_all' will *always* work, you probably want this one.
12695 case $host_os in
12696 aix[4-9]*)
12697 lt_cv_deplibs_check_method=pass_all
12700 beos*)
12701 lt_cv_deplibs_check_method=pass_all
12704 bsdi[45]*)
12705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12706 lt_cv_file_magic_cmd='/usr/bin/file -L'
12707 lt_cv_file_magic_test_file=/shlib/libc.so
12710 cygwin*)
12711 # func_win32_libid is a shell function defined in ltmain.sh
12712 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12713 lt_cv_file_magic_cmd='func_win32_libid'
12716 mingw* | pw32*)
12717 # Base MSYS/MinGW do not provide the 'file' command needed by
12718 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12719 # unless we find 'file', for example because we are cross-compiling.
12720 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12721 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12722 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12723 lt_cv_file_magic_cmd='func_win32_libid'
12724 else
12725 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12726 lt_cv_file_magic_cmd='$OBJDUMP -f'
12730 cegcc*)
12731 # use the weaker test based on 'objdump'. See mingw*.
12732 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12733 lt_cv_file_magic_cmd='$OBJDUMP -f'
12736 darwin* | rhapsody*)
12737 lt_cv_deplibs_check_method=pass_all
12740 freebsd* | dragonfly*)
12741 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12742 case $host_cpu in
12743 i*86 )
12744 # Not sure whether the presence of OpenBSD here was a mistake.
12745 # Let's accept both of them until this is cleared up.
12746 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12747 lt_cv_file_magic_cmd=/usr/bin/file
12748 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12750 esac
12751 else
12752 lt_cv_deplibs_check_method=pass_all
12756 gnu*)
12757 lt_cv_deplibs_check_method=pass_all
12760 haiku*)
12761 lt_cv_deplibs_check_method=pass_all
12764 hpux10.20* | hpux11*)
12765 lt_cv_file_magic_cmd=/usr/bin/file
12766 case $host_cpu in
12767 ia64*)
12768 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12769 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12771 hppa*64*)
12772 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]'
12773 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12776 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12777 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12779 esac
12782 interix[3-9]*)
12783 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12784 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12787 irix5* | irix6* | nonstopux*)
12788 case $LD in
12789 *-32|*"-32 ") libmagic=32-bit;;
12790 *-n32|*"-n32 ") libmagic=N32;;
12791 *-64|*"-64 ") libmagic=64-bit;;
12792 *) libmagic=never-match;;
12793 esac
12794 lt_cv_deplibs_check_method=pass_all
12797 # This must be Linux ELF.
12798 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12799 lt_cv_deplibs_check_method=pass_all
12802 netbsd*)
12803 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12805 else
12806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12810 newos6*)
12811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12812 lt_cv_file_magic_cmd=/usr/bin/file
12813 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12816 *nto* | *qnx*)
12817 lt_cv_deplibs_check_method=pass_all
12820 openbsd*)
12821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12823 else
12824 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12828 osf3* | osf4* | osf5*)
12829 lt_cv_deplibs_check_method=pass_all
12832 rdos*)
12833 lt_cv_deplibs_check_method=pass_all
12836 solaris*)
12837 lt_cv_deplibs_check_method=pass_all
12840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12841 lt_cv_deplibs_check_method=pass_all
12844 sysv4 | sysv4.3*)
12845 case $host_vendor in
12846 motorola)
12847 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]'
12848 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12850 ncr)
12851 lt_cv_deplibs_check_method=pass_all
12853 sequent)
12854 lt_cv_file_magic_cmd='/bin/file'
12855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12857 sni)
12858 lt_cv_file_magic_cmd='/bin/file'
12859 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12860 lt_cv_file_magic_test_file=/lib/libc.so
12862 siemens)
12863 lt_cv_deplibs_check_method=pass_all
12866 lt_cv_deplibs_check_method=pass_all
12868 esac
12871 tpf*)
12872 lt_cv_deplibs_check_method=pass_all
12874 esac
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12878 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12879 file_magic_cmd=$lt_cv_file_magic_cmd
12880 deplibs_check_method=$lt_cv_deplibs_check_method
12881 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12894 if test -n "$ac_tool_prefix"; then
12895 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12896 set dummy ${ac_tool_prefix}ar; ac_word=$2
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898 $as_echo_n "checking for $ac_word... " >&6; }
12899 if test "${ac_cv_prog_AR+set}" = set; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 if test -n "$AR"; then
12903 ac_cv_prog_AR="$AR" # Let the user override the test.
12904 else
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $PATH
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12912 ac_cv_prog_AR="${ac_tool_prefix}ar"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12916 done
12917 done
12918 IFS=$as_save_IFS
12922 AR=$ac_cv_prog_AR
12923 if test -n "$AR"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12925 $as_echo "$AR" >&6; }
12926 else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928 $as_echo "no" >&6; }
12933 if test -z "$ac_cv_prog_AR"; then
12934 ac_ct_AR=$AR
12935 # Extract the first word of "ar", so it can be a program name with args.
12936 set dummy ar; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938 $as_echo_n "checking for $ac_word... " >&6; }
12939 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12942 if test -n "$ac_ct_AR"; then
12943 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12944 else
12945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in $PATH
12948 IFS=$as_save_IFS
12949 test -z "$as_dir" && as_dir=.
12950 for ac_exec_ext in '' $ac_executable_extensions; do
12951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12952 ac_cv_prog_ac_ct_AR="ar"
12953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12954 break 2
12956 done
12957 done
12958 IFS=$as_save_IFS
12962 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12963 if test -n "$ac_ct_AR"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12965 $as_echo "$ac_ct_AR" >&6; }
12966 else
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12971 if test "x$ac_ct_AR" = x; then
12972 AR="false"
12973 else
12974 case $cross_compiling:$ac_tool_warned in
12975 yes:)
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12978 ac_tool_warned=yes ;;
12979 esac
12980 AR=$ac_ct_AR
12982 else
12983 AR="$ac_cv_prog_AR"
12986 test -z "$AR" && AR=ar
12987 test -z "$AR_FLAGS" && AR_FLAGS=cru
12999 if test -n "$ac_tool_prefix"; then
13000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13001 set dummy ${ac_tool_prefix}strip; ac_word=$2
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13003 $as_echo_n "checking for $ac_word... " >&6; }
13004 if test "${ac_cv_prog_STRIP+set}" = set; then :
13005 $as_echo_n "(cached) " >&6
13006 else
13007 if test -n "$STRIP"; then
13008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13009 else
13010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13011 for as_dir in $PATH
13013 IFS=$as_save_IFS
13014 test -z "$as_dir" && as_dir=.
13015 for ac_exec_ext in '' $ac_executable_extensions; do
13016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13017 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13019 break 2
13021 done
13022 done
13023 IFS=$as_save_IFS
13027 STRIP=$ac_cv_prog_STRIP
13028 if test -n "$STRIP"; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13030 $as_echo "$STRIP" >&6; }
13031 else
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 $as_echo "no" >&6; }
13038 if test -z "$ac_cv_prog_STRIP"; then
13039 ac_ct_STRIP=$STRIP
13040 # Extract the first word of "strip", so it can be a program name with args.
13041 set dummy strip; ac_word=$2
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043 $as_echo_n "checking for $ac_word... " >&6; }
13044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13045 $as_echo_n "(cached) " >&6
13046 else
13047 if test -n "$ac_ct_STRIP"; then
13048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13049 else
13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051 for as_dir in $PATH
13053 IFS=$as_save_IFS
13054 test -z "$as_dir" && as_dir=.
13055 for ac_exec_ext in '' $ac_executable_extensions; do
13056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13057 ac_cv_prog_ac_ct_STRIP="strip"
13058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13059 break 2
13061 done
13062 done
13063 IFS=$as_save_IFS
13067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13068 if test -n "$ac_ct_STRIP"; then
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13070 $as_echo "$ac_ct_STRIP" >&6; }
13071 else
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073 $as_echo "no" >&6; }
13076 if test "x$ac_ct_STRIP" = x; then
13077 STRIP=":"
13078 else
13079 case $cross_compiling:$ac_tool_warned in
13080 yes:)
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13083 ac_tool_warned=yes ;;
13084 esac
13085 STRIP=$ac_ct_STRIP
13087 else
13088 STRIP="$ac_cv_prog_STRIP"
13091 test -z "$STRIP" && STRIP=:
13098 if test -n "$ac_tool_prefix"; then
13099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13102 $as_echo_n "checking for $ac_word... " >&6; }
13103 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13104 $as_echo_n "(cached) " >&6
13105 else
13106 if test -n "$RANLIB"; then
13107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13108 else
13109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110 for as_dir in $PATH
13112 IFS=$as_save_IFS
13113 test -z "$as_dir" && as_dir=.
13114 for ac_exec_ext in '' $ac_executable_extensions; do
13115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13118 break 2
13120 done
13121 done
13122 IFS=$as_save_IFS
13126 RANLIB=$ac_cv_prog_RANLIB
13127 if test -n "$RANLIB"; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13129 $as_echo "$RANLIB" >&6; }
13130 else
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132 $as_echo "no" >&6; }
13137 if test -z "$ac_cv_prog_RANLIB"; then
13138 ac_ct_RANLIB=$RANLIB
13139 # Extract the first word of "ranlib", so it can be a program name with args.
13140 set dummy ranlib; ac_word=$2
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142 $as_echo_n "checking for $ac_word... " >&6; }
13143 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13146 if test -n "$ac_ct_RANLIB"; then
13147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13148 else
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13152 IFS=$as_save_IFS
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13156 ac_cv_prog_ac_ct_RANLIB="ranlib"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 break 2
13160 done
13161 done
13162 IFS=$as_save_IFS
13166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13167 if test -n "$ac_ct_RANLIB"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13169 $as_echo "$ac_ct_RANLIB" >&6; }
13170 else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13175 if test "x$ac_ct_RANLIB" = x; then
13176 RANLIB=":"
13177 else
13178 case $cross_compiling:$ac_tool_warned in
13179 yes:)
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13182 ac_tool_warned=yes ;;
13183 esac
13184 RANLIB=$ac_ct_RANLIB
13186 else
13187 RANLIB="$ac_cv_prog_RANLIB"
13190 test -z "$RANLIB" && RANLIB=:
13197 # Determine commands to create old-style static archives.
13198 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13199 old_postinstall_cmds='chmod 644 $oldlib'
13200 old_postuninstall_cmds=
13202 if test -n "$RANLIB"; then
13203 case $host_os in
13204 openbsd*)
13205 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13208 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13210 esac
13211 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13214 case $host_os in
13215 darwin*)
13216 lock_old_archive_extraction=yes ;;
13218 lock_old_archive_extraction=no ;;
13219 esac
13259 # If no C compiler was specified, use CC.
13260 LTCC=${LTCC-"$CC"}
13262 # If no C compiler flags were specified, use CFLAGS.
13263 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13265 # Allow CC to be a program name with arguments.
13266 compiler=$CC
13269 # Check for command to grab the raw symbol name followed by C symbol from nm.
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13271 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13272 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13276 # These are sane defaults that work on at least a few old systems.
13277 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13279 # Character class describing NM global symbol codes.
13280 symcode='[BCDEGRST]'
13282 # Regexp to match symbols that can be accessed directly from C.
13283 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13285 # Define system-specific variables.
13286 case $host_os in
13287 aix*)
13288 symcode='[BCDT]'
13290 cygwin* | mingw* | pw32* | cegcc*)
13291 symcode='[ABCDGISTW]'
13293 hpux*)
13294 if test "$host_cpu" = ia64; then
13295 symcode='[ABCDEGRST]'
13298 irix* | nonstopux*)
13299 symcode='[BCDEGRST]'
13301 osf*)
13302 symcode='[BCDEGQRST]'
13304 solaris*)
13305 symcode='[BDRT]'
13307 sco3.2v5*)
13308 symcode='[DT]'
13310 sysv4.2uw2*)
13311 symcode='[DT]'
13313 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13314 symcode='[ABDT]'
13316 sysv4)
13317 symcode='[DFNSTU]'
13319 esac
13321 # If we're using GNU nm, then use its standard symbol codes.
13322 case `$NM -V 2>&1` in
13323 *GNU* | *'with BFD'*)
13324 symcode='[ABCDGIRSTW]' ;;
13325 esac
13327 # Transform an extracted symbol line into a proper C declaration.
13328 # Some systems (esp. on ia64) link data and code symbols differently,
13329 # so use this general approach.
13330 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13332 # Transform an extracted symbol line into symbol name and symbol address
13333 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13334 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'"
13336 # Handle CRLF in mingw tool chain
13337 opt_cr=
13338 case $build_os in
13339 mingw*)
13340 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13342 esac
13344 # Try without a prefix underscore, then with it.
13345 for ac_symprfx in "" "_"; do
13347 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13348 symxfrm="\\1 $ac_symprfx\\2 \\2"
13350 # Write the raw and C identifiers.
13351 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13352 # Fake it for dumpbin and say T for any non-static function
13353 # and D for any global variable.
13354 # Also find C++ and __fastcall symbols from MSVC++,
13355 # which start with @ or ?.
13356 lt_cv_sys_global_symbol_pipe="$AWK '"\
13357 " {last_section=section; section=\$ 3};"\
13358 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13359 " \$ 0!~/External *\|/{next};"\
13360 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13361 " {if(hide[section]) next};"\
13362 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13363 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13364 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13365 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13366 " ' prfx=^$ac_symprfx"
13367 else
13368 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13371 # Check to see that the pipe works correctly.
13372 pipe_works=no
13374 rm -f conftest*
13375 cat > conftest.$ac_ext <<_LT_EOF
13376 #ifdef __cplusplus
13377 extern "C" {
13378 #endif
13379 char nm_test_var;
13380 void nm_test_func(void);
13381 void nm_test_func(void){}
13382 #ifdef __cplusplus
13384 #endif
13385 int main(){nm_test_var='a';nm_test_func();return(0);}
13386 _LT_EOF
13388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13389 (eval $ac_compile) 2>&5
13390 ac_status=$?
13391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13392 test $ac_status = 0; }; then
13393 # Now try to grab the symbols.
13394 nlist=conftest.nm
13395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13396 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13397 ac_status=$?
13398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13399 test $ac_status = 0; } && test -s "$nlist"; then
13400 # Try sorting and uniquifying the output.
13401 if sort "$nlist" | uniq > "$nlist"T; then
13402 mv -f "$nlist"T "$nlist"
13403 else
13404 rm -f "$nlist"T
13407 # Make sure that we snagged all the symbols we need.
13408 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13409 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13410 cat <<_LT_EOF > conftest.$ac_ext
13411 #ifdef __cplusplus
13412 extern "C" {
13413 #endif
13415 _LT_EOF
13416 # Now generate the symbol file.
13417 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13419 cat <<_LT_EOF >> conftest.$ac_ext
13421 /* The mapping between symbol names and symbols. */
13422 const struct {
13423 const char *name;
13424 void *address;
13426 lt__PROGRAM__LTX_preloaded_symbols[] =
13428 { "@PROGRAM@", (void *) 0 },
13429 _LT_EOF
13430 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13431 cat <<\_LT_EOF >> conftest.$ac_ext
13432 {0, (void *) 0}
13435 /* This works around a problem in FreeBSD linker */
13436 #ifdef FREEBSD_WORKAROUND
13437 static const void *lt_preloaded_setup() {
13438 return lt__PROGRAM__LTX_preloaded_symbols;
13440 #endif
13442 #ifdef __cplusplus
13444 #endif
13445 _LT_EOF
13446 # Now try linking the two files.
13447 mv conftest.$ac_objext conftstm.$ac_objext
13448 lt_save_LIBS="$LIBS"
13449 lt_save_CFLAGS="$CFLAGS"
13450 LIBS="conftstm.$ac_objext"
13451 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13453 (eval $ac_link) 2>&5
13454 ac_status=$?
13455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13456 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13457 pipe_works=yes
13459 LIBS="$lt_save_LIBS"
13460 CFLAGS="$lt_save_CFLAGS"
13461 else
13462 echo "cannot find nm_test_func in $nlist" >&5
13464 else
13465 echo "cannot find nm_test_var in $nlist" >&5
13467 else
13468 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13470 else
13471 echo "$progname: failed program was:" >&5
13472 cat conftest.$ac_ext >&5
13474 rm -rf conftest* conftst*
13476 # Do not use the global_symbol_pipe unless it works.
13477 if test "$pipe_works" = yes; then
13478 break
13479 else
13480 lt_cv_sys_global_symbol_pipe=
13482 done
13486 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13487 lt_cv_sys_global_symbol_to_cdecl=
13489 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13491 $as_echo "failed" >&6; }
13492 else
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13494 $as_echo "ok" >&6; }
13518 # Check whether --enable-libtool-lock was given.
13519 if test "${enable_libtool_lock+set}" = set; then :
13520 enableval=$enable_libtool_lock;
13523 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13525 # Some flags need to be propagated to the compiler or linker for good
13526 # libtool support.
13527 case $host in
13528 ia64-*-hpux*)
13529 # Find out which ABI we are using.
13530 echo 'int i;' > conftest.$ac_ext
13531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13532 (eval $ac_compile) 2>&5
13533 ac_status=$?
13534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13535 test $ac_status = 0; }; then
13536 case `/usr/bin/file conftest.$ac_objext` in
13537 *ELF-32*)
13538 HPUX_IA64_MODE="32"
13540 *ELF-64*)
13541 HPUX_IA64_MODE="64"
13543 esac
13545 rm -rf conftest*
13547 *-*-irix6*)
13548 # Find out which ABI we are using.
13549 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13551 (eval $ac_compile) 2>&5
13552 ac_status=$?
13553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13554 test $ac_status = 0; }; then
13555 if test "$lt_cv_prog_gnu_ld" = yes; then
13556 case `/usr/bin/file conftest.$ac_objext` in
13557 *32-bit*)
13558 LD="${LD-ld} -melf32bsmip"
13560 *N32*)
13561 LD="${LD-ld} -melf32bmipn32"
13563 *64-bit*)
13564 LD="${LD-ld} -melf64bmip"
13566 esac
13567 else
13568 case `/usr/bin/file conftest.$ac_objext` in
13569 *32-bit*)
13570 LD="${LD-ld} -32"
13572 *N32*)
13573 LD="${LD-ld} -n32"
13575 *64-bit*)
13576 LD="${LD-ld} -64"
13578 esac
13581 rm -rf conftest*
13584 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13585 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13586 # Find out which ABI we are using.
13587 echo 'int i;' > conftest.$ac_ext
13588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13589 (eval $ac_compile) 2>&5
13590 ac_status=$?
13591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13592 test $ac_status = 0; }; then
13593 case `/usr/bin/file conftest.o` in
13594 *32-bit*)
13595 case $host in
13596 x86_64-*kfreebsd*-gnu)
13597 LD="${LD-ld} -m elf_i386_fbsd"
13599 x86_64-*linux*)
13600 case `/usr/bin/file conftest.o` in
13601 *x86-64*)
13602 LD="${LD-ld} -m elf32_x86_64"
13605 LD="${LD-ld} -m elf_i386"
13607 esac
13609 ppc64-*linux*|powerpc64-*linux*)
13610 LD="${LD-ld} -m elf32ppclinux"
13612 s390x-*linux*)
13613 LD="${LD-ld} -m elf_s390"
13615 sparc64-*linux*)
13616 LD="${LD-ld} -m elf32_sparc"
13618 esac
13620 *64-bit*)
13621 case $host in
13622 x86_64-*kfreebsd*-gnu)
13623 LD="${LD-ld} -m elf_x86_64_fbsd"
13625 x86_64-*linux*)
13626 LD="${LD-ld} -m elf_x86_64"
13628 ppc*-*linux*|powerpc*-*linux*)
13629 LD="${LD-ld} -m elf64ppc"
13631 s390*-*linux*|s390*-*tpf*)
13632 LD="${LD-ld} -m elf64_s390"
13634 sparc*-*linux*)
13635 LD="${LD-ld} -m elf64_sparc"
13637 esac
13639 esac
13641 rm -rf conftest*
13644 *-*-sco3.2v5*)
13645 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13646 SAVE_CFLAGS="$CFLAGS"
13647 CFLAGS="$CFLAGS -belf"
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13649 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13650 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13651 $as_echo_n "(cached) " >&6
13652 else
13653 ac_ext=c
13654 ac_cpp='$CPP $CPPFLAGS'
13655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13663 main ()
13667 return 0;
13669 _ACEOF
13670 if ac_fn_c_try_link "$LINENO"; then :
13671 lt_cv_cc_needs_belf=yes
13672 else
13673 lt_cv_cc_needs_belf=no
13675 rm -f core conftest.err conftest.$ac_objext \
13676 conftest$ac_exeext conftest.$ac_ext
13677 ac_ext=c
13678 ac_cpp='$CPP $CPPFLAGS'
13679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13685 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13686 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13687 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13688 CFLAGS="$SAVE_CFLAGS"
13691 sparc*-*solaris*)
13692 # Find out which ABI we are using.
13693 echo 'int i;' > conftest.$ac_ext
13694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13695 (eval $ac_compile) 2>&5
13696 ac_status=$?
13697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13698 test $ac_status = 0; }; then
13699 case `/usr/bin/file conftest.o` in
13700 *64-bit*)
13701 case $lt_cv_prog_gnu_ld in
13702 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13704 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13705 LD="${LD-ld} -64"
13708 esac
13710 esac
13712 rm -rf conftest*
13714 esac
13716 need_locks="$enable_libtool_lock"
13719 case $host_os in
13720 rhapsody* | darwin*)
13721 if test -n "$ac_tool_prefix"; then
13722 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13723 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13725 $as_echo_n "checking for $ac_word... " >&6; }
13726 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13728 else
13729 if test -n "$DSYMUTIL"; then
13730 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13731 else
13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733 for as_dir in $PATH
13735 IFS=$as_save_IFS
13736 test -z "$as_dir" && as_dir=.
13737 for ac_exec_ext in '' $ac_executable_extensions; do
13738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13739 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13741 break 2
13743 done
13744 done
13745 IFS=$as_save_IFS
13749 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13750 if test -n "$DSYMUTIL"; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13752 $as_echo "$DSYMUTIL" >&6; }
13753 else
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13760 if test -z "$ac_cv_prog_DSYMUTIL"; then
13761 ac_ct_DSYMUTIL=$DSYMUTIL
13762 # Extract the first word of "dsymutil", so it can be a program name with args.
13763 set dummy dsymutil; ac_word=$2
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13765 $as_echo_n "checking for $ac_word... " >&6; }
13766 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13767 $as_echo_n "(cached) " >&6
13768 else
13769 if test -n "$ac_ct_DSYMUTIL"; then
13770 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13771 else
13772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773 for as_dir in $PATH
13775 IFS=$as_save_IFS
13776 test -z "$as_dir" && as_dir=.
13777 for ac_exec_ext in '' $ac_executable_extensions; do
13778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13779 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13781 break 2
13783 done
13784 done
13785 IFS=$as_save_IFS
13789 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13790 if test -n "$ac_ct_DSYMUTIL"; then
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13792 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13793 else
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13795 $as_echo "no" >&6; }
13798 if test "x$ac_ct_DSYMUTIL" = x; then
13799 DSYMUTIL=":"
13800 else
13801 case $cross_compiling:$ac_tool_warned in
13802 yes:)
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13805 ac_tool_warned=yes ;;
13806 esac
13807 DSYMUTIL=$ac_ct_DSYMUTIL
13809 else
13810 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13813 if test -n "$ac_tool_prefix"; then
13814 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13815 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13817 $as_echo_n "checking for $ac_word... " >&6; }
13818 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 if test -n "$NMEDIT"; then
13822 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13823 else
13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13827 IFS=$as_save_IFS
13828 test -z "$as_dir" && as_dir=.
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13831 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13833 break 2
13835 done
13836 done
13837 IFS=$as_save_IFS
13841 NMEDIT=$ac_cv_prog_NMEDIT
13842 if test -n "$NMEDIT"; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13844 $as_echo "$NMEDIT" >&6; }
13845 else
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847 $as_echo "no" >&6; }
13852 if test -z "$ac_cv_prog_NMEDIT"; then
13853 ac_ct_NMEDIT=$NMEDIT
13854 # Extract the first word of "nmedit", so it can be a program name with args.
13855 set dummy nmedit; ac_word=$2
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13857 $as_echo_n "checking for $ac_word... " >&6; }
13858 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13859 $as_echo_n "(cached) " >&6
13860 else
13861 if test -n "$ac_ct_NMEDIT"; then
13862 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13863 else
13864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865 for as_dir in $PATH
13867 IFS=$as_save_IFS
13868 test -z "$as_dir" && as_dir=.
13869 for ac_exec_ext in '' $ac_executable_extensions; do
13870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13871 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13873 break 2
13875 done
13876 done
13877 IFS=$as_save_IFS
13881 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13882 if test -n "$ac_ct_NMEDIT"; then
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13884 $as_echo "$ac_ct_NMEDIT" >&6; }
13885 else
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 $as_echo "no" >&6; }
13890 if test "x$ac_ct_NMEDIT" = x; then
13891 NMEDIT=":"
13892 else
13893 case $cross_compiling:$ac_tool_warned in
13894 yes:)
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13897 ac_tool_warned=yes ;;
13898 esac
13899 NMEDIT=$ac_ct_NMEDIT
13901 else
13902 NMEDIT="$ac_cv_prog_NMEDIT"
13905 if test -n "$ac_tool_prefix"; then
13906 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13907 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13909 $as_echo_n "checking for $ac_word... " >&6; }
13910 if test "${ac_cv_prog_LIPO+set}" = set; then :
13911 $as_echo_n "(cached) " >&6
13912 else
13913 if test -n "$LIPO"; then
13914 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13915 else
13916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13917 for as_dir in $PATH
13919 IFS=$as_save_IFS
13920 test -z "$as_dir" && as_dir=.
13921 for ac_exec_ext in '' $ac_executable_extensions; do
13922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13923 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13925 break 2
13927 done
13928 done
13929 IFS=$as_save_IFS
13933 LIPO=$ac_cv_prog_LIPO
13934 if test -n "$LIPO"; then
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13936 $as_echo "$LIPO" >&6; }
13937 else
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13939 $as_echo "no" >&6; }
13944 if test -z "$ac_cv_prog_LIPO"; then
13945 ac_ct_LIPO=$LIPO
13946 # Extract the first word of "lipo", so it can be a program name with args.
13947 set dummy lipo; ac_word=$2
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13949 $as_echo_n "checking for $ac_word... " >&6; }
13950 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13951 $as_echo_n "(cached) " >&6
13952 else
13953 if test -n "$ac_ct_LIPO"; then
13954 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13955 else
13956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957 for as_dir in $PATH
13959 IFS=$as_save_IFS
13960 test -z "$as_dir" && as_dir=.
13961 for ac_exec_ext in '' $ac_executable_extensions; do
13962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13963 ac_cv_prog_ac_ct_LIPO="lipo"
13964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13965 break 2
13967 done
13968 done
13969 IFS=$as_save_IFS
13973 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13974 if test -n "$ac_ct_LIPO"; then
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13976 $as_echo "$ac_ct_LIPO" >&6; }
13977 else
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13979 $as_echo "no" >&6; }
13982 if test "x$ac_ct_LIPO" = x; then
13983 LIPO=":"
13984 else
13985 case $cross_compiling:$ac_tool_warned in
13986 yes:)
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13989 ac_tool_warned=yes ;;
13990 esac
13991 LIPO=$ac_ct_LIPO
13993 else
13994 LIPO="$ac_cv_prog_LIPO"
13997 if test -n "$ac_tool_prefix"; then
13998 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13999 set dummy ${ac_tool_prefix}otool; ac_word=$2
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14001 $as_echo_n "checking for $ac_word... " >&6; }
14002 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14003 $as_echo_n "(cached) " >&6
14004 else
14005 if test -n "$OTOOL"; then
14006 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14007 else
14008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14009 for as_dir in $PATH
14011 IFS=$as_save_IFS
14012 test -z "$as_dir" && as_dir=.
14013 for ac_exec_ext in '' $ac_executable_extensions; do
14014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14015 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14017 break 2
14019 done
14020 done
14021 IFS=$as_save_IFS
14025 OTOOL=$ac_cv_prog_OTOOL
14026 if test -n "$OTOOL"; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14028 $as_echo "$OTOOL" >&6; }
14029 else
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031 $as_echo "no" >&6; }
14036 if test -z "$ac_cv_prog_OTOOL"; then
14037 ac_ct_OTOOL=$OTOOL
14038 # Extract the first word of "otool", so it can be a program name with args.
14039 set dummy otool; ac_word=$2
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14041 $as_echo_n "checking for $ac_word... " >&6; }
14042 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14043 $as_echo_n "(cached) " >&6
14044 else
14045 if test -n "$ac_ct_OTOOL"; then
14046 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14047 else
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $PATH
14051 IFS=$as_save_IFS
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14055 ac_cv_prog_ac_ct_OTOOL="otool"
14056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14057 break 2
14059 done
14060 done
14061 IFS=$as_save_IFS
14065 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14066 if test -n "$ac_ct_OTOOL"; then
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14068 $as_echo "$ac_ct_OTOOL" >&6; }
14069 else
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14071 $as_echo "no" >&6; }
14074 if test "x$ac_ct_OTOOL" = x; then
14075 OTOOL=":"
14076 else
14077 case $cross_compiling:$ac_tool_warned in
14078 yes:)
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14081 ac_tool_warned=yes ;;
14082 esac
14083 OTOOL=$ac_ct_OTOOL
14085 else
14086 OTOOL="$ac_cv_prog_OTOOL"
14089 if test -n "$ac_tool_prefix"; then
14090 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14091 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14093 $as_echo_n "checking for $ac_word... " >&6; }
14094 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14095 $as_echo_n "(cached) " >&6
14096 else
14097 if test -n "$OTOOL64"; then
14098 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14099 else
14100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101 for as_dir in $PATH
14103 IFS=$as_save_IFS
14104 test -z "$as_dir" && as_dir=.
14105 for ac_exec_ext in '' $ac_executable_extensions; do
14106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14107 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14109 break 2
14111 done
14112 done
14113 IFS=$as_save_IFS
14117 OTOOL64=$ac_cv_prog_OTOOL64
14118 if test -n "$OTOOL64"; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14120 $as_echo "$OTOOL64" >&6; }
14121 else
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14123 $as_echo "no" >&6; }
14128 if test -z "$ac_cv_prog_OTOOL64"; then
14129 ac_ct_OTOOL64=$OTOOL64
14130 # Extract the first word of "otool64", so it can be a program name with args.
14131 set dummy otool64; ac_word=$2
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14133 $as_echo_n "checking for $ac_word... " >&6; }
14134 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14135 $as_echo_n "(cached) " >&6
14136 else
14137 if test -n "$ac_ct_OTOOL64"; then
14138 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14139 else
14140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 for as_dir in $PATH
14143 IFS=$as_save_IFS
14144 test -z "$as_dir" && as_dir=.
14145 for ac_exec_ext in '' $ac_executable_extensions; do
14146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14147 ac_cv_prog_ac_ct_OTOOL64="otool64"
14148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14149 break 2
14151 done
14152 done
14153 IFS=$as_save_IFS
14157 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14158 if test -n "$ac_ct_OTOOL64"; then
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14160 $as_echo "$ac_ct_OTOOL64" >&6; }
14161 else
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14163 $as_echo "no" >&6; }
14166 if test "x$ac_ct_OTOOL64" = x; then
14167 OTOOL64=":"
14168 else
14169 case $cross_compiling:$ac_tool_warned in
14170 yes:)
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14173 ac_tool_warned=yes ;;
14174 esac
14175 OTOOL64=$ac_ct_OTOOL64
14177 else
14178 OTOOL64="$ac_cv_prog_OTOOL64"
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14208 $as_echo_n "checking for -single_module linker flag... " >&6; }
14209 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 lt_cv_apple_cc_single_mod=no
14213 if test -z "${LT_MULTI_MODULE}"; then
14214 # By default we will add the -single_module flag. You can override
14215 # by either setting the environment variable LT_MULTI_MODULE
14216 # non-empty at configure time, or by adding -multi_module to the
14217 # link flags.
14218 rm -rf libconftest.dylib*
14219 echo "int foo(void){return 1;}" > conftest.c
14220 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14221 -dynamiclib -Wl,-single_module conftest.c" >&5
14222 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14223 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14224 _lt_result=$?
14225 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14226 lt_cv_apple_cc_single_mod=yes
14227 else
14228 cat conftest.err >&5
14230 rm -rf libconftest.dylib*
14231 rm -f conftest.*
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14235 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14237 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14238 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14239 $as_echo_n "(cached) " >&6
14240 else
14241 lt_cv_ld_exported_symbols_list=no
14242 save_LDFLAGS=$LDFLAGS
14243 echo "_main" > conftest.sym
14244 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14249 main ()
14253 return 0;
14255 _ACEOF
14256 if ac_fn_c_try_link "$LINENO"; then :
14257 lt_cv_ld_exported_symbols_list=yes
14258 else
14259 lt_cv_ld_exported_symbols_list=no
14261 rm -f core conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
14263 LDFLAGS="$save_LDFLAGS"
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14267 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14269 $as_echo_n "checking for -force_load linker flag... " >&6; }
14270 if test "${lt_cv_ld_force_load+set}" = set; then :
14271 $as_echo_n "(cached) " >&6
14272 else
14273 lt_cv_ld_force_load=no
14274 cat > conftest.c << _LT_EOF
14275 int forced_loaded() { return 2;}
14276 _LT_EOF
14277 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14278 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14279 echo "$AR cru libconftest.a conftest.o" >&5
14280 $AR cru libconftest.a conftest.o 2>&5
14281 cat > conftest.c << _LT_EOF
14282 int main() { return 0;}
14283 _LT_EOF
14284 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14285 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14286 _lt_result=$?
14287 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14288 lt_cv_ld_force_load=yes
14289 else
14290 cat conftest.err >&5
14292 rm -f conftest.err libconftest.a conftest conftest.c
14293 rm -rf conftest.dSYM
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14297 $as_echo "$lt_cv_ld_force_load" >&6; }
14298 case $host_os in
14299 rhapsody* | darwin1.[012])
14300 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14301 darwin1.*)
14302 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14303 darwin*) # darwin 5.x on
14304 # if running on 10.5 or later, the deployment target defaults
14305 # to the OS version, if on x86, and 10.4, the deployment
14306 # target defaults to 10.4. Don't you love it?
14307 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14308 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14309 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14310 10.[012]*)
14311 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14312 10.*)
14313 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14314 esac
14316 esac
14317 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14318 _lt_dar_single_mod='$single_module'
14320 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14321 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14322 else
14323 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14325 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14326 _lt_dsymutil='~$DSYMUTIL $lib || :'
14327 else
14328 _lt_dsymutil=
14331 esac
14333 for ac_header in dlfcn.h
14334 do :
14335 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14336 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14337 cat >>confdefs.h <<_ACEOF
14338 #define HAVE_DLFCN_H 1
14339 _ACEOF
14342 done
14348 # Set options
14352 enable_dlopen=no
14355 enable_win32_dll=no
14358 # Check whether --enable-shared was given.
14359 if test "${enable_shared+set}" = set; then :
14360 enableval=$enable_shared; p=${PACKAGE-default}
14361 case $enableval in
14362 yes) enable_shared=yes ;;
14363 no) enable_shared=no ;;
14365 enable_shared=no
14366 # Look at the argument we got. We use all the common list separators.
14367 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14368 for pkg in $enableval; do
14369 IFS="$lt_save_ifs"
14370 if test "X$pkg" = "X$p"; then
14371 enable_shared=yes
14373 done
14374 IFS="$lt_save_ifs"
14376 esac
14377 else
14378 enable_shared=yes
14389 # Check whether --enable-static was given.
14390 if test "${enable_static+set}" = set; then :
14391 enableval=$enable_static; p=${PACKAGE-default}
14392 case $enableval in
14393 yes) enable_static=yes ;;
14394 no) enable_static=no ;;
14396 enable_static=no
14397 # Look at the argument we got. We use all the common list separators.
14398 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14399 for pkg in $enableval; do
14400 IFS="$lt_save_ifs"
14401 if test "X$pkg" = "X$p"; then
14402 enable_static=yes
14404 done
14405 IFS="$lt_save_ifs"
14407 esac
14408 else
14409 enable_static=yes
14421 # Check whether --with-pic was given.
14422 if test "${with_pic+set}" = set; then :
14423 withval=$with_pic; pic_mode="$withval"
14424 else
14425 pic_mode=default
14429 test -z "$pic_mode" && pic_mode=default
14437 # Check whether --enable-fast-install was given.
14438 if test "${enable_fast_install+set}" = set; then :
14439 enableval=$enable_fast_install; p=${PACKAGE-default}
14440 case $enableval in
14441 yes) enable_fast_install=yes ;;
14442 no) enable_fast_install=no ;;
14444 enable_fast_install=no
14445 # Look at the argument we got. We use all the common list separators.
14446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14447 for pkg in $enableval; do
14448 IFS="$lt_save_ifs"
14449 if test "X$pkg" = "X$p"; then
14450 enable_fast_install=yes
14452 done
14453 IFS="$lt_save_ifs"
14455 esac
14456 else
14457 enable_fast_install=yes
14470 # This can be used to rebuild libtool when needed
14471 LIBTOOL_DEPS="$ltmain"
14473 # Always use our own libtool.
14474 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14501 test -z "$LN_S" && LN_S="ln -s"
14516 if test -n "${ZSH_VERSION+set}" ; then
14517 setopt NO_GLOB_SUBST
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14521 $as_echo_n "checking for objdir... " >&6; }
14522 if test "${lt_cv_objdir+set}" = set; then :
14523 $as_echo_n "(cached) " >&6
14524 else
14525 rm -f .libs 2>/dev/null
14526 mkdir .libs 2>/dev/null
14527 if test -d .libs; then
14528 lt_cv_objdir=.libs
14529 else
14530 # MS-DOS does not allow filenames that begin with a dot.
14531 lt_cv_objdir=_libs
14533 rmdir .libs 2>/dev/null
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14536 $as_echo "$lt_cv_objdir" >&6; }
14537 objdir=$lt_cv_objdir
14543 cat >>confdefs.h <<_ACEOF
14544 #define LT_OBJDIR "$lt_cv_objdir/"
14545 _ACEOF
14550 case $host_os in
14551 aix3*)
14552 # AIX sometimes has problems with the GCC collect2 program. For some
14553 # reason, if we set the COLLECT_NAMES environment variable, the problems
14554 # vanish in a puff of smoke.
14555 if test "X${COLLECT_NAMES+set}" != Xset; then
14556 COLLECT_NAMES=
14557 export COLLECT_NAMES
14560 esac
14562 # Global variables:
14563 ofile=libtool
14564 can_build_shared=yes
14566 # All known linkers require a `.a' archive for static linking (except MSVC,
14567 # which needs '.lib').
14568 libext=a
14570 with_gnu_ld="$lt_cv_prog_gnu_ld"
14572 old_CC="$CC"
14573 old_CFLAGS="$CFLAGS"
14575 # Set sane defaults for various variables
14576 test -z "$CC" && CC=cc
14577 test -z "$LTCC" && LTCC=$CC
14578 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14579 test -z "$LD" && LD=ld
14580 test -z "$ac_objext" && ac_objext=o
14582 for cc_temp in $compiler""; do
14583 case $cc_temp in
14584 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14585 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14586 \-*) ;;
14587 *) break;;
14588 esac
14589 done
14590 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14593 # Only perform the check for file, if the check method requires it
14594 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14595 case $deplibs_check_method in
14596 file_magic*)
14597 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14599 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14600 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14601 $as_echo_n "(cached) " >&6
14602 else
14603 case $MAGIC_CMD in
14604 [\\/*] | ?:[\\/]*)
14605 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14608 lt_save_MAGIC_CMD="$MAGIC_CMD"
14609 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14610 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14611 for ac_dir in $ac_dummy; do
14612 IFS="$lt_save_ifs"
14613 test -z "$ac_dir" && ac_dir=.
14614 if test -f $ac_dir/${ac_tool_prefix}file; then
14615 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14616 if test -n "$file_magic_test_file"; then
14617 case $deplibs_check_method in
14618 "file_magic "*)
14619 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14620 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14621 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14622 $EGREP "$file_magic_regex" > /dev/null; then
14624 else
14625 cat <<_LT_EOF 1>&2
14627 *** Warning: the command libtool uses to detect shared libraries,
14628 *** $file_magic_cmd, produces output that libtool cannot recognize.
14629 *** The result is that libtool may fail to recognize shared libraries
14630 *** as such. This will affect the creation of libtool libraries that
14631 *** depend on shared libraries, but programs linked with such libtool
14632 *** libraries will work regardless of this problem. Nevertheless, you
14633 *** may want to report the problem to your system manager and/or to
14634 *** bug-libtool@gnu.org
14636 _LT_EOF
14637 fi ;;
14638 esac
14640 break
14642 done
14643 IFS="$lt_save_ifs"
14644 MAGIC_CMD="$lt_save_MAGIC_CMD"
14646 esac
14649 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14650 if test -n "$MAGIC_CMD"; then
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14652 $as_echo "$MAGIC_CMD" >&6; }
14653 else
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14655 $as_echo "no" >&6; }
14662 if test -z "$lt_cv_path_MAGIC_CMD"; then
14663 if test -n "$ac_tool_prefix"; then
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14665 $as_echo_n "checking for file... " >&6; }
14666 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14667 $as_echo_n "(cached) " >&6
14668 else
14669 case $MAGIC_CMD in
14670 [\\/*] | ?:[\\/]*)
14671 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14674 lt_save_MAGIC_CMD="$MAGIC_CMD"
14675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14676 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14677 for ac_dir in $ac_dummy; do
14678 IFS="$lt_save_ifs"
14679 test -z "$ac_dir" && ac_dir=.
14680 if test -f $ac_dir/file; then
14681 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14682 if test -n "$file_magic_test_file"; then
14683 case $deplibs_check_method in
14684 "file_magic "*)
14685 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14687 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14688 $EGREP "$file_magic_regex" > /dev/null; then
14690 else
14691 cat <<_LT_EOF 1>&2
14693 *** Warning: the command libtool uses to detect shared libraries,
14694 *** $file_magic_cmd, produces output that libtool cannot recognize.
14695 *** The result is that libtool may fail to recognize shared libraries
14696 *** as such. This will affect the creation of libtool libraries that
14697 *** depend on shared libraries, but programs linked with such libtool
14698 *** libraries will work regardless of this problem. Nevertheless, you
14699 *** may want to report the problem to your system manager and/or to
14700 *** bug-libtool@gnu.org
14702 _LT_EOF
14703 fi ;;
14704 esac
14706 break
14708 done
14709 IFS="$lt_save_ifs"
14710 MAGIC_CMD="$lt_save_MAGIC_CMD"
14712 esac
14715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14716 if test -n "$MAGIC_CMD"; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14718 $as_echo "$MAGIC_CMD" >&6; }
14719 else
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14721 $as_echo "no" >&6; }
14725 else
14726 MAGIC_CMD=:
14732 esac
14734 # Use C for the default configuration in the libtool script
14736 lt_save_CC="$CC"
14737 ac_ext=c
14738 ac_cpp='$CPP $CPPFLAGS'
14739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14744 # Source file extension for C test sources.
14745 ac_ext=c
14747 # Object file extension for compiled C test sources.
14748 objext=o
14749 objext=$objext
14751 # Code to be used in simple compile tests
14752 lt_simple_compile_test_code="int some_variable = 0;"
14754 # Code to be used in simple link tests
14755 lt_simple_link_test_code='int main(){return(0);}'
14763 # If no C compiler was specified, use CC.
14764 LTCC=${LTCC-"$CC"}
14766 # If no C compiler flags were specified, use CFLAGS.
14767 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14769 # Allow CC to be a program name with arguments.
14770 compiler=$CC
14772 # Save the default compiler, since it gets overwritten when the other
14773 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14774 compiler_DEFAULT=$CC
14776 # save warnings/boilerplate of simple test code
14777 ac_outfile=conftest.$ac_objext
14778 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14779 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14780 _lt_compiler_boilerplate=`cat conftest.err`
14781 $RM conftest*
14783 ac_outfile=conftest.$ac_objext
14784 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14785 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14786 _lt_linker_boilerplate=`cat conftest.err`
14787 $RM -r conftest*
14790 ## CAVEAT EMPTOR:
14791 ## There is no encapsulation within the following macros, do not change
14792 ## the running order or otherwise move them around unless you know exactly
14793 ## what you are doing...
14794 if test -n "$compiler"; then
14796 lt_prog_compiler_no_builtin_flag=
14798 if test "$GCC" = yes; then
14799 case $cc_basename in
14800 nvcc*)
14801 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14803 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14804 esac
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14807 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14808 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14809 $as_echo_n "(cached) " >&6
14810 else
14811 lt_cv_prog_compiler_rtti_exceptions=no
14812 ac_outfile=conftest.$ac_objext
14813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14814 lt_compiler_flag="-fno-rtti -fno-exceptions"
14815 # Insert the option either (1) after the last *FLAGS variable, or
14816 # (2) before a word containing "conftest.", or (3) at the end.
14817 # Note that $ac_compile itself does not contain backslashes and begins
14818 # with a dollar sign (not a hyphen), so the echo should work correctly.
14819 # The option is referenced via a variable to avoid confusing sed.
14820 lt_compile=`echo "$ac_compile" | $SED \
14821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14823 -e 's:$: $lt_compiler_flag:'`
14824 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14825 (eval "$lt_compile" 2>conftest.err)
14826 ac_status=$?
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 if (exit $ac_status) && test -s "$ac_outfile"; then
14830 # The compiler can only warn and ignore the option if not recognized
14831 # So say no if there are warnings other than the usual output.
14832 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14835 lt_cv_prog_compiler_rtti_exceptions=yes
14838 $RM conftest*
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14842 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14844 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14845 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14846 else
14857 lt_prog_compiler_wl=
14858 lt_prog_compiler_pic=
14859 lt_prog_compiler_static=
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14862 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14864 if test "$GCC" = yes; then
14865 lt_prog_compiler_wl='-Wl,'
14866 lt_prog_compiler_static='-static'
14868 case $host_os in
14869 aix*)
14870 # All AIX code is PIC.
14871 if test "$host_cpu" = ia64; then
14872 # AIX 5 now supports IA64 processor
14873 lt_prog_compiler_static='-Bstatic'
14875 lt_prog_compiler_pic='-fPIC'
14878 amigaos*)
14879 case $host_cpu in
14880 powerpc)
14881 # see comment about AmigaOS4 .so support
14882 lt_prog_compiler_pic='-fPIC'
14884 m68k)
14885 # FIXME: we need at least 68020 code to build shared libraries, but
14886 # adding the `-m68020' flag to GCC prevents building anything better,
14887 # like `-m68040'.
14888 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14890 esac
14893 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14894 # PIC is the default for these OSes.
14897 mingw* | cygwin* | pw32* | os2* | cegcc*)
14898 # This hack is so that the source file can tell whether it is being
14899 # built for inclusion in a dll (and should export symbols for example).
14900 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14901 # (--disable-auto-import) libraries
14902 lt_prog_compiler_pic='-DDLL_EXPORT'
14905 darwin* | rhapsody*)
14906 # PIC is the default on this platform
14907 # Common symbols not allowed in MH_DYLIB files
14908 lt_prog_compiler_pic='-fno-common'
14911 haiku*)
14912 # PIC is the default for Haiku.
14913 # The "-static" flag exists, but is broken.
14914 lt_prog_compiler_static=
14917 hpux*)
14918 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14919 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14920 # sets the default TLS model and affects inlining.
14921 case $host_cpu in
14922 hppa*64*)
14923 # +Z the default
14926 lt_prog_compiler_pic='-fPIC'
14928 esac
14931 interix[3-9]*)
14932 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14933 # Instead, we relocate shared libraries at runtime.
14936 msdosdjgpp*)
14937 # Just because we use GCC doesn't mean we suddenly get shared libraries
14938 # on systems that don't support them.
14939 lt_prog_compiler_can_build_shared=no
14940 enable_shared=no
14943 *nto* | *qnx*)
14944 # QNX uses GNU C++, but need to define -shared option too, otherwise
14945 # it will coredump.
14946 lt_prog_compiler_pic='-fPIC -shared'
14949 sysv4*MP*)
14950 if test -d /usr/nec; then
14951 lt_prog_compiler_pic=-Kconform_pic
14956 lt_prog_compiler_pic='-fPIC'
14958 esac
14960 case $cc_basename in
14961 nvcc*) # Cuda Compiler Driver 2.2
14962 lt_prog_compiler_wl='-Xlinker '
14963 lt_prog_compiler_pic='-Xcompiler -fPIC'
14965 esac
14966 else
14967 # PORTME Check for flag to pass linker flags through the system compiler.
14968 case $host_os in
14969 aix*)
14970 lt_prog_compiler_wl='-Wl,'
14971 if test "$host_cpu" = ia64; then
14972 # AIX 5 now supports IA64 processor
14973 lt_prog_compiler_static='-Bstatic'
14974 else
14975 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14979 mingw* | cygwin* | pw32* | os2* | cegcc*)
14980 # This hack is so that the source file can tell whether it is being
14981 # built for inclusion in a dll (and should export symbols for example).
14982 lt_prog_compiler_pic='-DDLL_EXPORT'
14985 hpux9* | hpux10* | hpux11*)
14986 lt_prog_compiler_wl='-Wl,'
14987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14988 # not for PA HP-UX.
14989 case $host_cpu in
14990 hppa*64*|ia64*)
14991 # +Z the default
14994 lt_prog_compiler_pic='+Z'
14996 esac
14997 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14998 lt_prog_compiler_static='${wl}-a ${wl}archive'
15001 irix5* | irix6* | nonstopux*)
15002 lt_prog_compiler_wl='-Wl,'
15003 # PIC (with -KPIC) is the default.
15004 lt_prog_compiler_static='-non_shared'
15007 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15008 case $cc_basename in
15009 # old Intel for x86_64 which still supported -KPIC.
15010 ecc*)
15011 lt_prog_compiler_wl='-Wl,'
15012 lt_prog_compiler_pic='-KPIC'
15013 lt_prog_compiler_static='-static'
15015 # icc used to be incompatible with GCC.
15016 # ICC 10 doesn't accept -KPIC any more.
15017 icc* | ifort*)
15018 lt_prog_compiler_wl='-Wl,'
15019 lt_prog_compiler_pic='-fPIC'
15020 lt_prog_compiler_static='-static'
15022 # Lahey Fortran 8.1.
15023 lf95*)
15024 lt_prog_compiler_wl='-Wl,'
15025 lt_prog_compiler_pic='--shared'
15026 lt_prog_compiler_static='--static'
15028 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15029 # Portland Group compilers (*not* the Pentium gcc compiler,
15030 # which looks to be a dead project)
15031 lt_prog_compiler_wl='-Wl,'
15032 lt_prog_compiler_pic='-fpic'
15033 lt_prog_compiler_static='-Bstatic'
15035 ccc*)
15036 lt_prog_compiler_wl='-Wl,'
15037 # All Alpha code is PIC.
15038 lt_prog_compiler_static='-non_shared'
15040 xl* | bgxl* | bgf* | mpixl*)
15041 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15042 lt_prog_compiler_wl='-Wl,'
15043 lt_prog_compiler_pic='-qpic'
15044 lt_prog_compiler_static='-qstaticlink'
15047 case `$CC -V 2>&1 | sed 5q` in
15048 *Sun\ F* | *Sun*Fortran*)
15049 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15050 lt_prog_compiler_pic='-KPIC'
15051 lt_prog_compiler_static='-Bstatic'
15052 lt_prog_compiler_wl=''
15054 *Sun\ C*)
15055 # Sun C 5.9
15056 lt_prog_compiler_pic='-KPIC'
15057 lt_prog_compiler_static='-Bstatic'
15058 lt_prog_compiler_wl='-Wl,'
15060 esac
15062 esac
15065 newsos6)
15066 lt_prog_compiler_pic='-KPIC'
15067 lt_prog_compiler_static='-Bstatic'
15070 *nto* | *qnx*)
15071 # QNX uses GNU C++, but need to define -shared option too, otherwise
15072 # it will coredump.
15073 lt_prog_compiler_pic='-fPIC -shared'
15076 osf3* | osf4* | osf5*)
15077 lt_prog_compiler_wl='-Wl,'
15078 # All OSF/1 code is PIC.
15079 lt_prog_compiler_static='-non_shared'
15082 rdos*)
15083 lt_prog_compiler_static='-non_shared'
15086 solaris*)
15087 lt_prog_compiler_pic='-KPIC'
15088 lt_prog_compiler_static='-Bstatic'
15089 case $cc_basename in
15090 f77* | f90* | f95*)
15091 lt_prog_compiler_wl='-Qoption ld ';;
15093 lt_prog_compiler_wl='-Wl,';;
15094 esac
15097 sunos4*)
15098 lt_prog_compiler_wl='-Qoption ld '
15099 lt_prog_compiler_pic='-PIC'
15100 lt_prog_compiler_static='-Bstatic'
15103 sysv4 | sysv4.2uw2* | sysv4.3*)
15104 lt_prog_compiler_wl='-Wl,'
15105 lt_prog_compiler_pic='-KPIC'
15106 lt_prog_compiler_static='-Bstatic'
15109 sysv4*MP*)
15110 if test -d /usr/nec ;then
15111 lt_prog_compiler_pic='-Kconform_pic'
15112 lt_prog_compiler_static='-Bstatic'
15116 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15117 lt_prog_compiler_wl='-Wl,'
15118 lt_prog_compiler_pic='-KPIC'
15119 lt_prog_compiler_static='-Bstatic'
15122 unicos*)
15123 lt_prog_compiler_wl='-Wl,'
15124 lt_prog_compiler_can_build_shared=no
15127 uts4*)
15128 lt_prog_compiler_pic='-pic'
15129 lt_prog_compiler_static='-Bstatic'
15133 lt_prog_compiler_can_build_shared=no
15135 esac
15138 case $host_os in
15139 # For platforms which do not support PIC, -DPIC is meaningless:
15140 *djgpp*)
15141 lt_prog_compiler_pic=
15144 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15146 esac
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15148 $as_echo "$lt_prog_compiler_pic" >&6; }
15156 # Check to make sure the PIC flag actually works.
15158 if test -n "$lt_prog_compiler_pic"; then
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15160 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15161 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15162 $as_echo_n "(cached) " >&6
15163 else
15164 lt_cv_prog_compiler_pic_works=no
15165 ac_outfile=conftest.$ac_objext
15166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15167 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15168 # Insert the option either (1) after the last *FLAGS variable, or
15169 # (2) before a word containing "conftest.", or (3) at the end.
15170 # Note that $ac_compile itself does not contain backslashes and begins
15171 # with a dollar sign (not a hyphen), so the echo should work correctly.
15172 # The option is referenced via a variable to avoid confusing sed.
15173 lt_compile=`echo "$ac_compile" | $SED \
15174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15176 -e 's:$: $lt_compiler_flag:'`
15177 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15178 (eval "$lt_compile" 2>conftest.err)
15179 ac_status=$?
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 if (exit $ac_status) && test -s "$ac_outfile"; then
15183 # The compiler can only warn and ignore the option if not recognized
15184 # So say no if there are warnings other than the usual output.
15185 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15187 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15188 lt_cv_prog_compiler_pic_works=yes
15191 $RM conftest*
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15195 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15197 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15198 case $lt_prog_compiler_pic in
15199 "" | " "*) ;;
15200 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15201 esac
15202 else
15203 lt_prog_compiler_pic=
15204 lt_prog_compiler_can_build_shared=no
15215 # Check to make sure the static flag actually works.
15217 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15219 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15220 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15221 $as_echo_n "(cached) " >&6
15222 else
15223 lt_cv_prog_compiler_static_works=no
15224 save_LDFLAGS="$LDFLAGS"
15225 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15226 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15227 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15228 # The linker can only warn and ignore the option if not recognized
15229 # So say no if there are warnings
15230 if test -s conftest.err; then
15231 # Append any errors to the config.log.
15232 cat conftest.err 1>&5
15233 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15234 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15235 if diff conftest.exp conftest.er2 >/dev/null; then
15236 lt_cv_prog_compiler_static_works=yes
15238 else
15239 lt_cv_prog_compiler_static_works=yes
15242 $RM -r conftest*
15243 LDFLAGS="$save_LDFLAGS"
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15247 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15249 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15251 else
15252 lt_prog_compiler_static=
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15262 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15263 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15264 $as_echo_n "(cached) " >&6
15265 else
15266 lt_cv_prog_compiler_c_o=no
15267 $RM -r conftest 2>/dev/null
15268 mkdir conftest
15269 cd conftest
15270 mkdir out
15271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15273 lt_compiler_flag="-o out/conftest2.$ac_objext"
15274 # Insert the option either (1) after the last *FLAGS variable, or
15275 # (2) before a word containing "conftest.", or (3) at the end.
15276 # Note that $ac_compile itself does not contain backslashes and begins
15277 # with a dollar sign (not a hyphen), so the echo should work correctly.
15278 lt_compile=`echo "$ac_compile" | $SED \
15279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15281 -e 's:$: $lt_compiler_flag:'`
15282 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15283 (eval "$lt_compile" 2>out/conftest.err)
15284 ac_status=$?
15285 cat out/conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15288 then
15289 # The compiler can only warn and ignore the option if not recognized
15290 # So say no if there are warnings
15291 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15292 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15293 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15294 lt_cv_prog_compiler_c_o=yes
15297 chmod u+w . 2>&5
15298 $RM conftest*
15299 # SGI C++ compiler will create directory out/ii_files/ for
15300 # template instantiation
15301 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15302 $RM out/* && rmdir out
15303 cd ..
15304 $RM -r conftest
15305 $RM conftest*
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15309 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15317 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15318 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15319 $as_echo_n "(cached) " >&6
15320 else
15321 lt_cv_prog_compiler_c_o=no
15322 $RM -r conftest 2>/dev/null
15323 mkdir conftest
15324 cd conftest
15325 mkdir out
15326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15328 lt_compiler_flag="-o out/conftest2.$ac_objext"
15329 # Insert the option either (1) after the last *FLAGS variable, or
15330 # (2) before a word containing "conftest.", or (3) at the end.
15331 # Note that $ac_compile itself does not contain backslashes and begins
15332 # with a dollar sign (not a hyphen), so the echo should work correctly.
15333 lt_compile=`echo "$ac_compile" | $SED \
15334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15336 -e 's:$: $lt_compiler_flag:'`
15337 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15338 (eval "$lt_compile" 2>out/conftest.err)
15339 ac_status=$?
15340 cat out/conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15343 then
15344 # The compiler can only warn and ignore the option if not recognized
15345 # So say no if there are warnings
15346 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15347 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15348 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15349 lt_cv_prog_compiler_c_o=yes
15352 chmod u+w . 2>&5
15353 $RM conftest*
15354 # SGI C++ compiler will create directory out/ii_files/ for
15355 # template instantiation
15356 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15357 $RM out/* && rmdir out
15358 cd ..
15359 $RM -r conftest
15360 $RM conftest*
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15364 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15369 hard_links="nottested"
15370 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15371 # do not overwrite the value of need_locks provided by the user
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15373 $as_echo_n "checking if we can lock with hard links... " >&6; }
15374 hard_links=yes
15375 $RM conftest*
15376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15377 touch conftest.a
15378 ln conftest.a conftest.b 2>&5 || hard_links=no
15379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15381 $as_echo "$hard_links" >&6; }
15382 if test "$hard_links" = no; then
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15384 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15385 need_locks=warn
15387 else
15388 need_locks=no
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15397 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15399 runpath_var=
15400 allow_undefined_flag=
15401 always_export_symbols=no
15402 archive_cmds=
15403 archive_expsym_cmds=
15404 compiler_needs_object=no
15405 enable_shared_with_static_runtimes=no
15406 export_dynamic_flag_spec=
15407 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15408 hardcode_automatic=no
15409 hardcode_direct=no
15410 hardcode_direct_absolute=no
15411 hardcode_libdir_flag_spec=
15412 hardcode_libdir_flag_spec_ld=
15413 hardcode_libdir_separator=
15414 hardcode_minus_L=no
15415 hardcode_shlibpath_var=unsupported
15416 inherit_rpath=no
15417 link_all_deplibs=unknown
15418 module_cmds=
15419 module_expsym_cmds=
15420 old_archive_from_new_cmds=
15421 old_archive_from_expsyms_cmds=
15422 thread_safe_flag_spec=
15423 whole_archive_flag_spec=
15424 # include_expsyms should be a list of space-separated symbols to be *always*
15425 # included in the symbol list
15426 include_expsyms=
15427 # exclude_expsyms can be an extended regexp of symbols to exclude
15428 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15429 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15430 # as well as any symbol that contains `d'.
15431 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15432 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15433 # platforms (ab)use it in PIC code, but their linkers get confused if
15434 # the symbol is explicitly referenced. Since portable code cannot
15435 # rely on this symbol name, it's probably fine to never include it in
15436 # preloaded symbol tables.
15437 # Exclude shared library initialization/finalization symbols.
15438 extract_expsyms_cmds=
15440 case $host_os in
15441 cygwin* | mingw* | pw32* | cegcc*)
15442 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15443 # When not using gcc, we currently assume that we are using
15444 # Microsoft Visual C++.
15445 if test "$GCC" != yes; then
15446 with_gnu_ld=no
15449 interix*)
15450 # we just hope/assume this is gcc and not c89 (= MSVC++)
15451 with_gnu_ld=yes
15453 openbsd*)
15454 with_gnu_ld=no
15456 esac
15458 ld_shlibs=yes
15460 # On some targets, GNU ld is compatible enough with the native linker
15461 # that we're better off using the native interface for both.
15462 lt_use_gnu_ld_interface=no
15463 if test "$with_gnu_ld" = yes; then
15464 case $host_os in
15465 aix*)
15466 # The AIX port of GNU ld has always aspired to compatibility
15467 # with the native linker. However, as the warning in the GNU ld
15468 # block says, versions before 2.19.5* couldn't really create working
15469 # shared libraries, regardless of the interface used.
15470 case `$LD -v 2>&1` in
15471 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15472 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15473 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15475 lt_use_gnu_ld_interface=yes
15477 esac
15480 lt_use_gnu_ld_interface=yes
15482 esac
15485 if test "$lt_use_gnu_ld_interface" = yes; then
15486 # If archive_cmds runs LD, not CC, wlarc should be empty
15487 wlarc='${wl}'
15489 # Set some defaults for GNU ld with shared library support. These
15490 # are reset later if shared libraries are not supported. Putting them
15491 # here allows them to be overridden if necessary.
15492 runpath_var=LD_RUN_PATH
15493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15494 export_dynamic_flag_spec='${wl}--export-dynamic'
15495 # ancient GNU ld didn't support --whole-archive et. al.
15496 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15497 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15498 else
15499 whole_archive_flag_spec=
15501 supports_anon_versioning=no
15502 case `$LD -v 2>&1` in
15503 *GNU\ gold*) supports_anon_versioning=yes ;;
15504 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15505 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15506 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15507 *\ 2.11.*) ;; # other 2.11 versions
15508 *) supports_anon_versioning=yes ;;
15509 esac
15511 # See if GNU ld supports shared libraries.
15512 case $host_os in
15513 aix[3-9]*)
15514 # On AIX/PPC, the GNU linker is very broken
15515 if test "$host_cpu" != ia64; then
15516 ld_shlibs=no
15517 cat <<_LT_EOF 1>&2
15519 *** Warning: the GNU linker, at least up to release 2.19, is reported
15520 *** to be unable to reliably create shared libraries on AIX.
15521 *** Therefore, libtool is disabling shared libraries support. If you
15522 *** really care for shared libraries, you may want to install binutils
15523 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15524 *** You will then need to restart the configuration process.
15526 _LT_EOF
15530 amigaos*)
15531 case $host_cpu in
15532 powerpc)
15533 # see comment about AmigaOS4 .so support
15534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15535 archive_expsym_cmds=''
15537 m68k)
15538 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)'
15539 hardcode_libdir_flag_spec='-L$libdir'
15540 hardcode_minus_L=yes
15542 esac
15545 beos*)
15546 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15547 allow_undefined_flag=unsupported
15548 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15549 # support --undefined. This deserves some investigation. FIXME
15550 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15551 else
15552 ld_shlibs=no
15556 cygwin* | mingw* | pw32* | cegcc*)
15557 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15558 # as there is no search path for DLLs.
15559 hardcode_libdir_flag_spec='-L$libdir'
15560 export_dynamic_flag_spec='${wl}--export-all-symbols'
15561 allow_undefined_flag=unsupported
15562 always_export_symbols=no
15563 enable_shared_with_static_runtimes=yes
15564 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15566 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15568 # If the export-symbols file already is a .def file (1st line
15569 # is EXPORTS), use it as is; otherwise, prepend...
15570 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15571 cp $export_symbols $output_objdir/$soname.def;
15572 else
15573 echo EXPORTS > $output_objdir/$soname.def;
15574 cat $export_symbols >> $output_objdir/$soname.def;
15576 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15577 else
15578 ld_shlibs=no
15582 haiku*)
15583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15584 link_all_deplibs=yes
15587 interix[3-9]*)
15588 hardcode_direct=no
15589 hardcode_shlibpath_var=no
15590 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15591 export_dynamic_flag_spec='${wl}-E'
15592 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15593 # Instead, shared libraries are loaded at an image base (0x10000000 by
15594 # default) and relocated if they conflict, which is a slow very memory
15595 # consuming and fragmenting process. To avoid this, we pick a random,
15596 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15597 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15598 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15599 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'
15602 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15603 tmp_diet=no
15604 if test "$host_os" = linux-dietlibc; then
15605 case $cc_basename in
15606 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15607 esac
15609 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15610 && test "$tmp_diet" = no
15611 then
15612 tmp_addflag=
15613 tmp_sharedflag='-shared'
15614 case $cc_basename,$host_cpu in
15615 pgcc*) # Portland Group C compiler
15616 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'
15617 tmp_addflag=' $pic_flag'
15619 pgf77* | pgf90* | pgf95* | pgfortran*)
15620 # Portland Group f77 and f90 compilers
15621 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'
15622 tmp_addflag=' $pic_flag -Mnomain' ;;
15623 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15624 tmp_addflag=' -i_dynamic' ;;
15625 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15626 tmp_addflag=' -i_dynamic -nofor_main' ;;
15627 ifc* | ifort*) # Intel Fortran compiler
15628 tmp_addflag=' -nofor_main' ;;
15629 lf95*) # Lahey Fortran 8.1
15630 whole_archive_flag_spec=
15631 tmp_sharedflag='--shared' ;;
15632 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15633 tmp_sharedflag='-qmkshrobj'
15634 tmp_addflag= ;;
15635 nvcc*) # Cuda Compiler Driver 2.2
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 compiler_needs_object=yes
15639 esac
15640 case `$CC -V 2>&1 | sed 5q` in
15641 *Sun\ C*) # Sun C 5.9
15642 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'
15643 compiler_needs_object=yes
15644 tmp_sharedflag='-G' ;;
15645 *Sun\ F*) # Sun Fortran 8.3
15646 tmp_sharedflag='-G' ;;
15647 esac
15648 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15650 if test "x$supports_anon_versioning" = xyes; then
15651 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15652 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15653 echo "local: *; };" >> $output_objdir/$libname.ver~
15654 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15657 case $cc_basename in
15658 xlf* | bgf* | bgxlf* | mpixlf*)
15659 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15660 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15661 hardcode_libdir_flag_spec=
15662 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15663 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15664 if test "x$supports_anon_versioning" = xyes; then
15665 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15666 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15667 echo "local: *; };" >> $output_objdir/$libname.ver~
15668 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15671 esac
15672 else
15673 ld_shlibs=no
15677 netbsd*)
15678 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15679 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15680 wlarc=
15681 else
15682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15683 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15687 solaris*)
15688 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15689 ld_shlibs=no
15690 cat <<_LT_EOF 1>&2
15692 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15693 *** create shared libraries on Solaris systems. Therefore, libtool
15694 *** is disabling shared libraries support. We urge you to upgrade GNU
15695 *** binutils to release 2.9.1 or newer. Another option is to modify
15696 *** your PATH or compiler configuration so that the native linker is
15697 *** used, and then restart.
15699 _LT_EOF
15700 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15702 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15703 else
15704 ld_shlibs=no
15708 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15709 case `$LD -v 2>&1` in
15710 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15711 ld_shlibs=no
15712 cat <<_LT_EOF 1>&2
15714 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15715 *** reliably create shared libraries on SCO systems. Therefore, libtool
15716 *** is disabling shared libraries support. We urge you to upgrade GNU
15717 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15718 *** your PATH or compiler configuration so that the native linker is
15719 *** used, and then restart.
15721 _LT_EOF
15724 # For security reasons, it is highly recommended that you always
15725 # use absolute paths for naming shared libraries, and exclude the
15726 # DT_RUNPATH tag from executables and libraries. But doing so
15727 # requires that you compile everything twice, which is a pain.
15728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15732 else
15733 ld_shlibs=no
15736 esac
15739 sunos4*)
15740 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15741 wlarc=
15742 hardcode_direct=yes
15743 hardcode_shlibpath_var=no
15747 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15749 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15750 else
15751 ld_shlibs=no
15754 esac
15756 if test "$ld_shlibs" = no; then
15757 runpath_var=
15758 hardcode_libdir_flag_spec=
15759 export_dynamic_flag_spec=
15760 whole_archive_flag_spec=
15762 else
15763 # PORTME fill in a description of your system's linker (not GNU ld)
15764 case $host_os in
15765 aix3*)
15766 allow_undefined_flag=unsupported
15767 always_export_symbols=yes
15768 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'
15769 # Note: this linker hardcodes the directories in LIBPATH if there
15770 # are no directories specified by -L.
15771 hardcode_minus_L=yes
15772 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15773 # Neither direct hardcoding nor static linking is supported with a
15774 # broken collect2.
15775 hardcode_direct=unsupported
15779 aix[4-9]*)
15780 if test "$host_cpu" = ia64; then
15781 # On IA64, the linker does run time linking by default, so we don't
15782 # have to do anything special.
15783 aix_use_runtimelinking=no
15784 exp_sym_flag='-Bexport'
15785 no_entry_flag=""
15786 else
15787 # If we're using GNU nm, then we don't want the "-C" option.
15788 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15789 # Also, AIX nm treats weak defined symbols like other global
15790 # defined symbols, whereas GNU nm marks them as "W".
15791 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15792 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'
15793 else
15794 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'
15796 aix_use_runtimelinking=no
15798 # Test if we are trying to use run time linking or normal
15799 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15800 # need to do runtime linking.
15801 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15802 for ld_flag in $LDFLAGS; do
15803 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15804 aix_use_runtimelinking=yes
15805 break
15807 done
15809 esac
15811 exp_sym_flag='-bexport'
15812 no_entry_flag='-bnoentry'
15815 # When large executables or shared objects are built, AIX ld can
15816 # have problems creating the table of contents. If linking a library
15817 # or program results in "error TOC overflow" add -mminimal-toc to
15818 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15819 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15821 archive_cmds=''
15822 hardcode_direct=yes
15823 hardcode_direct_absolute=yes
15824 hardcode_libdir_separator=':'
15825 link_all_deplibs=yes
15826 file_list_spec='${wl}-f,'
15828 if test "$GCC" = yes; then
15829 case $host_os in aix4.[012]|aix4.[012].*)
15830 # We only want to do this on AIX 4.2 and lower, the check
15831 # below for broken collect2 doesn't work under 4.3+
15832 collect2name=`${CC} -print-prog-name=collect2`
15833 if test -f "$collect2name" &&
15834 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15835 then
15836 # We have reworked collect2
15838 else
15839 # We have old collect2
15840 hardcode_direct=unsupported
15841 # It fails to find uninstalled libraries when the uninstalled
15842 # path is not listed in the libpath. Setting hardcode_minus_L
15843 # to unsupported forces relinking
15844 hardcode_minus_L=yes
15845 hardcode_libdir_flag_spec='-L$libdir'
15846 hardcode_libdir_separator=
15849 esac
15850 shared_flag='-shared'
15851 if test "$aix_use_runtimelinking" = yes; then
15852 shared_flag="$shared_flag "'${wl}-G'
15854 else
15855 # not using gcc
15856 if test "$host_cpu" = ia64; then
15857 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15858 # chokes on -Wl,-G. The following line is correct:
15859 shared_flag='-G'
15860 else
15861 if test "$aix_use_runtimelinking" = yes; then
15862 shared_flag='${wl}-G'
15863 else
15864 shared_flag='${wl}-bM:SRE'
15869 export_dynamic_flag_spec='${wl}-bexpall'
15870 # It seems that -bexpall does not export symbols beginning with
15871 # underscore (_), so it is better to generate a list of symbols to export.
15872 always_export_symbols=yes
15873 if test "$aix_use_runtimelinking" = yes; then
15874 # Warning - without using the other runtime loading flags (-brtl),
15875 # -berok will link without error, but may produce a broken library.
15876 allow_undefined_flag='-berok'
15877 # Determine the default libpath from the value encoded in an
15878 # empty executable.
15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h. */
15883 main ()
15887 return 0;
15889 _ACEOF
15890 if ac_fn_c_try_link "$LINENO"; then :
15892 lt_aix_libpath_sed='
15893 /Import File Strings/,/^$/ {
15894 /^0/ {
15895 s/^0 *\(.*\)$/\1/
15899 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15900 # Check for a 64-bit object if we didn't find anything.
15901 if test -z "$aix_libpath"; then
15902 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15905 rm -f core conftest.err conftest.$ac_objext \
15906 conftest$ac_exeext conftest.$ac_ext
15907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15909 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15910 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"
15911 else
15912 if test "$host_cpu" = ia64; then
15913 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15914 allow_undefined_flag="-z nodefs"
15915 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"
15916 else
15917 # Determine the default libpath from the value encoded in an
15918 # empty executable.
15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h. */
15923 main ()
15927 return 0;
15929 _ACEOF
15930 if ac_fn_c_try_link "$LINENO"; then :
15932 lt_aix_libpath_sed='
15933 /Import File Strings/,/^$/ {
15934 /^0/ {
15935 s/^0 *\(.*\)$/\1/
15939 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15940 # Check for a 64-bit object if we didn't find anything.
15941 if test -z "$aix_libpath"; then
15942 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15945 rm -f core conftest.err conftest.$ac_objext \
15946 conftest$ac_exeext conftest.$ac_ext
15947 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15949 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15950 # Warning - without using the other run time loading flags,
15951 # -berok will link without error, but may produce a broken library.
15952 no_undefined_flag=' ${wl}-bernotok'
15953 allow_undefined_flag=' ${wl}-berok'
15954 if test "$with_gnu_ld" = yes; then
15955 # We only use this code for GNU lds that support --whole-archive.
15956 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15957 else
15958 # Exported symbols can be pulled into shared objects from archives
15959 whole_archive_flag_spec='$convenience'
15961 archive_cmds_need_lc=yes
15962 # This is similar to how AIX traditionally builds its shared libraries.
15963 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'
15968 amigaos*)
15969 case $host_cpu in
15970 powerpc)
15971 # see comment about AmigaOS4 .so support
15972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15973 archive_expsym_cmds=''
15975 m68k)
15976 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)'
15977 hardcode_libdir_flag_spec='-L$libdir'
15978 hardcode_minus_L=yes
15980 esac
15983 bsdi[45]*)
15984 export_dynamic_flag_spec=-rdynamic
15987 cygwin* | mingw* | pw32* | cegcc*)
15988 # When not using gcc, we currently assume that we are using
15989 # Microsoft Visual C++.
15990 # hardcode_libdir_flag_spec is actually meaningless, as there is
15991 # no search path for DLLs.
15992 hardcode_libdir_flag_spec=' '
15993 allow_undefined_flag=unsupported
15994 # Tell ltmain to make .lib files, not .a files.
15995 libext=lib
15996 # Tell ltmain to make .dll files, not .so files.
15997 shrext_cmds=".dll"
15998 # FIXME: Setting linknames here is a bad hack.
15999 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16000 # The linker will automatically build a .lib file if we build a DLL.
16001 old_archive_from_new_cmds='true'
16002 # FIXME: Should let the user specify the lib program.
16003 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16004 fix_srcfile_path='`cygpath -w "$srcfile"`'
16005 enable_shared_with_static_runtimes=yes
16008 darwin* | rhapsody*)
16011 archive_cmds_need_lc=no
16012 hardcode_direct=no
16013 hardcode_automatic=yes
16014 hardcode_shlibpath_var=unsupported
16015 if test "$lt_cv_ld_force_load" = "yes"; then
16016 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\"`'
16017 else
16018 whole_archive_flag_spec=''
16020 link_all_deplibs=yes
16021 allow_undefined_flag="$_lt_dar_allow_undefined"
16022 case $cc_basename in
16023 ifort*) _lt_dar_can_shared=yes ;;
16024 *) _lt_dar_can_shared=$GCC ;;
16025 esac
16026 if test "$_lt_dar_can_shared" = "yes"; then
16027 output_verbose_link_cmd=func_echo_all
16028 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16029 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16030 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}"
16031 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}"
16033 else
16034 ld_shlibs=no
16039 dgux*)
16040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16041 hardcode_libdir_flag_spec='-L$libdir'
16042 hardcode_shlibpath_var=no
16045 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16046 # support. Future versions do this automatically, but an explicit c++rt0.o
16047 # does not break anything, and helps significantly (at the cost of a little
16048 # extra space).
16049 freebsd2.2*)
16050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16051 hardcode_libdir_flag_spec='-R$libdir'
16052 hardcode_direct=yes
16053 hardcode_shlibpath_var=no
16056 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16057 freebsd2.*)
16058 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16059 hardcode_direct=yes
16060 hardcode_minus_L=yes
16061 hardcode_shlibpath_var=no
16064 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16065 freebsd* | dragonfly*)
16066 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16067 hardcode_libdir_flag_spec='-R$libdir'
16068 hardcode_direct=yes
16069 hardcode_shlibpath_var=no
16072 hpux9*)
16073 if test "$GCC" = yes; then
16074 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'
16075 else
16076 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'
16078 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16079 hardcode_libdir_separator=:
16080 hardcode_direct=yes
16082 # hardcode_minus_L: Not really in the search PATH,
16083 # but as the default location of the library.
16084 hardcode_minus_L=yes
16085 export_dynamic_flag_spec='${wl}-E'
16088 hpux10*)
16089 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16090 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16091 else
16092 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16094 if test "$with_gnu_ld" = no; then
16095 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16096 hardcode_libdir_flag_spec_ld='+b $libdir'
16097 hardcode_libdir_separator=:
16098 hardcode_direct=yes
16099 hardcode_direct_absolute=yes
16100 export_dynamic_flag_spec='${wl}-E'
16101 # hardcode_minus_L: Not really in the search PATH,
16102 # but as the default location of the library.
16103 hardcode_minus_L=yes
16107 hpux11*)
16108 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16109 case $host_cpu in
16110 hppa*64*)
16111 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16113 ia64*)
16114 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16117 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16119 esac
16120 else
16121 case $host_cpu in
16122 hppa*64*)
16123 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16125 ia64*)
16126 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16130 # Older versions of the 11.00 compiler do not understand -b yet
16131 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16133 $as_echo_n "checking if $CC understands -b... " >&6; }
16134 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16135 $as_echo_n "(cached) " >&6
16136 else
16137 lt_cv_prog_compiler__b=no
16138 save_LDFLAGS="$LDFLAGS"
16139 LDFLAGS="$LDFLAGS -b"
16140 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16142 # The linker can only warn and ignore the option if not recognized
16143 # So say no if there are warnings
16144 if test -s conftest.err; then
16145 # Append any errors to the config.log.
16146 cat conftest.err 1>&5
16147 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16149 if diff conftest.exp conftest.er2 >/dev/null; then
16150 lt_cv_prog_compiler__b=yes
16152 else
16153 lt_cv_prog_compiler__b=yes
16156 $RM -r conftest*
16157 LDFLAGS="$save_LDFLAGS"
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16161 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16163 if test x"$lt_cv_prog_compiler__b" = xyes; then
16164 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16165 else
16166 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16170 esac
16172 if test "$with_gnu_ld" = no; then
16173 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16174 hardcode_libdir_separator=:
16176 case $host_cpu in
16177 hppa*64*|ia64*)
16178 hardcode_direct=no
16179 hardcode_shlibpath_var=no
16182 hardcode_direct=yes
16183 hardcode_direct_absolute=yes
16184 export_dynamic_flag_spec='${wl}-E'
16186 # hardcode_minus_L: Not really in the search PATH,
16187 # but as the default location of the library.
16188 hardcode_minus_L=yes
16190 esac
16194 irix5* | irix6* | nonstopux*)
16195 if test "$GCC" = yes; then
16196 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'
16197 # Try to use the -exported_symbol ld option, if it does not
16198 # work, assume that -exports_file does not work either and
16199 # implicitly export all symbols.
16200 save_LDFLAGS="$LDFLAGS"
16201 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h. */
16204 int foo(void) {}
16205 _ACEOF
16206 if ac_fn_c_try_link "$LINENO"; then :
16207 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'
16210 rm -f core conftest.err conftest.$ac_objext \
16211 conftest$ac_exeext conftest.$ac_ext
16212 LDFLAGS="$save_LDFLAGS"
16213 else
16214 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'
16215 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'
16217 archive_cmds_need_lc='no'
16218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16219 hardcode_libdir_separator=:
16220 inherit_rpath=yes
16221 link_all_deplibs=yes
16224 netbsd*)
16225 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16227 else
16228 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16230 hardcode_libdir_flag_spec='-R$libdir'
16231 hardcode_direct=yes
16232 hardcode_shlibpath_var=no
16235 newsos6)
16236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16237 hardcode_direct=yes
16238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16239 hardcode_libdir_separator=:
16240 hardcode_shlibpath_var=no
16243 *nto* | *qnx*)
16246 openbsd*)
16247 if test -f /usr/libexec/ld.so; then
16248 hardcode_direct=yes
16249 hardcode_shlibpath_var=no
16250 hardcode_direct_absolute=yes
16251 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16252 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16253 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16254 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16255 export_dynamic_flag_spec='${wl}-E'
16256 else
16257 case $host_os in
16258 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16260 hardcode_libdir_flag_spec='-R$libdir'
16263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16264 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16266 esac
16268 else
16269 ld_shlibs=no
16273 os2*)
16274 hardcode_libdir_flag_spec='-L$libdir'
16275 hardcode_minus_L=yes
16276 allow_undefined_flag=unsupported
16277 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'
16278 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16281 osf3*)
16282 if test "$GCC" = yes; then
16283 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16284 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'
16285 else
16286 allow_undefined_flag=' -expect_unresolved \*'
16287 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'
16289 archive_cmds_need_lc='no'
16290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16291 hardcode_libdir_separator=:
16294 osf4* | osf5*) # as osf3* with the addition of -msym flag
16295 if test "$GCC" = yes; then
16296 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16297 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'
16298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16299 else
16300 allow_undefined_flag=' -expect_unresolved \*'
16301 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'
16302 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~
16303 $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'
16305 # Both c and cxx compiler support -rpath directly
16306 hardcode_libdir_flag_spec='-rpath $libdir'
16308 archive_cmds_need_lc='no'
16309 hardcode_libdir_separator=:
16312 solaris*)
16313 no_undefined_flag=' -z defs'
16314 if test "$GCC" = yes; then
16315 wlarc='${wl}'
16316 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16317 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16318 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16319 else
16320 case `$CC -V 2>&1` in
16321 *"Compilers 5.0"*)
16322 wlarc=''
16323 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16324 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16325 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16328 wlarc='${wl}'
16329 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16330 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16331 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16333 esac
16335 hardcode_libdir_flag_spec='-R$libdir'
16336 hardcode_shlibpath_var=no
16337 case $host_os in
16338 solaris2.[0-5] | solaris2.[0-5].*) ;;
16340 # The compiler driver will combine and reorder linker options,
16341 # but understands `-z linker_flag'. GCC discards it without `$wl',
16342 # but is careful enough not to reorder.
16343 # Supported since Solaris 2.6 (maybe 2.5.1?)
16344 if test "$GCC" = yes; then
16345 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16346 else
16347 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16350 esac
16351 link_all_deplibs=yes
16354 sunos4*)
16355 if test "x$host_vendor" = xsequent; then
16356 # Use $CC to link under sequent, because it throws in some extra .o
16357 # files that make .init and .fini sections work.
16358 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16359 else
16360 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16362 hardcode_libdir_flag_spec='-L$libdir'
16363 hardcode_direct=yes
16364 hardcode_minus_L=yes
16365 hardcode_shlibpath_var=no
16368 sysv4)
16369 case $host_vendor in
16370 sni)
16371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16372 hardcode_direct=yes # is this really true???
16374 siemens)
16375 ## LD is ld it makes a PLAMLIB
16376 ## CC just makes a GrossModule.
16377 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16378 reload_cmds='$CC -r -o $output$reload_objs'
16379 hardcode_direct=no
16381 motorola)
16382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16383 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16385 esac
16386 runpath_var='LD_RUN_PATH'
16387 hardcode_shlibpath_var=no
16390 sysv4.3*)
16391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16392 hardcode_shlibpath_var=no
16393 export_dynamic_flag_spec='-Bexport'
16396 sysv4*MP*)
16397 if test -d /usr/nec; then
16398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16399 hardcode_shlibpath_var=no
16400 runpath_var=LD_RUN_PATH
16401 hardcode_runpath_var=yes
16402 ld_shlibs=yes
16406 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16407 no_undefined_flag='${wl}-z,text'
16408 archive_cmds_need_lc=no
16409 hardcode_shlibpath_var=no
16410 runpath_var='LD_RUN_PATH'
16412 if test "$GCC" = yes; then
16413 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16414 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16415 else
16416 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16417 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16421 sysv5* | sco3.2v5* | sco5v6*)
16422 # Note: We can NOT use -z defs as we might desire, because we do not
16423 # link with -lc, and that would cause any symbols used from libc to
16424 # always be unresolved, which means just about no library would
16425 # ever link correctly. If we're not using GNU ld we use -z text
16426 # though, which does catch some bad symbols but isn't as heavy-handed
16427 # as -z defs.
16428 no_undefined_flag='${wl}-z,text'
16429 allow_undefined_flag='${wl}-z,nodefs'
16430 archive_cmds_need_lc=no
16431 hardcode_shlibpath_var=no
16432 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16433 hardcode_libdir_separator=':'
16434 link_all_deplibs=yes
16435 export_dynamic_flag_spec='${wl}-Bexport'
16436 runpath_var='LD_RUN_PATH'
16438 if test "$GCC" = yes; then
16439 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16440 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16441 else
16442 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16443 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16447 uts4*)
16448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16449 hardcode_libdir_flag_spec='-L$libdir'
16450 hardcode_shlibpath_var=no
16454 ld_shlibs=no
16456 esac
16458 if test x$host_vendor = xsni; then
16459 case $host in
16460 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16461 export_dynamic_flag_spec='${wl}-Blargedynsym'
16463 esac
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16468 $as_echo "$ld_shlibs" >&6; }
16469 test "$ld_shlibs" = no && can_build_shared=no
16471 with_gnu_ld=$with_gnu_ld
16488 # Do we need to explicitly link libc?
16490 case "x$archive_cmds_need_lc" in
16491 x|xyes)
16492 # Assume -lc should be added
16493 archive_cmds_need_lc=yes
16495 if test "$enable_shared" = yes && test "$GCC" = yes; then
16496 case $archive_cmds in
16497 *'~'*)
16498 # FIXME: we may have to deal with multi-command sequences.
16500 '$CC '*)
16501 # Test whether the compiler implicitly links with -lc since on some
16502 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16503 # to ld, don't add -lc before -lgcc.
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16505 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16506 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16507 $as_echo_n "(cached) " >&6
16508 else
16509 $RM conftest*
16510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16513 (eval $ac_compile) 2>&5
16514 ac_status=$?
16515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16516 test $ac_status = 0; } 2>conftest.err; then
16517 soname=conftest
16518 lib=conftest
16519 libobjs=conftest.$ac_objext
16520 deplibs=
16521 wl=$lt_prog_compiler_wl
16522 pic_flag=$lt_prog_compiler_pic
16523 compiler_flags=-v
16524 linker_flags=-v
16525 verstring=
16526 output_objdir=.
16527 libname=conftest
16528 lt_save_allow_undefined_flag=$allow_undefined_flag
16529 allow_undefined_flag=
16530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16531 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16532 ac_status=$?
16533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16534 test $ac_status = 0; }
16535 then
16536 lt_cv_archive_cmds_need_lc=no
16537 else
16538 lt_cv_archive_cmds_need_lc=yes
16540 allow_undefined_flag=$lt_save_allow_undefined_flag
16541 else
16542 cat conftest.err 1>&5
16544 $RM conftest*
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16548 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16549 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16551 esac
16554 esac
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16713 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16715 if test "$GCC" = yes; then
16716 case $host_os in
16717 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16718 *) lt_awk_arg="/^libraries:/" ;;
16719 esac
16720 case $host_os in
16721 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16722 *) lt_sed_strip_eq="s,=/,/,g" ;;
16723 esac
16724 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16725 case $lt_search_path_spec in
16726 *\;*)
16727 # if the path contains ";" then we assume it to be the separator
16728 # otherwise default to the standard path separator (i.e. ":") - it is
16729 # assumed that no part of a normal pathname contains ";" but that should
16730 # okay in the real world where ";" in dirpaths is itself problematic.
16731 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16734 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16736 esac
16737 # Ok, now we have the path, separated by spaces, we can step through it
16738 # and add multilib dir if necessary.
16739 lt_tmp_lt_search_path_spec=
16740 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16741 for lt_sys_path in $lt_search_path_spec; do
16742 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16743 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16744 else
16745 test -d "$lt_sys_path" && \
16746 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16748 done
16749 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16750 BEGIN {RS=" "; FS="/|\n";} {
16751 lt_foo="";
16752 lt_count=0;
16753 for (lt_i = NF; lt_i > 0; lt_i--) {
16754 if ($lt_i != "" && $lt_i != ".") {
16755 if ($lt_i == "..") {
16756 lt_count++;
16757 } else {
16758 if (lt_count == 0) {
16759 lt_foo="/" $lt_i lt_foo;
16760 } else {
16761 lt_count--;
16766 if (lt_foo != "") { lt_freq[lt_foo]++; }
16767 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16769 # AWK program above erroneously prepends '/' to C:/dos/paths
16770 # for these hosts.
16771 case $host_os in
16772 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16773 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16774 esac
16775 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16776 else
16777 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16779 library_names_spec=
16780 libname_spec='lib$name'
16781 soname_spec=
16782 shrext_cmds=".so"
16783 postinstall_cmds=
16784 postuninstall_cmds=
16785 finish_cmds=
16786 finish_eval=
16787 shlibpath_var=
16788 shlibpath_overrides_runpath=unknown
16789 version_type=none
16790 dynamic_linker="$host_os ld.so"
16791 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16792 need_lib_prefix=unknown
16793 hardcode_into_libs=no
16795 # when you set need_version to no, make sure it does not cause -set_version
16796 # flags to be left without arguments
16797 need_version=unknown
16799 case $host_os in
16800 aix3*)
16801 version_type=linux
16802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16803 shlibpath_var=LIBPATH
16805 # AIX 3 has no versioning support, so we append a major version to the name.
16806 soname_spec='${libname}${release}${shared_ext}$major'
16809 aix[4-9]*)
16810 version_type=linux
16811 need_lib_prefix=no
16812 need_version=no
16813 hardcode_into_libs=yes
16814 if test "$host_cpu" = ia64; then
16815 # AIX 5 supports IA64
16816 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16817 shlibpath_var=LD_LIBRARY_PATH
16818 else
16819 # With GCC up to 2.95.x, collect2 would create an import file
16820 # for dependence libraries. The import file would start with
16821 # the line `#! .'. This would cause the generated library to
16822 # depend on `.', always an invalid library. This was fixed in
16823 # development snapshots of GCC prior to 3.0.
16824 case $host_os in
16825 aix4 | aix4.[01] | aix4.[01].*)
16826 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16827 echo ' yes '
16828 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16830 else
16831 can_build_shared=no
16834 esac
16835 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16836 # soname into executable. Probably we can add versioning support to
16837 # collect2, so additional links can be useful in future.
16838 if test "$aix_use_runtimelinking" = yes; then
16839 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16840 # instead of lib<name>.a to let people know that these are not
16841 # typical AIX shared libraries.
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843 else
16844 # We preserve .a as extension for shared libraries through AIX4.2
16845 # and later when we are not doing run time linking.
16846 library_names_spec='${libname}${release}.a $libname.a'
16847 soname_spec='${libname}${release}${shared_ext}$major'
16849 shlibpath_var=LIBPATH
16853 amigaos*)
16854 case $host_cpu in
16855 powerpc)
16856 # Since July 2007 AmigaOS4 officially supports .so libraries.
16857 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860 m68k)
16861 library_names_spec='$libname.ixlibrary $libname.a'
16862 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16863 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'
16865 esac
16868 beos*)
16869 library_names_spec='${libname}${shared_ext}'
16870 dynamic_linker="$host_os ld.so"
16871 shlibpath_var=LIBRARY_PATH
16874 bsdi[45]*)
16875 version_type=linux
16876 need_version=no
16877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16878 soname_spec='${libname}${release}${shared_ext}$major'
16879 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16880 shlibpath_var=LD_LIBRARY_PATH
16881 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16882 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16883 # the default ld.so.conf also contains /usr/contrib/lib and
16884 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16885 # libtool to hard-code these into programs
16888 cygwin* | mingw* | pw32* | cegcc*)
16889 version_type=windows
16890 shrext_cmds=".dll"
16891 need_version=no
16892 need_lib_prefix=no
16894 case $GCC,$host_os in
16895 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16896 library_names_spec='$libname.dll.a'
16897 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16898 postinstall_cmds='base_file=`basename \${file}`~
16899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16900 dldir=$destdir/`dirname \$dlpath`~
16901 test -d \$dldir || mkdir -p \$dldir~
16902 $install_prog $dir/$dlname \$dldir/$dlname~
16903 chmod a+x \$dldir/$dlname~
16904 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16905 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16907 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16908 dlpath=$dir/\$dldll~
16909 $RM \$dlpath'
16910 shlibpath_overrides_runpath=yes
16912 case $host_os in
16913 cygwin*)
16914 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16915 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16917 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16919 mingw* | cegcc*)
16920 # MinGW DLLs use traditional 'lib' prefix
16921 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16923 pw32*)
16924 # pw32 DLLs use 'pw' prefix rather than 'lib'
16925 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16927 esac
16931 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16933 esac
16934 dynamic_linker='Win32 ld.exe'
16935 # FIXME: first we should search . and the directory the executable is in
16936 shlibpath_var=PATH
16939 darwin* | rhapsody*)
16940 dynamic_linker="$host_os dyld"
16941 version_type=darwin
16942 need_lib_prefix=no
16943 need_version=no
16944 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16945 soname_spec='${libname}${release}${major}$shared_ext'
16946 shlibpath_overrides_runpath=yes
16947 shlibpath_var=DYLD_LIBRARY_PATH
16948 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16950 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16951 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16954 dgux*)
16955 version_type=linux
16956 need_lib_prefix=no
16957 need_version=no
16958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16959 soname_spec='${libname}${release}${shared_ext}$major'
16960 shlibpath_var=LD_LIBRARY_PATH
16963 freebsd* | dragonfly*)
16964 # DragonFly does not have aout. When/if they implement a new
16965 # versioning mechanism, adjust this.
16966 if test -x /usr/bin/objformat; then
16967 objformat=`/usr/bin/objformat`
16968 else
16969 case $host_os in
16970 freebsd[23].*) objformat=aout ;;
16971 *) objformat=elf ;;
16972 esac
16974 version_type=freebsd-$objformat
16975 case $version_type in
16976 freebsd-elf*)
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16978 need_version=no
16979 need_lib_prefix=no
16981 freebsd-*)
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16983 need_version=yes
16985 esac
16986 shlibpath_var=LD_LIBRARY_PATH
16987 case $host_os in
16988 freebsd2.*)
16989 shlibpath_overrides_runpath=yes
16991 freebsd3.[01]* | freebsdelf3.[01]*)
16992 shlibpath_overrides_runpath=yes
16993 hardcode_into_libs=yes
16995 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16996 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16997 shlibpath_overrides_runpath=no
16998 hardcode_into_libs=yes
17000 *) # from 4.6 on, and DragonFly
17001 shlibpath_overrides_runpath=yes
17002 hardcode_into_libs=yes
17004 esac
17007 gnu*)
17008 version_type=linux
17009 need_lib_prefix=no
17010 need_version=no
17011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17012 soname_spec='${libname}${release}${shared_ext}$major'
17013 shlibpath_var=LD_LIBRARY_PATH
17014 hardcode_into_libs=yes
17017 haiku*)
17018 version_type=linux
17019 need_lib_prefix=no
17020 need_version=no
17021 dynamic_linker="$host_os runtime_loader"
17022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17023 soname_spec='${libname}${release}${shared_ext}$major'
17024 shlibpath_var=LIBRARY_PATH
17025 shlibpath_overrides_runpath=yes
17026 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17027 hardcode_into_libs=yes
17030 hpux9* | hpux10* | hpux11*)
17031 # Give a soname corresponding to the major version so that dld.sl refuses to
17032 # link against other versions.
17033 version_type=sunos
17034 need_lib_prefix=no
17035 need_version=no
17036 case $host_cpu in
17037 ia64*)
17038 shrext_cmds='.so'
17039 hardcode_into_libs=yes
17040 dynamic_linker="$host_os dld.so"
17041 shlibpath_var=LD_LIBRARY_PATH
17042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17044 soname_spec='${libname}${release}${shared_ext}$major'
17045 if test "X$HPUX_IA64_MODE" = X32; then
17046 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17047 else
17048 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17052 hppa*64*)
17053 shrext_cmds='.sl'
17054 hardcode_into_libs=yes
17055 dynamic_linker="$host_os dld.sl"
17056 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17061 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17064 shrext_cmds='.sl'
17065 dynamic_linker="$host_os dld.sl"
17066 shlibpath_var=SHLIB_PATH
17067 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 soname_spec='${libname}${release}${shared_ext}$major'
17071 esac
17072 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17073 postinstall_cmds='chmod 555 $lib'
17074 # or fails outright, so override atomically:
17075 install_override_mode=555
17078 interix[3-9]*)
17079 version_type=linux
17080 need_lib_prefix=no
17081 need_version=no
17082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17083 soname_spec='${libname}${release}${shared_ext}$major'
17084 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17085 shlibpath_var=LD_LIBRARY_PATH
17086 shlibpath_overrides_runpath=no
17087 hardcode_into_libs=yes
17090 irix5* | irix6* | nonstopux*)
17091 case $host_os in
17092 nonstopux*) version_type=nonstopux ;;
17094 if test "$lt_cv_prog_gnu_ld" = yes; then
17095 version_type=linux
17096 else
17097 version_type=irix
17098 fi ;;
17099 esac
17100 need_lib_prefix=no
17101 need_version=no
17102 soname_spec='${libname}${release}${shared_ext}$major'
17103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17104 case $host_os in
17105 irix5* | nonstopux*)
17106 libsuff= shlibsuff=
17109 case $LD in # libtool.m4 will add one of these switches to LD
17110 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17111 libsuff= shlibsuff= libmagic=32-bit;;
17112 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17113 libsuff=32 shlibsuff=N32 libmagic=N32;;
17114 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17115 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17116 *) libsuff= shlibsuff= libmagic=never-match;;
17117 esac
17119 esac
17120 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17121 shlibpath_overrides_runpath=no
17122 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17123 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17124 hardcode_into_libs=yes
17127 # No shared lib support for Linux oldld, aout, or coff.
17128 linux*oldld* | linux*aout* | linux*coff*)
17129 dynamic_linker=no
17132 # This must be Linux ELF.
17133 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17134 version_type=linux
17135 need_lib_prefix=no
17136 need_version=no
17137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17138 soname_spec='${libname}${release}${shared_ext}$major'
17139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17140 shlibpath_var=LD_LIBRARY_PATH
17141 shlibpath_overrides_runpath=no
17143 # Some binutils ld are patched to set DT_RUNPATH
17144 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17145 $as_echo_n "(cached) " >&6
17146 else
17147 lt_cv_shlibpath_overrides_runpath=no
17148 save_LDFLAGS=$LDFLAGS
17149 save_libdir=$libdir
17150 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17151 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153 /* end confdefs.h. */
17156 main ()
17160 return 0;
17162 _ACEOF
17163 if ac_fn_c_try_link "$LINENO"; then :
17164 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17165 lt_cv_shlibpath_overrides_runpath=yes
17168 rm -f core conftest.err conftest.$ac_objext \
17169 conftest$ac_exeext conftest.$ac_ext
17170 LDFLAGS=$save_LDFLAGS
17171 libdir=$save_libdir
17175 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17177 # This implies no fast_install, which is unacceptable.
17178 # Some rework will be needed to allow for fast_install
17179 # before this can be enabled.
17180 hardcode_into_libs=yes
17182 # Append ld.so.conf contents to the search path
17183 if test -f /etc/ld.so.conf; then
17184 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' ' '`
17185 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17188 # We used to test for /lib/ld.so.1 and disable shared libraries on
17189 # powerpc, because MkLinux only supported shared libraries with the
17190 # GNU dynamic linker. Since this was broken with cross compilers,
17191 # most powerpc-linux boxes support dynamic linking these days and
17192 # people can always --disable-shared, the test was removed, and we
17193 # assume the GNU/Linux dynamic linker is in use.
17194 dynamic_linker='GNU/Linux ld.so'
17197 netbsd*)
17198 version_type=sunos
17199 need_lib_prefix=no
17200 need_version=no
17201 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17204 dynamic_linker='NetBSD (a.out) ld.so'
17205 else
17206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17207 soname_spec='${libname}${release}${shared_ext}$major'
17208 dynamic_linker='NetBSD ld.elf_so'
17210 shlibpath_var=LD_LIBRARY_PATH
17211 shlibpath_overrides_runpath=yes
17212 hardcode_into_libs=yes
17215 newsos6)
17216 version_type=linux
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17218 shlibpath_var=LD_LIBRARY_PATH
17219 shlibpath_overrides_runpath=yes
17222 *nto* | *qnx*)
17223 version_type=qnx
17224 need_lib_prefix=no
17225 need_version=no
17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227 soname_spec='${libname}${release}${shared_ext}$major'
17228 shlibpath_var=LD_LIBRARY_PATH
17229 shlibpath_overrides_runpath=no
17230 hardcode_into_libs=yes
17231 dynamic_linker='ldqnx.so'
17234 openbsd*)
17235 version_type=sunos
17236 sys_lib_dlsearch_path_spec="/usr/lib"
17237 need_lib_prefix=no
17238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17239 case $host_os in
17240 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17241 *) need_version=no ;;
17242 esac
17243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17245 shlibpath_var=LD_LIBRARY_PATH
17246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17247 case $host_os in
17248 openbsd2.[89] | openbsd2.[89].*)
17249 shlibpath_overrides_runpath=no
17252 shlibpath_overrides_runpath=yes
17254 esac
17255 else
17256 shlibpath_overrides_runpath=yes
17260 os2*)
17261 libname_spec='$name'
17262 shrext_cmds=".dll"
17263 need_lib_prefix=no
17264 library_names_spec='$libname${shared_ext} $libname.a'
17265 dynamic_linker='OS/2 ld.exe'
17266 shlibpath_var=LIBPATH
17269 osf3* | osf4* | osf5*)
17270 version_type=osf
17271 need_lib_prefix=no
17272 need_version=no
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275 shlibpath_var=LD_LIBRARY_PATH
17276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17277 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17280 rdos*)
17281 dynamic_linker=no
17284 solaris*)
17285 version_type=linux
17286 need_lib_prefix=no
17287 need_version=no
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289 soname_spec='${libname}${release}${shared_ext}$major'
17290 shlibpath_var=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath=yes
17292 hardcode_into_libs=yes
17293 # ldd complains unless libraries are executable
17294 postinstall_cmds='chmod +x $lib'
17297 sunos4*)
17298 version_type=sunos
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 shlibpath_overrides_runpath=yes
17303 if test "$with_gnu_ld" = yes; then
17304 need_lib_prefix=no
17306 need_version=yes
17309 sysv4 | sysv4.3*)
17310 version_type=linux
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 soname_spec='${libname}${release}${shared_ext}$major'
17313 shlibpath_var=LD_LIBRARY_PATH
17314 case $host_vendor in
17315 sni)
17316 shlibpath_overrides_runpath=no
17317 need_lib_prefix=no
17318 runpath_var=LD_RUN_PATH
17320 siemens)
17321 need_lib_prefix=no
17323 motorola)
17324 need_lib_prefix=no
17325 need_version=no
17326 shlibpath_overrides_runpath=no
17327 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17329 esac
17332 sysv4*MP*)
17333 if test -d /usr/nec ;then
17334 version_type=linux
17335 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17336 soname_spec='$libname${shared_ext}.$major'
17337 shlibpath_var=LD_LIBRARY_PATH
17341 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17342 version_type=freebsd-elf
17343 need_lib_prefix=no
17344 need_version=no
17345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17346 soname_spec='${libname}${release}${shared_ext}$major'
17347 shlibpath_var=LD_LIBRARY_PATH
17348 shlibpath_overrides_runpath=yes
17349 hardcode_into_libs=yes
17350 if test "$with_gnu_ld" = yes; then
17351 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17352 else
17353 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17354 case $host_os in
17355 sco3.2v5*)
17356 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17358 esac
17360 sys_lib_dlsearch_path_spec='/usr/lib'
17363 tpf*)
17364 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17365 version_type=linux
17366 need_lib_prefix=no
17367 need_version=no
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 shlibpath_var=LD_LIBRARY_PATH
17370 shlibpath_overrides_runpath=no
17371 hardcode_into_libs=yes
17374 uts4*)
17375 version_type=linux
17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 soname_spec='${libname}${release}${shared_ext}$major'
17378 shlibpath_var=LD_LIBRARY_PATH
17382 dynamic_linker=no
17384 esac
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17386 $as_echo "$dynamic_linker" >&6; }
17387 test "$dynamic_linker" = no && can_build_shared=no
17389 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17390 if test "$GCC" = yes; then
17391 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17394 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17395 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17397 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17398 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17493 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17494 hardcode_action=
17495 if test -n "$hardcode_libdir_flag_spec" ||
17496 test -n "$runpath_var" ||
17497 test "X$hardcode_automatic" = "Xyes" ; then
17499 # We can hardcode non-existent directories.
17500 if test "$hardcode_direct" != no &&
17501 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17502 # have to relink, otherwise we might link with an installed library
17503 # when we should be linking with a yet-to-be-installed one
17504 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17505 test "$hardcode_minus_L" != no; then
17506 # Linking always hardcodes the temporary library directory.
17507 hardcode_action=relink
17508 else
17509 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17510 hardcode_action=immediate
17512 else
17513 # We cannot hardcode anything, or else we can only hardcode existing
17514 # directories.
17515 hardcode_action=unsupported
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17518 $as_echo "$hardcode_action" >&6; }
17520 if test "$hardcode_action" = relink ||
17521 test "$inherit_rpath" = yes; then
17522 # Fast installation is not supported
17523 enable_fast_install=no
17524 elif test "$shlibpath_overrides_runpath" = yes ||
17525 test "$enable_shared" = no; then
17526 # Fast installation is not necessary
17527 enable_fast_install=needless
17535 if test "x$enable_dlopen" != xyes; then
17536 enable_dlopen=unknown
17537 enable_dlopen_self=unknown
17538 enable_dlopen_self_static=unknown
17539 else
17540 lt_cv_dlopen=no
17541 lt_cv_dlopen_libs=
17543 case $host_os in
17544 beos*)
17545 lt_cv_dlopen="load_add_on"
17546 lt_cv_dlopen_libs=
17547 lt_cv_dlopen_self=yes
17550 mingw* | pw32* | cegcc*)
17551 lt_cv_dlopen="LoadLibrary"
17552 lt_cv_dlopen_libs=
17555 cygwin*)
17556 lt_cv_dlopen="dlopen"
17557 lt_cv_dlopen_libs=
17560 darwin*)
17561 # if libdl is installed we need to link against it
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17563 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17564 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17565 $as_echo_n "(cached) " >&6
17566 else
17567 ac_check_lib_save_LIBS=$LIBS
17568 LIBS="-ldl $LIBS"
17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17572 /* Override any GCC internal prototype to avoid an error.
17573 Use char because int might match the return type of a GCC
17574 builtin and then its argument prototype would still apply. */
17575 #ifdef __cplusplus
17576 extern "C"
17577 #endif
17578 char dlopen ();
17580 main ()
17582 return dlopen ();
17584 return 0;
17586 _ACEOF
17587 if ac_fn_c_try_link "$LINENO"; then :
17588 ac_cv_lib_dl_dlopen=yes
17589 else
17590 ac_cv_lib_dl_dlopen=no
17592 rm -f core conftest.err conftest.$ac_objext \
17593 conftest$ac_exeext conftest.$ac_ext
17594 LIBS=$ac_check_lib_save_LIBS
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17597 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17598 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17600 else
17602 lt_cv_dlopen="dyld"
17603 lt_cv_dlopen_libs=
17604 lt_cv_dlopen_self=yes
17611 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17612 if test "x$ac_cv_func_shl_load" = x""yes; then :
17613 lt_cv_dlopen="shl_load"
17614 else
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17616 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17617 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17618 $as_echo_n "(cached) " >&6
17619 else
17620 ac_check_lib_save_LIBS=$LIBS
17621 LIBS="-ldld $LIBS"
17622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h. */
17625 /* Override any GCC internal prototype to avoid an error.
17626 Use char because int might match the return type of a GCC
17627 builtin and then its argument prototype would still apply. */
17628 #ifdef __cplusplus
17629 extern "C"
17630 #endif
17631 char shl_load ();
17633 main ()
17635 return shl_load ();
17637 return 0;
17639 _ACEOF
17640 if ac_fn_c_try_link "$LINENO"; then :
17641 ac_cv_lib_dld_shl_load=yes
17642 else
17643 ac_cv_lib_dld_shl_load=no
17645 rm -f core conftest.err conftest.$ac_objext \
17646 conftest$ac_exeext conftest.$ac_ext
17647 LIBS=$ac_check_lib_save_LIBS
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17650 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17651 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17652 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17653 else
17654 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17655 if test "x$ac_cv_func_dlopen" = x""yes; then :
17656 lt_cv_dlopen="dlopen"
17657 else
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17659 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17660 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17661 $as_echo_n "(cached) " >&6
17662 else
17663 ac_check_lib_save_LIBS=$LIBS
17664 LIBS="-ldl $LIBS"
17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h. */
17668 /* Override any GCC internal prototype to avoid an error.
17669 Use char because int might match the return type of a GCC
17670 builtin and then its argument prototype would still apply. */
17671 #ifdef __cplusplus
17672 extern "C"
17673 #endif
17674 char dlopen ();
17676 main ()
17678 return dlopen ();
17680 return 0;
17682 _ACEOF
17683 if ac_fn_c_try_link "$LINENO"; then :
17684 ac_cv_lib_dl_dlopen=yes
17685 else
17686 ac_cv_lib_dl_dlopen=no
17688 rm -f core conftest.err conftest.$ac_objext \
17689 conftest$ac_exeext conftest.$ac_ext
17690 LIBS=$ac_check_lib_save_LIBS
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17693 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17694 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17695 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17696 else
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17698 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17699 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17700 $as_echo_n "(cached) " >&6
17701 else
17702 ac_check_lib_save_LIBS=$LIBS
17703 LIBS="-lsvld $LIBS"
17704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h. */
17707 /* Override any GCC internal prototype to avoid an error.
17708 Use char because int might match the return type of a GCC
17709 builtin and then its argument prototype would still apply. */
17710 #ifdef __cplusplus
17711 extern "C"
17712 #endif
17713 char dlopen ();
17715 main ()
17717 return dlopen ();
17719 return 0;
17721 _ACEOF
17722 if ac_fn_c_try_link "$LINENO"; then :
17723 ac_cv_lib_svld_dlopen=yes
17724 else
17725 ac_cv_lib_svld_dlopen=no
17727 rm -f core conftest.err conftest.$ac_objext \
17728 conftest$ac_exeext conftest.$ac_ext
17729 LIBS=$ac_check_lib_save_LIBS
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17732 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17733 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17734 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17735 else
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17737 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17738 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17739 $as_echo_n "(cached) " >&6
17740 else
17741 ac_check_lib_save_LIBS=$LIBS
17742 LIBS="-ldld $LIBS"
17743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17746 /* Override any GCC internal prototype to avoid an error.
17747 Use char because int might match the return type of a GCC
17748 builtin and then its argument prototype would still apply. */
17749 #ifdef __cplusplus
17750 extern "C"
17751 #endif
17752 char dld_link ();
17754 main ()
17756 return dld_link ();
17758 return 0;
17760 _ACEOF
17761 if ac_fn_c_try_link "$LINENO"; then :
17762 ac_cv_lib_dld_dld_link=yes
17763 else
17764 ac_cv_lib_dld_dld_link=no
17766 rm -f core conftest.err conftest.$ac_objext \
17767 conftest$ac_exeext conftest.$ac_ext
17768 LIBS=$ac_check_lib_save_LIBS
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17771 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17772 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17773 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17792 esac
17794 if test "x$lt_cv_dlopen" != xno; then
17795 enable_dlopen=yes
17796 else
17797 enable_dlopen=no
17800 case $lt_cv_dlopen in
17801 dlopen)
17802 save_CPPFLAGS="$CPPFLAGS"
17803 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17805 save_LDFLAGS="$LDFLAGS"
17806 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17808 save_LIBS="$LIBS"
17809 LIBS="$lt_cv_dlopen_libs $LIBS"
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17812 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17813 if test "${lt_cv_dlopen_self+set}" = set; then :
17814 $as_echo_n "(cached) " >&6
17815 else
17816 if test "$cross_compiling" = yes; then :
17817 lt_cv_dlopen_self=cross
17818 else
17819 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17820 lt_status=$lt_dlunknown
17821 cat > conftest.$ac_ext <<_LT_EOF
17822 #line 17822 "configure"
17823 #include "confdefs.h"
17825 #if HAVE_DLFCN_H
17826 #include <dlfcn.h>
17827 #endif
17829 #include <stdio.h>
17831 #ifdef RTLD_GLOBAL
17832 # define LT_DLGLOBAL RTLD_GLOBAL
17833 #else
17834 # ifdef DL_GLOBAL
17835 # define LT_DLGLOBAL DL_GLOBAL
17836 # else
17837 # define LT_DLGLOBAL 0
17838 # endif
17839 #endif
17841 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17842 find out it does not work in some platform. */
17843 #ifndef LT_DLLAZY_OR_NOW
17844 # ifdef RTLD_LAZY
17845 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17846 # else
17847 # ifdef DL_LAZY
17848 # define LT_DLLAZY_OR_NOW DL_LAZY
17849 # else
17850 # ifdef RTLD_NOW
17851 # define LT_DLLAZY_OR_NOW RTLD_NOW
17852 # else
17853 # ifdef DL_NOW
17854 # define LT_DLLAZY_OR_NOW DL_NOW
17855 # else
17856 # define LT_DLLAZY_OR_NOW 0
17857 # endif
17858 # endif
17859 # endif
17860 # endif
17861 #endif
17863 /* When -fvisbility=hidden is used, assume the code has been annotated
17864 correspondingly for the symbols needed. */
17865 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17866 void fnord () __attribute__((visibility("default")));
17867 #endif
17869 void fnord () { int i=42; }
17870 int main ()
17872 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17873 int status = $lt_dlunknown;
17875 if (self)
17877 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17878 else
17880 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17881 else puts (dlerror ());
17883 /* dlclose (self); */
17885 else
17886 puts (dlerror ());
17888 return status;
17890 _LT_EOF
17891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17892 (eval $ac_link) 2>&5
17893 ac_status=$?
17894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17895 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17896 (./conftest; exit; ) >&5 2>/dev/null
17897 lt_status=$?
17898 case x$lt_status in
17899 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17900 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17901 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17902 esac
17903 else :
17904 # compilation failed
17905 lt_cv_dlopen_self=no
17908 rm -fr conftest*
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17913 $as_echo "$lt_cv_dlopen_self" >&6; }
17915 if test "x$lt_cv_dlopen_self" = xyes; then
17916 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17918 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17919 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17920 $as_echo_n "(cached) " >&6
17921 else
17922 if test "$cross_compiling" = yes; then :
17923 lt_cv_dlopen_self_static=cross
17924 else
17925 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17926 lt_status=$lt_dlunknown
17927 cat > conftest.$ac_ext <<_LT_EOF
17928 #line 17928 "configure"
17929 #include "confdefs.h"
17931 #if HAVE_DLFCN_H
17932 #include <dlfcn.h>
17933 #endif
17935 #include <stdio.h>
17937 #ifdef RTLD_GLOBAL
17938 # define LT_DLGLOBAL RTLD_GLOBAL
17939 #else
17940 # ifdef DL_GLOBAL
17941 # define LT_DLGLOBAL DL_GLOBAL
17942 # else
17943 # define LT_DLGLOBAL 0
17944 # endif
17945 #endif
17947 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17948 find out it does not work in some platform. */
17949 #ifndef LT_DLLAZY_OR_NOW
17950 # ifdef RTLD_LAZY
17951 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17952 # else
17953 # ifdef DL_LAZY
17954 # define LT_DLLAZY_OR_NOW DL_LAZY
17955 # else
17956 # ifdef RTLD_NOW
17957 # define LT_DLLAZY_OR_NOW RTLD_NOW
17958 # else
17959 # ifdef DL_NOW
17960 # define LT_DLLAZY_OR_NOW DL_NOW
17961 # else
17962 # define LT_DLLAZY_OR_NOW 0
17963 # endif
17964 # endif
17965 # endif
17966 # endif
17967 #endif
17969 /* When -fvisbility=hidden is used, assume the code has been annotated
17970 correspondingly for the symbols needed. */
17971 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17972 void fnord () __attribute__((visibility("default")));
17973 #endif
17975 void fnord () { int i=42; }
17976 int main ()
17978 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17979 int status = $lt_dlunknown;
17981 if (self)
17983 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17984 else
17986 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17987 else puts (dlerror ());
17989 /* dlclose (self); */
17991 else
17992 puts (dlerror ());
17994 return status;
17996 _LT_EOF
17997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17998 (eval $ac_link) 2>&5
17999 ac_status=$?
18000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18001 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18002 (./conftest; exit; ) >&5 2>/dev/null
18003 lt_status=$?
18004 case x$lt_status in
18005 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18006 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18007 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18008 esac
18009 else :
18010 # compilation failed
18011 lt_cv_dlopen_self_static=no
18014 rm -fr conftest*
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18019 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18022 CPPFLAGS="$save_CPPFLAGS"
18023 LDFLAGS="$save_LDFLAGS"
18024 LIBS="$save_LIBS"
18026 esac
18028 case $lt_cv_dlopen_self in
18029 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18030 *) enable_dlopen_self=unknown ;;
18031 esac
18033 case $lt_cv_dlopen_self_static in
18034 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18035 *) enable_dlopen_self_static=unknown ;;
18036 esac
18055 striplib=
18056 old_striplib=
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18058 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18059 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18060 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18061 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18063 $as_echo "yes" >&6; }
18064 else
18065 # FIXME - insert some real tests, host_os isn't really good enough
18066 case $host_os in
18067 darwin*)
18068 if test -n "$STRIP" ; then
18069 striplib="$STRIP -x"
18070 old_striplib="$STRIP -S"
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18072 $as_echo "yes" >&6; }
18073 else
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18075 $as_echo "no" >&6; }
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18080 $as_echo "no" >&6; }
18082 esac
18096 # Report which library types will actually be built
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18098 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18100 $as_echo "$can_build_shared" >&6; }
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18103 $as_echo_n "checking whether to build shared libraries... " >&6; }
18104 test "$can_build_shared" = "no" && enable_shared=no
18106 # On AIX, shared libraries and static libraries use the same namespace, and
18107 # are all built from PIC.
18108 case $host_os in
18109 aix3*)
18110 test "$enable_shared" = yes && enable_static=no
18111 if test -n "$RANLIB"; then
18112 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18113 postinstall_cmds='$RANLIB $lib'
18117 aix[4-9]*)
18118 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18119 test "$enable_shared" = yes && enable_static=no
18122 esac
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18124 $as_echo "$enable_shared" >&6; }
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18127 $as_echo_n "checking whether to build static libraries... " >&6; }
18128 # Make sure either enable_shared or enable_static is yes.
18129 test "$enable_shared" = yes || enable_static=yes
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18131 $as_echo "$enable_static" >&6; }
18137 ac_ext=c
18138 ac_cpp='$CPP $CPPFLAGS'
18139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18143 CC="$lt_save_CC"
18145 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18146 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18147 (test "X$CXX" != "Xg++"))) ; then
18148 ac_ext=cpp
18149 ac_cpp='$CXXCPP $CPPFLAGS'
18150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18154 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18155 if test -z "$CXXCPP"; then
18156 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18157 $as_echo_n "(cached) " >&6
18158 else
18159 # Double quotes because CXXCPP needs to be expanded
18160 for CXXCPP in "$CXX -E" "/lib/cpp"
18162 ac_preproc_ok=false
18163 for ac_cxx_preproc_warn_flag in '' yes
18165 # Use a header file that comes with gcc, so configuring glibc
18166 # with a fresh cross-compiler works.
18167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18168 # <limits.h> exists even on freestanding compilers.
18169 # On the NeXT, cc -E runs the code through the compiler's parser,
18170 # not just through cpp. "Syntax error" is here to catch this case.
18171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172 /* end confdefs.h. */
18173 #ifdef __STDC__
18174 # include <limits.h>
18175 #else
18176 # include <assert.h>
18177 #endif
18178 Syntax error
18179 _ACEOF
18180 if ac_fn_cxx_try_cpp "$LINENO"; then :
18182 else
18183 # Broken: fails on valid input.
18184 continue
18186 rm -f conftest.err conftest.$ac_ext
18188 # OK, works on sane cases. Now check whether nonexistent headers
18189 # can be detected and how.
18190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18192 #include <ac_nonexistent.h>
18193 _ACEOF
18194 if ac_fn_cxx_try_cpp "$LINENO"; then :
18195 # Broken: success on invalid input.
18196 continue
18197 else
18198 # Passes both tests.
18199 ac_preproc_ok=:
18200 break
18202 rm -f conftest.err conftest.$ac_ext
18204 done
18205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18206 rm -f conftest.err conftest.$ac_ext
18207 if $ac_preproc_ok; then :
18208 break
18211 done
18212 ac_cv_prog_CXXCPP=$CXXCPP
18215 CXXCPP=$ac_cv_prog_CXXCPP
18216 else
18217 ac_cv_prog_CXXCPP=$CXXCPP
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18220 $as_echo "$CXXCPP" >&6; }
18221 ac_preproc_ok=false
18222 for ac_cxx_preproc_warn_flag in '' yes
18224 # Use a header file that comes with gcc, so configuring glibc
18225 # with a fresh cross-compiler works.
18226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18227 # <limits.h> exists even on freestanding compilers.
18228 # On the NeXT, cc -E runs the code through the compiler's parser,
18229 # not just through cpp. "Syntax error" is here to catch this case.
18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18232 #ifdef __STDC__
18233 # include <limits.h>
18234 #else
18235 # include <assert.h>
18236 #endif
18237 Syntax error
18238 _ACEOF
18239 if ac_fn_cxx_try_cpp "$LINENO"; then :
18241 else
18242 # Broken: fails on valid input.
18243 continue
18245 rm -f conftest.err conftest.$ac_ext
18247 # OK, works on sane cases. Now check whether nonexistent headers
18248 # can be detected and how.
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18251 #include <ac_nonexistent.h>
18252 _ACEOF
18253 if ac_fn_cxx_try_cpp "$LINENO"; then :
18254 # Broken: success on invalid input.
18255 continue
18256 else
18257 # Passes both tests.
18258 ac_preproc_ok=:
18259 break
18261 rm -f conftest.err conftest.$ac_ext
18263 done
18264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18265 rm -f conftest.err conftest.$ac_ext
18266 if $ac_preproc_ok; then :
18268 else
18269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18271 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18272 See \`config.log' for more details." "$LINENO" 5; }
18275 ac_ext=c
18276 ac_cpp='$CPP $CPPFLAGS'
18277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18281 else
18282 _lt_caught_CXX_error=yes
18285 ac_ext=cpp
18286 ac_cpp='$CXXCPP $CPPFLAGS'
18287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18291 archive_cmds_need_lc_CXX=no
18292 allow_undefined_flag_CXX=
18293 always_export_symbols_CXX=no
18294 archive_expsym_cmds_CXX=
18295 compiler_needs_object_CXX=no
18296 export_dynamic_flag_spec_CXX=
18297 hardcode_direct_CXX=no
18298 hardcode_direct_absolute_CXX=no
18299 hardcode_libdir_flag_spec_CXX=
18300 hardcode_libdir_flag_spec_ld_CXX=
18301 hardcode_libdir_separator_CXX=
18302 hardcode_minus_L_CXX=no
18303 hardcode_shlibpath_var_CXX=unsupported
18304 hardcode_automatic_CXX=no
18305 inherit_rpath_CXX=no
18306 module_cmds_CXX=
18307 module_expsym_cmds_CXX=
18308 link_all_deplibs_CXX=unknown
18309 old_archive_cmds_CXX=$old_archive_cmds
18310 reload_flag_CXX=$reload_flag
18311 reload_cmds_CXX=$reload_cmds
18312 no_undefined_flag_CXX=
18313 whole_archive_flag_spec_CXX=
18314 enable_shared_with_static_runtimes_CXX=no
18316 # Source file extension for C++ test sources.
18317 ac_ext=cpp
18319 # Object file extension for compiled C++ test sources.
18320 objext=o
18321 objext_CXX=$objext
18323 # No sense in running all these tests if we already determined that
18324 # the CXX compiler isn't working. Some variables (like enable_shared)
18325 # are currently assumed to apply to all compilers on this platform,
18326 # and will be corrupted by setting them based on a non-working compiler.
18327 if test "$_lt_caught_CXX_error" != yes; then
18328 # Code to be used in simple compile tests
18329 lt_simple_compile_test_code="int some_variable = 0;"
18331 # Code to be used in simple link tests
18332 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18334 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18341 # If no C compiler was specified, use CC.
18342 LTCC=${LTCC-"$CC"}
18344 # If no C compiler flags were specified, use CFLAGS.
18345 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18347 # Allow CC to be a program name with arguments.
18348 compiler=$CC
18351 # save warnings/boilerplate of simple test code
18352 ac_outfile=conftest.$ac_objext
18353 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18354 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18355 _lt_compiler_boilerplate=`cat conftest.err`
18356 $RM conftest*
18358 ac_outfile=conftest.$ac_objext
18359 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18360 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18361 _lt_linker_boilerplate=`cat conftest.err`
18362 $RM -r conftest*
18365 # Allow CC to be a program name with arguments.
18366 lt_save_CC=$CC
18367 lt_save_LD=$LD
18368 lt_save_GCC=$GCC
18369 GCC=$GXX
18370 lt_save_with_gnu_ld=$with_gnu_ld
18371 lt_save_path_LD=$lt_cv_path_LD
18372 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18373 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18374 else
18375 $as_unset lt_cv_prog_gnu_ld
18377 if test -n "${lt_cv_path_LDCXX+set}"; then
18378 lt_cv_path_LD=$lt_cv_path_LDCXX
18379 else
18380 $as_unset lt_cv_path_LD
18382 test -z "${LDCXX+set}" || LD=$LDCXX
18383 CC=${CXX-"c++"}
18384 compiler=$CC
18385 compiler_CXX=$CC
18386 for cc_temp in $compiler""; do
18387 case $cc_temp in
18388 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18389 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18390 \-*) ;;
18391 *) break;;
18392 esac
18393 done
18394 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18397 if test -n "$compiler"; then
18398 # We don't want -fno-exception when compiling C++ code, so set the
18399 # no_builtin_flag separately
18400 if test "$GXX" = yes; then
18401 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18402 else
18403 lt_prog_compiler_no_builtin_flag_CXX=
18406 if test "$GXX" = yes; then
18407 # Set up default GNU C++ configuration
18411 # Check whether --with-gnu-ld was given.
18412 if test "${with_gnu_ld+set}" = set; then :
18413 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18414 else
18415 with_gnu_ld=no
18418 ac_prog=ld
18419 if test "$GCC" = yes; then
18420 # Check if gcc -print-prog-name=ld gives a path.
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18422 $as_echo_n "checking for ld used by $CC... " >&6; }
18423 case $host in
18424 *-*-mingw*)
18425 # gcc leaves a trailing carriage return which upsets mingw
18426 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18428 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18429 esac
18430 case $ac_prog in
18431 # Accept absolute paths.
18432 [\\/]* | ?:[\\/]*)
18433 re_direlt='/[^/][^/]*/\.\./'
18434 # Canonicalize the pathname of ld
18435 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18436 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18437 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18438 done
18439 test -z "$LD" && LD="$ac_prog"
18442 # If it fails, then pretend we aren't using GCC.
18443 ac_prog=ld
18446 # If it is relative, then search for the first ld in PATH.
18447 with_gnu_ld=unknown
18449 esac
18450 elif test "$with_gnu_ld" = yes; then
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18452 $as_echo_n "checking for GNU ld... " >&6; }
18453 else
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18455 $as_echo_n "checking for non-GNU ld... " >&6; }
18457 if test "${lt_cv_path_LD+set}" = set; then :
18458 $as_echo_n "(cached) " >&6
18459 else
18460 if test -z "$LD"; then
18461 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18462 for ac_dir in $PATH; do
18463 IFS="$lt_save_ifs"
18464 test -z "$ac_dir" && ac_dir=.
18465 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18466 lt_cv_path_LD="$ac_dir/$ac_prog"
18467 # Check to see if the program is GNU ld. I'd rather use --version,
18468 # but apparently some variants of GNU ld only accept -v.
18469 # Break only if it was the GNU/non-GNU ld that we prefer.
18470 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18471 *GNU* | *'with BFD'*)
18472 test "$with_gnu_ld" != no && break
18475 test "$with_gnu_ld" != yes && break
18477 esac
18479 done
18480 IFS="$lt_save_ifs"
18481 else
18482 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18486 LD="$lt_cv_path_LD"
18487 if test -n "$LD"; then
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18489 $as_echo "$LD" >&6; }
18490 else
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18492 $as_echo "no" >&6; }
18494 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18496 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18497 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18498 $as_echo_n "(cached) " >&6
18499 else
18500 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18501 case `$LD -v 2>&1 </dev/null` in
18502 *GNU* | *'with BFD'*)
18503 lt_cv_prog_gnu_ld=yes
18506 lt_cv_prog_gnu_ld=no
18508 esac
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18511 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18512 with_gnu_ld=$lt_cv_prog_gnu_ld
18520 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18521 # archiving commands below assume that GNU ld is being used.
18522 if test "$with_gnu_ld" = yes; then
18523 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18524 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'
18526 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18527 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18529 # If archive_cmds runs LD, not CC, wlarc should be empty
18530 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18531 # investigate it a little bit more. (MM)
18532 wlarc='${wl}'
18534 # ancient GNU ld didn't support --whole-archive et. al.
18535 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18536 $GREP 'no-whole-archive' > /dev/null; then
18537 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18538 else
18539 whole_archive_flag_spec_CXX=
18541 else
18542 with_gnu_ld=no
18543 wlarc=
18545 # A generic and very simple default shared library creation
18546 # command for GNU C++ for the case where it uses the native
18547 # linker, instead of GNU ld. If possible, this setting should
18548 # overridden to take advantage of the native linker features on
18549 # the platform it is being used on.
18550 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18553 # Commands to make compiler produce verbose output that lists
18554 # what "hidden" libraries, object files and flags are used when
18555 # linking a shared library.
18556 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18558 else
18559 GXX=no
18560 with_gnu_ld=no
18561 wlarc=
18564 # PORTME: fill in a description of your system's C++ link characteristics
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18566 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18567 ld_shlibs_CXX=yes
18568 case $host_os in
18569 aix3*)
18570 # FIXME: insert proper C++ library support
18571 ld_shlibs_CXX=no
18573 aix[4-9]*)
18574 if test "$host_cpu" = ia64; then
18575 # On IA64, the linker does run time linking by default, so we don't
18576 # have to do anything special.
18577 aix_use_runtimelinking=no
18578 exp_sym_flag='-Bexport'
18579 no_entry_flag=""
18580 else
18581 aix_use_runtimelinking=no
18583 # Test if we are trying to use run time linking or normal
18584 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18585 # need to do runtime linking.
18586 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18587 for ld_flag in $LDFLAGS; do
18588 case $ld_flag in
18589 *-brtl*)
18590 aix_use_runtimelinking=yes
18591 break
18593 esac
18594 done
18596 esac
18598 exp_sym_flag='-bexport'
18599 no_entry_flag='-bnoentry'
18602 # When large executables or shared objects are built, AIX ld can
18603 # have problems creating the table of contents. If linking a library
18604 # or program results in "error TOC overflow" add -mminimal-toc to
18605 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18606 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18608 archive_cmds_CXX=''
18609 hardcode_direct_CXX=yes
18610 hardcode_direct_absolute_CXX=yes
18611 hardcode_libdir_separator_CXX=':'
18612 link_all_deplibs_CXX=yes
18613 file_list_spec_CXX='${wl}-f,'
18615 if test "$GXX" = yes; then
18616 case $host_os in aix4.[012]|aix4.[012].*)
18617 # We only want to do this on AIX 4.2 and lower, the check
18618 # below for broken collect2 doesn't work under 4.3+
18619 collect2name=`${CC} -print-prog-name=collect2`
18620 if test -f "$collect2name" &&
18621 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18622 then
18623 # We have reworked collect2
18625 else
18626 # We have old collect2
18627 hardcode_direct_CXX=unsupported
18628 # It fails to find uninstalled libraries when the uninstalled
18629 # path is not listed in the libpath. Setting hardcode_minus_L
18630 # to unsupported forces relinking
18631 hardcode_minus_L_CXX=yes
18632 hardcode_libdir_flag_spec_CXX='-L$libdir'
18633 hardcode_libdir_separator_CXX=
18635 esac
18636 shared_flag='-shared'
18637 if test "$aix_use_runtimelinking" = yes; then
18638 shared_flag="$shared_flag "'${wl}-G'
18640 else
18641 # not using gcc
18642 if test "$host_cpu" = ia64; then
18643 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18644 # chokes on -Wl,-G. The following line is correct:
18645 shared_flag='-G'
18646 else
18647 if test "$aix_use_runtimelinking" = yes; then
18648 shared_flag='${wl}-G'
18649 else
18650 shared_flag='${wl}-bM:SRE'
18655 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18656 # It seems that -bexpall does not export symbols beginning with
18657 # underscore (_), so it is better to generate a list of symbols to
18658 # export.
18659 always_export_symbols_CXX=yes
18660 if test "$aix_use_runtimelinking" = yes; then
18661 # Warning - without using the other runtime loading flags (-brtl),
18662 # -berok will link without error, but may produce a broken library.
18663 allow_undefined_flag_CXX='-berok'
18664 # Determine the default libpath from the value encoded in an empty
18665 # executable.
18666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18667 /* end confdefs.h. */
18670 main ()
18674 return 0;
18676 _ACEOF
18677 if ac_fn_cxx_try_link "$LINENO"; then :
18679 lt_aix_libpath_sed='
18680 /Import File Strings/,/^$/ {
18681 /^0/ {
18682 s/^0 *\(.*\)$/\1/
18686 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18687 # Check for a 64-bit object if we didn't find anything.
18688 if test -z "$aix_libpath"; then
18689 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18692 rm -f core conftest.err conftest.$ac_objext \
18693 conftest$ac_exeext conftest.$ac_ext
18694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18696 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18698 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"
18699 else
18700 if test "$host_cpu" = ia64; then
18701 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18702 allow_undefined_flag_CXX="-z nodefs"
18703 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"
18704 else
18705 # Determine the default libpath from the value encoded in an
18706 # empty executable.
18707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18711 main ()
18715 return 0;
18717 _ACEOF
18718 if ac_fn_cxx_try_link "$LINENO"; then :
18720 lt_aix_libpath_sed='
18721 /Import File Strings/,/^$/ {
18722 /^0/ {
18723 s/^0 *\(.*\)$/\1/
18727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18728 # Check for a 64-bit object if we didn't find anything.
18729 if test -z "$aix_libpath"; then
18730 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18733 rm -f core conftest.err conftest.$ac_objext \
18734 conftest$ac_exeext conftest.$ac_ext
18735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18737 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18738 # Warning - without using the other run time loading flags,
18739 # -berok will link without error, but may produce a broken library.
18740 no_undefined_flag_CXX=' ${wl}-bernotok'
18741 allow_undefined_flag_CXX=' ${wl}-berok'
18742 if test "$with_gnu_ld" = yes; then
18743 # We only use this code for GNU lds that support --whole-archive.
18744 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18745 else
18746 # Exported symbols can be pulled into shared objects from archives
18747 whole_archive_flag_spec_CXX='$convenience'
18749 archive_cmds_need_lc_CXX=yes
18750 # This is similar to how AIX traditionally builds its shared
18751 # libraries.
18752 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'
18757 beos*)
18758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18759 allow_undefined_flag_CXX=unsupported
18760 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18761 # support --undefined. This deserves some investigation. FIXME
18762 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18763 else
18764 ld_shlibs_CXX=no
18768 chorus*)
18769 case $cc_basename in
18771 # FIXME: insert proper C++ library support
18772 ld_shlibs_CXX=no
18774 esac
18777 cygwin* | mingw* | pw32* | cegcc*)
18778 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18779 # as there is no search path for DLLs.
18780 hardcode_libdir_flag_spec_CXX='-L$libdir'
18781 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18782 allow_undefined_flag_CXX=unsupported
18783 always_export_symbols_CXX=no
18784 enable_shared_with_static_runtimes_CXX=yes
18786 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18787 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'
18788 # If the export-symbols file already is a .def file (1st line
18789 # is EXPORTS), use it as is; otherwise, prepend...
18790 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18791 cp $export_symbols $output_objdir/$soname.def;
18792 else
18793 echo EXPORTS > $output_objdir/$soname.def;
18794 cat $export_symbols >> $output_objdir/$soname.def;
18796 $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'
18797 else
18798 ld_shlibs_CXX=no
18801 darwin* | rhapsody*)
18804 archive_cmds_need_lc_CXX=no
18805 hardcode_direct_CXX=no
18806 hardcode_automatic_CXX=yes
18807 hardcode_shlibpath_var_CXX=unsupported
18808 if test "$lt_cv_ld_force_load" = "yes"; then
18809 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\"`'
18810 else
18811 whole_archive_flag_spec_CXX=''
18813 link_all_deplibs_CXX=yes
18814 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18815 case $cc_basename in
18816 ifort*) _lt_dar_can_shared=yes ;;
18817 *) _lt_dar_can_shared=$GCC ;;
18818 esac
18819 if test "$_lt_dar_can_shared" = "yes"; then
18820 output_verbose_link_cmd=func_echo_all
18821 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}"
18822 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18823 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}"
18824 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}"
18825 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18826 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}"
18827 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}"
18830 else
18831 ld_shlibs_CXX=no
18836 dgux*)
18837 case $cc_basename in
18838 ec++*)
18839 # FIXME: insert proper C++ library support
18840 ld_shlibs_CXX=no
18842 ghcx*)
18843 # Green Hills C++ Compiler
18844 # FIXME: insert proper C++ library support
18845 ld_shlibs_CXX=no
18848 # FIXME: insert proper C++ library support
18849 ld_shlibs_CXX=no
18851 esac
18854 freebsd2.*)
18855 # C++ shared libraries reported to be fairly broken before
18856 # switch to ELF
18857 ld_shlibs_CXX=no
18860 freebsd-elf*)
18861 archive_cmds_need_lc_CXX=no
18864 freebsd* | dragonfly*)
18865 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18866 # conventions
18867 ld_shlibs_CXX=yes
18870 gnu*)
18873 haiku*)
18874 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18875 link_all_deplibs_CXX=yes
18878 hpux9*)
18879 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18880 hardcode_libdir_separator_CXX=:
18881 export_dynamic_flag_spec_CXX='${wl}-E'
18882 hardcode_direct_CXX=yes
18883 hardcode_minus_L_CXX=yes # Not in the search PATH,
18884 # but as the default
18885 # location of the library.
18887 case $cc_basename in
18888 CC*)
18889 # FIXME: insert proper C++ library support
18890 ld_shlibs_CXX=no
18892 aCC*)
18893 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'
18894 # Commands to make compiler produce verbose output that lists
18895 # what "hidden" libraries, object files and flags are used when
18896 # linking a shared library.
18898 # There doesn't appear to be a way to prevent this compiler from
18899 # explicitly linking system object files so we need to strip them
18900 # from the output so that they don't get included in the library
18901 # dependencies.
18902 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"'
18905 if test "$GXX" = yes; then
18906 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'
18907 else
18908 # FIXME: insert proper C++ library support
18909 ld_shlibs_CXX=no
18912 esac
18915 hpux10*|hpux11*)
18916 if test $with_gnu_ld = no; then
18917 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18918 hardcode_libdir_separator_CXX=:
18920 case $host_cpu in
18921 hppa*64*|ia64*)
18924 export_dynamic_flag_spec_CXX='${wl}-E'
18926 esac
18928 case $host_cpu in
18929 hppa*64*|ia64*)
18930 hardcode_direct_CXX=no
18931 hardcode_shlibpath_var_CXX=no
18934 hardcode_direct_CXX=yes
18935 hardcode_direct_absolute_CXX=yes
18936 hardcode_minus_L_CXX=yes # Not in the search PATH,
18937 # but as the default
18938 # location of the library.
18940 esac
18942 case $cc_basename in
18943 CC*)
18944 # FIXME: insert proper C++ library support
18945 ld_shlibs_CXX=no
18947 aCC*)
18948 case $host_cpu in
18949 hppa*64*)
18950 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18952 ia64*)
18953 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18956 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18958 esac
18959 # Commands to make compiler produce verbose output that lists
18960 # what "hidden" libraries, object files and flags are used when
18961 # linking a shared library.
18963 # There doesn't appear to be a way to prevent this compiler from
18964 # explicitly linking system object files so we need to strip them
18965 # from the output so that they don't get included in the library
18966 # dependencies.
18967 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"'
18970 if test "$GXX" = yes; then
18971 if test $with_gnu_ld = no; then
18972 case $host_cpu in
18973 hppa*64*)
18974 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18976 ia64*)
18977 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18980 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'
18982 esac
18984 else
18985 # FIXME: insert proper C++ library support
18986 ld_shlibs_CXX=no
18989 esac
18992 interix[3-9]*)
18993 hardcode_direct_CXX=no
18994 hardcode_shlibpath_var_CXX=no
18995 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18996 export_dynamic_flag_spec_CXX='${wl}-E'
18997 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18998 # Instead, shared libraries are loaded at an image base (0x10000000 by
18999 # default) and relocated if they conflict, which is a slow very memory
19000 # consuming and fragmenting process. To avoid this, we pick a random,
19001 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19002 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19003 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'
19004 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'
19006 irix5* | irix6*)
19007 case $cc_basename in
19008 CC*)
19009 # SGI C++
19010 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'
19012 # Archives containing C++ object files must be created using
19013 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19014 # necessary to make sure instantiated templates are included
19015 # in the archive.
19016 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19019 if test "$GXX" = yes; then
19020 if test "$with_gnu_ld" = no; then
19021 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'
19022 else
19023 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'
19026 link_all_deplibs_CXX=yes
19028 esac
19029 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19030 hardcode_libdir_separator_CXX=:
19031 inherit_rpath_CXX=yes
19034 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19035 case $cc_basename in
19036 KCC*)
19037 # Kuck and Associates, Inc. (KAI) C++ Compiler
19039 # KCC will only create a shared library if the output file
19040 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19041 # to its proper name (with version) after linking.
19042 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'
19043 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'
19044 # Commands to make compiler produce verbose output that lists
19045 # what "hidden" libraries, object files and flags are used when
19046 # linking a shared library.
19048 # There doesn't appear to be a way to prevent this compiler from
19049 # explicitly linking system object files so we need to strip them
19050 # from the output so that they don't get included in the library
19051 # dependencies.
19052 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"'
19054 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19055 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19057 # Archives containing C++ object files must be created using
19058 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19059 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19061 icpc* | ecpc* )
19062 # Intel C++
19063 with_gnu_ld=yes
19064 # version 8.0 and above of icpc choke on multiply defined symbols
19065 # if we add $predep_objects and $postdep_objects, however 7.1 and
19066 # earlier do not add the objects themselves.
19067 case `$CC -V 2>&1` in
19068 *"Version 7."*)
19069 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19070 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'
19072 *) # Version 8.0 or newer
19073 tmp_idyn=
19074 case $host_cpu in
19075 ia64*) tmp_idyn=' -i_dynamic';;
19076 esac
19077 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19078 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'
19080 esac
19081 archive_cmds_need_lc_CXX=no
19082 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19083 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19084 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19086 pgCC* | pgcpp*)
19087 # Portland Group C++ compiler
19088 case `$CC -V` in
19089 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19090 prelink_cmds_CXX='tpldir=Template.dir~
19091 rm -rf $tpldir~
19092 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19093 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19094 old_archive_cmds_CXX='tpldir=Template.dir~
19095 rm -rf $tpldir~
19096 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19097 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19098 $RANLIB $oldlib'
19099 archive_cmds_CXX='tpldir=Template.dir~
19100 rm -rf $tpldir~
19101 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19102 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19103 archive_expsym_cmds_CXX='tpldir=Template.dir~
19104 rm -rf $tpldir~
19105 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19106 $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'
19108 *) # Version 6 and above use weak symbols
19109 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19110 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'
19112 esac
19114 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19115 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19116 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'
19118 cxx*)
19119 # Compaq C++
19120 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19121 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'
19123 runpath_var=LD_RUN_PATH
19124 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19125 hardcode_libdir_separator_CXX=:
19127 # Commands to make compiler produce verbose output that lists
19128 # what "hidden" libraries, object files and flags are used when
19129 # linking a shared library.
19131 # There doesn't appear to be a way to prevent this compiler from
19132 # explicitly linking system object files so we need to strip them
19133 # from the output so that they don't get included in the library
19134 # dependencies.
19135 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'
19137 xl* | mpixl* | bgxl*)
19138 # IBM XL 8.0 on PPC, with GNU ld
19139 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19140 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19141 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19142 if test "x$supports_anon_versioning" = xyes; then
19143 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19144 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19145 echo "local: *; };" >> $output_objdir/$libname.ver~
19146 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19150 case `$CC -V 2>&1 | sed 5q` in
19151 *Sun\ C*)
19152 # Sun C++ 5.9
19153 no_undefined_flag_CXX=' -zdefs'
19154 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19155 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'
19156 hardcode_libdir_flag_spec_CXX='-R$libdir'
19157 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'
19158 compiler_needs_object_CXX=yes
19160 # Not sure whether something based on
19161 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19162 # would be better.
19163 output_verbose_link_cmd='func_echo_all'
19165 # Archives containing C++ object files must be created using
19166 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19167 # necessary to make sure instantiated templates are included
19168 # in the archive.
19169 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19171 esac
19173 esac
19176 lynxos*)
19177 # FIXME: insert proper C++ library support
19178 ld_shlibs_CXX=no
19181 m88k*)
19182 # FIXME: insert proper C++ library support
19183 ld_shlibs_CXX=no
19186 mvs*)
19187 case $cc_basename in
19188 cxx*)
19189 # FIXME: insert proper C++ library support
19190 ld_shlibs_CXX=no
19193 # FIXME: insert proper C++ library support
19194 ld_shlibs_CXX=no
19196 esac
19199 netbsd*)
19200 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19201 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19202 wlarc=
19203 hardcode_libdir_flag_spec_CXX='-R$libdir'
19204 hardcode_direct_CXX=yes
19205 hardcode_shlibpath_var_CXX=no
19207 # Workaround some broken pre-1.5 toolchains
19208 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19211 *nto* | *qnx*)
19212 ld_shlibs_CXX=yes
19215 openbsd2*)
19216 # C++ shared libraries are fairly broken
19217 ld_shlibs_CXX=no
19220 openbsd*)
19221 if test -f /usr/libexec/ld.so; then
19222 hardcode_direct_CXX=yes
19223 hardcode_shlibpath_var_CXX=no
19224 hardcode_direct_absolute_CXX=yes
19225 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19226 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19228 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19229 export_dynamic_flag_spec_CXX='${wl}-E'
19230 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19232 output_verbose_link_cmd=func_echo_all
19233 else
19234 ld_shlibs_CXX=no
19238 osf3* | osf4* | osf5*)
19239 case $cc_basename in
19240 KCC*)
19241 # Kuck and Associates, Inc. (KAI) C++ Compiler
19243 # KCC will only create a shared library if the output file
19244 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19245 # to its proper name (with version) after linking.
19246 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'
19248 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19249 hardcode_libdir_separator_CXX=:
19251 # Archives containing C++ object files must be created using
19252 # the KAI C++ compiler.
19253 case $host in
19254 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19255 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19256 esac
19258 RCC*)
19259 # Rational C++ 2.4.1
19260 # FIXME: insert proper C++ library support
19261 ld_shlibs_CXX=no
19263 cxx*)
19264 case $host in
19265 osf3*)
19266 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19267 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'
19268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19271 allow_undefined_flag_CXX=' -expect_unresolved \*'
19272 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'
19273 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19274 echo "-hidden">> $lib.exp~
19275 $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~
19276 $RM $lib.exp'
19277 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19279 esac
19281 hardcode_libdir_separator_CXX=:
19283 # Commands to make compiler produce verbose output that lists
19284 # what "hidden" libraries, object files and flags are used when
19285 # linking a shared library.
19287 # There doesn't appear to be a way to prevent this compiler from
19288 # explicitly linking system object files so we need to strip them
19289 # from the output so that they don't get included in the library
19290 # dependencies.
19291 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"'
19294 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19295 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19296 case $host in
19297 osf3*)
19298 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'
19301 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'
19303 esac
19305 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19306 hardcode_libdir_separator_CXX=:
19308 # Commands to make compiler produce verbose output that lists
19309 # what "hidden" libraries, object files and flags are used when
19310 # linking a shared library.
19311 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19313 else
19314 # FIXME: insert proper C++ library support
19315 ld_shlibs_CXX=no
19318 esac
19321 psos*)
19322 # FIXME: insert proper C++ library support
19323 ld_shlibs_CXX=no
19326 sunos4*)
19327 case $cc_basename in
19328 CC*)
19329 # Sun C++ 4.x
19330 # FIXME: insert proper C++ library support
19331 ld_shlibs_CXX=no
19333 lcc*)
19334 # Lucid
19335 # FIXME: insert proper C++ library support
19336 ld_shlibs_CXX=no
19339 # FIXME: insert proper C++ library support
19340 ld_shlibs_CXX=no
19342 esac
19345 solaris*)
19346 case $cc_basename in
19347 CC*)
19348 # Sun C++ 4.2, 5.x and Centerline C++
19349 archive_cmds_need_lc_CXX=yes
19350 no_undefined_flag_CXX=' -zdefs'
19351 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19352 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19353 $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'
19355 hardcode_libdir_flag_spec_CXX='-R$libdir'
19356 hardcode_shlibpath_var_CXX=no
19357 case $host_os in
19358 solaris2.[0-5] | solaris2.[0-5].*) ;;
19360 # The compiler driver will combine and reorder linker options,
19361 # but understands `-z linker_flag'.
19362 # Supported since Solaris 2.6 (maybe 2.5.1?)
19363 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19365 esac
19366 link_all_deplibs_CXX=yes
19368 output_verbose_link_cmd='func_echo_all'
19370 # Archives containing C++ object files must be created using
19371 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19372 # necessary to make sure instantiated templates are included
19373 # in the archive.
19374 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19376 gcx*)
19377 # Green Hills C++ Compiler
19378 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19380 # The C++ compiler must be used to create the archive.
19381 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19384 # GNU C++ compiler with Solaris linker
19385 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19386 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19387 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19388 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19389 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19390 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19392 # Commands to make compiler produce verbose output that lists
19393 # what "hidden" libraries, object files and flags are used when
19394 # linking a shared library.
19395 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19396 else
19397 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19398 # platform.
19399 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19400 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19401 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19403 # Commands to make compiler produce verbose output that lists
19404 # what "hidden" libraries, object files and flags are used when
19405 # linking a shared library.
19406 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19409 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19410 case $host_os in
19411 solaris2.[0-5] | solaris2.[0-5].*) ;;
19413 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19415 esac
19418 esac
19421 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19422 no_undefined_flag_CXX='${wl}-z,text'
19423 archive_cmds_need_lc_CXX=no
19424 hardcode_shlibpath_var_CXX=no
19425 runpath_var='LD_RUN_PATH'
19427 case $cc_basename in
19428 CC*)
19429 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19430 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19433 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19434 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19436 esac
19439 sysv5* | sco3.2v5* | sco5v6*)
19440 # Note: We can NOT use -z defs as we might desire, because we do not
19441 # link with -lc, and that would cause any symbols used from libc to
19442 # always be unresolved, which means just about no library would
19443 # ever link correctly. If we're not using GNU ld we use -z text
19444 # though, which does catch some bad symbols but isn't as heavy-handed
19445 # as -z defs.
19446 no_undefined_flag_CXX='${wl}-z,text'
19447 allow_undefined_flag_CXX='${wl}-z,nodefs'
19448 archive_cmds_need_lc_CXX=no
19449 hardcode_shlibpath_var_CXX=no
19450 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19451 hardcode_libdir_separator_CXX=':'
19452 link_all_deplibs_CXX=yes
19453 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19454 runpath_var='LD_RUN_PATH'
19456 case $cc_basename in
19457 CC*)
19458 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19459 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19460 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19461 '"$old_archive_cmds_CXX"
19462 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19463 '"$reload_cmds_CXX"
19466 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19467 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19469 esac
19472 tandem*)
19473 case $cc_basename in
19474 NCC*)
19475 # NonStop-UX NCC 3.20
19476 # FIXME: insert proper C++ library support
19477 ld_shlibs_CXX=no
19480 # FIXME: insert proper C++ library support
19481 ld_shlibs_CXX=no
19483 esac
19486 vxworks*)
19487 # FIXME: insert proper C++ library support
19488 ld_shlibs_CXX=no
19492 # FIXME: insert proper C++ library support
19493 ld_shlibs_CXX=no
19495 esac
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19498 $as_echo "$ld_shlibs_CXX" >&6; }
19499 test "$ld_shlibs_CXX" = no && can_build_shared=no
19501 GCC_CXX="$GXX"
19502 LD_CXX="$LD"
19504 ## CAVEAT EMPTOR:
19505 ## There is no encapsulation within the following macros, do not change
19506 ## the running order or otherwise move them around unless you know exactly
19507 ## what you are doing...
19508 # Dependencies to place before and after the object being linked:
19509 predep_objects_CXX=
19510 postdep_objects_CXX=
19511 predeps_CXX=
19512 postdeps_CXX=
19513 compiler_lib_search_path_CXX=
19515 cat > conftest.$ac_ext <<_LT_EOF
19516 class Foo
19518 public:
19519 Foo (void) { a = 0; }
19520 private:
19521 int a;
19523 _LT_EOF
19525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19526 (eval $ac_compile) 2>&5
19527 ac_status=$?
19528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19529 test $ac_status = 0; }; then
19530 # Parse the compiler output and extract the necessary
19531 # objects, libraries and library flags.
19533 # Sentinel used to keep track of whether or not we are before
19534 # the conftest object file.
19535 pre_test_object_deps_done=no
19537 for p in `eval "$output_verbose_link_cmd"`; do
19538 case $p in
19540 -L* | -R* | -l*)
19541 # Some compilers place space between "-{L,R}" and the path.
19542 # Remove the space.
19543 if test $p = "-L" ||
19544 test $p = "-R"; then
19545 prev=$p
19546 continue
19547 else
19548 prev=
19551 if test "$pre_test_object_deps_done" = no; then
19552 case $p in
19553 -L* | -R*)
19554 # Internal compiler library paths should come after those
19555 # provided the user. The postdeps already come after the
19556 # user supplied libs so there is no need to process them.
19557 if test -z "$compiler_lib_search_path_CXX"; then
19558 compiler_lib_search_path_CXX="${prev}${p}"
19559 else
19560 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19563 # The "-l" case would never come before the object being
19564 # linked, so don't bother handling this case.
19565 esac
19566 else
19567 if test -z "$postdeps_CXX"; then
19568 postdeps_CXX="${prev}${p}"
19569 else
19570 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19575 *.$objext)
19576 # This assumes that the test object file only shows up
19577 # once in the compiler output.
19578 if test "$p" = "conftest.$objext"; then
19579 pre_test_object_deps_done=yes
19580 continue
19583 if test "$pre_test_object_deps_done" = no; then
19584 if test -z "$predep_objects_CXX"; then
19585 predep_objects_CXX="$p"
19586 else
19587 predep_objects_CXX="$predep_objects_CXX $p"
19589 else
19590 if test -z "$postdep_objects_CXX"; then
19591 postdep_objects_CXX="$p"
19592 else
19593 postdep_objects_CXX="$postdep_objects_CXX $p"
19598 *) ;; # Ignore the rest.
19600 esac
19601 done
19603 # Clean up.
19604 rm -f a.out a.exe
19605 else
19606 echo "libtool.m4: error: problem compiling CXX test program"
19609 $RM -f confest.$objext
19611 # PORTME: override above test on systems where it is broken
19612 case $host_os in
19613 interix[3-9]*)
19614 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19615 # hack all around it, let's just trust "g++" to DTRT.
19616 predep_objects_CXX=
19617 postdep_objects_CXX=
19618 postdeps_CXX=
19621 linux*)
19622 case `$CC -V 2>&1 | sed 5q` in
19623 *Sun\ C*)
19624 # Sun C++ 5.9
19626 # The more standards-conforming stlport4 library is
19627 # incompatible with the Cstd library. Avoid specifying
19628 # it if it's in CXXFLAGS. Ignore libCrun as
19629 # -library=stlport4 depends on it.
19630 case " $CXX $CXXFLAGS " in
19631 *" -library=stlport4 "*)
19632 solaris_use_stlport4=yes
19634 esac
19636 if test "$solaris_use_stlport4" != yes; then
19637 postdeps_CXX='-library=Cstd -library=Crun'
19640 esac
19643 solaris*)
19644 case $cc_basename in
19645 CC*)
19646 # The more standards-conforming stlport4 library is
19647 # incompatible with the Cstd library. Avoid specifying
19648 # it if it's in CXXFLAGS. Ignore libCrun as
19649 # -library=stlport4 depends on it.
19650 case " $CXX $CXXFLAGS " in
19651 *" -library=stlport4 "*)
19652 solaris_use_stlport4=yes
19654 esac
19656 # Adding this requires a known-good setup of shared libraries for
19657 # Sun compiler versions before 5.6, else PIC objects from an old
19658 # archive will be linked into the output, leading to subtle bugs.
19659 if test "$solaris_use_stlport4" != yes; then
19660 postdeps_CXX='-library=Cstd -library=Crun'
19663 esac
19665 esac
19668 case " $postdeps_CXX " in
19669 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19670 esac
19671 compiler_lib_search_dirs_CXX=
19672 if test -n "${compiler_lib_search_path_CXX}"; then
19673 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19706 lt_prog_compiler_wl_CXX=
19707 lt_prog_compiler_pic_CXX=
19708 lt_prog_compiler_static_CXX=
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19711 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19713 # C++ specific cases for pic, static, wl, etc.
19714 if test "$GXX" = yes; then
19715 lt_prog_compiler_wl_CXX='-Wl,'
19716 lt_prog_compiler_static_CXX='-static'
19718 case $host_os in
19719 aix*)
19720 # All AIX code is PIC.
19721 if test "$host_cpu" = ia64; then
19722 # AIX 5 now supports IA64 processor
19723 lt_prog_compiler_static_CXX='-Bstatic'
19725 lt_prog_compiler_pic_CXX='-fPIC'
19728 amigaos*)
19729 case $host_cpu in
19730 powerpc)
19731 # see comment about AmigaOS4 .so support
19732 lt_prog_compiler_pic_CXX='-fPIC'
19734 m68k)
19735 # FIXME: we need at least 68020 code to build shared libraries, but
19736 # adding the `-m68020' flag to GCC prevents building anything better,
19737 # like `-m68040'.
19738 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19740 esac
19743 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19744 # PIC is the default for these OSes.
19746 mingw* | cygwin* | os2* | pw32* | cegcc*)
19747 # This hack is so that the source file can tell whether it is being
19748 # built for inclusion in a dll (and should export symbols for example).
19749 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19750 # (--disable-auto-import) libraries
19751 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19753 darwin* | rhapsody*)
19754 # PIC is the default on this platform
19755 # Common symbols not allowed in MH_DYLIB files
19756 lt_prog_compiler_pic_CXX='-fno-common'
19758 *djgpp*)
19759 # DJGPP does not support shared libraries at all
19760 lt_prog_compiler_pic_CXX=
19762 haiku*)
19763 # PIC is the default for Haiku.
19764 # The "-static" flag exists, but is broken.
19765 lt_prog_compiler_static_CXX=
19767 interix[3-9]*)
19768 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19769 # Instead, we relocate shared libraries at runtime.
19771 sysv4*MP*)
19772 if test -d /usr/nec; then
19773 lt_prog_compiler_pic_CXX=-Kconform_pic
19776 hpux*)
19777 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19778 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19779 # sets the default TLS model and affects inlining.
19780 case $host_cpu in
19781 hppa*64*)
19784 lt_prog_compiler_pic_CXX='-fPIC'
19786 esac
19788 *qnx* | *nto*)
19789 # QNX uses GNU C++, but need to define -shared option too, otherwise
19790 # it will coredump.
19791 lt_prog_compiler_pic_CXX='-fPIC -shared'
19794 lt_prog_compiler_pic_CXX='-fPIC'
19796 esac
19797 else
19798 case $host_os in
19799 aix[4-9]*)
19800 # All AIX code is PIC.
19801 if test "$host_cpu" = ia64; then
19802 # AIX 5 now supports IA64 processor
19803 lt_prog_compiler_static_CXX='-Bstatic'
19804 else
19805 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19808 chorus*)
19809 case $cc_basename in
19810 cxch68*)
19811 # Green Hills C++ Compiler
19812 # _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"
19814 esac
19816 dgux*)
19817 case $cc_basename in
19818 ec++*)
19819 lt_prog_compiler_pic_CXX='-KPIC'
19821 ghcx*)
19822 # Green Hills C++ Compiler
19823 lt_prog_compiler_pic_CXX='-pic'
19827 esac
19829 freebsd* | dragonfly*)
19830 # FreeBSD uses GNU C++
19832 hpux9* | hpux10* | hpux11*)
19833 case $cc_basename in
19834 CC*)
19835 lt_prog_compiler_wl_CXX='-Wl,'
19836 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19837 if test "$host_cpu" != ia64; then
19838 lt_prog_compiler_pic_CXX='+Z'
19841 aCC*)
19842 lt_prog_compiler_wl_CXX='-Wl,'
19843 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19844 case $host_cpu in
19845 hppa*64*|ia64*)
19846 # +Z the default
19849 lt_prog_compiler_pic_CXX='+Z'
19851 esac
19855 esac
19857 interix*)
19858 # This is c89, which is MS Visual C++ (no shared libs)
19859 # Anyone wants to do a port?
19861 irix5* | irix6* | nonstopux*)
19862 case $cc_basename in
19863 CC*)
19864 lt_prog_compiler_wl_CXX='-Wl,'
19865 lt_prog_compiler_static_CXX='-non_shared'
19866 # CC pic flag -KPIC is the default.
19870 esac
19872 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19873 case $cc_basename in
19874 KCC*)
19875 # KAI C++ Compiler
19876 lt_prog_compiler_wl_CXX='--backend -Wl,'
19877 lt_prog_compiler_pic_CXX='-fPIC'
19879 ecpc* )
19880 # old Intel C++ for x86_64 which still supported -KPIC.
19881 lt_prog_compiler_wl_CXX='-Wl,'
19882 lt_prog_compiler_pic_CXX='-KPIC'
19883 lt_prog_compiler_static_CXX='-static'
19885 icpc* )
19886 # Intel C++, used to be incompatible with GCC.
19887 # ICC 10 doesn't accept -KPIC any more.
19888 lt_prog_compiler_wl_CXX='-Wl,'
19889 lt_prog_compiler_pic_CXX='-fPIC'
19890 lt_prog_compiler_static_CXX='-static'
19892 pgCC* | pgcpp*)
19893 # Portland Group C++ compiler
19894 lt_prog_compiler_wl_CXX='-Wl,'
19895 lt_prog_compiler_pic_CXX='-fpic'
19896 lt_prog_compiler_static_CXX='-Bstatic'
19898 cxx*)
19899 # Compaq C++
19900 # Make sure the PIC flag is empty. It appears that all Alpha
19901 # Linux and Compaq Tru64 Unix objects are PIC.
19902 lt_prog_compiler_pic_CXX=
19903 lt_prog_compiler_static_CXX='-non_shared'
19905 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19906 # IBM XL 8.0, 9.0 on PPC and BlueGene
19907 lt_prog_compiler_wl_CXX='-Wl,'
19908 lt_prog_compiler_pic_CXX='-qpic'
19909 lt_prog_compiler_static_CXX='-qstaticlink'
19912 case `$CC -V 2>&1 | sed 5q` in
19913 *Sun\ C*)
19914 # Sun C++ 5.9
19915 lt_prog_compiler_pic_CXX='-KPIC'
19916 lt_prog_compiler_static_CXX='-Bstatic'
19917 lt_prog_compiler_wl_CXX='-Qoption ld '
19919 esac
19921 esac
19923 lynxos*)
19925 m88k*)
19927 mvs*)
19928 case $cc_basename in
19929 cxx*)
19930 lt_prog_compiler_pic_CXX='-W c,exportall'
19934 esac
19936 netbsd*)
19938 *qnx* | *nto*)
19939 # QNX uses GNU C++, but need to define -shared option too, otherwise
19940 # it will coredump.
19941 lt_prog_compiler_pic_CXX='-fPIC -shared'
19943 osf3* | osf4* | osf5*)
19944 case $cc_basename in
19945 KCC*)
19946 lt_prog_compiler_wl_CXX='--backend -Wl,'
19948 RCC*)
19949 # Rational C++ 2.4.1
19950 lt_prog_compiler_pic_CXX='-pic'
19952 cxx*)
19953 # Digital/Compaq C++
19954 lt_prog_compiler_wl_CXX='-Wl,'
19955 # Make sure the PIC flag is empty. It appears that all Alpha
19956 # Linux and Compaq Tru64 Unix objects are PIC.
19957 lt_prog_compiler_pic_CXX=
19958 lt_prog_compiler_static_CXX='-non_shared'
19962 esac
19964 psos*)
19966 solaris*)
19967 case $cc_basename in
19968 CC*)
19969 # Sun C++ 4.2, 5.x and Centerline C++
19970 lt_prog_compiler_pic_CXX='-KPIC'
19971 lt_prog_compiler_static_CXX='-Bstatic'
19972 lt_prog_compiler_wl_CXX='-Qoption ld '
19974 gcx*)
19975 # Green Hills C++ Compiler
19976 lt_prog_compiler_pic_CXX='-PIC'
19980 esac
19982 sunos4*)
19983 case $cc_basename in
19984 CC*)
19985 # Sun C++ 4.x
19986 lt_prog_compiler_pic_CXX='-pic'
19987 lt_prog_compiler_static_CXX='-Bstatic'
19989 lcc*)
19990 # Lucid
19991 lt_prog_compiler_pic_CXX='-pic'
19995 esac
19997 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19998 case $cc_basename in
19999 CC*)
20000 lt_prog_compiler_wl_CXX='-Wl,'
20001 lt_prog_compiler_pic_CXX='-KPIC'
20002 lt_prog_compiler_static_CXX='-Bstatic'
20004 esac
20006 tandem*)
20007 case $cc_basename in
20008 NCC*)
20009 # NonStop-UX NCC 3.20
20010 lt_prog_compiler_pic_CXX='-KPIC'
20014 esac
20016 vxworks*)
20019 lt_prog_compiler_can_build_shared_CXX=no
20021 esac
20024 case $host_os in
20025 # For platforms which do not support PIC, -DPIC is meaningless:
20026 *djgpp*)
20027 lt_prog_compiler_pic_CXX=
20030 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20032 esac
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20034 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20039 # Check to make sure the PIC flag actually works.
20041 if test -n "$lt_prog_compiler_pic_CXX"; then
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20043 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20044 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20045 $as_echo_n "(cached) " >&6
20046 else
20047 lt_cv_prog_compiler_pic_works_CXX=no
20048 ac_outfile=conftest.$ac_objext
20049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20050 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20051 # Insert the option either (1) after the last *FLAGS variable, or
20052 # (2) before a word containing "conftest.", or (3) at the end.
20053 # Note that $ac_compile itself does not contain backslashes and begins
20054 # with a dollar sign (not a hyphen), so the echo should work correctly.
20055 # The option is referenced via a variable to avoid confusing sed.
20056 lt_compile=`echo "$ac_compile" | $SED \
20057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20059 -e 's:$: $lt_compiler_flag:'`
20060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20061 (eval "$lt_compile" 2>conftest.err)
20062 ac_status=$?
20063 cat conftest.err >&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 if (exit $ac_status) && test -s "$ac_outfile"; then
20066 # The compiler can only warn and ignore the option if not recognized
20067 # So say no if there are warnings other than the usual output.
20068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20070 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20071 lt_cv_prog_compiler_pic_works_CXX=yes
20074 $RM conftest*
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20078 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20080 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20081 case $lt_prog_compiler_pic_CXX in
20082 "" | " "*) ;;
20083 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20084 esac
20085 else
20086 lt_prog_compiler_pic_CXX=
20087 lt_prog_compiler_can_build_shared_CXX=no
20095 # Check to make sure the static flag actually works.
20097 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20099 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20100 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20101 $as_echo_n "(cached) " >&6
20102 else
20103 lt_cv_prog_compiler_static_works_CXX=no
20104 save_LDFLAGS="$LDFLAGS"
20105 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20106 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20108 # The linker can only warn and ignore the option if not recognized
20109 # So say no if there are warnings
20110 if test -s conftest.err; then
20111 # Append any errors to the config.log.
20112 cat conftest.err 1>&5
20113 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20115 if diff conftest.exp conftest.er2 >/dev/null; then
20116 lt_cv_prog_compiler_static_works_CXX=yes
20118 else
20119 lt_cv_prog_compiler_static_works_CXX=yes
20122 $RM -r conftest*
20123 LDFLAGS="$save_LDFLAGS"
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20127 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20129 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20131 else
20132 lt_prog_compiler_static_CXX=
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20139 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20140 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20141 $as_echo_n "(cached) " >&6
20142 else
20143 lt_cv_prog_compiler_c_o_CXX=no
20144 $RM -r conftest 2>/dev/null
20145 mkdir conftest
20146 cd conftest
20147 mkdir out
20148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20150 lt_compiler_flag="-o out/conftest2.$ac_objext"
20151 # Insert the option either (1) after the last *FLAGS variable, or
20152 # (2) before a word containing "conftest.", or (3) at the end.
20153 # Note that $ac_compile itself does not contain backslashes and begins
20154 # with a dollar sign (not a hyphen), so the echo should work correctly.
20155 lt_compile=`echo "$ac_compile" | $SED \
20156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20158 -e 's:$: $lt_compiler_flag:'`
20159 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20160 (eval "$lt_compile" 2>out/conftest.err)
20161 ac_status=$?
20162 cat out/conftest.err >&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20165 then
20166 # The compiler can only warn and ignore the option if not recognized
20167 # So say no if there are warnings
20168 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20169 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20170 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20171 lt_cv_prog_compiler_c_o_CXX=yes
20174 chmod u+w . 2>&5
20175 $RM conftest*
20176 # SGI C++ compiler will create directory out/ii_files/ for
20177 # template instantiation
20178 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20179 $RM out/* && rmdir out
20180 cd ..
20181 $RM -r conftest
20182 $RM conftest*
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20186 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20191 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20192 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20193 $as_echo_n "(cached) " >&6
20194 else
20195 lt_cv_prog_compiler_c_o_CXX=no
20196 $RM -r conftest 2>/dev/null
20197 mkdir conftest
20198 cd conftest
20199 mkdir out
20200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20202 lt_compiler_flag="-o out/conftest2.$ac_objext"
20203 # Insert the option either (1) after the last *FLAGS variable, or
20204 # (2) before a word containing "conftest.", or (3) at the end.
20205 # Note that $ac_compile itself does not contain backslashes and begins
20206 # with a dollar sign (not a hyphen), so the echo should work correctly.
20207 lt_compile=`echo "$ac_compile" | $SED \
20208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20210 -e 's:$: $lt_compiler_flag:'`
20211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20212 (eval "$lt_compile" 2>out/conftest.err)
20213 ac_status=$?
20214 cat out/conftest.err >&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20217 then
20218 # The compiler can only warn and ignore the option if not recognized
20219 # So say no if there are warnings
20220 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20221 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20222 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20223 lt_cv_prog_compiler_c_o_CXX=yes
20226 chmod u+w . 2>&5
20227 $RM conftest*
20228 # SGI C++ compiler will create directory out/ii_files/ for
20229 # template instantiation
20230 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20231 $RM out/* && rmdir out
20232 cd ..
20233 $RM -r conftest
20234 $RM conftest*
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20238 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20243 hard_links="nottested"
20244 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20245 # do not overwrite the value of need_locks provided by the user
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20247 $as_echo_n "checking if we can lock with hard links... " >&6; }
20248 hard_links=yes
20249 $RM conftest*
20250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20251 touch conftest.a
20252 ln conftest.a conftest.b 2>&5 || hard_links=no
20253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20255 $as_echo "$hard_links" >&6; }
20256 if test "$hard_links" = no; then
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20258 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20259 need_locks=warn
20261 else
20262 need_locks=no
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20268 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20270 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20271 case $host_os in
20272 aix[4-9]*)
20273 # If we're using GNU nm, then we don't want the "-C" option.
20274 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20275 # Also, AIX nm treats weak defined symbols like other global defined
20276 # symbols, whereas GNU nm marks them as "W".
20277 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20278 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'
20279 else
20280 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'
20283 pw32*)
20284 export_symbols_cmds_CXX="$ltdll_cmds"
20286 cygwin* | mingw* | cegcc*)
20287 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'
20290 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20292 esac
20293 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20296 $as_echo "$ld_shlibs_CXX" >&6; }
20297 test "$ld_shlibs_CXX" = no && can_build_shared=no
20299 with_gnu_ld_CXX=$with_gnu_ld
20307 # Do we need to explicitly link libc?
20309 case "x$archive_cmds_need_lc_CXX" in
20310 x|xyes)
20311 # Assume -lc should be added
20312 archive_cmds_need_lc_CXX=yes
20314 if test "$enable_shared" = yes && test "$GCC" = yes; then
20315 case $archive_cmds_CXX in
20316 *'~'*)
20317 # FIXME: we may have to deal with multi-command sequences.
20319 '$CC '*)
20320 # Test whether the compiler implicitly links with -lc since on some
20321 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20322 # to ld, don't add -lc before -lgcc.
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20324 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20325 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20326 $as_echo_n "(cached) " >&6
20327 else
20328 $RM conftest*
20329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20332 (eval $ac_compile) 2>&5
20333 ac_status=$?
20334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20335 test $ac_status = 0; } 2>conftest.err; then
20336 soname=conftest
20337 lib=conftest
20338 libobjs=conftest.$ac_objext
20339 deplibs=
20340 wl=$lt_prog_compiler_wl_CXX
20341 pic_flag=$lt_prog_compiler_pic_CXX
20342 compiler_flags=-v
20343 linker_flags=-v
20344 verstring=
20345 output_objdir=.
20346 libname=conftest
20347 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20348 allow_undefined_flag_CXX=
20349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20350 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20351 ac_status=$?
20352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20353 test $ac_status = 0; }
20354 then
20355 lt_cv_archive_cmds_need_lc_CXX=no
20356 else
20357 lt_cv_archive_cmds_need_lc_CXX=yes
20359 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20360 else
20361 cat conftest.err 1>&5
20363 $RM conftest*
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20367 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20368 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20370 esac
20373 esac
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20439 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20441 library_names_spec=
20442 libname_spec='lib$name'
20443 soname_spec=
20444 shrext_cmds=".so"
20445 postinstall_cmds=
20446 postuninstall_cmds=
20447 finish_cmds=
20448 finish_eval=
20449 shlibpath_var=
20450 shlibpath_overrides_runpath=unknown
20451 version_type=none
20452 dynamic_linker="$host_os ld.so"
20453 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20454 need_lib_prefix=unknown
20455 hardcode_into_libs=no
20457 # when you set need_version to no, make sure it does not cause -set_version
20458 # flags to be left without arguments
20459 need_version=unknown
20461 case $host_os in
20462 aix3*)
20463 version_type=linux
20464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20465 shlibpath_var=LIBPATH
20467 # AIX 3 has no versioning support, so we append a major version to the name.
20468 soname_spec='${libname}${release}${shared_ext}$major'
20471 aix[4-9]*)
20472 version_type=linux
20473 need_lib_prefix=no
20474 need_version=no
20475 hardcode_into_libs=yes
20476 if test "$host_cpu" = ia64; then
20477 # AIX 5 supports IA64
20478 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20479 shlibpath_var=LD_LIBRARY_PATH
20480 else
20481 # With GCC up to 2.95.x, collect2 would create an import file
20482 # for dependence libraries. The import file would start with
20483 # the line `#! .'. This would cause the generated library to
20484 # depend on `.', always an invalid library. This was fixed in
20485 # development snapshots of GCC prior to 3.0.
20486 case $host_os in
20487 aix4 | aix4.[01] | aix4.[01].*)
20488 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20489 echo ' yes '
20490 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20492 else
20493 can_build_shared=no
20496 esac
20497 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20498 # soname into executable. Probably we can add versioning support to
20499 # collect2, so additional links can be useful in future.
20500 if test "$aix_use_runtimelinking" = yes; then
20501 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20502 # instead of lib<name>.a to let people know that these are not
20503 # typical AIX shared libraries.
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20505 else
20506 # We preserve .a as extension for shared libraries through AIX4.2
20507 # and later when we are not doing run time linking.
20508 library_names_spec='${libname}${release}.a $libname.a'
20509 soname_spec='${libname}${release}${shared_ext}$major'
20511 shlibpath_var=LIBPATH
20515 amigaos*)
20516 case $host_cpu in
20517 powerpc)
20518 # Since July 2007 AmigaOS4 officially supports .so libraries.
20519 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20522 m68k)
20523 library_names_spec='$libname.ixlibrary $libname.a'
20524 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20525 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'
20527 esac
20530 beos*)
20531 library_names_spec='${libname}${shared_ext}'
20532 dynamic_linker="$host_os ld.so"
20533 shlibpath_var=LIBRARY_PATH
20536 bsdi[45]*)
20537 version_type=linux
20538 need_version=no
20539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20540 soname_spec='${libname}${release}${shared_ext}$major'
20541 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20542 shlibpath_var=LD_LIBRARY_PATH
20543 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20544 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20545 # the default ld.so.conf also contains /usr/contrib/lib and
20546 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20547 # libtool to hard-code these into programs
20550 cygwin* | mingw* | pw32* | cegcc*)
20551 version_type=windows
20552 shrext_cmds=".dll"
20553 need_version=no
20554 need_lib_prefix=no
20556 case $GCC,$host_os in
20557 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20558 library_names_spec='$libname.dll.a'
20559 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20560 postinstall_cmds='base_file=`basename \${file}`~
20561 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20562 dldir=$destdir/`dirname \$dlpath`~
20563 test -d \$dldir || mkdir -p \$dldir~
20564 $install_prog $dir/$dlname \$dldir/$dlname~
20565 chmod a+x \$dldir/$dlname~
20566 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20567 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20569 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20570 dlpath=$dir/\$dldll~
20571 $RM \$dlpath'
20572 shlibpath_overrides_runpath=yes
20574 case $host_os in
20575 cygwin*)
20576 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20577 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20580 mingw* | cegcc*)
20581 # MinGW DLLs use traditional 'lib' prefix
20582 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20584 pw32*)
20585 # pw32 DLLs use 'pw' prefix rather than 'lib'
20586 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20588 esac
20592 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20594 esac
20595 dynamic_linker='Win32 ld.exe'
20596 # FIXME: first we should search . and the directory the executable is in
20597 shlibpath_var=PATH
20600 darwin* | rhapsody*)
20601 dynamic_linker="$host_os dyld"
20602 version_type=darwin
20603 need_lib_prefix=no
20604 need_version=no
20605 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20606 soname_spec='${libname}${release}${major}$shared_ext'
20607 shlibpath_overrides_runpath=yes
20608 shlibpath_var=DYLD_LIBRARY_PATH
20609 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20611 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20614 dgux*)
20615 version_type=linux
20616 need_lib_prefix=no
20617 need_version=no
20618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20619 soname_spec='${libname}${release}${shared_ext}$major'
20620 shlibpath_var=LD_LIBRARY_PATH
20623 freebsd* | dragonfly*)
20624 # DragonFly does not have aout. When/if they implement a new
20625 # versioning mechanism, adjust this.
20626 if test -x /usr/bin/objformat; then
20627 objformat=`/usr/bin/objformat`
20628 else
20629 case $host_os in
20630 freebsd[23].*) objformat=aout ;;
20631 *) objformat=elf ;;
20632 esac
20634 version_type=freebsd-$objformat
20635 case $version_type in
20636 freebsd-elf*)
20637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20638 need_version=no
20639 need_lib_prefix=no
20641 freebsd-*)
20642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20643 need_version=yes
20645 esac
20646 shlibpath_var=LD_LIBRARY_PATH
20647 case $host_os in
20648 freebsd2.*)
20649 shlibpath_overrides_runpath=yes
20651 freebsd3.[01]* | freebsdelf3.[01]*)
20652 shlibpath_overrides_runpath=yes
20653 hardcode_into_libs=yes
20655 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20656 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20657 shlibpath_overrides_runpath=no
20658 hardcode_into_libs=yes
20660 *) # from 4.6 on, and DragonFly
20661 shlibpath_overrides_runpath=yes
20662 hardcode_into_libs=yes
20664 esac
20667 gnu*)
20668 version_type=linux
20669 need_lib_prefix=no
20670 need_version=no
20671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20672 soname_spec='${libname}${release}${shared_ext}$major'
20673 shlibpath_var=LD_LIBRARY_PATH
20674 hardcode_into_libs=yes
20677 haiku*)
20678 version_type=linux
20679 need_lib_prefix=no
20680 need_version=no
20681 dynamic_linker="$host_os runtime_loader"
20682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20683 soname_spec='${libname}${release}${shared_ext}$major'
20684 shlibpath_var=LIBRARY_PATH
20685 shlibpath_overrides_runpath=yes
20686 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20687 hardcode_into_libs=yes
20690 hpux9* | hpux10* | hpux11*)
20691 # Give a soname corresponding to the major version so that dld.sl refuses to
20692 # link against other versions.
20693 version_type=sunos
20694 need_lib_prefix=no
20695 need_version=no
20696 case $host_cpu in
20697 ia64*)
20698 shrext_cmds='.so'
20699 hardcode_into_libs=yes
20700 dynamic_linker="$host_os dld.so"
20701 shlibpath_var=LD_LIBRARY_PATH
20702 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20704 soname_spec='${libname}${release}${shared_ext}$major'
20705 if test "X$HPUX_IA64_MODE" = X32; then
20706 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20707 else
20708 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20712 hppa*64*)
20713 shrext_cmds='.sl'
20714 hardcode_into_libs=yes
20715 dynamic_linker="$host_os dld.sl"
20716 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20724 shrext_cmds='.sl'
20725 dynamic_linker="$host_os dld.sl"
20726 shlibpath_var=SHLIB_PATH
20727 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20729 soname_spec='${libname}${release}${shared_ext}$major'
20731 esac
20732 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20733 postinstall_cmds='chmod 555 $lib'
20734 # or fails outright, so override atomically:
20735 install_override_mode=555
20738 interix[3-9]*)
20739 version_type=linux
20740 need_lib_prefix=no
20741 need_version=no
20742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20743 soname_spec='${libname}${release}${shared_ext}$major'
20744 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20745 shlibpath_var=LD_LIBRARY_PATH
20746 shlibpath_overrides_runpath=no
20747 hardcode_into_libs=yes
20750 irix5* | irix6* | nonstopux*)
20751 case $host_os in
20752 nonstopux*) version_type=nonstopux ;;
20754 if test "$lt_cv_prog_gnu_ld" = yes; then
20755 version_type=linux
20756 else
20757 version_type=irix
20758 fi ;;
20759 esac
20760 need_lib_prefix=no
20761 need_version=no
20762 soname_spec='${libname}${release}${shared_ext}$major'
20763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20764 case $host_os in
20765 irix5* | nonstopux*)
20766 libsuff= shlibsuff=
20769 case $LD in # libtool.m4 will add one of these switches to LD
20770 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20771 libsuff= shlibsuff= libmagic=32-bit;;
20772 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20773 libsuff=32 shlibsuff=N32 libmagic=N32;;
20774 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20775 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20776 *) libsuff= shlibsuff= libmagic=never-match;;
20777 esac
20779 esac
20780 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20781 shlibpath_overrides_runpath=no
20782 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20783 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20784 hardcode_into_libs=yes
20787 # No shared lib support for Linux oldld, aout, or coff.
20788 linux*oldld* | linux*aout* | linux*coff*)
20789 dynamic_linker=no
20792 # This must be Linux ELF.
20793 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20794 version_type=linux
20795 need_lib_prefix=no
20796 need_version=no
20797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20798 soname_spec='${libname}${release}${shared_ext}$major'
20799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20800 shlibpath_var=LD_LIBRARY_PATH
20801 shlibpath_overrides_runpath=no
20803 # Some binutils ld are patched to set DT_RUNPATH
20804 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20805 $as_echo_n "(cached) " >&6
20806 else
20807 lt_cv_shlibpath_overrides_runpath=no
20808 save_LDFLAGS=$LDFLAGS
20809 save_libdir=$libdir
20810 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20811 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20813 /* end confdefs.h. */
20816 main ()
20820 return 0;
20822 _ACEOF
20823 if ac_fn_cxx_try_link "$LINENO"; then :
20824 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20825 lt_cv_shlibpath_overrides_runpath=yes
20828 rm -f core conftest.err conftest.$ac_objext \
20829 conftest$ac_exeext conftest.$ac_ext
20830 LDFLAGS=$save_LDFLAGS
20831 libdir=$save_libdir
20835 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20837 # This implies no fast_install, which is unacceptable.
20838 # Some rework will be needed to allow for fast_install
20839 # before this can be enabled.
20840 hardcode_into_libs=yes
20842 # Append ld.so.conf contents to the search path
20843 if test -f /etc/ld.so.conf; then
20844 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' ' '`
20845 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20848 # We used to test for /lib/ld.so.1 and disable shared libraries on
20849 # powerpc, because MkLinux only supported shared libraries with the
20850 # GNU dynamic linker. Since this was broken with cross compilers,
20851 # most powerpc-linux boxes support dynamic linking these days and
20852 # people can always --disable-shared, the test was removed, and we
20853 # assume the GNU/Linux dynamic linker is in use.
20854 dynamic_linker='GNU/Linux ld.so'
20857 netbsd*)
20858 version_type=sunos
20859 need_lib_prefix=no
20860 need_version=no
20861 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20864 dynamic_linker='NetBSD (a.out) ld.so'
20865 else
20866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20867 soname_spec='${libname}${release}${shared_ext}$major'
20868 dynamic_linker='NetBSD ld.elf_so'
20870 shlibpath_var=LD_LIBRARY_PATH
20871 shlibpath_overrides_runpath=yes
20872 hardcode_into_libs=yes
20875 newsos6)
20876 version_type=linux
20877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20878 shlibpath_var=LD_LIBRARY_PATH
20879 shlibpath_overrides_runpath=yes
20882 *nto* | *qnx*)
20883 version_type=qnx
20884 need_lib_prefix=no
20885 need_version=no
20886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20887 soname_spec='${libname}${release}${shared_ext}$major'
20888 shlibpath_var=LD_LIBRARY_PATH
20889 shlibpath_overrides_runpath=no
20890 hardcode_into_libs=yes
20891 dynamic_linker='ldqnx.so'
20894 openbsd*)
20895 version_type=sunos
20896 sys_lib_dlsearch_path_spec="/usr/lib"
20897 need_lib_prefix=no
20898 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20899 case $host_os in
20900 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20901 *) need_version=no ;;
20902 esac
20903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20905 shlibpath_var=LD_LIBRARY_PATH
20906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20907 case $host_os in
20908 openbsd2.[89] | openbsd2.[89].*)
20909 shlibpath_overrides_runpath=no
20912 shlibpath_overrides_runpath=yes
20914 esac
20915 else
20916 shlibpath_overrides_runpath=yes
20920 os2*)
20921 libname_spec='$name'
20922 shrext_cmds=".dll"
20923 need_lib_prefix=no
20924 library_names_spec='$libname${shared_ext} $libname.a'
20925 dynamic_linker='OS/2 ld.exe'
20926 shlibpath_var=LIBPATH
20929 osf3* | osf4* | osf5*)
20930 version_type=osf
20931 need_lib_prefix=no
20932 need_version=no
20933 soname_spec='${libname}${release}${shared_ext}$major'
20934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20935 shlibpath_var=LD_LIBRARY_PATH
20936 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20937 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20940 rdos*)
20941 dynamic_linker=no
20944 solaris*)
20945 version_type=linux
20946 need_lib_prefix=no
20947 need_version=no
20948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20949 soname_spec='${libname}${release}${shared_ext}$major'
20950 shlibpath_var=LD_LIBRARY_PATH
20951 shlibpath_overrides_runpath=yes
20952 hardcode_into_libs=yes
20953 # ldd complains unless libraries are executable
20954 postinstall_cmds='chmod +x $lib'
20957 sunos4*)
20958 version_type=sunos
20959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20960 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20961 shlibpath_var=LD_LIBRARY_PATH
20962 shlibpath_overrides_runpath=yes
20963 if test "$with_gnu_ld" = yes; then
20964 need_lib_prefix=no
20966 need_version=yes
20969 sysv4 | sysv4.3*)
20970 version_type=linux
20971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20972 soname_spec='${libname}${release}${shared_ext}$major'
20973 shlibpath_var=LD_LIBRARY_PATH
20974 case $host_vendor in
20975 sni)
20976 shlibpath_overrides_runpath=no
20977 need_lib_prefix=no
20978 runpath_var=LD_RUN_PATH
20980 siemens)
20981 need_lib_prefix=no
20983 motorola)
20984 need_lib_prefix=no
20985 need_version=no
20986 shlibpath_overrides_runpath=no
20987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20989 esac
20992 sysv4*MP*)
20993 if test -d /usr/nec ;then
20994 version_type=linux
20995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20996 soname_spec='$libname${shared_ext}.$major'
20997 shlibpath_var=LD_LIBRARY_PATH
21001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21002 version_type=freebsd-elf
21003 need_lib_prefix=no
21004 need_version=no
21005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21006 soname_spec='${libname}${release}${shared_ext}$major'
21007 shlibpath_var=LD_LIBRARY_PATH
21008 shlibpath_overrides_runpath=yes
21009 hardcode_into_libs=yes
21010 if test "$with_gnu_ld" = yes; then
21011 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21012 else
21013 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21014 case $host_os in
21015 sco3.2v5*)
21016 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21018 esac
21020 sys_lib_dlsearch_path_spec='/usr/lib'
21023 tpf*)
21024 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21025 version_type=linux
21026 need_lib_prefix=no
21027 need_version=no
21028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21029 shlibpath_var=LD_LIBRARY_PATH
21030 shlibpath_overrides_runpath=no
21031 hardcode_into_libs=yes
21034 uts4*)
21035 version_type=linux
21036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21037 soname_spec='${libname}${release}${shared_ext}$major'
21038 shlibpath_var=LD_LIBRARY_PATH
21042 dynamic_linker=no
21044 esac
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21046 $as_echo "$dynamic_linker" >&6; }
21047 test "$dynamic_linker" = no && can_build_shared=no
21049 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21050 if test "$GCC" = yes; then
21051 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21054 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21055 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21057 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21058 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21099 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21100 hardcode_action_CXX=
21101 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21102 test -n "$runpath_var_CXX" ||
21103 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21105 # We can hardcode non-existent directories.
21106 if test "$hardcode_direct_CXX" != no &&
21107 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21108 # have to relink, otherwise we might link with an installed library
21109 # when we should be linking with a yet-to-be-installed one
21110 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21111 test "$hardcode_minus_L_CXX" != no; then
21112 # Linking always hardcodes the temporary library directory.
21113 hardcode_action_CXX=relink
21114 else
21115 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21116 hardcode_action_CXX=immediate
21118 else
21119 # We cannot hardcode anything, or else we can only hardcode existing
21120 # directories.
21121 hardcode_action_CXX=unsupported
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21124 $as_echo "$hardcode_action_CXX" >&6; }
21126 if test "$hardcode_action_CXX" = relink ||
21127 test "$inherit_rpath_CXX" = yes; then
21128 # Fast installation is not supported
21129 enable_fast_install=no
21130 elif test "$shlibpath_overrides_runpath" = yes ||
21131 test "$enable_shared" = no; then
21132 # Fast installation is not necessary
21133 enable_fast_install=needless
21142 fi # test -n "$compiler"
21144 CC=$lt_save_CC
21145 LDCXX=$LD
21146 LD=$lt_save_LD
21147 GCC=$lt_save_GCC
21148 with_gnu_ld=$lt_save_with_gnu_ld
21149 lt_cv_path_LDCXX=$lt_cv_path_LD
21150 lt_cv_path_LD=$lt_save_path_LD
21151 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21152 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21153 fi # test "$_lt_caught_CXX_error" != yes
21155 ac_ext=c
21156 ac_cpp='$CPP $CPPFLAGS'
21157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21176 # Only expand once:
21182 # Identify the assembler which will work hand-in-glove with the newly
21183 # built GCC, so that we can examine its features. This is the assembler
21184 # which will be driven by the driver program.
21186 # If build != host, and we aren't building gas in-tree, we identify a
21187 # build->target assembler and hope that it will have the same features
21188 # as the host->target assembler we'll be using.
21189 gcc_cv_gas_major_version=
21190 gcc_cv_gas_minor_version=
21191 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21193 if test "${gcc_cv_as+set}" = set; then :
21195 else
21197 if test -x "$DEFAULT_ASSEMBLER"; then
21198 gcc_cv_as="$DEFAULT_ASSEMBLER"
21199 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21200 && test -f ../gas/Makefile \
21201 && test x$build = x$host; then
21202 gcc_cv_as=../gas/as-new$build_exeext
21203 elif test -x as$build_exeext; then
21204 # Build using assembler in the current directory.
21205 gcc_cv_as=./as$build_exeext
21206 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21207 gcc_cv_as="$AS_FOR_TARGET"
21208 else
21209 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21210 set dummy $AS_FOR_TARGET; ac_word=$2
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21212 $as_echo_n "checking for $ac_word... " >&6; }
21213 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21214 $as_echo_n "(cached) " >&6
21215 else
21216 case $gcc_cv_as in
21217 [\\/]* | ?:[\\/]*)
21218 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21222 for as_dir in $PATH
21224 IFS=$as_save_IFS
21225 test -z "$as_dir" && as_dir=.
21226 for ac_exec_ext in '' $ac_executable_extensions; do
21227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21228 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21230 break 2
21232 done
21233 done
21234 IFS=$as_save_IFS
21237 esac
21239 gcc_cv_as=$ac_cv_path_gcc_cv_as
21240 if test -n "$gcc_cv_as"; then
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21242 $as_echo "$gcc_cv_as" >&6; }
21243 else
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21245 $as_echo "no" >&6; }
21252 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21254 case "$ORIGINAL_AS_FOR_TARGET" in
21255 ./as | ./as$build_exeext) ;;
21256 *) ac_config_files="$ac_config_files as:exec-tool.in"
21258 esac
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21261 $as_echo_n "checking what assembler to use... " >&6; }
21262 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21263 # Single tree build which includes gas. We want to prefer it
21264 # over whatever linker top-level may have detected, since
21265 # we'll use what we're building after installation anyway.
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21267 $as_echo "newly built gas" >&6; }
21268 in_tree_gas=yes
21269 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21270 for f in $gcc_cv_as_bfd_srcdir/configure \
21271 $gcc_cv_as_gas_srcdir/configure \
21272 $gcc_cv_as_gas_srcdir/configure.in \
21273 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21274 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21275 if test x$gcc_cv_gas_version != x; then
21276 break
21278 done
21279 case $gcc_cv_gas_version in
21280 VERSION=[0-9]*) ;;
21281 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21282 esac
21283 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21284 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21285 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21286 case $gcc_cv_gas_patch_version in
21287 "") gcc_cv_gas_patch_version="0" ;;
21288 esac
21289 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21290 + $gcc_cv_gas_minor_version \) \* 1000 \
21291 + $gcc_cv_gas_patch_version`
21293 in_tree_gas_is_elf=no
21294 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21295 || (grep 'obj_format = multi' ../gas/Makefile \
21296 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21297 then
21298 in_tree_gas_is_elf=yes
21300 else
21301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21302 $as_echo "$gcc_cv_as" >&6; }
21303 in_tree_gas=no
21306 # Identify the linker which will work hand-in-glove with the newly
21307 # built GCC, so that we can examine its features. This is the linker
21308 # which will be driven by the driver program.
21310 # If build != host, and we aren't building gas in-tree, we identify a
21311 # build->target linker and hope that it will have the same features
21312 # as the host->target linker we'll be using.
21313 gcc_cv_gld_major_version=
21314 gcc_cv_gld_minor_version=
21315 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21316 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21318 if test "${gcc_cv_ld+set}" = set; then :
21320 else
21322 if test -x "$DEFAULT_LINKER"; then
21323 gcc_cv_ld="$DEFAULT_LINKER"
21324 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21325 && test -f ../ld/Makefile \
21326 && test x$build = x$host; then
21327 gcc_cv_ld=../ld/ld-new$build_exeext
21328 elif test -x collect-ld$build_exeext; then
21329 # Build using linker in the current directory.
21330 gcc_cv_ld=./collect-ld$build_exeext
21331 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21332 gcc_cv_ld="$LD_FOR_TARGET"
21333 else
21334 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21335 set dummy $LD_FOR_TARGET; ac_word=$2
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21337 $as_echo_n "checking for $ac_word... " >&6; }
21338 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21339 $as_echo_n "(cached) " >&6
21340 else
21341 case $gcc_cv_ld in
21342 [\\/]* | ?:[\\/]*)
21343 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21347 for as_dir in $PATH
21349 IFS=$as_save_IFS
21350 test -z "$as_dir" && as_dir=.
21351 for ac_exec_ext in '' $ac_executable_extensions; do
21352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21353 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21355 break 2
21357 done
21358 done
21359 IFS=$as_save_IFS
21362 esac
21364 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21365 if test -n "$gcc_cv_ld"; then
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21367 $as_echo "$gcc_cv_ld" >&6; }
21368 else
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21370 $as_echo "no" >&6; }
21377 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21378 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21379 # if the PLUGIN_LD is set ld-new, just have it as ld
21380 # as that is the installed named.
21381 if test x$PLUGIN_LD_SUFFIX == xld-new \
21382 || test x$PLUGIN_LD_SUFFIX == xcollect-ld ; then
21383 PLUGIN_LD_SUFFIX=ld
21386 # Check whether --with-plugin-ld was given.
21387 if test "${with_plugin_ld+set}" = set; then :
21388 withval=$with_plugin_ld; if test x"$withval" != x; then
21389 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21390 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21396 cat >>confdefs.h <<_ACEOF
21397 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21398 _ACEOF
21401 # Check to see if we are using gold instead of ld
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21403 $as_echo_n "checking whether we are using gold... " >&6; }
21404 ld_is_gold=no
21405 if test x$gcc_cv_ld != x; then
21406 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21407 | grep "GNU gold" > /dev/null; then
21408 ld_is_gold=yes
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21412 $as_echo "$ld_is_gold" >&6; }
21414 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21416 case "$ORIGINAL_LD_FOR_TARGET" in
21417 ./collect-ld | ./collect-ld$build_exeext) ;;
21418 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21420 esac
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21423 $as_echo_n "checking what linker to use... " >&6; }
21424 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21425 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21426 # Single tree build which includes ld. We want to prefer it
21427 # over whatever linker top-level may have detected, since
21428 # we'll use what we're building after installation anyway.
21429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21430 $as_echo "newly built ld" >&6; }
21431 in_tree_ld=yes
21432 in_tree_ld_is_elf=no
21433 if (grep 'EMUL = .*elf' ../ld/Makefile \
21434 || grep 'EMUL = .*linux' ../ld/Makefile \
21435 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21436 in_tree_ld_is_elf=yes
21437 elif test "$ld_is_gold" = yes; then
21438 in_tree_ld_is_elf=yes
21440 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
21442 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21443 if test x$gcc_cv_gld_version != x; then
21444 break
21446 done
21447 case $gcc_cv_gld_version in
21448 VERSION=[0-9]*) ;;
21449 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21450 esac
21451 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21452 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21453 else
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21455 $as_echo "$gcc_cv_ld" >&6; }
21456 in_tree_ld=no
21459 # Figure out what nm we will be using.
21460 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21461 if test "${gcc_cv_nm+set}" = set; then :
21463 else
21465 if test -f $gcc_cv_binutils_srcdir/configure.in \
21466 && test -f ../binutils/Makefile \
21467 && test x$build = x$host; then
21468 gcc_cv_nm=../binutils/nm-new$build_exeext
21469 elif test -x nm$build_exeext; then
21470 gcc_cv_nm=./nm$build_exeext
21471 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21472 gcc_cv_nm="$NM_FOR_TARGET"
21473 else
21474 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21475 set dummy $NM_FOR_TARGET; ac_word=$2
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21477 $as_echo_n "checking for $ac_word... " >&6; }
21478 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21479 $as_echo_n "(cached) " >&6
21480 else
21481 case $gcc_cv_nm in
21482 [\\/]* | ?:[\\/]*)
21483 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21487 for as_dir in $PATH
21489 IFS=$as_save_IFS
21490 test -z "$as_dir" && as_dir=.
21491 for ac_exec_ext in '' $ac_executable_extensions; do
21492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21493 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21495 break 2
21497 done
21498 done
21499 IFS=$as_save_IFS
21502 esac
21504 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21505 if test -n "$gcc_cv_nm"; then
21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21507 $as_echo "$gcc_cv_nm" >&6; }
21508 else
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21510 $as_echo "no" >&6; }
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21518 $as_echo_n "checking what nm to use... " >&6; }
21519 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21520 # Single tree build which includes binutils.
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21522 $as_echo "newly built nm" >&6; }
21523 in_tree_nm=yes
21524 else
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21526 $as_echo "$gcc_cv_nm" >&6; }
21527 in_tree_nm=no
21530 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21532 case "$ORIGINAL_NM_FOR_TARGET" in
21533 ./nm | ./nm$build_exeext) ;;
21534 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21536 esac
21539 # Figure out what objdump we will be using.
21540 if test "${gcc_cv_objdump+set}" = set; then :
21542 else
21544 if test -f $gcc_cv_binutils_srcdir/configure.in \
21545 && test -f ../binutils/Makefile \
21546 && test x$build = x$host; then
21547 # Single tree build which includes binutils.
21548 gcc_cv_objdump=../binutils/objdump$build_exeext
21549 elif test -x objdump$build_exeext; then
21550 gcc_cv_objdump=./objdump$build_exeext
21551 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21552 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21553 else
21554 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21555 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21557 $as_echo_n "checking for $ac_word... " >&6; }
21558 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21559 $as_echo_n "(cached) " >&6
21560 else
21561 case $gcc_cv_objdump in
21562 [\\/]* | ?:[\\/]*)
21563 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21567 for as_dir in $PATH
21569 IFS=$as_save_IFS
21570 test -z "$as_dir" && as_dir=.
21571 for ac_exec_ext in '' $ac_executable_extensions; do
21572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21573 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21575 break 2
21577 done
21578 done
21579 IFS=$as_save_IFS
21582 esac
21584 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21585 if test -n "$gcc_cv_objdump"; then
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21587 $as_echo "$gcc_cv_objdump" >&6; }
21588 else
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21590 $as_echo "no" >&6; }
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21598 $as_echo_n "checking what objdump to use... " >&6; }
21599 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21600 # Single tree build which includes binutils.
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21602 $as_echo "newly built objdump" >&6; }
21603 elif test x$gcc_cv_objdump = x; then
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21605 $as_echo "not found" >&6; }
21606 else
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21608 $as_echo "$gcc_cv_objdump" >&6; }
21611 # Figure out what readelf we will be using.
21612 if test "${gcc_cv_readelf+set}" = set; then :
21614 else
21616 if test -f $gcc_cv_binutils_srcdir/configure.in \
21617 && test -f ../binutils/Makefile \
21618 && test x$build = x$host; then
21619 # Single tree build which includes binutils.
21620 gcc_cv_readelf=../binutils/readelf$build_exeext
21621 elif test -x readelf$build_exeext; then
21622 gcc_cv_readelf=./readelf$build_exeext
21623 else
21624 # Extract the first word of "readelf", so it can be a program name with args.
21625 set dummy readelf; ac_word=$2
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21627 $as_echo_n "checking for $ac_word... " >&6; }
21628 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21629 $as_echo_n "(cached) " >&6
21630 else
21631 case $gcc_cv_readelf in
21632 [\\/]* | ?:[\\/]*)
21633 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21637 for as_dir in $PATH
21639 IFS=$as_save_IFS
21640 test -z "$as_dir" && as_dir=.
21641 for ac_exec_ext in '' $ac_executable_extensions; do
21642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21643 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21645 break 2
21647 done
21648 done
21649 IFS=$as_save_IFS
21652 esac
21654 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21655 if test -n "$gcc_cv_readelf"; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21657 $as_echo "$gcc_cv_readelf" >&6; }
21658 else
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21660 $as_echo "no" >&6; }
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21668 $as_echo_n "checking what readelf to use... " >&6; }
21669 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21670 # Single tree build which includes binutils.
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21672 $as_echo "newly built readelf" >&6; }
21673 elif test x$gcc_cv_readelf = x; then
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21675 $as_echo "not found" >&6; }
21676 else
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21678 $as_echo "$gcc_cv_readelf" >&6; }
21681 # Figure out what assembler alignment features are present.
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21683 $as_echo_n "checking assembler flags... " >&6; }
21684 if test "${gcc_cv_as_flags+set}" = set; then :
21685 $as_echo_n "(cached) " >&6
21686 else
21687 case "$target" in
21688 i[34567]86-*-linux*)
21689 gcc_cv_as_flags="--32"
21691 powerpc*-*-darwin*)
21692 gcc_cv_as_flags="-arch ppc"
21695 gcc_cv_as_flags=" "
21697 esac
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21700 $as_echo "$gcc_cv_as_flags" >&6; }
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21703 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21704 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21705 $as_echo_n "(cached) " >&6
21706 else
21707 gcc_cv_as_balign_and_p2align=no
21708 if test $in_tree_gas = yes; then
21709 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21710 then gcc_cv_as_balign_and_p2align=yes
21712 elif test x$gcc_cv_as != x; then
21713 $as_echo '.balign 4
21714 .p2align 2' > conftest.s
21715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21717 (eval $ac_try) 2>&5
21718 ac_status=$?
21719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21720 test $ac_status = 0; }; }
21721 then
21722 gcc_cv_as_balign_and_p2align=yes
21723 else
21724 echo "configure: failed program was" >&5
21725 cat conftest.s >&5
21727 rm -f conftest.o conftest.s
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21731 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21732 if test $gcc_cv_as_balign_and_p2align = yes; then
21734 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21739 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21740 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21741 $as_echo_n "(cached) " >&6
21742 else
21743 gcc_cv_as_max_skip_p2align=no
21744 if test $in_tree_gas = yes; then
21745 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21746 then gcc_cv_as_max_skip_p2align=yes
21748 elif test x$gcc_cv_as != x; then
21749 $as_echo '.p2align 4,,7' > conftest.s
21750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21752 (eval $ac_try) 2>&5
21753 ac_status=$?
21754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21755 test $ac_status = 0; }; }
21756 then
21757 gcc_cv_as_max_skip_p2align=yes
21758 else
21759 echo "configure: failed program was" >&5
21760 cat conftest.s >&5
21762 rm -f conftest.o conftest.s
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21766 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21767 if test $gcc_cv_as_max_skip_p2align = yes; then
21769 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21774 $as_echo_n "checking assembler for .literal16... " >&6; }
21775 if test "${gcc_cv_as_literal16+set}" = set; then :
21776 $as_echo_n "(cached) " >&6
21777 else
21778 gcc_cv_as_literal16=no
21779 if test $in_tree_gas = yes; then
21780 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21781 then gcc_cv_as_literal16=yes
21783 elif test x$gcc_cv_as != x; then
21784 $as_echo '.literal16' > conftest.s
21785 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21787 (eval $ac_try) 2>&5
21788 ac_status=$?
21789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21790 test $ac_status = 0; }; }
21791 then
21792 gcc_cv_as_literal16=yes
21793 else
21794 echo "configure: failed program was" >&5
21795 cat conftest.s >&5
21797 rm -f conftest.o conftest.s
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21801 $as_echo "$gcc_cv_as_literal16" >&6; }
21802 if test $gcc_cv_as_literal16 = yes; then
21804 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21809 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21810 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21811 $as_echo_n "(cached) " >&6
21812 else
21813 gcc_cv_as_subsection_m1=no
21814 if test $in_tree_gas = yes; then
21815 if test $in_tree_gas_is_elf = yes \
21816 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21817 then gcc_cv_as_subsection_m1=yes
21819 elif test x$gcc_cv_as != x; then
21820 $as_echo 'conftest_label1: .word 0
21821 .subsection -1
21822 conftest_label2: .word 0
21823 .previous' > conftest.s
21824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21826 (eval $ac_try) 2>&5
21827 ac_status=$?
21828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21829 test $ac_status = 0; }; }
21830 then
21831 if test x$gcc_cv_nm != x; then
21832 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21833 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21834 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21835 then :
21836 else gcc_cv_as_subsection_m1=yes
21838 rm -f conftest.nm1 conftest.nm2
21840 else
21841 echo "configure: failed program was" >&5
21842 cat conftest.s >&5
21844 rm -f conftest.o conftest.s
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21848 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21849 if test $gcc_cv_as_subsection_m1 = yes; then
21851 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21856 $as_echo_n "checking assembler for .weak... " >&6; }
21857 if test "${gcc_cv_as_weak+set}" = set; then :
21858 $as_echo_n "(cached) " >&6
21859 else
21860 gcc_cv_as_weak=no
21861 if test $in_tree_gas = yes; then
21862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21863 then gcc_cv_as_weak=yes
21865 elif test x$gcc_cv_as != x; then
21866 $as_echo ' .weak foobar' > conftest.s
21867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21869 (eval $ac_try) 2>&5
21870 ac_status=$?
21871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21872 test $ac_status = 0; }; }
21873 then
21874 gcc_cv_as_weak=yes
21875 else
21876 echo "configure: failed program was" >&5
21877 cat conftest.s >&5
21879 rm -f conftest.o conftest.s
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21883 $as_echo "$gcc_cv_as_weak" >&6; }
21884 if test $gcc_cv_as_weak = yes; then
21886 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21891 $as_echo_n "checking assembler for .weakref... " >&6; }
21892 if test "${gcc_cv_as_weakref+set}" = set; then :
21893 $as_echo_n "(cached) " >&6
21894 else
21895 gcc_cv_as_weakref=no
21896 if test $in_tree_gas = yes; then
21897 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21898 then gcc_cv_as_weakref=yes
21900 elif test x$gcc_cv_as != x; then
21901 $as_echo ' .weakref foobar, barfnot' > conftest.s
21902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21904 (eval $ac_try) 2>&5
21905 ac_status=$?
21906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21907 test $ac_status = 0; }; }
21908 then
21909 gcc_cv_as_weakref=yes
21910 else
21911 echo "configure: failed program was" >&5
21912 cat conftest.s >&5
21914 rm -f conftest.o conftest.s
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21918 $as_echo "$gcc_cv_as_weakref" >&6; }
21919 if test $gcc_cv_as_weakref = yes; then
21921 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21926 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21927 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21928 $as_echo_n "(cached) " >&6
21929 else
21930 gcc_cv_as_nsubspa_comdat=no
21931 if test $in_tree_gas = yes; then
21932 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21933 then gcc_cv_as_nsubspa_comdat=yes
21935 elif test x$gcc_cv_as != x; then
21936 $as_echo ' .SPACE $TEXT$
21937 .NSUBSPA $CODE$,COMDAT' > conftest.s
21938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21940 (eval $ac_try) 2>&5
21941 ac_status=$?
21942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21943 test $ac_status = 0; }; }
21944 then
21945 gcc_cv_as_nsubspa_comdat=yes
21946 else
21947 echo "configure: failed program was" >&5
21948 cat conftest.s >&5
21950 rm -f conftest.o conftest.s
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21954 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21955 if test $gcc_cv_as_nsubspa_comdat = yes; then
21957 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21961 # .hidden needs to be supported in both the assembler and the linker,
21962 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21963 # This is irritatingly difficult to feature test for; we have to check the
21964 # date string after the version number. If we've got an in-tree
21965 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21966 # to be safe.
21967 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21969 $as_echo_n "checking assembler for .hidden... " >&6; }
21970 if test "${gcc_cv_as_hidden+set}" = set; then :
21971 $as_echo_n "(cached) " >&6
21972 else
21973 gcc_cv_as_hidden=no
21974 if test $in_tree_gas = yes; then
21975 if test $in_tree_gas_is_elf = yes \
21976 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21977 then gcc_cv_as_hidden=yes
21979 elif test x$gcc_cv_as != x; then
21980 $as_echo ' .hidden foobar
21981 foobar:' > conftest.s
21982 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21984 (eval $ac_try) 2>&5
21985 ac_status=$?
21986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21987 test $ac_status = 0; }; }
21988 then
21990 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21991 # STV_HIDDEN, so disable .hidden support if so.
21992 case "${target}" in
21993 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
21994 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21995 cat > conftest.s <<EOF
21996 .globl hidden
21997 .hidden hidden
21998 hidden:
21999 .globl default
22000 .set default,hidden
22002 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22003 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22004 grep '\.hidden default' > /dev/null; then
22005 gcc_cv_as_hidden=no
22006 else
22007 gcc_cv_as_hidden=yes
22009 else
22010 # Assume bug is present if objdump is missing.
22011 gcc_cv_as_hidden=no
22015 gcc_cv_as_hidden=yes
22017 esac
22018 else
22019 echo "configure: failed program was" >&5
22020 cat conftest.s >&5
22022 rm -f conftest.o conftest.s
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22026 $as_echo "$gcc_cv_as_hidden" >&6; }
22028 case "${target}" in
22029 *-*-darwin*)
22030 # Darwin as has some visibility support, though with a different syntax.
22031 gcc_cv_as_hidden=yes
22033 esac
22035 # gnu_indirect_function type is an extension proposed at
22036 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22037 # selection of function implementation
22038 # Check whether --enable-gnu-indirect-function was given.
22039 if test "${enable_gnu_indirect_function+set}" = set; then :
22040 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22041 yes | no) ;;
22042 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22043 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22044 esac
22045 else
22046 enable_gnu_indirect_function="$default_gnu_indirect_function"
22049 if test x$enable_gnu_indirect_function = xyes; then
22051 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22055 if test $in_tree_ld != yes ; then
22056 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22057 if echo "$ld_ver" | grep GNU > /dev/null; then
22058 if test x"$ld_is_gold" = xyes; then
22059 # GNU gold --version looks like this:
22061 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22063 # We extract the binutils version which is more familiar and specific
22064 # than the gold version.
22065 ld_vers=`echo $ld_ver | sed -n \
22066 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22067 else
22068 # GNU ld --version looks like this:
22070 # GNU ld (GNU Binutils) 2.21.51.20110225
22071 ld_vers=`echo $ld_ver | sed -n \
22072 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22074 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'`
22075 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22076 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22077 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22078 else
22079 case "${target}" in
22080 *-*-solaris2*)
22081 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22082 # format.
22084 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22085 # /usr/ccs/bin/ld has been configured.
22086 ld_ver=`$gcc_cv_ld -V 2>&1`
22087 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22088 ld_vers=`echo $ld_ver | sed -n \
22089 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22090 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22091 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22094 esac
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22099 $as_echo_n "checking linker for .hidden support... " >&6; }
22100 if test "${gcc_cv_ld_hidden+set}" = set; then :
22101 $as_echo_n "(cached) " >&6
22102 else
22103 if test $in_tree_ld = yes ; then
22104 gcc_cv_ld_hidden=no
22105 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 \
22106 && test $in_tree_ld_is_elf = yes; then
22107 gcc_cv_ld_hidden=yes
22109 else
22110 gcc_cv_ld_hidden=yes
22111 if test x"$ld_is_gold" = xyes; then
22113 elif echo "$ld_ver" | grep GNU > /dev/null; then
22114 case "${target}" in
22115 mmix-knuth-mmixware)
22116 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22117 gcc_cv_ld_hidden=no
22119 esac
22120 if test 0"$ld_date" -lt 20020404; then
22121 if test -n "$ld_date"; then
22122 # If there was date string, but was earlier than 2002-04-04, fail
22123 gcc_cv_ld_hidden=no
22124 elif test -z "$ld_vers"; then
22125 # If there was no date string nor ld version number, something is wrong
22126 gcc_cv_ld_hidden=no
22127 else
22128 test -z "$ld_vers_patch" && ld_vers_patch=0
22129 if test "$ld_vers_major" -lt 2; then
22130 gcc_cv_ld_hidden=no
22131 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22132 gcc_cv_ld_hidden="no"
22133 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22134 gcc_cv_ld_hidden=no
22138 else
22139 case "${target}" in
22140 *-*-darwin*)
22141 # Darwin ld has some visibility support.
22142 gcc_cv_ld_hidden=yes
22144 hppa64*-*-hpux* | ia64*-*-hpux*)
22145 gcc_cv_ld_hidden=yes
22147 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22148 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22149 # .symbolic was only added in Solaris 9 12/02.
22150 gcc_cv_ld_hidden=yes
22153 gcc_cv_ld_hidden=no
22155 esac
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22160 $as_echo "$gcc_cv_ld_hidden" >&6; }
22161 libgcc_visibility=no
22164 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22165 libgcc_visibility=yes
22167 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22172 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22173 gcc_cv_ld_ro_rw_mix=unknown
22174 if test $in_tree_ld = yes ; then
22175 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 \
22176 && test $in_tree_ld_is_elf = yes; then
22177 gcc_cv_ld_ro_rw_mix=read-write
22179 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22180 echo '.section myfoosect, "a"' > conftest1.s
22181 echo '.section myfoosect, "aw"' > conftest2.s
22182 echo '.byte 1' >> conftest2.s
22183 echo '.section myfoosect, "a"' > conftest3.s
22184 echo '.byte 0' >> conftest3.s
22185 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22186 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22187 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22188 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22189 conftest2.o conftest3.o > /dev/null 2>&1; then
22190 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22191 | sed -e '/myfoosect/!d' -e N`
22192 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22193 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22194 gcc_cv_ld_ro_rw_mix=read-only
22195 else
22196 gcc_cv_ld_ro_rw_mix=read-write
22200 rm -f conftest.* conftest[123].*
22202 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22204 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22208 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22210 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22211 case "${target}" in
22212 *-*-solaris2*)
22214 # Solaris 2 ld -V output looks like this for a regular version:
22216 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22218 # but test versions add stuff at the end:
22220 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22222 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22223 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22224 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22225 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22226 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22227 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22230 esac
22233 # Check whether --enable-initfini-array was given.
22234 if test "${enable_initfini_array+set}" = set; then :
22235 enableval=$enable_initfini_array;
22236 else
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22239 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22240 if test "${gcc_cv_initfini_array+set}" = set; then :
22241 $as_echo_n "(cached) " >&6
22242 else
22243 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22244 case "${target}" in
22245 ia64-*)
22246 if test "$cross_compiling" = yes; then :
22247 gcc_cv_initfini_array=no
22248 else
22249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22250 /* end confdefs.h. */
22252 #ifndef __ELF__
22253 #error Not an ELF OS
22254 #endif
22255 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22256 if it can be used. */
22257 static int x = -1;
22258 int main (void) { return x; }
22259 int foo (void) { x = 0; }
22260 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22262 _ACEOF
22263 if ac_fn_c_try_run "$LINENO"; then :
22264 gcc_cv_initfini_array=yes
22265 else
22266 gcc_cv_initfini_array=no
22268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22269 conftest.$ac_objext conftest.beam conftest.$ac_ext
22273 gcc_cv_initfini_array=no
22274 if test $in_tree_ld = yes ; then
22275 if test "$gcc_cv_gld_major_version" -eq 2 \
22276 -a "$gcc_cv_gld_minor_version" -ge 22 \
22277 -o "$gcc_cv_gld_major_version" -gt 2 \
22278 && test $in_tree_ld_is_elf = yes; then
22279 gcc_cv_initfini_array=yes
22281 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22282 cat > conftest.s <<\EOF
22283 .section .dtors,"a",%progbits
22284 .balign 4
22285 .byte 'A', 'A', 'A', 'A'
22286 .section .ctors,"a",%progbits
22287 .balign 4
22288 .byte 'B', 'B', 'B', 'B'
22289 .section .fini_array.65530,"a",%progbits
22290 .balign 4
22291 .byte 'C', 'C', 'C', 'C'
22292 .section .init_array.65530,"a",%progbits
22293 .balign 4
22294 .byte 'D', 'D', 'D', 'D'
22295 .section .dtors.64528,"a",%progbits
22296 .balign 4
22297 .byte 'E', 'E', 'E', 'E'
22298 .section .ctors.64528,"a",%progbits
22299 .balign 4
22300 .byte 'F', 'F', 'F', 'F'
22301 .section .fini_array.01005,"a",%progbits
22302 .balign 4
22303 .byte 'G', 'G', 'G', 'G'
22304 .section .init_array.01005,"a",%progbits
22305 .balign 4
22306 .byte 'H', 'H', 'H', 'H'
22307 .text
22308 .globl _start
22309 _start:
22311 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22312 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22313 && $gcc_cv_objdump -s -j .init_array conftest \
22314 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22315 && $gcc_cv_objdump -s -j .fini_array conftest \
22316 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22317 gcc_cv_initfini_array=yes
22319 rm -f conftest conftest.*
22321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322 /* end confdefs.h. */
22324 #ifndef __ELF__
22325 # error Not an ELF OS
22326 #endif
22327 #include <stdlib.h>
22328 #if defined __GLIBC_PREREQ
22329 # if __GLIBC_PREREQ (2, 4)
22330 # else
22331 # error GLIBC 2.4 required
22332 # endif
22333 #else
22334 # if defined __sun__ && defined __svr4__
22335 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22336 # else
22337 # error The C library not known to support .init_array/.fini_array
22338 # endif
22339 #endif
22341 _ACEOF
22342 if ac_fn_c_try_cpp "$LINENO"; then :
22344 else
22345 gcc_cv_initfini_array=no
22347 rm -f conftest.err conftest.$ac_ext;;
22348 esac
22349 else
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22351 $as_echo_n "checking cross compile... guessing... " >&6; }
22352 gcc_cv_initfini_array=no
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22356 $as_echo "$gcc_cv_initfini_array" >&6; }
22357 enable_initfini_array=$gcc_cv_initfini_array
22361 if test $enable_initfini_array = yes; then
22363 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22367 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22369 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22370 if test "${gcc_cv_as_leb128+set}" = set; then :
22371 $as_echo_n "(cached) " >&6
22372 else
22373 gcc_cv_as_leb128=no
22374 if test $in_tree_gas = yes; then
22375 if test $in_tree_gas_is_elf = yes \
22376 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22377 then gcc_cv_as_leb128=yes
22379 elif test x$gcc_cv_as != x; then
22380 $as_echo ' .data
22381 .uleb128 L2 - L1
22383 .uleb128 1280
22384 .sleb128 -1010
22385 L2:' > conftest.s
22386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22388 (eval $ac_try) 2>&5
22389 ac_status=$?
22390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22391 test $ac_status = 0; }; }
22392 then
22393 # GAS versions before 2.11 do not support uleb128,
22394 # despite appearing to.
22395 # ??? There exists an elf-specific test that will crash
22396 # the assembler. Perhaps it's better to figure out whether
22397 # arbitrary sections are supported and try the test.
22398 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22399 if echo "$as_ver" | grep GNU > /dev/null; then
22400 as_vers=`echo $as_ver | sed -n \
22401 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22402 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22403 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22404 if test $as_major -eq 2 && test $as_minor -lt 11
22405 then :
22406 else gcc_cv_as_leb128=yes
22409 else
22410 echo "configure: failed program was" >&5
22411 cat conftest.s >&5
22413 rm -f conftest.o conftest.s
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22417 $as_echo "$gcc_cv_as_leb128" >&6; }
22418 if test $gcc_cv_as_leb128 = yes; then
22420 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22424 # Check if we have assembler support for unwind directives.
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22426 $as_echo_n "checking assembler for cfi directives... " >&6; }
22427 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22428 $as_echo_n "(cached) " >&6
22429 else
22430 gcc_cv_as_cfi_directive=no
22431 if test x$gcc_cv_as != x; then
22432 $as_echo ' .text
22433 .cfi_startproc
22434 .cfi_offset 0, 0
22435 .cfi_same_value 1
22436 .cfi_def_cfa 1, 2
22437 .cfi_escape 1, 2, 3, 4, 5
22438 .cfi_endproc' > conftest.s
22439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22441 (eval $ac_try) 2>&5
22442 ac_status=$?
22443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22444 test $ac_status = 0; }; }
22445 then
22446 case "$target" in
22447 *-*-solaris*)
22448 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22449 # read-only and read-write sections, we need to make sure that the
22450 # assembler used emits read-write .eh_frame sections.
22451 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22452 if test "x$gcc_cv_objdump" != x; then
22453 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22454 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22455 gcc_cv_as_cfi_directive=no
22456 else
22457 case "$target" in
22458 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22459 # On Solaris/x86, make sure that GCC and gas agree on using
22460 # read-only .eh_frame sections for 64-bit.
22461 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22462 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22463 sed -e /.eh_frame/!d -e N | \
22464 grep READONLY > /dev/null; then
22465 gcc_cv_as_cfi_directive=yes
22466 else
22467 gcc_cv_as_cfi_directive=no
22471 gcc_cv_as_cfi_directive=yes
22473 esac
22475 else
22476 # no objdump, err on the side of caution
22477 gcc_cv_as_cfi_directive=no
22479 else
22480 gcc_cv_as_cfi_directive=yes
22483 *-*-*)
22484 gcc_cv_as_cfi_directive=yes
22486 esac
22487 else
22488 echo "configure: failed program was" >&5
22489 cat conftest.s >&5
22491 rm -f conftest.o conftest.s
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22495 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22497 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22499 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22500 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22501 $as_echo_n "(cached) " >&6
22502 else
22503 gcc_cv_as_cfi_advance_working=no
22504 if test x$gcc_cv_as != x; then
22505 $as_echo ' .text
22506 .cfi_startproc
22507 .cfi_adjust_cfa_offset 64
22508 .skip 75040, 0
22509 .cfi_adjust_cfa_offset 128
22510 .cfi_endproc' > conftest.s
22511 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22513 (eval $ac_try) 2>&5
22514 ac_status=$?
22515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22516 test $ac_status = 0; }; }
22517 then
22519 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22520 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22521 gcc_cv_as_cfi_advance_working=yes
22524 else
22525 echo "configure: failed program was" >&5
22526 cat conftest.s >&5
22528 rm -f conftest.o conftest.s
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22532 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22534 else
22535 # no objdump, err on the side of caution
22536 gcc_cv_as_cfi_advance_working=no
22540 cat >>confdefs.h <<_ACEOF
22541 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22542 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22543 _ACEOF
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22548 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22549 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22550 $as_echo_n "(cached) " >&6
22551 else
22552 gcc_cv_as_cfi_personality_directive=no
22553 if test x$gcc_cv_as != x; then
22554 $as_echo ' .text
22555 .cfi_startproc
22556 .cfi_personality 0, symbol
22557 .cfi_endproc' > conftest.s
22558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22563 test $ac_status = 0; }; }
22564 then
22565 gcc_cv_as_cfi_personality_directive=yes
22566 else
22567 echo "configure: failed program was" >&5
22568 cat conftest.s >&5
22570 rm -f conftest.o conftest.s
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22574 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22577 cat >>confdefs.h <<_ACEOF
22578 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22579 then echo 1; else echo 0; fi`
22580 _ACEOF
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22584 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22585 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22586 $as_echo_n "(cached) " >&6
22587 else
22588 gcc_cv_as_cfi_sections_directive=no
22589 if test x$gcc_cv_as != x; then
22590 $as_echo ' .text
22591 .cfi_sections .debug_frame, .eh_frame
22592 .cfi_startproc
22593 .cfi_endproc' > conftest.s
22594 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22596 (eval $ac_try) 2>&5
22597 ac_status=$?
22598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22599 test $ac_status = 0; }; }
22600 then
22601 case $target_os in
22602 win32 | pe | cygwin* | mingw32* | uwin*)
22603 # Need to check that we generated the correct relocation for the
22604 # .debug_frame section. This was fixed for binutils 2.21.
22605 gcc_cv_as_cfi_sections_directive=no
22606 if test "x$gcc_cv_objdump" != x; then
22607 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22608 grep secrel > /dev/null; then
22609 gcc_cv_as_cfi_sections_directive=yes
22614 gcc_cv_as_cfi_sections_directive=yes
22616 esac
22617 else
22618 echo "configure: failed program was" >&5
22619 cat conftest.s >&5
22621 rm -f conftest.o conftest.s
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22625 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22629 cat >>confdefs.h <<_ACEOF
22630 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22631 then echo 1; else echo 0; fi`
22632 _ACEOF
22635 # GAS versions up to and including 2.11.0 may mis-optimize
22636 # .eh_frame data.
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22638 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22639 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22640 $as_echo_n "(cached) " >&6
22641 else
22642 gcc_cv_as_eh_frame=no
22643 if test $in_tree_gas = yes; then
22644 if test $in_tree_gas_is_elf = yes \
22645 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22646 then gcc_cv_as_eh_frame=yes
22648 elif test x$gcc_cv_as != x; then
22649 $as_echo ' .text
22650 .LFB1:
22651 .4byte 0
22652 .L1:
22653 .4byte 0
22654 .LFE1:
22655 .section .eh_frame,"aw",@progbits
22656 __FRAME_BEGIN__:
22657 .4byte .LECIE1-.LSCIE1
22658 .LSCIE1:
22659 .4byte 0x0
22660 .byte 0x1
22661 .ascii "z\0"
22662 .byte 0x1
22663 .byte 0x78
22664 .byte 0x1a
22665 .byte 0x0
22666 .byte 0x4
22667 .4byte 1
22668 .p2align 1
22669 .LECIE1:
22670 .LSFDE1:
22671 .4byte .LEFDE1-.LASFDE1
22672 .LASFDE1:
22673 .4byte .LASFDE1-__FRAME_BEGIN__
22674 .4byte .LFB1
22675 .4byte .LFE1-.LFB1
22676 .byte 0x4
22677 .4byte .LFE1-.LFB1
22678 .byte 0x4
22679 .4byte .L1-.LFB1
22680 .LEFDE1:' > conftest.s
22681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22683 (eval $ac_try) 2>&5
22684 ac_status=$?
22685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22686 test $ac_status = 0; }; }
22687 then
22688 cat > conftest.lit <<EOF
22689 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22690 0010 01000000 12000000 18000000 00000000 ................
22691 0020 08000000 04080000 0044 .........D
22693 cat > conftest.big <<EOF
22694 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22695 0010 00000001 00000012 00000018 00000000 ................
22696 0020 00000008 04000000 0844 .........D
22698 # If the assembler didn't choke, and we can objdump,
22699 # and we got the correct data, then succeed.
22700 # The text in the here-document typically retains its unix-style line
22701 # endings, while the output of objdump will use host line endings.
22702 # Therefore, use diff -b for the comparisons.
22703 if test x$gcc_cv_objdump != x \
22704 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22705 | tail -3 > conftest.got \
22706 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22707 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22708 then
22709 gcc_cv_as_eh_frame=yes
22710 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22712 (eval $ac_try) 2>&5
22713 ac_status=$?
22714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22715 test $ac_status = 0; }; }; then
22716 gcc_cv_as_eh_frame=buggy
22717 else
22718 # Uh oh, what do we do now?
22719 gcc_cv_as_eh_frame=no
22721 else
22722 echo "configure: failed program was" >&5
22723 cat conftest.s >&5
22725 rm -f conftest.o conftest.s
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22729 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22732 if test $gcc_cv_as_eh_frame = buggy; then
22734 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22739 $as_echo_n "checking assembler for section merging support... " >&6; }
22740 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22741 $as_echo_n "(cached) " >&6
22742 else
22743 gcc_cv_as_shf_merge=no
22744 if test $in_tree_gas = yes; then
22745 if test $in_tree_gas_is_elf = yes \
22746 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22747 then gcc_cv_as_shf_merge=yes
22749 elif test x$gcc_cv_as != x; then
22750 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22751 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22753 (eval $ac_try) 2>&5
22754 ac_status=$?
22755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22756 test $ac_status = 0; }; }
22757 then
22758 gcc_cv_as_shf_merge=yes
22759 else
22760 echo "configure: failed program was" >&5
22761 cat conftest.s >&5
22763 rm -f conftest.o conftest.s
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22767 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22769 if test $gcc_cv_as_shf_merge = no; then
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22771 $as_echo_n "checking assembler for section merging support... " >&6; }
22772 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22773 $as_echo_n "(cached) " >&6
22774 else
22775 gcc_cv_as_shf_merge=no
22776 if test $in_tree_gas = yes; then
22777 if test $in_tree_gas_is_elf = yes \
22778 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22779 then gcc_cv_as_shf_merge=yes
22781 elif test x$gcc_cv_as != x; then
22782 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22785 (eval $ac_try) 2>&5
22786 ac_status=$?
22787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22788 test $ac_status = 0; }; }
22789 then
22790 gcc_cv_as_shf_merge=yes
22791 else
22792 echo "configure: failed program was" >&5
22793 cat conftest.s >&5
22795 rm -f conftest.o conftest.s
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22799 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22803 cat >>confdefs.h <<_ACEOF
22804 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22805 _ACEOF
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22809 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22810 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22811 $as_echo_n "(cached) " >&6
22812 else
22813 gcc_cv_as_comdat_group=no
22814 if test $in_tree_gas = yes; then
22815 if test $in_tree_gas_is_elf = yes \
22816 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22817 then gcc_cv_as_comdat_group=yes
22819 elif test x$gcc_cv_as != x; then
22820 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22821 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22823 (eval $ac_try) 2>&5
22824 ac_status=$?
22825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22826 test $ac_status = 0; }; }
22827 then
22828 gcc_cv_as_comdat_group=yes
22829 else
22830 echo "configure: failed program was" >&5
22831 cat conftest.s >&5
22833 rm -f conftest.o conftest.s
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22837 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22839 if test $gcc_cv_as_comdat_group = yes; then
22840 gcc_cv_as_comdat_group_percent=no
22841 gcc_cv_as_comdat_group_group=no
22842 else
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22844 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22845 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22846 $as_echo_n "(cached) " >&6
22847 else
22848 gcc_cv_as_comdat_group_percent=no
22849 if test $in_tree_gas = yes; then
22850 if test $in_tree_gas_is_elf = yes \
22851 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22852 then gcc_cv_as_comdat_group_percent=yes
22854 elif test x$gcc_cv_as != x; then
22855 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22856 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22858 (eval $ac_try) 2>&5
22859 ac_status=$?
22860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22861 test $ac_status = 0; }; }
22862 then
22863 gcc_cv_as_comdat_group_percent=yes
22864 else
22865 echo "configure: failed program was" >&5
22866 cat conftest.s >&5
22868 rm -f conftest.o conftest.s
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22872 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22874 if test $gcc_cv_as_comdat_group_percent = yes; then
22875 gcc_cv_as_comdat_group_group=no
22876 else
22877 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22878 gcc_cv_as_comdat_group_group=no
22880 case "${target}" in
22881 # Sun as uses a completely different syntax.
22882 *-*-solaris2*)
22883 case "${target}" in
22884 sparc*-*-solaris2*)
22885 conftest_s='
22886 .group foo,".text%foo",#comdat
22887 .section ".text%foo", #alloc,#execinstr,#progbits
22888 .globl foo
22889 foo:
22892 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22893 conftest_s='
22894 .group foo,.text%foo,#comdat
22895 .section .text%foo, "ax", @progbits
22896 .globl foo
22897 foo:
22900 esac
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22902 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22903 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22904 $as_echo_n "(cached) " >&6
22905 else
22906 gcc_cv_as_comdat_group_group=no
22907 if test x$gcc_cv_as != x; then
22908 $as_echo "$conftest_s" > conftest.s
22909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22911 (eval $ac_try) 2>&5
22912 ac_status=$?
22913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22914 test $ac_status = 0; }; }
22915 then
22916 gcc_cv_as_comdat_group_group=yes
22917 else
22918 echo "configure: failed program was" >&5
22919 cat conftest.s >&5
22921 rm -f conftest.o conftest.s
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22925 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22928 esac
22931 if test x"$ld_is_gold" = xyes; then
22932 comdat_group=yes
22933 elif test $in_tree_ld = yes ; then
22934 comdat_group=no
22935 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 \
22936 && test $in_tree_ld_is_elf = yes; then
22937 comdat_group=yes
22939 elif echo "$ld_ver" | grep GNU > /dev/null; then
22940 comdat_group=yes
22941 if test 0"$ld_date" -lt 20050308; then
22942 if test -n "$ld_date"; then
22943 # If there was date string, but was earlier than 2005-03-08, fail
22944 comdat_group=no
22945 elif test "$ld_vers_major" -lt 2; then
22946 comdat_group=no
22947 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22948 comdat_group=no
22951 else
22952 case "${target}" in
22953 *-*-solaris2.1[1-9]*)
22954 comdat_group=no
22955 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22956 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22957 # version 1.688.
22959 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22960 # least ld version 1.2267.
22961 if test "$ld_vers_major" -gt 1; then
22962 comdat_group=yes
22963 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22964 comdat_group=yes
22965 elif test "$ld_vers_minor" -ge 2267; then
22966 comdat_group=yes
22970 # Assume linkers other than GNU ld don't support COMDAT group.
22971 comdat_group=no
22973 esac
22975 # Allow overriding the automatic COMDAT group tests above.
22976 # Check whether --enable-comdat was given.
22977 if test "${enable_comdat+set}" = set; then :
22978 enableval=$enable_comdat; comdat_group="$enable_comdat"
22981 if test $comdat_group = no; then
22982 gcc_cv_as_comdat_group=no
22983 gcc_cv_as_comdat_group_percent=no
22984 gcc_cv_as_comdat_group_group=no
22987 cat >>confdefs.h <<_ACEOF
22988 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22989 || test $gcc_cv_as_comdat_group_percent = yes \
22990 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22991 _ACEOF
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22995 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22996 if test "${gcc_cv_as_discriminator+set}" = set; then :
22997 $as_echo_n "(cached) " >&6
22998 else
22999 gcc_cv_as_discriminator=no
23000 if test $in_tree_gas = yes; then
23001 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23002 then gcc_cv_as_discriminator=yes
23004 elif test x$gcc_cv_as != x; then
23005 $as_echo ' .text
23006 .file 1 "conf.c"
23007 .loc 1 1 0 discriminator 1' > conftest.s
23008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23010 (eval $ac_try) 2>&5
23011 ac_status=$?
23012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23013 test $ac_status = 0; }; }
23014 then
23015 gcc_cv_as_discriminator=yes
23016 else
23017 echo "configure: failed program was" >&5
23018 cat conftest.s >&5
23020 rm -f conftest.o conftest.s
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23024 $as_echo "$gcc_cv_as_discriminator" >&6; }
23025 if test $gcc_cv_as_discriminator = yes; then
23027 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23031 # Thread-local storage - the check is heavily parameterized.
23032 conftest_s=
23033 tls_first_major=
23034 tls_first_minor=
23035 tls_as_opt=
23036 case "$target" in
23037 alpha*-*-*)
23038 conftest_s='
23039 .section ".tdata","awT",@progbits
23040 foo: .long 25
23041 .text
23042 ldq $27,__tls_get_addr($29) !literal!1
23043 lda $16,foo($29) !tlsgd!1
23044 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23045 ldq $27,__tls_get_addr($29) !literal!2
23046 lda $16,foo($29) !tlsldm!2
23047 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23048 ldq $1,foo($29) !gotdtprel
23049 ldah $2,foo($29) !dtprelhi
23050 lda $3,foo($2) !dtprello
23051 lda $4,foo($29) !dtprel
23052 ldq $1,foo($29) !gottprel
23053 ldah $2,foo($29) !tprelhi
23054 lda $3,foo($2) !tprello
23055 lda $4,foo($29) !tprel'
23056 tls_first_major=2
23057 tls_first_minor=13
23058 tls_as_opt=--fatal-warnings
23060 cris-*-*|crisv32-*-*)
23061 conftest_s='
23062 .section ".tdata","awT",@progbits
23063 x: .long 25
23064 .text
23065 move.d x:IE,$r10
23066 nop'
23067 tls_first_major=2
23068 tls_first_minor=20
23069 tls_as_opt=--fatal-warnings
23071 frv*-*-*)
23072 conftest_s='
23073 .section ".tdata","awT",@progbits
23074 x: .long 25
23075 .text
23076 call #gettlsoff(x)'
23077 tls_first_major=2
23078 tls_first_minor=14
23080 hppa*-*-linux*)
23081 conftest_s='
23082 t1: .reg %r20
23083 t2: .reg %r21
23084 gp: .reg %r19
23085 .section ".tdata","awT",@progbits
23086 foo: .long 25
23087 .text
23088 .align 4
23089 addil LT%foo-$tls_gdidx$,gp
23090 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23091 b __tls_get_addr
23093 addil LT%foo-$tls_ldidx$,gp
23094 b __tls_get_addr
23095 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23096 addil LR%foo-$tls_dtpoff$,%ret0
23097 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23098 mfctl %cr27,%t1
23099 addil LT%foo-$tls_ieoff$,gp
23100 ldw RT%foo-$tls_ieoff$(%r1),%t2
23101 add %t1,%t2,%t3
23102 mfctl %cr27,%t1
23103 addil LR%foo-$tls_leoff$,%t1
23104 ldo RR%foo-$tls_leoff$(%r1),%t2'
23105 tls_first_major=2
23106 tls_first_minor=15
23107 tls_as_opt=--fatal-warnings
23109 arm*-*-*)
23110 conftest_s='
23111 .section ".tdata","awT",%progbits
23112 foo: .long 25
23113 .text
23114 .word foo(gottpoff)
23115 .word foo(tpoff)
23116 .word foo(tlsgd)
23117 .word foo(tlsldm)
23118 .word foo(tlsldo)'
23119 tls_first_major=2
23120 tls_first_minor=17
23122 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23123 case "$target" in
23124 i[34567]86-*-solaris2.*)
23125 on_solaris=yes
23126 tga_func=___tls_get_addr
23128 x86_64-*-solaris2.1[0-9]*)
23129 on_solaris=yes
23130 tga_func=__tls_get_addr
23133 on_solaris=no
23135 esac
23136 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23137 conftest_s='
23138 .section .tdata,"awt",@progbits'
23139 tls_first_major=0
23140 tls_first_minor=0
23142 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23144 else
23145 conftest_s='
23146 .section ".tdata","awT",@progbits'
23147 tls_first_major=2
23148 tls_first_minor=14
23149 tls_as_opt="--fatal-warnings"
23151 conftest_s="$conftest_s
23152 foo: .long 25
23153 .text
23154 movl %gs:0, %eax
23155 leal foo@tlsgd(,%ebx,1), %eax
23156 leal foo@tlsldm(%ebx), %eax
23157 leal foo@dtpoff(%eax), %edx
23158 movl foo@gottpoff(%ebx), %eax
23159 subl foo@gottpoff(%ebx), %eax
23160 addl foo@gotntpoff(%ebx), %eax
23161 movl foo@indntpoff, %eax
23162 movl \$foo@tpoff, %eax
23163 subl \$foo@tpoff, %eax
23164 leal foo@ntpoff(%ecx), %eax"
23166 x86_64-*-*)
23167 conftest_s='
23168 .section ".tdata","awT",@progbits
23169 foo: .long 25
23170 .text
23171 movq %fs:0, %rax
23172 leaq foo@TLSGD(%rip), %rdi
23173 leaq foo@TLSLD(%rip), %rdi
23174 leaq foo@DTPOFF(%rax), %rdx
23175 movq foo@GOTTPOFF(%rip), %rax
23176 movq $foo@TPOFF, %rax'
23177 tls_first_major=2
23178 tls_first_minor=14
23179 tls_as_opt=--fatal-warnings
23181 ia64-*-*)
23182 conftest_s='
23183 .section ".tdata","awT",@progbits
23184 foo: data8 25
23185 .text
23186 addl r16 = @ltoff(@dtpmod(foo#)), gp
23187 addl r17 = @ltoff(@dtprel(foo#)), gp
23188 addl r18 = @ltoff(@tprel(foo#)), gp
23189 addl r19 = @dtprel(foo#), gp
23190 adds r21 = @dtprel(foo#), r13
23191 movl r23 = @dtprel(foo#)
23192 addl r20 = @tprel(foo#), gp
23193 adds r22 = @tprel(foo#), r13
23194 movl r24 = @tprel(foo#)'
23195 tls_first_major=2
23196 tls_first_minor=13
23197 tls_as_opt=--fatal-warnings
23199 mips*-*-*)
23200 conftest_s='
23201 .section .tdata,"awT",@progbits
23203 .word 2
23204 .text
23205 addiu $4, $28, %tlsgd(x)
23206 addiu $4, $28, %tlsldm(x)
23207 lui $4, %dtprel_hi(x)
23208 addiu $4, $4, %dtprel_lo(x)
23209 lw $4, %gottprel(x)($28)
23210 lui $4, %tprel_hi(x)
23211 addiu $4, $4, %tprel_lo(x)'
23212 tls_first_major=2
23213 tls_first_minor=16
23214 tls_as_opt='-32 --fatal-warnings'
23216 m68k-*-*)
23217 conftest_s='
23218 .section .tdata,"awT",@progbits
23220 .word 2
23221 .text
23222 foo:
23223 move.l x@TLSGD(%a5),%a0
23224 move.l x@TLSLDM(%a5),%a0
23225 move.l x@TLSLDO(%a5),%a0
23226 move.l x@TLSIE(%a5),%a0
23227 move.l x@TLSLE(%a5),%a0'
23228 tls_first_major=2
23229 tls_first_minor=19
23230 tls_as_opt='--fatal-warnings'
23232 aarch64*-*-*)
23233 conftest_s='
23234 .section ".tdata","awT",%progbits
23235 foo: .long 25
23236 .text
23237 adrp x0, :tlsgd:x
23238 add x0, x0, #:tlsgd_lo12:x
23239 bl __tls_get_addr
23240 nop'
23241 tls_first_major=2
23242 tls_first_minor=20
23243 tls_as_opt='--fatal-warnings'
23245 powerpc-*-*)
23246 conftest_s='
23247 .section ".tdata","awT",@progbits
23248 .align 2
23249 ld0: .space 4
23250 ld1: .space 4
23251 x1: .space 4
23252 x2: .space 4
23253 x3: .space 4
23254 .text
23255 addi 3,31,ld0@got@tlsgd
23256 bl __tls_get_addr
23257 addi 3,31,x1@got@tlsld
23258 bl __tls_get_addr
23259 addi 9,3,x1@dtprel
23260 addis 9,3,x2@dtprel@ha
23261 addi 9,9,x2@dtprel@l
23262 lwz 9,x3@got@tprel(31)
23263 add 9,9,x@tls
23264 addi 9,2,x1@tprel
23265 addis 9,2,x2@tprel@ha
23266 addi 9,9,x2@tprel@l'
23267 tls_first_major=2
23268 tls_first_minor=14
23269 tls_as_opt="-a32 --fatal-warnings"
23271 powerpc64-*-*)
23272 conftest_s='
23273 .section ".tdata","awT",@progbits
23274 .align 3
23275 ld0: .space 8
23276 ld1: .space 8
23277 x1: .space 8
23278 x2: .space 8
23279 x3: .space 8
23280 .text
23281 addi 3,2,ld0@got@tlsgd
23282 bl .__tls_get_addr
23284 addi 3,2,ld1@toc
23285 bl .__tls_get_addr
23287 addi 3,2,x1@got@tlsld
23288 bl .__tls_get_addr
23290 addi 9,3,x1@dtprel
23291 bl .__tls_get_addr
23293 addis 9,3,x2@dtprel@ha
23294 addi 9,9,x2@dtprel@l
23295 bl .__tls_get_addr
23297 ld 9,x3@got@dtprel(2)
23298 add 9,9,3
23299 bl .__tls_get_addr
23300 nop'
23301 tls_first_major=2
23302 tls_first_minor=14
23303 tls_as_opt="-a64 --fatal-warnings"
23305 s390-*-*)
23306 conftest_s='
23307 .section ".tdata","awT",@progbits
23308 foo: .long 25
23309 .text
23310 .long foo@TLSGD
23311 .long foo@TLSLDM
23312 .long foo@DTPOFF
23313 .long foo@NTPOFF
23314 .long foo@GOTNTPOFF
23315 .long foo@INDNTPOFF
23316 l %r1,foo@GOTNTPOFF(%r12)
23317 l %r1,0(%r1):tls_load:foo
23318 bas %r14,0(%r1,%r13):tls_gdcall:foo
23319 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23320 tls_first_major=2
23321 tls_first_minor=14
23322 tls_as_opt="-m31 --fatal-warnings"
23324 s390x-*-*)
23325 conftest_s='
23326 .section ".tdata","awT",@progbits
23327 foo: .long 25
23328 .text
23329 .quad foo@TLSGD
23330 .quad foo@TLSLDM
23331 .quad foo@DTPOFF
23332 .quad foo@NTPOFF
23333 .quad foo@GOTNTPOFF
23334 lg %r1,foo@GOTNTPOFF(%r12)
23335 larl %r1,foo@INDNTPOFF
23336 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23337 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23338 tls_first_major=2
23339 tls_first_minor=14
23340 tls_as_opt="-m64 -Aesame --fatal-warnings"
23342 sh-*-* | sh[34]-*-*)
23343 conftest_s='
23344 .section ".tdata","awT",@progbits
23345 foo: .long 25
23346 .text
23347 .long foo@TLSGD
23348 .long foo@TLSLDM
23349 .long foo@DTPOFF
23350 .long foo@GOTTPOFF
23351 .long foo@TPOFF'
23352 tls_first_major=2
23353 tls_first_minor=13
23354 tls_as_opt=--fatal-warnings
23356 sparc*-*-*)
23357 case "$target" in
23358 sparc*-sun-solaris2.*)
23359 on_solaris=yes
23360 tga_func=__tls_get_addr
23363 on_solaris=no
23365 esac
23366 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23367 conftest_s='
23368 .section ".tdata",#alloc,#write,#tls'
23369 tls_first_major=0
23370 tls_first_minor=0
23371 else
23372 conftest_s='
23373 .section ".tdata","awT",@progbits'
23374 tls_first_major=2
23375 tls_first_minor=14
23376 tls_as_opt="-32 --fatal-warnings"
23378 conftest_s="$conftest_s
23379 foo: .long 25
23380 .text
23381 sethi %tgd_hi22(foo), %o0
23382 add %o0, %tgd_lo10(foo), %o1
23383 add %l7, %o1, %o0, %tgd_add(foo)
23384 call __tls_get_addr, %tgd_call(foo)
23385 sethi %tldm_hi22(foo), %l1
23386 add %l1, %tldm_lo10(foo), %l2
23387 add %l7, %l2, %o0, %tldm_add(foo)
23388 call __tls_get_addr, %tldm_call(foo)
23389 sethi %tldo_hix22(foo), %l3
23390 xor %l3, %tldo_lox10(foo), %l4
23391 add %o0, %l4, %l5, %tldo_add(foo)
23392 sethi %tie_hi22(foo), %o3
23393 add %o3, %tie_lo10(foo), %o3
23394 ld [%l7 + %o3], %o2, %tie_ld(foo)
23395 add %g7, %o2, %o4, %tie_add(foo)
23396 sethi %tle_hix22(foo), %l1
23397 xor %l1, %tle_lox10(foo), %o5
23398 ld [%g7 + %o5], %o1"
23400 tilepro*-*-*)
23401 conftest_s='
23402 .section ".tdata","awT",@progbits
23403 foo: .long 25
23404 .text
23405 addli r0, zero, tls_gd(foo)
23406 auli r0, zero, tls_gd_ha16(foo)
23407 addli r0, r0, tls_gd_lo16(foo)
23408 jal __tls_get_addr
23409 addli r0, zero, tls_ie(foo)
23410 auli r0, r0, tls_ie_ha16(foo)
23411 addli r0, r0, tls_ie_lo16(foo)'
23412 tls_first_major=2
23413 tls_first_minor=22
23414 tls_as_opt="--fatal-warnings"
23416 tilegx*-*-*)
23417 conftest_s='
23418 .section ".tdata","awT",@progbits
23419 foo: .long 25
23420 .text
23421 shl16insli r0, zero, hw0_last_tls_gd(foo)
23422 shl16insli r0, zero, hw1_last_tls_gd(foo)
23423 shl16insli r0, r0, hw0_tls_gd(foo)
23424 jal __tls_get_addr
23425 shl16insli r0, zero, hw1_last_tls_ie(foo)
23426 shl16insli r0, r0, hw0_tls_ie(foo)'
23427 tls_first_major=2
23428 tls_first_minor=22
23429 tls_as_opt="--fatal-warnings"
23431 xtensa*-*-*)
23432 conftest_s='
23433 .section ".tdata","awT",@progbits
23434 foo: .long 25
23435 .text
23436 movi a8, foo@TLSFUNC
23437 movi a10, foo@TLSARG
23438 callx8.tls a8, foo@TLSCALL'
23439 tls_first_major=2
23440 tls_first_minor=19
23442 esac
23443 set_have_as_tls=no
23444 if test "x$enable_tls" = xno ; then
23445 : # TLS explicitly disabled.
23446 elif test "x$enable_tls" = xyes ; then
23447 set_have_as_tls=yes # TLS explicitly enabled.
23448 elif test -z "$tls_first_major"; then
23449 : # If we don't have a check, assume no support.
23450 else
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23452 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23453 if test "${gcc_cv_as_tls+set}" = set; then :
23454 $as_echo_n "(cached) " >&6
23455 else
23456 gcc_cv_as_tls=no
23457 if test $in_tree_gas = yes; then
23458 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23459 then gcc_cv_as_tls=yes
23461 elif test x$gcc_cv_as != x; then
23462 $as_echo "$conftest_s" > conftest.s
23463 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23465 (eval $ac_try) 2>&5
23466 ac_status=$?
23467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23468 test $ac_status = 0; }; }
23469 then
23470 gcc_cv_as_tls=yes
23471 else
23472 echo "configure: failed program was" >&5
23473 cat conftest.s >&5
23475 rm -f conftest.o conftest.s
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23479 $as_echo "$gcc_cv_as_tls" >&6; }
23480 if test $gcc_cv_as_tls = yes; then
23481 set_have_as_tls=yes
23484 case "$target" in
23485 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23486 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23487 # Sun style that Sun ld and GCC don't support any longer.
23488 *-*-solaris2.*)
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23490 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23491 ld_tls_support=no
23492 # Check ld and ld.so.1 TLS support.
23493 if echo "$ld_ver" | grep GNU > /dev/null; then
23494 # Assume all interesting versions of GNU ld have TLS support.
23495 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23496 ld_tls_support=yes
23497 else
23498 case "$target" in
23499 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23500 i?86-*-solaris2.9)
23501 min_tls_ld_vers_minor=374
23503 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23504 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23505 min_tls_ld_vers_minor=343
23507 esac
23508 if test "$ld_vers_major" -gt 1 || \
23509 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23510 ld_tls_support=yes
23511 else
23512 set_have_as_tls=no
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23516 $as_echo "$ld_tls_support" >&6; }
23518 save_LIBS="$LIBS"
23519 save_LDFLAGS="$LDFLAGS"
23520 LIBS=
23521 LDFLAGS=
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23524 $as_echo_n "checking library containing $tga_func... " >&6; }
23525 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23526 # (32-bit x86) only lived in libthread, so check for that. Keep
23527 # set_have_as_tls if found, disable if not.
23528 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23530 $as_echo_n "checking for library containing $tga_func... " >&6; }
23531 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23532 $as_echo_n "(cached) " >&6
23533 else
23534 ac_func_search_save_LIBS=$LIBS
23535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23536 /* end confdefs.h. */
23538 /* Override any GCC internal prototype to avoid an error.
23539 Use char because int might match the return type of a GCC
23540 builtin and then its argument prototype would still apply. */
23541 #ifdef __cplusplus
23542 extern "C"
23543 #endif
23544 char $tga_func ();
23546 main ()
23548 return $tga_func ();
23550 return 0;
23552 _ACEOF
23553 for ac_lib in '' thread; do
23554 if test -z "$ac_lib"; then
23555 ac_res="none required"
23556 else
23557 ac_res=-l$ac_lib
23558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23560 if ac_fn_c_try_link "$LINENO"; then :
23561 eval "$as_ac_Search=\$ac_res"
23563 rm -f core conftest.err conftest.$ac_objext \
23564 conftest$ac_exeext
23565 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23566 break
23568 done
23569 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23571 else
23572 eval "$as_ac_Search=no"
23574 rm conftest.$ac_ext
23575 LIBS=$ac_func_search_save_LIBS
23577 eval ac_res=\$$as_ac_Search
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23579 $as_echo "$ac_res" >&6; }
23580 eval ac_res=\$$as_ac_Search
23581 if test "$ac_res" != no; then :
23582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23584 else
23585 set_have_as_tls=no
23588 # Clear LIBS if we cannot support TLS.
23589 if test $set_have_as_tls = no; then
23590 LIBS=
23592 # Always define LIB_TLS_SPEC, even without TLS support.
23594 cat >>confdefs.h <<_ACEOF
23595 #define LIB_TLS_SPEC "$LIBS"
23596 _ACEOF
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23599 $as_echo "$LIBS" >&6; }
23601 LIBS="$save_LIBS"
23602 LDFLAGS="$save_LDFLAGS"
23604 esac
23605 if test $set_have_as_tls = yes ; then
23607 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23611 # Target-specific assembler checks.
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23614 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23615 gcc_cv_ld_static_dynamic=no
23616 gcc_cv_ld_static_option='-Bstatic'
23617 gcc_cv_ld_dynamic_option='-Bdynamic'
23618 if test $in_tree_ld = yes ; then
23619 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
23620 gcc_cv_ld_static_dynamic=yes
23622 elif test x$gcc_cv_ld != x; then
23623 # Check if linker supports -Bstatic/-Bdynamic option
23624 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23625 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23626 gcc_cv_ld_static_dynamic=yes
23627 else
23628 case "$target" in
23629 # HP-UX ld uses -a flags to select between shared and archive.
23630 *-*-hpux*)
23631 if test x"$gnu_ld" = xno; then
23632 gcc_cv_ld_static_dynamic=yes
23633 gcc_cv_ld_static_option="-aarchive_shared"
23634 gcc_cv_ld_dynamic_option="-adefault"
23637 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23638 *-*-solaris2*)
23639 gcc_cv_ld_static_dynamic=yes
23641 esac
23644 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23646 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23649 cat >>confdefs.h <<_ACEOF
23650 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23651 _ACEOF
23654 cat >>confdefs.h <<_ACEOF
23655 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23656 _ACEOF
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23660 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23662 if test x"$demangler_in_ld" = xyes; then
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23664 $as_echo_n "checking linker --demangle support... " >&6; }
23665 gcc_cv_ld_demangle=no
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 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
23668 gcc_cv_ld_demangle=yes
23670 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23671 # Check if the GNU linker supports --demangle option
23672 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23673 gcc_cv_ld_demangle=yes
23676 if test x"$gcc_cv_ld_demangle" = xyes; then
23678 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23682 $as_echo "$gcc_cv_ld_demangle" >&6; }
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23686 $as_echo_n "checking linker plugin support... " >&6; }
23687 gcc_cv_lto_plugin=0
23688 if test -f liblto_plugin.la; then
23689 save_ld_ver="$ld_ver"
23690 save_ld_vers_major="$ld_vers_major"
23691 save_ld_vers_minor="$ld_vers_minor"
23692 save_ld_is_gold="$ld_is_gold"
23694 ld_is_gold=no
23696 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23697 ld_ver="GNU ld"
23698 # FIXME: ld_is_gold?
23699 ld_vers_major="$gcc_cv_gld_major_version"
23700 ld_vers_minor="$gcc_cv_gld_minor_version"
23701 else
23702 # Determine plugin linker version.
23703 # FIXME: Partial duplicate from above, generalize.
23704 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23705 if echo "$ld_ver" | grep GNU > /dev/null; then
23706 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23707 ld_is_gold=yes
23708 ld_vers=`echo $ld_ver | sed -n \
23709 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23710 else
23711 ld_vers=`echo $ld_ver | sed -n \
23712 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23714 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23715 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23719 # Determine plugin support.
23720 if echo "$ld_ver" | grep GNU > /dev/null; then
23721 # Require GNU ld or gold 2.21+ for plugin support by default.
23722 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23723 gcc_cv_lto_plugin=2
23724 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23725 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23726 gcc_cv_lto_plugin=1
23730 ld_ver="$save_ld_ver"
23731 ld_vers_major="$save_ld_vers_major"
23732 ld_vers_minor="$save_ld_vers_minor"
23733 ld_is_gold="$save_ld_is_gold"
23736 cat >>confdefs.h <<_ACEOF
23737 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23738 _ACEOF
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23741 $as_echo "$gcc_cv_lto_plugin" >&6; }
23743 case "$target" in
23744 # All TARGET_ABI_OSF targets.
23745 alpha*-*-linux* | alpha*-*-*bsd*)
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23747 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23748 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23749 $as_echo_n "(cached) " >&6
23750 else
23751 gcc_cv_as_alpha_explicit_relocs=no
23752 if test $in_tree_gas = yes; then
23753 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23754 then gcc_cv_as_alpha_explicit_relocs=yes
23756 elif test x$gcc_cv_as != x; then
23757 $as_echo ' .set nomacro
23758 .text
23759 extbl $3, $2, $3 !lituse_bytoff!1
23760 ldq $2, a($29) !literal!1
23761 ldq $4, b($29) !literal!2
23762 ldq_u $3, 0($2) !lituse_base!1
23763 ldq $27, f($29) !literal!5
23764 jsr $26, ($27), f !lituse_jsr!5
23765 ldah $29, 0($26) !gpdisp!3
23766 lda $0, c($29) !gprel
23767 ldah $1, d($29) !gprelhigh
23768 lda $1, d($1) !gprellow
23769 lda $29, 0($29) !gpdisp!3' > conftest.s
23770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23772 (eval $ac_try) 2>&5
23773 ac_status=$?
23774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23775 test $ac_status = 0; }; }
23776 then
23777 gcc_cv_as_alpha_explicit_relocs=yes
23778 else
23779 echo "configure: failed program was" >&5
23780 cat conftest.s >&5
23782 rm -f conftest.o conftest.s
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23786 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23787 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23789 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23793 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23794 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23795 $as_echo_n "(cached) " >&6
23796 else
23797 gcc_cv_as_alpha_jsrdirect_relocs=no
23798 if test $in_tree_gas = yes; then
23799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23800 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23802 elif test x$gcc_cv_as != x; then
23803 $as_echo ' .set nomacro
23804 .text
23805 ldq $27, a($29) !literal!1
23806 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23809 (eval $ac_try) 2>&5
23810 ac_status=$?
23811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23812 test $ac_status = 0; }; }
23813 then
23814 gcc_cv_as_alpha_jsrdirect_relocs=yes
23815 else
23816 echo "configure: failed program was" >&5
23817 cat conftest.s >&5
23819 rm -f conftest.o conftest.s
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23823 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23824 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23826 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23831 cris-*-*)
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23833 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23834 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23835 $as_echo_n "(cached) " >&6
23836 else
23837 gcc_cv_as_cris_no_mul_bug=no
23838 if test $in_tree_gas = yes; then
23839 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23840 then gcc_cv_as_cris_no_mul_bug=yes
23842 elif test x$gcc_cv_as != x; then
23843 $as_echo '.text' > conftest.s
23844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23846 (eval $ac_try) 2>&5
23847 ac_status=$?
23848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23849 test $ac_status = 0; }; }
23850 then
23851 gcc_cv_as_cris_no_mul_bug=yes
23852 else
23853 echo "configure: failed program was" >&5
23854 cat conftest.s >&5
23856 rm -f conftest.o conftest.s
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23860 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23861 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23863 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23868 sparc*-*-*)
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23870 $as_echo_n "checking assembler for .register... " >&6; }
23871 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23872 $as_echo_n "(cached) " >&6
23873 else
23874 gcc_cv_as_sparc_register_op=no
23875 if test x$gcc_cv_as != x; then
23876 $as_echo '.register %g2, #scratch' > conftest.s
23877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23879 (eval $ac_try) 2>&5
23880 ac_status=$?
23881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23882 test $ac_status = 0; }; }
23883 then
23884 gcc_cv_as_sparc_register_op=yes
23885 else
23886 echo "configure: failed program was" >&5
23887 cat conftest.s >&5
23889 rm -f conftest.o conftest.s
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23893 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23894 if test $gcc_cv_as_sparc_register_op = yes; then
23896 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23901 $as_echo_n "checking assembler for -relax option... " >&6; }
23902 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23903 $as_echo_n "(cached) " >&6
23904 else
23905 gcc_cv_as_sparc_relax=no
23906 if test x$gcc_cv_as != x; then
23907 $as_echo '.text' > conftest.s
23908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23910 (eval $ac_try) 2>&5
23911 ac_status=$?
23912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23913 test $ac_status = 0; }; }
23914 then
23915 gcc_cv_as_sparc_relax=yes
23916 else
23917 echo "configure: failed program was" >&5
23918 cat conftest.s >&5
23920 rm -f conftest.o conftest.s
23923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23924 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23925 if test $gcc_cv_as_sparc_relax = yes; then
23927 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23932 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23933 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23934 $as_echo_n "(cached) " >&6
23935 else
23936 gcc_cv_as_sparc_gotdata_op=no
23937 if test x$gcc_cv_as != x; then
23938 $as_echo '.text
23939 .align 4
23940 foo:
23942 bar:
23943 sethi %gdop_hix22(foo), %g1
23944 xor %g1, %gdop_lox10(foo), %g1
23945 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23948 (eval $ac_try) 2>&5
23949 ac_status=$?
23950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23951 test $ac_status = 0; }; }
23952 then
23953 if test x$gcc_cv_ld != x \
23954 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23955 if test x$gcc_cv_objdump != x; then
23956 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23957 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23958 gcc_cv_as_sparc_gotdata_op=no
23959 else
23960 gcc_cv_as_sparc_gotdata_op=yes
23964 rm -f conftest
23965 else
23966 echo "configure: failed program was" >&5
23967 cat conftest.s >&5
23969 rm -f conftest.o conftest.s
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23973 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23974 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23976 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23981 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23982 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23983 $as_echo_n "(cached) " >&6
23984 else
23985 gcc_cv_as_sparc_ua_pcrel=no
23986 if test x$gcc_cv_as != x; then
23987 $as_echo '.text
23988 foo:
23990 .data
23991 .align 4
23992 .byte 0
23993 .uaword %r_disp32(foo)' > conftest.s
23994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23996 (eval $ac_try) 2>&5
23997 ac_status=$?
23998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23999 test $ac_status = 0; }; }
24000 then
24001 if test x$gcc_cv_ld != x \
24002 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24003 gcc_cv_as_sparc_ua_pcrel=yes
24005 rm -f conftest
24006 else
24007 echo "configure: failed program was" >&5
24008 cat conftest.s >&5
24010 rm -f conftest.o conftest.s
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24014 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24015 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24017 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24021 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24022 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24023 $as_echo_n "(cached) " >&6
24024 else
24025 gcc_cv_as_sparc_ua_pcrel_hidden=no
24026 if test x$gcc_cv_as != x; then
24027 $as_echo '.data
24028 .align 4
24029 .byte 0x31
24030 .uaword %r_disp32(foo)
24031 .byte 0x32, 0x33, 0x34
24032 .global foo
24033 .hidden foo
24034 foo:
24035 .skip 4' > conftest.s
24036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24038 (eval $ac_try) 2>&5
24039 ac_status=$?
24040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24041 test $ac_status = 0; }; }
24042 then
24043 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24044 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24045 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24046 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24047 if $gcc_cv_objdump -R conftest 2> /dev/null \
24048 | grep 'DISP32' > /dev/null 2>&1; then
24050 else
24051 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24054 rm -f conftest
24055 else
24056 echo "configure: failed program was" >&5
24057 cat conftest.s >&5
24059 rm -f conftest.o conftest.s
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24063 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24064 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24066 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24070 fi # unaligned pcrel relocs
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24073 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24074 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24075 $as_echo_n "(cached) " >&6
24076 else
24077 gcc_cv_as_sparc_offsetable_lo10=no
24078 if test x$gcc_cv_as != x; then
24079 $as_echo '.text
24080 or %g1, %lo(ab) + 12, %g1
24081 or %g1, %lo(ab + 12), %g1' > conftest.s
24082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24084 (eval $ac_try) 2>&5
24085 ac_status=$?
24086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24087 test $ac_status = 0; }; }
24088 then
24089 if test x$gcc_cv_objdump != x \
24090 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24091 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24092 gcc_cv_as_sparc_offsetable_lo10=yes
24094 else
24095 echo "configure: failed program was" >&5
24096 cat conftest.s >&5
24098 rm -f conftest.o conftest.s
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24102 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24103 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24105 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24110 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24111 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24112 $as_echo_n "(cached) " >&6
24113 else
24114 gcc_cv_as_sparc_fmaf=no
24115 if test x$gcc_cv_as != x; then
24116 $as_echo '.text
24117 .register %g2, #scratch
24118 .register %g3, #scratch
24119 .align 4
24120 fmaddd %f0, %f2, %f4, %f6
24121 addxccc %g1, %g2, %g3
24122 fsrl32 %f2, %f4, %f8
24123 fnaddd %f10, %f12, %f14' > conftest.s
24124 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24126 (eval $ac_try) 2>&5
24127 ac_status=$?
24128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24129 test $ac_status = 0; }; }
24130 then
24131 gcc_cv_as_sparc_fmaf=yes
24132 else
24133 echo "configure: failed program was" >&5
24134 cat conftest.s >&5
24136 rm -f conftest.o conftest.s
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24140 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24141 if test $gcc_cv_as_sparc_fmaf = yes; then
24143 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24148 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24149 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24150 $as_echo_n "(cached) " >&6
24151 else
24152 gcc_cv_as_sparc_sparc4=no
24153 if test x$gcc_cv_as != x; then
24154 $as_echo '.text
24155 .register %g2, #scratch
24156 .register %g3, #scratch
24157 .align 4
24158 cxbe %g2, %g3, 1f
24159 1: cwbneg %g2, %g3, 1f
24160 1: sha1
24162 aes_kexpand0 %f4, %f6, %f8
24163 des_round %f38, %f40, %f42, %f44
24164 camellia_f %f54, %f56, %f58, %f60
24165 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24168 (eval $ac_try) 2>&5
24169 ac_status=$?
24170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24171 test $ac_status = 0; }; }
24172 then
24173 gcc_cv_as_sparc_sparc4=yes
24174 else
24175 echo "configure: failed program was" >&5
24176 cat conftest.s >&5
24178 rm -f conftest.o conftest.s
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24182 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24183 if test $gcc_cv_as_sparc_sparc4 = yes; then
24185 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24190 i[34567]86-*-* | x86_64-*-*)
24191 case $target_os in
24192 cygwin*)
24193 # Full C++ conformance when using a shared libstdc++-v3 requires some
24194 # support from the Cygwin DLL, which in more recent versions exports
24195 # wrappers to aid in interposing and redirecting operators new, delete,
24196 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24197 # are configuring for a version of Cygwin that exports the wrappers.
24198 if test x$host = x$target; then
24199 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24200 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24201 gcc_ac_cygwin_dll_wrappers=yes
24202 else
24203 gcc_ac_cygwin_dll_wrappers=no
24206 else
24207 # Can't check presence of libc functions during cross-compile, so
24208 # we just have to assume we're building for an up-to-date target.
24209 gcc_ac_cygwin_dll_wrappers=yes
24212 cat >>confdefs.h <<_ACEOF
24213 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24214 _ACEOF
24216 esac
24217 case $target_os in
24218 cygwin* | pe | mingw32* | interix*)
24219 # Recent binutils allows the three-operand form of ".comm" on PE. This
24220 # definition is used unconditionally to initialise the default state of
24221 # the target option variable that governs usage of the feature.
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24223 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24224 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24225 $as_echo_n "(cached) " >&6
24226 else
24227 gcc_cv_as_comm_has_align=no
24228 if test $in_tree_gas = yes; then
24229 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24230 then gcc_cv_as_comm_has_align=yes
24232 elif test x$gcc_cv_as != x; then
24233 $as_echo '.comm foo,1,32' > conftest.s
24234 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24239 test $ac_status = 0; }; }
24240 then
24241 gcc_cv_as_comm_has_align=yes
24242 else
24243 echo "configure: failed program was" >&5
24244 cat conftest.s >&5
24246 rm -f conftest.o conftest.s
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24250 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24253 cat >>confdefs.h <<_ACEOF
24254 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24255 _ACEOF
24257 # Used for DWARF 2 in PE
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24259 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24260 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24261 $as_echo_n "(cached) " >&6
24262 else
24263 gcc_cv_as_ix86_pe_secrel32=no
24264 if test $in_tree_gas = yes; then
24265 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24266 then gcc_cv_as_ix86_pe_secrel32=yes
24268 elif test x$gcc_cv_as != x; then
24269 $as_echo '.text
24270 foo: nop
24271 .data
24272 .secrel32 foo' > conftest.s
24273 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24275 (eval $ac_try) 2>&5
24276 ac_status=$?
24277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24278 test $ac_status = 0; }; }
24279 then
24280 if test x$gcc_cv_ld != x \
24281 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24282 gcc_cv_as_ix86_pe_secrel32=yes
24284 rm -f conftest
24285 else
24286 echo "configure: failed program was" >&5
24287 cat conftest.s >&5
24289 rm -f conftest.o conftest.s
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24293 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24294 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24296 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24299 # Test if the assembler supports the extended form of the .section
24300 # directive that specifies section alignment. LTO support uses this,
24301 # but normally only after installation, so we warn but don't fail the
24302 # configure if LTO is enabled but the assembler does not support it.
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24304 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24305 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24306 $as_echo_n "(cached) " >&6
24307 else
24308 gcc_cv_as_section_has_align=no
24309 if test $in_tree_gas = yes; then
24310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24311 then gcc_cv_as_section_has_align=yes
24313 elif test x$gcc_cv_as != x; then
24314 $as_echo '.section lto_test,"dr0"' > conftest.s
24315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24317 (eval $ac_try) 2>&5
24318 ac_status=$?
24319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24320 test $ac_status = 0; }; }
24321 then
24322 gcc_cv_as_section_has_align=yes
24323 else
24324 echo "configure: failed program was" >&5
24325 cat conftest.s >&5
24327 rm -f conftest.o conftest.s
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24331 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24333 if test x$gcc_cv_as_section_has_align != xyes; then
24334 case ",$enable_languages," in
24335 *,lto,*)
24336 { $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
24337 $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;}
24339 esac
24341 # Test if the assembler supports the section flag 'e' for specifying
24342 # an excluded section.
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24344 $as_echo_n "checking assembler for .section with e... " >&6; }
24345 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24346 $as_echo_n "(cached) " >&6
24347 else
24348 gcc_cv_as_section_has_e=no
24349 if test $in_tree_gas = yes; then
24350 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24351 then gcc_cv_as_section_has_e=yes
24353 elif test x$gcc_cv_as != x; then
24354 $as_echo '.section foo1,"e"
24355 .byte 0,0,0,0' > conftest.s
24356 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24358 (eval $ac_try) 2>&5
24359 ac_status=$?
24360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24361 test $ac_status = 0; }; }
24362 then
24363 gcc_cv_as_section_has_e=yes
24364 else
24365 echo "configure: failed program was" >&5
24366 cat conftest.s >&5
24368 rm -f conftest.o conftest.s
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24372 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24375 cat >>confdefs.h <<_ACEOF
24376 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24377 _ACEOF
24380 esac
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24383 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24384 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24385 $as_echo_n "(cached) " >&6
24386 else
24387 gcc_cv_as_ix86_filds=no
24388 if test x$gcc_cv_as != x; then
24389 $as_echo 'filds mem; fists mem' > conftest.s
24390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24392 (eval $ac_try) 2>&5
24393 ac_status=$?
24394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24395 test $ac_status = 0; }; }
24396 then
24397 gcc_cv_as_ix86_filds=yes
24398 else
24399 echo "configure: failed program was" >&5
24400 cat conftest.s >&5
24402 rm -f conftest.o conftest.s
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24406 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24407 if test $gcc_cv_as_ix86_filds = yes; then
24409 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24414 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24415 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24416 $as_echo_n "(cached) " >&6
24417 else
24418 gcc_cv_as_ix86_fildq=no
24419 if test x$gcc_cv_as != x; then
24420 $as_echo 'fildq mem; fistpq mem' > conftest.s
24421 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24423 (eval $ac_try) 2>&5
24424 ac_status=$?
24425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24426 test $ac_status = 0; }; }
24427 then
24428 gcc_cv_as_ix86_fildq=yes
24429 else
24430 echo "configure: failed program was" >&5
24431 cat conftest.s >&5
24433 rm -f conftest.o conftest.s
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24437 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24438 if test $gcc_cv_as_ix86_fildq = yes; then
24440 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24445 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24446 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24447 $as_echo_n "(cached) " >&6
24448 else
24449 gcc_cv_as_ix86_cmov_sun_syntax=no
24450 if test x$gcc_cv_as != x; then
24451 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24452 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24454 (eval $ac_try) 2>&5
24455 ac_status=$?
24456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24457 test $ac_status = 0; }; }
24458 then
24459 gcc_cv_as_ix86_cmov_sun_syntax=yes
24460 else
24461 echo "configure: failed program was" >&5
24462 cat conftest.s >&5
24464 rm -f conftest.o conftest.s
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24468 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24469 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24471 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24476 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24477 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24478 $as_echo_n "(cached) " >&6
24479 else
24480 gcc_cv_as_ix86_ffreep=no
24481 if test x$gcc_cv_as != x; then
24482 $as_echo 'ffreep %st(1)' > conftest.s
24483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24485 (eval $ac_try) 2>&5
24486 ac_status=$?
24487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24488 test $ac_status = 0; }; }
24489 then
24490 gcc_cv_as_ix86_ffreep=yes
24491 else
24492 echo "configure: failed program was" >&5
24493 cat conftest.s >&5
24495 rm -f conftest.o conftest.s
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24499 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24500 if test $gcc_cv_as_ix86_ffreep = yes; then
24502 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24507 $as_echo_n "checking assembler for .quad directive... " >&6; }
24508 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24509 $as_echo_n "(cached) " >&6
24510 else
24511 gcc_cv_as_ix86_quad=no
24512 if test x$gcc_cv_as != x; then
24513 $as_echo '.quad 0' > conftest.s
24514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24516 (eval $ac_try) 2>&5
24517 ac_status=$?
24518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24519 test $ac_status = 0; }; }
24520 then
24521 gcc_cv_as_ix86_quad=yes
24522 else
24523 echo "configure: failed program was" >&5
24524 cat conftest.s >&5
24526 rm -f conftest.o conftest.s
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24530 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24531 if test $gcc_cv_as_ix86_quad = yes; then
24533 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24538 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24539 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24540 $as_echo_n "(cached) " >&6
24541 else
24542 gcc_cv_as_ix86_sahf=no
24543 if test x$gcc_cv_as != x; then
24544 $as_echo '.code64
24545 sahf' > conftest.s
24546 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24548 (eval $ac_try) 2>&5
24549 ac_status=$?
24550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24551 test $ac_status = 0; }; }
24552 then
24553 gcc_cv_as_ix86_sahf=yes
24554 else
24555 echo "configure: failed program was" >&5
24556 cat conftest.s >&5
24558 rm -f conftest.o conftest.s
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24562 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24563 if test $gcc_cv_as_ix86_sahf = yes; then
24565 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24570 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24571 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24572 $as_echo_n "(cached) " >&6
24573 else
24574 gcc_cv_as_ix86_hle=no
24575 if test x$gcc_cv_as != x; then
24576 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24579 (eval $ac_try) 2>&5
24580 ac_status=$?
24581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24582 test $ac_status = 0; }; }
24583 then
24584 gcc_cv_as_ix86_hle=yes
24585 else
24586 echo "configure: failed program was" >&5
24587 cat conftest.s >&5
24589 rm -f conftest.o conftest.s
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24593 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24594 if test $gcc_cv_as_ix86_hle = yes; then
24596 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24601 $as_echo_n "checking assembler for swap suffix... " >&6; }
24602 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24603 $as_echo_n "(cached) " >&6
24604 else
24605 gcc_cv_as_ix86_swap=no
24606 if test x$gcc_cv_as != x; then
24607 $as_echo 'movl.s %esp, %ebp' > conftest.s
24608 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
24612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24613 test $ac_status = 0; }; }
24614 then
24615 gcc_cv_as_ix86_swap=yes
24616 else
24617 echo "configure: failed program was" >&5
24618 cat conftest.s >&5
24620 rm -f conftest.o conftest.s
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24624 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24625 if test $gcc_cv_as_ix86_swap = yes; then
24627 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24632 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24633 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24634 $as_echo_n "(cached) " >&6
24635 else
24636 gcc_cv_as_ix86_diff_sect_delta=no
24637 if test x$gcc_cv_as != x; then
24638 $as_echo '.section .rodata
24639 .L1:
24640 .long .L2-.L1
24641 .long .L3-.L1
24642 .text
24643 .L3: nop
24644 .L2: nop' > conftest.s
24645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24647 (eval $ac_try) 2>&5
24648 ac_status=$?
24649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24650 test $ac_status = 0; }; }
24651 then
24652 gcc_cv_as_ix86_diff_sect_delta=yes
24653 else
24654 echo "configure: failed program was" >&5
24655 cat conftest.s >&5
24657 rm -f conftest.o conftest.s
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24661 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24662 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24664 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24668 # These two are used unconditionally by i386.[ch]; it is to be defined
24669 # to 1 if the feature is present, 0 otherwise.
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24671 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24672 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24673 $as_echo_n "(cached) " >&6
24674 else
24675 gcc_cv_as_ix86_gotoff_in_data=no
24676 if test $in_tree_gas = yes; then
24677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24678 then gcc_cv_as_ix86_gotoff_in_data=yes
24680 elif test x$gcc_cv_as != x; then
24681 $as_echo ' .text
24682 .L0:
24684 .data
24685 .long .L0@GOTOFF' > conftest.s
24686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24688 (eval $ac_try) 2>&5
24689 ac_status=$?
24690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24691 test $ac_status = 0; }; }
24692 then
24693 gcc_cv_as_ix86_gotoff_in_data=yes
24694 else
24695 echo "configure: failed program was" >&5
24696 cat conftest.s >&5
24698 rm -f conftest.o conftest.s
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24702 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24705 cat >>confdefs.h <<_ACEOF
24706 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24707 _ACEOF
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24711 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24712 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24713 $as_echo_n "(cached) " >&6
24714 else
24715 gcc_cv_as_ix86_rep_lock_prefix=no
24716 if test x$gcc_cv_as != x; then
24717 $as_echo 'rep movsl
24718 rep ret
24719 rep nop
24720 rep bsf %ecx, %eax
24721 rep bsr %ecx, %eax
24722 lock addl %edi, (%eax,%esi)
24723 lock orl $0, (%esp)' > conftest.s
24724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24726 (eval $ac_try) 2>&5
24727 ac_status=$?
24728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24729 test $ac_status = 0; }; }
24730 then
24731 gcc_cv_as_ix86_rep_lock_prefix=yes
24732 else
24733 echo "configure: failed program was" >&5
24734 cat conftest.s >&5
24736 rm -f conftest.o conftest.s
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24740 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24741 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24743 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24748 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24749 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24750 $as_echo_n "(cached) " >&6
24751 else
24752 gcc_cv_as_ix86_tlsgdplt=no
24753 if test x$gcc_cv_as != x; then
24754 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24755 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24757 (eval $ac_try) 2>&5
24758 ac_status=$?
24759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24760 test $ac_status = 0; }; }
24761 then
24762 if test x$gcc_cv_ld != x \
24763 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24764 gcc_cv_as_ix86_tlsgdplt=yes
24766 rm -f conftest
24767 else
24768 echo "configure: failed program was" >&5
24769 cat conftest.s >&5
24771 rm -f conftest.o conftest.s
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24775 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24776 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24778 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24783 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24784 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24785 $as_echo_n "(cached) " >&6
24786 else
24787 gcc_cv_as_ix86_tlsldmplt=no
24788 if test x$gcc_cv_as != x; then
24789 $as_echo 'tls_ld:
24790 call tls_ld@tlsldmplt' > conftest.s
24791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24793 (eval $ac_try) 2>&5
24794 ac_status=$?
24795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24796 test $ac_status = 0; }; }
24797 then
24798 if test x$gcc_cv_ld != x \
24799 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24800 gcc_cv_as_ix86_tlsldmplt=yes
24802 rm -f conftest
24803 else
24804 echo "configure: failed program was" >&5
24805 cat conftest.s >&5
24807 rm -f conftest.o conftest.s
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24811 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24812 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24814 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24820 ia64*-*-*)
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24822 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24823 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24824 $as_echo_n "(cached) " >&6
24825 else
24826 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24827 if test $in_tree_gas = yes; then
24828 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24829 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24831 elif test x$gcc_cv_as != x; then
24832 $as_echo ' .text
24833 addl r15 = @ltoffx(x#), gp
24835 ld8.mov r16 = [r15], x#' > conftest.s
24836 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24838 (eval $ac_try) 2>&5
24839 ac_status=$?
24840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24841 test $ac_status = 0; }; }
24842 then
24843 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24844 else
24845 echo "configure: failed program was" >&5
24846 cat conftest.s >&5
24848 rm -f conftest.o conftest.s
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24852 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24853 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24855 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24861 powerpc*-*-*)
24862 case $target in
24863 *-*-aix*) conftest_s=' .machine "pwr5"
24864 .csect .text[PR]
24865 mfcr 3,128';;
24866 *-*-darwin*)
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24868 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24869 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24870 $as_echo_n "(cached) " >&6
24871 else
24872 gcc_cv_as_machine_directive=no
24873 if test x$gcc_cv_as != x; then
24874 $as_echo ' .machine ppc7400' > 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 gcc_cv_as_machine_directive=yes
24883 else
24884 echo "configure: failed program was" >&5
24885 cat conftest.s >&5
24887 rm -f conftest.o conftest.s
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24891 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24893 if test x$gcc_cv_as_machine_directive != xyes; then
24894 echo "*** This target requires an assembler supporting \".machine\"" >&2
24895 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24896 test x$build = x$target && exit 1
24898 conftest_s=' .text
24899 mfcr r3,128';;
24900 *) conftest_s=' .machine power4
24901 .text
24902 mfcr 3,128';;
24903 esac
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24906 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24907 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24908 $as_echo_n "(cached) " >&6
24909 else
24910 gcc_cv_as_powerpc_mfcrf=no
24911 if test $in_tree_gas = yes; then
24912 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24913 then gcc_cv_as_powerpc_mfcrf=yes
24915 elif test x$gcc_cv_as != x; then
24916 $as_echo "$conftest_s" > conftest.s
24917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24919 (eval $ac_try) 2>&5
24920 ac_status=$?
24921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24922 test $ac_status = 0; }; }
24923 then
24924 gcc_cv_as_powerpc_mfcrf=yes
24925 else
24926 echo "configure: failed program was" >&5
24927 cat conftest.s >&5
24929 rm -f conftest.o conftest.s
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24933 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24934 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24936 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24940 case $target in
24941 *-*-aix*) conftest_s=' .machine "pwr5"
24942 .csect .text[PR]
24943 popcntb 3,3';;
24944 *) conftest_s=' .machine power5
24945 .text
24946 popcntb 3,3';;
24947 esac
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24950 $as_echo_n "checking assembler for popcntb support... " >&6; }
24951 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24952 $as_echo_n "(cached) " >&6
24953 else
24954 gcc_cv_as_powerpc_popcntb=no
24955 if test $in_tree_gas = yes; then
24956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24957 then gcc_cv_as_powerpc_popcntb=yes
24959 elif test x$gcc_cv_as != x; then
24960 $as_echo "$conftest_s" > conftest.s
24961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24963 (eval $ac_try) 2>&5
24964 ac_status=$?
24965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24966 test $ac_status = 0; }; }
24967 then
24968 gcc_cv_as_powerpc_popcntb=yes
24969 else
24970 echo "configure: failed program was" >&5
24971 cat conftest.s >&5
24973 rm -f conftest.o conftest.s
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24977 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24978 if test $gcc_cv_as_powerpc_popcntb = yes; then
24980 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24984 case $target in
24985 *-*-aix*) conftest_s=' .machine "pwr5x"
24986 .csect .text[PR]
24987 frin 1,1';;
24988 *) conftest_s=' .machine power5
24989 .text
24990 frin 1,1';;
24991 esac
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24994 $as_echo_n "checking assembler for fp round support... " >&6; }
24995 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24996 $as_echo_n "(cached) " >&6
24997 else
24998 gcc_cv_as_powerpc_fprnd=no
24999 if test $in_tree_gas = yes; then
25000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25001 then gcc_cv_as_powerpc_fprnd=yes
25003 elif test x$gcc_cv_as != x; then
25004 $as_echo "$conftest_s" > conftest.s
25005 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25007 (eval $ac_try) 2>&5
25008 ac_status=$?
25009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25010 test $ac_status = 0; }; }
25011 then
25012 gcc_cv_as_powerpc_fprnd=yes
25013 else
25014 echo "configure: failed program was" >&5
25015 cat conftest.s >&5
25017 rm -f conftest.o conftest.s
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25021 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25022 if test $gcc_cv_as_powerpc_fprnd = yes; then
25024 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25028 case $target in
25029 *-*-aix*) conftest_s=' .machine "pwr6"
25030 .csect .text[PR]
25031 mffgpr 1,3';;
25032 *) conftest_s=' .machine power6
25033 .text
25034 mffgpr 1,3';;
25035 esac
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25038 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25039 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25040 $as_echo_n "(cached) " >&6
25041 else
25042 gcc_cv_as_powerpc_mfpgpr=no
25043 if test $in_tree_gas = yes; then
25044 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25045 then gcc_cv_as_powerpc_mfpgpr=yes
25047 elif test x$gcc_cv_as != x; then
25048 $as_echo "$conftest_s" > conftest.s
25049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25051 (eval $ac_try) 2>&5
25052 ac_status=$?
25053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25054 test $ac_status = 0; }; }
25055 then
25056 gcc_cv_as_powerpc_mfpgpr=yes
25057 else
25058 echo "configure: failed program was" >&5
25059 cat conftest.s >&5
25061 rm -f conftest.o conftest.s
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25065 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25066 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25068 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25072 case $target in
25073 *-*-aix*) conftest_s=' .csect .text[PR]
25074 LCF..0:
25075 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25076 *-*-darwin*)
25077 conftest_s=' .text
25078 LCF0:
25079 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25080 *) conftest_s=' .text
25081 .LCF0:
25082 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25083 esac
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25086 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25087 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25088 $as_echo_n "(cached) " >&6
25089 else
25090 gcc_cv_as_powerpc_rel16=no
25091 if test $in_tree_gas = yes; then
25092 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25093 then gcc_cv_as_powerpc_rel16=yes
25095 elif test x$gcc_cv_as != x; then
25096 $as_echo "$conftest_s" > conftest.s
25097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25099 (eval $ac_try) 2>&5
25100 ac_status=$?
25101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25102 test $ac_status = 0; }; }
25103 then
25104 gcc_cv_as_powerpc_rel16=yes
25105 else
25106 echo "configure: failed program was" >&5
25107 cat conftest.s >&5
25109 rm -f conftest.o conftest.s
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25113 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25114 if test $gcc_cv_as_powerpc_rel16 = yes; then
25116 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25120 case $target in
25121 *-*-aix*) conftest_s=' .machine "pwr6"
25122 .csect .text[PR]
25123 cmpb 3,4,5';;
25124 *) conftest_s=' .machine power6
25125 .text
25126 cmpb 3,4,5';;
25127 esac
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25130 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25131 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25132 $as_echo_n "(cached) " >&6
25133 else
25134 gcc_cv_as_powerpc_cmpb=no
25135 if test $in_tree_gas = yes; then
25136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25137 then gcc_cv_as_powerpc_cmpb=yes
25139 elif test x$gcc_cv_as != x; then
25140 $as_echo "$conftest_s" > conftest.s
25141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25143 (eval $ac_try) 2>&5
25144 ac_status=$?
25145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; }
25147 then
25148 gcc_cv_as_powerpc_cmpb=yes
25149 else
25150 echo "configure: failed program was" >&5
25151 cat conftest.s >&5
25153 rm -f conftest.o conftest.s
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25157 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25158 if test $gcc_cv_as_powerpc_cmpb = yes; then
25160 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25164 case $target in
25165 *-*-aix*) conftest_s=' .machine "pwr6"
25166 .csect .text[PR]
25167 dadd 1,2,3';;
25168 *) conftest_s=' .machine power6
25169 .text
25170 dadd 1,2,3';;
25171 esac
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25174 $as_echo_n "checking assembler for decimal float support... " >&6; }
25175 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25176 $as_echo_n "(cached) " >&6
25177 else
25178 gcc_cv_as_powerpc_dfp=no
25179 if test $in_tree_gas = yes; then
25180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25181 then gcc_cv_as_powerpc_dfp=yes
25183 elif test x$gcc_cv_as != x; then
25184 $as_echo "$conftest_s" > conftest.s
25185 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25187 (eval $ac_try) 2>&5
25188 ac_status=$?
25189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25190 test $ac_status = 0; }; }
25191 then
25192 gcc_cv_as_powerpc_dfp=yes
25193 else
25194 echo "configure: failed program was" >&5
25195 cat conftest.s >&5
25197 rm -f conftest.o conftest.s
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25201 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25202 if test $gcc_cv_as_powerpc_dfp = yes; then
25204 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25208 case $target in
25209 *-*-aix*) conftest_s=' .machine "pwr7"
25210 .csect .text[PR]
25211 lxvd2x 1,2,3';;
25212 *) conftest_s=' .machine power7
25213 .text
25214 lxvd2x 1,2,3';;
25215 esac
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25218 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25219 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25220 $as_echo_n "(cached) " >&6
25221 else
25222 gcc_cv_as_powerpc_vsx=no
25223 if test $in_tree_gas = yes; then
25224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25225 then gcc_cv_as_powerpc_vsx=yes
25227 elif test x$gcc_cv_as != x; then
25228 $as_echo "$conftest_s" > conftest.s
25229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25231 (eval $ac_try) 2>&5
25232 ac_status=$?
25233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25234 test $ac_status = 0; }; }
25235 then
25236 gcc_cv_as_powerpc_vsx=yes
25237 else
25238 echo "configure: failed program was" >&5
25239 cat conftest.s >&5
25241 rm -f conftest.o conftest.s
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25245 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25246 if test $gcc_cv_as_powerpc_vsx = yes; then
25248 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25252 case $target in
25253 *-*-aix*) conftest_s=' .machine "pwr7"
25254 .csect .text[PR]
25255 popcntd 3,3';;
25256 *) conftest_s=' .machine power7
25257 .text
25258 popcntd 3,3';;
25259 esac
25261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25262 $as_echo_n "checking assembler for popcntd support... " >&6; }
25263 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25264 $as_echo_n "(cached) " >&6
25265 else
25266 gcc_cv_as_powerpc_popcntd=no
25267 if test $in_tree_gas = yes; then
25268 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25269 then gcc_cv_as_powerpc_popcntd=yes
25271 elif test x$gcc_cv_as != x; then
25272 $as_echo "$conftest_s" > conftest.s
25273 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25278 test $ac_status = 0; }; }
25279 then
25280 gcc_cv_as_powerpc_popcntd=yes
25281 else
25282 echo "configure: failed program was" >&5
25283 cat conftest.s >&5
25285 rm -f conftest.o conftest.s
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25289 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25290 if test $gcc_cv_as_powerpc_popcntd = yes; then
25292 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25296 case $target in
25297 *-*-aix*) conftest_s=' .machine "pwr8"
25298 .csect .text[PR]';;
25299 *) conftest_s=' .machine power8
25300 .text';;
25301 esac
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25304 $as_echo_n "checking assembler for power8 support... " >&6; }
25305 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25306 $as_echo_n "(cached) " >&6
25307 else
25308 gcc_cv_as_powerpc_power8=no
25309 if test $in_tree_gas = yes; then
25310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25311 then gcc_cv_as_powerpc_power8=yes
25313 elif test x$gcc_cv_as != x; then
25314 $as_echo "$conftest_s" > conftest.s
25315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25317 (eval $ac_try) 2>&5
25318 ac_status=$?
25319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25320 test $ac_status = 0; }; }
25321 then
25322 gcc_cv_as_powerpc_power8=yes
25323 else
25324 echo "configure: failed program was" >&5
25325 cat conftest.s >&5
25327 rm -f conftest.o conftest.s
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25331 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25332 if test $gcc_cv_as_powerpc_power8 = yes; then
25334 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25338 case $target in
25339 *-*-aix*) conftest_s=' .csect .text[PR]
25340 lwsync';;
25341 *) conftest_s=' .text
25342 lwsync';;
25343 esac
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25346 $as_echo_n "checking assembler for lwsync support... " >&6; }
25347 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25348 $as_echo_n "(cached) " >&6
25349 else
25350 gcc_cv_as_powerpc_lwsync=no
25351 if test $in_tree_gas = yes; then
25352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25353 then gcc_cv_as_powerpc_lwsync=yes
25355 elif test x$gcc_cv_as != x; then
25356 $as_echo "$conftest_s" > conftest.s
25357 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25363 then
25364 gcc_cv_as_powerpc_lwsync=yes
25365 else
25366 echo "configure: failed program was" >&5
25367 cat conftest.s >&5
25369 rm -f conftest.o conftest.s
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25373 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25374 if test $gcc_cv_as_powerpc_lwsync = yes; then
25376 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25380 case $target in
25381 *-*-aix*) conftest_s=' .machine "476"
25382 .csect .text[PR]
25383 dci 0';;
25384 *) conftest_s=' .machine "476"
25385 .text
25386 dci 0';;
25387 esac
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25390 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25391 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25392 $as_echo_n "(cached) " >&6
25393 else
25394 gcc_cv_as_powerpc_dci=no
25395 if test $in_tree_gas = yes; then
25396 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25397 then gcc_cv_as_powerpc_dci=yes
25399 elif test x$gcc_cv_as != x; then
25400 $as_echo "$conftest_s" > conftest.s
25401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25403 (eval $ac_try) 2>&5
25404 ac_status=$?
25405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25406 test $ac_status = 0; }; }
25407 then
25408 gcc_cv_as_powerpc_dci=yes
25409 else
25410 echo "configure: failed program was" >&5
25411 cat conftest.s >&5
25413 rm -f conftest.o conftest.s
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25417 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25418 if test $gcc_cv_as_powerpc_dci = yes; then
25420 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25425 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25426 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25427 $as_echo_n "(cached) " >&6
25428 else
25429 gcc_cv_as_powerpc_gnu_attribute=no
25430 if test $in_tree_gas = yes; then
25431 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25432 then gcc_cv_as_powerpc_gnu_attribute=yes
25434 elif test x$gcc_cv_as != x; then
25435 $as_echo '.gnu_attribute 4,1' > conftest.s
25436 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25438 (eval $ac_try) 2>&5
25439 ac_status=$?
25440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25441 test $ac_status = 0; }; }
25442 then
25443 gcc_cv_as_powerpc_gnu_attribute=yes
25444 else
25445 echo "configure: failed program was" >&5
25446 cat conftest.s >&5
25448 rm -f conftest.o conftest.s
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25452 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25453 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25455 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25460 $as_echo_n "checking assembler for tls marker support... " >&6; }
25461 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25462 $as_echo_n "(cached) " >&6
25463 else
25464 gcc_cv_as_powerpc_tls_markers=no
25465 if test $in_tree_gas = yes; then
25466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25467 then gcc_cv_as_powerpc_tls_markers=yes
25469 elif test x$gcc_cv_as != x; then
25470 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25473 (eval $ac_try) 2>&5
25474 ac_status=$?
25475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25476 test $ac_status = 0; }; }
25477 then
25478 gcc_cv_as_powerpc_tls_markers=yes
25479 else
25480 echo "configure: failed program was" >&5
25481 cat conftest.s >&5
25483 rm -f conftest.o conftest.s
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25487 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25488 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25490 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25494 case $target in
25495 *-*-aix*)
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25497 $as_echo_n "checking assembler for .ref support... " >&6; }
25498 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25499 $as_echo_n "(cached) " >&6
25500 else
25501 gcc_cv_as_aix_ref=no
25502 if test $in_tree_gas = yes; then
25503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25504 then gcc_cv_as_aix_ref=yes
25506 elif test x$gcc_cv_as != x; then
25507 $as_echo ' .csect stuff[rw]
25508 stuff:
25509 .long 1
25510 .extern sym
25511 .ref sym
25512 ' > conftest.s
25513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25515 (eval $ac_try) 2>&5
25516 ac_status=$?
25517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25518 test $ac_status = 0; }; }
25519 then
25520 gcc_cv_as_aix_ref=yes
25521 else
25522 echo "configure: failed program was" >&5
25523 cat conftest.s >&5
25525 rm -f conftest.o conftest.s
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25529 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25530 if test $gcc_cv_as_aix_ref = yes; then
25532 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25536 esac
25539 mips*-*-*)
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25541 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25542 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25543 $as_echo_n "(cached) " >&6
25544 else
25545 gcc_cv_as_mips_explicit_relocs=no
25546 if test $in_tree_gas = yes; then
25547 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25548 then gcc_cv_as_mips_explicit_relocs=yes
25550 elif test x$gcc_cv_as != x; then
25551 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25554 (eval $ac_try) 2>&5
25555 ac_status=$?
25556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25557 test $ac_status = 0; }; }
25558 then
25559 gcc_cv_as_mips_explicit_relocs=yes
25560 else
25561 echo "configure: failed program was" >&5
25562 cat conftest.s >&5
25564 rm -f conftest.o conftest.s
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25568 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25569 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25570 if test x$target_cpu_default = x
25571 then target_cpu_default=MASK_EXPLICIT_RELOCS
25572 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25576 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25577 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25578 $as_echo_n "(cached) " >&6
25579 else
25580 gcc_cv_as_mips_no_shared=no
25581 if test $in_tree_gas = yes; then
25582 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25583 then gcc_cv_as_mips_no_shared=yes
25585 elif test x$gcc_cv_as != x; then
25586 $as_echo 'nop' > conftest.s
25587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25589 (eval $ac_try) 2>&5
25590 ac_status=$?
25591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25592 test $ac_status = 0; }; }
25593 then
25594 gcc_cv_as_mips_no_shared=yes
25595 else
25596 echo "configure: failed program was" >&5
25597 cat conftest.s >&5
25599 rm -f conftest.o conftest.s
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25603 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25604 if test $gcc_cv_as_mips_no_shared = yes; then
25606 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25611 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25612 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25613 $as_echo_n "(cached) " >&6
25614 else
25615 gcc_cv_as_mips_gnu_attribute=no
25616 if test $in_tree_gas = yes; then
25617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25618 then gcc_cv_as_mips_gnu_attribute=yes
25620 elif test x$gcc_cv_as != x; then
25621 $as_echo '.gnu_attribute 4,1' > conftest.s
25622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25624 (eval $ac_try) 2>&5
25625 ac_status=$?
25626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25627 test $ac_status = 0; }; }
25628 then
25629 gcc_cv_as_mips_gnu_attribute=yes
25630 else
25631 echo "configure: failed program was" >&5
25632 cat conftest.s >&5
25634 rm -f conftest.o conftest.s
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25638 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25639 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25641 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25646 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25647 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25648 $as_echo_n "(cached) " >&6
25649 else
25650 gcc_cv_as_mips_dtprelword=no
25651 if test $in_tree_gas = yes; then
25652 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25653 then gcc_cv_as_mips_dtprelword=yes
25655 elif test x$gcc_cv_as != x; then
25656 $as_echo '.section .tdata,"awT",@progbits
25658 .word 2
25659 .text
25660 .dtprelword x+0x8000' > conftest.s
25661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25663 (eval $ac_try) 2>&5
25664 ac_status=$?
25665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25666 test $ac_status = 0; }; }
25667 then
25668 gcc_cv_as_mips_dtprelword=yes
25669 else
25670 echo "configure: failed program was" >&5
25671 cat conftest.s >&5
25673 rm -f conftest.o conftest.s
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25677 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25678 if test $gcc_cv_as_mips_dtprelword = yes; then
25680 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25685 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25686 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25687 $as_echo_n "(cached) " >&6
25688 else
25689 gcc_cv_as_mips_dspr1_mult=no
25690 if test x$gcc_cv_as != x; then
25691 $as_echo ' .set mips32r2
25692 .set nodspr2
25693 .set dsp
25694 madd $ac3,$4,$5
25695 maddu $ac3,$4,$5
25696 msub $ac3,$4,$5
25697 msubu $ac3,$4,$5
25698 mult $ac3,$4,$5
25699 multu $ac3,$4,$5' > conftest.s
25700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25702 (eval $ac_try) 2>&5
25703 ac_status=$?
25704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25705 test $ac_status = 0; }; }
25706 then
25707 gcc_cv_as_mips_dspr1_mult=yes
25708 else
25709 echo "configure: failed program was" >&5
25710 cat conftest.s >&5
25712 rm -f conftest.o conftest.s
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25716 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25717 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25719 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25724 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25725 gcc_cv_as_ld_jalr_reloc=no
25726 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25727 if test $in_tree_ld = yes ; then
25728 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 \
25729 && test $in_tree_ld_is_elf = yes; then
25730 gcc_cv_as_ld_jalr_reloc=yes
25732 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25733 echo ' .ent x' > conftest.s
25734 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25735 echo ' ld $25,%call16(y)($28)' >> conftest.s
25736 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25737 echo '1: jalr $25' >> conftest.s
25738 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25739 echo '1: jalr $25' >> conftest.s
25740 echo ' .end x' >> conftest.s
25741 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25742 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25743 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25744 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25745 gcc_cv_as_ld_jalr_reloc=yes
25748 rm -f conftest.*
25751 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25752 if test x$target_cpu_default = x; then
25753 target_cpu_default=MASK_RELAX_PIC_CALLS
25754 else
25755 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25759 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25762 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25763 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25764 $as_echo_n "(cached) " >&6
25765 else
25766 gcc_cv_ld_mips_personality_relaxation=no
25767 if test $in_tree_ld = yes ; then
25768 if test "$gcc_cv_gld_major_version" -eq 2 \
25769 -a "$gcc_cv_gld_minor_version" -ge 21 \
25770 -o "$gcc_cv_gld_major_version" -gt 2; then
25771 gcc_cv_ld_mips_personality_relaxation=yes
25773 elif test x$gcc_cv_as != x \
25774 -a x$gcc_cv_ld != x \
25775 -a x$gcc_cv_readelf != x ; then
25776 cat > conftest.s <<EOF
25777 .cfi_startproc
25778 .cfi_personality 0x80,indirect_ptr
25779 .ent test
25780 test:
25782 .end test
25783 .cfi_endproc
25785 .section .data,"aw",@progbits
25786 indirect_ptr:
25787 .dc.a personality
25789 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25790 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25791 if $gcc_cv_readelf -d conftest 2>&1 \
25792 | grep TEXTREL > /dev/null 2>&1; then
25794 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25795 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25797 else
25798 gcc_cv_ld_mips_personality_relaxation=yes
25802 rm -f conftest.s conftest.o conftest
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25805 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25806 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25808 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25812 esac
25814 # Mips and HP-UX need the GNU assembler.
25815 # Linux on IA64 might be able to use the Intel assembler.
25817 case "$target" in
25818 mips*-*-* | *-*-hpux* )
25819 if test x$gas_flag = xyes \
25820 || test x"$host" != x"$build" \
25821 || test ! -x "$gcc_cv_as" \
25822 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25824 else
25825 echo "*** This configuration requires the GNU assembler" >&2
25826 exit 1
25829 esac
25831 # ??? Not all targets support dwarf2 debug_line, even within a version
25832 # of gas. Moreover, we need to emit a valid instruction to trigger any
25833 # info to the output file. So, as supported targets are added to gas 2.11,
25834 # add some instruction here to (also) show we expect this might work.
25835 # ??? Once 2.11 is released, probably need to add first known working
25836 # version to the per-target configury.
25837 case "$cpu_type" in
25838 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25839 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
25840 insn="nop"
25842 ia64 | s390)
25843 insn="nop 0"
25845 mmix)
25846 insn="swym 0"
25848 esac
25849 if test x"$insn" != x; then
25850 conftest_s="\
25851 .file 1 \"conftest.s\"
25852 .loc 1 3 0
25853 $insn"
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25855 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25856 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25857 $as_echo_n "(cached) " >&6
25858 else
25859 gcc_cv_as_dwarf2_debug_line=no
25860 if test $in_tree_gas = yes; then
25861 if test $in_tree_gas_is_elf = yes \
25862 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25863 then gcc_cv_as_dwarf2_debug_line=yes
25865 elif test x$gcc_cv_as != x; then
25866 $as_echo "$conftest_s" > conftest.s
25867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25872 test $ac_status = 0; }; }
25873 then
25874 if test x$gcc_cv_objdump != x \
25875 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25876 | grep debug_line > /dev/null 2>&1; then
25877 gcc_cv_as_dwarf2_debug_line=yes
25879 else
25880 echo "configure: failed program was" >&5
25881 cat conftest.s >&5
25883 rm -f conftest.o conftest.s
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25887 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25890 # The .debug_line file table must be in the exact order that
25891 # we specified the files, since these indices are also used
25892 # by DW_AT_decl_file. Approximate this test by testing if
25893 # the assembler bitches if the same index is assigned twice.
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25895 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25896 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25897 $as_echo_n "(cached) " >&6
25898 else
25899 gcc_cv_as_dwarf2_file_buggy=no
25900 if test x$gcc_cv_as != x; then
25901 $as_echo ' .file 1 "foo.s"
25902 .file 1 "bar.s"' > conftest.s
25903 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25905 (eval $ac_try) 2>&5
25906 ac_status=$?
25907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25908 test $ac_status = 0; }; }
25909 then
25910 gcc_cv_as_dwarf2_file_buggy=yes
25911 else
25912 echo "configure: failed program was" >&5
25913 cat conftest.s >&5
25915 rm -f conftest.o conftest.s
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25919 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25922 if test $gcc_cv_as_dwarf2_debug_line = yes \
25923 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25925 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25930 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25931 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25932 $as_echo_n "(cached) " >&6
25933 else
25934 gcc_cv_as_gdwarf2_flag=no
25935 if test $in_tree_gas = yes; then
25936 if test $in_tree_gas_is_elf = yes \
25937 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25938 then gcc_cv_as_gdwarf2_flag=yes
25940 elif test x$gcc_cv_as != x; then
25941 $as_echo "$insn" > conftest.s
25942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25944 (eval $ac_try) 2>&5
25945 ac_status=$?
25946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25947 test $ac_status = 0; }; }
25948 then
25949 gcc_cv_as_gdwarf2_flag=yes
25950 else
25951 echo "configure: failed program was" >&5
25952 cat conftest.s >&5
25954 rm -f conftest.o conftest.s
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25958 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25959 if test $gcc_cv_as_gdwarf2_flag = yes; then
25961 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25966 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25967 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25968 $as_echo_n "(cached) " >&6
25969 else
25970 gcc_cv_as_gstabs_flag=no
25971 if test $in_tree_gas = yes; then
25972 if test $in_tree_gas_is_elf = yes \
25973 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25974 then gcc_cv_as_gstabs_flag=yes
25976 elif test x$gcc_cv_as != x; then
25977 $as_echo "$insn" > conftest.s
25978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25980 (eval $ac_try) 2>&5
25981 ac_status=$?
25982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25983 test $ac_status = 0; }; }
25984 then
25985 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25986 # and warns about it, but still exits successfully. So check for
25987 # this.
25988 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25990 (eval $ac_try) 2>&5
25991 ac_status=$?
25992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25993 test $ac_status = 0; }; }
25994 then :
25995 else gcc_cv_as_gstabs_flag=yes
25997 else
25998 echo "configure: failed program was" >&5
25999 cat conftest.s >&5
26001 rm -f conftest.o conftest.s
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26005 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26006 if test $gcc_cv_as_gstabs_flag = yes; then
26008 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26013 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26014 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26015 $as_echo_n "(cached) " >&6
26016 else
26017 gcc_cv_as_debug_prefix_map_flag=no
26018 if test $in_tree_gas = yes; then
26019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26020 then gcc_cv_as_debug_prefix_map_flag=yes
26022 elif test x$gcc_cv_as != x; then
26023 $as_echo "$insn" > conftest.s
26024 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26026 (eval $ac_try) 2>&5
26027 ac_status=$?
26028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26029 test $ac_status = 0; }; }
26030 then
26031 gcc_cv_as_debug_prefix_map_flag=yes
26032 else
26033 echo "configure: failed program was" >&5
26034 cat conftest.s >&5
26036 rm -f conftest.o conftest.s
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26040 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26041 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26043 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26049 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26050 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26051 $as_echo_n "(cached) " >&6
26052 else
26053 gcc_cv_as_lcomm_with_alignment=no
26054 if test x$gcc_cv_as != x; then
26055 $as_echo '.lcomm bar,4,16' > conftest.s
26056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26058 (eval $ac_try) 2>&5
26059 ac_status=$?
26060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26061 test $ac_status = 0; }; }
26062 then
26063 gcc_cv_as_lcomm_with_alignment=yes
26064 else
26065 echo "configure: failed program was" >&5
26066 cat conftest.s >&5
26068 rm -f conftest.o conftest.s
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26072 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26073 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26075 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26079 # Check whether --enable-gnu-unique-object was given.
26080 if test "${enable_gnu_unique_object+set}" = set; then :
26081 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26082 yes | no) ;;
26083 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26084 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26085 esac
26086 else
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26088 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26089 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26090 $as_echo_n "(cached) " >&6
26091 else
26092 gcc_cv_as_gnu_unique_object=no
26093 if test $in_tree_gas = yes; then
26094 if test $in_tree_gas_is_elf = yes \
26095 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26096 then gcc_cv_as_gnu_unique_object=yes
26098 elif test x$gcc_cv_as != x; then
26099 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26102 (eval $ac_try) 2>&5
26103 ac_status=$?
26104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26105 test $ac_status = 0; }; }
26106 then
26107 gcc_cv_as_gnu_unique_object=yes
26108 else
26109 echo "configure: failed program was" >&5
26110 cat conftest.s >&5
26112 rm -f conftest.o conftest.s
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26116 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26117 if test $gcc_cv_as_gnu_unique_object = yes; then
26118 # We need to unquote above to to use the definition from config.gcc.
26119 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26120 if test x$host = x$build -a x$host = x$target &&
26121 ldd --version 2>/dev/null &&
26122 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26123 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26124 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26125 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26126 if test "$glibcnum" -ge 2011 ; then
26127 enable_gnu_unique_object=yes
26133 if test x$enable_gnu_unique_object = xyes; then
26135 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26140 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26141 if test "${gcc_cv_as_line_zero+set}" = set; then :
26142 $as_echo_n "(cached) " >&6
26143 else
26144 gcc_cv_as_line_zero=no
26145 if test $in_tree_gas = yes; then
26146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26147 then gcc_cv_as_line_zero=yes
26149 elif test "x$gcc_cv_as" != x; then
26150 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26151 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26153 (eval $ac_try) 2>&5
26154 ac_status=$?
26155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26156 test $ac_status = 0; }; } &&
26157 test "x`cat conftest.out`" = x
26158 then
26159 gcc_cv_as_line_zero=yes
26160 else
26161 echo "configure: failed program was" >&5
26162 cat conftest.s >&5
26163 echo "configure: error output was" >&5
26164 cat conftest.out >&5
26166 rm -f conftest.o conftest.s conftest.out
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26170 $as_echo "$gcc_cv_as_line_zero" >&6; }
26171 if test "x$gcc_cv_as_line_zero" = xyes; then
26173 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26178 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26179 gcc_cv_ld_eh_frame_hdr=no
26180 if test $in_tree_ld = yes ; then
26181 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 \
26182 && test $in_tree_ld_is_elf = yes; then
26183 gcc_cv_ld_eh_frame_hdr=yes
26185 elif test x$gcc_cv_ld != x; then
26186 if echo "$ld_ver" | grep GNU > /dev/null; then
26187 # Check if linker supports --eh-frame-hdr option
26188 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26189 gcc_cv_ld_eh_frame_hdr=yes
26191 else
26192 case "$target" in
26193 *-*-solaris2*)
26194 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26195 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26196 gcc_cv_ld_eh_frame_hdr=yes
26199 esac
26203 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26205 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26209 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26212 $as_echo_n "checking linker position independent executable support... " >&6; }
26213 gcc_cv_ld_pie=no
26214 if test $in_tree_ld = yes ; then
26215 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 \
26216 && test $in_tree_ld_is_elf = yes; then
26217 gcc_cv_ld_pie=yes
26219 elif test x$gcc_cv_ld != x; then
26220 # Check if linker supports -pie option
26221 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26222 gcc_cv_ld_pie=yes
26225 if test x"$gcc_cv_ld_pie" = xyes; then
26227 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26231 $as_echo "$gcc_cv_ld_pie" >&6; }
26233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26234 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26235 gcc_cv_ld_eh_gc_sections=no
26236 if test $in_tree_ld = yes ; then
26237 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 \
26238 && test $in_tree_ld_is_elf = yes; then
26239 gcc_cv_ld_eh_gc_sections=yes
26241 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26242 cat > conftest.s <<EOF
26243 .section .text
26244 .globl _start
26245 .type _start, @function
26246 _start:
26247 .long foo
26248 .size _start, .-_start
26249 .section .text.foo,"ax",@progbits
26250 .type foo, @function
26251 foo:
26252 .long 0
26253 .size foo, .-foo
26254 .section .gcc_except_table.foo,"a",@progbits
26255 .L0:
26256 .long 0
26257 .section .eh_frame,"a",@progbits
26258 .long .L0
26260 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26261 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26262 | grep "gc-sections option ignored" > /dev/null; then
26263 gcc_cv_ld_eh_gc_sections=no
26264 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26265 | grep gcc_except_table > /dev/null; then
26266 gcc_cv_ld_eh_gc_sections=yes
26267 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26268 if test x$gcc_cv_as_comdat_group != xyes; then
26269 gcc_cv_ld_eh_gc_sections=no
26270 cat > conftest.s <<EOF
26271 .section .text
26272 .globl _start
26273 .type _start, @function
26274 _start:
26275 .long foo
26276 .size _start, .-_start
26277 .section .gnu.linkonce.t.foo,"ax",@progbits
26278 .type foo, @function
26279 foo:
26280 .long 0
26281 .size foo, .-foo
26282 .section .gcc_except_table.foo,"a",@progbits
26283 .L0:
26284 .long 0
26285 .section .eh_frame,"a",@progbits
26286 .long .L0
26288 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26289 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26290 | grep "gc-sections option ignored" > /dev/null; then
26291 gcc_cv_ld_eh_gc_sections=no
26292 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26293 | grep gcc_except_table > /dev/null; then
26294 gcc_cv_ld_eh_gc_sections=yes
26300 rm -f conftest.s conftest.o conftest
26302 case "$target" in
26303 hppa*-*-linux*)
26304 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26305 gcc_cv_ld_eh_gc_sections=no
26307 esac
26308 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26310 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26314 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26317 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26318 gcc_cv_ld_eh_gc_sections_bug=no
26319 if test $in_tree_ld = yes ; then
26320 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 \
26321 && test $in_tree_ld_is_elf = yes; then
26322 gcc_cv_ld_eh_gc_sections_bug=yes
26324 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
26325 gcc_cv_ld_eh_gc_sections_bug=yes
26326 cat > conftest.s <<EOF
26327 .section .text
26328 .globl _start
26329 .type _start, @function
26330 _start:
26331 .long foo
26332 .size _start, .-_start
26333 .section .text.startup.foo,"ax",@progbits
26334 .type foo, @function
26335 foo:
26336 .long 0
26337 .size foo, .-foo
26338 .section .gcc_except_table.foo,"a",@progbits
26339 .L0:
26340 .long 0
26341 .section .eh_frame,"a",@progbits
26342 .long .L0
26344 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26345 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26346 | grep "gc-sections option ignored" > /dev/null; then
26348 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26349 | grep gcc_except_table > /dev/null; then
26350 gcc_cv_ld_eh_gc_sections_bug=no
26353 rm -f conftest.s conftest.o conftest
26355 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26357 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26361 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26363 # --------
26364 # UNSORTED
26365 # --------
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26368 $as_echo_n "checking linker --as-needed support... " >&6; }
26369 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26370 $as_echo_n "(cached) " >&6
26371 else
26372 gcc_cv_ld_as_needed=no
26373 if test $in_tree_ld = yes ; then
26374 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 \
26375 && test $in_tree_ld_is_elf = yes; then
26376 gcc_cv_ld_as_needed=yes
26378 elif test x$gcc_cv_ld != x; then
26379 # Check if linker supports --as-needed and --no-as-needed options
26380 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26381 gcc_cv_ld_as_needed=yes
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26387 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26388 if test x"$gcc_cv_ld_as_needed" = xyes; then
26390 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26394 case "$target:$tm_file" in
26395 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26396 case "$target" in
26397 *-*-linux*)
26398 emul_name="-melf64ppc"
26400 *-*-freebsd*)
26401 emul_name="-melf64ppc_fbsd"
26403 esac
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26405 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26406 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26407 $as_echo_n "(cached) " >&6
26408 else
26409 gcc_cv_ld_no_dot_syms=no
26410 if test x"$ld_is_gold" = xyes; then
26411 gcc_cv_ld_no_dot_syms=yes
26412 elif test $in_tree_ld = yes ; then
26413 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
26414 gcc_cv_ld_no_dot_syms=yes
26416 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26417 cat > conftest1.s <<EOF
26418 .text
26419 bl .foo
26421 cat > conftest2.s <<EOF
26422 .section ".opd","aw"
26423 .align 3
26424 .globl foo
26425 .type foo,@function
26426 foo:
26427 .quad .LEfoo,.TOC.@tocbase,0
26428 .text
26429 .LEfoo:
26431 .size foo,.-.LEfoo
26433 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26434 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26435 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26436 gcc_cv_ld_no_dot_syms=yes
26438 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26443 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26444 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26446 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26451 $as_echo_n "checking linker large toc support... " >&6; }
26452 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26453 $as_echo_n "(cached) " >&6
26454 else
26455 gcc_cv_ld_large_toc=no
26456 if test x"$ld_is_gold" = xyes; then
26457 gcc_cv_ld_large_toc=yes
26458 elif test $in_tree_ld = yes ; then
26459 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
26460 gcc_cv_ld_large_toc=yes
26462 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26463 cat > conftest.s <<EOF
26464 .section ".tbss","awT",@nobits
26465 .align 3
26466 ie0: .space 8
26467 .global _start
26468 .text
26469 _start:
26470 addis 9,13,ie0@got@tprel@ha
26471 ld 9,ie0@got@tprel@l(9)
26473 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26474 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26475 gcc_cv_ld_large_toc=yes
26477 rm -f conftest conftest.o conftest.s
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26482 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26483 if test x"$gcc_cv_ld_large_toc" = xyes; then
26485 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26489 esac
26491 case "$target" in
26492 *-*-aix*)
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26494 $as_echo_n "checking linker large toc support... " >&6; }
26495 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26496 $as_echo_n "(cached) " >&6
26497 else
26498 gcc_cv_ld_large_toc=no
26499 if test x$gcc_cv_as != x ; then
26500 cat > conftest.s <<EOF
26501 .toc
26502 LC..1:
26503 .tc a[TC],a[RW]
26504 .extern a[RW]
26505 .csect .text[PR]
26506 .largetoctest:
26507 addis 9,LC..1@u(2)
26508 ld 3,LC..1@l(9)
26510 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26511 gcc_cv_ld_large_toc=yes
26513 rm -f conftest conftest.o conftest.s
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26518 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26519 if test x"$gcc_cv_ld_large_toc" = xyes; then
26521 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26525 esac
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26528 $as_echo_n "checking linker --build-id support... " >&6; }
26529 if test "${gcc_cv_ld_buildid+set}" = set; then :
26530 $as_echo_n "(cached) " >&6
26531 else
26532 gcc_cv_ld_buildid=no
26533 if test $in_tree_ld = yes ; then
26534 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26535 "$gcc_cv_gld_minor_version" -ge 18 -o \
26536 "$gcc_cv_gld_major_version" -gt 2 \
26537 && test $in_tree_ld_is_elf = yes; then
26538 gcc_cv_ld_buildid=yes
26540 elif test x$gcc_cv_ld != x; then
26541 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26542 gcc_cv_ld_buildid=yes
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26547 $as_echo "$gcc_cv_ld_buildid" >&6; }
26548 if test x"$gcc_cv_ld_buildid" = xyes; then
26550 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26554 # Check whether --enable-linker-build-id was given.
26555 if test "${enable_linker_build_id+set}" = set; then :
26556 enableval=$enable_linker_build_id;
26557 else
26558 enable_linker_build_id=no
26562 if test x"$enable_linker_build_id" = xyes; then
26563 if test x"$gcc_cv_ld_buildid" = xyes; then
26565 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26567 else
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26569 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26573 # In binutils 2.21, GNU ld gained support for new emulations fully
26574 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26576 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26577 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26578 $as_echo_n "(cached) " >&6
26579 else
26580 gcc_cv_ld_sol2_emulation=no
26581 if test $in_tree_ld = yes ; then
26582 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26583 "$gcc_cv_gld_minor_version" -ge 21 -o \
26584 "$gcc_cv_gld_major_version" -gt 2 \
26585 && test $in_tree_ld_is_elf = yes; then
26586 gcc_cv_ld_sol2_emulation=yes
26588 elif test x$gcc_cv_ld != x; then
26589 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26590 grep _sol2 > /dev/null; then
26591 gcc_cv_ld_sol2_emulation=yes
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26596 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26597 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26599 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26604 $as_echo_n "checking linker --sysroot support... " >&6; }
26605 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26606 $as_echo_n "(cached) " >&6
26607 else
26608 gcc_cv_ld_sysroot=no
26609 if test $in_tree_ld = yes ; then
26610 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
26611 gcc_cv_ld_sysroot=yes
26613 elif test x$gcc_cv_ld != x; then
26614 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26615 gcc_cv_ld_sysroot=yes
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26620 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26621 if test x"$gcc_cv_ld_sysroot" = xyes; then
26623 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26627 if test x$with_sysroot = x && test x$host = x$target \
26628 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26629 && test "$prefix" != "NONE"; then
26631 cat >>confdefs.h <<_ACEOF
26632 #define PREFIX_INCLUDE_DIR "$prefix/include"
26633 _ACEOF
26637 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26638 if test "x$with_headers" != x; then
26639 target_header_dir=$with_headers
26640 elif test "x$with_sysroot" = x; then
26641 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26642 elif test "x$with_build_sysroot" != "x"; then
26643 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26644 elif test "x$with_sysroot" = xyes; then
26645 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26646 else
26647 target_header_dir="${with_sysroot}${native_system_header_dir}"
26649 else
26650 target_header_dir=${native_system_header_dir}
26653 # Test for stack protector support in target C library.
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26655 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26656 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26657 $as_echo_n "(cached) " >&6
26658 else
26659 gcc_cv_libc_provides_ssp=no
26660 case "$target" in
26661 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26662 # glibc 2.4 and later provides __stack_chk_fail and
26663 # either __stack_chk_guard, or TLS access to stack guard canary.
26664 if test -f $target_header_dir/features.h \
26665 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26666 $target_header_dir/features.h > /dev/null; then
26667 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26668 $target_header_dir/features.h > /dev/null; then
26669 gcc_cv_libc_provides_ssp=yes
26670 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26671 $target_header_dir/features.h > /dev/null \
26672 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26673 $target_header_dir/features.h > /dev/null; then
26674 gcc_cv_libc_provides_ssp=yes
26675 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26676 $target_header_dir/features.h > /dev/null && \
26677 test -f $target_header_dir/bits/uClibc_config.h && \
26678 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26679 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26680 gcc_cv_libc_provides_ssp=yes
26682 # all versions of Bionic support stack protector
26683 elif test -f $target_header_dir/sys/cdefs.h \
26684 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26685 $target_header_dir/sys/cdefs.h > /dev/null; then
26686 gcc_cv_libc_provides_ssp=yes
26689 *-*-gnu*)
26690 # Avoid complicated tests (see
26691 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26692 # simply assert that glibc does provide this, which is true for all
26693 # realistically usable GNU/Hurd configurations.
26694 gcc_cv_libc_provides_ssp=yes;;
26695 *-*-darwin* | *-*-freebsd*)
26696 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26697 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26698 gcc_cv_libc_provides_ssp=yes
26699 else
26700 echo "no __stack_chk_fail on this target"
26704 *) gcc_cv_libc_provides_ssp=no ;;
26705 esac
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26708 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26710 if test x$gcc_cv_libc_provides_ssp = xyes; then
26712 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26716 # Test for <sys/sdt.h> on the target.
26718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26719 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26720 have_sys_sdt_h=no
26721 if test -f $target_header_dir/sys/sdt.h; then
26722 have_sys_sdt_h=yes
26724 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26728 $as_echo "$have_sys_sdt_h" >&6; }
26730 # Check if TFmode long double should be used by default or not.
26731 # Some glibc targets used DFmode long double, but with glibc 2.4
26732 # and later they can use TFmode.
26733 case "$target" in
26734 powerpc*-*-linux* | \
26735 sparc*-*-linux* | \
26736 s390*-*-linux* | \
26737 alpha*-*-linux*)
26739 # Check whether --with-long-double-128 was given.
26740 if test "${with_long_double_128+set}" = set; then :
26741 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26742 else
26743 gcc_cv_target_ldbl128=no
26744 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26745 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26746 && gcc_cv_target_ldbl128=yes
26751 esac
26752 if test x$gcc_cv_target_ldbl128 = xyes; then
26754 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26759 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26760 gcc_cv_target_dl_iterate_phdr=unknown
26761 case "$target" in
26762 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26763 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26764 # libdl there, both complicating its use and breaking compatibility
26765 # between Solaris 10 updates.
26766 *-*-solaris2.1[1-9]*)
26767 # <link.h> needs both a dl_iterate_phdr declaration and support for
26768 # compilation with largefile support.
26769 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26770 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26771 gcc_cv_target_dl_iterate_phdr=yes
26772 else
26773 gcc_cv_target_dl_iterate_phdr=no
26776 esac
26778 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26780 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26784 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26786 # Find out what GC implementation we want, or may, use.
26788 # Check whether --with-gc was given.
26789 if test "${with_gc+set}" = set; then :
26790 withval=$with_gc; case "$withval" in
26791 page)
26792 GGC=ggc-$withval
26794 zone)
26795 GGC=ggc-$withval
26797 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26801 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26803 esac
26804 else
26805 GGC=ggc-page
26809 echo "Using $GGC for garbage collection."
26811 # Libraries to use on the host. This will normally be set by the top
26812 # level Makefile. Here we simply capture the value for our Makefile.
26813 if test -z "${HOST_LIBS+set}"; then
26814 HOST_LIBS=
26818 # Use the system's zlib library.
26819 zlibdir=-L../zlib
26820 zlibinc="-I\$(srcdir)/../zlib"
26822 # Check whether --with-system-zlib was given.
26823 if test "${with_system_zlib+set}" = set; then :
26824 withval=$with_system_zlib; zlibdir=
26825 zlibinc=
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26834 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26835 # Check whether --enable-maintainer-mode was given.
26836 if test "${enable_maintainer_mode+set}" = set; then :
26837 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26838 else
26839 maintainer_mode=no
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26844 $as_echo "$maintainer_mode" >&6; }
26846 if test "$maintainer_mode" = "yes"; then
26847 MAINT=''
26848 else
26849 MAINT='#'
26852 # --------------
26853 # Language hooks
26854 # --------------
26856 # Make empty files to contain the specs and options for each language.
26857 # Then add #include lines to for a compiler that has specs and/or options.
26859 subdirs=
26860 lang_opt_files=
26861 lang_specs_files=
26862 lang_tree_files=
26863 # These (without "all_") are set in each config-lang.in.
26864 # `language' must be a single word so is spelled singularly.
26865 all_languages=
26866 all_compilers=
26867 all_outputs='Makefile'
26868 # List of language makefile fragments.
26869 all_lang_makefrags=
26870 # Additional files for gengtype
26871 all_gtfiles="$target_gtfiles"
26873 # These are the languages that are set in --enable-languages,
26874 # and are available in the GCC tree.
26875 all_selected_languages=
26877 # Add the language fragments.
26878 # Languages are added via two mechanisms. Some information must be
26879 # recorded in makefile variables, these are defined in config-lang.in.
26880 # We accumulate them and plug them into the main Makefile.
26881 # The other mechanism is a set of hooks for each of the main targets
26882 # like `clean', `install', etc.
26884 language_hooks="Make-hooks"
26886 for lang in ${srcdir}/*/config-lang.in
26888 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26890 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26891 if test "x$lang_alias" = x
26892 then
26893 echo "$lang doesn't set \$language." 1>&2
26894 exit 1
26896 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26897 subdirs="$subdirs $subdir"
26899 # $gcc_subdir is where the gcc integration files are to be found
26900 # for a language, both for internal compiler purposes (compiler
26901 # sources implementing front-end to GCC tree converters), and for
26902 # build infrastructure purposes (Make-lang.in, etc.)
26904 # This will be <subdir> (relative to $srcdir) if a line like
26905 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26906 # is found in <langdir>/config-lang.in, and will remain <langdir>
26907 # otherwise.
26909 # Except for the language alias (fetched above), the regular
26910 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26911 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26912 # only this and the language alias.
26914 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26915 if [ "$gcc_subdir" = "" ]; then
26916 gcc_subdir="$subdir"
26919 case ",$enable_languages," in
26920 *,$lang_alias,*)
26921 all_selected_languages="$all_selected_languages $lang_alias"
26922 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26923 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26926 esac
26928 language=
26929 boot_language=
26930 compilers=
26931 outputs=
26932 gtfiles=
26933 subdir_requires=
26934 . ${srcdir}/$gcc_subdir/config-lang.in
26935 if test "x$language" = x
26936 then
26937 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26938 exit 1
26941 ok=:
26942 case ",$enable_languages," in
26943 *,$lang_alias,*) ;;
26945 for i in $subdir_requires; do
26946 test -f "${srcdir}/$i/config-lang.in" && continue
26947 ok=false
26948 break
26949 done
26951 esac
26952 $ok || continue
26954 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26955 if test -f $srcdir/$gcc_subdir/lang.opt; then
26956 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26957 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26959 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26960 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26962 all_languages="$all_languages $language"
26963 all_compilers="$all_compilers $compilers"
26964 all_outputs="$all_outputs $outputs"
26965 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26966 case ",$enable_languages," in
26967 *,lto,*)
26969 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26971 enable_lto=yes
26974 *) ;;
26975 esac
26976 done
26978 check_languages=
26979 for language in $all_selected_languages
26981 check_languages="$check_languages check-$language"
26982 done
26984 # We link each language in with a set of hooks, reached indirectly via
26985 # lang.${target}. Only do so for selected languages.
26987 rm -f Make-hooks
26988 touch Make-hooks
26989 target_list="all.cross start.encap rest.encap tags \
26990 install-common install-man install-info install-pdf install-html dvi \
26991 pdf html uninstall info man srcextra srcman srcinfo \
26992 mostlyclean clean distclean maintainer-clean install-plugin"
26994 for t in $target_list
26997 for lang in $all_selected_languages
26999 x="$x $lang.$t"
27000 done
27001 echo "lang.$t: $x" >> Make-hooks
27002 done
27004 # --------
27005 # Option include files
27006 # --------
27008 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27009 option_includes="option-includes.mk"
27012 # --------
27013 # UNSORTED
27014 # --------
27016 # Create .gdbinit.
27018 echo "dir ." > .gdbinit
27019 echo "dir ${srcdir}" >> .gdbinit
27020 if test x$gdb_needs_out_file_path = xyes
27021 then
27022 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27024 if test "x$subdirs" != x; then
27025 for s in $subdirs
27027 echo "dir ${srcdir}/$s" >> .gdbinit
27028 done
27030 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27032 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27036 # Find a directory in which to install a shared libgcc.
27038 # Check whether --enable-version-specific-runtime-libs was given.
27039 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27040 enableval=$enable_version_specific_runtime_libs;
27044 # Substitute configuration variables
27107 # Echo link setup.
27108 if test x${build} = x${host} ; then
27109 if test x${host} = x${target} ; then
27110 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27111 else
27112 echo "Links are now set up to build a cross-compiler" 1>&2
27113 echo " from ${host} to ${target}." 1>&2
27115 else
27116 if test x${host} = x${target} ; then
27117 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27118 echo " for ${target}." 1>&2
27119 else
27120 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27121 echo " from ${host} to ${target}." 1>&2
27133 if test "x${CLOOGLIBS}" != "x" ; then
27135 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27139 # Check for plugin support
27140 # Check whether --enable-plugin was given.
27141 if test "${enable_plugin+set}" = set; then :
27142 enableval=$enable_plugin; enable_plugin=$enableval
27143 else
27144 enable_plugin=yes; default_plugin=yes
27148 pluginlibs=
27150 case "${host}" in
27151 *-*-darwin*)
27152 if test x$build = x$host; then
27153 export_sym_check="nm${exeext} -g"
27154 elif test x$host = x$target; then
27155 export_sym_check="$gcc_cv_nm -g"
27156 else
27157 export_sym_check=
27161 if test x$build = x$host; then
27162 export_sym_check="objdump${exeext} -T"
27163 elif test x$host = x$target; then
27164 export_sym_check="$gcc_cv_objdump -T"
27165 else
27166 export_sym_check=
27169 esac
27171 if test x"$enable_plugin" = x"yes"; then
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27174 $as_echo_n "checking for exported symbols... " >&6; }
27175 if test "x$export_sym_check" != x; then
27176 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27177 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27178 if $export_sym_check conftest | grep foobar > /dev/null; then
27179 : # No need to use a flag
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27181 $as_echo "yes" >&6; }
27182 else
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27184 $as_echo "yes" >&6; }
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27186 $as_echo_n "checking for -rdynamic... " >&6; }
27187 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27188 if $export_sym_check conftest | grep foobar > /dev/null; then
27189 plugin_rdynamic=yes
27190 pluginlibs="-rdynamic"
27191 else
27192 plugin_rdynamic=no
27193 enable_plugin=no
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27196 $as_echo "$plugin_rdynamic" >&6; }
27198 else
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27200 $as_echo "unable to check" >&6; }
27203 # Check -ldl
27204 saved_LIBS="$LIBS"
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27206 $as_echo_n "checking for library containing dlopen... " >&6; }
27207 if test "${ac_cv_search_dlopen+set}" = set; then :
27208 $as_echo_n "(cached) " >&6
27209 else
27210 ac_func_search_save_LIBS=$LIBS
27211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27212 /* end confdefs.h. */
27214 /* Override any GCC internal prototype to avoid an error.
27215 Use char because int might match the return type of a GCC
27216 builtin and then its argument prototype would still apply. */
27217 #ifdef __cplusplus
27218 extern "C"
27219 #endif
27220 char dlopen ();
27222 main ()
27224 return dlopen ();
27226 return 0;
27228 _ACEOF
27229 for ac_lib in '' dl; do
27230 if test -z "$ac_lib"; then
27231 ac_res="none required"
27232 else
27233 ac_res=-l$ac_lib
27234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27236 if ac_fn_c_try_link "$LINENO"; then :
27237 ac_cv_search_dlopen=$ac_res
27239 rm -f core conftest.err conftest.$ac_objext \
27240 conftest$ac_exeext
27241 if test "${ac_cv_search_dlopen+set}" = set; then :
27242 break
27244 done
27245 if test "${ac_cv_search_dlopen+set}" = set; then :
27247 else
27248 ac_cv_search_dlopen=no
27250 rm conftest.$ac_ext
27251 LIBS=$ac_func_search_save_LIBS
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27254 $as_echo "$ac_cv_search_dlopen" >&6; }
27255 ac_res=$ac_cv_search_dlopen
27256 if test "$ac_res" != no; then :
27257 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27261 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27262 pluginlibs="$pluginlibs -ldl"
27264 LIBS="$saved_LIBS"
27266 # Check that we can build shared objects with -fPIC -shared
27267 saved_LDFLAGS="$LDFLAGS"
27268 saved_CFLAGS="$CFLAGS"
27269 case "${host}" in
27270 *-*-darwin*)
27271 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27272 CFLAGS="$CFLAGS -fPIC"
27273 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27276 CFLAGS="$CFLAGS -fPIC"
27277 LDFLAGS="$LDFLAGS -fPIC -shared"
27279 esac
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27281 $as_echo_n "checking for -fPIC -shared... " >&6; }
27282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27283 /* end confdefs.h. */
27284 extern int X;
27286 main ()
27288 return X == 0;
27290 return 0;
27292 _ACEOF
27293 if ac_fn_c_try_link "$LINENO"; then :
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27295 $as_echo "yes" >&6; }; have_pic_shared=yes
27296 else
27297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27298 $as_echo "no" >&6; }; have_pic_shared=no
27300 rm -f core conftest.err conftest.$ac_objext \
27301 conftest$ac_exeext conftest.$ac_ext
27302 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27303 pluginlibs=
27304 enable_plugin=no
27306 LDFLAGS="$saved_LDFLAGS"
27307 CFLAGS="$saved_CFLAGS"
27309 # If plugin support had been requested but not available, fail.
27310 if test x"$enable_plugin" = x"no" ; then
27311 if test x"$default_plugin" != x"yes"; then
27312 as_fn_error "
27313 Building GCC with plugin support requires a host that supports
27314 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27321 if test x"$enable_plugin" = x"yes"; then
27323 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27328 # Check whether --enable-libquadmath-support was given.
27329 if test "${enable_libquadmath_support+set}" = set; then :
27330 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27331 else
27332 ENABLE_LIBQUADMATH_SUPPORT=yes
27335 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27337 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27342 # Specify what hash style to use by default.
27344 # Check whether --with-linker-hash-style was given.
27345 if test "${with_linker_hash_style+set}" = set; then :
27346 withval=$with_linker_hash_style; case x"$withval" in
27347 xsysv)
27348 LINKER_HASH_STYLE=sysv
27350 xgnu)
27351 LINKER_HASH_STYLE=gnu
27353 xboth)
27354 LINKER_HASH_STYLE=both
27357 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27359 esac
27360 else
27361 LINKER_HASH_STYLE=''
27364 if test x"${LINKER_HASH_STYLE}" != x; then
27366 cat >>confdefs.h <<_ACEOF
27367 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27368 _ACEOF
27372 # Configure the subdirectories
27373 # AC_CONFIG_SUBDIRS($subdirs)
27375 # Create the Makefile
27376 # and configure language subdirectories
27377 ac_config_files="$ac_config_files $all_outputs"
27380 ac_config_commands="$ac_config_commands default"
27382 cat >confcache <<\_ACEOF
27383 # This file is a shell script that caches the results of configure
27384 # tests run on this system so they can be shared between configure
27385 # scripts and configure runs, see configure's option --config-cache.
27386 # It is not useful on other systems. If it contains results you don't
27387 # want to keep, you may remove or edit it.
27389 # config.status only pays attention to the cache file if you give it
27390 # the --recheck option to rerun configure.
27392 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27393 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27394 # following values.
27396 _ACEOF
27398 # The following way of writing the cache mishandles newlines in values,
27399 # but we know of no workaround that is simple, portable, and efficient.
27400 # So, we kill variables containing newlines.
27401 # Ultrix sh set writes to stderr and can't be redirected directly,
27402 # and sets the high bit in the cache file unless we assign to the vars.
27404 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27405 eval ac_val=\$$ac_var
27406 case $ac_val in #(
27407 *${as_nl}*)
27408 case $ac_var in #(
27409 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27410 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27411 esac
27412 case $ac_var in #(
27413 _ | IFS | as_nl) ;; #(
27414 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27415 *) { eval $ac_var=; unset $ac_var;} ;;
27416 esac ;;
27417 esac
27418 done
27420 (set) 2>&1 |
27421 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27422 *${as_nl}ac_space=\ *)
27423 # `set' does not quote correctly, so add quotes: double-quote
27424 # substitution turns \\\\ into \\, and sed turns \\ into \.
27425 sed -n \
27426 "s/'/'\\\\''/g;
27427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27428 ;; #(
27430 # `set' quotes correctly as required by POSIX, so do not add quotes.
27431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27433 esac |
27434 sort
27436 sed '
27437 /^ac_cv_env_/b end
27438 t clear
27439 :clear
27440 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27441 t end
27442 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27443 :end' >>confcache
27444 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27445 if test -w "$cache_file"; then
27446 test "x$cache_file" != "x/dev/null" &&
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27448 $as_echo "$as_me: updating cache $cache_file" >&6;}
27449 cat confcache >$cache_file
27450 else
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27452 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27455 rm -f confcache
27457 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27458 # Let make expand exec_prefix.
27459 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27461 DEFS=-DHAVE_CONFIG_H
27463 ac_libobjs=
27464 ac_ltlibobjs=
27465 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27466 # 1. Remove the extension, and $U if already installed.
27467 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27468 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27469 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27470 # will be set to the directory where LIBOBJS objects are built.
27471 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27472 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27473 done
27474 LIBOBJS=$ac_libobjs
27476 LTLIBOBJS=$ac_ltlibobjs
27481 : ${CONFIG_STATUS=./config.status}
27482 ac_write_fail=0
27483 ac_clean_files_save=$ac_clean_files
27484 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27486 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27487 as_write_fail=0
27488 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27489 #! $SHELL
27490 # Generated by $as_me.
27491 # Run this file to recreate the current configuration.
27492 # Compiler output produced by configure, useful for debugging
27493 # configure, is in config.log if it exists.
27495 debug=false
27496 ac_cs_recheck=false
27497 ac_cs_silent=false
27499 SHELL=\${CONFIG_SHELL-$SHELL}
27500 export SHELL
27501 _ASEOF
27502 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27503 ## -------------------- ##
27504 ## M4sh Initialization. ##
27505 ## -------------------- ##
27507 # Be more Bourne compatible
27508 DUALCASE=1; export DUALCASE # for MKS sh
27509 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27510 emulate sh
27511 NULLCMD=:
27512 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27513 # is contrary to our usage. Disable this feature.
27514 alias -g '${1+"$@"}'='"$@"'
27515 setopt NO_GLOB_SUBST
27516 else
27517 case `(set -o) 2>/dev/null` in #(
27518 *posix*) :
27519 set -o posix ;; #(
27520 *) :
27522 esac
27526 as_nl='
27528 export as_nl
27529 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27530 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27532 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27533 # Prefer a ksh shell builtin over an external printf program on Solaris,
27534 # but without wasting forks for bash or zsh.
27535 if test -z "$BASH_VERSION$ZSH_VERSION" \
27536 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27537 as_echo='print -r --'
27538 as_echo_n='print -rn --'
27539 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27540 as_echo='printf %s\n'
27541 as_echo_n='printf %s'
27542 else
27543 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27544 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27545 as_echo_n='/usr/ucb/echo -n'
27546 else
27547 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27548 as_echo_n_body='eval
27549 arg=$1;
27550 case $arg in #(
27551 *"$as_nl"*)
27552 expr "X$arg" : "X\\(.*\\)$as_nl";
27553 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27554 esac;
27555 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27557 export as_echo_n_body
27558 as_echo_n='sh -c $as_echo_n_body as_echo'
27560 export as_echo_body
27561 as_echo='sh -c $as_echo_body as_echo'
27564 # The user is always right.
27565 if test "${PATH_SEPARATOR+set}" != set; then
27566 PATH_SEPARATOR=:
27567 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27568 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27569 PATH_SEPARATOR=';'
27574 # IFS
27575 # We need space, tab and new line, in precisely that order. Quoting is
27576 # there to prevent editors from complaining about space-tab.
27577 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27578 # splitting by setting IFS to empty value.)
27579 IFS=" "" $as_nl"
27581 # Find who we are. Look in the path if we contain no directory separator.
27582 case $0 in #((
27583 *[\\/]* ) as_myself=$0 ;;
27584 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27585 for as_dir in $PATH
27587 IFS=$as_save_IFS
27588 test -z "$as_dir" && as_dir=.
27589 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27590 done
27591 IFS=$as_save_IFS
27594 esac
27595 # We did not find ourselves, most probably we were run as `sh COMMAND'
27596 # in which case we are not to be found in the path.
27597 if test "x$as_myself" = x; then
27598 as_myself=$0
27600 if test ! -f "$as_myself"; then
27601 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27602 exit 1
27605 # Unset variables that we do not need and which cause bugs (e.g. in
27606 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27607 # suppresses any "Segmentation fault" message there. '((' could
27608 # trigger a bug in pdksh 5.2.14.
27609 for as_var in BASH_ENV ENV MAIL MAILPATH
27610 do eval test x\${$as_var+set} = xset \
27611 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27612 done
27613 PS1='$ '
27614 PS2='> '
27615 PS4='+ '
27617 # NLS nuisances.
27618 LC_ALL=C
27619 export LC_ALL
27620 LANGUAGE=C
27621 export LANGUAGE
27623 # CDPATH.
27624 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27627 # as_fn_error ERROR [LINENO LOG_FD]
27628 # ---------------------------------
27629 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27630 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27631 # script with status $?, using 1 if that was 0.
27632 as_fn_error ()
27634 as_status=$?; test $as_status -eq 0 && as_status=1
27635 if test "$3"; then
27636 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27637 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27639 $as_echo "$as_me: error: $1" >&2
27640 as_fn_exit $as_status
27641 } # as_fn_error
27644 # as_fn_set_status STATUS
27645 # -----------------------
27646 # Set $? to STATUS, without forking.
27647 as_fn_set_status ()
27649 return $1
27650 } # as_fn_set_status
27652 # as_fn_exit STATUS
27653 # -----------------
27654 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27655 as_fn_exit ()
27657 set +e
27658 as_fn_set_status $1
27659 exit $1
27660 } # as_fn_exit
27662 # as_fn_unset VAR
27663 # ---------------
27664 # Portably unset VAR.
27665 as_fn_unset ()
27667 { eval $1=; unset $1;}
27669 as_unset=as_fn_unset
27670 # as_fn_append VAR VALUE
27671 # ----------------------
27672 # Append the text in VALUE to the end of the definition contained in VAR. Take
27673 # advantage of any shell optimizations that allow amortized linear growth over
27674 # repeated appends, instead of the typical quadratic growth present in naive
27675 # implementations.
27676 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27677 eval 'as_fn_append ()
27679 eval $1+=\$2
27681 else
27682 as_fn_append ()
27684 eval $1=\$$1\$2
27686 fi # as_fn_append
27688 # as_fn_arith ARG...
27689 # ------------------
27690 # Perform arithmetic evaluation on the ARGs, and store the result in the
27691 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27692 # must be portable across $(()) and expr.
27693 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27694 eval 'as_fn_arith ()
27696 as_val=$(( $* ))
27698 else
27699 as_fn_arith ()
27701 as_val=`expr "$@" || test $? -eq 1`
27703 fi # as_fn_arith
27706 if expr a : '\(a\)' >/dev/null 2>&1 &&
27707 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27708 as_expr=expr
27709 else
27710 as_expr=false
27713 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27714 as_basename=basename
27715 else
27716 as_basename=false
27719 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27720 as_dirname=dirname
27721 else
27722 as_dirname=false
27725 as_me=`$as_basename -- "$0" ||
27726 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27727 X"$0" : 'X\(//\)$' \| \
27728 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27729 $as_echo X/"$0" |
27730 sed '/^.*\/\([^/][^/]*\)\/*$/{
27731 s//\1/
27734 /^X\/\(\/\/\)$/{
27735 s//\1/
27738 /^X\/\(\/\).*/{
27739 s//\1/
27742 s/.*/./; q'`
27744 # Avoid depending upon Character Ranges.
27745 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27746 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27747 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27748 as_cr_digits='0123456789'
27749 as_cr_alnum=$as_cr_Letters$as_cr_digits
27751 ECHO_C= ECHO_N= ECHO_T=
27752 case `echo -n x` in #(((((
27753 -n*)
27754 case `echo 'xy\c'` in
27755 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27756 xy) ECHO_C='\c';;
27757 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27758 ECHO_T=' ';;
27759 esac;;
27761 ECHO_N='-n';;
27762 esac
27764 rm -f conf$$ conf$$.exe conf$$.file
27765 if test -d conf$$.dir; then
27766 rm -f conf$$.dir/conf$$.file
27767 else
27768 rm -f conf$$.dir
27769 mkdir conf$$.dir 2>/dev/null
27771 if (echo >conf$$.file) 2>/dev/null; then
27772 if ln -s conf$$.file conf$$ 2>/dev/null; then
27773 as_ln_s='ln -s'
27774 # ... but there are two gotchas:
27775 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27776 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27777 # In both cases, we have to default to `cp -p'.
27778 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27779 as_ln_s='cp -p'
27780 elif ln conf$$.file conf$$ 2>/dev/null; then
27781 as_ln_s=ln
27782 else
27783 as_ln_s='cp -p'
27785 else
27786 as_ln_s='cp -p'
27788 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27789 rmdir conf$$.dir 2>/dev/null
27792 # as_fn_mkdir_p
27793 # -------------
27794 # Create "$as_dir" as a directory, including parents if necessary.
27795 as_fn_mkdir_p ()
27798 case $as_dir in #(
27799 -*) as_dir=./$as_dir;;
27800 esac
27801 test -d "$as_dir" || eval $as_mkdir_p || {
27802 as_dirs=
27803 while :; do
27804 case $as_dir in #(
27805 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27806 *) as_qdir=$as_dir;;
27807 esac
27808 as_dirs="'$as_qdir' $as_dirs"
27809 as_dir=`$as_dirname -- "$as_dir" ||
27810 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27811 X"$as_dir" : 'X\(//\)[^/]' \| \
27812 X"$as_dir" : 'X\(//\)$' \| \
27813 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27814 $as_echo X"$as_dir" |
27815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27816 s//\1/
27819 /^X\(\/\/\)[^/].*/{
27820 s//\1/
27823 /^X\(\/\/\)$/{
27824 s//\1/
27827 /^X\(\/\).*/{
27828 s//\1/
27831 s/.*/./; q'`
27832 test -d "$as_dir" && break
27833 done
27834 test -z "$as_dirs" || eval "mkdir $as_dirs"
27835 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27838 } # as_fn_mkdir_p
27839 if mkdir -p . 2>/dev/null; then
27840 as_mkdir_p='mkdir -p "$as_dir"'
27841 else
27842 test -d ./-p && rmdir ./-p
27843 as_mkdir_p=false
27846 if test -x / >/dev/null 2>&1; then
27847 as_test_x='test -x'
27848 else
27849 if ls -dL / >/dev/null 2>&1; then
27850 as_ls_L_option=L
27851 else
27852 as_ls_L_option=
27854 as_test_x='
27855 eval sh -c '\''
27856 if test -d "$1"; then
27857 test -d "$1/.";
27858 else
27859 case $1 in #(
27860 -*)set "./$1";;
27861 esac;
27862 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27863 ???[sx]*):;;*)false;;esac;fi
27864 '\'' sh
27867 as_executable_p=$as_test_x
27869 # Sed expression to map a string onto a valid CPP name.
27870 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27872 # Sed expression to map a string onto a valid variable name.
27873 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27876 exec 6>&1
27877 ## ----------------------------------- ##
27878 ## Main body of $CONFIG_STATUS script. ##
27879 ## ----------------------------------- ##
27880 _ASEOF
27881 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27884 # Save the log message, to keep $0 and so on meaningful, and to
27885 # report actual input values of CONFIG_FILES etc. instead of their
27886 # values after options handling.
27887 ac_log="
27888 This file was extended by $as_me, which was
27889 generated by GNU Autoconf 2.64. Invocation command line was
27891 CONFIG_FILES = $CONFIG_FILES
27892 CONFIG_HEADERS = $CONFIG_HEADERS
27893 CONFIG_LINKS = $CONFIG_LINKS
27894 CONFIG_COMMANDS = $CONFIG_COMMANDS
27895 $ $0 $@
27897 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27900 _ACEOF
27902 case $ac_config_files in *"
27903 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27904 esac
27906 case $ac_config_headers in *"
27907 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27908 esac
27911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27912 # Files that config.status was made for.
27913 config_files="$ac_config_files"
27914 config_headers="$ac_config_headers"
27915 config_commands="$ac_config_commands"
27917 _ACEOF
27919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27920 ac_cs_usage="\
27921 \`$as_me' instantiates files and other configuration actions
27922 from templates according to the current configuration. Unless the files
27923 and actions are specified as TAGs, all are instantiated by default.
27925 Usage: $0 [OPTION]... [TAG]...
27927 -h, --help print this help, then exit
27928 -V, --version print version number and configuration settings, then exit
27929 -q, --quiet, --silent
27930 do not print progress messages
27931 -d, --debug don't remove temporary files
27932 --recheck update $as_me by reconfiguring in the same conditions
27933 --file=FILE[:TEMPLATE]
27934 instantiate the configuration file FILE
27935 --header=FILE[:TEMPLATE]
27936 instantiate the configuration header FILE
27938 Configuration files:
27939 $config_files
27941 Configuration headers:
27942 $config_headers
27944 Configuration commands:
27945 $config_commands
27947 Report bugs to the package provider."
27949 _ACEOF
27950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27951 ac_cs_version="\\
27952 config.status
27953 configured by $0, generated by GNU Autoconf 2.64,
27954 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27956 Copyright (C) 2009 Free Software Foundation, Inc.
27957 This config.status script is free software; the Free Software Foundation
27958 gives unlimited permission to copy, distribute and modify it."
27960 ac_pwd='$ac_pwd'
27961 srcdir='$srcdir'
27962 AWK='$AWK'
27963 test -n "\$AWK" || AWK=awk
27964 _ACEOF
27966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27967 # The default lists apply if the user does not specify any file.
27968 ac_need_defaults=:
27969 while test $# != 0
27971 case $1 in
27972 --*=*)
27973 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27974 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27975 ac_shift=:
27978 ac_option=$1
27979 ac_optarg=$2
27980 ac_shift=shift
27982 esac
27984 case $ac_option in
27985 # Handling of the options.
27986 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27987 ac_cs_recheck=: ;;
27988 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27989 $as_echo "$ac_cs_version"; exit ;;
27990 --debug | --debu | --deb | --de | --d | -d )
27991 debug=: ;;
27992 --file | --fil | --fi | --f )
27993 $ac_shift
27994 case $ac_optarg in
27995 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27996 esac
27997 as_fn_append CONFIG_FILES " '$ac_optarg'"
27998 ac_need_defaults=false;;
27999 --header | --heade | --head | --hea )
28000 $ac_shift
28001 case $ac_optarg in
28002 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28003 esac
28004 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28005 ac_need_defaults=false;;
28006 --he | --h)
28007 # Conflict between --help and --header
28008 as_fn_error "ambiguous option: \`$1'
28009 Try \`$0 --help' for more information.";;
28010 --help | --hel | -h )
28011 $as_echo "$ac_cs_usage"; exit ;;
28012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28013 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28014 ac_cs_silent=: ;;
28016 # This is an error.
28017 -*) as_fn_error "unrecognized option: \`$1'
28018 Try \`$0 --help' for more information." ;;
28020 *) as_fn_append ac_config_targets " $1"
28021 ac_need_defaults=false ;;
28023 esac
28024 shift
28025 done
28027 ac_configure_extra_args=
28029 if $ac_cs_silent; then
28030 exec 6>/dev/null
28031 ac_configure_extra_args="$ac_configure_extra_args --silent"
28034 _ACEOF
28035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28036 if \$ac_cs_recheck; then
28037 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28038 shift
28039 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28040 CONFIG_SHELL='$SHELL'
28041 export CONFIG_SHELL
28042 exec "\$@"
28045 _ACEOF
28046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28047 exec 5>>config.log
28049 echo
28050 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28051 ## Running $as_me. ##
28052 _ASBOX
28053 $as_echo "$ac_log"
28054 } >&5
28056 _ACEOF
28057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28059 # INIT-COMMANDS
28061 subdirs='$subdirs'
28063 _ACEOF
28065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28067 # Handling of arguments.
28068 for ac_config_target in $ac_config_targets
28070 case $ac_config_target in
28071 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28072 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28073 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28074 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28075 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28076 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28078 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28079 esac
28080 done
28083 # If the user did not use the arguments to specify the items to instantiate,
28084 # then the envvar interface is used. Set only those that are not.
28085 # We use the long form for the default assignment because of an extremely
28086 # bizarre bug on SunOS 4.1.3.
28087 if $ac_need_defaults; then
28088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28089 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28090 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28093 # Have a temporary directory for convenience. Make it in the build tree
28094 # simply because there is no reason against having it here, and in addition,
28095 # creating and moving files from /tmp can sometimes cause problems.
28096 # Hook for its removal unless debugging.
28097 # Note that there is a small window in which the directory will not be cleaned:
28098 # after its creation but before its name has been assigned to `$tmp'.
28099 $debug ||
28101 tmp=
28102 trap 'exit_status=$?
28103 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28105 trap 'as_fn_exit 1' 1 2 13 15
28107 # Create a (secure) tmp directory for tmp files.
28110 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28111 test -n "$tmp" && test -d "$tmp"
28112 } ||
28114 tmp=./conf$$-$RANDOM
28115 (umask 077 && mkdir "$tmp")
28116 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28118 # Set up the scripts for CONFIG_FILES section.
28119 # No need to generate them if there are no CONFIG_FILES.
28120 # This happens for instance with `./config.status config.h'.
28121 if test -n "$CONFIG_FILES"; then
28123 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28124 ac_cs_awk_getline=:
28125 ac_cs_awk_pipe_init=
28126 ac_cs_awk_read_file='
28127 while ((getline aline < (F[key])) > 0)
28128 print(aline)
28129 close(F[key])'
28130 ac_cs_awk_pipe_fini=
28131 else
28132 ac_cs_awk_getline=false
28133 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28134 ac_cs_awk_read_file='
28135 print "|#_!!_#|"
28136 print "cat " F[key] " &&"
28137 '$ac_cs_awk_pipe_init
28138 # The final `:' finishes the AND list.
28139 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28141 ac_cr=`echo X | tr X '\015'`
28142 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28143 # But we know of no other shell where ac_cr would be empty at this
28144 # point, so we can use a bashism as a fallback.
28145 if test "x$ac_cr" = x; then
28146 eval ac_cr=\$\'\\r\'
28148 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28149 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28150 ac_cs_awk_cr='\r'
28151 else
28152 ac_cs_awk_cr=$ac_cr
28155 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28156 _ACEOF
28158 # Create commands to substitute file output variables.
28160 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28161 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28162 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28163 echo "_ACAWK" &&
28164 echo "_ACEOF"
28165 } >conf$$files.sh &&
28166 . ./conf$$files.sh ||
28167 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28168 rm -f conf$$files.sh
28171 echo "cat >conf$$subs.awk <<_ACEOF" &&
28172 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28173 echo "_ACEOF"
28174 } >conf$$subs.sh ||
28175 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28176 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28177 ac_delim='%!_!# '
28178 for ac_last_try in false false false false false :; do
28179 . ./conf$$subs.sh ||
28180 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28182 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28183 if test $ac_delim_n = $ac_delim_num; then
28184 break
28185 elif $ac_last_try; then
28186 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28187 else
28188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28190 done
28191 rm -f conf$$subs.sh
28193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28194 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28195 _ACEOF
28196 sed -n '
28198 s/^/S["/; s/!.*/"]=/
28201 s/^[^!]*!//
28202 :repl
28203 t repl
28204 s/'"$ac_delim"'$//
28205 t delim
28208 s/\(.\{148\}\).*/\1/
28209 t more1
28210 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28213 b repl
28214 :more1
28215 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28218 s/.\{148\}//
28219 t nl
28220 :delim
28222 s/\(.\{148\}\).*/\1/
28223 t more2
28224 s/["\\]/\\&/g; s/^/"/; s/$/"/
28227 :more2
28228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28231 s/.\{148\}//
28232 t delim
28233 ' <conf$$subs.awk | sed '
28234 /^[^""]/{
28236 s/\n//
28238 ' >>$CONFIG_STATUS || ac_write_fail=1
28239 rm -f conf$$subs.awk
28240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28241 _ACAWK
28242 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28243 for (key in S) S_is_set[key] = 1
28244 FS = "\a"
28245 \$ac_cs_awk_pipe_init
28248 line = $ 0
28249 nfields = split(line, field, "@")
28250 substed = 0
28251 len = length(field[1])
28252 for (i = 2; i < nfields; i++) {
28253 key = field[i]
28254 keylen = length(key)
28255 if (S_is_set[key]) {
28256 value = S[key]
28257 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28258 len += length(value) + length(field[++i])
28259 substed = 1
28260 } else
28261 len += 1 + keylen
28263 if (nfields == 3 && !substed) {
28264 key = field[2]
28265 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28266 \$ac_cs_awk_read_file
28267 next
28270 print line
28272 \$ac_cs_awk_pipe_fini
28273 _ACAWK
28274 _ACEOF
28275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28276 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28277 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28278 else
28280 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28281 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28282 _ACEOF
28284 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28285 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28286 # trailing colons and then remove the whole line if VPATH becomes empty
28287 # (actually we leave an empty line to preserve line numbers).
28288 if test "x$srcdir" = x.; then
28289 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28290 s/:*\$(srcdir):*/:/
28291 s/:*\${srcdir}:*/:/
28292 s/:*@srcdir@:*/:/
28293 s/^\([^=]*=[ ]*\):*/\1/
28294 s/:*$//
28295 s/^[^=]*=[ ]*$//
28299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28300 fi # test -n "$CONFIG_FILES"
28302 # Set up the scripts for CONFIG_HEADERS section.
28303 # No need to generate them if there are no CONFIG_HEADERS.
28304 # This happens for instance with `./config.status Makefile'.
28305 if test -n "$CONFIG_HEADERS"; then
28306 cat >"$tmp/defines.awk" <<\_ACAWK ||
28307 BEGIN {
28308 _ACEOF
28310 # Transform confdefs.h into an awk script `defines.awk', embedded as
28311 # here-document in config.status, that substitutes the proper values into
28312 # config.h.in to produce config.h.
28314 # Create a delimiter string that does not exist in confdefs.h, to ease
28315 # handling of long lines.
28316 ac_delim='%!_!# '
28317 for ac_last_try in false false :; do
28318 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28319 if test -z "$ac_t"; then
28320 break
28321 elif $ac_last_try; then
28322 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28323 else
28324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28326 done
28328 # For the awk script, D is an array of macro values keyed by name,
28329 # likewise P contains macro parameters if any. Preserve backslash
28330 # newline sequences.
28332 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28333 sed -n '
28334 s/.\{148\}/&'"$ac_delim"'/g
28335 t rset
28336 :rset
28337 s/^[ ]*#[ ]*define[ ][ ]*/ /
28338 t def
28340 :def
28341 s/\\$//
28342 t bsnl
28343 s/["\\]/\\&/g
28344 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28345 D["\1"]=" \3"/p
28346 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28348 :bsnl
28349 s/["\\]/\\&/g
28350 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28351 D["\1"]=" \3\\\\\\n"\\/p
28352 t cont
28353 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28354 t cont
28356 :cont
28358 s/.\{148\}/&'"$ac_delim"'/g
28359 t clear
28360 :clear
28361 s/\\$//
28362 t bsnlc
28363 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28365 :bsnlc
28366 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28367 b cont
28368 ' <confdefs.h | sed '
28369 s/'"$ac_delim"'/"\\\
28370 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28373 for (key in D) D_is_set[key] = 1
28374 FS = "\a"
28376 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28377 line = \$ 0
28378 split(line, arg, " ")
28379 if (arg[1] == "#") {
28380 defundef = arg[2]
28381 mac1 = arg[3]
28382 } else {
28383 defundef = substr(arg[1], 2)
28384 mac1 = arg[2]
28386 split(mac1, mac2, "(") #)
28387 macro = mac2[1]
28388 prefix = substr(line, 1, index(line, defundef) - 1)
28389 if (D_is_set[macro]) {
28390 # Preserve the white space surrounding the "#".
28391 print prefix "define", macro P[macro] D[macro]
28392 next
28393 } else {
28394 # Replace #undef with comments. This is necessary, for example,
28395 # in the case of _POSIX_SOURCE, which is predefined and required
28396 # on some systems where configure will not decide to define it.
28397 if (defundef == "undef") {
28398 print "/*", prefix defundef, macro, "*/"
28399 next
28403 { print }
28404 _ACAWK
28405 _ACEOF
28406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28407 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28408 fi # test -n "$CONFIG_HEADERS"
28411 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28412 shift
28413 for ac_tag
28415 case $ac_tag in
28416 :[FHLC]) ac_mode=$ac_tag; continue;;
28417 esac
28418 case $ac_mode$ac_tag in
28419 :[FHL]*:*);;
28420 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28421 :[FH]-) ac_tag=-:-;;
28422 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28423 esac
28424 ac_save_IFS=$IFS
28425 IFS=:
28426 set x $ac_tag
28427 IFS=$ac_save_IFS
28428 shift
28429 ac_file=$1
28430 shift
28432 case $ac_mode in
28433 :L) ac_source=$1;;
28434 :[FH])
28435 ac_file_inputs=
28436 for ac_f
28438 case $ac_f in
28439 -) ac_f="$tmp/stdin";;
28440 *) # Look for the file first in the build tree, then in the source tree
28441 # (if the path is not absolute). The absolute path cannot be DOS-style,
28442 # because $ac_f cannot contain `:'.
28443 test -f "$ac_f" ||
28444 case $ac_f in
28445 [\\/$]*) false;;
28446 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28447 esac ||
28448 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28449 esac
28450 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28451 as_fn_append ac_file_inputs " '$ac_f'"
28452 done
28454 # Let's still pretend it is `configure' which instantiates (i.e., don't
28455 # use $as_me), people would be surprised to read:
28456 # /* config.h. Generated by config.status. */
28457 configure_input='Generated from '`
28458 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28459 `' by configure.'
28460 if test x"$ac_file" != x-; then
28461 configure_input="$ac_file. $configure_input"
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28463 $as_echo "$as_me: creating $ac_file" >&6;}
28465 # Neutralize special characters interpreted by sed in replacement strings.
28466 case $configure_input in #(
28467 *\&* | *\|* | *\\* )
28468 ac_sed_conf_input=`$as_echo "$configure_input" |
28469 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28470 *) ac_sed_conf_input=$configure_input;;
28471 esac
28473 case $ac_tag in
28474 *:-:* | *:-) cat >"$tmp/stdin" \
28475 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28476 esac
28478 esac
28480 ac_dir=`$as_dirname -- "$ac_file" ||
28481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28482 X"$ac_file" : 'X\(//\)[^/]' \| \
28483 X"$ac_file" : 'X\(//\)$' \| \
28484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28485 $as_echo X"$ac_file" |
28486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28487 s//\1/
28490 /^X\(\/\/\)[^/].*/{
28491 s//\1/
28494 /^X\(\/\/\)$/{
28495 s//\1/
28498 /^X\(\/\).*/{
28499 s//\1/
28502 s/.*/./; q'`
28503 as_dir="$ac_dir"; as_fn_mkdir_p
28504 ac_builddir=.
28506 case "$ac_dir" in
28507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28510 # A ".." for each directory in $ac_dir_suffix.
28511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28512 case $ac_top_builddir_sub in
28513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28515 esac ;;
28516 esac
28517 ac_abs_top_builddir=$ac_pwd
28518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28519 # for backward compatibility:
28520 ac_top_builddir=$ac_top_build_prefix
28522 case $srcdir in
28523 .) # We are building in place.
28524 ac_srcdir=.
28525 ac_top_srcdir=$ac_top_builddir_sub
28526 ac_abs_top_srcdir=$ac_pwd ;;
28527 [\\/]* | ?:[\\/]* ) # Absolute name.
28528 ac_srcdir=$srcdir$ac_dir_suffix;
28529 ac_top_srcdir=$srcdir
28530 ac_abs_top_srcdir=$srcdir ;;
28531 *) # Relative name.
28532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28533 ac_top_srcdir=$ac_top_build_prefix$srcdir
28534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28535 esac
28536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28539 case $ac_mode in
28542 # CONFIG_FILE
28545 _ACEOF
28547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28548 # If the template does not know about datarootdir, expand it.
28549 # FIXME: This hack should be removed a few years after 2.60.
28550 ac_datarootdir_hack=; ac_datarootdir_seen=
28551 ac_sed_dataroot='
28552 /datarootdir/ {
28556 /@datadir@/p
28557 /@docdir@/p
28558 /@infodir@/p
28559 /@localedir@/p
28560 /@mandir@/p'
28561 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28562 *datarootdir*) ac_datarootdir_seen=yes;;
28563 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28565 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28566 _ACEOF
28567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28568 ac_datarootdir_hack='
28569 s&@datadir@&$datadir&g
28570 s&@docdir@&$docdir&g
28571 s&@infodir@&$infodir&g
28572 s&@localedir@&$localedir&g
28573 s&@mandir@&$mandir&g
28574 s&\\\${datarootdir}&$datarootdir&g' ;;
28575 esac
28576 _ACEOF
28578 # Neutralize VPATH when `$srcdir' = `.'.
28579 # Shell code in configure.ac might set extrasub.
28580 # FIXME: do we really want to maintain this feature?
28581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28582 ac_sed_extra="$ac_vpsub
28583 $extrasub
28584 _ACEOF
28585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28588 s|@configure_input@|$ac_sed_conf_input|;t t
28589 s&@top_builddir@&$ac_top_builddir_sub&;t t
28590 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28591 s&@srcdir@&$ac_srcdir&;t t
28592 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28593 s&@top_srcdir@&$ac_top_srcdir&;t t
28594 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28595 s&@builddir@&$ac_builddir&;t t
28596 s&@abs_builddir@&$ac_abs_builddir&;t t
28597 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28598 $ac_datarootdir_hack
28600 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28601 if $ac_cs_awk_getline; then
28602 $AWK -f "$tmp/subs.awk"
28603 else
28604 $AWK -f "$tmp/subs.awk" | $SHELL
28605 fi >$tmp/out \
28606 || as_fn_error "could not create $ac_file" "$LINENO" 5
28608 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28609 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28612 which seems to be undefined. Please make sure it is defined." >&5
28613 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28614 which seems to be undefined. Please make sure it is defined." >&2;}
28616 rm -f "$tmp/stdin"
28617 case $ac_file in
28618 -) cat "$tmp/out" && rm -f "$tmp/out";;
28619 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28620 esac \
28621 || as_fn_error "could not create $ac_file" "$LINENO" 5
28625 # CONFIG_HEADER
28627 if test x"$ac_file" != x-; then
28629 $as_echo "/* $configure_input */" \
28630 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28631 } >"$tmp/config.h" \
28632 || as_fn_error "could not create $ac_file" "$LINENO" 5
28633 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28635 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28636 else
28637 rm -f "$ac_file"
28638 mv "$tmp/config.h" "$ac_file" \
28639 || as_fn_error "could not create $ac_file" "$LINENO" 5
28641 else
28642 $as_echo "/* $configure_input */" \
28643 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28644 || as_fn_error "could not create -" "$LINENO" 5
28648 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28649 $as_echo "$as_me: executing $ac_file commands" >&6;}
28651 esac
28654 case $ac_file$ac_mode in
28655 "as":F) chmod +x as ;;
28656 "collect-ld":F) chmod +x collect-ld ;;
28657 "nm":F) chmod +x nm ;;
28658 "default":C)
28659 case ${CONFIG_HEADERS} in
28660 *auto-host.h:config.in*)
28661 echo > cstamp-h ;;
28662 esac
28663 # Make sure all the subdirs exist.
28664 for d in $subdirs doc build common c-family
28666 test -d $d || mkdir $d
28667 done
28670 esac
28671 done # for ac_tag
28674 as_fn_exit 0
28675 _ACEOF
28676 ac_clean_files=$ac_clean_files_save
28678 test $ac_write_fail = 0 ||
28679 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28682 # configure is writing to config.log, and then calls config.status.
28683 # config.status does its own redirection, appending to config.log.
28684 # Unfortunately, on DOS this fails, as config.log is still kept open
28685 # by configure, so config.status won't be able to write to it; its
28686 # output is simply discarded. So we exec the FD to /dev/null,
28687 # effectively closing config.log, so it can be properly (re)opened and
28688 # appended to by config.status. When coming back to configure, we
28689 # need to make the FD available again.
28690 if test "$no_create" != yes; then
28691 ac_cs_success=:
28692 ac_config_status_args=
28693 test "$silent" = yes &&
28694 ac_config_status_args="$ac_config_status_args --quiet"
28695 exec 5>/dev/null
28696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28697 exec 5>>config.log
28698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28699 # would make configure fail if this is the last instruction.
28700 $ac_cs_success || as_fn_exit $?
28702 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28704 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}