Merge trunk version 188721 into gupc branch.
[official-gcc.git] / gcc / configure
blob137e80cce639fbac885093afba2e8d470090858a
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 PPLINC
608 PPLLIBS
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 PERL
767 enable_fixed_point
768 enable_decimal_float
769 enable_multilib
770 ENABLE_BUILD_WITH_CXX
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 enable_build_with_cxx
878 with_stabs
879 enable_multilib
880 enable___cxa_atexit
881 enable_decimal_float
882 enable_fixed_point
883 enable_threads
884 enable_tls
885 enable_objc_gc
886 with_upc_pts
887 with_upc_pts_vaddr_order
888 with_upc_packed_bits
889 with_upc_pts_packed_bits
890 enable_upc_link_script
891 with_dwarf2
892 enable_shared
893 with_native_system_header_dir
894 with_build_sysroot
895 with_sysroot
896 with_specs
897 with_pkgversion
898 with_bugurl
899 enable_languages
900 with_multilib_list
901 enable_rpath
902 with_libiconv_prefix
903 enable_sjlj_exceptions
904 enable_secureplt
905 enable_leading_mingw64_underscores
906 enable_cld
907 enable_frame_pointer
908 enable_win32_registry
909 enable_static
910 with_pic
911 enable_fast_install
912 enable_libtool_lock
913 with_plugin_ld
914 enable_gnu_indirect_function
915 enable_initfini_array
916 enable_comdat
917 enable_gnu_unique_object
918 enable_linker_build_id
919 with_long_double_128
920 with_gc
921 with_system_zlib
922 enable_maintainer_mode
923 enable_version_specific_runtime_libs
924 enable_plugin
925 enable_libquadmath_support
926 with_linker_hash_style
928 ac_precious_vars='build_alias
929 host_alias
930 target_alias
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
937 CXXFLAGS
940 CXXCPP
941 GMPLIBS
942 GMPINC
943 PPLLIBS
944 PPLINC
945 CLOOGLIBS
946 CLOOGINC'
949 # Initialize some variables set by options.
950 ac_init_help=
951 ac_init_version=false
952 ac_unrecognized_opts=
953 ac_unrecognized_sep=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1004 ac_prev=
1005 continue
1008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1017 ac_dashdash=yes ;;
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1040 ac_prev=datadir ;;
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=no ;;
1067 -docdir | --docdir | --docdi | --doc | --do)
1068 ac_prev=docdir ;;
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 ac_prev=dvidir ;;
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1281 -with-* | --with-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1290 "with_$ac_useropt"
1291 "*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=\$ac_optarg ;;
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1331 -*) as_fn_error "unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information."
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1341 esac
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 esac
1354 done
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error "missing argument to $ac_option"
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
1364 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 esac
1369 # Check all directory arguments for consistency.
1370 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1377 case $ac_val in
1378 */ )
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1381 esac
1382 # Be sure to have absolute directory names.
1383 case $ac_val in
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 esac
1387 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1388 done
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1393 build=$build_alias
1394 host=$host_alias
1395 target=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411 test "$silent" = yes && exec 6>/dev/null
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error "pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1440 /^X\(\/\/\)$/{
1441 s//\1/
1444 /^X\(\/\).*/{
1445 s//\1/
1448 s/.*/./; q'`
1449 srcdir=$ac_confdir
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 srcdir=..
1453 else
1454 ac_srcdir_defaulted=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 ac_abs_confdir=`(
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1463 pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
1488 \`configure' configures this package to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1497 Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 [PREFIX]
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1541 _ACEOF
1543 cat <<\_ACEOF
1545 Program names:
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1550 System types:
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 --target=TARGET configure for building compilers for TARGET [HOST]
1554 _ACEOF
1557 if test -n "$ac_init_help"; then
1559 cat <<\_ACEOF
1561 Optional Features:
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --enable-generated-files-in-srcdir
1566 put copies of generated files in source dir intended
1567 for creating source tarballs for users without
1568 texinfo bison or flex
1569 --disable-largefile omit support for large files
1570 --enable-werror-always enable -Werror despite compiler version
1571 --enable-checking[=LIST]
1572 enable expensive run-time checks. With LIST, enable
1573 only specific categories of checks. Categories are:
1574 yes,no,all,none,release. Flags are:
1575 assert,df,fold,gc,gcac,gimple,misc,
1576 rtlflag,rtl,runtime,tree,valgrind,types
1577 --enable-coverage[=LEVEL]
1578 enable compiler's code coverage collection. Use to
1579 measure compiler performance and locate unused parts
1580 of the compiler. With LEVEL, specify optimization.
1581 Values are opt, noopt, default is noopt
1582 --enable-gather-detailed-mem-stats
1583 enable detailed memory allocation stats gathering
1584 --enable-build-with-cxx build with C++ compiler instead of C compiler
1585 --enable-multilib enable library support for multiple ABIs
1586 --enable-__cxa_atexit enable __cxa_atexit for C++
1587 --enable-decimal-float={no,yes,bid,dpd}
1588 enable decimal float extension to C. Selecting 'bid'
1589 or 'dpd' choses which decimal floating point format
1590 to use
1591 --enable-fixed-point enable fixed-point arithmetic extension to C
1592 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1593 package
1594 --enable-tls enable or disable generation of tls code overriding
1595 the assembler check for tls support
1596 --enable-objc-gc enable the use of Boehm's garbage collector with the
1597 GNU Objective-C runtime
1598 --enable-upc-link-script
1599 enable UPC's use of a custom linker script; this
1600 will define the UPC shared section as a no load
1601 section on targets where this feature is supported
1602 (requires GNU LD)
1603 --disable-shared don't provide a shared libgcc
1604 --enable-languages=LIST specify which front-ends to build
1605 --disable-rpath do not hardcode runtime library paths
1606 --enable-sjlj-exceptions
1607 arrange to use setjmp/longjmp exception handling
1608 --enable-secureplt enable -msecure-plt by default for PowerPC
1609 --enable-leading-mingw64-underscores
1610 enable leading underscores on 64 bit mingw targets
1611 --enable-cld enable -mcld by default for 32bit x86
1612 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1614 --disable-win32-registry
1615 disable lookup of installation paths in the Registry
1616 on Windows hosts
1617 --enable-win32-registry enable registry lookup (default)
1618 --enable-win32-registry=KEY
1619 use KEY instead of GCC version as the last portion
1620 of the registry key
1621 --enable-shared[=PKGS] build shared libraries [default=yes]
1622 --enable-static[=PKGS] build static libraries [default=yes]
1623 --enable-fast-install[=PKGS]
1624 optimize for fast installation [default=yes]
1625 --disable-libtool-lock avoid locking (might break parallel builds)
1626 --enable-gnu-indirect-function
1627 enable the use of the @gnu_indirect_function to
1628 glibc systems
1629 --enable-initfini-array use .init_array/.fini_array sections
1630 --enable-comdat enable COMDAT group support
1631 --enable-gnu-unique-object
1632 enable the use of the @gnu_unique_object ELF
1633 extension on glibc systems
1634 --enable-linker-build-id
1635 compiler will always pass --build-id to linker
1636 --enable-maintainer-mode
1637 enable make rules and dependencies not useful (and
1638 sometimes confusing) to the casual installer
1639 --enable-version-specific-runtime-libs
1640 specify that runtime libraries should be installed
1641 in a compiler-specific directory
1642 --enable-plugin enable plugin support
1643 --disable-libquadmath-support
1644 disable libquadmath support for Fortran
1646 Optional Packages:
1647 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1648 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1649 --with-build-libsubdir=DIR Directory where to find libraries for build system
1650 --with-local-prefix=DIR specifies directory to put local include
1651 --with-gxx-include-dir=DIR
1652 specifies directory to put g++ header files
1653 --with-cpp-install-dir=DIR
1654 install the user visible C preprocessor in DIR
1655 (relative to PREFIX) as well as PREFIX/bin
1656 --with-gnu-ld arrange to work with GNU ld
1657 --with-ld arrange to use the specified ld (full pathname)
1658 --with-demangler-in-ld try to use demangler in GNU ld
1659 --with-gnu-as arrange to work with GNU as
1660 --with-as arrange to use the specified as (full pathname)
1661 --with-stabs arrange to use stabs instead of host debug format
1662 --with-upc-pts={struct,packed}
1663 choose the representation of a UPC pointer-to-shared
1664 --with-upc-pts-vaddr-order={last,first}
1665 choose position of the address field in UPC
1666 pointer-to-shared representation
1668 --with-upc-pts-packed-bits=phase,thread,vaddr
1669 choose bit distribution in packed UPC
1670 pointer-to-shared representation
1671 --with-dwarf2 force the default debug format to be DWARF 2
1672 --with-native-system-header-dir=dir
1673 use dir as the directory to look for standard
1674 system header files in. Defaults to /usr/include.
1675 --with-build-sysroot=sysroot
1676 use sysroot as the system root during the build
1677 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1678 --with-specs=SPECS add SPECS to driver command-line processing
1679 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1680 --with-bugurl=URL Direct users to URL to report a bug
1681 --with-multilib-list select multilibs (SH and x86-64 only)
1682 --with-gnu-ld assume the C compiler uses GNU ld default=no
1683 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1684 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1685 --with-pic try to use only PIC/non-PIC objects [default=use
1686 both]
1687 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1688 --with-plugin-ld=[ARG] specify the plugin linker
1689 --with-long-double-128 use 128-bit long double by default
1690 --with-gc={page,zone} choose the garbage collection mechanism to use with
1691 the compiler
1692 --with-system-zlib use installed libz
1693 --with-linker-hash-style={sysv,gnu,both}
1694 specify the linker hash style
1696 Some influential environment variables:
1697 CC C compiler command
1698 CFLAGS C compiler flags
1699 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1700 nonstandard directory <lib dir>
1701 LIBS libraries to pass to the linker, e.g. -l<library>
1702 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1703 you have headers in a nonstandard directory <include dir>
1704 CXX C++ compiler command
1705 CXXFLAGS C++ compiler flags
1706 CPP C preprocessor
1707 CXXCPP C++ preprocessor
1708 GMPLIBS How to link GMP
1709 GMPINC How to find GMP include files
1710 PPLLIBS How to link PPL
1711 PPLINC How to find PPL include files
1712 CLOOGLIBS How to link CLOOG
1713 CLOOGINC How to find CLOOG include files
1715 Use these variables to override the choices made by `configure' or to help
1716 it to find libraries and programs with nonstandard names/locations.
1718 Report bugs to the package provider.
1719 _ACEOF
1720 ac_status=$?
1723 if test "$ac_init_help" = "recursive"; then
1724 # If there are subdirs, report their specific --help.
1725 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726 test -d "$ac_dir" ||
1727 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1728 continue
1729 ac_builddir=.
1731 case "$ac_dir" in
1732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735 # A ".." for each directory in $ac_dir_suffix.
1736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737 case $ac_top_builddir_sub in
1738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740 esac ;;
1741 esac
1742 ac_abs_top_builddir=$ac_pwd
1743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744 # for backward compatibility:
1745 ac_top_builddir=$ac_top_build_prefix
1747 case $srcdir in
1748 .) # We are building in place.
1749 ac_srcdir=.
1750 ac_top_srcdir=$ac_top_builddir_sub
1751 ac_abs_top_srcdir=$ac_pwd ;;
1752 [\\/]* | ?:[\\/]* ) # Absolute name.
1753 ac_srcdir=$srcdir$ac_dir_suffix;
1754 ac_top_srcdir=$srcdir
1755 ac_abs_top_srcdir=$srcdir ;;
1756 *) # Relative name.
1757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758 ac_top_srcdir=$ac_top_build_prefix$srcdir
1759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1760 esac
1761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1763 cd "$ac_dir" || { ac_status=$?; continue; }
1764 # Check for guested configure.
1765 if test -f "$ac_srcdir/configure.gnu"; then
1766 echo &&
1767 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768 elif test -f "$ac_srcdir/configure"; then
1769 echo &&
1770 $SHELL "$ac_srcdir/configure" --help=recursive
1771 else
1772 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1773 fi || ac_status=$?
1774 cd "$ac_pwd" || { ac_status=$?; break; }
1775 done
1778 test -n "$ac_init_help" && exit $ac_status
1779 if $ac_init_version; then
1780 cat <<\_ACEOF
1781 configure
1782 generated by GNU Autoconf 2.64
1784 Copyright (C) 2009 Free Software Foundation, Inc.
1785 This configure script is free software; the Free Software Foundation
1786 gives unlimited permission to copy, distribute and modify it.
1787 _ACEOF
1788 exit
1791 ## ------------------------ ##
1792 ## Autoconf initialization. ##
1793 ## ------------------------ ##
1795 # ac_fn_c_try_compile LINENO
1796 # --------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=1
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 return $ac_retval
1831 } # ac_fn_c_try_compile
1833 # ac_fn_cxx_try_compile LINENO
1834 # ----------------------------
1835 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_cxx_try_compile ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext
1840 if { { ac_try="$ac_compile"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_compile") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_cxx_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest.$ac_objext; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=1
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867 return $ac_retval
1869 } # ac_fn_cxx_try_compile
1871 # ac_fn_c_try_cpp LINENO
1872 # ----------------------
1873 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_c_try_cpp ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if { { ac_try="$ac_cpp conftest.$ac_ext"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } >/dev/null && {
1893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 }; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_retval=1
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 return $ac_retval
1906 } # ac_fn_c_try_cpp
1908 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1909 # -------------------------------------------------------
1910 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1911 # the include files in INCLUDES and setting the cache variable VAR
1912 # accordingly.
1913 ac_fn_c_check_header_mongrel ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920 $as_echo_n "(cached) " >&6
1922 eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 else
1926 # Is the header compilable?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1928 $as_echo_n "checking $2 usability... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1932 #include <$2>
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935 ac_header_compiler=yes
1936 else
1937 ac_header_compiler=no
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1941 $as_echo "$ac_header_compiler" >&6; }
1943 # Is the header present?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1945 $as_echo_n "checking $2 presence... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1948 #include <$2>
1949 _ACEOF
1950 if ac_fn_c_try_cpp "$LINENO"; then :
1951 ac_header_preproc=yes
1952 else
1953 ac_header_preproc=no
1955 rm -f conftest.err conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1957 $as_echo "$ac_header_preproc" >&6; }
1959 # So? What about this header?
1960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1961 yes:no: )
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1963 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967 no:yes:* )
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1969 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1971 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1973 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1975 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 esac
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983 $as_echo_n "(cached) " >&6
1984 else
1985 eval "$3=\$ac_header_compiler"
1987 eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 } # ac_fn_c_check_header_mongrel
1995 # ac_fn_c_try_run LINENO
1996 # ----------------------
1997 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1998 # that executables *can* be run.
1999 ac_fn_c_try_run ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if { { ac_try="$ac_link"
2003 case "(($ac_try" in
2004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005 *) ac_try_echo=$ac_try;;
2006 esac
2007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008 $as_echo "$ac_try_echo"; } >&5
2009 (eval "$ac_link") 2>&5
2010 ac_status=$?
2011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2012 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2013 { { case "(($ac_try" in
2014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015 *) ac_try_echo=$ac_try;;
2016 esac
2017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018 $as_echo "$ac_try_echo"; } >&5
2019 (eval "$ac_try") 2>&5
2020 ac_status=$?
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; }; }; then :
2023 ac_retval=0
2024 else
2025 $as_echo "$as_me: program exited with status $ac_status" >&5
2026 $as_echo "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.$ac_ext >&5
2029 ac_retval=$ac_status
2031 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2032 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2033 return $ac_retval
2035 } # ac_fn_c_try_run
2037 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2038 # -------------------------------------------------------
2039 # Tests whether HEADER exists and can be compiled using the include files in
2040 # INCLUDES, setting the cache variable VAR accordingly.
2041 ac_fn_c_check_header_compile ()
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2047 $as_echo_n "(cached) " >&6
2048 else
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2052 #include <$2>
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 eval "$3=yes"
2056 else
2057 eval "$3=no"
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 eval ac_res=\$$3
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066 } # ac_fn_c_check_header_compile
2068 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2069 # --------------------------------------------
2070 # Tries to find the compile-time value of EXPR in a program that includes
2071 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2072 # computed
2073 ac_fn_c_compute_int ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 if test "$cross_compiling" = yes; then
2077 # Depending upon the size, compute the lo and hi bounds.
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2082 main ()
2084 static int test_array [1 - 2 * !(($2) >= 0)];
2085 test_array [0] = 0
2088 return 0;
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_lo=0 ac_mid=0
2093 while :; do
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2098 main ()
2100 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2101 test_array [0] = 0
2104 return 0;
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 ac_hi=$ac_mid; break
2109 else
2110 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2111 if test $ac_lo -le $ac_mid; then
2112 ac_lo= ac_hi=
2113 break
2115 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 done
2119 else
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2124 main ()
2126 static int test_array [1 - 2 * !(($2) < 0)];
2127 test_array [0] = 0
2130 return 0;
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 ac_hi=-1 ac_mid=-1
2135 while :; do
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2140 main ()
2142 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2143 test_array [0] = 0
2146 return 0;
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_lo=$ac_mid; break
2151 else
2152 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2153 if test $ac_mid -le $ac_hi; then
2154 ac_lo= ac_hi=
2155 break
2157 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 done
2161 else
2162 ac_lo= ac_hi=
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 # Binary search between lo and hi bounds.
2168 while test "x$ac_lo" != "x$ac_hi"; do
2169 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2174 main ()
2176 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2177 test_array [0] = 0
2180 return 0;
2182 _ACEOF
2183 if ac_fn_c_try_compile "$LINENO"; then :
2184 ac_hi=$ac_mid
2185 else
2186 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 done
2190 case $ac_lo in #((
2191 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2192 '') ac_retval=1 ;;
2193 esac
2194 else
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2198 static long int longval () { return $2; }
2199 static unsigned long int ulongval () { return $2; }
2200 #include <stdio.h>
2201 #include <stdlib.h>
2203 main ()
2206 FILE *f = fopen ("conftest.val", "w");
2207 if (! f)
2208 return 1;
2209 if (($2) < 0)
2211 long int i = longval ();
2212 if (i != ($2))
2213 return 1;
2214 fprintf (f, "%ld", i);
2216 else
2218 unsigned long int i = ulongval ();
2219 if (i != ($2))
2220 return 1;
2221 fprintf (f, "%lu", i);
2223 /* Do not output a trailing newline, as this causes \r\n confusion
2224 on some platforms. */
2225 return ferror (f) || fclose (f) != 0;
2228 return 0;
2230 _ACEOF
2231 if ac_fn_c_try_run "$LINENO"; then :
2232 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2233 else
2234 ac_retval=1
2236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2237 conftest.$ac_objext conftest.beam conftest.$ac_ext
2238 rm -f conftest.val
2241 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2242 return $ac_retval
2244 } # ac_fn_c_compute_int
2246 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2247 # -------------------------------------------
2248 # Tests whether TYPE exists after having included INCLUDES, setting cache
2249 # variable VAR accordingly.
2250 ac_fn_c_check_type ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2256 $as_echo_n "(cached) " >&6
2257 else
2258 eval "$3=no"
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2263 main ()
2265 if (sizeof ($2))
2266 return 0;
2268 return 0;
2270 _ACEOF
2271 if ac_fn_c_try_compile "$LINENO"; then :
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2276 main ()
2278 if (sizeof (($2)))
2279 return 0;
2281 return 0;
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"; then :
2286 else
2287 eval "$3=yes"
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 eval ac_res=\$$3
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2298 } # ac_fn_c_check_type
2300 # ac_fn_c_find_intX_t LINENO BITS VAR
2301 # -----------------------------------
2302 # Finds a signed integer type with width BITS, setting cache variable VAR
2303 # accordingly.
2304 ac_fn_c_find_intX_t ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2308 $as_echo_n "checking for int$2_t... " >&6; }
2309 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 eval "$3=no"
2313 for ac_type in int$2_t 'int' 'long int' \
2314 'long long int' 'short int' 'signed char'; do
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2317 $ac_includes_default
2319 main ()
2321 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2322 test_array [0] = 0
2325 return 0;
2327 _ACEOF
2328 if ac_fn_c_try_compile "$LINENO"; then :
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2331 $ac_includes_default
2333 main ()
2335 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2336 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2337 test_array [0] = 0
2340 return 0;
2342 _ACEOF
2343 if ac_fn_c_try_compile "$LINENO"; then :
2345 else
2346 case $ac_type in #(
2347 int$2_t) :
2348 eval "$3=yes" ;; #(
2349 *) :
2350 eval "$3=\$ac_type" ;;
2351 esac
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 eval as_val=\$$3
2357 if test "x$as_val" = x""no; then :
2359 else
2360 break
2362 done
2364 eval ac_res=\$$3
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366 $as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2369 } # ac_fn_c_find_intX_t
2371 # ac_fn_c_try_link LINENO
2372 # -----------------------
2373 # Try to link conftest.$ac_ext, and return whether this succeeded.
2374 ac_fn_c_try_link ()
2376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377 rm -f conftest.$ac_objext conftest$ac_exeext
2378 if { { ac_try="$ac_link"
2379 case "(($ac_try" in
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2382 esac
2383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2384 $as_echo "$ac_try_echo"; } >&5
2385 (eval "$ac_link") 2>conftest.err
2386 ac_status=$?
2387 if test -s conftest.err; then
2388 grep -v '^ *+' conftest.err >conftest.er1
2389 cat conftest.er1 >&5
2390 mv -f conftest.er1 conftest.err
2392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2393 test $ac_status = 0; } && {
2394 test -z "$ac_c_werror_flag" ||
2395 test ! -s conftest.err
2396 } && test -s conftest$ac_exeext && {
2397 test "$cross_compiling" = yes ||
2398 $as_test_x conftest$ac_exeext
2399 }; then :
2400 ac_retval=0
2401 else
2402 $as_echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2405 ac_retval=1
2407 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2408 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2409 # interfere with the next link command; also delete a directory that is
2410 # left behind by Apple's compiler. We do this before executing the actions.
2411 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2412 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2413 return $ac_retval
2415 } # ac_fn_c_try_link
2417 # ac_fn_c_find_uintX_t LINENO BITS VAR
2418 # ------------------------------------
2419 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2420 # accordingly.
2421 ac_fn_c_find_uintX_t ()
2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2425 $as_echo_n "checking for uint$2_t... " >&6; }
2426 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2427 $as_echo_n "(cached) " >&6
2428 else
2429 eval "$3=no"
2430 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2431 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2433 /* end confdefs.h. */
2434 $ac_includes_default
2436 main ()
2438 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2439 test_array [0] = 0
2442 return 0;
2444 _ACEOF
2445 if ac_fn_c_try_compile "$LINENO"; then :
2446 case $ac_type in #(
2447 uint$2_t) :
2448 eval "$3=yes" ;; #(
2449 *) :
2450 eval "$3=\$ac_type" ;;
2451 esac
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 eval as_val=\$$3
2455 if test "x$as_val" = x""no; then :
2457 else
2458 break
2460 done
2462 eval ac_res=\$$3
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467 } # ac_fn_c_find_uintX_t
2469 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2470 # ----------------------------------------------
2471 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2472 ac_fn_c_check_header_preproc ()
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2482 #include <$2>
2483 _ACEOF
2484 if ac_fn_c_try_cpp "$LINENO"; then :
2485 eval "$3=yes"
2486 else
2487 eval "$3=no"
2489 rm -f conftest.err conftest.$ac_ext
2491 eval ac_res=\$$3
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 $as_echo "$ac_res" >&6; }
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2496 } # ac_fn_c_check_header_preproc
2498 # ac_fn_cxx_try_cpp LINENO
2499 # ------------------------
2500 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2501 ac_fn_cxx_try_cpp ()
2503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504 if { { ac_try="$ac_cpp conftest.$ac_ext"
2505 case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2508 esac
2509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2510 $as_echo "$ac_try_echo"; } >&5
2511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2512 ac_status=$?
2513 if test -s conftest.err; then
2514 grep -v '^ *+' conftest.err >conftest.er1
2515 cat conftest.er1 >&5
2516 mv -f conftest.er1 conftest.err
2518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2519 test $ac_status = 0; } >/dev/null && {
2520 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2521 test ! -s conftest.err
2522 }; then :
2523 ac_retval=0
2524 else
2525 $as_echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2528 ac_retval=1
2530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2531 return $ac_retval
2533 } # ac_fn_cxx_try_cpp
2535 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2536 # ------------------------------------------------
2537 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2538 ac_fn_cxx_check_header_preproc ()
2540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2542 $as_echo_n "checking for $2... " >&6; }
2543 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2544 $as_echo_n "(cached) " >&6
2545 else
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2548 #include <$2>
2549 _ACEOF
2550 if ac_fn_cxx_try_cpp "$LINENO"; then :
2551 eval "$3=yes"
2552 else
2553 eval "$3=no"
2555 rm -f conftest.err conftest.$ac_ext
2557 eval ac_res=\$$3
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2559 $as_echo "$ac_res" >&6; }
2560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2562 } # ac_fn_cxx_check_header_preproc
2564 # ac_fn_c_check_func LINENO FUNC VAR
2565 # ----------------------------------
2566 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2567 ac_fn_c_check_func ()
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571 $as_echo_n "checking for $2... " >&6; }
2572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2577 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2579 #define $2 innocuous_$2
2581 /* System header to define __stub macros and hopefully few prototypes,
2582 which can conflict with char $2 (); below.
2583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2584 <limits.h> exists even on freestanding compilers. */
2586 #ifdef __STDC__
2587 # include <limits.h>
2588 #else
2589 # include <assert.h>
2590 #endif
2592 #undef $2
2594 /* Override any GCC internal prototype to avoid an error.
2595 Use char because int might match the return type of a GCC
2596 builtin and then its argument prototype would still apply. */
2597 #ifdef __cplusplus
2598 extern "C"
2599 #endif
2600 char $2 ();
2601 /* The GNU C library defines this for functions which it implements
2602 to always fail with ENOSYS. Some functions are actually named
2603 something starting with __ and the normal name is an alias. */
2604 #if defined __stub_$2 || defined __stub___$2
2605 choke me
2606 #endif
2609 main ()
2611 return $2 ();
2613 return 0;
2615 _ACEOF
2616 if ac_fn_c_try_link "$LINENO"; then :
2617 eval "$3=yes"
2618 else
2619 eval "$3=no"
2621 rm -f core conftest.err conftest.$ac_objext \
2622 conftest$ac_exeext conftest.$ac_ext
2624 eval ac_res=\$$3
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2626 $as_echo "$ac_res" >&6; }
2627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2629 } # ac_fn_c_check_func
2631 # ac_fn_cxx_try_link LINENO
2632 # -------------------------
2633 # Try to link conftest.$ac_ext, and return whether this succeeded.
2634 ac_fn_cxx_try_link ()
2636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637 rm -f conftest.$ac_objext conftest$ac_exeext
2638 if { { ac_try="$ac_link"
2639 case "(($ac_try" in
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2642 esac
2643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644 $as_echo "$ac_try_echo"; } >&5
2645 (eval "$ac_link") 2>conftest.err
2646 ac_status=$?
2647 if test -s conftest.err; then
2648 grep -v '^ *+' conftest.err >conftest.er1
2649 cat conftest.er1 >&5
2650 mv -f conftest.er1 conftest.err
2652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653 test $ac_status = 0; } && {
2654 test -z "$ac_cxx_werror_flag" ||
2655 test ! -s conftest.err
2656 } && test -s conftest$ac_exeext && {
2657 test "$cross_compiling" = yes ||
2658 $as_test_x conftest$ac_exeext
2659 }; then :
2660 ac_retval=0
2661 else
2662 $as_echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2665 ac_retval=1
2667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2669 # interfere with the next link command; also delete a directory that is
2670 # left behind by Apple's compiler. We do this before executing the actions.
2671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2673 return $ac_retval
2675 } # ac_fn_cxx_try_link
2676 cat >config.log <<_ACEOF
2677 This file contains any messages produced by compilers while
2678 running configure, to aid debugging if configure makes a mistake.
2680 It was created by $as_me, which was
2681 generated by GNU Autoconf 2.64. Invocation command line was
2683 $ $0 $@
2685 _ACEOF
2686 exec 5>>config.log
2688 cat <<_ASUNAME
2689 ## --------- ##
2690 ## Platform. ##
2691 ## --------- ##
2693 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2694 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2695 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2696 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2697 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2699 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2700 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2702 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2703 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2704 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2705 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2706 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2707 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2708 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2710 _ASUNAME
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 $as_echo "PATH: $as_dir"
2718 done
2719 IFS=$as_save_IFS
2721 } >&5
2723 cat >&5 <<_ACEOF
2726 ## ----------- ##
2727 ## Core tests. ##
2728 ## ----------- ##
2730 _ACEOF
2733 # Keep a trace of the command line.
2734 # Strip out --no-create and --no-recursion so they do not pile up.
2735 # Strip out --silent because we don't want to record it for future runs.
2736 # Also quote any args containing shell meta-characters.
2737 # Make two passes to allow for proper duplicate-argument suppression.
2738 ac_configure_args=
2739 ac_configure_args0=
2740 ac_configure_args1=
2741 ac_must_keep_next=false
2742 for ac_pass in 1 2
2744 for ac_arg
2746 case $ac_arg in
2747 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2748 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2749 | -silent | --silent | --silen | --sile | --sil)
2750 continue ;;
2751 *\'*)
2752 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2753 esac
2754 case $ac_pass in
2755 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2757 as_fn_append ac_configure_args1 " '$ac_arg'"
2758 if test $ac_must_keep_next = true; then
2759 ac_must_keep_next=false # Got value, back to normal.
2760 else
2761 case $ac_arg in
2762 *=* | --config-cache | -C | -disable-* | --disable-* \
2763 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2764 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2765 | -with-* | --with-* | -without-* | --without-* | --x)
2766 case "$ac_configure_args0 " in
2767 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2768 esac
2770 -* ) ac_must_keep_next=true ;;
2771 esac
2773 as_fn_append ac_configure_args " '$ac_arg'"
2775 esac
2776 done
2777 done
2778 { ac_configure_args0=; unset ac_configure_args0;}
2779 { ac_configure_args1=; unset ac_configure_args1;}
2781 # When interrupted or exit'd, cleanup temporary files, and complete
2782 # config.log. We remove comments because anyway the quotes in there
2783 # would cause problems or look ugly.
2784 # WARNING: Use '\'' to represent an apostrophe within the trap.
2785 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2786 trap 'exit_status=$?
2787 # Save into config.log some information that might help in debugging.
2789 echo
2791 cat <<\_ASBOX
2792 ## ---------------- ##
2793 ## Cache variables. ##
2794 ## ---------------- ##
2795 _ASBOX
2796 echo
2797 # The following way of writing the cache mishandles newlines in values,
2799 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2800 eval ac_val=\$$ac_var
2801 case $ac_val in #(
2802 *${as_nl}*)
2803 case $ac_var in #(
2804 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2805 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2806 esac
2807 case $ac_var in #(
2808 _ | IFS | as_nl) ;; #(
2809 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2810 *) { eval $ac_var=; unset $ac_var;} ;;
2811 esac ;;
2812 esac
2813 done
2814 (set) 2>&1 |
2815 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2816 *${as_nl}ac_space=\ *)
2817 sed -n \
2818 "s/'\''/'\''\\\\'\'''\''/g;
2819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2820 ;; #(
2822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2824 esac |
2825 sort
2827 echo
2829 cat <<\_ASBOX
2830 ## ----------------- ##
2831 ## Output variables. ##
2832 ## ----------------- ##
2833 _ASBOX
2834 echo
2835 for ac_var in $ac_subst_vars
2837 eval ac_val=\$$ac_var
2838 case $ac_val in
2839 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2840 esac
2841 $as_echo "$ac_var='\''$ac_val'\''"
2842 done | sort
2843 echo
2845 if test -n "$ac_subst_files"; then
2846 cat <<\_ASBOX
2847 ## ------------------- ##
2848 ## File substitutions. ##
2849 ## ------------------- ##
2850 _ASBOX
2851 echo
2852 for ac_var in $ac_subst_files
2854 eval ac_val=\$$ac_var
2855 case $ac_val in
2856 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2857 esac
2858 $as_echo "$ac_var='\''$ac_val'\''"
2859 done | sort
2860 echo
2863 if test -s confdefs.h; then
2864 cat <<\_ASBOX
2865 ## ----------- ##
2866 ## confdefs.h. ##
2867 ## ----------- ##
2868 _ASBOX
2869 echo
2870 cat confdefs.h
2871 echo
2873 test "$ac_signal" != 0 &&
2874 $as_echo "$as_me: caught signal $ac_signal"
2875 $as_echo "$as_me: exit $exit_status"
2876 } >&5
2877 rm -f core *.core core.conftest.* &&
2878 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2879 exit $exit_status
2881 for ac_signal in 1 2 13 15; do
2882 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2883 done
2884 ac_signal=0
2886 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2887 rm -f -r conftest* confdefs.h
2889 $as_echo "/* confdefs.h */" > confdefs.h
2891 # Predefined preprocessor variables.
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_NAME "$PACKAGE_NAME"
2895 _ACEOF
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2899 _ACEOF
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2903 _ACEOF
2905 cat >>confdefs.h <<_ACEOF
2906 #define PACKAGE_STRING "$PACKAGE_STRING"
2907 _ACEOF
2909 cat >>confdefs.h <<_ACEOF
2910 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2911 _ACEOF
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE_URL "$PACKAGE_URL"
2915 _ACEOF
2918 # Let the site file select an alternate cache file if it wants to.
2919 # Prefer an explicitly selected file to automatically selected ones.
2920 ac_site_file1=NONE
2921 ac_site_file2=NONE
2922 if test -n "$CONFIG_SITE"; then
2923 ac_site_file1=$CONFIG_SITE
2924 elif test "x$prefix" != xNONE; then
2925 ac_site_file1=$prefix/share/config.site
2926 ac_site_file2=$prefix/etc/config.site
2927 else
2928 ac_site_file1=$ac_default_prefix/share/config.site
2929 ac_site_file2=$ac_default_prefix/etc/config.site
2931 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2933 test "x$ac_site_file" = xNONE && continue
2934 if test -r "$ac_site_file"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2936 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2937 sed 's/^/| /' "$ac_site_file" >&5
2938 . "$ac_site_file"
2940 done
2942 if test -r "$cache_file"; then
2943 # Some versions of bash will fail to source /dev/null (special
2944 # files actually), so we avoid doing that.
2945 if test -f "$cache_file"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2947 $as_echo "$as_me: loading cache $cache_file" >&6;}
2948 case $cache_file in
2949 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2950 *) . "./$cache_file";;
2951 esac
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2955 $as_echo "$as_me: creating cache $cache_file" >&6;}
2956 >$cache_file
2959 # Check that the precious variables saved in the cache have kept the same
2960 # value.
2961 ac_cache_corrupted=false
2962 for ac_var in $ac_precious_vars; do
2963 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2964 eval ac_new_set=\$ac_env_${ac_var}_set
2965 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2966 eval ac_new_val=\$ac_env_${ac_var}_value
2967 case $ac_old_set,$ac_new_set in
2968 set,)
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2970 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2971 ac_cache_corrupted=: ;;
2972 ,set)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2974 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2975 ac_cache_corrupted=: ;;
2976 ,);;
2978 if test "x$ac_old_val" != "x$ac_new_val"; then
2979 # differences in whitespace do not lead to failure.
2980 ac_old_val_w=`echo x $ac_old_val`
2981 ac_new_val_w=`echo x $ac_new_val`
2982 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2984 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2985 ac_cache_corrupted=:
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2988 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2989 eval $ac_var=\$ac_old_val
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2992 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2994 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2995 fi;;
2996 esac
2997 # Pass precious variables to config.status.
2998 if test "$ac_new_set" = set; then
2999 case $ac_new_val in
3000 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3001 *) ac_arg=$ac_var=$ac_new_val ;;
3002 esac
3003 case " $ac_configure_args " in
3004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3005 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3006 esac
3008 done
3009 if $ac_cache_corrupted; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3013 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3014 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3016 ## -------------------- ##
3017 ## Main body of script. ##
3018 ## -------------------- ##
3020 ac_ext=c
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3034 gcc_version=`cat $srcdir/BASE-VER`
3036 # Determine the host, build, and target systems
3037 ac_aux_dir=
3038 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3039 for ac_t in install-sh install.sh shtool; do
3040 if test -f "$ac_dir/$ac_t"; then
3041 ac_aux_dir=$ac_dir
3042 ac_install_sh="$ac_aux_dir/$ac_t -c"
3043 break 2
3045 done
3046 done
3047 if test -z "$ac_aux_dir"; then
3048 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3051 # These three variables are undocumented and unsupported,
3052 # and are intended to be withdrawn in a future Autoconf release.
3053 # They can cause serious problems if a builder's source tree is in a directory
3054 # whose full name contains unusual characters.
3055 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3056 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3057 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3060 # Make sure we can run config.sub.
3061 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3062 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3065 $as_echo_n "checking build system type... " >&6; }
3066 if test "${ac_cv_build+set}" = set; then :
3067 $as_echo_n "(cached) " >&6
3068 else
3069 ac_build_alias=$build_alias
3070 test "x$ac_build_alias" = x &&
3071 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3072 test "x$ac_build_alias" = x &&
3073 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3074 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3075 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3079 $as_echo "$ac_cv_build" >&6; }
3080 case $ac_cv_build in
3081 *-*-*) ;;
3082 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3083 esac
3084 build=$ac_cv_build
3085 ac_save_IFS=$IFS; IFS='-'
3086 set x $ac_cv_build
3087 shift
3088 build_cpu=$1
3089 build_vendor=$2
3090 shift; shift
3091 # Remember, the first character of IFS is used to create $*,
3092 # except with old shells:
3093 build_os=$*
3094 IFS=$ac_save_IFS
3095 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3099 $as_echo_n "checking host system type... " >&6; }
3100 if test "${ac_cv_host+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3102 else
3103 if test "x$host_alias" = x; then
3104 ac_cv_host=$ac_cv_build
3105 else
3106 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3107 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3112 $as_echo "$ac_cv_host" >&6; }
3113 case $ac_cv_host in
3114 *-*-*) ;;
3115 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3116 esac
3117 host=$ac_cv_host
3118 ac_save_IFS=$IFS; IFS='-'
3119 set x $ac_cv_host
3120 shift
3121 host_cpu=$1
3122 host_vendor=$2
3123 shift; shift
3124 # Remember, the first character of IFS is used to create $*,
3125 # except with old shells:
3126 host_os=$*
3127 IFS=$ac_save_IFS
3128 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3132 $as_echo_n "checking target system type... " >&6; }
3133 if test "${ac_cv_target+set}" = set; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 if test "x$target_alias" = x; then
3137 ac_cv_target=$ac_cv_host
3138 else
3139 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3140 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3145 $as_echo "$ac_cv_target" >&6; }
3146 case $ac_cv_target in
3147 *-*-*) ;;
3148 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3149 esac
3150 target=$ac_cv_target
3151 ac_save_IFS=$IFS; IFS='-'
3152 set x $ac_cv_target
3153 shift
3154 target_cpu=$1
3155 target_vendor=$2
3156 shift; shift
3157 # Remember, the first character of IFS is used to create $*,
3158 # except with old shells:
3159 target_os=$*
3160 IFS=$ac_save_IFS
3161 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3164 # The aliases save the names the user supplied, while $host etc.
3165 # will get canonicalized.
3166 test -n "$target_alias" &&
3167 test "$program_prefix$program_suffix$program_transform_name" = \
3168 NONENONEs,x,x, &&
3169 program_prefix=${target_alias}-
3171 # Determine the noncanonical target name, for directory use.
3172 case ${build_alias} in
3173 "") build_noncanonical=${build} ;;
3174 *) build_noncanonical=${build_alias} ;;
3175 esac
3177 case ${host_alias} in
3178 "") host_noncanonical=${build_noncanonical} ;;
3179 *) host_noncanonical=${host_alias} ;;
3180 esac
3182 case ${target_alias} in
3183 "") target_noncanonical=${host_noncanonical} ;;
3184 *) target_noncanonical=${target_alias} ;;
3185 esac
3190 # Determine the target- and build-specific subdirectories
3192 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3193 # have matching libraries, they should use host libraries: Makefile.tpl
3194 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3195 # However, they still use the build modules, because the corresponding
3196 # host modules (e.g. bison) are only built for the host when bootstrap
3197 # finishes. So:
3198 # - build_subdir is where we find build modules, and never changes.
3199 # - build_libsubdir is where we find build libraries, and can be overridden.
3201 # Prefix 'build-' so this never conflicts with target_subdir.
3202 build_subdir="build-${build_noncanonical}"
3204 # Check whether --with-build-libsubdir was given.
3205 if test "${with_build_libsubdir+set}" = set; then :
3206 withval=$with_build_libsubdir; build_libsubdir="$withval"
3207 else
3208 build_libsubdir="$build_subdir"
3211 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3212 if ( test $srcdir = . && test -d gcc ) \
3213 || test -d $srcdir/../host-${host_noncanonical}; then
3214 host_subdir="host-${host_noncanonical}"
3215 else
3216 host_subdir=.
3218 # No prefix.
3219 target_subdir=${target_noncanonical}
3222 # Set program_transform_name
3223 test "$program_prefix" != NONE &&
3224 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3225 # Use a double $ so make ignores it.
3226 test "$program_suffix" != NONE &&
3227 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3228 # Double any \ or $.
3229 # By default was `s,x,x', remove it if useless.
3230 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3231 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3234 # Check for bogus environment variables.
3235 # Test if LIBRARY_PATH contains the notation for the current directory
3236 # since this would lead to problems installing/building glibc.
3237 # LIBRARY_PATH contains the current directory if one of the following
3238 # is true:
3239 # - one of the terminals (":" and ";") is the first or last sign
3240 # - two terminals occur directly after each other
3241 # - the path contains an element with a dot in it
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3243 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3244 case ${LIBRARY_PATH} in
3245 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3246 library_path_setting="contains current directory"
3249 library_path_setting="ok"
3251 esac
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3253 $as_echo "$library_path_setting" >&6; }
3254 if test "$library_path_setting" != "ok"; then
3255 as_fn_error "
3256 *** LIBRARY_PATH shouldn't contain the current directory when
3257 *** building gcc. Please change the environment variable
3258 *** and run configure again." "$LINENO" 5
3261 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3262 # since this would lead to problems installing/building glibc.
3263 # GCC_EXEC_PREFIX contains the current directory if one of the following
3264 # is true:
3265 # - one of the terminals (":" and ";") is the first or last sign
3266 # - two terminals occur directly after each other
3267 # - the path contains an element with a dot in it
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3269 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3270 case ${GCC_EXEC_PREFIX} in
3271 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3272 gcc_exec_prefix_setting="contains current directory"
3275 gcc_exec_prefix_setting="ok"
3277 esac
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3279 $as_echo "$gcc_exec_prefix_setting" >&6; }
3280 if test "$gcc_exec_prefix_setting" != "ok"; then
3281 as_fn_error "
3282 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3283 *** building gcc. Please change the environment variable
3284 *** and run configure again." "$LINENO" 5
3287 # -----------
3288 # Directories
3289 # -----------
3291 # Specify the local prefix
3292 local_prefix=
3294 # Check whether --with-local-prefix was given.
3295 if test "${with_local_prefix+set}" = set; then :
3296 withval=$with_local_prefix; case "${withval}" in
3297 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3298 no) ;;
3299 *) local_prefix=$with_local_prefix ;;
3300 esac
3304 # Default local prefix if it is empty
3305 if test x$local_prefix = x; then
3306 local_prefix=/usr/local
3309 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3310 # passed in by the toplevel make and thus we'd get different behavior
3311 # depending on where we built the sources.
3312 gcc_gxx_include_dir=
3313 # Specify the g++ header file directory
3315 # Check whether --with-gxx-include-dir was given.
3316 if test "${with_gxx_include_dir+set}" = set; then :
3317 withval=$with_gxx_include_dir; case "${withval}" in
3318 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3319 no) ;;
3320 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3321 esac
3325 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3326 if test x${gcc_gxx_include_dir} = x; then
3327 if test x${enable_version_specific_runtime_libs} = xyes; then
3328 gcc_gxx_include_dir='${libsubdir}/include/c++'
3329 else
3330 libstdcxx_incdir='include/c++/$(version)'
3331 if test x$host != x$target; then
3332 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3334 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3338 gcc_gxx_include_dir_add_sysroot=0
3339 if test "${with_sysroot+set}" = set; then
3340 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3341 if test "${gcc_gxx_without_sysroot}"; then
3342 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3343 gcc_gxx_include_dir_add_sysroot=1
3348 # Check whether --with-cpp_install_dir was given.
3349 if test "${with_cpp_install_dir+set}" = set; then :
3350 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3351 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3352 elif test x$withval != xno; then
3353 cpp_install_dir=$withval
3358 # We would like to our source tree to be readonly. However when releases or
3359 # pre-releases are generated, the flex/bison generated files as well as the
3360 # various formats of manuals need to be included along with the rest of the
3361 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3362 # just that.
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3365 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3366 # Check whether --enable-generated-files-in-srcdir was given.
3367 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3368 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3369 else
3370 generated_files_in_srcdir=no
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3375 $as_echo "$generated_files_in_srcdir" >&6; }
3377 if test "$generated_files_in_srcdir" = "yes"; then
3378 GENINSRC=''
3379 else
3380 GENINSRC='#'
3384 # -------------------
3385 # Find default linker
3386 # -------------------
3388 # With GNU ld
3390 # Check whether --with-gnu-ld was given.
3391 if test "${with_gnu_ld+set}" = set; then :
3392 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3393 else
3394 gnu_ld_flag=no
3398 # With pre-defined ld
3400 # Check whether --with-ld was given.
3401 if test "${with_ld+set}" = set; then :
3402 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3405 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3406 if test ! -x "$DEFAULT_LINKER"; then
3407 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3408 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3409 gnu_ld_flag=yes
3412 cat >>confdefs.h <<_ACEOF
3413 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3414 _ACEOF
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3419 $as_echo_n "checking whether a default linker was specified... " >&6; }
3420 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3421 if test x"$gnu_ld_flag" = x"no"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3423 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3424 else
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3426 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3433 # With demangler in GNU ld
3435 # Check whether --with-demangler-in-ld was given.
3436 if test "${with_demangler_in_ld+set}" = set; then :
3437 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3438 else
3439 demangler_in_ld=yes
3443 # ----------------------
3444 # Find default assembler
3445 # ----------------------
3447 # With GNU as
3449 # Check whether --with-gnu-as was given.
3450 if test "${with_gnu_as+set}" = set; then :
3451 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3452 else
3453 gas_flag=no
3458 # Check whether --with-as was given.
3459 if test "${with_as+set}" = set; then :
3460 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3463 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3464 if test ! -x "$DEFAULT_ASSEMBLER"; then
3465 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3466 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3467 gas_flag=yes
3470 cat >>confdefs.h <<_ACEOF
3471 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3472 _ACEOF
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3477 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3478 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3479 if test x"$gas_flag" = x"no"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3481 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3482 else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3484 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3491 # ---------------
3492 # Find C compiler
3493 # ---------------
3495 # If a non-executable a.out is present (e.g. created by GNU as above even if
3496 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3497 # file, even when creating an executable, so an execution test fails.
3498 # Remove possible default executable files to avoid this.
3500 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3501 # Autoconf includes it.
3502 rm -f a.out a.exe b.out
3504 # Find the native compiler
3505 ac_ext=c
3506 ac_cpp='$CPP $CPPFLAGS'
3507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510 if test -n "$ac_tool_prefix"; then
3511 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3512 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if test "${ac_cv_prog_CC+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 if test -n "$CC"; then
3519 ac_cv_prog_CC="$CC" # Let the user override the test.
3520 else
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3532 done
3533 done
3534 IFS=$as_save_IFS
3538 CC=$ac_cv_prog_CC
3539 if test -n "$CC"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3541 $as_echo "$CC" >&6; }
3542 else
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3549 if test -z "$ac_cv_prog_CC"; then
3550 ac_ct_CC=$CC
3551 # Extract the first word of "gcc", so it can be a program name with args.
3552 set dummy gcc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -n "$ac_ct_CC"; then
3559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_ac_ct_CC="gcc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3572 done
3573 done
3574 IFS=$as_save_IFS
3578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3579 if test -n "$ac_ct_CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3581 $as_echo "$ac_ct_CC" >&6; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3587 if test "x$ac_ct_CC" = x; then
3588 CC=""
3589 else
3590 case $cross_compiling:$ac_tool_warned in
3591 yes:)
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594 ac_tool_warned=yes ;;
3595 esac
3596 CC=$ac_ct_CC
3598 else
3599 CC="$ac_cv_prog_CC"
3602 if test -z "$CC"; then
3603 if test -n "$ac_tool_prefix"; then
3604 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3605 set dummy ${ac_tool_prefix}cc; ac_word=$2
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607 $as_echo_n "checking for $ac_word... " >&6; }
3608 if test "${ac_cv_prog_CC+set}" = set; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 if test -n "$CC"; then
3612 ac_cv_prog_CC="$CC" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621 ac_cv_prog_CC="${ac_tool_prefix}cc"
3622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3625 done
3626 done
3627 IFS=$as_save_IFS
3631 CC=$ac_cv_prog_CC
3632 if test -n "$CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634 $as_echo "$CC" >&6; }
3635 else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3643 if test -z "$CC"; then
3644 # Extract the first word of "cc", so it can be a program name with args.
3645 set dummy cc; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 ac_prog_rejected=no
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3663 ac_prog_rejected=yes
3664 continue
3666 ac_cv_prog_CC="cc"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3670 done
3671 done
3672 IFS=$as_save_IFS
3674 if test $ac_prog_rejected = yes; then
3675 # We found a bogon in the path, so make sure we never use it.
3676 set dummy $ac_cv_prog_CC
3677 shift
3678 if test $# != 0; then
3679 # We chose a different compiler from the bogus one.
3680 # However, it has the same basename, so the bogon will be chosen
3681 # first if we set CC to just the basename; use the full file name.
3682 shift
3683 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3688 CC=$ac_cv_prog_CC
3689 if test -n "$CC"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3691 $as_echo "$CC" >&6; }
3692 else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3699 if test -z "$CC"; then
3700 if test -n "$ac_tool_prefix"; then
3701 for ac_prog in cl.exe
3703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3704 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 $as_echo_n "checking for $ac_word... " >&6; }
3707 if test "${ac_cv_prog_CC+set}" = set; then :
3708 $as_echo_n "(cached) " >&6
3709 else
3710 if test -n "$CC"; then
3711 ac_cv_prog_CC="$CC" # Let the user override the test.
3712 else
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH
3716 IFS=$as_save_IFS
3717 test -z "$as_dir" && as_dir=.
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3720 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 break 2
3724 done
3725 done
3726 IFS=$as_save_IFS
3730 CC=$ac_cv_prog_CC
3731 if test -n "$CC"; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733 $as_echo "$CC" >&6; }
3734 else
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3740 test -n "$CC" && break
3741 done
3743 if test -z "$CC"; then
3744 ac_ct_CC=$CC
3745 for ac_prog in cl.exe
3747 # Extract the first word of "$ac_prog", so it can be a program name with args.
3748 set dummy $ac_prog; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 if test -n "$ac_ct_CC"; then
3755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_ac_ct_CC="$ac_prog"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3768 done
3769 done
3770 IFS=$as_save_IFS
3774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3775 if test -n "$ac_ct_CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3777 $as_echo "$ac_ct_CC" >&6; }
3778 else
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3784 test -n "$ac_ct_CC" && break
3785 done
3787 if test "x$ac_ct_CC" = x; then
3788 CC=""
3789 else
3790 case $cross_compiling:$ac_tool_warned in
3791 yes:)
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3794 ac_tool_warned=yes ;;
3795 esac
3796 CC=$ac_ct_CC
3803 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error "no acceptable C compiler found in \$PATH
3806 See \`config.log' for more details." "$LINENO" 5; }
3808 # Provide some information about the compiler.
3809 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3810 set X $ac_compile
3811 ac_compiler=$2
3812 for ac_option in --version -v -V -qversion; do
3813 { { ac_try="$ac_compiler $ac_option >&5"
3814 case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3821 ac_status=$?
3822 if test -s conftest.err; then
3823 sed '10a\
3824 ... rest of stderr output deleted ...
3825 10q' conftest.err >conftest.er1
3826 cat conftest.er1 >&5
3827 rm -f conftest.er1 conftest.err
3829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830 test $ac_status = 0; }
3831 done
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3837 main ()
3841 return 0;
3843 _ACEOF
3844 ac_clean_files_save=$ac_clean_files
3845 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3846 # Try to create an executable without -o first, disregard a.out.
3847 # It will help us diagnose broken compilers, and finding out an intuition
3848 # of exeext.
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3850 $as_echo_n "checking for C compiler default output file name... " >&6; }
3851 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3853 # The possible output files:
3854 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3856 ac_rmfiles=
3857 for ac_file in $ac_files
3859 case $ac_file in
3860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3861 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3862 esac
3863 done
3864 rm -f $ac_rmfiles
3866 if { { ac_try="$ac_link_default"
3867 case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870 esac
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 $as_echo "$ac_try_echo"; } >&5
3873 (eval "$ac_link_default") 2>&5
3874 ac_status=$?
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }; then :
3877 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3878 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3879 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3880 # so that the user can short-circuit this test for compilers unknown to
3881 # Autoconf.
3882 for ac_file in $ac_files ''
3884 test -f "$ac_file" || continue
3885 case $ac_file in
3886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3888 [ab].out )
3889 # We found the default executable, but exeext='' is most
3890 # certainly right.
3891 break;;
3892 *.* )
3893 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3894 then :; else
3895 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3897 # We set ac_cv_exeext here because the later test for it is not
3898 # safe: cross compilers may not add the suffix if given an `-o'
3899 # argument, so we may need to know it at that point already.
3900 # Even if this section looks crufty: it has the advantage of
3901 # actually working.
3902 break;;
3904 break;;
3905 esac
3906 done
3907 test "$ac_cv_exeext" = no && ac_cv_exeext=
3909 else
3910 ac_file=''
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3913 $as_echo "$ac_file" >&6; }
3914 if test -z "$ac_file"; then :
3915 $as_echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 { as_fn_set_status 77
3921 as_fn_error "C compiler cannot create executables
3922 See \`config.log' for more details." "$LINENO" 5; }; }
3924 ac_exeext=$ac_cv_exeext
3926 # Check that the compiler produces executables we can run. If not, either
3927 # the compiler is broken, or we cross compile.
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3929 $as_echo_n "checking whether the C compiler works... " >&6; }
3930 # If not cross compiling, check that we can run a simple program.
3931 if test "$cross_compiling" != yes; then
3932 if { ac_try='./$ac_file'
3933 { { case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936 esac
3937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938 $as_echo "$ac_try_echo"; } >&5
3939 (eval "$ac_try") 2>&5
3940 ac_status=$?
3941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942 test $ac_status = 0; }; }; then
3943 cross_compiling=no
3944 else
3945 if test "$cross_compiling" = maybe; then
3946 cross_compiling=yes
3947 else
3948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error "cannot run C compiled programs.
3951 If you meant to cross compile, use \`--host'.
3952 See \`config.log' for more details." "$LINENO" 5; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3957 $as_echo "yes" >&6; }
3959 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3960 ac_clean_files=$ac_clean_files_save
3961 # Check that the compiler produces executables we can run. If not, either
3962 # the compiler is broken, or we cross compile.
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3964 $as_echo_n "checking whether we are cross compiling... " >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3966 $as_echo "$cross_compiling" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3969 $as_echo_n "checking for suffix of executables... " >&6; }
3970 if { { ac_try="$ac_link"
3971 case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974 esac
3975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3976 $as_echo "$ac_try_echo"; } >&5
3977 (eval "$ac_link") 2>&5
3978 ac_status=$?
3979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3980 test $ac_status = 0; }; then :
3981 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3982 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3983 # work properly (i.e., refer to `conftest.exe'), while it won't with
3984 # `rm'.
3985 for ac_file in conftest.exe conftest conftest.*; do
3986 test -f "$ac_file" || continue
3987 case $ac_file in
3988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3990 break;;
3991 * ) break;;
3992 esac
3993 done
3994 else
3995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997 as_fn_error "cannot compute suffix of executables: cannot compile and link
3998 See \`config.log' for more details." "$LINENO" 5; }
4000 rm -f conftest$ac_cv_exeext
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4002 $as_echo "$ac_cv_exeext" >&6; }
4004 rm -f conftest.$ac_ext
4005 EXEEXT=$ac_cv_exeext
4006 ac_exeext=$EXEEXT
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4008 $as_echo_n "checking for suffix of object files... " >&6; }
4009 if test "${ac_cv_objext+set}" = set; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4016 main ()
4020 return 0;
4022 _ACEOF
4023 rm -f conftest.o conftest.obj
4024 if { { ac_try="$ac_compile"
4025 case "(($ac_try" in
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4028 esac
4029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030 $as_echo "$ac_try_echo"; } >&5
4031 (eval "$ac_compile") 2>&5
4032 ac_status=$?
4033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4034 test $ac_status = 0; }; then :
4035 for ac_file in conftest.o conftest.obj conftest.*; do
4036 test -f "$ac_file" || continue;
4037 case $ac_file in
4038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4040 break;;
4041 esac
4042 done
4043 else
4044 $as_echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error "cannot compute suffix of object files: cannot compile
4050 See \`config.log' for more details." "$LINENO" 5; }
4052 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4055 $as_echo "$ac_cv_objext" >&6; }
4056 OBJEXT=$ac_cv_objext
4057 ac_objext=$OBJEXT
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4059 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4060 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4067 main ()
4069 #ifndef __GNUC__
4070 choke me
4071 #endif
4074 return 0;
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078 ac_compiler_gnu=yes
4079 else
4080 ac_compiler_gnu=no
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4087 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4088 if test $ac_compiler_gnu = yes; then
4089 GCC=yes
4090 else
4091 GCC=
4093 ac_test_CFLAGS=${CFLAGS+set}
4094 ac_save_CFLAGS=$CFLAGS
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4096 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4097 if test "${ac_cv_prog_cc_g+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 ac_save_c_werror_flag=$ac_c_werror_flag
4101 ac_c_werror_flag=yes
4102 ac_cv_prog_cc_g=no
4103 CFLAGS="-g"
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4108 main ()
4112 return 0;
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_cv_prog_cc_g=yes
4117 else
4118 CFLAGS=""
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4123 main ()
4127 return 0;
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4132 else
4133 ac_c_werror_flag=$ac_save_c_werror_flag
4134 CFLAGS="-g"
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4139 main ()
4143 return 0;
4145 _ACEOF
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147 ac_cv_prog_cc_g=yes
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 ac_c_werror_flag=$ac_save_c_werror_flag
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4157 $as_echo "$ac_cv_prog_cc_g" >&6; }
4158 if test "$ac_test_CFLAGS" = set; then
4159 CFLAGS=$ac_save_CFLAGS
4160 elif test $ac_cv_prog_cc_g = yes; then
4161 if test "$GCC" = yes; then
4162 CFLAGS="-g -O2"
4163 else
4164 CFLAGS="-g"
4166 else
4167 if test "$GCC" = yes; then
4168 CFLAGS="-O2"
4169 else
4170 CFLAGS=
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4174 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4175 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 ac_cv_prog_cc_c89=no
4179 ac_save_CC=$CC
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182 #include <stdarg.h>
4183 #include <stdio.h>
4184 #include <sys/types.h>
4185 #include <sys/stat.h>
4186 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4187 struct buf { int x; };
4188 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4189 static char *e (p, i)
4190 char **p;
4191 int i;
4193 return p[i];
4195 static char *f (char * (*g) (char **, int), char **p, ...)
4197 char *s;
4198 va_list v;
4199 va_start (v,p);
4200 s = g (p, va_arg (v,int));
4201 va_end (v);
4202 return s;
4205 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4206 function prototypes and stuff, but not '\xHH' hex character constants.
4207 These don't provoke an error unfortunately, instead are silently treated
4208 as 'x'. The following induces an error, until -std is added to get
4209 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4210 array size at least. It's necessary to write '\x00'==0 to get something
4211 that's true only with -std. */
4212 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4214 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4215 inside strings and character constants. */
4216 #define FOO(x) 'x'
4217 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4219 int test (int i, double x);
4220 struct s1 {int (*f) (int a);};
4221 struct s2 {int (*f) (double a);};
4222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4223 int argc;
4224 char **argv;
4226 main ()
4228 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4230 return 0;
4232 _ACEOF
4233 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4234 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4236 CC="$ac_save_CC $ac_arg"
4237 if ac_fn_c_try_compile "$LINENO"; then :
4238 ac_cv_prog_cc_c89=$ac_arg
4240 rm -f core conftest.err conftest.$ac_objext
4241 test "x$ac_cv_prog_cc_c89" != "xno" && break
4242 done
4243 rm -f conftest.$ac_ext
4244 CC=$ac_save_CC
4247 # AC_CACHE_VAL
4248 case "x$ac_cv_prog_cc_c89" in
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4251 $as_echo "none needed" >&6; } ;;
4252 xno)
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4254 $as_echo "unsupported" >&6; } ;;
4256 CC="$CC $ac_cv_prog_cc_c89"
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4258 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4259 esac
4260 if test "x$ac_cv_prog_cc_c89" != xno; then :
4264 ac_ext=c
4265 ac_cpp='$CPP $CPPFLAGS'
4266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 if test "x$CC" != xcc; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4272 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4275 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4277 set dummy $CC; ac_cc=`$as_echo "$2" |
4278 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4279 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4286 main ()
4290 return 0;
4292 _ACEOF
4293 # Make sure it works both with $CC and with simple cc.
4294 # We do the test twice because some compilers refuse to overwrite an
4295 # existing .o file with -o, though they will create one.
4296 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4297 rm -f conftest2.*
4298 if { { case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301 esac
4302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303 $as_echo "$ac_try_echo"; } >&5
4304 (eval "$ac_try") 2>&5
4305 ac_status=$?
4306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307 test $ac_status = 0; } &&
4308 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311 esac
4312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4313 $as_echo "$ac_try_echo"; } >&5
4314 (eval "$ac_try") 2>&5
4315 ac_status=$?
4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; };
4318 then
4319 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4320 if test "x$CC" != xcc; then
4321 # Test first that cc exists at all.
4322 if { ac_try='cc -c conftest.$ac_ext >&5'
4323 { { case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326 esac
4327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4328 $as_echo "$ac_try_echo"; } >&5
4329 (eval "$ac_try") 2>&5
4330 ac_status=$?
4331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332 test $ac_status = 0; }; }; then
4333 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4334 rm -f conftest2.*
4335 if { { case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341 (eval "$ac_try") 2>&5
4342 ac_status=$?
4343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; } &&
4345 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348 esac
4349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 $as_echo "$ac_try_echo"; } >&5
4351 (eval "$ac_try") 2>&5
4352 ac_status=$?
4353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354 test $ac_status = 0; };
4355 then
4356 # cc works too.
4358 else
4359 # cc exists but doesn't like -o.
4360 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4364 else
4365 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4367 rm -f core conftest*
4370 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4372 $as_echo "yes" >&6; }
4373 else
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4377 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4381 # expand $ac_aux_dir to an absolute path
4382 am_aux_dir=`cd $ac_aux_dir && pwd`
4384 # FIXME: we rely on the cache variable name because
4385 # there is no other way.
4386 set dummy $CC
4387 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4388 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4389 if test "$am_t" != yes; then
4390 # Losing compiler, so override with the script.
4391 # FIXME: It is wrong to rewrite CC.
4392 # But if we don't then we get into trouble of one sort or another.
4393 # A longer-term fix would be to have automake use am__CC in this case,
4394 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4395 CC="$am_aux_dir/compile $CC"
4399 ac_ext=cpp
4400 ac_cpp='$CXXCPP $CPPFLAGS'
4401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4404 if test -z "$CXX"; then
4405 if test -n "$CCC"; then
4406 CXX=$CCC
4407 else
4408 if test -n "$ac_tool_prefix"; then
4409 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if test "${ac_cv_prog_CXX+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -n "$CXX"; then
4419 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4432 done
4433 done
4434 IFS=$as_save_IFS
4438 CXX=$ac_cv_prog_CXX
4439 if test -n "$CXX"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4441 $as_echo "$CXX" >&6; }
4442 else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4448 test -n "$CXX" && break
4449 done
4451 if test -z "$CXX"; then
4452 ac_ct_CXX=$CXX
4453 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4455 # Extract the first word of "$ac_prog", so it can be a program name with args.
4456 set dummy $ac_prog; ac_word=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 if test -n "$ac_ct_CXX"; then
4463 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_ac_ct_CXX="$ac_prog"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4476 done
4477 done
4478 IFS=$as_save_IFS
4482 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4483 if test -n "$ac_ct_CXX"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4485 $as_echo "$ac_ct_CXX" >&6; }
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4492 test -n "$ac_ct_CXX" && break
4493 done
4495 if test "x$ac_ct_CXX" = x; then
4496 CXX="g++"
4497 else
4498 case $cross_compiling:$ac_tool_warned in
4499 yes:)
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4502 ac_tool_warned=yes ;;
4503 esac
4504 CXX=$ac_ct_CXX
4510 # Provide some information about the compiler.
4511 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4512 set X $ac_compile
4513 ac_compiler=$2
4514 for ac_option in --version -v -V -qversion; do
4515 { { ac_try="$ac_compiler $ac_option >&5"
4516 case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519 esac
4520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4521 $as_echo "$ac_try_echo"; } >&5
4522 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4523 ac_status=$?
4524 if test -s conftest.err; then
4525 sed '10a\
4526 ... rest of stderr output deleted ...
4527 10q' conftest.err >conftest.er1
4528 cat conftest.er1 >&5
4529 rm -f conftest.er1 conftest.err
4531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }
4533 done
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4536 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4537 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4544 main ()
4546 #ifndef __GNUC__
4547 choke me
4548 #endif
4551 return 0;
4553 _ACEOF
4554 if ac_fn_cxx_try_compile "$LINENO"; then :
4555 ac_compiler_gnu=yes
4556 else
4557 ac_compiler_gnu=no
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4564 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4565 if test $ac_compiler_gnu = yes; then
4566 GXX=yes
4567 else
4568 GXX=
4570 ac_test_CXXFLAGS=${CXXFLAGS+set}
4571 ac_save_CXXFLAGS=$CXXFLAGS
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4573 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4574 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4578 ac_cxx_werror_flag=yes
4579 ac_cv_prog_cxx_g=no
4580 CXXFLAGS="-g"
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4585 main ()
4589 return 0;
4591 _ACEOF
4592 if ac_fn_cxx_try_compile "$LINENO"; then :
4593 ac_cv_prog_cxx_g=yes
4594 else
4595 CXXFLAGS=""
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4600 main ()
4604 return 0;
4606 _ACEOF
4607 if ac_fn_cxx_try_compile "$LINENO"; then :
4609 else
4610 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4611 CXXFLAGS="-g"
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4616 main ()
4620 return 0;
4622 _ACEOF
4623 if ac_fn_cxx_try_compile "$LINENO"; then :
4624 ac_cv_prog_cxx_g=yes
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4634 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4635 if test "$ac_test_CXXFLAGS" = set; then
4636 CXXFLAGS=$ac_save_CXXFLAGS
4637 elif test $ac_cv_prog_cxx_g = yes; then
4638 if test "$GXX" = yes; then
4639 CXXFLAGS="-g -O2"
4640 else
4641 CXXFLAGS="-g"
4643 else
4644 if test "$GXX" = yes; then
4645 CXXFLAGS="-O2"
4646 else
4647 CXXFLAGS=
4650 ac_ext=c
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4661 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$GNATBIND"; then
4668 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4681 done
4682 done
4683 IFS=$as_save_IFS
4687 GNATBIND=$ac_cv_prog_GNATBIND
4688 if test -n "$GNATBIND"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4690 $as_echo "$GNATBIND" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4698 if test -z "$ac_cv_prog_GNATBIND"; then
4699 ac_ct_GNATBIND=$GNATBIND
4700 # Extract the first word of "gnatbind", so it can be a program name with args.
4701 set dummy gnatbind; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 if test -n "$ac_ct_GNATBIND"; then
4708 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4721 done
4722 done
4723 IFS=$as_save_IFS
4727 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4728 if test -n "$ac_ct_GNATBIND"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4730 $as_echo "$ac_ct_GNATBIND" >&6; }
4731 else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4736 if test "x$ac_ct_GNATBIND" = x; then
4737 GNATBIND="no"
4738 else
4739 case $cross_compiling:$ac_tool_warned in
4740 yes:)
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743 ac_tool_warned=yes ;;
4744 esac
4745 GNATBIND=$ac_ct_GNATBIND
4747 else
4748 GNATBIND="$ac_cv_prog_GNATBIND"
4751 if test -n "$ac_tool_prefix"; then
4752 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4753 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if test -n "$GNATMAKE"; then
4760 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
4773 done
4774 done
4775 IFS=$as_save_IFS
4779 GNATMAKE=$ac_cv_prog_GNATMAKE
4780 if test -n "$GNATMAKE"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4782 $as_echo "$GNATMAKE" >&6; }
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4790 if test -z "$ac_cv_prog_GNATMAKE"; then
4791 ac_ct_GNATMAKE=$GNATMAKE
4792 # Extract the first word of "gnatmake", so it can be a program name with args.
4793 set dummy gnatmake; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -n "$ac_ct_GNATMAKE"; then
4800 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4801 else
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4809 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4813 done
4814 done
4815 IFS=$as_save_IFS
4819 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4820 if test -n "$ac_ct_GNATMAKE"; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4822 $as_echo "$ac_ct_GNATMAKE" >&6; }
4823 else
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825 $as_echo "no" >&6; }
4828 if test "x$ac_ct_GNATMAKE" = x; then
4829 GNATMAKE="no"
4830 else
4831 case $cross_compiling:$ac_tool_warned in
4832 yes:)
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4835 ac_tool_warned=yes ;;
4836 esac
4837 GNATMAKE=$ac_ct_GNATMAKE
4839 else
4840 GNATMAKE="$ac_cv_prog_GNATMAKE"
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4844 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4845 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 cat >conftest.adb <<EOF
4849 procedure conftest is begin null; end conftest;
4851 acx_cv_cc_gcc_supports_ada=no
4852 # There is a bug in old released versions of GCC which causes the
4853 # driver to exit successfully when the appropriate language module
4854 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4855 # Therefore we must check for the error message as well as an
4856 # unsuccessful exit.
4857 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4858 # given a .adb file, but produce no object file. So we must check
4859 # if an object file was really produced to guard against this.
4860 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4861 if test x"$errors" = x && test -f conftest.$ac_objext; then
4862 acx_cv_cc_gcc_supports_ada=yes
4864 rm -f conftest.*
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4867 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4869 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4870 have_gnat=yes
4871 else
4872 have_gnat=no
4876 # autoconf is lame and doesn't give us any substitution variable for this.
4877 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4878 NO_MINUS_C_MINUS_O=yes
4879 else
4880 OUTPUT_OPTION='-o $@'
4885 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4886 # optimizations to be activated explicitly by the toplevel.
4887 case "$CC" in
4888 */prev-gcc/xgcc*) ;;
4889 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4890 esac
4893 # Determine PICFLAG for target gnatlib.
4898 case "${target}" in
4899 # PIC is the default on some targets or must not be used.
4900 *-*-darwin*)
4901 # PIC is the default on this platform
4902 # Common symbols not allowed in MH_DYLIB files
4903 PICFLAG_FOR_TARGET=-fno-common
4905 alpha*-dec-osf5*)
4906 # PIC is the default.
4908 hppa*64*-*-hpux*)
4909 # PIC is the default for 64-bit PA HP-UX.
4911 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4913 i[34567]86-*-interix[3-9]*)
4914 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4915 # Instead, we relocate shared libraries at runtime.
4917 i[34567]86-*-nto-qnx*)
4918 # QNX uses GNU C++, but need to define -shared option too, otherwise
4919 # it will coredump.
4920 PICFLAG_FOR_TARGET='-fPIC -shared'
4922 i[34567]86-pc-msdosdjgpp*)
4923 # DJGPP does not support shared libraries at all.
4925 ia64*-*-hpux*)
4926 # On IA64 HP-UX, PIC is the default but the pic flag
4927 # sets the default TLS model and affects inlining.
4928 PICFLAG_FOR_TARGET=-fPIC
4930 mips-sgi-irix6*)
4931 # PIC is the default.
4933 rs6000-ibm-aix* | powerpc-ibm-aix*)
4934 # All AIX code is PIC.
4937 # Some targets support both -fPIC and -fpic, but prefer the latter.
4938 # FIXME: Why?
4939 i[34567]86-*-* | x86_64-*-*)
4940 PICFLAG_FOR_TARGET=-fpic
4942 m68k-*-*)
4943 PICFLAG_FOR_TARGET=-fpic
4945 # FIXME: Override -fPIC default in libgcc only?
4946 sh-*-linux* | sh[2346lbe]*-*-linux*)
4947 PICFLAG_FOR_TARGET=-fpic
4949 # FIXME: Simplify to sh*-*-netbsd*?
4950 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4951 sh64-*-netbsd* | sh64l*-*-netbsd*)
4952 PICFLAG_FOR_TARGET=-fpic
4954 # Default to -fPIC unless specified otherwise.
4956 PICFLAG_FOR_TARGET=-fPIC
4958 esac
4960 # If the user explicitly uses -fpic/-fPIC, keep that.
4961 case "${CFLAGS_FOR_TARGET}" in
4962 *-fpic*)
4963 PICFLAG_FOR_TARGET=-fpic
4965 *-fPIC*)
4966 PICFLAG_FOR_TARGET=-fPIC
4968 esac
4972 # -------------------------
4973 # Check C compiler features
4974 # -------------------------
4977 ac_ext=c
4978 ac_cpp='$CPP $CPPFLAGS'
4979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4983 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4984 # On Suns, sometimes $CPP names a directory.
4985 if test -n "$CPP" && test -d "$CPP"; then
4986 CPP=
4988 if test -z "$CPP"; then
4989 if test "${ac_cv_prog_CPP+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 # Double quotes because CPP needs to be expanded
4993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4995 ac_preproc_ok=false
4996 for ac_c_preproc_warn_flag in '' yes
4998 # Use a header file that comes with gcc, so configuring glibc
4999 # with a fresh cross-compiler works.
5000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5001 # <limits.h> exists even on freestanding compilers.
5002 # On the NeXT, cc -E runs the code through the compiler's parser,
5003 # not just through cpp. "Syntax error" is here to catch this case.
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5006 #ifdef __STDC__
5007 # include <limits.h>
5008 #else
5009 # include <assert.h>
5010 #endif
5011 Syntax error
5012 _ACEOF
5013 if ac_fn_c_try_cpp "$LINENO"; then :
5015 else
5016 # Broken: fails on valid input.
5017 continue
5019 rm -f conftest.err conftest.$ac_ext
5021 # OK, works on sane cases. Now check whether nonexistent headers
5022 # can be detected and how.
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025 #include <ac_nonexistent.h>
5026 _ACEOF
5027 if ac_fn_c_try_cpp "$LINENO"; then :
5028 # Broken: success on invalid input.
5029 continue
5030 else
5031 # Passes both tests.
5032 ac_preproc_ok=:
5033 break
5035 rm -f conftest.err conftest.$ac_ext
5037 done
5038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5039 rm -f conftest.err conftest.$ac_ext
5040 if $ac_preproc_ok; then :
5041 break
5044 done
5045 ac_cv_prog_CPP=$CPP
5048 CPP=$ac_cv_prog_CPP
5049 else
5050 ac_cv_prog_CPP=$CPP
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5053 $as_echo "$CPP" >&6; }
5054 ac_preproc_ok=false
5055 for ac_c_preproc_warn_flag in '' yes
5057 # Use a header file that comes with gcc, so configuring glibc
5058 # with a fresh cross-compiler works.
5059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5060 # <limits.h> exists even on freestanding compilers.
5061 # On the NeXT, cc -E runs the code through the compiler's parser,
5062 # not just through cpp. "Syntax error" is here to catch this case.
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5065 #ifdef __STDC__
5066 # include <limits.h>
5067 #else
5068 # include <assert.h>
5069 #endif
5070 Syntax error
5071 _ACEOF
5072 if ac_fn_c_try_cpp "$LINENO"; then :
5074 else
5075 # Broken: fails on valid input.
5076 continue
5078 rm -f conftest.err conftest.$ac_ext
5080 # OK, works on sane cases. Now check whether nonexistent headers
5081 # can be detected and how.
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5084 #include <ac_nonexistent.h>
5085 _ACEOF
5086 if ac_fn_c_try_cpp "$LINENO"; then :
5087 # Broken: success on invalid input.
5088 continue
5089 else
5090 # Passes both tests.
5091 ac_preproc_ok=:
5092 break
5094 rm -f conftest.err conftest.$ac_ext
5096 done
5097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5098 rm -f conftest.err conftest.$ac_ext
5099 if $ac_preproc_ok; then :
5101 else
5102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5104 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5105 See \`config.log' for more details." "$LINENO" 5; }
5108 ac_ext=c
5109 ac_cpp='$CPP $CPPFLAGS'
5110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5116 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5117 if test "${ac_cv_path_GREP+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 if test -z "$GREP"; then
5121 ac_path_GREP_found=false
5122 # Loop through the user's path and test for each of PROGNAME-LIST
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_prog in grep ggrep; do
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5131 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5132 # Check for GNU ac_path_GREP and select it if it is found.
5133 # Check for GNU $ac_path_GREP
5134 case `"$ac_path_GREP" --version 2>&1` in
5135 *GNU*)
5136 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5138 ac_count=0
5139 $as_echo_n 0123456789 >"conftest.in"
5140 while :
5142 cat "conftest.in" "conftest.in" >"conftest.tmp"
5143 mv "conftest.tmp" "conftest.in"
5144 cp "conftest.in" "conftest.nl"
5145 $as_echo 'GREP' >> "conftest.nl"
5146 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5148 as_fn_arith $ac_count + 1 && ac_count=$as_val
5149 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5150 # Best one so far, save it but keep looking for a better one
5151 ac_cv_path_GREP="$ac_path_GREP"
5152 ac_path_GREP_max=$ac_count
5154 # 10*(2^10) chars as input seems more than enough
5155 test $ac_count -gt 10 && break
5156 done
5157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5158 esac
5160 $ac_path_GREP_found && break 3
5161 done
5162 done
5163 done
5164 IFS=$as_save_IFS
5165 if test -z "$ac_cv_path_GREP"; then
5166 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5168 else
5169 ac_cv_path_GREP=$GREP
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5174 $as_echo "$ac_cv_path_GREP" >&6; }
5175 GREP="$ac_cv_path_GREP"
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5179 $as_echo_n "checking for egrep... " >&6; }
5180 if test "${ac_cv_path_EGREP+set}" = set; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5184 then ac_cv_path_EGREP="$GREP -E"
5185 else
5186 if test -z "$EGREP"; then
5187 ac_path_EGREP_found=false
5188 # Loop through the user's path and test for each of PROGNAME-LIST
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_prog in egrep; do
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5197 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5198 # Check for GNU ac_path_EGREP and select it if it is found.
5199 # Check for GNU $ac_path_EGREP
5200 case `"$ac_path_EGREP" --version 2>&1` in
5201 *GNU*)
5202 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5204 ac_count=0
5205 $as_echo_n 0123456789 >"conftest.in"
5206 while :
5208 cat "conftest.in" "conftest.in" >"conftest.tmp"
5209 mv "conftest.tmp" "conftest.in"
5210 cp "conftest.in" "conftest.nl"
5211 $as_echo 'EGREP' >> "conftest.nl"
5212 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5214 as_fn_arith $ac_count + 1 && ac_count=$as_val
5215 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5216 # Best one so far, save it but keep looking for a better one
5217 ac_cv_path_EGREP="$ac_path_EGREP"
5218 ac_path_EGREP_max=$ac_count
5220 # 10*(2^10) chars as input seems more than enough
5221 test $ac_count -gt 10 && break
5222 done
5223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5224 esac
5226 $ac_path_EGREP_found && break 3
5227 done
5228 done
5229 done
5230 IFS=$as_save_IFS
5231 if test -z "$ac_cv_path_EGREP"; then
5232 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5234 else
5235 ac_cv_path_EGREP=$EGREP
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5241 $as_echo "$ac_cv_path_EGREP" >&6; }
5242 EGREP="$ac_cv_path_EGREP"
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5246 $as_echo_n "checking for ANSI C header files... " >&6; }
5247 if test "${ac_cv_header_stdc+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5252 #include <stdlib.h>
5253 #include <stdarg.h>
5254 #include <string.h>
5255 #include <float.h>
5258 main ()
5262 return 0;
5264 _ACEOF
5265 if ac_fn_c_try_compile "$LINENO"; then :
5266 ac_cv_header_stdc=yes
5267 else
5268 ac_cv_header_stdc=no
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5272 if test $ac_cv_header_stdc = yes; then
5273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5276 #include <string.h>
5278 _ACEOF
5279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 #include <stdlib.h>
5295 _ACEOF
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297 $EGREP "free" >/dev/null 2>&1; then :
5299 else
5300 ac_cv_header_stdc=no
5302 rm -f conftest*
5306 if test $ac_cv_header_stdc = yes; then
5307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5308 if test "$cross_compiling" = yes; then :
5310 else
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313 #include <ctype.h>
5314 #include <stdlib.h>
5315 #if ((' ' & 0x0FF) == 0x020)
5316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5318 #else
5319 # define ISLOWER(c) \
5320 (('a' <= (c) && (c) <= 'i') \
5321 || ('j' <= (c) && (c) <= 'r') \
5322 || ('s' <= (c) && (c) <= 'z'))
5323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5324 #endif
5326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5328 main ()
5330 int i;
5331 for (i = 0; i < 256; i++)
5332 if (XOR (islower (i), ISLOWER (i))
5333 || toupper (i) != TOUPPER (i))
5334 return 2;
5335 return 0;
5337 _ACEOF
5338 if ac_fn_c_try_run "$LINENO"; then :
5340 else
5341 ac_cv_header_stdc=no
5343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5344 conftest.$ac_objext conftest.beam conftest.$ac_ext
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5350 $as_echo "$ac_cv_header_stdc" >&6; }
5351 if test $ac_cv_header_stdc = yes; then
5353 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5357 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5358 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5359 inttypes.h stdint.h unistd.h
5360 do :
5361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5362 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5364 eval as_val=\$$as_ac_Header
5365 if test "x$as_val" = x""yes; then :
5366 cat >>confdefs.h <<_ACEOF
5367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5368 _ACEOF
5372 done
5376 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5377 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5378 MINIX=yes
5379 else
5380 MINIX=
5384 if test "$MINIX" = yes; then
5386 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5389 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5392 $as_echo "#define _MINIX 1" >>confdefs.h
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5398 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5399 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5405 # define __EXTENSIONS__ 1
5406 $ac_includes_default
5408 main ()
5412 return 0;
5414 _ACEOF
5415 if ac_fn_c_try_compile "$LINENO"; then :
5416 ac_cv_safe_to_define___extensions__=yes
5417 else
5418 ac_cv_safe_to_define___extensions__=no
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5423 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5424 test $ac_cv_safe_to_define___extensions__ = yes &&
5425 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5427 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5429 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5431 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5433 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5436 ac_ext=c
5437 ac_cpp='$CPP $CPPFLAGS'
5438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5442 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5443 # On Suns, sometimes $CPP names a directory.
5444 if test -n "$CPP" && test -d "$CPP"; then
5445 CPP=
5447 if test -z "$CPP"; then
5448 if test "${ac_cv_prog_CPP+set}" = set; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 # Double quotes because CPP needs to be expanded
5452 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5454 ac_preproc_ok=false
5455 for ac_c_preproc_warn_flag in '' yes
5457 # Use a header file that comes with gcc, so configuring glibc
5458 # with a fresh cross-compiler works.
5459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5460 # <limits.h> exists even on freestanding compilers.
5461 # On the NeXT, cc -E runs the code through the compiler's parser,
5462 # not just through cpp. "Syntax error" is here to catch this case.
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5465 #ifdef __STDC__
5466 # include <limits.h>
5467 #else
5468 # include <assert.h>
5469 #endif
5470 Syntax error
5471 _ACEOF
5472 if ac_fn_c_try_cpp "$LINENO"; then :
5474 else
5475 # Broken: fails on valid input.
5476 continue
5478 rm -f conftest.err conftest.$ac_ext
5480 # OK, works on sane cases. Now check whether nonexistent headers
5481 # can be detected and how.
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 #include <ac_nonexistent.h>
5485 _ACEOF
5486 if ac_fn_c_try_cpp "$LINENO"; then :
5487 # Broken: success on invalid input.
5488 continue
5489 else
5490 # Passes both tests.
5491 ac_preproc_ok=:
5492 break
5494 rm -f conftest.err conftest.$ac_ext
5496 done
5497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5498 rm -f conftest.err conftest.$ac_ext
5499 if $ac_preproc_ok; then :
5500 break
5503 done
5504 ac_cv_prog_CPP=$CPP
5507 CPP=$ac_cv_prog_CPP
5508 else
5509 ac_cv_prog_CPP=$CPP
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5512 $as_echo "$CPP" >&6; }
5513 ac_preproc_ok=false
5514 for ac_c_preproc_warn_flag in '' yes
5516 # Use a header file that comes with gcc, so configuring glibc
5517 # with a fresh cross-compiler works.
5518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5519 # <limits.h> exists even on freestanding compilers.
5520 # On the NeXT, cc -E runs the code through the compiler's parser,
5521 # not just through cpp. "Syntax error" is here to catch this case.
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5524 #ifdef __STDC__
5525 # include <limits.h>
5526 #else
5527 # include <assert.h>
5528 #endif
5529 Syntax error
5530 _ACEOF
5531 if ac_fn_c_try_cpp "$LINENO"; then :
5533 else
5534 # Broken: fails on valid input.
5535 continue
5537 rm -f conftest.err conftest.$ac_ext
5539 # OK, works on sane cases. Now check whether nonexistent headers
5540 # can be detected and how.
5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5543 #include <ac_nonexistent.h>
5544 _ACEOF
5545 if ac_fn_c_try_cpp "$LINENO"; then :
5546 # Broken: success on invalid input.
5547 continue
5548 else
5549 # Passes both tests.
5550 ac_preproc_ok=:
5551 break
5553 rm -f conftest.err conftest.$ac_ext
5555 done
5556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5557 rm -f conftest.err conftest.$ac_ext
5558 if $ac_preproc_ok; then :
5560 else
5561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5563 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5564 See \`config.log' for more details." "$LINENO" 5; }
5567 ac_ext=c
5568 ac_cpp='$CPP $CPPFLAGS'
5569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5574 $as_echo_n "checking for inline... " >&6; }
5575 if test "${ac_cv_c_inline+set}" = set; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 ac_cv_c_inline=no
5579 for ac_kw in inline __inline__ __inline; do
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582 #ifndef __cplusplus
5583 typedef int foo_t;
5584 static $ac_kw foo_t static_foo () {return 0; }
5585 $ac_kw foo_t foo () {return 0; }
5586 #endif
5588 _ACEOF
5589 if ac_fn_c_try_compile "$LINENO"; then :
5590 ac_cv_c_inline=$ac_kw
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 test "$ac_cv_c_inline" != no && break
5594 done
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5598 $as_echo "$ac_cv_c_inline" >&6; }
5600 case $ac_cv_c_inline in
5601 inline | yes) ;;
5603 case $ac_cv_c_inline in
5604 no) ac_val=;;
5605 *) ac_val=$ac_cv_c_inline;;
5606 esac
5607 cat >>confdefs.h <<_ACEOF
5608 #ifndef __cplusplus
5609 #define inline $ac_val
5610 #endif
5611 _ACEOF
5613 esac
5616 # Check whether --enable-largefile was given.
5617 if test "${enable_largefile+set}" = set; then :
5618 enableval=$enable_largefile;
5621 if test "$enable_largefile" != no; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5624 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5625 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 ac_cv_sys_largefile_CC=no
5629 if test "$GCC" != yes; then
5630 ac_save_CC=$CC
5631 while :; do
5632 # IRIX 6.2 and later do not support large files by default,
5633 # so use the C compiler's -n32 option if that helps.
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 #include <sys/types.h>
5637 /* Check that off_t can represent 2**63 - 1 correctly.
5638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5639 since some C++ compilers masquerading as C compilers
5640 incorrectly reject 9223372036854775807. */
5641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5643 && LARGE_OFF_T % 2147483647 == 1)
5644 ? 1 : -1];
5646 main ()
5650 return 0;
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 break
5656 rm -f core conftest.err conftest.$ac_objext
5657 CC="$CC -n32"
5658 if ac_fn_c_try_compile "$LINENO"; then :
5659 ac_cv_sys_largefile_CC=' -n32'; break
5661 rm -f core conftest.err conftest.$ac_objext
5662 break
5663 done
5664 CC=$ac_save_CC
5665 rm -f conftest.$ac_ext
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5669 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5670 if test "$ac_cv_sys_largefile_CC" != no; then
5671 CC=$CC$ac_cv_sys_largefile_CC
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5675 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5676 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 while :; do
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #include <sys/types.h>
5683 /* Check that off_t can represent 2**63 - 1 correctly.
5684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5685 since some C++ compilers masquerading as C compilers
5686 incorrectly reject 9223372036854775807. */
5687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5689 && LARGE_OFF_T % 2147483647 == 1)
5690 ? 1 : -1];
5692 main ()
5696 return 0;
5698 _ACEOF
5699 if ac_fn_c_try_compile "$LINENO"; then :
5700 ac_cv_sys_file_offset_bits=no; break
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5705 #define _FILE_OFFSET_BITS 64
5706 #include <sys/types.h>
5707 /* Check that off_t can represent 2**63 - 1 correctly.
5708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5709 since some C++ compilers masquerading as C compilers
5710 incorrectly reject 9223372036854775807. */
5711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5713 && LARGE_OFF_T % 2147483647 == 1)
5714 ? 1 : -1];
5716 main ()
5720 return 0;
5722 _ACEOF
5723 if ac_fn_c_try_compile "$LINENO"; then :
5724 ac_cv_sys_file_offset_bits=64; break
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 ac_cv_sys_file_offset_bits=unknown
5728 break
5729 done
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5732 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5733 case $ac_cv_sys_file_offset_bits in #(
5734 no | unknown) ;;
5736 cat >>confdefs.h <<_ACEOF
5737 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5738 _ACEOF
5740 esac
5741 rm -rf conftest*
5742 if test $ac_cv_sys_file_offset_bits = unknown; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5744 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5745 if test "${ac_cv_sys_large_files+set}" = set; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 while :; do
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #include <sys/types.h>
5752 /* Check that off_t can represent 2**63 - 1 correctly.
5753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5754 since some C++ compilers masquerading as C compilers
5755 incorrectly reject 9223372036854775807. */
5756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5758 && LARGE_OFF_T % 2147483647 == 1)
5759 ? 1 : -1];
5761 main ()
5765 return 0;
5767 _ACEOF
5768 if ac_fn_c_try_compile "$LINENO"; then :
5769 ac_cv_sys_large_files=no; break
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774 #define _LARGE_FILES 1
5775 #include <sys/types.h>
5776 /* Check that off_t can represent 2**63 - 1 correctly.
5777 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5778 since some C++ compilers masquerading as C compilers
5779 incorrectly reject 9223372036854775807. */
5780 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5781 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5782 && LARGE_OFF_T % 2147483647 == 1)
5783 ? 1 : -1];
5785 main ()
5789 return 0;
5791 _ACEOF
5792 if ac_fn_c_try_compile "$LINENO"; then :
5793 ac_cv_sys_large_files=1; break
5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 ac_cv_sys_large_files=unknown
5797 break
5798 done
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5801 $as_echo "$ac_cv_sys_large_files" >&6; }
5802 case $ac_cv_sys_large_files in #(
5803 no | unknown) ;;
5805 cat >>confdefs.h <<_ACEOF
5806 #define _LARGE_FILES $ac_cv_sys_large_files
5807 _ACEOF
5809 esac
5810 rm -rf conftest*
5815 # sizeof(char) is 1 by definition.
5816 # The cast to long int works around a bug in the HP C Compiler
5817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5819 # This bug is HP SR number 8606223364.
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5821 $as_echo_n "checking size of void *... " >&6; }
5822 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5827 else
5828 if test "$ac_cv_type_void_p" = yes; then
5829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5831 { as_fn_set_status 77
5832 as_fn_error "cannot compute sizeof (void *)
5833 See \`config.log' for more details." "$LINENO" 5; }; }
5834 else
5835 ac_cv_sizeof_void_p=0
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5841 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5845 cat >>confdefs.h <<_ACEOF
5846 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5847 _ACEOF
5850 # The cast to long int works around a bug in the HP C Compiler
5851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5853 # This bug is HP SR number 8606223364.
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5855 $as_echo_n "checking size of short... " >&6; }
5856 if test "${ac_cv_sizeof_short+set}" = set; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5861 else
5862 if test "$ac_cv_type_short" = yes; then
5863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5865 { as_fn_set_status 77
5866 as_fn_error "cannot compute sizeof (short)
5867 See \`config.log' for more details." "$LINENO" 5; }; }
5868 else
5869 ac_cv_sizeof_short=0
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5875 $as_echo "$ac_cv_sizeof_short" >&6; }
5879 cat >>confdefs.h <<_ACEOF
5880 #define SIZEOF_SHORT $ac_cv_sizeof_short
5881 _ACEOF
5884 # The cast to long int works around a bug in the HP C Compiler
5885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5886 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5887 # This bug is HP SR number 8606223364.
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5889 $as_echo_n "checking size of int... " >&6; }
5890 if test "${ac_cv_sizeof_int+set}" = set; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5895 else
5896 if test "$ac_cv_type_int" = yes; then
5897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5899 { as_fn_set_status 77
5900 as_fn_error "cannot compute sizeof (int)
5901 See \`config.log' for more details." "$LINENO" 5; }; }
5902 else
5903 ac_cv_sizeof_int=0
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5909 $as_echo "$ac_cv_sizeof_int" >&6; }
5913 cat >>confdefs.h <<_ACEOF
5914 #define SIZEOF_INT $ac_cv_sizeof_int
5915 _ACEOF
5918 # The cast to long int works around a bug in the HP C Compiler
5919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5921 # This bug is HP SR number 8606223364.
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5923 $as_echo_n "checking size of long... " >&6; }
5924 if test "${ac_cv_sizeof_long+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5929 else
5930 if test "$ac_cv_type_long" = yes; then
5931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5933 { as_fn_set_status 77
5934 as_fn_error "cannot compute sizeof (long)
5935 See \`config.log' for more details." "$LINENO" 5; }; }
5936 else
5937 ac_cv_sizeof_long=0
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5943 $as_echo "$ac_cv_sizeof_long" >&6; }
5947 cat >>confdefs.h <<_ACEOF
5948 #define SIZEOF_LONG $ac_cv_sizeof_long
5949 _ACEOF
5952 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5953 if test "x$ac_cv_type_long_long" = x""yes; then :
5955 cat >>confdefs.h <<_ACEOF
5956 #define HAVE_LONG_LONG 1
5957 _ACEOF
5959 # The cast to long int works around a bug in the HP C Compiler
5960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5962 # This bug is HP SR number 8606223364.
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5964 $as_echo_n "checking size of long long... " >&6; }
5965 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5970 else
5971 if test "$ac_cv_type_long_long" = yes; then
5972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5974 { as_fn_set_status 77
5975 as_fn_error "cannot compute sizeof (long long)
5976 See \`config.log' for more details." "$LINENO" 5; }; }
5977 else
5978 ac_cv_sizeof_long_long=0
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5984 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5988 cat >>confdefs.h <<_ACEOF
5989 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5990 _ACEOF
5995 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5996 if test "x$ac_cv_type___int64" = x""yes; then :
5998 cat >>confdefs.h <<_ACEOF
5999 #define HAVE___INT64 1
6000 _ACEOF
6002 # The cast to long int works around a bug in the HP C Compiler
6003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6005 # This bug is HP SR number 8606223364.
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6007 $as_echo_n "checking size of __int64... " >&6; }
6008 if test "${ac_cv_sizeof___int64+set}" = set; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6013 else
6014 if test "$ac_cv_type___int64" = yes; then
6015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6017 { as_fn_set_status 77
6018 as_fn_error "cannot compute sizeof (__int64)
6019 See \`config.log' for more details." "$LINENO" 5; }; }
6020 else
6021 ac_cv_sizeof___int64=0
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6027 $as_echo "$ac_cv_sizeof___int64" >&6; }
6031 cat >>confdefs.h <<_ACEOF
6032 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6033 _ACEOF
6038 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6039 case $ac_cv_c_int8_t in #(
6040 no|yes) ;; #(
6043 cat >>confdefs.h <<_ACEOF
6044 #define int8_t $ac_cv_c_int8_t
6045 _ACEOF
6047 esac
6049 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6050 case $ac_cv_c_int16_t in #(
6051 no|yes) ;; #(
6054 cat >>confdefs.h <<_ACEOF
6055 #define int16_t $ac_cv_c_int16_t
6056 _ACEOF
6058 esac
6060 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6061 case $ac_cv_c_int32_t in #(
6062 no|yes) ;; #(
6065 cat >>confdefs.h <<_ACEOF
6066 #define int32_t $ac_cv_c_int32_t
6067 _ACEOF
6069 esac
6071 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6072 case $ac_cv_c_int64_t in #(
6073 no|yes) ;; #(
6076 cat >>confdefs.h <<_ACEOF
6077 #define int64_t $ac_cv_c_int64_t
6078 _ACEOF
6080 esac
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6084 $as_echo_n "checking for long long int... " >&6; }
6085 if test "${ac_cv_type_long_long_int+set}" = set; then :
6086 $as_echo_n "(cached) " >&6
6087 else
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6091 /* For now, do not test the preprocessor; as of 2007 there are too many
6092 implementations with broken preprocessors. Perhaps this can
6093 be revisited in 2012. In the meantime, code should not expect
6094 #if to work with literals wider than 32 bits. */
6095 /* Test literals. */
6096 long long int ll = 9223372036854775807ll;
6097 long long int nll = -9223372036854775807LL;
6098 unsigned long long int ull = 18446744073709551615ULL;
6099 /* Test constant expressions. */
6100 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6101 ? 1 : -1)];
6102 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6103 ? 1 : -1)];
6104 int i = 63;
6106 main ()
6108 /* Test availability of runtime routines for shift and division. */
6109 long long int llmax = 9223372036854775807ll;
6110 unsigned long long int ullmax = 18446744073709551615ull;
6111 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6112 | (llmax / ll) | (llmax % ll)
6113 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6114 | (ullmax / ull) | (ullmax % ull));
6116 return 0;
6119 _ACEOF
6120 if ac_fn_c_try_link "$LINENO"; then :
6121 if test "$cross_compiling" = yes; then :
6122 ac_cv_type_long_long_int=yes
6123 else
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 #include <limits.h>
6127 #ifndef LLONG_MAX
6128 # define HALF \
6129 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6130 # define LLONG_MAX (HALF - 1 + HALF)
6131 #endif
6133 main ()
6135 long long int n = 1;
6136 int i;
6137 for (i = 0; ; i++)
6139 long long int m = n << i;
6140 if (m >> i != n)
6141 return 1;
6142 if (LLONG_MAX / 2 < m)
6143 break;
6145 return 0;
6147 return 0;
6149 _ACEOF
6150 if ac_fn_c_try_run "$LINENO"; then :
6151 ac_cv_type_long_long_int=yes
6152 else
6153 ac_cv_type_long_long_int=no
6155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6156 conftest.$ac_objext conftest.beam conftest.$ac_ext
6159 else
6160 ac_cv_type_long_long_int=no
6162 rm -f core conftest.err conftest.$ac_objext \
6163 conftest$ac_exeext conftest.$ac_ext
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6166 $as_echo "$ac_cv_type_long_long_int" >&6; }
6167 if test $ac_cv_type_long_long_int = yes; then
6169 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6175 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6176 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6178 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6180 else
6181 test $ac_cv_type_long_long_int = yes \
6182 && ac_type='long long int' \
6183 || ac_type='long int'
6185 cat >>confdefs.h <<_ACEOF
6186 #define intmax_t $ac_type
6187 _ACEOF
6193 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6194 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6196 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6198 else
6199 for ac_type in 'int' 'long int' 'long long int'; do
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 $ac_includes_default
6204 main ()
6206 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6207 test_array [0] = 0
6210 return 0;
6212 _ACEOF
6213 if ac_fn_c_try_compile "$LINENO"; then :
6215 cat >>confdefs.h <<_ACEOF
6216 #define intptr_t $ac_type
6217 _ACEOF
6219 ac_type=
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 test -z "$ac_type" && break
6223 done
6227 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6228 case $ac_cv_c_uint8_t in #(
6229 no|yes) ;; #(
6232 $as_echo "#define _UINT8_T 1" >>confdefs.h
6235 cat >>confdefs.h <<_ACEOF
6236 #define uint8_t $ac_cv_c_uint8_t
6237 _ACEOF
6239 esac
6241 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6242 case $ac_cv_c_uint16_t in #(
6243 no|yes) ;; #(
6247 cat >>confdefs.h <<_ACEOF
6248 #define uint16_t $ac_cv_c_uint16_t
6249 _ACEOF
6251 esac
6253 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6254 case $ac_cv_c_uint32_t in #(
6255 no|yes) ;; #(
6258 $as_echo "#define _UINT32_T 1" >>confdefs.h
6261 cat >>confdefs.h <<_ACEOF
6262 #define uint32_t $ac_cv_c_uint32_t
6263 _ACEOF
6265 esac
6267 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6268 case $ac_cv_c_uint64_t in #(
6269 no|yes) ;; #(
6272 $as_echo "#define _UINT64_T 1" >>confdefs.h
6275 cat >>confdefs.h <<_ACEOF
6276 #define uint64_t $ac_cv_c_uint64_t
6277 _ACEOF
6279 esac
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6283 $as_echo_n "checking for unsigned long long int... " >&6; }
6284 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6290 /* For now, do not test the preprocessor; as of 2007 there are too many
6291 implementations with broken preprocessors. Perhaps this can
6292 be revisited in 2012. In the meantime, code should not expect
6293 #if to work with literals wider than 32 bits. */
6294 /* Test literals. */
6295 long long int ll = 9223372036854775807ll;
6296 long long int nll = -9223372036854775807LL;
6297 unsigned long long int ull = 18446744073709551615ULL;
6298 /* Test constant expressions. */
6299 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6300 ? 1 : -1)];
6301 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6302 ? 1 : -1)];
6303 int i = 63;
6305 main ()
6307 /* Test availability of runtime routines for shift and division. */
6308 long long int llmax = 9223372036854775807ll;
6309 unsigned long long int ullmax = 18446744073709551615ull;
6310 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6311 | (llmax / ll) | (llmax % ll)
6312 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6313 | (ullmax / ull) | (ullmax % ull));
6315 return 0;
6318 _ACEOF
6319 if ac_fn_c_try_link "$LINENO"; then :
6320 ac_cv_type_unsigned_long_long_int=yes
6321 else
6322 ac_cv_type_unsigned_long_long_int=no
6324 rm -f core conftest.err conftest.$ac_objext \
6325 conftest$ac_exeext conftest.$ac_ext
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6328 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6329 if test $ac_cv_type_unsigned_long_long_int = yes; then
6331 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6337 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6338 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6340 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6342 else
6343 test $ac_cv_type_unsigned_long_long_int = yes \
6344 && ac_type='unsigned long long int' \
6345 || ac_type='unsigned long int'
6347 cat >>confdefs.h <<_ACEOF
6348 #define uintmax_t $ac_type
6349 _ACEOF
6355 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6356 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6358 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6360 else
6361 for ac_type in 'unsigned int' 'unsigned long int' \
6362 'unsigned long long int'; do
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365 $ac_includes_default
6367 main ()
6369 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6370 test_array [0] = 0
6373 return 0;
6375 _ACEOF
6376 if ac_fn_c_try_compile "$LINENO"; then :
6378 cat >>confdefs.h <<_ACEOF
6379 #define uintptr_t $ac_type
6380 _ACEOF
6382 ac_type=
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 test -z "$ac_type" && break
6386 done
6403 # ---------------------
6404 # Warnings and checking
6405 # ---------------------
6407 # Check $CC warning features (if it's GCC).
6408 # We want to use -pedantic, but we don't want warnings about
6409 # * 'long long'
6410 # * variadic macros
6411 # * overlong strings
6412 # * C++11 narrowing conversions in { }
6413 # So, we only use -pedantic if we can disable those warnings.
6415 loose_warn=
6416 save_CFLAGS="$CFLAGS"
6417 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6418 # Do the check with the no- prefix removed since gcc silently
6419 # accepts any -Wno-* option on purpose
6420 case $real_option in
6421 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6422 *) option=$real_option ;;
6423 esac
6424 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6427 $as_echo_n "checking whether $CC supports $option... " >&6; }
6428 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 CFLAGS="$option"
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6436 main ()
6440 return 0;
6442 _ACEOF
6443 if ac_fn_c_try_compile "$LINENO"; then :
6444 eval "$as_acx_Woption=yes"
6445 else
6446 eval "$as_acx_Woption=no"
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 eval ac_res=\$$as_acx_Woption
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6453 $as_echo "$ac_res" >&6; }
6454 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6455 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6457 done
6458 CFLAGS="$save_CFLAGS"
6460 c_loose_warn=
6461 save_CFLAGS="$CFLAGS"
6462 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6463 # Do the check with the no- prefix removed since gcc silently
6464 # accepts any -Wno-* option on purpose
6465 case $real_option in
6466 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6467 *) option=$real_option ;;
6468 esac
6469 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6472 $as_echo_n "checking whether $CC supports $option... " >&6; }
6473 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 CFLAGS="$option"
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6481 main ()
6485 return 0;
6487 _ACEOF
6488 if ac_fn_c_try_compile "$LINENO"; then :
6489 eval "$as_acx_Woption=yes"
6490 else
6491 eval "$as_acx_Woption=no"
6493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496 eval ac_res=\$$as_acx_Woption
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6498 $as_echo "$ac_res" >&6; }
6499 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6500 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6502 done
6503 CFLAGS="$save_CFLAGS"
6505 strict_warn=
6506 save_CFLAGS="$CFLAGS"
6507 for real_option in -Wmissing-format-attribute; do
6508 # Do the check with the no- prefix removed since gcc silently
6509 # accepts any -Wno-* option on purpose
6510 case $real_option in
6511 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6512 *) option=$real_option ;;
6513 esac
6514 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6517 $as_echo_n "checking whether $CC supports $option... " >&6; }
6518 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 CFLAGS="$option"
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6526 main ()
6530 return 0;
6532 _ACEOF
6533 if ac_fn_c_try_compile "$LINENO"; then :
6534 eval "$as_acx_Woption=yes"
6535 else
6536 eval "$as_acx_Woption=no"
6538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 eval ac_res=\$$as_acx_Woption
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6543 $as_echo "$ac_res" >&6; }
6544 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6545 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6547 done
6548 CFLAGS="$save_CFLAGS"
6550 c_strict_warn=
6551 save_CFLAGS="$CFLAGS"
6552 for real_option in -Wold-style-definition -Wc++-compat; do
6553 # Do the check with the no- prefix removed since gcc silently
6554 # accepts any -Wno-* option on purpose
6555 case $real_option in
6556 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6557 *) option=$real_option ;;
6558 esac
6559 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6562 $as_echo_n "checking whether $CC supports $option... " >&6; }
6563 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 CFLAGS="$option"
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6571 main ()
6575 return 0;
6577 _ACEOF
6578 if ac_fn_c_try_compile "$LINENO"; then :
6579 eval "$as_acx_Woption=yes"
6580 else
6581 eval "$as_acx_Woption=no"
6583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586 eval ac_res=\$$as_acx_Woption
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6588 $as_echo "$ac_res" >&6; }
6589 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6590 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6592 done
6593 CFLAGS="$save_CFLAGS"
6595 # Do the check with the no- prefix removed from the warning options
6596 # since gcc silently accepts any -Wno-* option on purpose
6597 if test "$GCC" = yes; then :
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6599 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6600 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 save_CFLAGS="$CFLAGS"
6604 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6609 main ()
6613 return 0;
6615 _ACEOF
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6618 else
6619 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 CFLAGS="$save_CFLAGS"
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6625 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6626 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6627 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6632 # Check whether --enable-werror-always was given.
6633 if test "${enable_werror_always+set}" = set; then :
6634 enableval=$enable_werror_always;
6635 else
6636 enable_werror_always=no
6639 if test $enable_werror_always = yes; then :
6640 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6645 # The above macros do nothing if the compiler is not GCC. However, the
6646 # Makefile has more goo to add other flags, so these variables are used
6647 # to enable warnings only for GCC.
6648 warn_cflags=
6649 warn_cxxflags=
6650 if test "x$GCC" = "xyes"; then
6651 warn_cflags='$(GCC_WARN_CFLAGS)'
6652 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6657 # Disable exceptions and RTTI if building with g++
6658 noexception_flags=
6659 save_CFLAGS="$CFLAGS"
6660 for real_option in -fno-exceptions -fno-rtti; do
6661 # Do the check with the no- prefix removed since gcc silently
6662 # accepts any -Wno-* option on purpose
6663 case $real_option in
6664 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6665 *) option=$real_option ;;
6666 esac
6667 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6670 $as_echo_n "checking whether $CC supports $option... " >&6; }
6671 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 CFLAGS="$option"
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6679 main ()
6683 return 0;
6685 _ACEOF
6686 if ac_fn_c_try_compile "$LINENO"; then :
6687 eval "$as_acx_Woption=yes"
6688 else
6689 eval "$as_acx_Woption=no"
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 eval ac_res=\$$as_acx_Woption
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6696 $as_echo "$ac_res" >&6; }
6697 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6698 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6700 done
6701 CFLAGS="$save_CFLAGS"
6704 # Enable expensive internal checks
6705 is_release=
6706 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6707 is_release=yes
6710 # Check whether --enable-checking was given.
6711 if test "${enable_checking+set}" = set; then :
6712 enableval=$enable_checking; ac_checking_flags="${enableval}"
6713 else
6715 # Determine the default checks.
6716 if test x$is_release = x ; then
6717 ac_checking_flags=yes
6718 else
6719 ac_checking_flags=release
6723 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6724 for check in release $ac_checking_flags
6726 case $check in
6727 # these set all the flags to specific states
6728 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6729 ac_fold_checking= ; ac_gc_checking=1 ;
6730 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6731 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6732 ac_tree_checking=1 ; ac_valgrind_checking= ;
6733 ac_types_checking=1 ;;
6734 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6735 ac_fold_checking= ; ac_gc_checking= ;
6736 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6737 ac_rtlflag_checking= ; ac_runtime_checking= ;
6738 ac_tree_checking= ; ac_valgrind_checking= ;
6739 ac_types_checking= ;;
6740 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6741 ac_fold_checking=1 ; ac_gc_checking=1 ;
6742 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6743 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6744 ac_tree_checking=1 ; ac_valgrind_checking= ;
6745 ac_types_checking=1 ;;
6746 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6747 ac_fold_checking= ; ac_gc_checking= ;
6748 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6749 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6750 ac_tree_checking= ; ac_valgrind_checking= ;
6751 ac_types_checking= ;;
6752 # these enable particular checks
6753 assert) ac_assert_checking=1 ;;
6754 df) ac_df_checking=1 ;;
6755 fold) ac_fold_checking=1 ;;
6756 gc) ac_gc_checking=1 ;;
6757 gcac) ac_gc_always_collect=1 ;;
6758 gimple) ac_gimple_checking=1 ;;
6759 misc) ac_checking=1 ;;
6760 rtl) ac_rtl_checking=1 ;;
6761 rtlflag) ac_rtlflag_checking=1 ;;
6762 runtime) ac_runtime_checking=1 ;;
6763 tree) ac_tree_checking=1 ;;
6764 types) ac_types_checking=1 ;;
6765 valgrind) ac_valgrind_checking=1 ;;
6766 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6767 esac
6768 done
6769 IFS="$ac_save_IFS"
6771 nocommon_flag=""
6772 if test x$ac_checking != x ; then
6774 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6776 nocommon_flag=-fno-common
6779 if test x$ac_df_checking != x ; then
6781 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6784 if test x$ac_assert_checking != x ; then
6786 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6789 if test x$ac_gimple_checking != x ; then
6791 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6795 if test x$ac_runtime_checking != x ; then
6797 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6800 if test x$ac_tree_checking != x ; then
6802 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6804 TREEBROWSER=tree-browser.o
6806 if test x$ac_types_checking != x ; then
6808 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6812 if test x$ac_rtl_checking != x ; then
6814 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6817 if test x$ac_rtlflag_checking != x ; then
6819 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6822 if test x$ac_gc_checking != x ; then
6824 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6827 if test x$ac_gc_always_collect != x ; then
6829 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6832 if test x$ac_fold_checking != x ; then
6834 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6837 valgrind_path_defines=
6838 valgrind_command=
6840 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6841 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6842 have_valgrind_h=yes
6843 else
6844 have_valgrind_h=no
6849 if test x$ac_valgrind_checking != x ; then
6850 # It is certainly possible that there's valgrind but no valgrind.h.
6851 # GCC relies on making annotations so we must have both.
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6853 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856 #include <valgrind/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_valgrind_memcheck_h=yes
6863 else
6864 gcc_cv_header_valgrind_memcheck_h=no
6866 rm -f conftest.err conftest.$ac_ext
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6868 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6870 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6873 #include <memcheck.h>
6874 #ifndef VALGRIND_DISCARD
6875 #error VALGRIND_DISCARD not defined
6876 #endif
6877 _ACEOF
6878 if ac_fn_c_try_cpp "$LINENO"; then :
6879 gcc_cv_header_memcheck_h=yes
6880 else
6881 gcc_cv_header_memcheck_h=no
6883 rm -f conftest.err conftest.$ac_ext
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6885 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6887 # Prepare PATH_SEPARATOR.
6888 # The user is always right.
6889 if test "${PATH_SEPARATOR+set}" != set; then
6890 echo "#! /bin/sh" >conf$$.sh
6891 echo "exit 0" >>conf$$.sh
6892 chmod +x conf$$.sh
6893 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6894 PATH_SEPARATOR=';'
6895 else
6896 PATH_SEPARATOR=:
6898 rm -f conf$$.sh
6901 # Find out how to test for executable files. Don't use a zero-byte file,
6902 # as systems may use methods other than mode bits to determine executability.
6903 cat >conf$$.file <<_ASEOF
6904 #! /bin/sh
6905 exit 0
6906 _ASEOF
6907 chmod +x conf$$.file
6908 if test -x conf$$.file >/dev/null 2>&1; then
6909 ac_executable_p="test -x"
6910 else
6911 ac_executable_p="test -f"
6913 rm -f conf$$.file
6915 # Extract the first word of "valgrind", so it can be a program name with args.
6916 set dummy valgrind; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 case "$valgrind_path" in
6923 [\\/]* | ?:[\\/]*)
6924 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6927 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6928 for ac_dir in $PATH; do
6929 IFS="$ac_save_IFS"
6930 test -z "$ac_dir" && ac_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6933 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6934 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6935 break 2
6938 done
6939 done
6940 IFS="$ac_save_IFS"
6942 esac
6944 valgrind_path="$ac_cv_path_valgrind_path"
6945 if test -n "$valgrind_path"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6947 $as_echo "$valgrind_path" >&6; }
6948 else
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 $as_echo "no" >&6; }
6953 if test "x$valgrind_path" = "x" \
6954 || (test $have_valgrind_h = no \
6955 && test $gcc_cv_header_memcheck_h = no \
6956 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6957 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6959 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6960 valgrind_command="$valgrind_path -q"
6962 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6964 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6966 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6969 if test $gcc_cv_header_memcheck_h = yes; then
6971 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6978 # Enable code coverage collection
6979 # Check whether --enable-coverage was given.
6980 if test "${enable_coverage+set}" = set; then :
6981 enableval=$enable_coverage; case "${enableval}" in
6982 yes|noopt)
6983 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6985 opt)
6986 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6989 # a.k.a. --disable-coverage
6990 coverage_flags=""
6993 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6995 esac
6996 else
6997 coverage_flags=""
7002 # Check whether --enable-gather-detailed-mem-stats was given.
7003 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7004 enableval=$enable_gather_detailed_mem_stats;
7005 else
7006 enable_gather_detailed_mem_stats=no
7009 if test x$enable_gather_detailed_mem_stats = xyes ; then
7011 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
7015 # -------------------------------
7016 # Miscenalleous configure options
7017 # -------------------------------
7019 # See if we are building gcc with C++.
7020 # Check whether --enable-build-with-cxx was given.
7021 if test "${enable_build_with_cxx+set}" = set; then :
7022 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
7023 else
7024 ENABLE_BUILD_WITH_CXX=no
7028 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
7030 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
7034 # With stabs
7036 # Check whether --with-stabs was given.
7037 if test "${with_stabs+set}" = set; then :
7038 withval=$with_stabs; stabs="$with_stabs"
7039 else
7040 stabs=no
7044 # Determine whether or not multilibs are enabled.
7045 # Check whether --enable-multilib was given.
7046 if test "${enable_multilib+set}" = set; then :
7047 enableval=$enable_multilib;
7048 else
7049 enable_multilib=yes
7054 # Enable __cxa_atexit for C++.
7055 # Check whether --enable-__cxa_atexit was given.
7056 if test "${enable___cxa_atexit+set}" = set; then :
7057 enableval=$enable___cxa_atexit;
7061 # Enable C extension for decimal float if target supports it.
7063 # Check whether --enable-decimal-float was given.
7064 if test "${enable_decimal_float+set}" = set; then :
7065 enableval=$enable_decimal_float;
7066 case $enable_decimal_float in
7067 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7068 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7069 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7070 esac
7072 else
7074 case $target in
7075 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7076 i?86*-*-mingw* | x86_64*-*-mingw* | \
7077 i?86*-*-cygwin*)
7078 enable_decimal_float=yes
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7082 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7083 enable_decimal_float=no
7085 esac
7090 # x86's use BID format instead of DPD
7091 case x$enable_decimal_float in
7092 xyes)
7093 case $target in
7094 i?86*-*-* | x86_64*-*-*)
7095 enable_decimal_float=bid
7098 enable_decimal_float=dpd
7100 esac
7101 default_decimal_float=$enable_decimal_float
7103 xno)
7104 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7105 # dependency on libdecnumber.
7106 default_decimal_float=dpd
7108 esac
7113 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7115 cat >>confdefs.h <<_ACEOF
7116 #define ENABLE_DECIMAL_FLOAT $dfp
7117 _ACEOF
7120 # Use default_decimal_float for dependency.
7121 enable_decimal_float=$default_decimal_float
7123 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7125 cat >>confdefs.h <<_ACEOF
7126 #define ENABLE_DECIMAL_BID_FORMAT $bid
7127 _ACEOF
7130 # Enable C extension for fixed-point arithmetic.
7131 # Check whether --enable-fixed-point was given.
7132 if test "${enable_fixed_point+set}" = set; then :
7133 enableval=$enable_fixed_point;
7134 else
7136 case $target in
7137 arm*)
7138 enable_fixed_point=yes
7141 mips*-*-*)
7142 enable_fixed_point=yes
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7146 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7147 enable_fixed_point=no
7149 esac
7155 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7157 cat >>confdefs.h <<_ACEOF
7158 #define ENABLE_FIXED_POINT $fixedpoint
7159 _ACEOF
7162 # Enable threads
7163 # Pass with no value to take the default
7164 # Pass with a value to specify a thread package
7165 # Check whether --enable-threads was given.
7166 if test "${enable_threads+set}" = set; then :
7167 enableval=$enable_threads;
7168 else
7169 enable_threads=''
7173 # Check whether --enable-tls was given.
7174 if test "${enable_tls+set}" = set; then :
7175 enableval=$enable_tls;
7176 case $enable_tls in
7177 yes | no) ;;
7178 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7179 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7180 esac
7182 else
7183 enable_tls=''
7187 # Check whether --enable-objc-gc was given.
7188 if test "${enable_objc_gc+set}" = set; then :
7189 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7190 objc_boehm_gc=''
7191 else
7192 objc_boehm_gc=1
7194 else
7195 objc_boehm_gc=''
7199 case ,${enable_languages}, in
7200 *,upc,) lang_upc_enabled="yes" ;;
7201 *) ;;
7202 esac
7205 # Check whether --with-upc-pts was given.
7206 if test "${with_upc_pts+set}" = set; then :
7207 withval=$with_upc_pts;
7208 if test x"$lang_upc_enabled" = x"yes" ; then
7209 case "$withval" in
7210 packed|struct) upc_pts_rep="$withval" ;;
7211 *) as_fn_error "$withval is an invalid option to --with-upc-pts" "$LINENO" 5
7213 esac
7214 else
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts is allowed only when UPC
7216 support has been enabled" >&5
7217 $as_echo "$as_me: WARNING: --with-upc-pts is allowed only when UPC
7218 support has been enabled" >&2;}
7221 else
7223 if test x"$lang_upc_enabled" = x"yes" ; then
7224 upc_pts_rep="packed"
7231 # Perl is required for checking pts representation
7232 # Extract the first word of "perl", so it can be a program name with args.
7233 set dummy perl; ac_word=$2
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 $as_echo_n "checking for $ac_word... " >&6; }
7236 if test "${ac_cv_prog_PERL+set}" = set; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 if test -n "$PERL"; then
7240 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7241 else
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7249 ac_cv_prog_PERL="perl"
7250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 break 2
7253 done
7254 done
7255 IFS=$as_save_IFS
7259 PERL=$ac_cv_prog_PERL
7260 if test -n "$PERL"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7262 $as_echo "$PERL" >&6; }
7263 else
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 $as_echo "no" >&6; }
7271 # Check whether --with-upc-pts-vaddr-order was given.
7272 if test "${with_upc_pts_vaddr_order+set}" = set; then :
7273 withval=$with_upc_pts_vaddr_order;
7274 if test x"$lang_upc_enabled" = x"yes" ; then
7275 upc_vaddr_order="$withval"
7276 case "$upc_vaddr_order" in
7277 first|last) ;;
7278 *) as_fn_error "$withval is an invalid option to --with-upc-pts-vaddr-order" "$LINENO" 5 ;;
7279 esac
7280 else
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7282 support has been enabled" >&5
7283 $as_echo "$as_me: WARNING: --upc-pts-vaddr-order is allowed only when UPC
7284 support has been enabled" >&2;}
7287 else
7289 if test x"$lang_upc_enabled" = x"yes" ; then
7290 # Default UPC PTS vaddr order to "first"
7291 upc_vaddr_order="first"
7298 # Check whether --with-upc-packed-bits was given.
7299 if test "${with_upc_packed_bits+set}" = set; then :
7300 withval=$with_upc_packed_bits;
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-packed-bits is deprecated.
7302 Use --with-upc-pts-packed-bits instead." >&5
7303 $as_echo "$as_me: WARNING: --with-upc-packed-bits is deprecated.
7304 Use --with-upc-pts-packed-bits instead." >&2;}
7305 with_upc_pts_packed_bits="$withval";
7311 # Check whether --with-upc-pts-packed-bits was given.
7312 if test "${with_upc_pts_packed_bits+set}" = set; then :
7313 withval=$with_upc_pts_packed_bits;
7314 if test x"$lang_upc_enabled" = x"yes" ; then
7315 if test x"$upc_pts_rep" = x"packed"; then
7316 UPC_PTS_PHASE_SIZE=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7317 print $1 if ($1+$2+$3 == 64) && $1>=1;'`
7318 UPC_PTS_THREAD_SIZE=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7319 print $2 if ($1+$2+$3 == 64) && $2>=1;'`
7320 UPC_PTS_VADDR_SIZE=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7321 print $3 if ($1+$2+$3 == 64) && $3>=20;'`
7322 if test -z "$UPC_PTS_PHASE_SIZE" \
7323 || test -z "$UPC_PTS_THREAD_SIZE" \
7324 || test -z "$UPC_PTS_VADDR_SIZE" ; then
7325 as_fn_error "--with-upc-pts-packed-bits=phase,thread,vaddr requires
7326 phase+thread+vaddr=64 and phase >= 1 and thread >= 1 and vaddr >= 20" "$LINENO" 5
7328 else
7329 as_fn_error "--with-upc-pts-packed-bits is only supported for
7330 the packed UPC pointer-to-shared representation" "$LINENO" 5
7332 else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7334 support has been enabled" >&5
7335 $as_echo "$as_me: WARNING: --with-upc-pts-packed-bits is allowed only when UPC
7336 support has been enabled" >&2;}
7339 else
7341 if test x"$lang_upc_enabled" = x"yes" ; then
7342 # GNU UPC packed pointer representation defaults.
7343 case "$target" in
7344 i35686* )
7345 UPC_PTS_PHASE_SIZE=20
7346 UPC_PTS_THREAD_SIZE=12
7347 UPC_PTS_VADDR_SIZE=32
7350 UPC_PTS_PHASE_SIZE=20
7351 UPC_PTS_THREAD_SIZE=10
7352 UPC_PTS_VADDR_SIZE=34
7353 esac
7359 # Check whether --enable-upc-link-script was given.
7360 if test "${enable_upc_link_script+set}" = set; then :
7361 enableval=$enable_upc_link_script;
7362 if test x"$lang_upc_enabled" = x"yes" ; then
7363 case $enableval in
7364 yes | no) ;;
7366 as_fn_error "--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7367 esac
7368 else
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-upc-link-script is allowed only when UPC
7370 support has been enabled" >&5
7371 $as_echo "$as_me: WARNING: --enable-upc-link-script is allowed only when UPC
7372 support has been enabled" >&2;}
7375 else
7377 if test x"$lang_upc_enabled" = x"yes" ; then
7378 enable_upc_link_script=no
7384 if test x"$lang_upc_enabled" = x"yes" ; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared representation" >&5
7386 $as_echo_n "checking for UPC pointer-to-shared representation... " >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_pts_rep" >&5
7388 $as_echo "$upc_pts_rep" >&6; }
7389 case "$upc_pts_rep" in
7390 packed)
7392 $as_echo "#define HAVE_UPC_PTS_PACKED_REP 1" >>confdefs.h
7395 struct)
7397 $as_echo "#define HAVE_UPC_PTS_STRUCT_REP 1" >>confdefs.h
7400 esac
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared address field position" >&5
7402 $as_echo_n "checking for UPC pointer-to-shared address field position... " >&6; }
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_vaddr_order" >&5
7404 $as_echo "$upc_vaddr_order" >&6; }
7405 if test x"$upc_vaddr_order" = x"first"; then
7407 $as_echo "#define HAVE_UPC_PTS_VADDR_FIRST 1" >>confdefs.h
7410 if test x"$upc_pts_rep" = x"packed"; then
7412 cat >>confdefs.h <<_ACEOF
7413 #define UPC_PTS_PHASE_SIZE $UPC_PTS_PHASE_SIZE
7414 _ACEOF
7417 cat >>confdefs.h <<_ACEOF
7418 #define UPC_PTS_THREAD_SIZE $UPC_PTS_THREAD_SIZE
7419 _ACEOF
7422 cat >>confdefs.h <<_ACEOF
7423 #define UPC_PTS_VADDR_SIZE $UPC_PTS_VADDR_SIZE
7424 _ACEOF
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for packed UPC pointer-to-shared layout" >&5
7427 $as_echo_n "checking for packed UPC pointer-to-shared layout... " >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7429 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&5
7430 $as_echo "\"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7431 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&6; }
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7434 $as_echo_n "checking for UPC link script support... " >&6; }
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_link_script" >&5
7436 $as_echo "$enable_upc_link_script" >&6; }
7437 if test "$enable_upc_link_script" = yes; then
7439 $as_echo "#define HAVE_UPC_LINK_SCRIPT 1" >>confdefs.h
7445 # Check whether --with-dwarf2 was given.
7446 if test "${with_dwarf2+set}" = set; then :
7447 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7448 else
7449 dwarf2=no
7453 # Check whether --enable-shared was given.
7454 if test "${enable_shared+set}" = set; then :
7455 enableval=$enable_shared;
7456 case $enable_shared in
7457 yes | no) ;;
7459 enable_shared=no
7460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7461 for pkg in $enableval; do
7462 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7463 enable_shared=yes
7465 done
7466 IFS="$ac_save_ifs"
7468 esac
7470 else
7471 enable_shared=yes
7477 # Check whether --with-native-system-header-dir was given.
7478 if test "${with_native_system_header_dir+set}" = set; then :
7479 withval=$with_native_system_header_dir;
7480 case ${with_native_system_header_dir} in
7481 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7482 /* | [A-Za-z]:[\\/]*) ;;
7483 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7484 esac
7485 configured_native_system_header_dir="${withval}"
7487 else
7488 configured_native_system_header_dir=
7493 # Check whether --with-build-sysroot was given.
7494 if test "${with_build_sysroot+set}" = set; then :
7495 withval=$with_build_sysroot; if test x"$withval" != x ; then
7496 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7498 else
7499 SYSROOT_CFLAGS_FOR_TARGET=
7505 # Check whether --with-sysroot was given.
7506 if test "${with_sysroot+set}" = set; then :
7507 withval=$with_sysroot;
7508 case ${with_sysroot} in
7509 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7510 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7511 esac
7513 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7514 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7516 if test "x$prefix" = xNONE; then
7517 test_prefix=/usr/local
7518 else
7519 test_prefix=$prefix
7521 if test "x$exec_prefix" = xNONE; then
7522 test_exec_prefix=$test_prefix
7523 else
7524 test_exec_prefix=$exec_prefix
7526 case ${TARGET_SYSTEM_ROOT} in
7527 "${test_prefix}"|"${test_prefix}/"*|\
7528 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7529 '${prefix}'|'${prefix}/'*|\
7530 '${exec_prefix}'|'${exec_prefix}/'*)
7531 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7532 TARGET_SYSTEM_ROOT_DEFINE="$t"
7534 esac
7536 else
7538 TARGET_SYSTEM_ROOT=
7539 TARGET_SYSTEM_ROOT_DEFINE=
7540 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7549 # Check whether --with-specs was given.
7550 if test "${with_specs+set}" = set; then :
7551 withval=$with_specs; CONFIGURE_SPECS=$withval
7552 else
7553 CONFIGURE_SPECS=
7561 # Check whether --with-pkgversion was given.
7562 if test "${with_pkgversion+set}" = set; then :
7563 withval=$with_pkgversion; case "$withval" in
7564 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7565 no) PKGVERSION= ;;
7566 *) PKGVERSION="($withval) " ;;
7567 esac
7568 else
7569 PKGVERSION="(GCC) "
7577 # Check whether --with-bugurl was given.
7578 if test "${with_bugurl+set}" = set; then :
7579 withval=$with_bugurl; case "$withval" in
7580 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7581 no) BUGURL=
7583 *) BUGURL="$withval"
7585 esac
7586 else
7587 BUGURL="http://gccupc.org/bugs"
7591 case ${BUGURL} in
7593 REPORT_BUGS_TO=
7594 REPORT_BUGS_TEXI=
7597 REPORT_BUGS_TO="<$BUGURL>"
7598 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7600 esac;
7605 # Sanity check enable_languages in case someone does not run the toplevel
7606 # configure # script.
7607 # Check whether --enable-languages was given.
7608 if test "${enable_languages+set}" = set; then :
7609 enableval=$enable_languages; case ,${enable_languages}, in
7610 ,,|,yes,)
7611 # go safe -- we cannot be much sure without the toplevel
7612 # configure's
7613 # analysis of which target libs are present and usable
7614 enable_languages=c
7616 *,all,*)
7617 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7619 *,c,*)
7622 enable_languages=c,${enable_languages}
7624 esac
7625 else
7626 enable_languages=c
7631 # Check whether --with-multilib-list was given.
7632 if test "${with_multilib_list+set}" = set; then :
7633 withval=$with_multilib_list; :
7634 else
7635 with_multilib_list=default
7639 # -------------------------
7640 # Checks for other programs
7641 # -------------------------
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7644 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7645 set x ${MAKE-make}
7646 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7647 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 cat >conftest.make <<\_ACEOF
7651 SHELL = /bin/sh
7652 all:
7653 @echo '@@@%%%=$(MAKE)=@@@%%%'
7654 _ACEOF
7655 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7656 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7657 *@@@%%%=?*=@@@%%%*)
7658 eval ac_cv_prog_make_${ac_make}_set=yes;;
7660 eval ac_cv_prog_make_${ac_make}_set=no;;
7661 esac
7662 rm -f conftest.make
7664 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7666 $as_echo "yes" >&6; }
7667 SET_MAKE=
7668 else
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7671 SET_MAKE="MAKE=${MAKE-make}"
7675 # Find some useful tools
7676 for ac_prog in gawk mawk nawk awk
7678 # Extract the first word of "$ac_prog", so it can be a program name with args.
7679 set dummy $ac_prog; ac_word=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if test "${ac_cv_prog_AWK+set}" = set; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 if test -n "$AWK"; then
7686 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7687 else
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7695 ac_cv_prog_AWK="$ac_prog"
7696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 break 2
7699 done
7700 done
7701 IFS=$as_save_IFS
7705 AWK=$ac_cv_prog_AWK
7706 if test -n "$AWK"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7708 $as_echo "$AWK" >&6; }
7709 else
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7715 test -n "$AWK" && break
7716 done
7718 # We need awk to create options.c and options.h.
7719 # Bail out if it's missing.
7720 case ${AWK} in
7721 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7722 esac
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7725 $as_echo_n "checking whether ln -s works... " >&6; }
7726 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7729 rm -f conftestdata_t
7730 echo >conftestdata_f
7731 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7732 then
7733 gcc_cv_prog_LN_S="ln -s"
7734 else
7735 if ln conftestdata_f conftestdata_t 2>/dev/null
7736 then
7737 gcc_cv_prog_LN_S=ln
7738 else
7739 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7740 then
7741 gcc_cv_prog_LN_S="cp -p"
7742 else
7743 gcc_cv_prog_LN_S=cp
7747 rm -f conftestdata_f conftestdata_t
7750 LN_S="$gcc_cv_prog_LN_S"
7751 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7753 $as_echo "yes" >&6; }
7754 else
7755 if test "$gcc_cv_prog_LN_S" = "ln"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7757 $as_echo "no, using ln" >&6; }
7758 else
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7760 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7765 $as_echo_n "checking whether ln works... " >&6; }
7766 if test "${acx_cv_prog_LN+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769 rm -f conftestdata_t
7770 echo >conftestdata_f
7771 if ln conftestdata_f conftestdata_t 2>/dev/null
7772 then
7773 acx_cv_prog_LN=ln
7774 else
7775 acx_cv_prog_LN=no
7777 rm -f conftestdata_f conftestdata_t
7780 if test $acx_cv_prog_LN = no; then
7781 LN="$LN_S"
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7783 $as_echo "no, using $LN" >&6; }
7784 else
7785 LN="$acx_cv_prog_LN"
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7787 $as_echo "yes" >&6; }
7790 if test -n "$ac_tool_prefix"; then
7791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 if test -n "$RANLIB"; then
7799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7812 done
7813 done
7814 IFS=$as_save_IFS
7818 RANLIB=$ac_cv_prog_RANLIB
7819 if test -n "$RANLIB"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7821 $as_echo "$RANLIB" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7829 if test -z "$ac_cv_prog_RANLIB"; then
7830 ac_ct_RANLIB=$RANLIB
7831 # Extract the first word of "ranlib", so it can be a program name with args.
7832 set dummy ranlib; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 if test -n "$ac_ct_RANLIB"; then
7839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7840 else
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7848 ac_cv_prog_ac_ct_RANLIB="ranlib"
7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7852 done
7853 done
7854 IFS=$as_save_IFS
7858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7859 if test -n "$ac_ct_RANLIB"; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7861 $as_echo "$ac_ct_RANLIB" >&6; }
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7867 if test "x$ac_ct_RANLIB" = x; then
7868 RANLIB=":"
7869 else
7870 case $cross_compiling:$ac_tool_warned in
7871 yes:)
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7874 ac_tool_warned=yes ;;
7875 esac
7876 RANLIB=$ac_ct_RANLIB
7878 else
7879 RANLIB="$ac_cv_prog_RANLIB"
7882 ranlib_flags=""
7885 # Find a good install program. We prefer a C program (faster),
7886 # so one script is as good as another. But avoid the broken or
7887 # incompatible versions:
7888 # SysV /etc/install, /usr/sbin/install
7889 # SunOS /usr/etc/install
7890 # IRIX /sbin/install
7891 # AIX /bin/install
7892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7894 # ./install, which can be erroneously created by make from ./install.sh.
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7896 $as_echo_n "checking for a BSD compatible install... " >&6; }
7897 if test -z "$INSTALL"; then
7898 if test "${ac_cv_path_install+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
7900 else
7901 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7902 for ac_dir in $PATH; do
7903 # Account for people who put trailing slashes in PATH elements.
7904 case "$ac_dir/" in
7905 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7907 # OSF1 and SCO ODT 3.0 have their own names for install.
7908 for ac_prog in ginstall scoinst install; do
7909 if test -f $ac_dir/$ac_prog; then
7910 if test $ac_prog = install &&
7911 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7912 # AIX install. It has an incompatible calling convention.
7913 # OSF/1 installbsd also uses dspmsg, but is usable.
7915 else
7916 ac_cv_path_install="$ac_dir/$ac_prog -c"
7917 break 2
7920 done
7922 esac
7923 done
7924 IFS="$ac_save_IFS"
7927 if test "${ac_cv_path_install+set}" = set; then
7928 INSTALL="$ac_cv_path_install"
7929 else
7930 # As a last resort, use the slow shell script. We don't cache a
7931 # path for INSTALL within a source directory, because that will
7932 # break other packages using the cache if that directory is
7933 # removed, or if the path is relative.
7934 INSTALL="$ac_install_sh"
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7938 $as_echo "$INSTALL" >&6; }
7940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7941 # It thinks the first close brace ends the variable substitution.
7942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7944 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7947 # See if cmp has --ignore-initial.
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7949 $as_echo_n "checking for cmp's capabilities... " >&6; }
7950 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 echo abfoo >t1
7954 echo cdfoo >t2
7955 gcc_cv_prog_cmp_skip=slowcompare
7956 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7957 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7959 else
7960 gcc_cv_prog_cmp_skip=gnucompare
7963 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7964 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7965 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7967 else
7968 gcc_cv_prog_cmp_skip=fastcompare
7972 rm t1 t2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7976 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7977 make_compare_target=$gcc_cv_prog_cmp_skip
7981 # See if we have the mktemp command.
7982 # Extract the first word of "mktemp", so it can be a program name with args.
7983 set dummy mktemp; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 if test -n "$have_mktemp_command"; then
7990 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7991 else
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_prog_have_mktemp_command="yes"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8003 done
8004 done
8005 IFS=$as_save_IFS
8007 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8010 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8011 if test -n "$have_mktemp_command"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8013 $as_echo "$have_mktemp_command" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8021 # See if makeinfo has been installed and is modern enough
8022 # that we can use it.
8024 # Extract the first word of "makeinfo", so it can be a program name with args.
8025 set dummy makeinfo; ac_word=$2
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027 $as_echo_n "checking for $ac_word... " >&6; }
8028 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8029 $as_echo_n "(cached) " >&6
8030 else
8031 if test -n "$MAKEINFO"; then
8032 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8033 else
8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035 for as_dir in $PATH
8037 IFS=$as_save_IFS
8038 test -z "$as_dir" && as_dir=.
8039 for ac_exec_ext in '' $ac_executable_extensions; do
8040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8041 ac_cv_prog_MAKEINFO="makeinfo"
8042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8043 break 2
8045 done
8046 done
8047 IFS=$as_save_IFS
8051 MAKEINFO=$ac_cv_prog_MAKEINFO
8052 if test -n "$MAKEINFO"; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8054 $as_echo "$MAKEINFO" >&6; }
8055 else
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 $as_echo "no" >&6; }
8061 if test -n "$MAKEINFO"; then
8062 # Found it, now check the version.
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8064 $as_echo_n "checking for modern makeinfo... " >&6; }
8065 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8068 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8069 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8071 case $ac_prog_version in
8072 '') gcc_cv_prog_makeinfo_modern=no;;
8073 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8074 *) gcc_cv_prog_makeinfo_modern=no;;
8075 esac
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8079 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8080 else
8081 gcc_cv_prog_makeinfo_modern=no
8083 if test $gcc_cv_prog_makeinfo_modern = no; then
8084 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8087 if test $gcc_cv_prog_makeinfo_modern = no; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8089 *** Makeinfo is missing or too old.
8090 *** Info documentation will not be built." >&5
8091 $as_echo "$as_me: WARNING:
8092 *** Makeinfo is missing or too old.
8093 *** Info documentation will not be built." >&2;}
8094 BUILD_INFO=
8095 else
8096 BUILD_INFO=info
8100 # Is pod2man recent enough to regenerate manpages?
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8102 $as_echo_n "checking for recent Pod::Man... " >&6; }
8103 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8105 $as_echo "yes" >&6; }
8106 GENERATED_MANPAGES=generated-manpages
8107 else
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8110 GENERATED_MANPAGES=
8114 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8116 # How about lex?
8117 for ac_prog in flex
8119 # Extract the first word of "$ac_prog", so it can be a program name with args.
8120 set dummy $ac_prog; ac_word=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if test "${ac_cv_prog_FLEX+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
8125 else
8126 if test -n "$FLEX"; then
8127 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8136 ac_cv_prog_FLEX="$ac_prog"
8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 break 2
8140 done
8141 done
8142 IFS=$as_save_IFS
8146 FLEX=$ac_cv_prog_FLEX
8147 if test -n "$FLEX"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8149 $as_echo "$FLEX" >&6; }
8150 else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8156 test -n "$FLEX" && break
8157 done
8158 test -n "$FLEX" || FLEX="$MISSING flex"
8161 # Bison?
8162 for ac_prog in bison
8164 # Extract the first word of "$ac_prog", so it can be a program name with args.
8165 set dummy $ac_prog; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if test "${ac_cv_prog_BISON+set}" = set; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 if test -n "$BISON"; then
8172 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8173 else
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 for as_dir in $PATH
8177 IFS=$as_save_IFS
8178 test -z "$as_dir" && as_dir=.
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181 ac_cv_prog_BISON="$ac_prog"
8182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8183 break 2
8185 done
8186 done
8187 IFS=$as_save_IFS
8191 BISON=$ac_cv_prog_BISON
8192 if test -n "$BISON"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8194 $as_echo "$BISON" >&6; }
8195 else
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8201 test -n "$BISON" && break
8202 done
8203 test -n "$BISON" || BISON="$MISSING bison"
8206 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8207 # check for build == host before using them.
8209 # NM
8210 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8211 && test -d ../binutils ; then
8212 NM='${objdir}/../binutils/nm-new'
8213 else
8214 # Extract the first word of "nm", so it can be a program name with args.
8215 set dummy nm; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if test "${ac_cv_prog_NM+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 if test -n "$NM"; then
8222 ac_cv_prog_NM="$NM" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8231 ac_cv_prog_NM="nm"
8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 break 2
8235 done
8236 done
8237 IFS=$as_save_IFS
8239 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8242 NM=$ac_cv_prog_NM
8243 if test -n "$NM"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8245 $as_echo "$NM" >&6; }
8246 else
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8254 # AR
8255 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8256 && test -d ../binutils ; then
8257 AR='${objdir}/../binutils/ar'
8258 else
8259 # Extract the first word of "ar", so it can be a program name with args.
8260 set dummy ar; ac_word=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 $as_echo_n "checking for $ac_word... " >&6; }
8263 if test "${ac_cv_prog_AR+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 if test -n "$AR"; then
8267 ac_cv_prog_AR="$AR" # Let the user override the test.
8268 else
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8276 ac_cv_prog_AR="ar"
8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 break 2
8280 done
8281 done
8282 IFS=$as_save_IFS
8284 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8287 AR=$ac_cv_prog_AR
8288 if test -n "$AR"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8290 $as_echo "$AR" >&6; }
8291 else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8300 # --------------------
8301 # Checks for C headers
8302 # --------------------
8304 # Need to reject headers which give warnings, so that the -Werror bootstrap
8305 # works later. *sigh* This needs to come before all header checks.
8307 ac_c_preproc_warn_flag=yes
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8310 $as_echo_n "checking for ANSI C header files... " >&6; }
8311 if test "${ac_cv_header_stdc+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h. */
8316 #include <stdlib.h>
8317 #include <stdarg.h>
8318 #include <string.h>
8319 #include <float.h>
8322 main ()
8326 return 0;
8328 _ACEOF
8329 if ac_fn_c_try_compile "$LINENO"; then :
8330 ac_cv_header_stdc=yes
8331 else
8332 ac_cv_header_stdc=no
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336 if test $ac_cv_header_stdc = yes; then
8337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 #include <string.h>
8342 _ACEOF
8343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8344 $EGREP "memchr" >/dev/null 2>&1; then :
8346 else
8347 ac_cv_header_stdc=no
8349 rm -f conftest*
8353 if test $ac_cv_header_stdc = yes; then
8354 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357 #include <stdlib.h>
8359 _ACEOF
8360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8361 $EGREP "free" >/dev/null 2>&1; then :
8363 else
8364 ac_cv_header_stdc=no
8366 rm -f conftest*
8370 if test $ac_cv_header_stdc = yes; then
8371 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8372 if test "$cross_compiling" = yes; then :
8374 else
8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8377 #include <ctype.h>
8378 #include <stdlib.h>
8379 #if ((' ' & 0x0FF) == 0x020)
8380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8382 #else
8383 # define ISLOWER(c) \
8384 (('a' <= (c) && (c) <= 'i') \
8385 || ('j' <= (c) && (c) <= 'r') \
8386 || ('s' <= (c) && (c) <= 'z'))
8387 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8388 #endif
8390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8392 main ()
8394 int i;
8395 for (i = 0; i < 256; i++)
8396 if (XOR (islower (i), ISLOWER (i))
8397 || toupper (i) != TOUPPER (i))
8398 return 2;
8399 return 0;
8401 _ACEOF
8402 if ac_fn_c_try_run "$LINENO"; then :
8404 else
8405 ac_cv_header_stdc=no
8407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8408 conftest.$ac_objext conftest.beam conftest.$ac_ext
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8414 $as_echo "$ac_cv_header_stdc" >&6; }
8415 if test $ac_cv_header_stdc = yes; then
8417 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8422 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8423 if test "${ac_cv_header_time+set}" = set; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8428 #include <sys/types.h>
8429 #include <sys/time.h>
8430 #include <time.h>
8433 main ()
8435 if ((struct tm *) 0)
8436 return 0;
8438 return 0;
8440 _ACEOF
8441 if ac_fn_c_try_compile "$LINENO"; then :
8442 ac_cv_header_time=yes
8443 else
8444 ac_cv_header_time=no
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8449 $as_echo "$ac_cv_header_time" >&6; }
8450 if test $ac_cv_header_time = yes; then
8452 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8457 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8458 if test "${gcc_cv_header_string+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
8460 else
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8463 #include <string.h>
8464 #include <strings.h>
8466 main ()
8470 return 0;
8472 _ACEOF
8473 if ac_fn_c_try_compile "$LINENO"; then :
8474 gcc_cv_header_string=yes
8475 else
8476 gcc_cv_header_string=no
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8481 $as_echo "$gcc_cv_header_string" >&6; }
8482 if test $gcc_cv_header_string = yes; then
8484 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8489 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8490 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 #include <sys/types.h>
8496 #include <sys/wait.h>
8497 #ifndef WEXITSTATUS
8498 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8499 #endif
8500 #ifndef WIFEXITED
8501 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8502 #endif
8505 main ()
8507 int s;
8508 wait (&s);
8509 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8511 return 0;
8513 _ACEOF
8514 if ac_fn_c_try_compile "$LINENO"; then :
8515 ac_cv_header_sys_wait_h=yes
8516 else
8517 ac_cv_header_sys_wait_h=no
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8522 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8523 if test $ac_cv_header_sys_wait_h = yes; then
8525 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8529 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8530 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8531 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8532 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8533 do :
8534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8535 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8536 eval as_val=\$$as_ac_Header
8537 if test "x$as_val" = x""yes; then :
8538 cat >>confdefs.h <<_ACEOF
8539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8540 _ACEOF
8543 done
8546 # Check for thread headers.
8547 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8548 if test "x$ac_cv_header_thread_h" = x""yes; then :
8549 have_thread_h=yes
8550 else
8551 have_thread_h=
8554 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8555 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8556 have_pthread_h=yes
8557 else
8558 have_pthread_h=
8562 # These tests can't be done till we know if we have limits.h.
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8564 $as_echo_n "checking for CHAR_BIT... " >&6; }
8565 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8570 #ifdef HAVE_LIMITS_H
8571 #include <limits.h>
8572 #endif
8573 #ifdef CHAR_BIT
8574 found
8575 #endif
8576 _ACEOF
8577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8578 $EGREP "found" >/dev/null 2>&1; then :
8579 gcc_cv_decl_char_bit=yes
8580 else
8581 gcc_cv_decl_char_bit=no
8583 rm -f conftest*
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8588 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8589 if test $gcc_cv_decl_char_bit = no; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8591 $as_echo_n "checking number of bits in a byte... " >&6; }
8592 if test "${gcc_cv_c_nbby+set}" = set; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8596 gcc_cv_c_nbby=
8597 while test $i -lt 65; do
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8602 main ()
8604 switch(0) {
8605 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8606 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8609 return 0;
8611 _ACEOF
8612 if ac_fn_c_try_compile "$LINENO"; then :
8613 gcc_cv_c_nbby=$i; break
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 i=`expr $i + 1`
8617 done
8618 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8622 $as_echo "$gcc_cv_c_nbby" >&6; }
8623 if test $gcc_cv_c_nbby = failed; then
8624 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8625 else
8627 cat >>confdefs.h <<_ACEOF
8628 #define CHAR_BIT $gcc_cv_c_nbby
8629 _ACEOF
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8634 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8635 if test "${ac_cv_c_bigendian+set}" = set; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 ac_cv_c_bigendian=unknown
8639 # See if we're dealing with a universal compiler.
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 #ifndef __APPLE_CC__
8643 not a universal capable compiler
8644 #endif
8645 typedef int dummy;
8647 _ACEOF
8648 if ac_fn_c_try_compile "$LINENO"; then :
8650 # Check for potential -arch flags. It is not universal unless
8651 # there are at least two -arch flags with different values.
8652 ac_arch=
8653 ac_prev=
8654 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8655 if test -n "$ac_prev"; then
8656 case $ac_word in
8657 i?86 | x86_64 | ppc | ppc64)
8658 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8659 ac_arch=$ac_word
8660 else
8661 ac_cv_c_bigendian=universal
8662 break
8665 esac
8666 ac_prev=
8667 elif test "x$ac_word" = "x-arch"; then
8668 ac_prev=arch
8670 done
8672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673 if test $ac_cv_c_bigendian = unknown; then
8674 # See if sys/param.h defines the BYTE_ORDER macro.
8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8677 #include <sys/types.h>
8678 #include <sys/param.h>
8681 main ()
8683 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8684 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8685 && LITTLE_ENDIAN)
8686 bogus endian macros
8687 #endif
8690 return 0;
8692 _ACEOF
8693 if ac_fn_c_try_compile "$LINENO"; then :
8694 # It does; now see whether it defined to BIG_ENDIAN or not.
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697 #include <sys/types.h>
8698 #include <sys/param.h>
8701 main ()
8703 #if BYTE_ORDER != BIG_ENDIAN
8704 not big endian
8705 #endif
8708 return 0;
8710 _ACEOF
8711 if ac_fn_c_try_compile "$LINENO"; then :
8712 ac_cv_c_bigendian=yes
8713 else
8714 ac_cv_c_bigendian=no
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 if test $ac_cv_c_bigendian = unknown; then
8721 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8724 #include <limits.h>
8727 main ()
8729 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8730 bogus endian macros
8731 #endif
8734 return 0;
8736 _ACEOF
8737 if ac_fn_c_try_compile "$LINENO"; then :
8738 # It does; now see whether it defined to _BIG_ENDIAN or not.
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741 #include <limits.h>
8744 main ()
8746 #ifndef _BIG_ENDIAN
8747 not big endian
8748 #endif
8751 return 0;
8753 _ACEOF
8754 if ac_fn_c_try_compile "$LINENO"; then :
8755 ac_cv_c_bigendian=yes
8756 else
8757 ac_cv_c_bigendian=no
8759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8763 if test $ac_cv_c_bigendian = unknown; then
8764 # Compile a test program.
8765 if test "$cross_compiling" = yes; then :
8766 # Try to guess by grepping values from an object file.
8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8769 short int ascii_mm[] =
8770 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8771 short int ascii_ii[] =
8772 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8773 int use_ascii (int i) {
8774 return ascii_mm[i] + ascii_ii[i];
8776 short int ebcdic_ii[] =
8777 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8778 short int ebcdic_mm[] =
8779 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8780 int use_ebcdic (int i) {
8781 return ebcdic_mm[i] + ebcdic_ii[i];
8783 extern int foo;
8786 main ()
8788 return use_ascii (foo) == use_ebcdic (foo);
8790 return 0;
8792 _ACEOF
8793 if ac_fn_c_try_compile "$LINENO"; then :
8794 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8795 ac_cv_c_bigendian=yes
8797 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8798 if test "$ac_cv_c_bigendian" = unknown; then
8799 ac_cv_c_bigendian=no
8800 else
8801 # finding both strings is unlikely to happen, but who knows?
8802 ac_cv_c_bigendian=unknown
8806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807 else
8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8810 $ac_includes_default
8812 main ()
8815 /* Are we little or big endian? From Harbison&Steele. */
8816 union
8818 long int l;
8819 char c[sizeof (long int)];
8820 } u;
8821 u.l = 1;
8822 return u.c[sizeof (long int) - 1] == 1;
8825 return 0;
8827 _ACEOF
8828 if ac_fn_c_try_run "$LINENO"; then :
8829 ac_cv_c_bigendian=no
8830 else
8831 ac_cv_c_bigendian=yes
8833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8834 conftest.$ac_objext conftest.beam conftest.$ac_ext
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8840 $as_echo "$ac_cv_c_bigendian" >&6; }
8841 case $ac_cv_c_bigendian in #(
8842 yes)
8843 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8844 ;; #(
8846 ;; #(
8847 universal)
8849 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8851 ;; #(
8853 as_fn_error "unknown endianness
8854 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8855 esac
8858 # ----------------------
8859 # Checks for C++ headers
8860 # ----------------------
8862 ac_ext=cpp
8863 ac_cpp='$CXXCPP $CPPFLAGS'
8864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8868 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8869 if test -z "$CXXCPP"; then
8870 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 # Double quotes because CXXCPP needs to be expanded
8874 for CXXCPP in "$CXX -E" "/lib/cpp"
8876 ac_preproc_ok=false
8877 for ac_cxx_preproc_warn_flag in '' yes
8879 # Use a header file that comes with gcc, so configuring glibc
8880 # with a fresh cross-compiler works.
8881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8882 # <limits.h> exists even on freestanding compilers.
8883 # On the NeXT, cc -E runs the code through the compiler's parser,
8884 # not just through cpp. "Syntax error" is here to catch this case.
8885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886 /* end confdefs.h. */
8887 #ifdef __STDC__
8888 # include <limits.h>
8889 #else
8890 # include <assert.h>
8891 #endif
8892 Syntax error
8893 _ACEOF
8894 if ac_fn_cxx_try_cpp "$LINENO"; then :
8896 else
8897 # Broken: fails on valid input.
8898 continue
8900 rm -f conftest.err conftest.$ac_ext
8902 # OK, works on sane cases. Now check whether nonexistent headers
8903 # can be detected and how.
8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8906 #include <ac_nonexistent.h>
8907 _ACEOF
8908 if ac_fn_cxx_try_cpp "$LINENO"; then :
8909 # Broken: success on invalid input.
8910 continue
8911 else
8912 # Passes both tests.
8913 ac_preproc_ok=:
8914 break
8916 rm -f conftest.err conftest.$ac_ext
8918 done
8919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8920 rm -f conftest.err conftest.$ac_ext
8921 if $ac_preproc_ok; then :
8922 break
8925 done
8926 ac_cv_prog_CXXCPP=$CXXCPP
8929 CXXCPP=$ac_cv_prog_CXXCPP
8930 else
8931 ac_cv_prog_CXXCPP=$CXXCPP
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8934 $as_echo "$CXXCPP" >&6; }
8935 ac_preproc_ok=false
8936 for ac_cxx_preproc_warn_flag in '' yes
8938 # Use a header file that comes with gcc, so configuring glibc
8939 # with a fresh cross-compiler works.
8940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8941 # <limits.h> exists even on freestanding compilers.
8942 # On the NeXT, cc -E runs the code through the compiler's parser,
8943 # not just through cpp. "Syntax error" is here to catch this case.
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8946 #ifdef __STDC__
8947 # include <limits.h>
8948 #else
8949 # include <assert.h>
8950 #endif
8951 Syntax error
8952 _ACEOF
8953 if ac_fn_cxx_try_cpp "$LINENO"; then :
8955 else
8956 # Broken: fails on valid input.
8957 continue
8959 rm -f conftest.err conftest.$ac_ext
8961 # OK, works on sane cases. Now check whether nonexistent headers
8962 # can be detected and how.
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 #include <ac_nonexistent.h>
8966 _ACEOF
8967 if ac_fn_cxx_try_cpp "$LINENO"; then :
8968 # Broken: success on invalid input.
8969 continue
8970 else
8971 # Passes both tests.
8972 ac_preproc_ok=:
8973 break
8975 rm -f conftest.err conftest.$ac_ext
8977 done
8978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8979 rm -f conftest.err conftest.$ac_ext
8980 if $ac_preproc_ok; then :
8982 else
8983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8986 See \`config.log' for more details." >&5
8987 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8988 See \`config.log' for more details." >&2;}; }
8991 ac_ext=c
8992 ac_cpp='$CPP $CPPFLAGS'
8993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8998 ac_ext=cpp
8999 ac_cpp='$CXXCPP $CPPFLAGS'
9000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9007 for ac_header in unordered_map
9008 do :
9009 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9010 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9011 cat >>confdefs.h <<_ACEOF
9012 #define HAVE_UNORDERED_MAP 1
9013 _ACEOF
9016 done
9018 for ac_header in tr1/unordered_map
9019 do :
9020 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9021 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9022 cat >>confdefs.h <<_ACEOF
9023 #define HAVE_TR1_UNORDERED_MAP 1
9024 _ACEOF
9027 done
9029 for ac_header in ext/hash_map
9030 do :
9031 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9032 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9033 cat >>confdefs.h <<_ACEOF
9034 #define HAVE_EXT_HASH_MAP 1
9035 _ACEOF
9038 done
9041 ac_ext=c
9042 ac_cpp='$CPP $CPPFLAGS'
9043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9048 # --------
9049 # UNSORTED
9050 # --------
9053 # These libraries may be used by collect2.
9054 # We may need a special search path to get them linked.
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9056 $as_echo_n "checking for collect2 libraries... " >&6; }
9057 if test "${gcc_cv_collect2_libs+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 save_LIBS="$LIBS"
9061 for libs in '' -lld -lmld \
9062 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9063 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9065 LIBS="$libs"
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9069 /* Override any GCC internal prototype to avoid an error.
9070 Use char because int might match the return type of a GCC
9071 builtin and then its argument prototype would still apply. */
9072 #ifdef __cplusplus
9073 extern "C"
9074 #endif
9075 char ldopen ();
9077 main ()
9079 return ldopen ();
9081 return 0;
9083 _ACEOF
9084 if ac_fn_c_try_link "$LINENO"; then :
9085 gcc_cv_collect2_libs="$libs"; break
9087 rm -f core conftest.err conftest.$ac_objext \
9088 conftest$ac_exeext conftest.$ac_ext
9089 done
9090 LIBS="$save_LIBS"
9091 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9094 $as_echo "$gcc_cv_collect2_libs" >&6; }
9095 case $gcc_cv_collect2_libs in
9096 "none required") ;;
9097 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9098 esac
9101 # When building Ada code on Alpha, we need exc_resume which is usually in
9102 # -lexc. So test for it.
9103 save_LIBS="$LIBS"
9104 LIBS=
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9106 $as_echo_n "checking for library containing exc_resume... " >&6; }
9107 if test "${ac_cv_search_exc_resume+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 ac_func_search_save_LIBS=$LIBS
9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9114 /* Override any GCC internal prototype to avoid an error.
9115 Use char because int might match the return type of a GCC
9116 builtin and then its argument prototype would still apply. */
9117 #ifdef __cplusplus
9118 extern "C"
9119 #endif
9120 char exc_resume ();
9122 main ()
9124 return exc_resume ();
9126 return 0;
9128 _ACEOF
9129 for ac_lib in '' exc; do
9130 if test -z "$ac_lib"; then
9131 ac_res="none required"
9132 else
9133 ac_res=-l$ac_lib
9134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9136 if ac_fn_c_try_link "$LINENO"; then :
9137 ac_cv_search_exc_resume=$ac_res
9139 rm -f core conftest.err conftest.$ac_objext \
9140 conftest$ac_exeext
9141 if test "${ac_cv_search_exc_resume+set}" = set; then :
9142 break
9144 done
9145 if test "${ac_cv_search_exc_resume+set}" = set; then :
9147 else
9148 ac_cv_search_exc_resume=no
9150 rm conftest.$ac_ext
9151 LIBS=$ac_func_search_save_LIBS
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9154 $as_echo "$ac_cv_search_exc_resume" >&6; }
9155 ac_res=$ac_cv_search_exc_resume
9156 if test "$ac_res" != no; then :
9157 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9161 GNAT_LIBEXC="$LIBS"
9162 LIBS="$save_LIBS"
9165 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9166 save_LIBS="$LIBS"
9167 LIBS=
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9169 $as_echo_n "checking for library containing kstat_open... " >&6; }
9170 if test "${ac_cv_search_kstat_open+set}" = set; then :
9171 $as_echo_n "(cached) " >&6
9172 else
9173 ac_func_search_save_LIBS=$LIBS
9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9177 /* Override any GCC internal prototype to avoid an error.
9178 Use char because int might match the return type of a GCC
9179 builtin and then its argument prototype would still apply. */
9180 #ifdef __cplusplus
9181 extern "C"
9182 #endif
9183 char kstat_open ();
9185 main ()
9187 return kstat_open ();
9189 return 0;
9191 _ACEOF
9192 for ac_lib in '' kstat; do
9193 if test -z "$ac_lib"; then
9194 ac_res="none required"
9195 else
9196 ac_res=-l$ac_lib
9197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9199 if ac_fn_c_try_link "$LINENO"; then :
9200 ac_cv_search_kstat_open=$ac_res
9202 rm -f core conftest.err conftest.$ac_objext \
9203 conftest$ac_exeext
9204 if test "${ac_cv_search_kstat_open+set}" = set; then :
9205 break
9207 done
9208 if test "${ac_cv_search_kstat_open+set}" = set; then :
9210 else
9211 ac_cv_search_kstat_open=no
9213 rm conftest.$ac_ext
9214 LIBS=$ac_func_search_save_LIBS
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9217 $as_echo "$ac_cv_search_kstat_open" >&6; }
9218 ac_res=$ac_cv_search_kstat_open
9219 if test "$ac_res" != no; then :
9220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9224 EXTRA_GCC_LIBS="$LIBS"
9225 LIBS="$save_LIBS"
9228 # Some systems put ldexp and frexp in libm instead of libc; assume
9229 # they're both in the same place. jcf-dump needs them.
9230 save_LIBS="$LIBS"
9231 LIBS=
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9233 $as_echo_n "checking for library containing ldexp... " >&6; }
9234 if test "${ac_cv_search_ldexp+set}" = set; then :
9235 $as_echo_n "(cached) " >&6
9236 else
9237 ac_func_search_save_LIBS=$LIBS
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9241 /* Override any GCC internal prototype to avoid an error.
9242 Use char because int might match the return type of a GCC
9243 builtin and then its argument prototype would still apply. */
9244 #ifdef __cplusplus
9245 extern "C"
9246 #endif
9247 char ldexp ();
9249 main ()
9251 return ldexp ();
9253 return 0;
9255 _ACEOF
9256 for ac_lib in '' m; do
9257 if test -z "$ac_lib"; then
9258 ac_res="none required"
9259 else
9260 ac_res=-l$ac_lib
9261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9263 if ac_fn_c_try_link "$LINENO"; then :
9264 ac_cv_search_ldexp=$ac_res
9266 rm -f core conftest.err conftest.$ac_objext \
9267 conftest$ac_exeext
9268 if test "${ac_cv_search_ldexp+set}" = set; then :
9269 break
9271 done
9272 if test "${ac_cv_search_ldexp+set}" = set; then :
9274 else
9275 ac_cv_search_ldexp=no
9277 rm conftest.$ac_ext
9278 LIBS=$ac_func_search_save_LIBS
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9281 $as_echo "$ac_cv_search_ldexp" >&6; }
9282 ac_res=$ac_cv_search_ldexp
9283 if test "$ac_res" != no; then :
9284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9288 LDEXP_LIB="$LIBS"
9289 LIBS="$save_LIBS"
9292 # Use <inttypes.h> only if it exists,
9293 # doesn't clash with <sys/types.h>, and declares intmax_t.
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9295 $as_echo_n "checking for inttypes.h... " >&6; }
9296 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
9298 else
9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9301 #include <sys/types.h>
9302 #include <inttypes.h>
9304 main ()
9306 intmax_t i = -1;
9308 return 0;
9310 _ACEOF
9311 if ac_fn_c_try_compile "$LINENO"; then :
9312 gcc_cv_header_inttypes_h=yes
9313 else
9314 gcc_cv_header_inttypes_h=no
9316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9320 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9321 if test $gcc_cv_header_inttypes_h = yes; then
9323 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9329 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9330 sysconf strsignal getrusage nl_langinfo \
9331 gettimeofday mbstowcs wcswidth mmap setlocale \
9332 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
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
9346 if test x$ac_cv_func_mbstowcs = xyes; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9348 $as_echo_n "checking whether mbstowcs works... " >&6; }
9349 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 if test "$cross_compiling" = yes; then :
9353 gcc_cv_func_mbstowcs_works=yes
9354 else
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9357 #include <stdlib.h>
9358 int main()
9360 mbstowcs(0, "", 0);
9361 return 0;
9363 _ACEOF
9364 if ac_fn_c_try_run "$LINENO"; then :
9365 gcc_cv_func_mbstowcs_works=yes
9366 else
9367 gcc_cv_func_mbstowcs_works=no
9369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9370 conftest.$ac_objext conftest.beam conftest.$ac_ext
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9375 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9376 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9378 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9383 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9384 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9386 else
9388 cat >>confdefs.h <<_ACEOF
9389 #define ssize_t int
9390 _ACEOF
9394 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9395 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9397 else
9399 cat >>confdefs.h <<_ACEOF
9400 #define caddr_t char *
9401 _ACEOF
9407 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9408 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9409 gcc_header_sys_mman_h=yes
9410 else
9411 gcc_header_sys_mman_h=no
9414 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9415 if test "x$ac_cv_func_mmap" = x""yes; then :
9416 gcc_func_mmap=yes
9417 else
9418 gcc_func_mmap=no
9421 if test "$gcc_header_sys_mman_h" != yes \
9422 || test "$gcc_func_mmap" != yes; then
9423 gcc_cv_func_mmap_file=no
9424 gcc_cv_func_mmap_dev_zero=no
9425 gcc_cv_func_mmap_anon=no
9426 else
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9428 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9429 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 # Add a system to this blacklist if
9433 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9434 # memory area containing the same data that you'd get if you applied
9435 # read() to the same fd. The only system known to have a problem here
9436 # is VMS, where text files have record structure.
9437 case "$host_os" in
9438 *vms* | ultrix*)
9439 gcc_cv_func_mmap_file=no ;;
9441 gcc_cv_func_mmap_file=yes;;
9442 esac
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9445 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9447 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9448 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9449 $as_echo_n "(cached) " >&6
9450 else
9451 # Add a system to this blacklist if it has mmap() but /dev/zero
9452 # does not exist, or if mmapping /dev/zero does not give anonymous
9453 # zeroed pages with both the following properties:
9454 # 1. If you map N consecutive pages in with one call, and then
9455 # unmap any subset of those pages, the pages that were not
9456 # explicitly unmapped remain accessible.
9457 # 2. If you map two adjacent blocks of memory and then unmap them
9458 # both at once, they must both go away.
9459 # Systems known to be in this category are Windows (all variants),
9460 # VMS, and Darwin.
9461 case "$host_os" in
9462 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9463 gcc_cv_func_mmap_dev_zero=no ;;
9465 gcc_cv_func_mmap_dev_zero=yes;;
9466 esac
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9469 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9471 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9473 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9474 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 #include <sys/types.h>
9480 #include <sys/mman.h>
9481 #include <unistd.h>
9483 #ifndef MAP_ANONYMOUS
9484 #define MAP_ANONYMOUS MAP_ANON
9485 #endif
9488 main ()
9490 int n = MAP_ANONYMOUS;
9492 return 0;
9494 _ACEOF
9495 if ac_fn_c_try_compile "$LINENO"; then :
9496 gcc_cv_decl_map_anon=yes
9497 else
9498 gcc_cv_decl_map_anon=no
9500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9503 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9505 if test $gcc_cv_decl_map_anon = no; then
9506 gcc_cv_func_mmap_anon=no
9507 else
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9509 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9510 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9514 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9515 # doesn't give anonymous zeroed pages with the same properties listed
9516 # above for use of /dev/zero.
9517 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9518 case "$host_os" in
9519 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9520 gcc_cv_func_mmap_anon=no ;;
9522 gcc_cv_func_mmap_anon=yes;;
9523 esac
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9526 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9530 if test $gcc_cv_func_mmap_file = yes; then
9532 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9535 if test $gcc_cv_func_mmap_dev_zero = yes; then
9537 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9540 if test $gcc_cv_func_mmap_anon = yes; then
9542 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9547 case "${host}" in
9548 *-*-*vms*)
9549 # Under VMS, vfork works very differently than on Unix. The standard test
9550 # won't work, and it isn't easily adaptable. It makes more sense to
9551 # just force it.
9552 ac_cv_func_vfork_works=yes
9554 esac
9555 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9556 if test "x$ac_cv_type_pid_t" = x""yes; then :
9558 else
9560 cat >>confdefs.h <<_ACEOF
9561 #define pid_t int
9562 _ACEOF
9566 for ac_header in vfork.h
9567 do :
9568 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9569 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9570 cat >>confdefs.h <<_ACEOF
9571 #define HAVE_VFORK_H 1
9572 _ACEOF
9575 done
9577 for ac_func in fork vfork
9578 do :
9579 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9580 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9581 eval as_val=\$$as_ac_var
9582 if test "x$as_val" = x""yes; then :
9583 cat >>confdefs.h <<_ACEOF
9584 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9585 _ACEOF
9588 done
9590 if test "x$ac_cv_func_fork" = xyes; then
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9592 $as_echo_n "checking for working fork... " >&6; }
9593 if test "${ac_cv_func_fork_works+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 if test "$cross_compiling" = yes; then :
9597 ac_cv_func_fork_works=cross
9598 else
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9601 $ac_includes_default
9603 main ()
9606 /* By Ruediger Kuhlmann. */
9607 return fork () < 0;
9610 return 0;
9612 _ACEOF
9613 if ac_fn_c_try_run "$LINENO"; then :
9614 ac_cv_func_fork_works=yes
9615 else
9616 ac_cv_func_fork_works=no
9618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9619 conftest.$ac_objext conftest.beam conftest.$ac_ext
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9624 $as_echo "$ac_cv_func_fork_works" >&6; }
9626 else
9627 ac_cv_func_fork_works=$ac_cv_func_fork
9629 if test "x$ac_cv_func_fork_works" = xcross; then
9630 case $host in
9631 *-*-amigaos* | *-*-msdosdjgpp*)
9632 # Override, as these systems have only a dummy fork() stub
9633 ac_cv_func_fork_works=no
9636 ac_cv_func_fork_works=yes
9638 esac
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9640 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9642 ac_cv_func_vfork_works=$ac_cv_func_vfork
9643 if test "x$ac_cv_func_vfork" = xyes; then
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9645 $as_echo_n "checking for working vfork... " >&6; }
9646 if test "${ac_cv_func_vfork_works+set}" = set; then :
9647 $as_echo_n "(cached) " >&6
9648 else
9649 if test "$cross_compiling" = yes; then :
9650 ac_cv_func_vfork_works=cross
9651 else
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654 /* Thanks to Paul Eggert for this test. */
9655 $ac_includes_default
9656 #include <sys/wait.h>
9657 #ifdef HAVE_VFORK_H
9658 # include <vfork.h>
9659 #endif
9660 /* On some sparc systems, changes by the child to local and incoming
9661 argument registers are propagated back to the parent. The compiler
9662 is told about this with #include <vfork.h>, but some compilers
9663 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9664 static variable whose address is put into a register that is
9665 clobbered by the vfork. */
9666 static void
9667 #ifdef __cplusplus
9668 sparc_address_test (int arg)
9669 # else
9670 sparc_address_test (arg) int arg;
9671 #endif
9673 static pid_t child;
9674 if (!child) {
9675 child = vfork ();
9676 if (child < 0) {
9677 perror ("vfork");
9678 _exit(2);
9680 if (!child) {
9681 arg = getpid();
9682 write(-1, "", 0);
9683 _exit (arg);
9689 main ()
9691 pid_t parent = getpid ();
9692 pid_t child;
9694 sparc_address_test (0);
9696 child = vfork ();
9698 if (child == 0) {
9699 /* Here is another test for sparc vfork register problems. This
9700 test uses lots of local variables, at least as many local
9701 variables as main has allocated so far including compiler
9702 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9703 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9704 reuse the register of parent for one of the local variables,
9705 since it will think that parent can't possibly be used any more
9706 in this routine. Assigning to the local variable will thus
9707 munge parent in the parent process. */
9708 pid_t
9709 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9710 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9711 /* Convince the compiler that p..p7 are live; otherwise, it might
9712 use the same hardware register for all 8 local variables. */
9713 if (p != p1 || p != p2 || p != p3 || p != p4
9714 || p != p5 || p != p6 || p != p7)
9715 _exit(1);
9717 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9718 from child file descriptors. If the child closes a descriptor
9719 before it execs or exits, this munges the parent's descriptor
9720 as well. Test for this by closing stdout in the child. */
9721 _exit(close(fileno(stdout)) != 0);
9722 } else {
9723 int status;
9724 struct stat st;
9726 while (wait(&status) != child)
9728 return (
9729 /* Was there some problem with vforking? */
9730 child < 0
9732 /* Did the child fail? (This shouldn't happen.) */
9733 || status
9735 /* Did the vfork/compiler bug occur? */
9736 || parent != getpid()
9738 /* Did the file descriptor bug occur? */
9739 || fstat(fileno(stdout), &st) != 0
9743 _ACEOF
9744 if ac_fn_c_try_run "$LINENO"; then :
9745 ac_cv_func_vfork_works=yes
9746 else
9747 ac_cv_func_vfork_works=no
9749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9750 conftest.$ac_objext conftest.beam conftest.$ac_ext
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9755 $as_echo "$ac_cv_func_vfork_works" >&6; }
9758 if test "x$ac_cv_func_fork_works" = xcross; then
9759 ac_cv_func_vfork_works=$ac_cv_func_vfork
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9761 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9764 if test "x$ac_cv_func_vfork_works" = xyes; then
9766 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9768 else
9770 $as_echo "#define vfork fork" >>confdefs.h
9773 if test "x$ac_cv_func_fork_works" = xyes; then
9775 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9780 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9781 # iconv() prototype.
9783 if test "X$prefix" = "XNONE"; then
9784 acl_final_prefix="$ac_default_prefix"
9785 else
9786 acl_final_prefix="$prefix"
9788 if test "X$exec_prefix" = "XNONE"; then
9789 acl_final_exec_prefix='${prefix}'
9790 else
9791 acl_final_exec_prefix="$exec_prefix"
9793 acl_save_prefix="$prefix"
9794 prefix="$acl_final_prefix"
9795 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9796 prefix="$acl_save_prefix"
9799 # Check whether --with-gnu-ld was given.
9800 if test "${with_gnu_ld+set}" = set; then :
9801 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9802 else
9803 with_gnu_ld=no
9806 # Prepare PATH_SEPARATOR.
9807 # The user is always right.
9808 if test "${PATH_SEPARATOR+set}" != set; then
9809 echo "#! /bin/sh" >conf$$.sh
9810 echo "exit 0" >>conf$$.sh
9811 chmod +x conf$$.sh
9812 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9813 PATH_SEPARATOR=';'
9814 else
9815 PATH_SEPARATOR=:
9817 rm -f conf$$.sh
9819 ac_prog=ld
9820 if test "$GCC" = yes; then
9821 # Check if gcc -print-prog-name=ld gives a path.
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9823 $as_echo_n "checking for ld used by GCC... " >&6; }
9824 case $host in
9825 *-*-mingw*)
9826 # gcc leaves a trailing carriage return which upsets mingw
9827 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9829 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9830 esac
9831 case $ac_prog in
9832 # Accept absolute paths.
9833 [\\/]* | [A-Za-z]:[\\/]*)
9834 re_direlt='/[^/][^/]*/\.\./'
9835 # Canonicalize the path of ld
9836 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9837 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9838 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9839 done
9840 test -z "$LD" && LD="$ac_prog"
9843 # If it fails, then pretend we aren't using GCC.
9844 ac_prog=ld
9847 # If it is relative, then search for the first ld in PATH.
9848 with_gnu_ld=unknown
9850 esac
9851 elif test "$with_gnu_ld" = yes; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9853 $as_echo_n "checking for GNU ld... " >&6; }
9854 else
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9856 $as_echo_n "checking for non-GNU ld... " >&6; }
9858 if test "${acl_cv_path_LD+set}" = set; then :
9859 $as_echo_n "(cached) " >&6
9860 else
9861 if test -z "$LD"; then
9862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9863 for ac_dir in $PATH; do
9864 test -z "$ac_dir" && ac_dir=.
9865 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9866 acl_cv_path_LD="$ac_dir/$ac_prog"
9867 # Check to see if the program is GNU ld. I'd rather use --version,
9868 # but apparently some GNU ld's only accept -v.
9869 # Break only if it was the GNU/non-GNU ld that we prefer.
9870 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9871 test "$with_gnu_ld" != no && break
9872 else
9873 test "$with_gnu_ld" != yes && break
9876 done
9877 IFS="$ac_save_ifs"
9878 else
9879 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9883 LD="$acl_cv_path_LD"
9884 if test -n "$LD"; then
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9886 $as_echo "$LD" >&6; }
9887 else
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9889 $as_echo "no" >&6; }
9891 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9893 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9894 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9898 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9899 acl_cv_prog_gnu_ld=yes
9900 else
9901 acl_cv_prog_gnu_ld=no
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9905 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9906 with_gnu_ld=$acl_cv_prog_gnu_ld
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9911 $as_echo_n "checking for shared library run path origin... " >&6; }
9912 if test "${acl_cv_rpath+set}" = set; then :
9913 $as_echo_n "(cached) " >&6
9914 else
9916 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9917 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9918 . ./conftest.sh
9919 rm -f ./conftest.sh
9920 acl_cv_rpath=done
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9924 $as_echo "$acl_cv_rpath" >&6; }
9925 wl="$acl_cv_wl"
9926 libext="$acl_cv_libext"
9927 shlibext="$acl_cv_shlibext"
9928 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9929 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9930 hardcode_direct="$acl_cv_hardcode_direct"
9931 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9932 # Check whether --enable-rpath was given.
9933 if test "${enable_rpath+set}" = set; then :
9934 enableval=$enable_rpath; :
9935 else
9936 enable_rpath=yes
9946 use_additional=yes
9948 acl_save_prefix="$prefix"
9949 prefix="$acl_final_prefix"
9950 acl_save_exec_prefix="$exec_prefix"
9951 exec_prefix="$acl_final_exec_prefix"
9953 eval additional_includedir=\"$includedir\"
9954 eval additional_libdir=\"$libdir\"
9956 exec_prefix="$acl_save_exec_prefix"
9957 prefix="$acl_save_prefix"
9960 # Check whether --with-libiconv-prefix was given.
9961 if test "${with_libiconv_prefix+set}" = set; then :
9962 withval=$with_libiconv_prefix;
9963 if test "X$withval" = "Xno"; then
9964 use_additional=no
9965 else
9966 if test "X$withval" = "X"; then
9968 acl_save_prefix="$prefix"
9969 prefix="$acl_final_prefix"
9970 acl_save_exec_prefix="$exec_prefix"
9971 exec_prefix="$acl_final_exec_prefix"
9973 eval additional_includedir=\"$includedir\"
9974 eval additional_libdir=\"$libdir\"
9976 exec_prefix="$acl_save_exec_prefix"
9977 prefix="$acl_save_prefix"
9979 else
9980 additional_includedir="$withval/include"
9981 additional_libdir="$withval/lib"
9987 LIBICONV=
9988 LTLIBICONV=
9989 INCICONV=
9990 rpathdirs=
9991 ltrpathdirs=
9992 names_already_handled=
9993 names_next_round='iconv '
9994 while test -n "$names_next_round"; do
9995 names_this_round="$names_next_round"
9996 names_next_round=
9997 for name in $names_this_round; do
9998 already_handled=
9999 for n in $names_already_handled; do
10000 if test "$n" = "$name"; then
10001 already_handled=yes
10002 break
10004 done
10005 if test -z "$already_handled"; then
10006 names_already_handled="$names_already_handled $name"
10007 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10008 eval value=\"\$HAVE_LIB$uppername\"
10009 if test -n "$value"; then
10010 if test "$value" = yes; then
10011 eval value=\"\$LIB$uppername\"
10012 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10013 eval value=\"\$LTLIB$uppername\"
10014 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10015 else
10018 else
10019 found_dir=
10020 found_la=
10021 found_so=
10022 found_a=
10023 if test $use_additional = yes; then
10024 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10025 found_dir="$additional_libdir"
10026 found_so="$additional_libdir/lib$name.$shlibext"
10027 if test -f "$additional_libdir/lib$name.la"; then
10028 found_la="$additional_libdir/lib$name.la"
10030 else
10031 if test -f "$additional_libdir/lib$name.$libext"; then
10032 found_dir="$additional_libdir"
10033 found_a="$additional_libdir/lib$name.$libext"
10034 if test -f "$additional_libdir/lib$name.la"; then
10035 found_la="$additional_libdir/lib$name.la"
10040 if test "X$found_dir" = "X"; then
10041 for x in $LDFLAGS $LTLIBICONV; do
10043 acl_save_prefix="$prefix"
10044 prefix="$acl_final_prefix"
10045 acl_save_exec_prefix="$exec_prefix"
10046 exec_prefix="$acl_final_exec_prefix"
10047 eval x=\"$x\"
10048 exec_prefix="$acl_save_exec_prefix"
10049 prefix="$acl_save_prefix"
10051 case "$x" in
10052 -L*)
10053 dir=`echo "X$x" | sed -e 's/^X-L//'`
10054 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10055 found_dir="$dir"
10056 found_so="$dir/lib$name.$shlibext"
10057 if test -f "$dir/lib$name.la"; then
10058 found_la="$dir/lib$name.la"
10060 else
10061 if test -f "$dir/lib$name.$libext"; then
10062 found_dir="$dir"
10063 found_a="$dir/lib$name.$libext"
10064 if test -f "$dir/lib$name.la"; then
10065 found_la="$dir/lib$name.la"
10070 esac
10071 if test "X$found_dir" != "X"; then
10072 break
10074 done
10076 if test "X$found_dir" != "X"; then
10077 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10078 if test "X$found_so" != "X"; then
10079 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10080 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10081 else
10082 haveit=
10083 for x in $ltrpathdirs; do
10084 if test "X$x" = "X$found_dir"; then
10085 haveit=yes
10086 break
10088 done
10089 if test -z "$haveit"; then
10090 ltrpathdirs="$ltrpathdirs $found_dir"
10092 if test "$hardcode_direct" = yes; then
10093 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10094 else
10095 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10096 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10097 haveit=
10098 for x in $rpathdirs; do
10099 if test "X$x" = "X$found_dir"; then
10100 haveit=yes
10101 break
10103 done
10104 if test -z "$haveit"; then
10105 rpathdirs="$rpathdirs $found_dir"
10107 else
10108 haveit=
10109 for x in $LDFLAGS $LIBICONV; do
10111 acl_save_prefix="$prefix"
10112 prefix="$acl_final_prefix"
10113 acl_save_exec_prefix="$exec_prefix"
10114 exec_prefix="$acl_final_exec_prefix"
10115 eval x=\"$x\"
10116 exec_prefix="$acl_save_exec_prefix"
10117 prefix="$acl_save_prefix"
10119 if test "X$x" = "X-L$found_dir"; then
10120 haveit=yes
10121 break
10123 done
10124 if test -z "$haveit"; then
10125 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10127 if test "$hardcode_minus_L" != no; then
10128 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10129 else
10130 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10135 else
10136 if test "X$found_a" != "X"; then
10137 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10138 else
10139 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10142 additional_includedir=
10143 case "$found_dir" in
10144 */lib | */lib/)
10145 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10146 additional_includedir="$basedir/include"
10148 esac
10149 if test "X$additional_includedir" != "X"; then
10150 if test "X$additional_includedir" != "X/usr/include"; then
10151 haveit=
10152 if test "X$additional_includedir" = "X/usr/local/include"; then
10153 if test -n "$GCC"; then
10154 case $host_os in
10155 linux*) haveit=yes;;
10156 esac
10159 if test -z "$haveit"; then
10160 for x in $CPPFLAGS $INCICONV; do
10162 acl_save_prefix="$prefix"
10163 prefix="$acl_final_prefix"
10164 acl_save_exec_prefix="$exec_prefix"
10165 exec_prefix="$acl_final_exec_prefix"
10166 eval x=\"$x\"
10167 exec_prefix="$acl_save_exec_prefix"
10168 prefix="$acl_save_prefix"
10170 if test "X$x" = "X-I$additional_includedir"; then
10171 haveit=yes
10172 break
10174 done
10175 if test -z "$haveit"; then
10176 if test -d "$additional_includedir"; then
10177 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10183 if test -n "$found_la"; then
10184 save_libdir="$libdir"
10185 case "$found_la" in
10186 */* | *\\*) . "$found_la" ;;
10187 *) . "./$found_la" ;;
10188 esac
10189 libdir="$save_libdir"
10190 for dep in $dependency_libs; do
10191 case "$dep" in
10192 -L*)
10193 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10194 if test "X$additional_libdir" != "X/usr/lib"; then
10195 haveit=
10196 if test "X$additional_libdir" = "X/usr/local/lib"; then
10197 if test -n "$GCC"; then
10198 case $host_os in
10199 linux*) haveit=yes;;
10200 esac
10203 if test -z "$haveit"; then
10204 haveit=
10205 for x in $LDFLAGS $LIBICONV; do
10207 acl_save_prefix="$prefix"
10208 prefix="$acl_final_prefix"
10209 acl_save_exec_prefix="$exec_prefix"
10210 exec_prefix="$acl_final_exec_prefix"
10211 eval x=\"$x\"
10212 exec_prefix="$acl_save_exec_prefix"
10213 prefix="$acl_save_prefix"
10215 if test "X$x" = "X-L$additional_libdir"; then
10216 haveit=yes
10217 break
10219 done
10220 if test -z "$haveit"; then
10221 if test -d "$additional_libdir"; then
10222 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10225 haveit=
10226 for x in $LDFLAGS $LTLIBICONV; do
10228 acl_save_prefix="$prefix"
10229 prefix="$acl_final_prefix"
10230 acl_save_exec_prefix="$exec_prefix"
10231 exec_prefix="$acl_final_exec_prefix"
10232 eval x=\"$x\"
10233 exec_prefix="$acl_save_exec_prefix"
10234 prefix="$acl_save_prefix"
10236 if test "X$x" = "X-L$additional_libdir"; then
10237 haveit=yes
10238 break
10240 done
10241 if test -z "$haveit"; then
10242 if test -d "$additional_libdir"; then
10243 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10249 -R*)
10250 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10251 if test "$enable_rpath" != no; then
10252 haveit=
10253 for x in $rpathdirs; do
10254 if test "X$x" = "X$dir"; then
10255 haveit=yes
10256 break
10258 done
10259 if test -z "$haveit"; then
10260 rpathdirs="$rpathdirs $dir"
10262 haveit=
10263 for x in $ltrpathdirs; do
10264 if test "X$x" = "X$dir"; then
10265 haveit=yes
10266 break
10268 done
10269 if test -z "$haveit"; then
10270 ltrpathdirs="$ltrpathdirs $dir"
10274 -l*)
10275 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10277 *.la)
10278 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10281 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10282 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10284 esac
10285 done
10287 else
10288 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10289 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10293 done
10294 done
10295 if test "X$rpathdirs" != "X"; then
10296 if test -n "$hardcode_libdir_separator"; then
10297 alldirs=
10298 for found_dir in $rpathdirs; do
10299 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10300 done
10301 acl_save_libdir="$libdir"
10302 libdir="$alldirs"
10303 eval flag=\"$hardcode_libdir_flag_spec\"
10304 libdir="$acl_save_libdir"
10305 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10306 else
10307 for found_dir in $rpathdirs; do
10308 acl_save_libdir="$libdir"
10309 libdir="$found_dir"
10310 eval flag=\"$hardcode_libdir_flag_spec\"
10311 libdir="$acl_save_libdir"
10312 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10313 done
10316 if test "X$ltrpathdirs" != "X"; then
10317 for found_dir in $ltrpathdirs; do
10318 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10319 done
10323 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10324 ac_ext=cpp
10325 ac_cpp='$CXXCPP $CPPFLAGS'
10326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10335 am_save_CPPFLAGS="$CPPFLAGS"
10337 for element in $INCICONV; do
10338 haveit=
10339 for x in $CPPFLAGS; do
10341 acl_save_prefix="$prefix"
10342 prefix="$acl_final_prefix"
10343 acl_save_exec_prefix="$exec_prefix"
10344 exec_prefix="$acl_final_exec_prefix"
10345 eval x=\"$x\"
10346 exec_prefix="$acl_save_exec_prefix"
10347 prefix="$acl_save_prefix"
10349 if test "X$x" = "X$element"; then
10350 haveit=yes
10351 break
10353 done
10354 if test -z "$haveit"; then
10355 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10357 done
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10361 $as_echo_n "checking for iconv... " >&6; }
10362 if test "${am_cv_func_iconv+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10364 else
10366 am_cv_func_iconv="no, consider installing GNU libiconv"
10367 am_cv_lib_iconv=no
10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h. */
10370 #include <stdlib.h>
10371 #include <iconv.h>
10373 main ()
10375 iconv_t cd = iconv_open("","");
10376 iconv(cd,NULL,NULL,NULL,NULL);
10377 iconv_close(cd);
10379 return 0;
10381 _ACEOF
10382 if ac_fn_cxx_try_link "$LINENO"; then :
10383 am_cv_func_iconv=yes
10385 rm -f core conftest.err conftest.$ac_objext \
10386 conftest$ac_exeext conftest.$ac_ext
10387 if test "$am_cv_func_iconv" != yes; then
10388 am_save_LIBS="$LIBS"
10389 LIBS="$LIBS $LIBICONV"
10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391 /* end confdefs.h. */
10392 #include <stdlib.h>
10393 #include <iconv.h>
10395 main ()
10397 iconv_t cd = iconv_open("","");
10398 iconv(cd,NULL,NULL,NULL,NULL);
10399 iconv_close(cd);
10401 return 0;
10403 _ACEOF
10404 if ac_fn_cxx_try_link "$LINENO"; then :
10405 am_cv_lib_iconv=yes
10406 am_cv_func_iconv=yes
10408 rm -f core conftest.err conftest.$ac_objext \
10409 conftest$ac_exeext conftest.$ac_ext
10410 LIBS="$am_save_LIBS"
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10415 $as_echo "$am_cv_func_iconv" >&6; }
10416 if test "$am_cv_func_iconv" = yes; then
10418 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10421 if test "$am_cv_lib_iconv" = yes; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10423 $as_echo_n "checking how to link with libiconv... " >&6; }
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10425 $as_echo "$LIBICONV" >&6; }
10426 else
10427 CPPFLAGS="$am_save_CPPFLAGS"
10428 LIBICONV=
10429 LTLIBICONV=
10434 if test "$am_cv_func_iconv" = yes; then
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10436 $as_echo_n "checking for iconv declaration... " >&6; }
10437 if test "${am_cv_proto_iconv+set}" = set; then :
10438 $as_echo_n "(cached) " >&6
10439 else
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10444 #include <stdlib.h>
10445 #include <iconv.h>
10446 extern
10447 #ifdef __cplusplus
10449 #endif
10450 #if defined(__STDC__) || defined(__cplusplus)
10451 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10452 #else
10453 size_t iconv();
10454 #endif
10457 main ()
10461 return 0;
10463 _ACEOF
10464 if ac_fn_cxx_try_compile "$LINENO"; then :
10465 am_cv_proto_iconv_arg1=""
10466 else
10467 am_cv_proto_iconv_arg1="const"
10469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10470 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);"
10473 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10475 }$am_cv_proto_iconv" >&5
10476 $as_echo "${ac_t:-
10477 }$am_cv_proto_iconv" >&6; }
10479 cat >>confdefs.h <<_ACEOF
10480 #define ICONV_CONST $am_cv_proto_iconv_arg1
10481 _ACEOF
10485 ac_ext=c
10486 ac_cpp='$CPP $CPPFLAGS'
10487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10491 else
10497 am_save_CPPFLAGS="$CPPFLAGS"
10499 for element in $INCICONV; do
10500 haveit=
10501 for x in $CPPFLAGS; do
10503 acl_save_prefix="$prefix"
10504 prefix="$acl_final_prefix"
10505 acl_save_exec_prefix="$exec_prefix"
10506 exec_prefix="$acl_final_exec_prefix"
10507 eval x=\"$x\"
10508 exec_prefix="$acl_save_exec_prefix"
10509 prefix="$acl_save_prefix"
10511 if test "X$x" = "X$element"; then
10512 haveit=yes
10513 break
10515 done
10516 if test -z "$haveit"; then
10517 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10519 done
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10523 $as_echo_n "checking for iconv... " >&6; }
10524 if test "${am_cv_func_iconv+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10528 am_cv_func_iconv="no, consider installing GNU libiconv"
10529 am_cv_lib_iconv=no
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10532 #include <stdlib.h>
10533 #include <iconv.h>
10535 main ()
10537 iconv_t cd = iconv_open("","");
10538 iconv(cd,NULL,NULL,NULL,NULL);
10539 iconv_close(cd);
10541 return 0;
10543 _ACEOF
10544 if ac_fn_c_try_link "$LINENO"; then :
10545 am_cv_func_iconv=yes
10547 rm -f core conftest.err conftest.$ac_objext \
10548 conftest$ac_exeext conftest.$ac_ext
10549 if test "$am_cv_func_iconv" != yes; then
10550 am_save_LIBS="$LIBS"
10551 LIBS="$LIBS $LIBICONV"
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10554 #include <stdlib.h>
10555 #include <iconv.h>
10557 main ()
10559 iconv_t cd = iconv_open("","");
10560 iconv(cd,NULL,NULL,NULL,NULL);
10561 iconv_close(cd);
10563 return 0;
10565 _ACEOF
10566 if ac_fn_c_try_link "$LINENO"; then :
10567 am_cv_lib_iconv=yes
10568 am_cv_func_iconv=yes
10570 rm -f core conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 LIBS="$am_save_LIBS"
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10577 $as_echo "$am_cv_func_iconv" >&6; }
10578 if test "$am_cv_func_iconv" = yes; then
10580 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10583 if test "$am_cv_lib_iconv" = yes; then
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10585 $as_echo_n "checking how to link with libiconv... " >&6; }
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10587 $as_echo "$LIBICONV" >&6; }
10588 else
10589 CPPFLAGS="$am_save_CPPFLAGS"
10590 LIBICONV=
10591 LTLIBICONV=
10596 if test "$am_cv_func_iconv" = yes; then
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10598 $as_echo_n "checking for iconv declaration... " >&6; }
10599 if test "${am_cv_proto_iconv+set}" = set; then :
10600 $as_echo_n "(cached) " >&6
10601 else
10603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604 /* end confdefs.h. */
10606 #include <stdlib.h>
10607 #include <iconv.h>
10608 extern
10609 #ifdef __cplusplus
10611 #endif
10612 #if defined(__STDC__) || defined(__cplusplus)
10613 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10614 #else
10615 size_t iconv();
10616 #endif
10619 main ()
10623 return 0;
10625 _ACEOF
10626 if ac_fn_c_try_compile "$LINENO"; then :
10627 am_cv_proto_iconv_arg1=""
10628 else
10629 am_cv_proto_iconv_arg1="const"
10631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10632 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);"
10635 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10637 }$am_cv_proto_iconv" >&5
10638 $as_echo "${ac_t:-
10639 }$am_cv_proto_iconv" >&6; }
10641 cat >>confdefs.h <<_ACEOF
10642 #define ICONV_CONST $am_cv_proto_iconv_arg1
10643 _ACEOF
10649 # Until we have in-tree GNU iconv:
10650 LIBICONV_DEP=
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10655 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10656 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10661 #include <locale.h>
10663 main ()
10665 return LC_MESSAGES
10667 return 0;
10669 _ACEOF
10670 if ac_fn_c_try_link "$LINENO"; then :
10671 am_cv_val_LC_MESSAGES=yes
10672 else
10673 am_cv_val_LC_MESSAGES=no
10675 rm -f core conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10679 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10680 if test $am_cv_val_LC_MESSAGES = yes; then
10682 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10689 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10690 if test "${am_cv_langinfo_codeset+set}" = set; then :
10691 $as_echo_n "(cached) " >&6
10692 else
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695 #include <langinfo.h>
10697 main ()
10699 char* cs = nl_langinfo(CODESET);
10701 return 0;
10703 _ACEOF
10704 if ac_fn_c_try_link "$LINENO"; then :
10705 am_cv_langinfo_codeset=yes
10706 else
10707 am_cv_langinfo_codeset=no
10709 rm -f core conftest.err conftest.$ac_objext \
10710 conftest$ac_exeext conftest.$ac_ext
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10714 $as_echo "$am_cv_langinfo_codeset" >&6; }
10715 if test $am_cv_langinfo_codeset = yes; then
10717 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10722 # We will need to find libiberty.h and ansidecl.h
10723 saved_CFLAGS="$CFLAGS"
10724 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10725 saved_CXXFLAGS="$CXXFLAGS"
10726 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10727 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10728 strsignal strstr stpcpy strverscmp \
10729 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10730 free basename getopt clock getpagesize 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
10732 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10734 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10735 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10736 $as_echo_n "(cached) " >&6
10737 else
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 #undef $ac_tr_decl
10741 #define $ac_tr_decl 1
10743 #include "ansidecl.h"
10744 #include "system.h"
10747 main ()
10749 #ifndef $ac_func
10750 char *(*pfn) = (char *(*)) $ac_func ;
10751 #endif
10753 return 0;
10755 _ACEOF
10756 if ac_fn_c_try_compile "$LINENO"; then :
10757 eval "gcc_cv_have_decl_$ac_func=yes"
10758 else
10759 eval "gcc_cv_have_decl_$ac_func=no"
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10766 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10767 #define $ac_tr_decl 1
10768 _ACEOF
10770 else
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10773 #define $ac_tr_decl 0
10774 _ACEOF
10778 done
10781 for ac_func in getrlimit setrlimit getrusage
10783 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10785 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10786 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10787 $as_echo_n "(cached) " >&6
10788 else
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10791 #undef $ac_tr_decl
10792 #define $ac_tr_decl 1
10794 #include "ansidecl.h"
10795 #include "system.h"
10796 #ifdef HAVE_SYS_RESOURCE_H
10797 #include <sys/resource.h>
10798 #endif
10802 main ()
10804 #ifndef $ac_func
10805 char *(*pfn) = (char *(*)) $ac_func ;
10806 #endif
10808 return 0;
10810 _ACEOF
10811 if ac_fn_c_try_compile "$LINENO"; then :
10812 eval "gcc_cv_have_decl_$ac_func=yes"
10813 else
10814 eval "gcc_cv_have_decl_$ac_func=no"
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10821 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10822 #define $ac_tr_decl 1
10823 _ACEOF
10825 else
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10828 #define $ac_tr_decl 0
10829 _ACEOF
10833 done
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10839 #include "ansidecl.h"
10840 #include "system.h"
10841 #ifdef HAVE_SYS_RESOURCE_H
10842 #include <sys/resource.h>
10843 #endif
10846 main ()
10848 rlim_t l = 0;
10850 return 0;
10852 _ACEOF
10853 if ac_fn_c_try_compile "$LINENO"; then :
10855 else
10857 $as_echo "#define rlim_t long" >>confdefs.h
10860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10862 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10863 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10864 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10865 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10866 for ac_func in ldgetname
10868 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10870 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10871 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10872 $as_echo_n "(cached) " >&6
10873 else
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10876 #undef $ac_tr_decl
10877 #define $ac_tr_decl 1
10879 #include "ansidecl.h"
10880 #include "system.h"
10881 #ifdef HAVE_LDFCN_H
10882 #undef FREAD
10883 #undef FWRITE
10884 #include <ldfcn.h>
10885 #endif
10889 main ()
10891 #ifndef $ac_func
10892 char *(*pfn) = (char *(*)) $ac_func ;
10893 #endif
10895 return 0;
10897 _ACEOF
10898 if ac_fn_c_try_compile "$LINENO"; then :
10899 eval "gcc_cv_have_decl_$ac_func=yes"
10900 else
10901 eval "gcc_cv_have_decl_$ac_func=no"
10903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10906 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10908 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10909 #define $ac_tr_decl 1
10910 _ACEOF
10912 else
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10915 #define $ac_tr_decl 0
10916 _ACEOF
10920 done
10923 for ac_func in times
10925 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10927 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10928 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10933 #undef $ac_tr_decl
10934 #define $ac_tr_decl 1
10936 #include "ansidecl.h"
10937 #include "system.h"
10938 #ifdef HAVE_SYS_TIMES_H
10939 #include <sys/times.h>
10940 #endif
10944 main ()
10946 #ifndef $ac_func
10947 char *(*pfn) = (char *(*)) $ac_func ;
10948 #endif
10950 return 0;
10952 _ACEOF
10953 if ac_fn_c_try_compile "$LINENO"; then :
10954 eval "gcc_cv_have_decl_$ac_func=yes"
10955 else
10956 eval "gcc_cv_have_decl_$ac_func=no"
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10963 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10964 #define $ac_tr_decl 1
10965 _ACEOF
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10970 #define $ac_tr_decl 0
10971 _ACEOF
10975 done
10978 for ac_func in sigaltstack
10980 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10982 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10983 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10984 $as_echo_n "(cached) " >&6
10985 else
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10988 #undef $ac_tr_decl
10989 #define $ac_tr_decl 1
10991 #include "ansidecl.h"
10992 #include "system.h"
10993 #include <signal.h>
10997 main ()
10999 #ifndef $ac_func
11000 char *(*pfn) = (char *(*)) $ac_func ;
11001 #endif
11003 return 0;
11005 _ACEOF
11006 if ac_fn_c_try_compile "$LINENO"; then :
11007 eval "gcc_cv_have_decl_$ac_func=yes"
11008 else
11009 eval "gcc_cv_have_decl_$ac_func=no"
11011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11014 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11016 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11017 #define $ac_tr_decl 1
11018 _ACEOF
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11023 #define $ac_tr_decl 0
11024 _ACEOF
11028 done
11031 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
11032 # prototype.
11033 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
11034 ac_ext=cpp
11035 ac_cpp='$CXXCPP $CPPFLAGS'
11036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11040 for ac_func in madvise
11042 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11044 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11045 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11046 $as_echo_n "(cached) " >&6
11047 else
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11050 #undef $ac_tr_decl
11051 #define $ac_tr_decl 1
11053 #include "ansidecl.h"
11054 #include "system.h"
11058 main ()
11060 #ifndef $ac_func
11061 char *(*pfn) = (char *(*)) $ac_func ;
11062 #endif
11064 return 0;
11066 _ACEOF
11067 if ac_fn_cxx_try_compile "$LINENO"; then :
11068 eval "gcc_cv_have_decl_$ac_func=yes"
11069 else
11070 eval "gcc_cv_have_decl_$ac_func=no"
11072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11075 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11077 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11078 #define $ac_tr_decl 1
11079 _ACEOF
11081 else
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11084 #define $ac_tr_decl 0
11085 _ACEOF
11089 done
11091 ac_ext=c
11092 ac_cpp='$CPP $CPPFLAGS'
11093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11097 else
11098 for ac_func in madvise
11100 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11102 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11103 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11104 $as_echo_n "(cached) " >&6
11105 else
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11108 #undef $ac_tr_decl
11109 #define $ac_tr_decl 1
11111 #include "ansidecl.h"
11112 #include "system.h"
11116 main ()
11118 #ifndef $ac_func
11119 char *(*pfn) = (char *(*)) $ac_func ;
11120 #endif
11122 return 0;
11124 _ACEOF
11125 if ac_fn_c_try_compile "$LINENO"; then :
11126 eval "gcc_cv_have_decl_$ac_func=yes"
11127 else
11128 eval "gcc_cv_have_decl_$ac_func=no"
11130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11133 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11135 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11136 #define $ac_tr_decl 1
11137 _ACEOF
11139 else
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11142 #define $ac_tr_decl 0
11143 _ACEOF
11147 done
11152 # More time-related stuff.
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11154 $as_echo_n "checking for struct tms... " >&6; }
11155 if test "${ac_cv_struct_tms+set}" = set; then :
11156 $as_echo_n "(cached) " >&6
11157 else
11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11162 #include "ansidecl.h"
11163 #include "system.h"
11164 #ifdef HAVE_SYS_TIMES_H
11165 #include <sys/times.h>
11166 #endif
11169 main ()
11171 struct tms tms;
11173 return 0;
11175 _ACEOF
11176 if ac_fn_c_try_compile "$LINENO"; then :
11177 ac_cv_struct_tms=yes
11178 else
11179 ac_cv_struct_tms=no
11181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11184 $as_echo "$ac_cv_struct_tms" >&6; }
11185 if test $ac_cv_struct_tms = yes; then
11187 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11191 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11192 # revisit after autoconf 2.50.
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11194 $as_echo_n "checking for clock_t... " >&6; }
11195 if test "${gcc_cv_type_clock_t+set}" = set; then :
11196 $as_echo_n "(cached) " >&6
11197 else
11199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11200 /* end confdefs.h. */
11202 #include "ansidecl.h"
11203 #include "system.h"
11206 main ()
11208 clock_t x;
11210 return 0;
11212 _ACEOF
11213 if ac_fn_c_try_compile "$LINENO"; then :
11214 gcc_cv_type_clock_t=yes
11215 else
11216 gcc_cv_type_clock_t=no
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11221 $as_echo "$gcc_cv_type_clock_t" >&6; }
11222 if test $gcc_cv_type_clock_t = yes; then
11224 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11228 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11229 CFLAGS="$saved_CFLAGS"
11230 CXXFLAGS="$saved_CXXFLAGS"
11232 # mkdir takes a single argument on some systems.
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11234 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11235 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11236 $as_echo_n "(cached) " >&6
11237 else
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11241 #include <sys/types.h>
11242 #ifdef HAVE_SYS_STAT_H
11243 # include <sys/stat.h>
11244 #endif
11245 #ifdef HAVE_UNISTD_H
11246 # include <unistd.h>
11247 #endif
11248 #ifdef HAVE_DIRECT_H
11249 # include <direct.h>
11250 #endif
11252 main ()
11254 mkdir ("foo", 0);
11256 return 0;
11258 _ACEOF
11259 if ac_fn_c_try_compile "$LINENO"; then :
11260 gcc_cv_mkdir_takes_one_arg=no
11261 else
11262 gcc_cv_mkdir_takes_one_arg=yes
11264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11267 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11268 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11270 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11275 # File extensions
11276 manext='.1'
11277 objext='.o'
11281 # With Setjmp/Longjmp based exception handling.
11282 # Check whether --enable-sjlj-exceptions was given.
11283 if test "${enable_sjlj_exceptions+set}" = set; then :
11284 enableval=$enable_sjlj_exceptions; case $target in
11285 *-*-hpux10*)
11286 if test $enableval != yes; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11288 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11289 enableval=yes
11292 esac
11293 force_sjlj_exceptions=yes
11294 else
11295 case $target in
11296 *-*-hpux10*)
11297 force_sjlj_exceptions=yes
11298 enableval=yes
11301 force_sjlj_exceptions=no
11303 esac
11306 if test $force_sjlj_exceptions = yes; then
11307 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11309 cat >>confdefs.h <<_ACEOF
11310 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11311 _ACEOF
11315 # --------------------------------------------------------
11316 # Build, host, and target specific configuration fragments
11317 # --------------------------------------------------------
11319 # Collect build-machine-specific information.
11320 . ${srcdir}/config.build
11322 # Collect host-machine-specific information.
11323 . ${srcdir}/config.host
11325 target_gtfiles=
11327 # Collect target-machine-specific information.
11328 . ${srcdir}/config.gcc
11330 extra_objs="${host_extra_objs} ${extra_objs}"
11331 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11333 # Default the target-machine variables that were not explicitly set.
11334 if test x"$tm_file" = x
11335 then tm_file=$cpu_type/$cpu_type.h; fi
11337 if test x"$extra_headers" = x
11338 then extra_headers=; fi
11340 if test x$md_file = x
11341 then md_file=$cpu_type/$cpu_type.md; fi
11343 if test x$out_file = x
11344 then out_file=$cpu_type/$cpu_type.c; fi
11346 if test x"$tmake_file" = x
11347 then tmake_file=$cpu_type/t-$cpu_type
11350 # Support --enable-initfini-array.
11351 if test x$enable_initfini_array != xno; then
11352 tm_file="${tm_file} initfini-array.h"
11355 if test x"$dwarf2" = xyes
11356 then tm_file="$tm_file tm-dwarf2.h"
11359 # Say what files are being used for the output code and MD file.
11360 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11361 echo "Using \`$srcdir/config/$md_file' as machine description file."
11363 # If any of the xm_file variables contain nonexistent files, warn
11364 # about them and drop them.
11367 for x in $build_xm_file; do
11368 if test -f $srcdir/config/$x
11369 then bx="$bx $x"
11370 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11371 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11373 done
11374 build_xm_file="$bx"
11377 for x in $host_xm_file; do
11378 if test -f $srcdir/config/$x
11379 then hx="$hx $x"
11380 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11381 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11383 done
11384 host_xm_file="$hx"
11387 for x in $xm_file; do
11388 if test -f $srcdir/config/$x
11389 then tx="$tx $x"
11390 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11391 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11393 done
11394 xm_file="$tx"
11396 count=a
11397 for f in $tm_file; do
11398 count=${count}x
11399 done
11400 if test $count = ax; then
11401 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11402 else
11403 echo "Using the following target machine macro files:"
11404 for f in $tm_file; do
11405 echo " $srcdir/config/$f"
11406 done
11409 if test x$need_64bit_hwint = xyes; then
11411 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11415 if test x$use_long_long_for_widest_fast_int = xyes; then
11417 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11421 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11423 cat >>confdefs.h <<_ACEOF
11424 #define HAVE_GNU_LD $gnu_ld_bool
11425 _ACEOF
11428 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11430 cat >>confdefs.h <<_ACEOF
11431 #define HAVE_GNU_AS $gnu_as_bool
11432 _ACEOF
11435 count=a
11436 for f in $host_xm_file; do
11437 count=${count}x
11438 done
11439 if test $count = a; then
11441 elif test $count = ax; then
11442 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11443 else
11444 echo "Using the following host machine macro files:"
11445 for f in $host_xm_file; do
11446 echo " $srcdir/config/$f"
11447 done
11449 echo "Using ${out_host_hook_obj} for host machine hooks."
11451 if test "$host_xm_file" != "$build_xm_file"; then
11452 count=a
11453 for f in $build_xm_file; do
11454 count=${count}x
11455 done
11456 if test $count = a; then
11458 elif test $count = ax; then
11459 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11460 else
11461 echo "Using the following build machine macro files:"
11462 for f in $build_xm_file; do
11463 echo " $srcdir/config/$f"
11464 done
11468 if test -n "$configured_native_system_header_dir"; then
11469 native_system_header_dir=$configured_native_system_header_dir
11471 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11474 case ${host} in
11475 powerpc*-*-darwin*)
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11477 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11478 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11479 $as_echo_n "(cached) " >&6
11480 else
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11484 #include <sys/cdefs.h>
11485 #include <sys/signal.h>
11486 #include <ucontext.h>
11487 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11489 _ACEOF
11490 if ac_fn_c_try_compile "$LINENO"; then :
11491 gcc_cv_mcontext_underscores=no
11492 else
11493 gcc_cv_mcontext_underscores=yes
11495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11498 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11499 if test $gcc_cv_mcontext_underscores = yes; then
11501 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11505 esac
11507 # ---------
11508 # Threading
11509 # ---------
11511 # Check if a valid thread package
11512 case ${enable_threads} in
11513 "" | no)
11514 # No threads
11515 target_thread_file='single'
11517 yes)
11518 # default
11519 target_thread_file='single'
11521 aix | dce | lynx | mipssde | posix | rtems | \
11522 single | tpf | vxworks | win32)
11523 target_thread_file=${enable_threads}
11526 echo "${enable_threads} is an unknown thread package" 1>&2
11527 exit 1
11529 esac
11531 if test x${thread_file} = x; then
11532 # No thread file set by target-specific clauses in config.gcc,
11533 # so use file chosen by default logic above
11534 thread_file=${target_thread_file}
11537 # --------
11538 # UNSORTED
11539 # --------
11541 use_cxa_atexit=no
11542 if test x$enable___cxa_atexit = xyes || \
11543 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11544 if test x$host = x$target; then
11545 case $host in
11546 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11547 # keyed to flag_use_cxa_atexit
11548 *-*-mingw32*)
11549 use_cxa_atexit=yes
11552 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11553 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11554 use_cxa_atexit=yes
11555 else
11556 echo "__cxa_atexit can't be enabled on this target"
11560 esac
11561 else
11562 # We can't check for __cxa_atexit when building a cross, so assume
11563 # it is available
11564 use_cxa_atexit=yes
11566 if test x$use_cxa_atexit = xyes; then
11568 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11573 # Look for a file containing extra machine modes.
11574 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11575 extra_modes_file='$(srcdir)'/config/${extra_modes}
11578 cat >>confdefs.h <<_ACEOF
11579 #define EXTRA_MODES_FILE "config/$extra_modes"
11580 _ACEOF
11584 # Convert extra_options into a form suitable for Makefile use.
11585 extra_opt_files=
11586 all_opt_files=
11587 for f in $extra_options; do
11588 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11589 all_opt_files="$all_opt_files $srcdir/config/$f"
11590 done
11593 # auto-host.h is the file containing items generated by autoconf and is
11594 # the first file included by config.h.
11595 # If host=build, it is correct to have bconfig include auto-host.h
11596 # as well. If host!=build, we are in error and need to do more
11597 # work to find out the build config parameters.
11598 if test x$host = x$build
11599 then
11600 build_auto=auto-host.h
11601 else
11602 # We create a subdir, then run autoconf in the subdir.
11603 # To prevent recursion we set host and build for the new
11604 # invocation of configure to the build for this invocation
11605 # of configure.
11606 tempdir=build.$$
11607 rm -rf $tempdir
11608 mkdir $tempdir
11609 cd $tempdir
11610 case ${srcdir} in
11611 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11612 *) realsrcdir=../${srcdir};;
11613 esac
11614 saved_CFLAGS="${CFLAGS}"
11615 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11616 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11617 ${realsrcdir}/configure \
11618 --enable-languages=${enable_languages-all} \
11619 --target=$target_alias --host=$build_alias --build=$build_alias
11620 CFLAGS="${saved_CFLAGS}"
11622 # We just finished tests for the build machine, so rename
11623 # the file auto-build.h in the gcc directory.
11624 mv auto-host.h ../auto-build.h
11625 cd ..
11626 rm -rf $tempdir
11627 build_auto=auto-build.h
11631 tm_file="${tm_file} defaults.h"
11632 tm_p_file="${tm_p_file} tm-preds.h"
11633 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11634 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11635 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11636 # put this back in temporarily.
11637 xm_file="auto-host.h ansidecl.h ${xm_file}"
11639 # --------
11640 # UNSORTED
11641 # --------
11643 # Compile in configure arguments.
11644 if test -f configargs.h ; then
11645 # Being re-configured.
11646 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11647 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11648 else
11649 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11652 # Double all backslashes and backslash all quotes to turn
11653 # gcc_config_arguments into a C string.
11654 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11655 $gcc_config_arguments
11657 gcc_config_arguments_str=`cat conftest.out`
11658 rm -f conftest.out
11660 cat > configargs.h <<EOF
11661 /* Generated automatically. */
11662 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11663 static const char thread_model[] = "$thread_file";
11665 static const struct {
11666 const char *name, *value;
11667 } configure_default_options[] = $configure_default_options;
11670 gcc_BASEVER=`cat $srcdir/BASE-VER`
11671 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11672 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11673 if test -f $srcdir/REVISION ; then
11674 gcc_REVISION=`cat $srcdir/REVISION`
11675 else
11676 gcc_REVISION=""
11678 cat > plugin-version.h <<EOF
11679 #include "configargs.h"
11681 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11682 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11683 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11684 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11686 static char basever[] = "$gcc_BASEVER";
11687 static char datestamp[] = "$gcc_DATESTAMP";
11688 static char devphase[] = "$gcc_DEVPHASE";
11689 static char revision[] = "$gcc_REVISION";
11691 /* FIXME plugins: We should make the version information more precise.
11692 One way to do is to add a checksum. */
11694 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11695 devphase, revision,
11696 configuration_arguments};
11699 # Internationalization
11700 # If we haven't got the data from the intl directory,
11701 # assume NLS is disabled.
11702 USE_NLS=no
11703 LIBINTL=
11704 LIBINTL_DEP=
11705 INCINTL=
11706 XGETTEXT=
11707 GMSGFMT=
11708 POSUB=
11710 if test -f ../intl/config.intl; then
11711 . ../intl/config.intl
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11714 $as_echo_n "checking whether NLS is requested... " >&6; }
11715 if test x"$USE_NLS" != xyes; then
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11718 else
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11720 $as_echo "yes" >&6; }
11722 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11726 $as_echo_n "checking for catalogs to be installed... " >&6; }
11727 # Look for .po and .gmo files in the source directory.
11728 CATALOGS=
11729 XLINGUAS=
11730 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11731 # If there aren't any .gmo files the shell will give us the
11732 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11733 # weeded out.
11734 case "$cat" in *\**)
11735 continue;;
11736 esac
11737 # The quadruple backslash is collapsed to a double backslash
11738 # by the backticks, then collapsed again by the double quotes,
11739 # leaving us with one backslash in the sed expression (right
11740 # before the dot that mustn't act as a wildcard).
11741 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11742 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11743 # The user is allowed to set LINGUAS to a list of languages to
11744 # install catalogs for. If it's empty that means "all of them."
11745 if test "x$LINGUAS" = x; then
11746 CATALOGS="$CATALOGS $cat"
11747 XLINGUAS="$XLINGUAS $lang"
11748 else
11749 case "$LINGUAS" in *$lang*)
11750 CATALOGS="$CATALOGS $cat"
11751 XLINGUAS="$XLINGUAS $lang"
11753 esac
11755 done
11756 LINGUAS="$XLINGUAS"
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11758 $as_echo "$LINGUAS" >&6; }
11761 DATADIRNAME=share
11763 INSTOBJEXT=.mo
11765 GENCAT=gencat
11767 CATOBJEXT=.gmo
11771 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11772 # -liconv on the link line twice.
11773 case "$LIBINTL" in *$LIBICONV*)
11774 LIBICONV= ;;
11775 esac
11777 # Check whether --enable-secureplt was given.
11778 if test "${enable_secureplt+set}" = set; then :
11779 enableval=$enable_secureplt;
11783 # Check whether --enable-leading-mingw64-underscores was given.
11784 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11785 enableval=$enable_leading_mingw64_underscores;
11788 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11790 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11794 # Check whether --enable-cld was given.
11795 if test "${enable_cld+set}" = set; then :
11796 enableval=$enable_cld;
11797 else
11798 enable_cld=no
11802 # Check whether --enable-frame-pointer was given.
11803 if test "${enable_frame_pointer+set}" = set; then :
11804 enableval=$enable_frame_pointer;
11805 else
11807 case $target_os in
11808 linux* | darwin[8912]*)
11809 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11810 # DWARF2.
11811 enable_frame_pointer=no
11814 enable_frame_pointer=yes
11816 esac
11821 # Windows32 Registry support for specifying GCC installation paths.
11822 # Check whether --enable-win32-registry was given.
11823 if test "${enable_win32_registry+set}" = set; then :
11824 enableval=$enable_win32_registry;
11828 case $host_os in
11829 win32 | pe | cygwin* | mingw32* | uwin*)
11830 if test "x$enable_win32_registry" != xno; then
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11832 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11833 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11834 $as_echo_n "(cached) " >&6
11835 else
11836 ac_func_search_save_LIBS=$LIBS
11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h. */
11840 /* Override any GCC internal prototype to avoid an error.
11841 Use char because int might match the return type of a GCC
11842 builtin and then its argument prototype would still apply. */
11843 #ifdef __cplusplus
11844 extern "C"
11845 #endif
11846 char RegOpenKeyExA ();
11848 main ()
11850 return RegOpenKeyExA ();
11852 return 0;
11854 _ACEOF
11855 for ac_lib in '' advapi32; do
11856 if test -z "$ac_lib"; then
11857 ac_res="none required"
11858 else
11859 ac_res=-l$ac_lib
11860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11862 if ac_fn_c_try_link "$LINENO"; then :
11863 ac_cv_search_RegOpenKeyExA=$ac_res
11865 rm -f core conftest.err conftest.$ac_objext \
11866 conftest$ac_exeext
11867 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11868 break
11870 done
11871 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11873 else
11874 ac_cv_search_RegOpenKeyExA=no
11876 rm conftest.$ac_ext
11877 LIBS=$ac_func_search_save_LIBS
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11880 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11881 ac_res=$ac_cv_search_RegOpenKeyExA
11882 if test "$ac_res" != no; then :
11883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11885 else
11886 enable_win32_registry=no
11891 if test "x$enable_win32_registry" != xno; then
11893 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11896 if test "x$enable_win32_registry" != xyes \
11897 && test "x$enable_win32_registry" != x; then
11899 cat >>confdefs.h <<_ACEOF
11900 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11901 _ACEOF
11906 esac
11908 # Get an absolute path to the GCC top-level source directory
11909 holddir=`${PWDCMD-pwd}`
11910 cd $srcdir
11911 topdir=`${PWDCMD-pwd}`
11912 cd $holddir
11914 # Conditionalize the makefile for this host machine.
11915 xmake_file=
11916 for f in ${host_xmake_file}
11918 if test -f ${srcdir}/config/$f
11919 then
11920 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11922 done
11924 # Conditionalize the makefile for this target machine.
11925 tmake_file_=
11926 for f in ${tmake_file}
11928 if test -f ${srcdir}/config/$f
11929 then
11930 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11932 done
11933 tmake_file="${tmake_file_}"
11935 out_object_file=`basename $out_file .c`.o
11936 common_out_object_file=`basename $common_out_file .c`.o
11938 tm_file_list="options.h"
11939 tm_include_list="options.h insn-constants.h"
11940 for f in $tm_file; do
11941 case $f in
11942 ./* )
11943 f=`echo $f | sed 's/^..//'`
11944 tm_file_list="${tm_file_list} $f"
11945 tm_include_list="${tm_include_list} $f"
11947 defaults.h )
11948 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11949 tm_include_list="${tm_include_list} $f"
11952 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11953 tm_include_list="${tm_include_list} config/$f"
11955 esac
11956 done
11958 tm_p_file_list=
11959 tm_p_include_list=
11960 for f in $tm_p_file; do
11961 case $f in
11962 tm-preds.h )
11963 tm_p_file_list="${tm_p_file_list} $f"
11964 tm_p_include_list="${tm_p_include_list} $f"
11967 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11968 tm_p_include_list="${tm_p_include_list} config/$f"
11969 esac
11970 done
11972 xm_file_list=
11973 xm_include_list=
11974 for f in $xm_file; do
11975 case $f in
11976 ansidecl.h )
11977 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11978 xm_include_list="${xm_include_list} $f"
11980 auto-host.h )
11981 xm_file_list="${xm_file_list} $f"
11982 xm_include_list="${xm_include_list} $f"
11985 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11986 xm_include_list="${xm_include_list} config/$f"
11988 esac
11989 done
11991 host_xm_file_list=
11992 host_xm_include_list=
11993 for f in $host_xm_file; do
11994 case $f in
11995 ansidecl.h )
11996 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11997 host_xm_include_list="${host_xm_include_list} $f"
11999 auto-host.h )
12000 host_xm_file_list="${host_xm_file_list} $f"
12001 host_xm_include_list="${host_xm_include_list} $f"
12004 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12005 host_xm_include_list="${host_xm_include_list} config/$f"
12007 esac
12008 done
12010 build_xm_file_list=
12011 for f in $build_xm_file; do
12012 case $f in
12013 ansidecl.h )
12014 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12015 build_xm_include_list="${build_xm_include_list} $f"
12017 auto-build.h | auto-host.h )
12018 build_xm_file_list="${build_xm_file_list} $f"
12019 build_xm_include_list="${build_xm_include_list} $f"
12022 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12023 build_xm_include_list="${build_xm_include_list} config/$f"
12025 esac
12026 done
12028 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12029 # cross-compiler which does not use the native headers and libraries.
12030 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12031 CROSS=
12032 ALL=all.internal
12033 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12035 if test "x$with_build_sysroot" != x; then
12036 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12037 else
12038 # This value is used, even on a native system, because
12039 # CROSS_SYSTEM_HEADER_DIR is just
12040 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12041 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12044 if test x$host != x$target
12045 then
12046 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12047 ALL=all.cross
12048 SYSTEM_HEADER_DIR=$build_system_header_dir
12049 case "$host","$target" in
12050 # Darwin crosses can use the host system's libraries and headers,
12051 # because of the fat library support. Of course, it must be the
12052 # same version of Darwin on both sides. Allow the user to
12053 # just say --target=foo-darwin without a version number to mean
12054 # "the version on this system".
12055 *-*-darwin*,*-*-darwin*)
12056 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12057 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12058 if test $hostos = $targetos -o $targetos = darwin ; then
12059 CROSS=
12060 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12061 with_headers=yes
12065 i?86-*-*,x86_64-*-* \
12066 | powerpc*-*-*,powerpc64*-*-*)
12067 CROSS="$CROSS -DNATIVE_CROSS" ;;
12068 esac
12070 case $target in
12071 *-*-mingw*)
12072 if test "x$with_headers" = x; then
12073 with_headers=yes
12078 esac
12079 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12080 SYSTEM_HEADER_DIR=$build_system_header_dir
12083 # If this is a cross-compiler that does not
12084 # have its own set of headers then define
12085 # inhibit_libc
12087 # If this is using newlib, without having the headers available now,
12088 # then define inhibit_libc in LIBGCC2_CFLAGS.
12089 # This prevents libgcc2 from containing any code which requires libc
12090 # support.
12091 : ${inhibit_libc=false}
12092 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12093 test x$with_newlib = xyes ; } &&
12094 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12095 inhibit_libc=true
12099 # When building gcc with a cross-compiler, we need to adjust things so
12100 # that the generator programs are still built with the native compiler.
12101 # Also, we cannot run fixincludes.
12103 # These are the normal (build=host) settings:
12104 CC_FOR_BUILD='$(CC)'
12105 CXX_FOR_BUILD='$(CXX)'
12106 BUILD_CFLAGS='$(ALL_CFLAGS)'
12107 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12108 BUILD_LDFLAGS='$(LDFLAGS)'
12109 STMP_FIXINC=stmp-fixinc
12111 # And these apply if build != host, or we are generating coverage data
12112 if test x$build != x$host || test "x$coverage_flags" != x
12113 then
12114 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12115 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12118 # Expand extra_headers to include complete path.
12119 # This substitutes for lots of t-* files.
12120 extra_headers_list=
12121 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12122 for file in ${extra_headers} ; do
12123 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12124 done
12126 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12127 if test x"$use_gcc_tgmath" = xyes
12128 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12131 # Define collect2 in Makefile.
12132 case $host_can_use_collect2 in
12133 no) collect2= ;;
12134 *) collect2='collect2$(exeext)' ;;
12135 esac
12138 # Add a definition of USE_COLLECT2 if system wants one.
12139 case $use_collect2 in
12140 no) use_collect2= ;;
12141 "") ;;
12143 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12144 xm_defines="${xm_defines} USE_COLLECT2"
12145 case $host_can_use_collect2 in
12147 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12149 esac
12151 esac
12154 cat >>confdefs.h <<_ACEOF
12155 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12156 _ACEOF
12159 # ---------------------------
12160 # Assembler & linker features
12161 # ---------------------------
12163 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12164 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12165 # However when ld-new is first executed from the build tree, libtool will
12166 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12167 # to the build tree. While doing this we need to use the previous-stage
12168 # linker, or we have an infinite loop. The presence of a shell script as
12169 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12170 # the gcc/collect-ld script. So we need to know how libtool works, or
12171 # exec-tool will fail.
12174 case `pwd` in
12175 *\ * | *\ *)
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12177 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12178 esac
12182 macro_version='2.2.7a'
12183 macro_revision='1.3134'
12197 ltmain="$ac_aux_dir/ltmain.sh"
12199 # Backslashify metacharacters that are still active within
12200 # double-quoted strings.
12201 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12203 # Same as above, but do not quote variable references.
12204 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12206 # Sed substitution to delay expansion of an escaped shell variable in a
12207 # double_quote_subst'ed string.
12208 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12210 # Sed substitution to delay expansion of an escaped single quote.
12211 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12213 # Sed substitution to avoid accidental globbing in evaled expressions
12214 no_glob_subst='s/\*/\\\*/g'
12216 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12217 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12218 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12221 $as_echo_n "checking how to print strings... " >&6; }
12222 # Test print first, because it will be a builtin if present.
12223 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12224 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12225 ECHO='print -r --'
12226 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12227 ECHO='printf %s\n'
12228 else
12229 # Use this function as a fallback that always works.
12230 func_fallback_echo ()
12232 eval 'cat <<_LTECHO_EOF
12234 _LTECHO_EOF'
12236 ECHO='func_fallback_echo'
12239 # func_echo_all arg...
12240 # Invoke $ECHO with all args, space-separated.
12241 func_echo_all ()
12243 $ECHO ""
12246 case "$ECHO" in
12247 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12248 $as_echo "printf" >&6; } ;;
12249 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12250 $as_echo "print -r" >&6; } ;;
12251 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12252 $as_echo "cat" >&6; } ;;
12253 esac
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12269 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12270 if test "${ac_cv_path_SED+set}" = set; then :
12271 $as_echo_n "(cached) " >&6
12272 else
12273 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12274 for ac_i in 1 2 3 4 5 6 7; do
12275 ac_script="$ac_script$as_nl$ac_script"
12276 done
12277 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12278 { ac_script=; unset ac_script;}
12279 if test -z "$SED"; then
12280 ac_path_SED_found=false
12281 # Loop through the user's path and test for each of PROGNAME-LIST
12282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283 for as_dir in $PATH
12285 IFS=$as_save_IFS
12286 test -z "$as_dir" && as_dir=.
12287 for ac_prog in sed gsed; do
12288 for ac_exec_ext in '' $ac_executable_extensions; do
12289 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12290 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12291 # Check for GNU ac_path_SED and select it if it is found.
12292 # Check for GNU $ac_path_SED
12293 case `"$ac_path_SED" --version 2>&1` in
12294 *GNU*)
12295 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12297 ac_count=0
12298 $as_echo_n 0123456789 >"conftest.in"
12299 while :
12301 cat "conftest.in" "conftest.in" >"conftest.tmp"
12302 mv "conftest.tmp" "conftest.in"
12303 cp "conftest.in" "conftest.nl"
12304 $as_echo '' >> "conftest.nl"
12305 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12307 as_fn_arith $ac_count + 1 && ac_count=$as_val
12308 if test $ac_count -gt ${ac_path_SED_max-0}; then
12309 # Best one so far, save it but keep looking for a better one
12310 ac_cv_path_SED="$ac_path_SED"
12311 ac_path_SED_max=$ac_count
12313 # 10*(2^10) chars as input seems more than enough
12314 test $ac_count -gt 10 && break
12315 done
12316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12317 esac
12319 $ac_path_SED_found && break 3
12320 done
12321 done
12322 done
12323 IFS=$as_save_IFS
12324 if test -z "$ac_cv_path_SED"; then
12325 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12327 else
12328 ac_cv_path_SED=$SED
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12333 $as_echo "$ac_cv_path_SED" >&6; }
12334 SED="$ac_cv_path_SED"
12335 rm -f conftest.sed
12337 test -z "$SED" && SED=sed
12338 Xsed="$SED -e 1s/^X//"
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12351 $as_echo_n "checking for fgrep... " >&6; }
12352 if test "${ac_cv_path_FGREP+set}" = set; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12356 then ac_cv_path_FGREP="$GREP -F"
12357 else
12358 if test -z "$FGREP"; then
12359 ac_path_FGREP_found=false
12360 # Loop through the user's path and test for each of PROGNAME-LIST
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12364 IFS=$as_save_IFS
12365 test -z "$as_dir" && as_dir=.
12366 for ac_prog in fgrep; do
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12369 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12370 # Check for GNU ac_path_FGREP and select it if it is found.
12371 # Check for GNU $ac_path_FGREP
12372 case `"$ac_path_FGREP" --version 2>&1` in
12373 *GNU*)
12374 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12376 ac_count=0
12377 $as_echo_n 0123456789 >"conftest.in"
12378 while :
12380 cat "conftest.in" "conftest.in" >"conftest.tmp"
12381 mv "conftest.tmp" "conftest.in"
12382 cp "conftest.in" "conftest.nl"
12383 $as_echo 'FGREP' >> "conftest.nl"
12384 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12386 as_fn_arith $ac_count + 1 && ac_count=$as_val
12387 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12388 # Best one so far, save it but keep looking for a better one
12389 ac_cv_path_FGREP="$ac_path_FGREP"
12390 ac_path_FGREP_max=$ac_count
12392 # 10*(2^10) chars as input seems more than enough
12393 test $ac_count -gt 10 && break
12394 done
12395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12396 esac
12398 $ac_path_FGREP_found && break 3
12399 done
12400 done
12401 done
12402 IFS=$as_save_IFS
12403 if test -z "$ac_cv_path_FGREP"; then
12404 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12406 else
12407 ac_cv_path_FGREP=$FGREP
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12413 $as_echo "$ac_cv_path_FGREP" >&6; }
12414 FGREP="$ac_cv_path_FGREP"
12417 test -z "$GREP" && GREP=grep
12437 # Check whether --with-gnu-ld was given.
12438 if test "${with_gnu_ld+set}" = set; then :
12439 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12440 else
12441 with_gnu_ld=no
12444 ac_prog=ld
12445 if test "$GCC" = yes; then
12446 # Check if gcc -print-prog-name=ld gives a path.
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12448 $as_echo_n "checking for ld used by $CC... " >&6; }
12449 case $host in
12450 *-*-mingw*)
12451 # gcc leaves a trailing carriage return which upsets mingw
12452 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12454 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12455 esac
12456 case $ac_prog in
12457 # Accept absolute paths.
12458 [\\/]* | ?:[\\/]*)
12459 re_direlt='/[^/][^/]*/\.\./'
12460 # Canonicalize the pathname of ld
12461 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12462 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12463 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12464 done
12465 test -z "$LD" && LD="$ac_prog"
12468 # If it fails, then pretend we aren't using GCC.
12469 ac_prog=ld
12472 # If it is relative, then search for the first ld in PATH.
12473 with_gnu_ld=unknown
12475 esac
12476 elif test "$with_gnu_ld" = yes; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12478 $as_echo_n "checking for GNU ld... " >&6; }
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12481 $as_echo_n "checking for non-GNU ld... " >&6; }
12483 if test "${lt_cv_path_LD+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 if test -z "$LD"; then
12487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12488 for ac_dir in $PATH; do
12489 IFS="$lt_save_ifs"
12490 test -z "$ac_dir" && ac_dir=.
12491 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12492 lt_cv_path_LD="$ac_dir/$ac_prog"
12493 # Check to see if the program is GNU ld. I'd rather use --version,
12494 # but apparently some variants of GNU ld only accept -v.
12495 # Break only if it was the GNU/non-GNU ld that we prefer.
12496 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12497 *GNU* | *'with BFD'*)
12498 test "$with_gnu_ld" != no && break
12501 test "$with_gnu_ld" != yes && break
12503 esac
12505 done
12506 IFS="$lt_save_ifs"
12507 else
12508 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12512 LD="$lt_cv_path_LD"
12513 if test -n "$LD"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12515 $as_echo "$LD" >&6; }
12516 else
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12520 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12522 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12523 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12524 $as_echo_n "(cached) " >&6
12525 else
12526 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12527 case `$LD -v 2>&1 </dev/null` in
12528 *GNU* | *'with BFD'*)
12529 lt_cv_prog_gnu_ld=yes
12532 lt_cv_prog_gnu_ld=no
12534 esac
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12537 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12538 with_gnu_ld=$lt_cv_prog_gnu_ld
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12549 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12550 if test "${lt_cv_path_NM+set}" = set; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 if test -n "$NM"; then
12554 # Let the user override the test.
12555 lt_cv_path_NM="$NM"
12556 else
12557 lt_nm_to_check="${ac_tool_prefix}nm"
12558 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12559 lt_nm_to_check="$lt_nm_to_check nm"
12561 for lt_tmp_nm in $lt_nm_to_check; do
12562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12563 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12564 IFS="$lt_save_ifs"
12565 test -z "$ac_dir" && ac_dir=.
12566 tmp_nm="$ac_dir/$lt_tmp_nm"
12567 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12568 # Check to see if the nm accepts a BSD-compat flag.
12569 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12570 # nm: unknown option "B" ignored
12571 # Tru64's nm complains that /dev/null is an invalid object file
12572 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12573 */dev/null* | *'Invalid file or object type'*)
12574 lt_cv_path_NM="$tmp_nm -B"
12575 break
12578 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12579 */dev/null*)
12580 lt_cv_path_NM="$tmp_nm -p"
12581 break
12584 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12585 continue # so that we can try to find one that supports BSD flags
12587 esac
12589 esac
12591 done
12592 IFS="$lt_save_ifs"
12593 done
12594 : ${lt_cv_path_NM=no}
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12598 $as_echo "$lt_cv_path_NM" >&6; }
12599 if test "$lt_cv_path_NM" != "no"; then
12600 NM="$lt_cv_path_NM"
12601 else
12602 # Didn't find any BSD compatible name lister, look for dumpbin.
12603 if test -n "$DUMPBIN"; then :
12604 # Let the user override the test.
12605 else
12606 if test -n "$ac_tool_prefix"; then
12607 for ac_prog in dumpbin "link -dump"
12609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12612 $as_echo_n "checking for $ac_word... " >&6; }
12613 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12614 $as_echo_n "(cached) " >&6
12615 else
12616 if test -n "$DUMPBIN"; then
12617 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12618 else
12619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12620 for as_dir in $PATH
12622 IFS=$as_save_IFS
12623 test -z "$as_dir" && as_dir=.
12624 for ac_exec_ext in '' $ac_executable_extensions; do
12625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12626 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12628 break 2
12630 done
12631 done
12632 IFS=$as_save_IFS
12636 DUMPBIN=$ac_cv_prog_DUMPBIN
12637 if test -n "$DUMPBIN"; then
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12639 $as_echo "$DUMPBIN" >&6; }
12640 else
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642 $as_echo "no" >&6; }
12646 test -n "$DUMPBIN" && break
12647 done
12649 if test -z "$DUMPBIN"; then
12650 ac_ct_DUMPBIN=$DUMPBIN
12651 for ac_prog in dumpbin "link -dump"
12653 # Extract the first word of "$ac_prog", so it can be a program name with args.
12654 set dummy $ac_prog; ac_word=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656 $as_echo_n "checking for $ac_word... " >&6; }
12657 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 if test -n "$ac_ct_DUMPBIN"; then
12661 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12662 else
12663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12664 for as_dir in $PATH
12666 IFS=$as_save_IFS
12667 test -z "$as_dir" && as_dir=.
12668 for ac_exec_ext in '' $ac_executable_extensions; do
12669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12670 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12672 break 2
12674 done
12675 done
12676 IFS=$as_save_IFS
12680 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12681 if test -n "$ac_ct_DUMPBIN"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12683 $as_echo "$ac_ct_DUMPBIN" >&6; }
12684 else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12690 test -n "$ac_ct_DUMPBIN" && break
12691 done
12693 if test "x$ac_ct_DUMPBIN" = x; then
12694 DUMPBIN=":"
12695 else
12696 case $cross_compiling:$ac_tool_warned in
12697 yes:)
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12700 ac_tool_warned=yes ;;
12701 esac
12702 DUMPBIN=$ac_ct_DUMPBIN
12706 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12707 *COFF*)
12708 DUMPBIN="$DUMPBIN -symbols"
12711 DUMPBIN=:
12713 esac
12716 if test "$DUMPBIN" != ":"; then
12717 NM="$DUMPBIN"
12720 test -z "$NM" && NM=nm
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12728 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12729 if test "${lt_cv_nm_interface+set}" = set; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12732 lt_cv_nm_interface="BSD nm"
12733 echo "int some_variable = 0;" > conftest.$ac_ext
12734 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12735 (eval "$ac_compile" 2>conftest.err)
12736 cat conftest.err >&5
12737 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12738 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12739 cat conftest.err >&5
12740 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12741 cat conftest.out >&5
12742 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12743 lt_cv_nm_interface="MS dumpbin"
12745 rm -f conftest*
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12748 $as_echo "$lt_cv_nm_interface" >&6; }
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12751 $as_echo_n "checking whether ln -s works... " >&6; }
12752 LN_S=$as_ln_s
12753 if test "$LN_S" = "ln -s"; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12755 $as_echo "yes" >&6; }
12756 else
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12758 $as_echo "no, using $LN_S" >&6; }
12761 # find the maximum length of command line arguments
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12763 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12764 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12765 $as_echo_n "(cached) " >&6
12766 else
12768 teststring="ABCD"
12770 case $build_os in
12771 msdosdjgpp*)
12772 # On DJGPP, this test can blow up pretty badly due to problems in libc
12773 # (any single argument exceeding 2000 bytes causes a buffer overrun
12774 # during glob expansion). Even if it were fixed, the result of this
12775 # check would be larger than it should be.
12776 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12779 gnu*)
12780 # Under GNU Hurd, this test is not required because there is
12781 # no limit to the length of command line arguments.
12782 # Libtool will interpret -1 as no limit whatsoever
12783 lt_cv_sys_max_cmd_len=-1;
12786 cygwin* | mingw* | cegcc*)
12787 # On Win9x/ME, this test blows up -- it succeeds, but takes
12788 # about 5 minutes as the teststring grows exponentially.
12789 # Worse, since 9x/ME are not pre-emptively multitasking,
12790 # you end up with a "frozen" computer, even though with patience
12791 # the test eventually succeeds (with a max line length of 256k).
12792 # Instead, let's just punt: use the minimum linelength reported by
12793 # all of the supported platforms: 8192 (on NT/2K/XP).
12794 lt_cv_sys_max_cmd_len=8192;
12797 mint*)
12798 # On MiNT this can take a long time and run out of memory.
12799 lt_cv_sys_max_cmd_len=8192;
12802 amigaos*)
12803 # On AmigaOS with pdksh, this test takes hours, literally.
12804 # So we just punt and use a minimum line length of 8192.
12805 lt_cv_sys_max_cmd_len=8192;
12808 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12809 # This has been around since 386BSD, at least. Likely further.
12810 if test -x /sbin/sysctl; then
12811 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12812 elif test -x /usr/sbin/sysctl; then
12813 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12814 else
12815 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12817 # And add a safety zone
12818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12822 interix*)
12823 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12824 lt_cv_sys_max_cmd_len=196608
12827 osf*)
12828 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12829 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12830 # nice to cause kernel panics so lets avoid the loop below.
12831 # First set a reasonable default.
12832 lt_cv_sys_max_cmd_len=16384
12834 if test -x /sbin/sysconfig; then
12835 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12836 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12837 esac
12840 sco3.2v5*)
12841 lt_cv_sys_max_cmd_len=102400
12843 sysv5* | sco5v6* | sysv4.2uw2*)
12844 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12845 if test -n "$kargmax"; then
12846 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12847 else
12848 lt_cv_sys_max_cmd_len=32768
12852 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12853 if test -n "$lt_cv_sys_max_cmd_len"; then
12854 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12855 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12856 else
12857 # Make teststring a little bigger before we do anything with it.
12858 # a 1K string should be a reasonable start.
12859 for i in 1 2 3 4 5 6 7 8 ; do
12860 teststring=$teststring$teststring
12861 done
12862 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12863 # If test is not a shell built-in, we'll probably end up computing a
12864 # maximum length that is only half of the actual maximum length, but
12865 # we can't tell.
12866 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12867 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12868 test $i != 17 # 1/2 MB should be enough
12870 i=`expr $i + 1`
12871 teststring=$teststring$teststring
12872 done
12873 # Only check the string length outside the loop.
12874 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12875 teststring=
12876 # Add a significant safety factor because C++ compilers can tack on
12877 # massive amounts of additional arguments before passing them to the
12878 # linker. It appears as though 1/2 is a usable value.
12879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12882 esac
12886 if test -n $lt_cv_sys_max_cmd_len ; then
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12888 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12889 else
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12891 $as_echo "none" >&6; }
12893 max_cmd_len=$lt_cv_sys_max_cmd_len
12900 : ${CP="cp -f"}
12901 : ${MV="mv -f"}
12902 : ${RM="rm -f"}
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12905 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12906 # Try some XSI features
12907 xsi_shell=no
12908 ( _lt_dummy="a/b/c"
12909 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12910 = c,a/b,, \
12911 && eval 'test $(( 1 + 1 )) -eq 2 \
12912 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12913 && xsi_shell=yes
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12915 $as_echo "$xsi_shell" >&6; }
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12919 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12920 lt_shell_append=no
12921 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12922 >/dev/null 2>&1 \
12923 && lt_shell_append=yes
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12925 $as_echo "$lt_shell_append" >&6; }
12928 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12929 lt_unset=unset
12930 else
12931 lt_unset=false
12938 # test EBCDIC or ASCII
12939 case `echo X|tr X '\101'` in
12940 A) # ASCII based system
12941 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12942 lt_SP2NL='tr \040 \012'
12943 lt_NL2SP='tr \015\012 \040\040'
12945 *) # EBCDIC based system
12946 lt_SP2NL='tr \100 \n'
12947 lt_NL2SP='tr \r\n \100\100'
12949 esac
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12960 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12961 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 lt_cv_ld_reload_flag='-r'
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12967 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12968 reload_flag=$lt_cv_ld_reload_flag
12969 case $reload_flag in
12970 "" | " "*) ;;
12971 *) reload_flag=" $reload_flag" ;;
12972 esac
12973 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12974 case $host_os in
12975 darwin*)
12976 if test "$GCC" = yes; then
12977 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12978 else
12979 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12982 esac
12992 if test -n "$ac_tool_prefix"; then
12993 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12994 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12996 $as_echo_n "checking for $ac_word... " >&6; }
12997 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 if test -n "$OBJDUMP"; then
13001 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13002 else
13003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004 for as_dir in $PATH
13006 IFS=$as_save_IFS
13007 test -z "$as_dir" && as_dir=.
13008 for ac_exec_ext in '' $ac_executable_extensions; do
13009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13010 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 break 2
13014 done
13015 done
13016 IFS=$as_save_IFS
13020 OBJDUMP=$ac_cv_prog_OBJDUMP
13021 if test -n "$OBJDUMP"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13023 $as_echo "$OBJDUMP" >&6; }
13024 else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13031 if test -z "$ac_cv_prog_OBJDUMP"; then
13032 ac_ct_OBJDUMP=$OBJDUMP
13033 # Extract the first word of "objdump", so it can be a program name with args.
13034 set dummy objdump; ac_word=$2
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036 $as_echo_n "checking for $ac_word... " >&6; }
13037 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13038 $as_echo_n "(cached) " >&6
13039 else
13040 if test -n "$ac_ct_OBJDUMP"; then
13041 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13042 else
13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044 for as_dir in $PATH
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13050 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13054 done
13055 done
13056 IFS=$as_save_IFS
13060 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13061 if test -n "$ac_ct_OBJDUMP"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13063 $as_echo "$ac_ct_OBJDUMP" >&6; }
13064 else
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 $as_echo "no" >&6; }
13069 if test "x$ac_ct_OBJDUMP" = x; then
13070 OBJDUMP="false"
13071 else
13072 case $cross_compiling:$ac_tool_warned in
13073 yes:)
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13076 ac_tool_warned=yes ;;
13077 esac
13078 OBJDUMP=$ac_ct_OBJDUMP
13080 else
13081 OBJDUMP="$ac_cv_prog_OBJDUMP"
13084 test -z "$OBJDUMP" && OBJDUMP=objdump
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13095 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13096 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13097 $as_echo_n "(cached) " >&6
13098 else
13099 lt_cv_file_magic_cmd='$MAGIC_CMD'
13100 lt_cv_file_magic_test_file=
13101 lt_cv_deplibs_check_method='unknown'
13102 # Need to set the preceding variable on all platforms that support
13103 # interlibrary dependencies.
13104 # 'none' -- dependencies not supported.
13105 # `unknown' -- same as none, but documents that we really don't know.
13106 # 'pass_all' -- all dependencies passed with no checks.
13107 # 'test_compile' -- check by making test program.
13108 # 'file_magic [[regex]]' -- check by looking for files in library path
13109 # which responds to the $file_magic_cmd with a given extended regex.
13110 # If you have `file' or equivalent on your system and you're not sure
13111 # whether `pass_all' will *always* work, you probably want this one.
13113 case $host_os in
13114 aix[4-9]*)
13115 lt_cv_deplibs_check_method=pass_all
13118 beos*)
13119 lt_cv_deplibs_check_method=pass_all
13122 bsdi[45]*)
13123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13124 lt_cv_file_magic_cmd='/usr/bin/file -L'
13125 lt_cv_file_magic_test_file=/shlib/libc.so
13128 cygwin*)
13129 # func_win32_libid is a shell function defined in ltmain.sh
13130 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13131 lt_cv_file_magic_cmd='func_win32_libid'
13134 mingw* | pw32*)
13135 # Base MSYS/MinGW do not provide the 'file' command needed by
13136 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13137 # unless we find 'file', for example because we are cross-compiling.
13138 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13139 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13140 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13141 lt_cv_file_magic_cmd='func_win32_libid'
13142 else
13143 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13144 lt_cv_file_magic_cmd='$OBJDUMP -f'
13148 cegcc*)
13149 # use the weaker test based on 'objdump'. See mingw*.
13150 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13151 lt_cv_file_magic_cmd='$OBJDUMP -f'
13154 darwin* | rhapsody*)
13155 lt_cv_deplibs_check_method=pass_all
13158 freebsd* | dragonfly*)
13159 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13160 case $host_cpu in
13161 i*86 )
13162 # Not sure whether the presence of OpenBSD here was a mistake.
13163 # Let's accept both of them until this is cleared up.
13164 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13165 lt_cv_file_magic_cmd=/usr/bin/file
13166 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13168 esac
13169 else
13170 lt_cv_deplibs_check_method=pass_all
13174 gnu*)
13175 lt_cv_deplibs_check_method=pass_all
13178 haiku*)
13179 lt_cv_deplibs_check_method=pass_all
13182 hpux10.20* | hpux11*)
13183 lt_cv_file_magic_cmd=/usr/bin/file
13184 case $host_cpu in
13185 ia64*)
13186 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13187 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13189 hppa*64*)
13190 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]'
13191 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13194 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13195 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13197 esac
13200 interix[3-9]*)
13201 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13205 irix5* | irix6* | nonstopux*)
13206 case $LD in
13207 *-32|*"-32 ") libmagic=32-bit;;
13208 *-n32|*"-n32 ") libmagic=N32;;
13209 *-64|*"-64 ") libmagic=64-bit;;
13210 *) libmagic=never-match;;
13211 esac
13212 lt_cv_deplibs_check_method=pass_all
13215 # This must be Linux ELF.
13216 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13217 lt_cv_deplibs_check_method=pass_all
13220 netbsd*)
13221 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13223 else
13224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13228 newos6*)
13229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13230 lt_cv_file_magic_cmd=/usr/bin/file
13231 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13234 *nto* | *qnx*)
13235 lt_cv_deplibs_check_method=pass_all
13238 openbsd*)
13239 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13241 else
13242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13246 osf3* | osf4* | osf5*)
13247 lt_cv_deplibs_check_method=pass_all
13250 rdos*)
13251 lt_cv_deplibs_check_method=pass_all
13254 solaris*)
13255 lt_cv_deplibs_check_method=pass_all
13258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13259 lt_cv_deplibs_check_method=pass_all
13262 sysv4 | sysv4.3*)
13263 case $host_vendor in
13264 motorola)
13265 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]'
13266 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13268 ncr)
13269 lt_cv_deplibs_check_method=pass_all
13271 sequent)
13272 lt_cv_file_magic_cmd='/bin/file'
13273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13275 sni)
13276 lt_cv_file_magic_cmd='/bin/file'
13277 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13278 lt_cv_file_magic_test_file=/lib/libc.so
13280 siemens)
13281 lt_cv_deplibs_check_method=pass_all
13284 lt_cv_deplibs_check_method=pass_all
13286 esac
13289 tpf*)
13290 lt_cv_deplibs_check_method=pass_all
13292 esac
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13296 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13297 file_magic_cmd=$lt_cv_file_magic_cmd
13298 deplibs_check_method=$lt_cv_deplibs_check_method
13299 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13312 if test -n "$ac_tool_prefix"; then
13313 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13314 set dummy ${ac_tool_prefix}ar; ac_word=$2
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13316 $as_echo_n "checking for $ac_word... " >&6; }
13317 if test "${ac_cv_prog_AR+set}" = set; then :
13318 $as_echo_n "(cached) " >&6
13319 else
13320 if test -n "$AR"; then
13321 ac_cv_prog_AR="$AR" # Let the user override the test.
13322 else
13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13326 IFS=$as_save_IFS
13327 test -z "$as_dir" && as_dir=.
13328 for ac_exec_ext in '' $ac_executable_extensions; do
13329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13330 ac_cv_prog_AR="${ac_tool_prefix}ar"
13331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13332 break 2
13334 done
13335 done
13336 IFS=$as_save_IFS
13340 AR=$ac_cv_prog_AR
13341 if test -n "$AR"; then
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13343 $as_echo "$AR" >&6; }
13344 else
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13351 if test -z "$ac_cv_prog_AR"; then
13352 ac_ct_AR=$AR
13353 # Extract the first word of "ar", so it can be a program name with args.
13354 set dummy ar; ac_word=$2
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356 $as_echo_n "checking for $ac_word... " >&6; }
13357 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13358 $as_echo_n "(cached) " >&6
13359 else
13360 if test -n "$ac_ct_AR"; then
13361 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13362 else
13363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13364 for as_dir in $PATH
13366 IFS=$as_save_IFS
13367 test -z "$as_dir" && as_dir=.
13368 for ac_exec_ext in '' $ac_executable_extensions; do
13369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13370 ac_cv_prog_ac_ct_AR="ar"
13371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13372 break 2
13374 done
13375 done
13376 IFS=$as_save_IFS
13380 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13381 if test -n "$ac_ct_AR"; then
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13383 $as_echo "$ac_ct_AR" >&6; }
13384 else
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13389 if test "x$ac_ct_AR" = x; then
13390 AR="false"
13391 else
13392 case $cross_compiling:$ac_tool_warned in
13393 yes:)
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13396 ac_tool_warned=yes ;;
13397 esac
13398 AR=$ac_ct_AR
13400 else
13401 AR="$ac_cv_prog_AR"
13404 test -z "$AR" && AR=ar
13405 test -z "$AR_FLAGS" && AR_FLAGS=cru
13417 if test -n "$ac_tool_prefix"; then
13418 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13419 set dummy ${ac_tool_prefix}strip; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421 $as_echo_n "checking for $ac_word... " >&6; }
13422 if test "${ac_cv_prog_STRIP+set}" = set; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 if test -n "$STRIP"; then
13426 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13427 else
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in $PATH
13431 IFS=$as_save_IFS
13432 test -z "$as_dir" && as_dir=.
13433 for ac_exec_ext in '' $ac_executable_extensions; do
13434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13435 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13437 break 2
13439 done
13440 done
13441 IFS=$as_save_IFS
13445 STRIP=$ac_cv_prog_STRIP
13446 if test -n "$STRIP"; then
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13448 $as_echo "$STRIP" >&6; }
13449 else
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451 $as_echo "no" >&6; }
13456 if test -z "$ac_cv_prog_STRIP"; then
13457 ac_ct_STRIP=$STRIP
13458 # Extract the first word of "strip", so it can be a program name with args.
13459 set dummy strip; ac_word=$2
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461 $as_echo_n "checking for $ac_word... " >&6; }
13462 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13463 $as_echo_n "(cached) " >&6
13464 else
13465 if test -n "$ac_ct_STRIP"; then
13466 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13467 else
13468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469 for as_dir in $PATH
13471 IFS=$as_save_IFS
13472 test -z "$as_dir" && as_dir=.
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13475 ac_cv_prog_ac_ct_STRIP="strip"
13476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13477 break 2
13479 done
13480 done
13481 IFS=$as_save_IFS
13485 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13486 if test -n "$ac_ct_STRIP"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13488 $as_echo "$ac_ct_STRIP" >&6; }
13489 else
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491 $as_echo "no" >&6; }
13494 if test "x$ac_ct_STRIP" = x; then
13495 STRIP=":"
13496 else
13497 case $cross_compiling:$ac_tool_warned in
13498 yes:)
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13501 ac_tool_warned=yes ;;
13502 esac
13503 STRIP=$ac_ct_STRIP
13505 else
13506 STRIP="$ac_cv_prog_STRIP"
13509 test -z "$STRIP" && STRIP=:
13516 if test -n "$ac_tool_prefix"; then
13517 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13518 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13520 $as_echo_n "checking for $ac_word... " >&6; }
13521 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13522 $as_echo_n "(cached) " >&6
13523 else
13524 if test -n "$RANLIB"; then
13525 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13526 else
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $PATH
13530 IFS=$as_save_IFS
13531 test -z "$as_dir" && as_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
13533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13534 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13536 break 2
13538 done
13539 done
13540 IFS=$as_save_IFS
13544 RANLIB=$ac_cv_prog_RANLIB
13545 if test -n "$RANLIB"; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13547 $as_echo "$RANLIB" >&6; }
13548 else
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550 $as_echo "no" >&6; }
13555 if test -z "$ac_cv_prog_RANLIB"; then
13556 ac_ct_RANLIB=$RANLIB
13557 # Extract the first word of "ranlib", so it can be a program name with args.
13558 set dummy ranlib; ac_word=$2
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13560 $as_echo_n "checking for $ac_word... " >&6; }
13561 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13562 $as_echo_n "(cached) " >&6
13563 else
13564 if test -n "$ac_ct_RANLIB"; then
13565 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13566 else
13567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568 for as_dir in $PATH
13570 IFS=$as_save_IFS
13571 test -z "$as_dir" && as_dir=.
13572 for ac_exec_ext in '' $ac_executable_extensions; do
13573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13574 ac_cv_prog_ac_ct_RANLIB="ranlib"
13575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13576 break 2
13578 done
13579 done
13580 IFS=$as_save_IFS
13584 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13585 if test -n "$ac_ct_RANLIB"; then
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13587 $as_echo "$ac_ct_RANLIB" >&6; }
13588 else
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13590 $as_echo "no" >&6; }
13593 if test "x$ac_ct_RANLIB" = x; then
13594 RANLIB=":"
13595 else
13596 case $cross_compiling:$ac_tool_warned in
13597 yes:)
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13600 ac_tool_warned=yes ;;
13601 esac
13602 RANLIB=$ac_ct_RANLIB
13604 else
13605 RANLIB="$ac_cv_prog_RANLIB"
13608 test -z "$RANLIB" && RANLIB=:
13615 # Determine commands to create old-style static archives.
13616 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13617 old_postinstall_cmds='chmod 644 $oldlib'
13618 old_postuninstall_cmds=
13620 if test -n "$RANLIB"; then
13621 case $host_os in
13622 openbsd*)
13623 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13626 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13628 esac
13629 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13632 case $host_os in
13633 darwin*)
13634 lock_old_archive_extraction=yes ;;
13636 lock_old_archive_extraction=no ;;
13637 esac
13677 # If no C compiler was specified, use CC.
13678 LTCC=${LTCC-"$CC"}
13680 # If no C compiler flags were specified, use CFLAGS.
13681 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13683 # Allow CC to be a program name with arguments.
13684 compiler=$CC
13687 # Check for command to grab the raw symbol name followed by C symbol from nm.
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13689 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13690 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13691 $as_echo_n "(cached) " >&6
13692 else
13694 # These are sane defaults that work on at least a few old systems.
13695 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13697 # Character class describing NM global symbol codes.
13698 symcode='[BCDEGRST]'
13700 # Regexp to match symbols that can be accessed directly from C.
13701 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13703 # Define system-specific variables.
13704 case $host_os in
13705 aix*)
13706 symcode='[BCDT]'
13708 cygwin* | mingw* | pw32* | cegcc*)
13709 symcode='[ABCDGISTW]'
13711 hpux*)
13712 if test "$host_cpu" = ia64; then
13713 symcode='[ABCDEGRST]'
13716 irix* | nonstopux*)
13717 symcode='[BCDEGRST]'
13719 osf*)
13720 symcode='[BCDEGQRST]'
13722 solaris*)
13723 symcode='[BDRT]'
13725 sco3.2v5*)
13726 symcode='[DT]'
13728 sysv4.2uw2*)
13729 symcode='[DT]'
13731 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13732 symcode='[ABDT]'
13734 sysv4)
13735 symcode='[DFNSTU]'
13737 esac
13739 # If we're using GNU nm, then use its standard symbol codes.
13740 case `$NM -V 2>&1` in
13741 *GNU* | *'with BFD'*)
13742 symcode='[ABCDGIRSTW]' ;;
13743 esac
13745 # Transform an extracted symbol line into a proper C declaration.
13746 # Some systems (esp. on ia64) link data and code symbols differently,
13747 # so use this general approach.
13748 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13750 # Transform an extracted symbol line into symbol name and symbol address
13751 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13752 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'"
13754 # Handle CRLF in mingw tool chain
13755 opt_cr=
13756 case $build_os in
13757 mingw*)
13758 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13760 esac
13762 # Try without a prefix underscore, then with it.
13763 for ac_symprfx in "" "_"; do
13765 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13766 symxfrm="\\1 $ac_symprfx\\2 \\2"
13768 # Write the raw and C identifiers.
13769 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13770 # Fake it for dumpbin and say T for any non-static function
13771 # and D for any global variable.
13772 # Also find C++ and __fastcall symbols from MSVC++,
13773 # which start with @ or ?.
13774 lt_cv_sys_global_symbol_pipe="$AWK '"\
13775 " {last_section=section; section=\$ 3};"\
13776 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13777 " \$ 0!~/External *\|/{next};"\
13778 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13779 " {if(hide[section]) next};"\
13780 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13781 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13782 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13783 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13784 " ' prfx=^$ac_symprfx"
13785 else
13786 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13789 # Check to see that the pipe works correctly.
13790 pipe_works=no
13792 rm -f conftest*
13793 cat > conftest.$ac_ext <<_LT_EOF
13794 #ifdef __cplusplus
13795 extern "C" {
13796 #endif
13797 char nm_test_var;
13798 void nm_test_func(void);
13799 void nm_test_func(void){}
13800 #ifdef __cplusplus
13802 #endif
13803 int main(){nm_test_var='a';nm_test_func();return(0);}
13804 _LT_EOF
13806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13807 (eval $ac_compile) 2>&5
13808 ac_status=$?
13809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13810 test $ac_status = 0; }; then
13811 # Now try to grab the symbols.
13812 nlist=conftest.nm
13813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13814 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13815 ac_status=$?
13816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13817 test $ac_status = 0; } && test -s "$nlist"; then
13818 # Try sorting and uniquifying the output.
13819 if sort "$nlist" | uniq > "$nlist"T; then
13820 mv -f "$nlist"T "$nlist"
13821 else
13822 rm -f "$nlist"T
13825 # Make sure that we snagged all the symbols we need.
13826 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13827 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13828 cat <<_LT_EOF > conftest.$ac_ext
13829 #ifdef __cplusplus
13830 extern "C" {
13831 #endif
13833 _LT_EOF
13834 # Now generate the symbol file.
13835 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13837 cat <<_LT_EOF >> conftest.$ac_ext
13839 /* The mapping between symbol names and symbols. */
13840 const struct {
13841 const char *name;
13842 void *address;
13844 lt__PROGRAM__LTX_preloaded_symbols[] =
13846 { "@PROGRAM@", (void *) 0 },
13847 _LT_EOF
13848 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13849 cat <<\_LT_EOF >> conftest.$ac_ext
13850 {0, (void *) 0}
13853 /* This works around a problem in FreeBSD linker */
13854 #ifdef FREEBSD_WORKAROUND
13855 static const void *lt_preloaded_setup() {
13856 return lt__PROGRAM__LTX_preloaded_symbols;
13858 #endif
13860 #ifdef __cplusplus
13862 #endif
13863 _LT_EOF
13864 # Now try linking the two files.
13865 mv conftest.$ac_objext conftstm.$ac_objext
13866 lt_save_LIBS="$LIBS"
13867 lt_save_CFLAGS="$CFLAGS"
13868 LIBS="conftstm.$ac_objext"
13869 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13871 (eval $ac_link) 2>&5
13872 ac_status=$?
13873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13874 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13875 pipe_works=yes
13877 LIBS="$lt_save_LIBS"
13878 CFLAGS="$lt_save_CFLAGS"
13879 else
13880 echo "cannot find nm_test_func in $nlist" >&5
13882 else
13883 echo "cannot find nm_test_var in $nlist" >&5
13885 else
13886 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13888 else
13889 echo "$progname: failed program was:" >&5
13890 cat conftest.$ac_ext >&5
13892 rm -rf conftest* conftst*
13894 # Do not use the global_symbol_pipe unless it works.
13895 if test "$pipe_works" = yes; then
13896 break
13897 else
13898 lt_cv_sys_global_symbol_pipe=
13900 done
13904 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13905 lt_cv_sys_global_symbol_to_cdecl=
13907 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13909 $as_echo "failed" >&6; }
13910 else
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13912 $as_echo "ok" >&6; }
13936 # Check whether --enable-libtool-lock was given.
13937 if test "${enable_libtool_lock+set}" = set; then :
13938 enableval=$enable_libtool_lock;
13941 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13943 # Some flags need to be propagated to the compiler or linker for good
13944 # libtool support.
13945 case $host in
13946 ia64-*-hpux*)
13947 # Find out which ABI we are using.
13948 echo 'int i;' > conftest.$ac_ext
13949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13950 (eval $ac_compile) 2>&5
13951 ac_status=$?
13952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13953 test $ac_status = 0; }; then
13954 case `/usr/bin/file conftest.$ac_objext` in
13955 *ELF-32*)
13956 HPUX_IA64_MODE="32"
13958 *ELF-64*)
13959 HPUX_IA64_MODE="64"
13961 esac
13963 rm -rf conftest*
13965 *-*-irix6*)
13966 # Find out which ABI we are using.
13967 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13969 (eval $ac_compile) 2>&5
13970 ac_status=$?
13971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13972 test $ac_status = 0; }; then
13973 if test "$lt_cv_prog_gnu_ld" = yes; then
13974 case `/usr/bin/file conftest.$ac_objext` in
13975 *32-bit*)
13976 LD="${LD-ld} -melf32bsmip"
13978 *N32*)
13979 LD="${LD-ld} -melf32bmipn32"
13981 *64-bit*)
13982 LD="${LD-ld} -melf64bmip"
13984 esac
13985 else
13986 case `/usr/bin/file conftest.$ac_objext` in
13987 *32-bit*)
13988 LD="${LD-ld} -32"
13990 *N32*)
13991 LD="${LD-ld} -n32"
13993 *64-bit*)
13994 LD="${LD-ld} -64"
13996 esac
13999 rm -rf conftest*
14002 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
14003 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14004 # Find out which ABI we are using.
14005 echo 'int i;' > conftest.$ac_ext
14006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14007 (eval $ac_compile) 2>&5
14008 ac_status=$?
14009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14010 test $ac_status = 0; }; then
14011 case `/usr/bin/file conftest.o` in
14012 *32-bit*)
14013 case $host in
14014 x86_64-*kfreebsd*-gnu)
14015 LD="${LD-ld} -m elf_i386_fbsd"
14017 x86_64-*linux*)
14018 case `/usr/bin/file conftest.o` in
14019 *x86-64*)
14020 LD="${LD-ld} -m elf32_x86_64"
14023 LD="${LD-ld} -m elf_i386"
14025 esac
14027 ppc64-*linux*|powerpc64-*linux*)
14028 LD="${LD-ld} -m elf32ppclinux"
14030 s390x-*linux*)
14031 LD="${LD-ld} -m elf_s390"
14033 sparc64-*linux*)
14034 LD="${LD-ld} -m elf32_sparc"
14036 esac
14038 *64-bit*)
14039 case $host in
14040 x86_64-*kfreebsd*-gnu)
14041 LD="${LD-ld} -m elf_x86_64_fbsd"
14043 x86_64-*linux*)
14044 LD="${LD-ld} -m elf_x86_64"
14046 ppc*-*linux*|powerpc*-*linux*)
14047 LD="${LD-ld} -m elf64ppc"
14049 s390*-*linux*|s390*-*tpf*)
14050 LD="${LD-ld} -m elf64_s390"
14052 sparc*-*linux*)
14053 LD="${LD-ld} -m elf64_sparc"
14055 esac
14057 esac
14059 rm -rf conftest*
14062 *-*-sco3.2v5*)
14063 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14064 SAVE_CFLAGS="$CFLAGS"
14065 CFLAGS="$CFLAGS -belf"
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14067 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14068 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14069 $as_echo_n "(cached) " >&6
14070 else
14071 ac_ext=c
14072 ac_cpp='$CPP $CPPFLAGS'
14073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14078 /* end confdefs.h. */
14081 main ()
14085 return 0;
14087 _ACEOF
14088 if ac_fn_c_try_link "$LINENO"; then :
14089 lt_cv_cc_needs_belf=yes
14090 else
14091 lt_cv_cc_needs_belf=no
14093 rm -f core conftest.err conftest.$ac_objext \
14094 conftest$ac_exeext conftest.$ac_ext
14095 ac_ext=c
14096 ac_cpp='$CPP $CPPFLAGS'
14097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14103 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14104 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14105 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14106 CFLAGS="$SAVE_CFLAGS"
14109 sparc*-*solaris*)
14110 # Find out which ABI we are using.
14111 echo 'int i;' > conftest.$ac_ext
14112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14113 (eval $ac_compile) 2>&5
14114 ac_status=$?
14115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14116 test $ac_status = 0; }; then
14117 case `/usr/bin/file conftest.o` in
14118 *64-bit*)
14119 case $lt_cv_prog_gnu_ld in
14120 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14122 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14123 LD="${LD-ld} -64"
14126 esac
14128 esac
14130 rm -rf conftest*
14132 esac
14134 need_locks="$enable_libtool_lock"
14137 case $host_os in
14138 rhapsody* | darwin*)
14139 if test -n "$ac_tool_prefix"; then
14140 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14141 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14143 $as_echo_n "checking for $ac_word... " >&6; }
14144 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14145 $as_echo_n "(cached) " >&6
14146 else
14147 if test -n "$DSYMUTIL"; then
14148 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14149 else
14150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14151 for as_dir in $PATH
14153 IFS=$as_save_IFS
14154 test -z "$as_dir" && as_dir=.
14155 for ac_exec_ext in '' $ac_executable_extensions; do
14156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14157 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14159 break 2
14161 done
14162 done
14163 IFS=$as_save_IFS
14167 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14168 if test -n "$DSYMUTIL"; then
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14170 $as_echo "$DSYMUTIL" >&6; }
14171 else
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14173 $as_echo "no" >&6; }
14178 if test -z "$ac_cv_prog_DSYMUTIL"; then
14179 ac_ct_DSYMUTIL=$DSYMUTIL
14180 # Extract the first word of "dsymutil", so it can be a program name with args.
14181 set dummy dsymutil; ac_word=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14183 $as_echo_n "checking for $ac_word... " >&6; }
14184 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187 if test -n "$ac_ct_DSYMUTIL"; then
14188 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14189 else
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14193 IFS=$as_save_IFS
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14197 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14199 break 2
14201 done
14202 done
14203 IFS=$as_save_IFS
14207 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14208 if test -n "$ac_ct_DSYMUTIL"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14210 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14211 else
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14213 $as_echo "no" >&6; }
14216 if test "x$ac_ct_DSYMUTIL" = x; then
14217 DSYMUTIL=":"
14218 else
14219 case $cross_compiling:$ac_tool_warned in
14220 yes:)
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14223 ac_tool_warned=yes ;;
14224 esac
14225 DSYMUTIL=$ac_ct_DSYMUTIL
14227 else
14228 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14231 if test -n "$ac_tool_prefix"; then
14232 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14233 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14235 $as_echo_n "checking for $ac_word... " >&6; }
14236 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14237 $as_echo_n "(cached) " >&6
14238 else
14239 if test -n "$NMEDIT"; then
14240 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14241 else
14242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14243 for as_dir in $PATH
14245 IFS=$as_save_IFS
14246 test -z "$as_dir" && as_dir=.
14247 for ac_exec_ext in '' $ac_executable_extensions; do
14248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14249 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14251 break 2
14253 done
14254 done
14255 IFS=$as_save_IFS
14259 NMEDIT=$ac_cv_prog_NMEDIT
14260 if test -n "$NMEDIT"; then
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14262 $as_echo "$NMEDIT" >&6; }
14263 else
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265 $as_echo "no" >&6; }
14270 if test -z "$ac_cv_prog_NMEDIT"; then
14271 ac_ct_NMEDIT=$NMEDIT
14272 # Extract the first word of "nmedit", so it can be a program name with args.
14273 set dummy nmedit; ac_word=$2
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14275 $as_echo_n "checking for $ac_word... " >&6; }
14276 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14277 $as_echo_n "(cached) " >&6
14278 else
14279 if test -n "$ac_ct_NMEDIT"; then
14280 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14281 else
14282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283 for as_dir in $PATH
14285 IFS=$as_save_IFS
14286 test -z "$as_dir" && as_dir=.
14287 for ac_exec_ext in '' $ac_executable_extensions; do
14288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14289 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14291 break 2
14293 done
14294 done
14295 IFS=$as_save_IFS
14299 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14300 if test -n "$ac_ct_NMEDIT"; then
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14302 $as_echo "$ac_ct_NMEDIT" >&6; }
14303 else
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14305 $as_echo "no" >&6; }
14308 if test "x$ac_ct_NMEDIT" = x; then
14309 NMEDIT=":"
14310 else
14311 case $cross_compiling:$ac_tool_warned in
14312 yes:)
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14315 ac_tool_warned=yes ;;
14316 esac
14317 NMEDIT=$ac_ct_NMEDIT
14319 else
14320 NMEDIT="$ac_cv_prog_NMEDIT"
14323 if test -n "$ac_tool_prefix"; then
14324 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14325 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14327 $as_echo_n "checking for $ac_word... " >&6; }
14328 if test "${ac_cv_prog_LIPO+set}" = set; then :
14329 $as_echo_n "(cached) " >&6
14330 else
14331 if test -n "$LIPO"; then
14332 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14333 else
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335 for as_dir in $PATH
14337 IFS=$as_save_IFS
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14341 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14343 break 2
14345 done
14346 done
14347 IFS=$as_save_IFS
14351 LIPO=$ac_cv_prog_LIPO
14352 if test -n "$LIPO"; then
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14354 $as_echo "$LIPO" >&6; }
14355 else
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357 $as_echo "no" >&6; }
14362 if test -z "$ac_cv_prog_LIPO"; then
14363 ac_ct_LIPO=$LIPO
14364 # Extract the first word of "lipo", so it can be a program name with args.
14365 set dummy lipo; ac_word=$2
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14367 $as_echo_n "checking for $ac_word... " >&6; }
14368 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14369 $as_echo_n "(cached) " >&6
14370 else
14371 if test -n "$ac_ct_LIPO"; then
14372 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14373 else
14374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375 for as_dir in $PATH
14377 IFS=$as_save_IFS
14378 test -z "$as_dir" && as_dir=.
14379 for ac_exec_ext in '' $ac_executable_extensions; do
14380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14381 ac_cv_prog_ac_ct_LIPO="lipo"
14382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14383 break 2
14385 done
14386 done
14387 IFS=$as_save_IFS
14391 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14392 if test -n "$ac_ct_LIPO"; then
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14394 $as_echo "$ac_ct_LIPO" >&6; }
14395 else
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14397 $as_echo "no" >&6; }
14400 if test "x$ac_ct_LIPO" = x; then
14401 LIPO=":"
14402 else
14403 case $cross_compiling:$ac_tool_warned in
14404 yes:)
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14407 ac_tool_warned=yes ;;
14408 esac
14409 LIPO=$ac_ct_LIPO
14411 else
14412 LIPO="$ac_cv_prog_LIPO"
14415 if test -n "$ac_tool_prefix"; then
14416 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14417 set dummy ${ac_tool_prefix}otool; ac_word=$2
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14419 $as_echo_n "checking for $ac_word... " >&6; }
14420 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14421 $as_echo_n "(cached) " >&6
14422 else
14423 if test -n "$OTOOL"; then
14424 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14425 else
14426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14427 for as_dir in $PATH
14429 IFS=$as_save_IFS
14430 test -z "$as_dir" && as_dir=.
14431 for ac_exec_ext in '' $ac_executable_extensions; do
14432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14433 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14435 break 2
14437 done
14438 done
14439 IFS=$as_save_IFS
14443 OTOOL=$ac_cv_prog_OTOOL
14444 if test -n "$OTOOL"; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14446 $as_echo "$OTOOL" >&6; }
14447 else
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14449 $as_echo "no" >&6; }
14454 if test -z "$ac_cv_prog_OTOOL"; then
14455 ac_ct_OTOOL=$OTOOL
14456 # Extract the first word of "otool", so it can be a program name with args.
14457 set dummy otool; ac_word=$2
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14459 $as_echo_n "checking for $ac_word... " >&6; }
14460 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14461 $as_echo_n "(cached) " >&6
14462 else
14463 if test -n "$ac_ct_OTOOL"; then
14464 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14465 else
14466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14467 for as_dir in $PATH
14469 IFS=$as_save_IFS
14470 test -z "$as_dir" && as_dir=.
14471 for ac_exec_ext in '' $ac_executable_extensions; do
14472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14473 ac_cv_prog_ac_ct_OTOOL="otool"
14474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14475 break 2
14477 done
14478 done
14479 IFS=$as_save_IFS
14483 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14484 if test -n "$ac_ct_OTOOL"; then
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14486 $as_echo "$ac_ct_OTOOL" >&6; }
14487 else
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14489 $as_echo "no" >&6; }
14492 if test "x$ac_ct_OTOOL" = x; then
14493 OTOOL=":"
14494 else
14495 case $cross_compiling:$ac_tool_warned in
14496 yes:)
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14499 ac_tool_warned=yes ;;
14500 esac
14501 OTOOL=$ac_ct_OTOOL
14503 else
14504 OTOOL="$ac_cv_prog_OTOOL"
14507 if test -n "$ac_tool_prefix"; then
14508 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14509 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14511 $as_echo_n "checking for $ac_word... " >&6; }
14512 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14513 $as_echo_n "(cached) " >&6
14514 else
14515 if test -n "$OTOOL64"; then
14516 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14517 else
14518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14519 for as_dir in $PATH
14521 IFS=$as_save_IFS
14522 test -z "$as_dir" && as_dir=.
14523 for ac_exec_ext in '' $ac_executable_extensions; do
14524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14525 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14527 break 2
14529 done
14530 done
14531 IFS=$as_save_IFS
14535 OTOOL64=$ac_cv_prog_OTOOL64
14536 if test -n "$OTOOL64"; then
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14538 $as_echo "$OTOOL64" >&6; }
14539 else
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14541 $as_echo "no" >&6; }
14546 if test -z "$ac_cv_prog_OTOOL64"; then
14547 ac_ct_OTOOL64=$OTOOL64
14548 # Extract the first word of "otool64", so it can be a program name with args.
14549 set dummy otool64; ac_word=$2
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14551 $as_echo_n "checking for $ac_word... " >&6; }
14552 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14553 $as_echo_n "(cached) " >&6
14554 else
14555 if test -n "$ac_ct_OTOOL64"; then
14556 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14557 else
14558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14559 for as_dir in $PATH
14561 IFS=$as_save_IFS
14562 test -z "$as_dir" && as_dir=.
14563 for ac_exec_ext in '' $ac_executable_extensions; do
14564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14565 ac_cv_prog_ac_ct_OTOOL64="otool64"
14566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14567 break 2
14569 done
14570 done
14571 IFS=$as_save_IFS
14575 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14576 if test -n "$ac_ct_OTOOL64"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14578 $as_echo "$ac_ct_OTOOL64" >&6; }
14579 else
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14581 $as_echo "no" >&6; }
14584 if test "x$ac_ct_OTOOL64" = x; then
14585 OTOOL64=":"
14586 else
14587 case $cross_compiling:$ac_tool_warned in
14588 yes:)
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14591 ac_tool_warned=yes ;;
14592 esac
14593 OTOOL64=$ac_ct_OTOOL64
14595 else
14596 OTOOL64="$ac_cv_prog_OTOOL64"
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14626 $as_echo_n "checking for -single_module linker flag... " >&6; }
14627 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14628 $as_echo_n "(cached) " >&6
14629 else
14630 lt_cv_apple_cc_single_mod=no
14631 if test -z "${LT_MULTI_MODULE}"; then
14632 # By default we will add the -single_module flag. You can override
14633 # by either setting the environment variable LT_MULTI_MODULE
14634 # non-empty at configure time, or by adding -multi_module to the
14635 # link flags.
14636 rm -rf libconftest.dylib*
14637 echo "int foo(void){return 1;}" > conftest.c
14638 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14639 -dynamiclib -Wl,-single_module conftest.c" >&5
14640 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14641 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14642 _lt_result=$?
14643 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14644 lt_cv_apple_cc_single_mod=yes
14645 else
14646 cat conftest.err >&5
14648 rm -rf libconftest.dylib*
14649 rm -f conftest.*
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14653 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14655 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14656 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14657 $as_echo_n "(cached) " >&6
14658 else
14659 lt_cv_ld_exported_symbols_list=no
14660 save_LDFLAGS=$LDFLAGS
14661 echo "_main" > conftest.sym
14662 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14664 /* end confdefs.h. */
14667 main ()
14671 return 0;
14673 _ACEOF
14674 if ac_fn_c_try_link "$LINENO"; then :
14675 lt_cv_ld_exported_symbols_list=yes
14676 else
14677 lt_cv_ld_exported_symbols_list=no
14679 rm -f core conftest.err conftest.$ac_objext \
14680 conftest$ac_exeext conftest.$ac_ext
14681 LDFLAGS="$save_LDFLAGS"
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14685 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14687 $as_echo_n "checking for -force_load linker flag... " >&6; }
14688 if test "${lt_cv_ld_force_load+set}" = set; then :
14689 $as_echo_n "(cached) " >&6
14690 else
14691 lt_cv_ld_force_load=no
14692 cat > conftest.c << _LT_EOF
14693 int forced_loaded() { return 2;}
14694 _LT_EOF
14695 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14696 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14697 echo "$AR cru libconftest.a conftest.o" >&5
14698 $AR cru libconftest.a conftest.o 2>&5
14699 cat > conftest.c << _LT_EOF
14700 int main() { return 0;}
14701 _LT_EOF
14702 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14703 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14704 _lt_result=$?
14705 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14706 lt_cv_ld_force_load=yes
14707 else
14708 cat conftest.err >&5
14710 rm -f conftest.err libconftest.a conftest conftest.c
14711 rm -rf conftest.dSYM
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14715 $as_echo "$lt_cv_ld_force_load" >&6; }
14716 case $host_os in
14717 rhapsody* | darwin1.[012])
14718 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14719 darwin1.*)
14720 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14721 darwin*) # darwin 5.x on
14722 # if running on 10.5 or later, the deployment target defaults
14723 # to the OS version, if on x86, and 10.4, the deployment
14724 # target defaults to 10.4. Don't you love it?
14725 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14726 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14727 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14728 10.[012]*)
14729 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14730 10.*)
14731 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14732 esac
14734 esac
14735 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14736 _lt_dar_single_mod='$single_module'
14738 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14739 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14740 else
14741 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14743 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14744 _lt_dsymutil='~$DSYMUTIL $lib || :'
14745 else
14746 _lt_dsymutil=
14749 esac
14751 for ac_header in dlfcn.h
14752 do :
14753 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14754 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14755 cat >>confdefs.h <<_ACEOF
14756 #define HAVE_DLFCN_H 1
14757 _ACEOF
14760 done
14766 # Set options
14770 enable_dlopen=no
14773 enable_win32_dll=no
14776 # Check whether --enable-shared was given.
14777 if test "${enable_shared+set}" = set; then :
14778 enableval=$enable_shared; p=${PACKAGE-default}
14779 case $enableval in
14780 yes) enable_shared=yes ;;
14781 no) enable_shared=no ;;
14783 enable_shared=no
14784 # Look at the argument we got. We use all the common list separators.
14785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14786 for pkg in $enableval; do
14787 IFS="$lt_save_ifs"
14788 if test "X$pkg" = "X$p"; then
14789 enable_shared=yes
14791 done
14792 IFS="$lt_save_ifs"
14794 esac
14795 else
14796 enable_shared=yes
14807 # Check whether --enable-static was given.
14808 if test "${enable_static+set}" = set; then :
14809 enableval=$enable_static; p=${PACKAGE-default}
14810 case $enableval in
14811 yes) enable_static=yes ;;
14812 no) enable_static=no ;;
14814 enable_static=no
14815 # Look at the argument we got. We use all the common list separators.
14816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14817 for pkg in $enableval; do
14818 IFS="$lt_save_ifs"
14819 if test "X$pkg" = "X$p"; then
14820 enable_static=yes
14822 done
14823 IFS="$lt_save_ifs"
14825 esac
14826 else
14827 enable_static=yes
14839 # Check whether --with-pic was given.
14840 if test "${with_pic+set}" = set; then :
14841 withval=$with_pic; pic_mode="$withval"
14842 else
14843 pic_mode=default
14847 test -z "$pic_mode" && pic_mode=default
14855 # Check whether --enable-fast-install was given.
14856 if test "${enable_fast_install+set}" = set; then :
14857 enableval=$enable_fast_install; p=${PACKAGE-default}
14858 case $enableval in
14859 yes) enable_fast_install=yes ;;
14860 no) enable_fast_install=no ;;
14862 enable_fast_install=no
14863 # Look at the argument we got. We use all the common list separators.
14864 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14865 for pkg in $enableval; do
14866 IFS="$lt_save_ifs"
14867 if test "X$pkg" = "X$p"; then
14868 enable_fast_install=yes
14870 done
14871 IFS="$lt_save_ifs"
14873 esac
14874 else
14875 enable_fast_install=yes
14888 # This can be used to rebuild libtool when needed
14889 LIBTOOL_DEPS="$ltmain"
14891 # Always use our own libtool.
14892 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14919 test -z "$LN_S" && LN_S="ln -s"
14934 if test -n "${ZSH_VERSION+set}" ; then
14935 setopt NO_GLOB_SUBST
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14939 $as_echo_n "checking for objdir... " >&6; }
14940 if test "${lt_cv_objdir+set}" = set; then :
14941 $as_echo_n "(cached) " >&6
14942 else
14943 rm -f .libs 2>/dev/null
14944 mkdir .libs 2>/dev/null
14945 if test -d .libs; then
14946 lt_cv_objdir=.libs
14947 else
14948 # MS-DOS does not allow filenames that begin with a dot.
14949 lt_cv_objdir=_libs
14951 rmdir .libs 2>/dev/null
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14954 $as_echo "$lt_cv_objdir" >&6; }
14955 objdir=$lt_cv_objdir
14961 cat >>confdefs.h <<_ACEOF
14962 #define LT_OBJDIR "$lt_cv_objdir/"
14963 _ACEOF
14968 case $host_os in
14969 aix3*)
14970 # AIX sometimes has problems with the GCC collect2 program. For some
14971 # reason, if we set the COLLECT_NAMES environment variable, the problems
14972 # vanish in a puff of smoke.
14973 if test "X${COLLECT_NAMES+set}" != Xset; then
14974 COLLECT_NAMES=
14975 export COLLECT_NAMES
14978 esac
14980 # Global variables:
14981 ofile=libtool
14982 can_build_shared=yes
14984 # All known linkers require a `.a' archive for static linking (except MSVC,
14985 # which needs '.lib').
14986 libext=a
14988 with_gnu_ld="$lt_cv_prog_gnu_ld"
14990 old_CC="$CC"
14991 old_CFLAGS="$CFLAGS"
14993 # Set sane defaults for various variables
14994 test -z "$CC" && CC=cc
14995 test -z "$LTCC" && LTCC=$CC
14996 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14997 test -z "$LD" && LD=ld
14998 test -z "$ac_objext" && ac_objext=o
15000 for cc_temp in $compiler""; do
15001 case $cc_temp in
15002 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15003 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15004 \-*) ;;
15005 *) break;;
15006 esac
15007 done
15008 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15011 # Only perform the check for file, if the check method requires it
15012 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15013 case $deplibs_check_method in
15014 file_magic*)
15015 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15017 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15018 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15019 $as_echo_n "(cached) " >&6
15020 else
15021 case $MAGIC_CMD in
15022 [\\/*] | ?:[\\/]*)
15023 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15026 lt_save_MAGIC_CMD="$MAGIC_CMD"
15027 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15028 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15029 for ac_dir in $ac_dummy; do
15030 IFS="$lt_save_ifs"
15031 test -z "$ac_dir" && ac_dir=.
15032 if test -f $ac_dir/${ac_tool_prefix}file; then
15033 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15034 if test -n "$file_magic_test_file"; then
15035 case $deplibs_check_method in
15036 "file_magic "*)
15037 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15038 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15039 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15040 $EGREP "$file_magic_regex" > /dev/null; then
15042 else
15043 cat <<_LT_EOF 1>&2
15045 *** Warning: the command libtool uses to detect shared libraries,
15046 *** $file_magic_cmd, produces output that libtool cannot recognize.
15047 *** The result is that libtool may fail to recognize shared libraries
15048 *** as such. This will affect the creation of libtool libraries that
15049 *** depend on shared libraries, but programs linked with such libtool
15050 *** libraries will work regardless of this problem. Nevertheless, you
15051 *** may want to report the problem to your system manager and/or to
15052 *** bug-libtool@gnu.org
15054 _LT_EOF
15055 fi ;;
15056 esac
15058 break
15060 done
15061 IFS="$lt_save_ifs"
15062 MAGIC_CMD="$lt_save_MAGIC_CMD"
15064 esac
15067 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15068 if test -n "$MAGIC_CMD"; then
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15070 $as_echo "$MAGIC_CMD" >&6; }
15071 else
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15073 $as_echo "no" >&6; }
15080 if test -z "$lt_cv_path_MAGIC_CMD"; then
15081 if test -n "$ac_tool_prefix"; then
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15083 $as_echo_n "checking for file... " >&6; }
15084 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15085 $as_echo_n "(cached) " >&6
15086 else
15087 case $MAGIC_CMD in
15088 [\\/*] | ?:[\\/]*)
15089 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15092 lt_save_MAGIC_CMD="$MAGIC_CMD"
15093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15094 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15095 for ac_dir in $ac_dummy; do
15096 IFS="$lt_save_ifs"
15097 test -z "$ac_dir" && ac_dir=.
15098 if test -f $ac_dir/file; then
15099 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15100 if test -n "$file_magic_test_file"; then
15101 case $deplibs_check_method in
15102 "file_magic "*)
15103 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15106 $EGREP "$file_magic_regex" > /dev/null; then
15108 else
15109 cat <<_LT_EOF 1>&2
15111 *** Warning: the command libtool uses to detect shared libraries,
15112 *** $file_magic_cmd, produces output that libtool cannot recognize.
15113 *** The result is that libtool may fail to recognize shared libraries
15114 *** as such. This will affect the creation of libtool libraries that
15115 *** depend on shared libraries, but programs linked with such libtool
15116 *** libraries will work regardless of this problem. Nevertheless, you
15117 *** may want to report the problem to your system manager and/or to
15118 *** bug-libtool@gnu.org
15120 _LT_EOF
15121 fi ;;
15122 esac
15124 break
15126 done
15127 IFS="$lt_save_ifs"
15128 MAGIC_CMD="$lt_save_MAGIC_CMD"
15130 esac
15133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15134 if test -n "$MAGIC_CMD"; then
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15136 $as_echo "$MAGIC_CMD" >&6; }
15137 else
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15139 $as_echo "no" >&6; }
15143 else
15144 MAGIC_CMD=:
15150 esac
15152 # Use C for the default configuration in the libtool script
15154 lt_save_CC="$CC"
15155 ac_ext=c
15156 ac_cpp='$CPP $CPPFLAGS'
15157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15162 # Source file extension for C test sources.
15163 ac_ext=c
15165 # Object file extension for compiled C test sources.
15166 objext=o
15167 objext=$objext
15169 # Code to be used in simple compile tests
15170 lt_simple_compile_test_code="int some_variable = 0;"
15172 # Code to be used in simple link tests
15173 lt_simple_link_test_code='int main(){return(0);}'
15181 # If no C compiler was specified, use CC.
15182 LTCC=${LTCC-"$CC"}
15184 # If no C compiler flags were specified, use CFLAGS.
15185 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15187 # Allow CC to be a program name with arguments.
15188 compiler=$CC
15190 # Save the default compiler, since it gets overwritten when the other
15191 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15192 compiler_DEFAULT=$CC
15194 # save warnings/boilerplate of simple test code
15195 ac_outfile=conftest.$ac_objext
15196 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15198 _lt_compiler_boilerplate=`cat conftest.err`
15199 $RM conftest*
15201 ac_outfile=conftest.$ac_objext
15202 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15204 _lt_linker_boilerplate=`cat conftest.err`
15205 $RM -r conftest*
15208 ## CAVEAT EMPTOR:
15209 ## There is no encapsulation within the following macros, do not change
15210 ## the running order or otherwise move them around unless you know exactly
15211 ## what you are doing...
15212 if test -n "$compiler"; then
15214 lt_prog_compiler_no_builtin_flag=
15216 if test "$GCC" = yes; then
15217 case $cc_basename in
15218 nvcc*)
15219 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15221 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15222 esac
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15225 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15226 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15227 $as_echo_n "(cached) " >&6
15228 else
15229 lt_cv_prog_compiler_rtti_exceptions=no
15230 ac_outfile=conftest.$ac_objext
15231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15232 lt_compiler_flag="-fno-rtti -fno-exceptions"
15233 # Insert the option either (1) after the last *FLAGS variable, or
15234 # (2) before a word containing "conftest.", or (3) at the end.
15235 # Note that $ac_compile itself does not contain backslashes and begins
15236 # with a dollar sign (not a hyphen), so the echo should work correctly.
15237 # The option is referenced via a variable to avoid confusing sed.
15238 lt_compile=`echo "$ac_compile" | $SED \
15239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15241 -e 's:$: $lt_compiler_flag:'`
15242 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15243 (eval "$lt_compile" 2>conftest.err)
15244 ac_status=$?
15245 cat conftest.err >&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 if (exit $ac_status) && test -s "$ac_outfile"; then
15248 # The compiler can only warn and ignore the option if not recognized
15249 # So say no if there are warnings other than the usual output.
15250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15252 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15253 lt_cv_prog_compiler_rtti_exceptions=yes
15256 $RM conftest*
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15260 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15262 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15263 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15264 else
15275 lt_prog_compiler_wl=
15276 lt_prog_compiler_pic=
15277 lt_prog_compiler_static=
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15280 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15282 if test "$GCC" = yes; then
15283 lt_prog_compiler_wl='-Wl,'
15284 lt_prog_compiler_static='-static'
15286 case $host_os in
15287 aix*)
15288 # All AIX code is PIC.
15289 if test "$host_cpu" = ia64; then
15290 # AIX 5 now supports IA64 processor
15291 lt_prog_compiler_static='-Bstatic'
15295 amigaos*)
15296 case $host_cpu in
15297 powerpc)
15298 # see comment about AmigaOS4 .so support
15299 lt_prog_compiler_pic='-fPIC'
15301 m68k)
15302 # FIXME: we need at least 68020 code to build shared libraries, but
15303 # adding the `-m68020' flag to GCC prevents building anything better,
15304 # like `-m68040'.
15305 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15307 esac
15310 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15311 # PIC is the default for these OSes.
15314 mingw* | cygwin* | pw32* | os2* | cegcc*)
15315 # This hack is so that the source file can tell whether it is being
15316 # built for inclusion in a dll (and should export symbols for example).
15317 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15318 # (--disable-auto-import) libraries
15319 lt_prog_compiler_pic='-DDLL_EXPORT'
15322 darwin* | rhapsody*)
15323 # PIC is the default on this platform
15324 # Common symbols not allowed in MH_DYLIB files
15325 lt_prog_compiler_pic='-fno-common'
15328 haiku*)
15329 # PIC is the default for Haiku.
15330 # The "-static" flag exists, but is broken.
15331 lt_prog_compiler_static=
15334 hpux*)
15335 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15336 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15337 # sets the default TLS model and affects inlining.
15338 case $host_cpu in
15339 hppa*64*)
15340 # +Z the default
15343 lt_prog_compiler_pic='-fPIC'
15345 esac
15348 interix[3-9]*)
15349 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15350 # Instead, we relocate shared libraries at runtime.
15353 msdosdjgpp*)
15354 # Just because we use GCC doesn't mean we suddenly get shared libraries
15355 # on systems that don't support them.
15356 lt_prog_compiler_can_build_shared=no
15357 enable_shared=no
15360 *nto* | *qnx*)
15361 # QNX uses GNU C++, but need to define -shared option too, otherwise
15362 # it will coredump.
15363 lt_prog_compiler_pic='-fPIC -shared'
15366 sysv4*MP*)
15367 if test -d /usr/nec; then
15368 lt_prog_compiler_pic=-Kconform_pic
15373 lt_prog_compiler_pic='-fPIC'
15375 esac
15377 case $cc_basename in
15378 nvcc*) # Cuda Compiler Driver 2.2
15379 lt_prog_compiler_wl='-Xlinker '
15380 lt_prog_compiler_pic='-Xcompiler -fPIC'
15382 esac
15383 else
15384 # PORTME Check for flag to pass linker flags through the system compiler.
15385 case $host_os in
15386 aix*)
15387 lt_prog_compiler_wl='-Wl,'
15388 if test "$host_cpu" = ia64; then
15389 # AIX 5 now supports IA64 processor
15390 lt_prog_compiler_static='-Bstatic'
15391 else
15392 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15396 mingw* | cygwin* | pw32* | os2* | cegcc*)
15397 # This hack is so that the source file can tell whether it is being
15398 # built for inclusion in a dll (and should export symbols for example).
15399 lt_prog_compiler_pic='-DDLL_EXPORT'
15402 hpux9* | hpux10* | hpux11*)
15403 lt_prog_compiler_wl='-Wl,'
15404 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15405 # not for PA HP-UX.
15406 case $host_cpu in
15407 hppa*64*|ia64*)
15408 # +Z the default
15411 lt_prog_compiler_pic='+Z'
15413 esac
15414 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15415 lt_prog_compiler_static='${wl}-a ${wl}archive'
15418 irix5* | irix6* | nonstopux*)
15419 lt_prog_compiler_wl='-Wl,'
15420 # PIC (with -KPIC) is the default.
15421 lt_prog_compiler_static='-non_shared'
15424 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15425 case $cc_basename in
15426 # old Intel for x86_64 which still supported -KPIC.
15427 ecc*)
15428 lt_prog_compiler_wl='-Wl,'
15429 lt_prog_compiler_pic='-KPIC'
15430 lt_prog_compiler_static='-static'
15432 # icc used to be incompatible with GCC.
15433 # ICC 10 doesn't accept -KPIC any more.
15434 icc* | ifort*)
15435 lt_prog_compiler_wl='-Wl,'
15436 lt_prog_compiler_pic='-fPIC'
15437 lt_prog_compiler_static='-static'
15439 # Lahey Fortran 8.1.
15440 lf95*)
15441 lt_prog_compiler_wl='-Wl,'
15442 lt_prog_compiler_pic='--shared'
15443 lt_prog_compiler_static='--static'
15445 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15446 # Portland Group compilers (*not* the Pentium gcc compiler,
15447 # which looks to be a dead project)
15448 lt_prog_compiler_wl='-Wl,'
15449 lt_prog_compiler_pic='-fpic'
15450 lt_prog_compiler_static='-Bstatic'
15452 ccc*)
15453 lt_prog_compiler_wl='-Wl,'
15454 # All Alpha code is PIC.
15455 lt_prog_compiler_static='-non_shared'
15457 xl* | bgxl* | bgf* | mpixl*)
15458 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15459 lt_prog_compiler_wl='-Wl,'
15460 lt_prog_compiler_pic='-qpic'
15461 lt_prog_compiler_static='-qstaticlink'
15464 case `$CC -V 2>&1 | sed 5q` in
15465 *Sun\ F* | *Sun*Fortran*)
15466 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15467 lt_prog_compiler_pic='-KPIC'
15468 lt_prog_compiler_static='-Bstatic'
15469 lt_prog_compiler_wl=''
15471 *Sun\ C*)
15472 # Sun C 5.9
15473 lt_prog_compiler_pic='-KPIC'
15474 lt_prog_compiler_static='-Bstatic'
15475 lt_prog_compiler_wl='-Wl,'
15477 esac
15479 esac
15482 newsos6)
15483 lt_prog_compiler_pic='-KPIC'
15484 lt_prog_compiler_static='-Bstatic'
15487 *nto* | *qnx*)
15488 # QNX uses GNU C++, but need to define -shared option too, otherwise
15489 # it will coredump.
15490 lt_prog_compiler_pic='-fPIC -shared'
15493 osf3* | osf4* | osf5*)
15494 lt_prog_compiler_wl='-Wl,'
15495 # All OSF/1 code is PIC.
15496 lt_prog_compiler_static='-non_shared'
15499 rdos*)
15500 lt_prog_compiler_static='-non_shared'
15503 solaris*)
15504 lt_prog_compiler_pic='-KPIC'
15505 lt_prog_compiler_static='-Bstatic'
15506 case $cc_basename in
15507 f77* | f90* | f95*)
15508 lt_prog_compiler_wl='-Qoption ld ';;
15510 lt_prog_compiler_wl='-Wl,';;
15511 esac
15514 sunos4*)
15515 lt_prog_compiler_wl='-Qoption ld '
15516 lt_prog_compiler_pic='-PIC'
15517 lt_prog_compiler_static='-Bstatic'
15520 sysv4 | sysv4.2uw2* | sysv4.3*)
15521 lt_prog_compiler_wl='-Wl,'
15522 lt_prog_compiler_pic='-KPIC'
15523 lt_prog_compiler_static='-Bstatic'
15526 sysv4*MP*)
15527 if test -d /usr/nec ;then
15528 lt_prog_compiler_pic='-Kconform_pic'
15529 lt_prog_compiler_static='-Bstatic'
15533 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15534 lt_prog_compiler_wl='-Wl,'
15535 lt_prog_compiler_pic='-KPIC'
15536 lt_prog_compiler_static='-Bstatic'
15539 unicos*)
15540 lt_prog_compiler_wl='-Wl,'
15541 lt_prog_compiler_can_build_shared=no
15544 uts4*)
15545 lt_prog_compiler_pic='-pic'
15546 lt_prog_compiler_static='-Bstatic'
15550 lt_prog_compiler_can_build_shared=no
15552 esac
15555 case $host_os in
15556 # For platforms which do not support PIC, -DPIC is meaningless:
15557 *djgpp*)
15558 lt_prog_compiler_pic=
15561 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15563 esac
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15565 $as_echo "$lt_prog_compiler_pic" >&6; }
15573 # Check to make sure the PIC flag actually works.
15575 if test -n "$lt_prog_compiler_pic"; then
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15577 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15578 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15579 $as_echo_n "(cached) " >&6
15580 else
15581 lt_cv_prog_compiler_pic_works=no
15582 ac_outfile=conftest.$ac_objext
15583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15584 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15585 # Insert the option either (1) after the last *FLAGS variable, or
15586 # (2) before a word containing "conftest.", or (3) at the end.
15587 # Note that $ac_compile itself does not contain backslashes and begins
15588 # with a dollar sign (not a hyphen), so the echo should work correctly.
15589 # The option is referenced via a variable to avoid confusing sed.
15590 lt_compile=`echo "$ac_compile" | $SED \
15591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15593 -e 's:$: $lt_compiler_flag:'`
15594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15595 (eval "$lt_compile" 2>conftest.err)
15596 ac_status=$?
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 if (exit $ac_status) && test -s "$ac_outfile"; then
15600 # The compiler can only warn and ignore the option if not recognized
15601 # So say no if there are warnings other than the usual output.
15602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15605 lt_cv_prog_compiler_pic_works=yes
15608 $RM conftest*
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15612 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15614 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15615 case $lt_prog_compiler_pic in
15616 "" | " "*) ;;
15617 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15618 esac
15619 else
15620 lt_prog_compiler_pic=
15621 lt_prog_compiler_can_build_shared=no
15632 # Check to make sure the static flag actually works.
15634 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15636 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15637 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15638 $as_echo_n "(cached) " >&6
15639 else
15640 lt_cv_prog_compiler_static_works=no
15641 save_LDFLAGS="$LDFLAGS"
15642 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15643 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15644 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15645 # The linker can only warn and ignore the option if not recognized
15646 # So say no if there are warnings
15647 if test -s conftest.err; then
15648 # Append any errors to the config.log.
15649 cat conftest.err 1>&5
15650 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15652 if diff conftest.exp conftest.er2 >/dev/null; then
15653 lt_cv_prog_compiler_static_works=yes
15655 else
15656 lt_cv_prog_compiler_static_works=yes
15659 $RM -r conftest*
15660 LDFLAGS="$save_LDFLAGS"
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15664 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15666 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15668 else
15669 lt_prog_compiler_static=
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15679 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15680 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15681 $as_echo_n "(cached) " >&6
15682 else
15683 lt_cv_prog_compiler_c_o=no
15684 $RM -r conftest 2>/dev/null
15685 mkdir conftest
15686 cd conftest
15687 mkdir out
15688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15690 lt_compiler_flag="-o out/conftest2.$ac_objext"
15691 # Insert the option either (1) after the last *FLAGS variable, or
15692 # (2) before a word containing "conftest.", or (3) at the end.
15693 # Note that $ac_compile itself does not contain backslashes and begins
15694 # with a dollar sign (not a hyphen), so the echo should work correctly.
15695 lt_compile=`echo "$ac_compile" | $SED \
15696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15698 -e 's:$: $lt_compiler_flag:'`
15699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15700 (eval "$lt_compile" 2>out/conftest.err)
15701 ac_status=$?
15702 cat out/conftest.err >&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15705 then
15706 # The compiler can only warn and ignore the option if not recognized
15707 # So say no if there are warnings
15708 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15709 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15710 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15711 lt_cv_prog_compiler_c_o=yes
15714 chmod u+w . 2>&5
15715 $RM conftest*
15716 # SGI C++ compiler will create directory out/ii_files/ for
15717 # template instantiation
15718 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15719 $RM out/* && rmdir out
15720 cd ..
15721 $RM -r conftest
15722 $RM conftest*
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15726 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15734 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15735 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15736 $as_echo_n "(cached) " >&6
15737 else
15738 lt_cv_prog_compiler_c_o=no
15739 $RM -r conftest 2>/dev/null
15740 mkdir conftest
15741 cd conftest
15742 mkdir out
15743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15745 lt_compiler_flag="-o out/conftest2.$ac_objext"
15746 # Insert the option either (1) after the last *FLAGS variable, or
15747 # (2) before a word containing "conftest.", or (3) at the end.
15748 # Note that $ac_compile itself does not contain backslashes and begins
15749 # with a dollar sign (not a hyphen), so the echo should work correctly.
15750 lt_compile=`echo "$ac_compile" | $SED \
15751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15753 -e 's:$: $lt_compiler_flag:'`
15754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15755 (eval "$lt_compile" 2>out/conftest.err)
15756 ac_status=$?
15757 cat out/conftest.err >&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15760 then
15761 # The compiler can only warn and ignore the option if not recognized
15762 # So say no if there are warnings
15763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15766 lt_cv_prog_compiler_c_o=yes
15769 chmod u+w . 2>&5
15770 $RM conftest*
15771 # SGI C++ compiler will create directory out/ii_files/ for
15772 # template instantiation
15773 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15774 $RM out/* && rmdir out
15775 cd ..
15776 $RM -r conftest
15777 $RM conftest*
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15781 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15786 hard_links="nottested"
15787 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15788 # do not overwrite the value of need_locks provided by the user
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15790 $as_echo_n "checking if we can lock with hard links... " >&6; }
15791 hard_links=yes
15792 $RM conftest*
15793 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15794 touch conftest.a
15795 ln conftest.a conftest.b 2>&5 || hard_links=no
15796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15798 $as_echo "$hard_links" >&6; }
15799 if test "$hard_links" = no; then
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15801 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15802 need_locks=warn
15804 else
15805 need_locks=no
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15814 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15816 runpath_var=
15817 allow_undefined_flag=
15818 always_export_symbols=no
15819 archive_cmds=
15820 archive_expsym_cmds=
15821 compiler_needs_object=no
15822 enable_shared_with_static_runtimes=no
15823 export_dynamic_flag_spec=
15824 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15825 hardcode_automatic=no
15826 hardcode_direct=no
15827 hardcode_direct_absolute=no
15828 hardcode_libdir_flag_spec=
15829 hardcode_libdir_flag_spec_ld=
15830 hardcode_libdir_separator=
15831 hardcode_minus_L=no
15832 hardcode_shlibpath_var=unsupported
15833 inherit_rpath=no
15834 link_all_deplibs=unknown
15835 module_cmds=
15836 module_expsym_cmds=
15837 old_archive_from_new_cmds=
15838 old_archive_from_expsyms_cmds=
15839 thread_safe_flag_spec=
15840 whole_archive_flag_spec=
15841 # include_expsyms should be a list of space-separated symbols to be *always*
15842 # included in the symbol list
15843 include_expsyms=
15844 # exclude_expsyms can be an extended regexp of symbols to exclude
15845 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15846 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15847 # as well as any symbol that contains `d'.
15848 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15849 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15850 # platforms (ab)use it in PIC code, but their linkers get confused if
15851 # the symbol is explicitly referenced. Since portable code cannot
15852 # rely on this symbol name, it's probably fine to never include it in
15853 # preloaded symbol tables.
15854 # Exclude shared library initialization/finalization symbols.
15855 extract_expsyms_cmds=
15857 case $host_os in
15858 cygwin* | mingw* | pw32* | cegcc*)
15859 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15860 # When not using gcc, we currently assume that we are using
15861 # Microsoft Visual C++.
15862 if test "$GCC" != yes; then
15863 with_gnu_ld=no
15866 interix*)
15867 # we just hope/assume this is gcc and not c89 (= MSVC++)
15868 with_gnu_ld=yes
15870 openbsd*)
15871 with_gnu_ld=no
15873 esac
15875 ld_shlibs=yes
15877 # On some targets, GNU ld is compatible enough with the native linker
15878 # that we're better off using the native interface for both.
15879 lt_use_gnu_ld_interface=no
15880 if test "$with_gnu_ld" = yes; then
15881 case $host_os in
15882 aix*)
15883 # The AIX port of GNU ld has always aspired to compatibility
15884 # with the native linker. However, as the warning in the GNU ld
15885 # block says, versions before 2.19.5* couldn't really create working
15886 # shared libraries, regardless of the interface used.
15887 case `$LD -v 2>&1` in
15888 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15889 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15890 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15892 lt_use_gnu_ld_interface=yes
15894 esac
15897 lt_use_gnu_ld_interface=yes
15899 esac
15902 if test "$lt_use_gnu_ld_interface" = yes; then
15903 # If archive_cmds runs LD, not CC, wlarc should be empty
15904 wlarc='${wl}'
15906 # Set some defaults for GNU ld with shared library support. These
15907 # are reset later if shared libraries are not supported. Putting them
15908 # here allows them to be overridden if necessary.
15909 runpath_var=LD_RUN_PATH
15910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15911 export_dynamic_flag_spec='${wl}--export-dynamic'
15912 # ancient GNU ld didn't support --whole-archive et. al.
15913 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15914 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15915 else
15916 whole_archive_flag_spec=
15918 supports_anon_versioning=no
15919 case `$LD -v 2>&1` in
15920 *GNU\ gold*) supports_anon_versioning=yes ;;
15921 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15922 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15923 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15924 *\ 2.11.*) ;; # other 2.11 versions
15925 *) supports_anon_versioning=yes ;;
15926 esac
15928 # See if GNU ld supports shared libraries.
15929 case $host_os in
15930 aix[3-9]*)
15931 # On AIX/PPC, the GNU linker is very broken
15932 if test "$host_cpu" != ia64; then
15933 ld_shlibs=no
15934 cat <<_LT_EOF 1>&2
15936 *** Warning: the GNU linker, at least up to release 2.19, is reported
15937 *** to be unable to reliably create shared libraries on AIX.
15938 *** Therefore, libtool is disabling shared libraries support. If you
15939 *** really care for shared libraries, you may want to install binutils
15940 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15941 *** You will then need to restart the configuration process.
15943 _LT_EOF
15947 amigaos*)
15948 case $host_cpu in
15949 powerpc)
15950 # see comment about AmigaOS4 .so support
15951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15952 archive_expsym_cmds=''
15954 m68k)
15955 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)'
15956 hardcode_libdir_flag_spec='-L$libdir'
15957 hardcode_minus_L=yes
15959 esac
15962 beos*)
15963 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15964 allow_undefined_flag=unsupported
15965 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15966 # support --undefined. This deserves some investigation. FIXME
15967 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15968 else
15969 ld_shlibs=no
15973 cygwin* | mingw* | pw32* | cegcc*)
15974 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15975 # as there is no search path for DLLs.
15976 hardcode_libdir_flag_spec='-L$libdir'
15977 export_dynamic_flag_spec='${wl}--export-all-symbols'
15978 allow_undefined_flag=unsupported
15979 always_export_symbols=no
15980 enable_shared_with_static_runtimes=yes
15981 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15983 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15985 # If the export-symbols file already is a .def file (1st line
15986 # is EXPORTS), use it as is; otherwise, prepend...
15987 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15988 cp $export_symbols $output_objdir/$soname.def;
15989 else
15990 echo EXPORTS > $output_objdir/$soname.def;
15991 cat $export_symbols >> $output_objdir/$soname.def;
15993 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15994 else
15995 ld_shlibs=no
15999 haiku*)
16000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16001 link_all_deplibs=yes
16004 interix[3-9]*)
16005 hardcode_direct=no
16006 hardcode_shlibpath_var=no
16007 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16008 export_dynamic_flag_spec='${wl}-E'
16009 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16010 # Instead, shared libraries are loaded at an image base (0x10000000 by
16011 # default) and relocated if they conflict, which is a slow very memory
16012 # consuming and fragmenting process. To avoid this, we pick a random,
16013 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16014 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16015 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16016 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'
16019 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16020 tmp_diet=no
16021 if test "$host_os" = linux-dietlibc; then
16022 case $cc_basename in
16023 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16024 esac
16026 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16027 && test "$tmp_diet" = no
16028 then
16029 tmp_addflag=
16030 tmp_sharedflag='-shared'
16031 case $cc_basename,$host_cpu in
16032 pgcc*) # Portland Group C compiler
16033 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'
16034 tmp_addflag=' $pic_flag'
16036 pgf77* | pgf90* | pgf95* | pgfortran*)
16037 # Portland Group f77 and f90 compilers
16038 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'
16039 tmp_addflag=' $pic_flag -Mnomain' ;;
16040 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16041 tmp_addflag=' -i_dynamic' ;;
16042 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16043 tmp_addflag=' -i_dynamic -nofor_main' ;;
16044 ifc* | ifort*) # Intel Fortran compiler
16045 tmp_addflag=' -nofor_main' ;;
16046 lf95*) # Lahey Fortran 8.1
16047 whole_archive_flag_spec=
16048 tmp_sharedflag='--shared' ;;
16049 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16050 tmp_sharedflag='-qmkshrobj'
16051 tmp_addflag= ;;
16052 nvcc*) # Cuda Compiler Driver 2.2
16053 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'
16054 compiler_needs_object=yes
16056 esac
16057 case `$CC -V 2>&1 | sed 5q` in
16058 *Sun\ C*) # Sun C 5.9
16059 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'
16060 compiler_needs_object=yes
16061 tmp_sharedflag='-G' ;;
16062 *Sun\ F*) # Sun Fortran 8.3
16063 tmp_sharedflag='-G' ;;
16064 esac
16065 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 if test "x$supports_anon_versioning" = xyes; then
16068 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16070 echo "local: *; };" >> $output_objdir/$libname.ver~
16071 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16074 case $cc_basename in
16075 xlf* | bgf* | bgxlf* | mpixlf*)
16076 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16077 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16078 hardcode_libdir_flag_spec=
16079 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16080 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16081 if test "x$supports_anon_versioning" = xyes; then
16082 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16083 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16084 echo "local: *; };" >> $output_objdir/$libname.ver~
16085 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16088 esac
16089 else
16090 ld_shlibs=no
16094 netbsd*)
16095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16096 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16097 wlarc=
16098 else
16099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16100 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16104 solaris*)
16105 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16106 ld_shlibs=no
16107 cat <<_LT_EOF 1>&2
16109 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16110 *** create shared libraries on Solaris systems. Therefore, libtool
16111 *** is disabling shared libraries support. We urge you to upgrade GNU
16112 *** binutils to release 2.9.1 or newer. Another option is to modify
16113 *** your PATH or compiler configuration so that the native linker is
16114 *** used, and then restart.
16116 _LT_EOF
16117 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16119 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16120 else
16121 ld_shlibs=no
16125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16126 case `$LD -v 2>&1` in
16127 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16128 ld_shlibs=no
16129 cat <<_LT_EOF 1>&2
16131 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16132 *** reliably create shared libraries on SCO systems. Therefore, libtool
16133 *** is disabling shared libraries support. We urge you to upgrade GNU
16134 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16135 *** your PATH or compiler configuration so that the native linker is
16136 *** used, and then restart.
16138 _LT_EOF
16141 # For security reasons, it is highly recommended that you always
16142 # use absolute paths for naming shared libraries, and exclude the
16143 # DT_RUNPATH tag from executables and libraries. But doing so
16144 # requires that you compile everything twice, which is a pain.
16145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16146 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16147 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16148 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16149 else
16150 ld_shlibs=no
16153 esac
16156 sunos4*)
16157 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16158 wlarc=
16159 hardcode_direct=yes
16160 hardcode_shlibpath_var=no
16164 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16166 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16167 else
16168 ld_shlibs=no
16171 esac
16173 if test "$ld_shlibs" = no; then
16174 runpath_var=
16175 hardcode_libdir_flag_spec=
16176 export_dynamic_flag_spec=
16177 whole_archive_flag_spec=
16179 else
16180 # PORTME fill in a description of your system's linker (not GNU ld)
16181 case $host_os in
16182 aix3*)
16183 allow_undefined_flag=unsupported
16184 always_export_symbols=yes
16185 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'
16186 # Note: this linker hardcodes the directories in LIBPATH if there
16187 # are no directories specified by -L.
16188 hardcode_minus_L=yes
16189 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16190 # Neither direct hardcoding nor static linking is supported with a
16191 # broken collect2.
16192 hardcode_direct=unsupported
16196 aix[4-9]*)
16197 if test "$host_cpu" = ia64; then
16198 # On IA64, the linker does run time linking by default, so we don't
16199 # have to do anything special.
16200 aix_use_runtimelinking=no
16201 exp_sym_flag='-Bexport'
16202 no_entry_flag=""
16203 else
16204 # If we're using GNU nm, then we don't want the "-C" option.
16205 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16206 # Also, AIX nm treats weak defined symbols like other global
16207 # defined symbols, whereas GNU nm marks them as "W".
16208 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16209 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'
16210 else
16211 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'
16213 aix_use_runtimelinking=no
16215 # Test if we are trying to use run time linking or normal
16216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16217 # need to do runtime linking.
16218 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16219 for ld_flag in $LDFLAGS; do
16220 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16221 aix_use_runtimelinking=yes
16222 break
16224 done
16226 esac
16228 exp_sym_flag='-bexport'
16229 no_entry_flag='-bnoentry'
16232 # When large executables or shared objects are built, AIX ld can
16233 # have problems creating the table of contents. If linking a library
16234 # or program results in "error TOC overflow" add -mminimal-toc to
16235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16238 archive_cmds=''
16239 hardcode_direct=yes
16240 hardcode_direct_absolute=yes
16241 hardcode_libdir_separator=':'
16242 link_all_deplibs=yes
16243 file_list_spec='${wl}-f,'
16245 if test "$GCC" = yes; then
16246 case $host_os in aix4.[012]|aix4.[012].*)
16247 # We only want to do this on AIX 4.2 and lower, the check
16248 # below for broken collect2 doesn't work under 4.3+
16249 collect2name=`${CC} -print-prog-name=collect2`
16250 if test -f "$collect2name" &&
16251 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16252 then
16253 # We have reworked collect2
16255 else
16256 # We have old collect2
16257 hardcode_direct=unsupported
16258 # It fails to find uninstalled libraries when the uninstalled
16259 # path is not listed in the libpath. Setting hardcode_minus_L
16260 # to unsupported forces relinking
16261 hardcode_minus_L=yes
16262 hardcode_libdir_flag_spec='-L$libdir'
16263 hardcode_libdir_separator=
16266 esac
16267 shared_flag='-shared'
16268 if test "$aix_use_runtimelinking" = yes; then
16269 shared_flag="$shared_flag "'${wl}-G'
16271 else
16272 # not using gcc
16273 if test "$host_cpu" = ia64; then
16274 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16275 # chokes on -Wl,-G. The following line is correct:
16276 shared_flag='-G'
16277 else
16278 if test "$aix_use_runtimelinking" = yes; then
16279 shared_flag='${wl}-G'
16280 else
16281 shared_flag='${wl}-bM:SRE'
16286 export_dynamic_flag_spec='${wl}-bexpall'
16287 # It seems that -bexpall does not export symbols beginning with
16288 # underscore (_), so it is better to generate a list of symbols to export.
16289 always_export_symbols=yes
16290 if test "$aix_use_runtimelinking" = yes; then
16291 # Warning - without using the other runtime loading flags (-brtl),
16292 # -berok will link without error, but may produce a broken library.
16293 allow_undefined_flag='-berok'
16294 # Determine the default libpath from the value encoded in an
16295 # empty executable.
16296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16300 main ()
16304 return 0;
16306 _ACEOF
16307 if ac_fn_c_try_link "$LINENO"; then :
16309 lt_aix_libpath_sed='
16310 /Import File Strings/,/^$/ {
16311 /^0/ {
16312 s/^0 *\(.*\)$/\1/
16316 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16317 # Check for a 64-bit object if we didn't find anything.
16318 if test -z "$aix_libpath"; then
16319 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16322 rm -f core conftest.err conftest.$ac_objext \
16323 conftest$ac_exeext conftest.$ac_ext
16324 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16326 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16327 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"
16328 else
16329 if test "$host_cpu" = ia64; then
16330 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16331 allow_undefined_flag="-z nodefs"
16332 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"
16333 else
16334 # Determine the default libpath from the value encoded in an
16335 # empty executable.
16336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337 /* end confdefs.h. */
16340 main ()
16344 return 0;
16346 _ACEOF
16347 if ac_fn_c_try_link "$LINENO"; then :
16349 lt_aix_libpath_sed='
16350 /Import File Strings/,/^$/ {
16351 /^0/ {
16352 s/^0 *\(.*\)$/\1/
16356 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16357 # Check for a 64-bit object if we didn't find anything.
16358 if test -z "$aix_libpath"; then
16359 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16362 rm -f core conftest.err conftest.$ac_objext \
16363 conftest$ac_exeext conftest.$ac_ext
16364 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16366 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16367 # Warning - without using the other run time loading flags,
16368 # -berok will link without error, but may produce a broken library.
16369 no_undefined_flag=' ${wl}-bernotok'
16370 allow_undefined_flag=' ${wl}-berok'
16371 if test "$with_gnu_ld" = yes; then
16372 # We only use this code for GNU lds that support --whole-archive.
16373 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16374 else
16375 # Exported symbols can be pulled into shared objects from archives
16376 whole_archive_flag_spec='$convenience'
16378 archive_cmds_need_lc=yes
16379 # This is similar to how AIX traditionally builds its shared libraries.
16380 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'
16385 amigaos*)
16386 case $host_cpu in
16387 powerpc)
16388 # see comment about AmigaOS4 .so support
16389 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16390 archive_expsym_cmds=''
16392 m68k)
16393 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)'
16394 hardcode_libdir_flag_spec='-L$libdir'
16395 hardcode_minus_L=yes
16397 esac
16400 bsdi[45]*)
16401 export_dynamic_flag_spec=-rdynamic
16404 cygwin* | mingw* | pw32* | cegcc*)
16405 # When not using gcc, we currently assume that we are using
16406 # Microsoft Visual C++.
16407 # hardcode_libdir_flag_spec is actually meaningless, as there is
16408 # no search path for DLLs.
16409 hardcode_libdir_flag_spec=' '
16410 allow_undefined_flag=unsupported
16411 # Tell ltmain to make .lib files, not .a files.
16412 libext=lib
16413 # Tell ltmain to make .dll files, not .so files.
16414 shrext_cmds=".dll"
16415 # FIXME: Setting linknames here is a bad hack.
16416 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16417 # The linker will automatically build a .lib file if we build a DLL.
16418 old_archive_from_new_cmds='true'
16419 # FIXME: Should let the user specify the lib program.
16420 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16421 fix_srcfile_path='`cygpath -w "$srcfile"`'
16422 enable_shared_with_static_runtimes=yes
16425 darwin* | rhapsody*)
16428 archive_cmds_need_lc=no
16429 hardcode_direct=no
16430 hardcode_automatic=yes
16431 hardcode_shlibpath_var=unsupported
16432 if test "$lt_cv_ld_force_load" = "yes"; then
16433 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\"`'
16434 else
16435 whole_archive_flag_spec=''
16437 link_all_deplibs=yes
16438 allow_undefined_flag="$_lt_dar_allow_undefined"
16439 case $cc_basename in
16440 ifort*) _lt_dar_can_shared=yes ;;
16441 *) _lt_dar_can_shared=$GCC ;;
16442 esac
16443 if test "$_lt_dar_can_shared" = "yes"; then
16444 output_verbose_link_cmd=func_echo_all
16445 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16446 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16447 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}"
16448 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}"
16450 else
16451 ld_shlibs=no
16456 dgux*)
16457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458 hardcode_libdir_flag_spec='-L$libdir'
16459 hardcode_shlibpath_var=no
16462 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16463 # support. Future versions do this automatically, but an explicit c++rt0.o
16464 # does not break anything, and helps significantly (at the cost of a little
16465 # extra space).
16466 freebsd2.2*)
16467 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16468 hardcode_libdir_flag_spec='-R$libdir'
16469 hardcode_direct=yes
16470 hardcode_shlibpath_var=no
16473 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16474 freebsd2.*)
16475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16476 hardcode_direct=yes
16477 hardcode_minus_L=yes
16478 hardcode_shlibpath_var=no
16481 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16482 freebsd* | dragonfly*)
16483 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16484 hardcode_libdir_flag_spec='-R$libdir'
16485 hardcode_direct=yes
16486 hardcode_shlibpath_var=no
16489 hpux9*)
16490 if test "$GCC" = yes; then
16491 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'
16492 else
16493 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'
16495 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16496 hardcode_libdir_separator=:
16497 hardcode_direct=yes
16499 # hardcode_minus_L: Not really in the search PATH,
16500 # but as the default location of the library.
16501 hardcode_minus_L=yes
16502 export_dynamic_flag_spec='${wl}-E'
16505 hpux10*)
16506 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16507 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16508 else
16509 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16511 if test "$with_gnu_ld" = no; then
16512 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16513 hardcode_libdir_flag_spec_ld='+b $libdir'
16514 hardcode_libdir_separator=:
16515 hardcode_direct=yes
16516 hardcode_direct_absolute=yes
16517 export_dynamic_flag_spec='${wl}-E'
16518 # hardcode_minus_L: Not really in the search PATH,
16519 # but as the default location of the library.
16520 hardcode_minus_L=yes
16524 hpux11*)
16525 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16526 case $host_cpu in
16527 hppa*64*)
16528 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16530 ia64*)
16531 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16534 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16536 esac
16537 else
16538 case $host_cpu in
16539 hppa*64*)
16540 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16542 ia64*)
16543 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16547 # Older versions of the 11.00 compiler do not understand -b yet
16548 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16550 $as_echo_n "checking if $CC understands -b... " >&6; }
16551 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16552 $as_echo_n "(cached) " >&6
16553 else
16554 lt_cv_prog_compiler__b=no
16555 save_LDFLAGS="$LDFLAGS"
16556 LDFLAGS="$LDFLAGS -b"
16557 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16558 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16559 # The linker can only warn and ignore the option if not recognized
16560 # So say no if there are warnings
16561 if test -s conftest.err; then
16562 # Append any errors to the config.log.
16563 cat conftest.err 1>&5
16564 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16565 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16566 if diff conftest.exp conftest.er2 >/dev/null; then
16567 lt_cv_prog_compiler__b=yes
16569 else
16570 lt_cv_prog_compiler__b=yes
16573 $RM -r conftest*
16574 LDFLAGS="$save_LDFLAGS"
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16578 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16580 if test x"$lt_cv_prog_compiler__b" = xyes; then
16581 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16582 else
16583 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16587 esac
16589 if test "$with_gnu_ld" = no; then
16590 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16591 hardcode_libdir_separator=:
16593 case $host_cpu in
16594 hppa*64*|ia64*)
16595 hardcode_direct=no
16596 hardcode_shlibpath_var=no
16599 hardcode_direct=yes
16600 hardcode_direct_absolute=yes
16601 export_dynamic_flag_spec='${wl}-E'
16603 # hardcode_minus_L: Not really in the search PATH,
16604 # but as the default location of the library.
16605 hardcode_minus_L=yes
16607 esac
16611 irix5* | irix6* | nonstopux*)
16612 if test "$GCC" = yes; then
16613 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'
16614 # Try to use the -exported_symbol ld option, if it does not
16615 # work, assume that -exports_file does not work either and
16616 # implicitly export all symbols.
16617 save_LDFLAGS="$LDFLAGS"
16618 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620 /* end confdefs.h. */
16621 int foo(void) {}
16622 _ACEOF
16623 if ac_fn_c_try_link "$LINENO"; then :
16624 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'
16627 rm -f core conftest.err conftest.$ac_objext \
16628 conftest$ac_exeext conftest.$ac_ext
16629 LDFLAGS="$save_LDFLAGS"
16630 else
16631 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'
16632 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'
16634 archive_cmds_need_lc='no'
16635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16636 hardcode_libdir_separator=:
16637 inherit_rpath=yes
16638 link_all_deplibs=yes
16641 netbsd*)
16642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16644 else
16645 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16647 hardcode_libdir_flag_spec='-R$libdir'
16648 hardcode_direct=yes
16649 hardcode_shlibpath_var=no
16652 newsos6)
16653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16654 hardcode_direct=yes
16655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16656 hardcode_libdir_separator=:
16657 hardcode_shlibpath_var=no
16660 *nto* | *qnx*)
16663 openbsd*)
16664 if test -f /usr/libexec/ld.so; then
16665 hardcode_direct=yes
16666 hardcode_shlibpath_var=no
16667 hardcode_direct_absolute=yes
16668 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16670 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16671 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16672 export_dynamic_flag_spec='${wl}-E'
16673 else
16674 case $host_os in
16675 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16677 hardcode_libdir_flag_spec='-R$libdir'
16680 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16681 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16683 esac
16685 else
16686 ld_shlibs=no
16690 os2*)
16691 hardcode_libdir_flag_spec='-L$libdir'
16692 hardcode_minus_L=yes
16693 allow_undefined_flag=unsupported
16694 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'
16695 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16698 osf3*)
16699 if test "$GCC" = yes; then
16700 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16701 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'
16702 else
16703 allow_undefined_flag=' -expect_unresolved \*'
16704 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'
16706 archive_cmds_need_lc='no'
16707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16708 hardcode_libdir_separator=:
16711 osf4* | osf5*) # as osf3* with the addition of -msym flag
16712 if test "$GCC" = yes; then
16713 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16714 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'
16715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16716 else
16717 allow_undefined_flag=' -expect_unresolved \*'
16718 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'
16719 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~
16720 $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'
16722 # Both c and cxx compiler support -rpath directly
16723 hardcode_libdir_flag_spec='-rpath $libdir'
16725 archive_cmds_need_lc='no'
16726 hardcode_libdir_separator=:
16729 solaris*)
16730 no_undefined_flag=' -z defs'
16731 if test "$GCC" = yes; then
16732 wlarc='${wl}'
16733 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16735 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16736 else
16737 case `$CC -V 2>&1` in
16738 *"Compilers 5.0"*)
16739 wlarc=''
16740 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16741 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16742 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16745 wlarc='${wl}'
16746 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16747 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16748 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16750 esac
16752 hardcode_libdir_flag_spec='-R$libdir'
16753 hardcode_shlibpath_var=no
16754 case $host_os in
16755 solaris2.[0-5] | solaris2.[0-5].*) ;;
16757 # The compiler driver will combine and reorder linker options,
16758 # but understands `-z linker_flag'. GCC discards it without `$wl',
16759 # but is careful enough not to reorder.
16760 # Supported since Solaris 2.6 (maybe 2.5.1?)
16761 if test "$GCC" = yes; then
16762 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16763 else
16764 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16767 esac
16768 link_all_deplibs=yes
16771 sunos4*)
16772 if test "x$host_vendor" = xsequent; then
16773 # Use $CC to link under sequent, because it throws in some extra .o
16774 # files that make .init and .fini sections work.
16775 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16776 else
16777 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16779 hardcode_libdir_flag_spec='-L$libdir'
16780 hardcode_direct=yes
16781 hardcode_minus_L=yes
16782 hardcode_shlibpath_var=no
16785 sysv4)
16786 case $host_vendor in
16787 sni)
16788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16789 hardcode_direct=yes # is this really true???
16791 siemens)
16792 ## LD is ld it makes a PLAMLIB
16793 ## CC just makes a GrossModule.
16794 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16795 reload_cmds='$CC -r -o $output$reload_objs'
16796 hardcode_direct=no
16798 motorola)
16799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16800 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16802 esac
16803 runpath_var='LD_RUN_PATH'
16804 hardcode_shlibpath_var=no
16807 sysv4.3*)
16808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16809 hardcode_shlibpath_var=no
16810 export_dynamic_flag_spec='-Bexport'
16813 sysv4*MP*)
16814 if test -d /usr/nec; then
16815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16816 hardcode_shlibpath_var=no
16817 runpath_var=LD_RUN_PATH
16818 hardcode_runpath_var=yes
16819 ld_shlibs=yes
16823 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16824 no_undefined_flag='${wl}-z,text'
16825 archive_cmds_need_lc=no
16826 hardcode_shlibpath_var=no
16827 runpath_var='LD_RUN_PATH'
16829 if test "$GCC" = yes; then
16830 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16831 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16832 else
16833 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16834 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16838 sysv5* | sco3.2v5* | sco5v6*)
16839 # Note: We can NOT use -z defs as we might desire, because we do not
16840 # link with -lc, and that would cause any symbols used from libc to
16841 # always be unresolved, which means just about no library would
16842 # ever link correctly. If we're not using GNU ld we use -z text
16843 # though, which does catch some bad symbols but isn't as heavy-handed
16844 # as -z defs.
16845 no_undefined_flag='${wl}-z,text'
16846 allow_undefined_flag='${wl}-z,nodefs'
16847 archive_cmds_need_lc=no
16848 hardcode_shlibpath_var=no
16849 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16850 hardcode_libdir_separator=':'
16851 link_all_deplibs=yes
16852 export_dynamic_flag_spec='${wl}-Bexport'
16853 runpath_var='LD_RUN_PATH'
16855 if test "$GCC" = yes; then
16856 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16857 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16858 else
16859 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16860 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16864 uts4*)
16865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16866 hardcode_libdir_flag_spec='-L$libdir'
16867 hardcode_shlibpath_var=no
16871 ld_shlibs=no
16873 esac
16875 if test x$host_vendor = xsni; then
16876 case $host in
16877 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16878 export_dynamic_flag_spec='${wl}-Blargedynsym'
16880 esac
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16885 $as_echo "$ld_shlibs" >&6; }
16886 test "$ld_shlibs" = no && can_build_shared=no
16888 with_gnu_ld=$with_gnu_ld
16905 # Do we need to explicitly link libc?
16907 case "x$archive_cmds_need_lc" in
16908 x|xyes)
16909 # Assume -lc should be added
16910 archive_cmds_need_lc=yes
16912 if test "$enable_shared" = yes && test "$GCC" = yes; then
16913 case $archive_cmds in
16914 *'~'*)
16915 # FIXME: we may have to deal with multi-command sequences.
16917 '$CC '*)
16918 # Test whether the compiler implicitly links with -lc since on some
16919 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16920 # to ld, don't add -lc before -lgcc.
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16922 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16923 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16924 $as_echo_n "(cached) " >&6
16925 else
16926 $RM conftest*
16927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16930 (eval $ac_compile) 2>&5
16931 ac_status=$?
16932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16933 test $ac_status = 0; } 2>conftest.err; then
16934 soname=conftest
16935 lib=conftest
16936 libobjs=conftest.$ac_objext
16937 deplibs=
16938 wl=$lt_prog_compiler_wl
16939 pic_flag=$lt_prog_compiler_pic
16940 compiler_flags=-v
16941 linker_flags=-v
16942 verstring=
16943 output_objdir=.
16944 libname=conftest
16945 lt_save_allow_undefined_flag=$allow_undefined_flag
16946 allow_undefined_flag=
16947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16948 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16949 ac_status=$?
16950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16951 test $ac_status = 0; }
16952 then
16953 lt_cv_archive_cmds_need_lc=no
16954 else
16955 lt_cv_archive_cmds_need_lc=yes
16957 allow_undefined_flag=$lt_save_allow_undefined_flag
16958 else
16959 cat conftest.err 1>&5
16961 $RM conftest*
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16965 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16966 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16968 esac
16971 esac
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17130 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17132 if test "$GCC" = yes; then
17133 case $host_os in
17134 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17135 *) lt_awk_arg="/^libraries:/" ;;
17136 esac
17137 case $host_os in
17138 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17139 *) lt_sed_strip_eq="s,=/,/,g" ;;
17140 esac
17141 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17142 case $lt_search_path_spec in
17143 *\;*)
17144 # if the path contains ";" then we assume it to be the separator
17145 # otherwise default to the standard path separator (i.e. ":") - it is
17146 # assumed that no part of a normal pathname contains ";" but that should
17147 # okay in the real world where ";" in dirpaths is itself problematic.
17148 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17151 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17153 esac
17154 # Ok, now we have the path, separated by spaces, we can step through it
17155 # and add multilib dir if necessary.
17156 lt_tmp_lt_search_path_spec=
17157 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17158 for lt_sys_path in $lt_search_path_spec; do
17159 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17160 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17161 else
17162 test -d "$lt_sys_path" && \
17163 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17165 done
17166 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17167 BEGIN {RS=" "; FS="/|\n";} {
17168 lt_foo="";
17169 lt_count=0;
17170 for (lt_i = NF; lt_i > 0; lt_i--) {
17171 if ($lt_i != "" && $lt_i != ".") {
17172 if ($lt_i == "..") {
17173 lt_count++;
17174 } else {
17175 if (lt_count == 0) {
17176 lt_foo="/" $lt_i lt_foo;
17177 } else {
17178 lt_count--;
17183 if (lt_foo != "") { lt_freq[lt_foo]++; }
17184 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17186 # AWK program above erroneously prepends '/' to C:/dos/paths
17187 # for these hosts.
17188 case $host_os in
17189 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17190 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17191 esac
17192 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17193 else
17194 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17196 library_names_spec=
17197 libname_spec='lib$name'
17198 soname_spec=
17199 shrext_cmds=".so"
17200 postinstall_cmds=
17201 postuninstall_cmds=
17202 finish_cmds=
17203 finish_eval=
17204 shlibpath_var=
17205 shlibpath_overrides_runpath=unknown
17206 version_type=none
17207 dynamic_linker="$host_os ld.so"
17208 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17209 need_lib_prefix=unknown
17210 hardcode_into_libs=no
17212 # when you set need_version to no, make sure it does not cause -set_version
17213 # flags to be left without arguments
17214 need_version=unknown
17216 case $host_os in
17217 aix3*)
17218 version_type=linux
17219 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17220 shlibpath_var=LIBPATH
17222 # AIX 3 has no versioning support, so we append a major version to the name.
17223 soname_spec='${libname}${release}${shared_ext}$major'
17226 aix[4-9]*)
17227 version_type=linux
17228 need_lib_prefix=no
17229 need_version=no
17230 hardcode_into_libs=yes
17231 if test "$host_cpu" = ia64; then
17232 # AIX 5 supports IA64
17233 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17234 shlibpath_var=LD_LIBRARY_PATH
17235 else
17236 # With GCC up to 2.95.x, collect2 would create an import file
17237 # for dependence libraries. The import file would start with
17238 # the line `#! .'. This would cause the generated library to
17239 # depend on `.', always an invalid library. This was fixed in
17240 # development snapshots of GCC prior to 3.0.
17241 case $host_os in
17242 aix4 | aix4.[01] | aix4.[01].*)
17243 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17244 echo ' yes '
17245 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17247 else
17248 can_build_shared=no
17251 esac
17252 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17253 # soname into executable. Probably we can add versioning support to
17254 # collect2, so additional links can be useful in future.
17255 if test "$aix_use_runtimelinking" = yes; then
17256 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17257 # instead of lib<name>.a to let people know that these are not
17258 # typical AIX shared libraries.
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260 else
17261 # We preserve .a as extension for shared libraries through AIX4.2
17262 # and later when we are not doing run time linking.
17263 library_names_spec='${libname}${release}.a $libname.a'
17264 soname_spec='${libname}${release}${shared_ext}$major'
17266 shlibpath_var=LIBPATH
17270 amigaos*)
17271 case $host_cpu in
17272 powerpc)
17273 # Since July 2007 AmigaOS4 officially supports .so libraries.
17274 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17277 m68k)
17278 library_names_spec='$libname.ixlibrary $libname.a'
17279 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17280 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'
17282 esac
17285 beos*)
17286 library_names_spec='${libname}${shared_ext}'
17287 dynamic_linker="$host_os ld.so"
17288 shlibpath_var=LIBRARY_PATH
17291 bsdi[45]*)
17292 version_type=linux
17293 need_version=no
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295 soname_spec='${libname}${release}${shared_ext}$major'
17296 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17297 shlibpath_var=LD_LIBRARY_PATH
17298 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17299 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17300 # the default ld.so.conf also contains /usr/contrib/lib and
17301 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17302 # libtool to hard-code these into programs
17305 cygwin* | mingw* | pw32* | cegcc*)
17306 version_type=windows
17307 shrext_cmds=".dll"
17308 need_version=no
17309 need_lib_prefix=no
17311 case $GCC,$host_os in
17312 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17313 library_names_spec='$libname.dll.a'
17314 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17315 postinstall_cmds='base_file=`basename \${file}`~
17316 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17317 dldir=$destdir/`dirname \$dlpath`~
17318 test -d \$dldir || mkdir -p \$dldir~
17319 $install_prog $dir/$dlname \$dldir/$dlname~
17320 chmod a+x \$dldir/$dlname~
17321 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17322 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17325 dlpath=$dir/\$dldll~
17326 $RM \$dlpath'
17327 shlibpath_overrides_runpath=yes
17329 case $host_os in
17330 cygwin*)
17331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17334 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17336 mingw* | cegcc*)
17337 # MinGW DLLs use traditional 'lib' prefix
17338 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17340 pw32*)
17341 # pw32 DLLs use 'pw' prefix rather than 'lib'
17342 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17344 esac
17348 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17350 esac
17351 dynamic_linker='Win32 ld.exe'
17352 # FIXME: first we should search . and the directory the executable is in
17353 shlibpath_var=PATH
17356 darwin* | rhapsody*)
17357 dynamic_linker="$host_os dyld"
17358 version_type=darwin
17359 need_lib_prefix=no
17360 need_version=no
17361 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17362 soname_spec='${libname}${release}${major}$shared_ext'
17363 shlibpath_overrides_runpath=yes
17364 shlibpath_var=DYLD_LIBRARY_PATH
17365 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17367 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17368 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17371 dgux*)
17372 version_type=linux
17373 need_lib_prefix=no
17374 need_version=no
17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17376 soname_spec='${libname}${release}${shared_ext}$major'
17377 shlibpath_var=LD_LIBRARY_PATH
17380 freebsd* | dragonfly*)
17381 # DragonFly does not have aout. When/if they implement a new
17382 # versioning mechanism, adjust this.
17383 if test -x /usr/bin/objformat; then
17384 objformat=`/usr/bin/objformat`
17385 else
17386 case $host_os in
17387 freebsd[23].*) objformat=aout ;;
17388 *) objformat=elf ;;
17389 esac
17391 version_type=freebsd-$objformat
17392 case $version_type in
17393 freebsd-elf*)
17394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17395 need_version=no
17396 need_lib_prefix=no
17398 freebsd-*)
17399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17400 need_version=yes
17402 esac
17403 shlibpath_var=LD_LIBRARY_PATH
17404 case $host_os in
17405 freebsd2.*)
17406 shlibpath_overrides_runpath=yes
17408 freebsd3.[01]* | freebsdelf3.[01]*)
17409 shlibpath_overrides_runpath=yes
17410 hardcode_into_libs=yes
17412 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17413 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17414 shlibpath_overrides_runpath=no
17415 hardcode_into_libs=yes
17417 *) # from 4.6 on, and DragonFly
17418 shlibpath_overrides_runpath=yes
17419 hardcode_into_libs=yes
17421 esac
17424 gnu*)
17425 version_type=linux
17426 need_lib_prefix=no
17427 need_version=no
17428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17429 soname_spec='${libname}${release}${shared_ext}$major'
17430 shlibpath_var=LD_LIBRARY_PATH
17431 hardcode_into_libs=yes
17434 haiku*)
17435 version_type=linux
17436 need_lib_prefix=no
17437 need_version=no
17438 dynamic_linker="$host_os runtime_loader"
17439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17440 soname_spec='${libname}${release}${shared_ext}$major'
17441 shlibpath_var=LIBRARY_PATH
17442 shlibpath_overrides_runpath=yes
17443 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17444 hardcode_into_libs=yes
17447 hpux9* | hpux10* | hpux11*)
17448 # Give a soname corresponding to the major version so that dld.sl refuses to
17449 # link against other versions.
17450 version_type=sunos
17451 need_lib_prefix=no
17452 need_version=no
17453 case $host_cpu in
17454 ia64*)
17455 shrext_cmds='.so'
17456 hardcode_into_libs=yes
17457 dynamic_linker="$host_os dld.so"
17458 shlibpath_var=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17461 soname_spec='${libname}${release}${shared_ext}$major'
17462 if test "X$HPUX_IA64_MODE" = X32; then
17463 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17464 else
17465 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17469 hppa*64*)
17470 shrext_cmds='.sl'
17471 hardcode_into_libs=yes
17472 dynamic_linker="$host_os dld.sl"
17473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17476 soname_spec='${libname}${release}${shared_ext}$major'
17477 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17481 shrext_cmds='.sl'
17482 dynamic_linker="$host_os dld.sl"
17483 shlibpath_var=SHLIB_PATH
17484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17486 soname_spec='${libname}${release}${shared_ext}$major'
17488 esac
17489 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17490 postinstall_cmds='chmod 555 $lib'
17491 # or fails outright, so override atomically:
17492 install_override_mode=555
17495 interix[3-9]*)
17496 version_type=linux
17497 need_lib_prefix=no
17498 need_version=no
17499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17500 soname_spec='${libname}${release}${shared_ext}$major'
17501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17502 shlibpath_var=LD_LIBRARY_PATH
17503 shlibpath_overrides_runpath=no
17504 hardcode_into_libs=yes
17507 irix5* | irix6* | nonstopux*)
17508 case $host_os in
17509 nonstopux*) version_type=nonstopux ;;
17511 if test "$lt_cv_prog_gnu_ld" = yes; then
17512 version_type=linux
17513 else
17514 version_type=irix
17515 fi ;;
17516 esac
17517 need_lib_prefix=no
17518 need_version=no
17519 soname_spec='${libname}${release}${shared_ext}$major'
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17521 case $host_os in
17522 irix5* | nonstopux*)
17523 libsuff= shlibsuff=
17526 case $LD in # libtool.m4 will add one of these switches to LD
17527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17528 libsuff= shlibsuff= libmagic=32-bit;;
17529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17530 libsuff=32 shlibsuff=N32 libmagic=N32;;
17531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17533 *) libsuff= shlibsuff= libmagic=never-match;;
17534 esac
17536 esac
17537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17538 shlibpath_overrides_runpath=no
17539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17541 hardcode_into_libs=yes
17544 # No shared lib support for Linux oldld, aout, or coff.
17545 linux*oldld* | linux*aout* | linux*coff*)
17546 dynamic_linker=no
17549 # This must be Linux ELF.
17550 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17551 version_type=linux
17552 need_lib_prefix=no
17553 need_version=no
17554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17555 soname_spec='${libname}${release}${shared_ext}$major'
17556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17557 shlibpath_var=LD_LIBRARY_PATH
17558 shlibpath_overrides_runpath=no
17560 # Some binutils ld are patched to set DT_RUNPATH
17561 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17562 $as_echo_n "(cached) " >&6
17563 else
17564 lt_cv_shlibpath_overrides_runpath=no
17565 save_LDFLAGS=$LDFLAGS
17566 save_libdir=$libdir
17567 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17568 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17573 main ()
17577 return 0;
17579 _ACEOF
17580 if ac_fn_c_try_link "$LINENO"; then :
17581 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17582 lt_cv_shlibpath_overrides_runpath=yes
17585 rm -f core conftest.err conftest.$ac_objext \
17586 conftest$ac_exeext conftest.$ac_ext
17587 LDFLAGS=$save_LDFLAGS
17588 libdir=$save_libdir
17592 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17594 # This implies no fast_install, which is unacceptable.
17595 # Some rework will be needed to allow for fast_install
17596 # before this can be enabled.
17597 hardcode_into_libs=yes
17599 # Append ld.so.conf contents to the search path
17600 if test -f /etc/ld.so.conf; then
17601 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' ' '`
17602 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17605 # We used to test for /lib/ld.so.1 and disable shared libraries on
17606 # powerpc, because MkLinux only supported shared libraries with the
17607 # GNU dynamic linker. Since this was broken with cross compilers,
17608 # most powerpc-linux boxes support dynamic linking these days and
17609 # people can always --disable-shared, the test was removed, and we
17610 # assume the GNU/Linux dynamic linker is in use.
17611 dynamic_linker='GNU/Linux ld.so'
17614 netbsd*)
17615 version_type=sunos
17616 need_lib_prefix=no
17617 need_version=no
17618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17621 dynamic_linker='NetBSD (a.out) ld.so'
17622 else
17623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17624 soname_spec='${libname}${release}${shared_ext}$major'
17625 dynamic_linker='NetBSD ld.elf_so'
17627 shlibpath_var=LD_LIBRARY_PATH
17628 shlibpath_overrides_runpath=yes
17629 hardcode_into_libs=yes
17632 newsos6)
17633 version_type=linux
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17635 shlibpath_var=LD_LIBRARY_PATH
17636 shlibpath_overrides_runpath=yes
17639 *nto* | *qnx*)
17640 version_type=qnx
17641 need_lib_prefix=no
17642 need_version=no
17643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644 soname_spec='${libname}${release}${shared_ext}$major'
17645 shlibpath_var=LD_LIBRARY_PATH
17646 shlibpath_overrides_runpath=no
17647 hardcode_into_libs=yes
17648 dynamic_linker='ldqnx.so'
17651 openbsd*)
17652 version_type=sunos
17653 sys_lib_dlsearch_path_spec="/usr/lib"
17654 need_lib_prefix=no
17655 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17656 case $host_os in
17657 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17658 *) need_version=no ;;
17659 esac
17660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17662 shlibpath_var=LD_LIBRARY_PATH
17663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17664 case $host_os in
17665 openbsd2.[89] | openbsd2.[89].*)
17666 shlibpath_overrides_runpath=no
17669 shlibpath_overrides_runpath=yes
17671 esac
17672 else
17673 shlibpath_overrides_runpath=yes
17677 os2*)
17678 libname_spec='$name'
17679 shrext_cmds=".dll"
17680 need_lib_prefix=no
17681 library_names_spec='$libname${shared_ext} $libname.a'
17682 dynamic_linker='OS/2 ld.exe'
17683 shlibpath_var=LIBPATH
17686 osf3* | osf4* | osf5*)
17687 version_type=osf
17688 need_lib_prefix=no
17689 need_version=no
17690 soname_spec='${libname}${release}${shared_ext}$major'
17691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17692 shlibpath_var=LD_LIBRARY_PATH
17693 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17694 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17697 rdos*)
17698 dynamic_linker=no
17701 solaris*)
17702 version_type=linux
17703 need_lib_prefix=no
17704 need_version=no
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17706 soname_spec='${libname}${release}${shared_ext}$major'
17707 shlibpath_var=LD_LIBRARY_PATH
17708 shlibpath_overrides_runpath=yes
17709 hardcode_into_libs=yes
17710 # ldd complains unless libraries are executable
17711 postinstall_cmds='chmod +x $lib'
17714 sunos4*)
17715 version_type=sunos
17716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17717 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17718 shlibpath_var=LD_LIBRARY_PATH
17719 shlibpath_overrides_runpath=yes
17720 if test "$with_gnu_ld" = yes; then
17721 need_lib_prefix=no
17723 need_version=yes
17726 sysv4 | sysv4.3*)
17727 version_type=linux
17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729 soname_spec='${libname}${release}${shared_ext}$major'
17730 shlibpath_var=LD_LIBRARY_PATH
17731 case $host_vendor in
17732 sni)
17733 shlibpath_overrides_runpath=no
17734 need_lib_prefix=no
17735 runpath_var=LD_RUN_PATH
17737 siemens)
17738 need_lib_prefix=no
17740 motorola)
17741 need_lib_prefix=no
17742 need_version=no
17743 shlibpath_overrides_runpath=no
17744 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17746 esac
17749 sysv4*MP*)
17750 if test -d /usr/nec ;then
17751 version_type=linux
17752 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17753 soname_spec='$libname${shared_ext}.$major'
17754 shlibpath_var=LD_LIBRARY_PATH
17758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17759 version_type=freebsd-elf
17760 need_lib_prefix=no
17761 need_version=no
17762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17763 soname_spec='${libname}${release}${shared_ext}$major'
17764 shlibpath_var=LD_LIBRARY_PATH
17765 shlibpath_overrides_runpath=yes
17766 hardcode_into_libs=yes
17767 if test "$with_gnu_ld" = yes; then
17768 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17769 else
17770 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17771 case $host_os in
17772 sco3.2v5*)
17773 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17775 esac
17777 sys_lib_dlsearch_path_spec='/usr/lib'
17780 tpf*)
17781 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17782 version_type=linux
17783 need_lib_prefix=no
17784 need_version=no
17785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17786 shlibpath_var=LD_LIBRARY_PATH
17787 shlibpath_overrides_runpath=no
17788 hardcode_into_libs=yes
17791 uts4*)
17792 version_type=linux
17793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794 soname_spec='${libname}${release}${shared_ext}$major'
17795 shlibpath_var=LD_LIBRARY_PATH
17799 dynamic_linker=no
17801 esac
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17803 $as_echo "$dynamic_linker" >&6; }
17804 test "$dynamic_linker" = no && can_build_shared=no
17806 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17807 if test "$GCC" = yes; then
17808 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17811 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17812 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17814 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17815 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17910 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17911 hardcode_action=
17912 if test -n "$hardcode_libdir_flag_spec" ||
17913 test -n "$runpath_var" ||
17914 test "X$hardcode_automatic" = "Xyes" ; then
17916 # We can hardcode non-existent directories.
17917 if test "$hardcode_direct" != no &&
17918 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17919 # have to relink, otherwise we might link with an installed library
17920 # when we should be linking with a yet-to-be-installed one
17921 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17922 test "$hardcode_minus_L" != no; then
17923 # Linking always hardcodes the temporary library directory.
17924 hardcode_action=relink
17925 else
17926 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17927 hardcode_action=immediate
17929 else
17930 # We cannot hardcode anything, or else we can only hardcode existing
17931 # directories.
17932 hardcode_action=unsupported
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17935 $as_echo "$hardcode_action" >&6; }
17937 if test "$hardcode_action" = relink ||
17938 test "$inherit_rpath" = yes; then
17939 # Fast installation is not supported
17940 enable_fast_install=no
17941 elif test "$shlibpath_overrides_runpath" = yes ||
17942 test "$enable_shared" = no; then
17943 # Fast installation is not necessary
17944 enable_fast_install=needless
17952 if test "x$enable_dlopen" != xyes; then
17953 enable_dlopen=unknown
17954 enable_dlopen_self=unknown
17955 enable_dlopen_self_static=unknown
17956 else
17957 lt_cv_dlopen=no
17958 lt_cv_dlopen_libs=
17960 case $host_os in
17961 beos*)
17962 lt_cv_dlopen="load_add_on"
17963 lt_cv_dlopen_libs=
17964 lt_cv_dlopen_self=yes
17967 mingw* | pw32* | cegcc*)
17968 lt_cv_dlopen="LoadLibrary"
17969 lt_cv_dlopen_libs=
17972 cygwin*)
17973 lt_cv_dlopen="dlopen"
17974 lt_cv_dlopen_libs=
17977 darwin*)
17978 # if libdl is installed we need to link against it
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17980 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17981 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17982 $as_echo_n "(cached) " >&6
17983 else
17984 ac_check_lib_save_LIBS=$LIBS
17985 LIBS="-ldl $LIBS"
17986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h. */
17989 /* Override any GCC internal prototype to avoid an error.
17990 Use char because int might match the return type of a GCC
17991 builtin and then its argument prototype would still apply. */
17992 #ifdef __cplusplus
17993 extern "C"
17994 #endif
17995 char dlopen ();
17997 main ()
17999 return dlopen ();
18001 return 0;
18003 _ACEOF
18004 if ac_fn_c_try_link "$LINENO"; then :
18005 ac_cv_lib_dl_dlopen=yes
18006 else
18007 ac_cv_lib_dl_dlopen=no
18009 rm -f core conftest.err conftest.$ac_objext \
18010 conftest$ac_exeext conftest.$ac_ext
18011 LIBS=$ac_check_lib_save_LIBS
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18014 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18015 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18017 else
18019 lt_cv_dlopen="dyld"
18020 lt_cv_dlopen_libs=
18021 lt_cv_dlopen_self=yes
18028 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18029 if test "x$ac_cv_func_shl_load" = x""yes; then :
18030 lt_cv_dlopen="shl_load"
18031 else
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18033 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18034 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18035 $as_echo_n "(cached) " >&6
18036 else
18037 ac_check_lib_save_LIBS=$LIBS
18038 LIBS="-ldld $LIBS"
18039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18040 /* end confdefs.h. */
18042 /* Override any GCC internal prototype to avoid an error.
18043 Use char because int might match the return type of a GCC
18044 builtin and then its argument prototype would still apply. */
18045 #ifdef __cplusplus
18046 extern "C"
18047 #endif
18048 char shl_load ();
18050 main ()
18052 return shl_load ();
18054 return 0;
18056 _ACEOF
18057 if ac_fn_c_try_link "$LINENO"; then :
18058 ac_cv_lib_dld_shl_load=yes
18059 else
18060 ac_cv_lib_dld_shl_load=no
18062 rm -f core conftest.err conftest.$ac_objext \
18063 conftest$ac_exeext conftest.$ac_ext
18064 LIBS=$ac_check_lib_save_LIBS
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18067 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18068 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18069 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18070 else
18071 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18072 if test "x$ac_cv_func_dlopen" = x""yes; then :
18073 lt_cv_dlopen="dlopen"
18074 else
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18076 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18077 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18078 $as_echo_n "(cached) " >&6
18079 else
18080 ac_check_lib_save_LIBS=$LIBS
18081 LIBS="-ldl $LIBS"
18082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h. */
18085 /* Override any GCC internal prototype to avoid an error.
18086 Use char because int might match the return type of a GCC
18087 builtin and then its argument prototype would still apply. */
18088 #ifdef __cplusplus
18089 extern "C"
18090 #endif
18091 char dlopen ();
18093 main ()
18095 return dlopen ();
18097 return 0;
18099 _ACEOF
18100 if ac_fn_c_try_link "$LINENO"; then :
18101 ac_cv_lib_dl_dlopen=yes
18102 else
18103 ac_cv_lib_dl_dlopen=no
18105 rm -f core conftest.err conftest.$ac_objext \
18106 conftest$ac_exeext conftest.$ac_ext
18107 LIBS=$ac_check_lib_save_LIBS
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18110 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18111 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18113 else
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18115 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18116 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18117 $as_echo_n "(cached) " >&6
18118 else
18119 ac_check_lib_save_LIBS=$LIBS
18120 LIBS="-lsvld $LIBS"
18121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122 /* end confdefs.h. */
18124 /* Override any GCC internal prototype to avoid an error.
18125 Use char because int might match the return type of a GCC
18126 builtin and then its argument prototype would still apply. */
18127 #ifdef __cplusplus
18128 extern "C"
18129 #endif
18130 char dlopen ();
18132 main ()
18134 return dlopen ();
18136 return 0;
18138 _ACEOF
18139 if ac_fn_c_try_link "$LINENO"; then :
18140 ac_cv_lib_svld_dlopen=yes
18141 else
18142 ac_cv_lib_svld_dlopen=no
18144 rm -f core conftest.err conftest.$ac_objext \
18145 conftest$ac_exeext conftest.$ac_ext
18146 LIBS=$ac_check_lib_save_LIBS
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18149 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18150 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18152 else
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18154 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18155 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18156 $as_echo_n "(cached) " >&6
18157 else
18158 ac_check_lib_save_LIBS=$LIBS
18159 LIBS="-ldld $LIBS"
18160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18161 /* end confdefs.h. */
18163 /* Override any GCC internal prototype to avoid an error.
18164 Use char because int might match the return type of a GCC
18165 builtin and then its argument prototype would still apply. */
18166 #ifdef __cplusplus
18167 extern "C"
18168 #endif
18169 char dld_link ();
18171 main ()
18173 return dld_link ();
18175 return 0;
18177 _ACEOF
18178 if ac_fn_c_try_link "$LINENO"; then :
18179 ac_cv_lib_dld_dld_link=yes
18180 else
18181 ac_cv_lib_dld_dld_link=no
18183 rm -f core conftest.err conftest.$ac_objext \
18184 conftest$ac_exeext conftest.$ac_ext
18185 LIBS=$ac_check_lib_save_LIBS
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18188 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18189 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18190 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18209 esac
18211 if test "x$lt_cv_dlopen" != xno; then
18212 enable_dlopen=yes
18213 else
18214 enable_dlopen=no
18217 case $lt_cv_dlopen in
18218 dlopen)
18219 save_CPPFLAGS="$CPPFLAGS"
18220 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18222 save_LDFLAGS="$LDFLAGS"
18223 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18225 save_LIBS="$LIBS"
18226 LIBS="$lt_cv_dlopen_libs $LIBS"
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18229 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18230 if test "${lt_cv_dlopen_self+set}" = set; then :
18231 $as_echo_n "(cached) " >&6
18232 else
18233 if test "$cross_compiling" = yes; then :
18234 lt_cv_dlopen_self=cross
18235 else
18236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18237 lt_status=$lt_dlunknown
18238 cat > conftest.$ac_ext <<_LT_EOF
18239 #line 18239 "configure"
18240 #include "confdefs.h"
18242 #if HAVE_DLFCN_H
18243 #include <dlfcn.h>
18244 #endif
18246 #include <stdio.h>
18248 #ifdef RTLD_GLOBAL
18249 # define LT_DLGLOBAL RTLD_GLOBAL
18250 #else
18251 # ifdef DL_GLOBAL
18252 # define LT_DLGLOBAL DL_GLOBAL
18253 # else
18254 # define LT_DLGLOBAL 0
18255 # endif
18256 #endif
18258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18259 find out it does not work in some platform. */
18260 #ifndef LT_DLLAZY_OR_NOW
18261 # ifdef RTLD_LAZY
18262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18263 # else
18264 # ifdef DL_LAZY
18265 # define LT_DLLAZY_OR_NOW DL_LAZY
18266 # else
18267 # ifdef RTLD_NOW
18268 # define LT_DLLAZY_OR_NOW RTLD_NOW
18269 # else
18270 # ifdef DL_NOW
18271 # define LT_DLLAZY_OR_NOW DL_NOW
18272 # else
18273 # define LT_DLLAZY_OR_NOW 0
18274 # endif
18275 # endif
18276 # endif
18277 # endif
18278 #endif
18280 /* When -fvisbility=hidden is used, assume the code has been annotated
18281 correspondingly for the symbols needed. */
18282 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18283 void fnord () __attribute__((visibility("default")));
18284 #endif
18286 void fnord () { int i=42; }
18287 int main ()
18289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18290 int status = $lt_dlunknown;
18292 if (self)
18294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18295 else
18297 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18298 else puts (dlerror ());
18300 /* dlclose (self); */
18302 else
18303 puts (dlerror ());
18305 return status;
18307 _LT_EOF
18308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18309 (eval $ac_link) 2>&5
18310 ac_status=$?
18311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18312 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18313 (./conftest; exit; ) >&5 2>/dev/null
18314 lt_status=$?
18315 case x$lt_status in
18316 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18317 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18318 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18319 esac
18320 else :
18321 # compilation failed
18322 lt_cv_dlopen_self=no
18325 rm -fr conftest*
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18330 $as_echo "$lt_cv_dlopen_self" >&6; }
18332 if test "x$lt_cv_dlopen_self" = xyes; then
18333 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18335 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18336 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18337 $as_echo_n "(cached) " >&6
18338 else
18339 if test "$cross_compiling" = yes; then :
18340 lt_cv_dlopen_self_static=cross
18341 else
18342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18343 lt_status=$lt_dlunknown
18344 cat > conftest.$ac_ext <<_LT_EOF
18345 #line 18345 "configure"
18346 #include "confdefs.h"
18348 #if HAVE_DLFCN_H
18349 #include <dlfcn.h>
18350 #endif
18352 #include <stdio.h>
18354 #ifdef RTLD_GLOBAL
18355 # define LT_DLGLOBAL RTLD_GLOBAL
18356 #else
18357 # ifdef DL_GLOBAL
18358 # define LT_DLGLOBAL DL_GLOBAL
18359 # else
18360 # define LT_DLGLOBAL 0
18361 # endif
18362 #endif
18364 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18365 find out it does not work in some platform. */
18366 #ifndef LT_DLLAZY_OR_NOW
18367 # ifdef RTLD_LAZY
18368 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18369 # else
18370 # ifdef DL_LAZY
18371 # define LT_DLLAZY_OR_NOW DL_LAZY
18372 # else
18373 # ifdef RTLD_NOW
18374 # define LT_DLLAZY_OR_NOW RTLD_NOW
18375 # else
18376 # ifdef DL_NOW
18377 # define LT_DLLAZY_OR_NOW DL_NOW
18378 # else
18379 # define LT_DLLAZY_OR_NOW 0
18380 # endif
18381 # endif
18382 # endif
18383 # endif
18384 #endif
18386 /* When -fvisbility=hidden is used, assume the code has been annotated
18387 correspondingly for the symbols needed. */
18388 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18389 void fnord () __attribute__((visibility("default")));
18390 #endif
18392 void fnord () { int i=42; }
18393 int main ()
18395 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18396 int status = $lt_dlunknown;
18398 if (self)
18400 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18401 else
18403 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18404 else puts (dlerror ());
18406 /* dlclose (self); */
18408 else
18409 puts (dlerror ());
18411 return status;
18413 _LT_EOF
18414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18415 (eval $ac_link) 2>&5
18416 ac_status=$?
18417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18418 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18419 (./conftest; exit; ) >&5 2>/dev/null
18420 lt_status=$?
18421 case x$lt_status in
18422 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18423 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18424 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18425 esac
18426 else :
18427 # compilation failed
18428 lt_cv_dlopen_self_static=no
18431 rm -fr conftest*
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18436 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18439 CPPFLAGS="$save_CPPFLAGS"
18440 LDFLAGS="$save_LDFLAGS"
18441 LIBS="$save_LIBS"
18443 esac
18445 case $lt_cv_dlopen_self in
18446 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18447 *) enable_dlopen_self=unknown ;;
18448 esac
18450 case $lt_cv_dlopen_self_static in
18451 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18452 *) enable_dlopen_self_static=unknown ;;
18453 esac
18472 striplib=
18473 old_striplib=
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18475 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18476 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18477 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18478 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18480 $as_echo "yes" >&6; }
18481 else
18482 # FIXME - insert some real tests, host_os isn't really good enough
18483 case $host_os in
18484 darwin*)
18485 if test -n "$STRIP" ; then
18486 striplib="$STRIP -x"
18487 old_striplib="$STRIP -S"
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18489 $as_echo "yes" >&6; }
18490 else
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18492 $as_echo "no" >&6; }
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18497 $as_echo "no" >&6; }
18499 esac
18513 # Report which library types will actually be built
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18515 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18517 $as_echo "$can_build_shared" >&6; }
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18520 $as_echo_n "checking whether to build shared libraries... " >&6; }
18521 test "$can_build_shared" = "no" && enable_shared=no
18523 # On AIX, shared libraries and static libraries use the same namespace, and
18524 # are all built from PIC.
18525 case $host_os in
18526 aix3*)
18527 test "$enable_shared" = yes && enable_static=no
18528 if test -n "$RANLIB"; then
18529 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18530 postinstall_cmds='$RANLIB $lib'
18534 aix[4-9]*)
18535 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18536 test "$enable_shared" = yes && enable_static=no
18539 esac
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18541 $as_echo "$enable_shared" >&6; }
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18544 $as_echo_n "checking whether to build static libraries... " >&6; }
18545 # Make sure either enable_shared or enable_static is yes.
18546 test "$enable_shared" = yes || enable_static=yes
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18548 $as_echo "$enable_static" >&6; }
18554 ac_ext=c
18555 ac_cpp='$CPP $CPPFLAGS'
18556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18560 CC="$lt_save_CC"
18562 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18563 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18564 (test "X$CXX" != "Xg++"))) ; then
18565 ac_ext=cpp
18566 ac_cpp='$CXXCPP $CPPFLAGS'
18567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18571 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18572 if test -z "$CXXCPP"; then
18573 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18574 $as_echo_n "(cached) " >&6
18575 else
18576 # Double quotes because CXXCPP needs to be expanded
18577 for CXXCPP in "$CXX -E" "/lib/cpp"
18579 ac_preproc_ok=false
18580 for ac_cxx_preproc_warn_flag in '' yes
18582 # Use a header file that comes with gcc, so configuring glibc
18583 # with a fresh cross-compiler works.
18584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18585 # <limits.h> exists even on freestanding compilers.
18586 # On the NeXT, cc -E runs the code through the compiler's parser,
18587 # not just through cpp. "Syntax error" is here to catch this case.
18588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18589 /* end confdefs.h. */
18590 #ifdef __STDC__
18591 # include <limits.h>
18592 #else
18593 # include <assert.h>
18594 #endif
18595 Syntax error
18596 _ACEOF
18597 if ac_fn_cxx_try_cpp "$LINENO"; then :
18599 else
18600 # Broken: fails on valid input.
18601 continue
18603 rm -f conftest.err conftest.$ac_ext
18605 # OK, works on sane cases. Now check whether nonexistent headers
18606 # can be detected and how.
18607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18608 /* end confdefs.h. */
18609 #include <ac_nonexistent.h>
18610 _ACEOF
18611 if ac_fn_cxx_try_cpp "$LINENO"; then :
18612 # Broken: success on invalid input.
18613 continue
18614 else
18615 # Passes both tests.
18616 ac_preproc_ok=:
18617 break
18619 rm -f conftest.err conftest.$ac_ext
18621 done
18622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18623 rm -f conftest.err conftest.$ac_ext
18624 if $ac_preproc_ok; then :
18625 break
18628 done
18629 ac_cv_prog_CXXCPP=$CXXCPP
18632 CXXCPP=$ac_cv_prog_CXXCPP
18633 else
18634 ac_cv_prog_CXXCPP=$CXXCPP
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18637 $as_echo "$CXXCPP" >&6; }
18638 ac_preproc_ok=false
18639 for ac_cxx_preproc_warn_flag in '' yes
18641 # Use a header file that comes with gcc, so configuring glibc
18642 # with a fresh cross-compiler works.
18643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18644 # <limits.h> exists even on freestanding compilers.
18645 # On the NeXT, cc -E runs the code through the compiler's parser,
18646 # not just through cpp. "Syntax error" is here to catch this case.
18647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18648 /* end confdefs.h. */
18649 #ifdef __STDC__
18650 # include <limits.h>
18651 #else
18652 # include <assert.h>
18653 #endif
18654 Syntax error
18655 _ACEOF
18656 if ac_fn_cxx_try_cpp "$LINENO"; then :
18658 else
18659 # Broken: fails on valid input.
18660 continue
18662 rm -f conftest.err conftest.$ac_ext
18664 # OK, works on sane cases. Now check whether nonexistent headers
18665 # can be detected and how.
18666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18667 /* end confdefs.h. */
18668 #include <ac_nonexistent.h>
18669 _ACEOF
18670 if ac_fn_cxx_try_cpp "$LINENO"; then :
18671 # Broken: success on invalid input.
18672 continue
18673 else
18674 # Passes both tests.
18675 ac_preproc_ok=:
18676 break
18678 rm -f conftest.err conftest.$ac_ext
18680 done
18681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18682 rm -f conftest.err conftest.$ac_ext
18683 if $ac_preproc_ok; then :
18685 else
18686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18688 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18689 See \`config.log' for more details." "$LINENO" 5; }
18692 ac_ext=c
18693 ac_cpp='$CPP $CPPFLAGS'
18694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18698 else
18699 _lt_caught_CXX_error=yes
18702 ac_ext=cpp
18703 ac_cpp='$CXXCPP $CPPFLAGS'
18704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18708 archive_cmds_need_lc_CXX=no
18709 allow_undefined_flag_CXX=
18710 always_export_symbols_CXX=no
18711 archive_expsym_cmds_CXX=
18712 compiler_needs_object_CXX=no
18713 export_dynamic_flag_spec_CXX=
18714 hardcode_direct_CXX=no
18715 hardcode_direct_absolute_CXX=no
18716 hardcode_libdir_flag_spec_CXX=
18717 hardcode_libdir_flag_spec_ld_CXX=
18718 hardcode_libdir_separator_CXX=
18719 hardcode_minus_L_CXX=no
18720 hardcode_shlibpath_var_CXX=unsupported
18721 hardcode_automatic_CXX=no
18722 inherit_rpath_CXX=no
18723 module_cmds_CXX=
18724 module_expsym_cmds_CXX=
18725 link_all_deplibs_CXX=unknown
18726 old_archive_cmds_CXX=$old_archive_cmds
18727 reload_flag_CXX=$reload_flag
18728 reload_cmds_CXX=$reload_cmds
18729 no_undefined_flag_CXX=
18730 whole_archive_flag_spec_CXX=
18731 enable_shared_with_static_runtimes_CXX=no
18733 # Source file extension for C++ test sources.
18734 ac_ext=cpp
18736 # Object file extension for compiled C++ test sources.
18737 objext=o
18738 objext_CXX=$objext
18740 # No sense in running all these tests if we already determined that
18741 # the CXX compiler isn't working. Some variables (like enable_shared)
18742 # are currently assumed to apply to all compilers on this platform,
18743 # and will be corrupted by setting them based on a non-working compiler.
18744 if test "$_lt_caught_CXX_error" != yes; then
18745 # Code to be used in simple compile tests
18746 lt_simple_compile_test_code="int some_variable = 0;"
18748 # Code to be used in simple link tests
18749 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18751 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18758 # If no C compiler was specified, use CC.
18759 LTCC=${LTCC-"$CC"}
18761 # If no C compiler flags were specified, use CFLAGS.
18762 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18764 # Allow CC to be a program name with arguments.
18765 compiler=$CC
18768 # save warnings/boilerplate of simple test code
18769 ac_outfile=conftest.$ac_objext
18770 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18771 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18772 _lt_compiler_boilerplate=`cat conftest.err`
18773 $RM conftest*
18775 ac_outfile=conftest.$ac_objext
18776 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18777 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18778 _lt_linker_boilerplate=`cat conftest.err`
18779 $RM -r conftest*
18782 # Allow CC to be a program name with arguments.
18783 lt_save_CC=$CC
18784 lt_save_LD=$LD
18785 lt_save_GCC=$GCC
18786 GCC=$GXX
18787 lt_save_with_gnu_ld=$with_gnu_ld
18788 lt_save_path_LD=$lt_cv_path_LD
18789 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18790 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18791 else
18792 $as_unset lt_cv_prog_gnu_ld
18794 if test -n "${lt_cv_path_LDCXX+set}"; then
18795 lt_cv_path_LD=$lt_cv_path_LDCXX
18796 else
18797 $as_unset lt_cv_path_LD
18799 test -z "${LDCXX+set}" || LD=$LDCXX
18800 CC=${CXX-"c++"}
18801 compiler=$CC
18802 compiler_CXX=$CC
18803 for cc_temp in $compiler""; do
18804 case $cc_temp in
18805 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18806 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18807 \-*) ;;
18808 *) break;;
18809 esac
18810 done
18811 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18814 if test -n "$compiler"; then
18815 # We don't want -fno-exception when compiling C++ code, so set the
18816 # no_builtin_flag separately
18817 if test "$GXX" = yes; then
18818 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18819 else
18820 lt_prog_compiler_no_builtin_flag_CXX=
18823 if test "$GXX" = yes; then
18824 # Set up default GNU C++ configuration
18828 # Check whether --with-gnu-ld was given.
18829 if test "${with_gnu_ld+set}" = set; then :
18830 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18831 else
18832 with_gnu_ld=no
18835 ac_prog=ld
18836 if test "$GCC" = yes; then
18837 # Check if gcc -print-prog-name=ld gives a path.
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18839 $as_echo_n "checking for ld used by $CC... " >&6; }
18840 case $host in
18841 *-*-mingw*)
18842 # gcc leaves a trailing carriage return which upsets mingw
18843 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18845 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18846 esac
18847 case $ac_prog in
18848 # Accept absolute paths.
18849 [\\/]* | ?:[\\/]*)
18850 re_direlt='/[^/][^/]*/\.\./'
18851 # Canonicalize the pathname of ld
18852 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18853 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18854 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18855 done
18856 test -z "$LD" && LD="$ac_prog"
18859 # If it fails, then pretend we aren't using GCC.
18860 ac_prog=ld
18863 # If it is relative, then search for the first ld in PATH.
18864 with_gnu_ld=unknown
18866 esac
18867 elif test "$with_gnu_ld" = yes; then
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18869 $as_echo_n "checking for GNU ld... " >&6; }
18870 else
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18872 $as_echo_n "checking for non-GNU ld... " >&6; }
18874 if test "${lt_cv_path_LD+set}" = set; then :
18875 $as_echo_n "(cached) " >&6
18876 else
18877 if test -z "$LD"; then
18878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18879 for ac_dir in $PATH; do
18880 IFS="$lt_save_ifs"
18881 test -z "$ac_dir" && ac_dir=.
18882 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18883 lt_cv_path_LD="$ac_dir/$ac_prog"
18884 # Check to see if the program is GNU ld. I'd rather use --version,
18885 # but apparently some variants of GNU ld only accept -v.
18886 # Break only if it was the GNU/non-GNU ld that we prefer.
18887 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18888 *GNU* | *'with BFD'*)
18889 test "$with_gnu_ld" != no && break
18892 test "$with_gnu_ld" != yes && break
18894 esac
18896 done
18897 IFS="$lt_save_ifs"
18898 else
18899 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18903 LD="$lt_cv_path_LD"
18904 if test -n "$LD"; then
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18906 $as_echo "$LD" >&6; }
18907 else
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18909 $as_echo "no" >&6; }
18911 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18913 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18914 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18915 $as_echo_n "(cached) " >&6
18916 else
18917 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18918 case `$LD -v 2>&1 </dev/null` in
18919 *GNU* | *'with BFD'*)
18920 lt_cv_prog_gnu_ld=yes
18923 lt_cv_prog_gnu_ld=no
18925 esac
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18928 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18929 with_gnu_ld=$lt_cv_prog_gnu_ld
18937 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18938 # archiving commands below assume that GNU ld is being used.
18939 if test "$with_gnu_ld" = yes; then
18940 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18941 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'
18943 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18944 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18946 # If archive_cmds runs LD, not CC, wlarc should be empty
18947 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18948 # investigate it a little bit more. (MM)
18949 wlarc='${wl}'
18951 # ancient GNU ld didn't support --whole-archive et. al.
18952 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18953 $GREP 'no-whole-archive' > /dev/null; then
18954 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18955 else
18956 whole_archive_flag_spec_CXX=
18958 else
18959 with_gnu_ld=no
18960 wlarc=
18962 # A generic and very simple default shared library creation
18963 # command for GNU C++ for the case where it uses the native
18964 # linker, instead of GNU ld. If possible, this setting should
18965 # overridden to take advantage of the native linker features on
18966 # the platform it is being used on.
18967 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18970 # Commands to make compiler produce verbose output that lists
18971 # what "hidden" libraries, object files and flags are used when
18972 # linking a shared library.
18973 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18975 else
18976 GXX=no
18977 with_gnu_ld=no
18978 wlarc=
18981 # PORTME: fill in a description of your system's C++ link characteristics
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18983 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18984 ld_shlibs_CXX=yes
18985 case $host_os in
18986 aix3*)
18987 # FIXME: insert proper C++ library support
18988 ld_shlibs_CXX=no
18990 aix[4-9]*)
18991 if test "$host_cpu" = ia64; then
18992 # On IA64, the linker does run time linking by default, so we don't
18993 # have to do anything special.
18994 aix_use_runtimelinking=no
18995 exp_sym_flag='-Bexport'
18996 no_entry_flag=""
18997 else
18998 aix_use_runtimelinking=no
19000 # Test if we are trying to use run time linking or normal
19001 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19002 # need to do runtime linking.
19003 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19004 for ld_flag in $LDFLAGS; do
19005 case $ld_flag in
19006 *-brtl*)
19007 aix_use_runtimelinking=yes
19008 break
19010 esac
19011 done
19013 esac
19015 exp_sym_flag='-bexport'
19016 no_entry_flag='-bnoentry'
19019 # When large executables or shared objects are built, AIX ld can
19020 # have problems creating the table of contents. If linking a library
19021 # or program results in "error TOC overflow" add -mminimal-toc to
19022 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19023 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19025 archive_cmds_CXX=''
19026 hardcode_direct_CXX=yes
19027 hardcode_direct_absolute_CXX=yes
19028 hardcode_libdir_separator_CXX=':'
19029 link_all_deplibs_CXX=yes
19030 file_list_spec_CXX='${wl}-f,'
19032 if test "$GXX" = yes; then
19033 case $host_os in aix4.[012]|aix4.[012].*)
19034 # We only want to do this on AIX 4.2 and lower, the check
19035 # below for broken collect2 doesn't work under 4.3+
19036 collect2name=`${CC} -print-prog-name=collect2`
19037 if test -f "$collect2name" &&
19038 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19039 then
19040 # We have reworked collect2
19042 else
19043 # We have old collect2
19044 hardcode_direct_CXX=unsupported
19045 # It fails to find uninstalled libraries when the uninstalled
19046 # path is not listed in the libpath. Setting hardcode_minus_L
19047 # to unsupported forces relinking
19048 hardcode_minus_L_CXX=yes
19049 hardcode_libdir_flag_spec_CXX='-L$libdir'
19050 hardcode_libdir_separator_CXX=
19052 esac
19053 shared_flag='-shared'
19054 if test "$aix_use_runtimelinking" = yes; then
19055 shared_flag="$shared_flag "'${wl}-G'
19057 else
19058 # not using gcc
19059 if test "$host_cpu" = ia64; then
19060 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19061 # chokes on -Wl,-G. The following line is correct:
19062 shared_flag='-G'
19063 else
19064 if test "$aix_use_runtimelinking" = yes; then
19065 shared_flag='${wl}-G'
19066 else
19067 shared_flag='${wl}-bM:SRE'
19072 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19073 # It seems that -bexpall does not export symbols beginning with
19074 # underscore (_), so it is better to generate a list of symbols to
19075 # export.
19076 always_export_symbols_CXX=yes
19077 if test "$aix_use_runtimelinking" = yes; then
19078 # Warning - without using the other runtime loading flags (-brtl),
19079 # -berok will link without error, but may produce a broken library.
19080 allow_undefined_flag_CXX='-berok'
19081 # Determine the default libpath from the value encoded in an empty
19082 # executable.
19083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19084 /* end confdefs.h. */
19087 main ()
19091 return 0;
19093 _ACEOF
19094 if ac_fn_cxx_try_link "$LINENO"; then :
19096 lt_aix_libpath_sed='
19097 /Import File Strings/,/^$/ {
19098 /^0/ {
19099 s/^0 *\(.*\)$/\1/
19103 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19104 # Check for a 64-bit object if we didn't find anything.
19105 if test -z "$aix_libpath"; then
19106 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19109 rm -f core conftest.err conftest.$ac_objext \
19110 conftest$ac_exeext conftest.$ac_ext
19111 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19113 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19115 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"
19116 else
19117 if test "$host_cpu" = ia64; then
19118 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19119 allow_undefined_flag_CXX="-z nodefs"
19120 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"
19121 else
19122 # Determine the default libpath from the value encoded in an
19123 # empty executable.
19124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19125 /* end confdefs.h. */
19128 main ()
19132 return 0;
19134 _ACEOF
19135 if ac_fn_cxx_try_link "$LINENO"; then :
19137 lt_aix_libpath_sed='
19138 /Import File Strings/,/^$/ {
19139 /^0/ {
19140 s/^0 *\(.*\)$/\1/
19144 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19145 # Check for a 64-bit object if we didn't find anything.
19146 if test -z "$aix_libpath"; then
19147 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19150 rm -f core conftest.err conftest.$ac_objext \
19151 conftest$ac_exeext conftest.$ac_ext
19152 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19154 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19155 # Warning - without using the other run time loading flags,
19156 # -berok will link without error, but may produce a broken library.
19157 no_undefined_flag_CXX=' ${wl}-bernotok'
19158 allow_undefined_flag_CXX=' ${wl}-berok'
19159 if test "$with_gnu_ld" = yes; then
19160 # We only use this code for GNU lds that support --whole-archive.
19161 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19162 else
19163 # Exported symbols can be pulled into shared objects from archives
19164 whole_archive_flag_spec_CXX='$convenience'
19166 archive_cmds_need_lc_CXX=yes
19167 # This is similar to how AIX traditionally builds its shared
19168 # libraries.
19169 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'
19174 beos*)
19175 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19176 allow_undefined_flag_CXX=unsupported
19177 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19178 # support --undefined. This deserves some investigation. FIXME
19179 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19180 else
19181 ld_shlibs_CXX=no
19185 chorus*)
19186 case $cc_basename in
19188 # FIXME: insert proper C++ library support
19189 ld_shlibs_CXX=no
19191 esac
19194 cygwin* | mingw* | pw32* | cegcc*)
19195 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19196 # as there is no search path for DLLs.
19197 hardcode_libdir_flag_spec_CXX='-L$libdir'
19198 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19199 allow_undefined_flag_CXX=unsupported
19200 always_export_symbols_CXX=no
19201 enable_shared_with_static_runtimes_CXX=yes
19203 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19204 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'
19205 # If the export-symbols file already is a .def file (1st line
19206 # is EXPORTS), use it as is; otherwise, prepend...
19207 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19208 cp $export_symbols $output_objdir/$soname.def;
19209 else
19210 echo EXPORTS > $output_objdir/$soname.def;
19211 cat $export_symbols >> $output_objdir/$soname.def;
19213 $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'
19214 else
19215 ld_shlibs_CXX=no
19218 darwin* | rhapsody*)
19221 archive_cmds_need_lc_CXX=no
19222 hardcode_direct_CXX=no
19223 hardcode_automatic_CXX=yes
19224 hardcode_shlibpath_var_CXX=unsupported
19225 if test "$lt_cv_ld_force_load" = "yes"; then
19226 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\"`'
19227 else
19228 whole_archive_flag_spec_CXX=''
19230 link_all_deplibs_CXX=yes
19231 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19232 case $cc_basename in
19233 ifort*) _lt_dar_can_shared=yes ;;
19234 *) _lt_dar_can_shared=$GCC ;;
19235 esac
19236 if test "$_lt_dar_can_shared" = "yes"; then
19237 output_verbose_link_cmd=func_echo_all
19238 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}"
19239 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19240 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}"
19241 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}"
19242 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19243 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}"
19244 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}"
19247 else
19248 ld_shlibs_CXX=no
19253 dgux*)
19254 case $cc_basename in
19255 ec++*)
19256 # FIXME: insert proper C++ library support
19257 ld_shlibs_CXX=no
19259 ghcx*)
19260 # Green Hills C++ Compiler
19261 # FIXME: insert proper C++ library support
19262 ld_shlibs_CXX=no
19265 # FIXME: insert proper C++ library support
19266 ld_shlibs_CXX=no
19268 esac
19271 freebsd2.*)
19272 # C++ shared libraries reported to be fairly broken before
19273 # switch to ELF
19274 ld_shlibs_CXX=no
19277 freebsd-elf*)
19278 archive_cmds_need_lc_CXX=no
19281 freebsd* | dragonfly*)
19282 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19283 # conventions
19284 ld_shlibs_CXX=yes
19287 gnu*)
19290 haiku*)
19291 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19292 link_all_deplibs_CXX=yes
19295 hpux9*)
19296 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19297 hardcode_libdir_separator_CXX=:
19298 export_dynamic_flag_spec_CXX='${wl}-E'
19299 hardcode_direct_CXX=yes
19300 hardcode_minus_L_CXX=yes # Not in the search PATH,
19301 # but as the default
19302 # location of the library.
19304 case $cc_basename in
19305 CC*)
19306 # FIXME: insert proper C++ library support
19307 ld_shlibs_CXX=no
19309 aCC*)
19310 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'
19311 # Commands to make compiler produce verbose output that lists
19312 # what "hidden" libraries, object files and flags are used when
19313 # linking a shared library.
19315 # There doesn't appear to be a way to prevent this compiler from
19316 # explicitly linking system object files so we need to strip them
19317 # from the output so that they don't get included in the library
19318 # dependencies.
19319 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"'
19322 if test "$GXX" = yes; then
19323 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'
19324 else
19325 # FIXME: insert proper C++ library support
19326 ld_shlibs_CXX=no
19329 esac
19332 hpux10*|hpux11*)
19333 if test $with_gnu_ld = no; then
19334 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19335 hardcode_libdir_separator_CXX=:
19337 case $host_cpu in
19338 hppa*64*|ia64*)
19341 export_dynamic_flag_spec_CXX='${wl}-E'
19343 esac
19345 case $host_cpu in
19346 hppa*64*|ia64*)
19347 hardcode_direct_CXX=no
19348 hardcode_shlibpath_var_CXX=no
19351 hardcode_direct_CXX=yes
19352 hardcode_direct_absolute_CXX=yes
19353 hardcode_minus_L_CXX=yes # Not in the search PATH,
19354 # but as the default
19355 # location of the library.
19357 esac
19359 case $cc_basename in
19360 CC*)
19361 # FIXME: insert proper C++ library support
19362 ld_shlibs_CXX=no
19364 aCC*)
19365 case $host_cpu in
19366 hppa*64*)
19367 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19369 ia64*)
19370 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19373 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19375 esac
19376 # Commands to make compiler produce verbose output that lists
19377 # what "hidden" libraries, object files and flags are used when
19378 # linking a shared library.
19380 # There doesn't appear to be a way to prevent this compiler from
19381 # explicitly linking system object files so we need to strip them
19382 # from the output so that they don't get included in the library
19383 # dependencies.
19384 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"'
19387 if test "$GXX" = yes; then
19388 if test $with_gnu_ld = no; then
19389 case $host_cpu in
19390 hppa*64*)
19391 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19393 ia64*)
19394 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19397 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'
19399 esac
19401 else
19402 # FIXME: insert proper C++ library support
19403 ld_shlibs_CXX=no
19406 esac
19409 interix[3-9]*)
19410 hardcode_direct_CXX=no
19411 hardcode_shlibpath_var_CXX=no
19412 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19413 export_dynamic_flag_spec_CXX='${wl}-E'
19414 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19415 # Instead, shared libraries are loaded at an image base (0x10000000 by
19416 # default) and relocated if they conflict, which is a slow very memory
19417 # consuming and fragmenting process. To avoid this, we pick a random,
19418 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19419 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19420 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'
19421 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'
19423 irix5* | irix6*)
19424 case $cc_basename in
19425 CC*)
19426 # SGI C++
19427 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'
19429 # Archives containing C++ object files must be created using
19430 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19431 # necessary to make sure instantiated templates are included
19432 # in the archive.
19433 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19436 if test "$GXX" = yes; then
19437 if test "$with_gnu_ld" = no; then
19438 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'
19439 else
19440 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'
19443 link_all_deplibs_CXX=yes
19445 esac
19446 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19447 hardcode_libdir_separator_CXX=:
19448 inherit_rpath_CXX=yes
19451 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19452 case $cc_basename in
19453 KCC*)
19454 # Kuck and Associates, Inc. (KAI) C++ Compiler
19456 # KCC will only create a shared library if the output file
19457 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19458 # to its proper name (with version) after linking.
19459 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'
19460 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'
19461 # Commands to make compiler produce verbose output that lists
19462 # what "hidden" libraries, object files and flags are used when
19463 # linking a shared library.
19465 # There doesn't appear to be a way to prevent this compiler from
19466 # explicitly linking system object files so we need to strip them
19467 # from the output so that they don't get included in the library
19468 # dependencies.
19469 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"'
19471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19472 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19474 # Archives containing C++ object files must be created using
19475 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19476 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19478 icpc* | ecpc* )
19479 # Intel C++
19480 with_gnu_ld=yes
19481 # version 8.0 and above of icpc choke on multiply defined symbols
19482 # if we add $predep_objects and $postdep_objects, however 7.1 and
19483 # earlier do not add the objects themselves.
19484 case `$CC -V 2>&1` in
19485 *"Version 7."*)
19486 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19487 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'
19489 *) # Version 8.0 or newer
19490 tmp_idyn=
19491 case $host_cpu in
19492 ia64*) tmp_idyn=' -i_dynamic';;
19493 esac
19494 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19495 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'
19497 esac
19498 archive_cmds_need_lc_CXX=no
19499 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19500 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19501 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19503 pgCC* | pgcpp*)
19504 # Portland Group C++ compiler
19505 case `$CC -V` in
19506 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19507 prelink_cmds_CXX='tpldir=Template.dir~
19508 rm -rf $tpldir~
19509 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19510 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19511 old_archive_cmds_CXX='tpldir=Template.dir~
19512 rm -rf $tpldir~
19513 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19514 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19515 $RANLIB $oldlib'
19516 archive_cmds_CXX='tpldir=Template.dir~
19517 rm -rf $tpldir~
19518 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19519 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19520 archive_expsym_cmds_CXX='tpldir=Template.dir~
19521 rm -rf $tpldir~
19522 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19523 $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'
19525 *) # Version 6 and above use weak symbols
19526 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19527 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'
19529 esac
19531 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19532 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19533 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'
19535 cxx*)
19536 # Compaq C++
19537 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19538 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'
19540 runpath_var=LD_RUN_PATH
19541 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19542 hardcode_libdir_separator_CXX=:
19544 # Commands to make compiler produce verbose output that lists
19545 # what "hidden" libraries, object files and flags are used when
19546 # linking a shared library.
19548 # There doesn't appear to be a way to prevent this compiler from
19549 # explicitly linking system object files so we need to strip them
19550 # from the output so that they don't get included in the library
19551 # dependencies.
19552 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'
19554 xl* | mpixl* | bgxl*)
19555 # IBM XL 8.0 on PPC, with GNU ld
19556 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19557 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19558 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19559 if test "x$supports_anon_versioning" = xyes; then
19560 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19562 echo "local: *; };" >> $output_objdir/$libname.ver~
19563 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19567 case `$CC -V 2>&1 | sed 5q` in
19568 *Sun\ C*)
19569 # Sun C++ 5.9
19570 no_undefined_flag_CXX=' -zdefs'
19571 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19572 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'
19573 hardcode_libdir_flag_spec_CXX='-R$libdir'
19574 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'
19575 compiler_needs_object_CXX=yes
19577 # Not sure whether something based on
19578 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19579 # would be better.
19580 output_verbose_link_cmd='func_echo_all'
19582 # Archives containing C++ object files must be created using
19583 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19584 # necessary to make sure instantiated templates are included
19585 # in the archive.
19586 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19588 esac
19590 esac
19593 lynxos*)
19594 # FIXME: insert proper C++ library support
19595 ld_shlibs_CXX=no
19598 m88k*)
19599 # FIXME: insert proper C++ library support
19600 ld_shlibs_CXX=no
19603 mvs*)
19604 case $cc_basename in
19605 cxx*)
19606 # FIXME: insert proper C++ library support
19607 ld_shlibs_CXX=no
19610 # FIXME: insert proper C++ library support
19611 ld_shlibs_CXX=no
19613 esac
19616 netbsd*)
19617 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19618 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19619 wlarc=
19620 hardcode_libdir_flag_spec_CXX='-R$libdir'
19621 hardcode_direct_CXX=yes
19622 hardcode_shlibpath_var_CXX=no
19624 # Workaround some broken pre-1.5 toolchains
19625 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19628 *nto* | *qnx*)
19629 ld_shlibs_CXX=yes
19632 openbsd2*)
19633 # C++ shared libraries are fairly broken
19634 ld_shlibs_CXX=no
19637 openbsd*)
19638 if test -f /usr/libexec/ld.so; then
19639 hardcode_direct_CXX=yes
19640 hardcode_shlibpath_var_CXX=no
19641 hardcode_direct_absolute_CXX=yes
19642 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19643 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19644 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19645 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19646 export_dynamic_flag_spec_CXX='${wl}-E'
19647 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19649 output_verbose_link_cmd=func_echo_all
19650 else
19651 ld_shlibs_CXX=no
19655 osf3* | osf4* | osf5*)
19656 case $cc_basename in
19657 KCC*)
19658 # Kuck and Associates, Inc. (KAI) C++ Compiler
19660 # KCC will only create a shared library if the output file
19661 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19662 # to its proper name (with version) after linking.
19663 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'
19665 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19666 hardcode_libdir_separator_CXX=:
19668 # Archives containing C++ object files must be created using
19669 # the KAI C++ compiler.
19670 case $host in
19671 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19672 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19673 esac
19675 RCC*)
19676 # Rational C++ 2.4.1
19677 # FIXME: insert proper C++ library support
19678 ld_shlibs_CXX=no
19680 cxx*)
19681 case $host in
19682 osf3*)
19683 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19684 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'
19685 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19688 allow_undefined_flag_CXX=' -expect_unresolved \*'
19689 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'
19690 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19691 echo "-hidden">> $lib.exp~
19692 $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~
19693 $RM $lib.exp'
19694 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19696 esac
19698 hardcode_libdir_separator_CXX=:
19700 # Commands to make compiler produce verbose output that lists
19701 # what "hidden" libraries, object files and flags are used when
19702 # linking a shared library.
19704 # There doesn't appear to be a way to prevent this compiler from
19705 # explicitly linking system object files so we need to strip them
19706 # from the output so that they don't get included in the library
19707 # dependencies.
19708 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"'
19711 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19712 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19713 case $host in
19714 osf3*)
19715 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'
19718 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'
19720 esac
19722 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19723 hardcode_libdir_separator_CXX=:
19725 # Commands to make compiler produce verbose output that lists
19726 # what "hidden" libraries, object files and flags are used when
19727 # linking a shared library.
19728 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19730 else
19731 # FIXME: insert proper C++ library support
19732 ld_shlibs_CXX=no
19735 esac
19738 psos*)
19739 # FIXME: insert proper C++ library support
19740 ld_shlibs_CXX=no
19743 sunos4*)
19744 case $cc_basename in
19745 CC*)
19746 # Sun C++ 4.x
19747 # FIXME: insert proper C++ library support
19748 ld_shlibs_CXX=no
19750 lcc*)
19751 # Lucid
19752 # FIXME: insert proper C++ library support
19753 ld_shlibs_CXX=no
19756 # FIXME: insert proper C++ library support
19757 ld_shlibs_CXX=no
19759 esac
19762 solaris*)
19763 case $cc_basename in
19764 CC*)
19765 # Sun C++ 4.2, 5.x and Centerline C++
19766 archive_cmds_need_lc_CXX=yes
19767 no_undefined_flag_CXX=' -zdefs'
19768 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19769 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19770 $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'
19772 hardcode_libdir_flag_spec_CXX='-R$libdir'
19773 hardcode_shlibpath_var_CXX=no
19774 case $host_os in
19775 solaris2.[0-5] | solaris2.[0-5].*) ;;
19777 # The compiler driver will combine and reorder linker options,
19778 # but understands `-z linker_flag'.
19779 # Supported since Solaris 2.6 (maybe 2.5.1?)
19780 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19782 esac
19783 link_all_deplibs_CXX=yes
19785 output_verbose_link_cmd='func_echo_all'
19787 # Archives containing C++ object files must be created using
19788 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19789 # necessary to make sure instantiated templates are included
19790 # in the archive.
19791 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19793 gcx*)
19794 # Green Hills C++ Compiler
19795 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19797 # The C++ compiler must be used to create the archive.
19798 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19801 # GNU C++ compiler with Solaris linker
19802 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19803 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19804 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19805 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19806 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19807 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19809 # Commands to make compiler produce verbose output that lists
19810 # what "hidden" libraries, object files and flags are used when
19811 # linking a shared library.
19812 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19813 else
19814 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19815 # platform.
19816 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19817 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19818 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19820 # Commands to make compiler produce verbose output that lists
19821 # what "hidden" libraries, object files and flags are used when
19822 # linking a shared library.
19823 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19826 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19827 case $host_os in
19828 solaris2.[0-5] | solaris2.[0-5].*) ;;
19830 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19832 esac
19835 esac
19838 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19839 no_undefined_flag_CXX='${wl}-z,text'
19840 archive_cmds_need_lc_CXX=no
19841 hardcode_shlibpath_var_CXX=no
19842 runpath_var='LD_RUN_PATH'
19844 case $cc_basename in
19845 CC*)
19846 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19847 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19850 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19851 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19853 esac
19856 sysv5* | sco3.2v5* | sco5v6*)
19857 # Note: We can NOT use -z defs as we might desire, because we do not
19858 # link with -lc, and that would cause any symbols used from libc to
19859 # always be unresolved, which means just about no library would
19860 # ever link correctly. If we're not using GNU ld we use -z text
19861 # though, which does catch some bad symbols but isn't as heavy-handed
19862 # as -z defs.
19863 no_undefined_flag_CXX='${wl}-z,text'
19864 allow_undefined_flag_CXX='${wl}-z,nodefs'
19865 archive_cmds_need_lc_CXX=no
19866 hardcode_shlibpath_var_CXX=no
19867 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19868 hardcode_libdir_separator_CXX=':'
19869 link_all_deplibs_CXX=yes
19870 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19871 runpath_var='LD_RUN_PATH'
19873 case $cc_basename in
19874 CC*)
19875 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19876 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19877 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19878 '"$old_archive_cmds_CXX"
19879 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19880 '"$reload_cmds_CXX"
19883 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19884 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19886 esac
19889 tandem*)
19890 case $cc_basename in
19891 NCC*)
19892 # NonStop-UX NCC 3.20
19893 # FIXME: insert proper C++ library support
19894 ld_shlibs_CXX=no
19897 # FIXME: insert proper C++ library support
19898 ld_shlibs_CXX=no
19900 esac
19903 vxworks*)
19904 # FIXME: insert proper C++ library support
19905 ld_shlibs_CXX=no
19909 # FIXME: insert proper C++ library support
19910 ld_shlibs_CXX=no
19912 esac
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19915 $as_echo "$ld_shlibs_CXX" >&6; }
19916 test "$ld_shlibs_CXX" = no && can_build_shared=no
19918 GCC_CXX="$GXX"
19919 LD_CXX="$LD"
19921 ## CAVEAT EMPTOR:
19922 ## There is no encapsulation within the following macros, do not change
19923 ## the running order or otherwise move them around unless you know exactly
19924 ## what you are doing...
19925 # Dependencies to place before and after the object being linked:
19926 predep_objects_CXX=
19927 postdep_objects_CXX=
19928 predeps_CXX=
19929 postdeps_CXX=
19930 compiler_lib_search_path_CXX=
19932 cat > conftest.$ac_ext <<_LT_EOF
19933 class Foo
19935 public:
19936 Foo (void) { a = 0; }
19937 private:
19938 int a;
19940 _LT_EOF
19942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19943 (eval $ac_compile) 2>&5
19944 ac_status=$?
19945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19946 test $ac_status = 0; }; then
19947 # Parse the compiler output and extract the necessary
19948 # objects, libraries and library flags.
19950 # Sentinel used to keep track of whether or not we are before
19951 # the conftest object file.
19952 pre_test_object_deps_done=no
19954 for p in `eval "$output_verbose_link_cmd"`; do
19955 case $p in
19957 -L* | -R* | -l*)
19958 # Some compilers place space between "-{L,R}" and the path.
19959 # Remove the space.
19960 if test $p = "-L" ||
19961 test $p = "-R"; then
19962 prev=$p
19963 continue
19964 else
19965 prev=
19968 if test "$pre_test_object_deps_done" = no; then
19969 case $p in
19970 -L* | -R*)
19971 # Internal compiler library paths should come after those
19972 # provided the user. The postdeps already come after the
19973 # user supplied libs so there is no need to process them.
19974 if test -z "$compiler_lib_search_path_CXX"; then
19975 compiler_lib_search_path_CXX="${prev}${p}"
19976 else
19977 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19980 # The "-l" case would never come before the object being
19981 # linked, so don't bother handling this case.
19982 esac
19983 else
19984 if test -z "$postdeps_CXX"; then
19985 postdeps_CXX="${prev}${p}"
19986 else
19987 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19992 *.$objext)
19993 # This assumes that the test object file only shows up
19994 # once in the compiler output.
19995 if test "$p" = "conftest.$objext"; then
19996 pre_test_object_deps_done=yes
19997 continue
20000 if test "$pre_test_object_deps_done" = no; then
20001 if test -z "$predep_objects_CXX"; then
20002 predep_objects_CXX="$p"
20003 else
20004 predep_objects_CXX="$predep_objects_CXX $p"
20006 else
20007 if test -z "$postdep_objects_CXX"; then
20008 postdep_objects_CXX="$p"
20009 else
20010 postdep_objects_CXX="$postdep_objects_CXX $p"
20015 *) ;; # Ignore the rest.
20017 esac
20018 done
20020 # Clean up.
20021 rm -f a.out a.exe
20022 else
20023 echo "libtool.m4: error: problem compiling CXX test program"
20026 $RM -f confest.$objext
20028 # PORTME: override above test on systems where it is broken
20029 case $host_os in
20030 interix[3-9]*)
20031 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20032 # hack all around it, let's just trust "g++" to DTRT.
20033 predep_objects_CXX=
20034 postdep_objects_CXX=
20035 postdeps_CXX=
20038 linux*)
20039 case `$CC -V 2>&1 | sed 5q` in
20040 *Sun\ C*)
20041 # Sun C++ 5.9
20043 # The more standards-conforming stlport4 library is
20044 # incompatible with the Cstd library. Avoid specifying
20045 # it if it's in CXXFLAGS. Ignore libCrun as
20046 # -library=stlport4 depends on it.
20047 case " $CXX $CXXFLAGS " in
20048 *" -library=stlport4 "*)
20049 solaris_use_stlport4=yes
20051 esac
20053 if test "$solaris_use_stlport4" != yes; then
20054 postdeps_CXX='-library=Cstd -library=Crun'
20057 esac
20060 solaris*)
20061 case $cc_basename in
20062 CC*)
20063 # The more standards-conforming stlport4 library is
20064 # incompatible with the Cstd library. Avoid specifying
20065 # it if it's in CXXFLAGS. Ignore libCrun as
20066 # -library=stlport4 depends on it.
20067 case " $CXX $CXXFLAGS " in
20068 *" -library=stlport4 "*)
20069 solaris_use_stlport4=yes
20071 esac
20073 # Adding this requires a known-good setup of shared libraries for
20074 # Sun compiler versions before 5.6, else PIC objects from an old
20075 # archive will be linked into the output, leading to subtle bugs.
20076 if test "$solaris_use_stlport4" != yes; then
20077 postdeps_CXX='-library=Cstd -library=Crun'
20080 esac
20082 esac
20085 case " $postdeps_CXX " in
20086 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20087 esac
20088 compiler_lib_search_dirs_CXX=
20089 if test -n "${compiler_lib_search_path_CXX}"; then
20090 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20123 lt_prog_compiler_wl_CXX=
20124 lt_prog_compiler_pic_CXX=
20125 lt_prog_compiler_static_CXX=
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20128 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20130 # C++ specific cases for pic, static, wl, etc.
20131 if test "$GXX" = yes; then
20132 lt_prog_compiler_wl_CXX='-Wl,'
20133 lt_prog_compiler_static_CXX='-static'
20135 case $host_os in
20136 aix*)
20137 # All AIX code is PIC.
20138 if test "$host_cpu" = ia64; then
20139 # AIX 5 now supports IA64 processor
20140 lt_prog_compiler_static_CXX='-Bstatic'
20144 amigaos*)
20145 case $host_cpu in
20146 powerpc)
20147 # see comment about AmigaOS4 .so support
20148 lt_prog_compiler_pic_CXX='-fPIC'
20150 m68k)
20151 # FIXME: we need at least 68020 code to build shared libraries, but
20152 # adding the `-m68020' flag to GCC prevents building anything better,
20153 # like `-m68040'.
20154 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20156 esac
20159 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20160 # PIC is the default for these OSes.
20162 mingw* | cygwin* | os2* | pw32* | cegcc*)
20163 # This hack is so that the source file can tell whether it is being
20164 # built for inclusion in a dll (and should export symbols for example).
20165 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20166 # (--disable-auto-import) libraries
20167 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20169 darwin* | rhapsody*)
20170 # PIC is the default on this platform
20171 # Common symbols not allowed in MH_DYLIB files
20172 lt_prog_compiler_pic_CXX='-fno-common'
20174 *djgpp*)
20175 # DJGPP does not support shared libraries at all
20176 lt_prog_compiler_pic_CXX=
20178 haiku*)
20179 # PIC is the default for Haiku.
20180 # The "-static" flag exists, but is broken.
20181 lt_prog_compiler_static_CXX=
20183 interix[3-9]*)
20184 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20185 # Instead, we relocate shared libraries at runtime.
20187 sysv4*MP*)
20188 if test -d /usr/nec; then
20189 lt_prog_compiler_pic_CXX=-Kconform_pic
20192 hpux*)
20193 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20194 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20195 # sets the default TLS model and affects inlining.
20196 case $host_cpu in
20197 hppa*64*)
20200 lt_prog_compiler_pic_CXX='-fPIC'
20202 esac
20204 *qnx* | *nto*)
20205 # QNX uses GNU C++, but need to define -shared option too, otherwise
20206 # it will coredump.
20207 lt_prog_compiler_pic_CXX='-fPIC -shared'
20210 lt_prog_compiler_pic_CXX='-fPIC'
20212 esac
20213 else
20214 case $host_os in
20215 aix[4-9]*)
20216 # All AIX code is PIC.
20217 if test "$host_cpu" = ia64; then
20218 # AIX 5 now supports IA64 processor
20219 lt_prog_compiler_static_CXX='-Bstatic'
20220 else
20221 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20224 chorus*)
20225 case $cc_basename in
20226 cxch68*)
20227 # Green Hills C++ Compiler
20228 # _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"
20230 esac
20232 dgux*)
20233 case $cc_basename in
20234 ec++*)
20235 lt_prog_compiler_pic_CXX='-KPIC'
20237 ghcx*)
20238 # Green Hills C++ Compiler
20239 lt_prog_compiler_pic_CXX='-pic'
20243 esac
20245 freebsd* | dragonfly*)
20246 # FreeBSD uses GNU C++
20248 hpux9* | hpux10* | hpux11*)
20249 case $cc_basename in
20250 CC*)
20251 lt_prog_compiler_wl_CXX='-Wl,'
20252 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20253 if test "$host_cpu" != ia64; then
20254 lt_prog_compiler_pic_CXX='+Z'
20257 aCC*)
20258 lt_prog_compiler_wl_CXX='-Wl,'
20259 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20260 case $host_cpu in
20261 hppa*64*|ia64*)
20262 # +Z the default
20265 lt_prog_compiler_pic_CXX='+Z'
20267 esac
20271 esac
20273 interix*)
20274 # This is c89, which is MS Visual C++ (no shared libs)
20275 # Anyone wants to do a port?
20277 irix5* | irix6* | nonstopux*)
20278 case $cc_basename in
20279 CC*)
20280 lt_prog_compiler_wl_CXX='-Wl,'
20281 lt_prog_compiler_static_CXX='-non_shared'
20282 # CC pic flag -KPIC is the default.
20286 esac
20288 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20289 case $cc_basename in
20290 KCC*)
20291 # KAI C++ Compiler
20292 lt_prog_compiler_wl_CXX='--backend -Wl,'
20293 lt_prog_compiler_pic_CXX='-fPIC'
20295 ecpc* )
20296 # old Intel C++ for x86_64 which still supported -KPIC.
20297 lt_prog_compiler_wl_CXX='-Wl,'
20298 lt_prog_compiler_pic_CXX='-KPIC'
20299 lt_prog_compiler_static_CXX='-static'
20301 icpc* )
20302 # Intel C++, used to be incompatible with GCC.
20303 # ICC 10 doesn't accept -KPIC any more.
20304 lt_prog_compiler_wl_CXX='-Wl,'
20305 lt_prog_compiler_pic_CXX='-fPIC'
20306 lt_prog_compiler_static_CXX='-static'
20308 pgCC* | pgcpp*)
20309 # Portland Group C++ compiler
20310 lt_prog_compiler_wl_CXX='-Wl,'
20311 lt_prog_compiler_pic_CXX='-fpic'
20312 lt_prog_compiler_static_CXX='-Bstatic'
20314 cxx*)
20315 # Compaq C++
20316 # Make sure the PIC flag is empty. It appears that all Alpha
20317 # Linux and Compaq Tru64 Unix objects are PIC.
20318 lt_prog_compiler_pic_CXX=
20319 lt_prog_compiler_static_CXX='-non_shared'
20321 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20322 # IBM XL 8.0, 9.0 on PPC and BlueGene
20323 lt_prog_compiler_wl_CXX='-Wl,'
20324 lt_prog_compiler_pic_CXX='-qpic'
20325 lt_prog_compiler_static_CXX='-qstaticlink'
20328 case `$CC -V 2>&1 | sed 5q` in
20329 *Sun\ C*)
20330 # Sun C++ 5.9
20331 lt_prog_compiler_pic_CXX='-KPIC'
20332 lt_prog_compiler_static_CXX='-Bstatic'
20333 lt_prog_compiler_wl_CXX='-Qoption ld '
20335 esac
20337 esac
20339 lynxos*)
20341 m88k*)
20343 mvs*)
20344 case $cc_basename in
20345 cxx*)
20346 lt_prog_compiler_pic_CXX='-W c,exportall'
20350 esac
20352 netbsd*)
20354 *qnx* | *nto*)
20355 # QNX uses GNU C++, but need to define -shared option too, otherwise
20356 # it will coredump.
20357 lt_prog_compiler_pic_CXX='-fPIC -shared'
20359 osf3* | osf4* | osf5*)
20360 case $cc_basename in
20361 KCC*)
20362 lt_prog_compiler_wl_CXX='--backend -Wl,'
20364 RCC*)
20365 # Rational C++ 2.4.1
20366 lt_prog_compiler_pic_CXX='-pic'
20368 cxx*)
20369 # Digital/Compaq C++
20370 lt_prog_compiler_wl_CXX='-Wl,'
20371 # Make sure the PIC flag is empty. It appears that all Alpha
20372 # Linux and Compaq Tru64 Unix objects are PIC.
20373 lt_prog_compiler_pic_CXX=
20374 lt_prog_compiler_static_CXX='-non_shared'
20378 esac
20380 psos*)
20382 solaris*)
20383 case $cc_basename in
20384 CC*)
20385 # Sun C++ 4.2, 5.x and Centerline C++
20386 lt_prog_compiler_pic_CXX='-KPIC'
20387 lt_prog_compiler_static_CXX='-Bstatic'
20388 lt_prog_compiler_wl_CXX='-Qoption ld '
20390 gcx*)
20391 # Green Hills C++ Compiler
20392 lt_prog_compiler_pic_CXX='-PIC'
20396 esac
20398 sunos4*)
20399 case $cc_basename in
20400 CC*)
20401 # Sun C++ 4.x
20402 lt_prog_compiler_pic_CXX='-pic'
20403 lt_prog_compiler_static_CXX='-Bstatic'
20405 lcc*)
20406 # Lucid
20407 lt_prog_compiler_pic_CXX='-pic'
20411 esac
20413 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20414 case $cc_basename in
20415 CC*)
20416 lt_prog_compiler_wl_CXX='-Wl,'
20417 lt_prog_compiler_pic_CXX='-KPIC'
20418 lt_prog_compiler_static_CXX='-Bstatic'
20420 esac
20422 tandem*)
20423 case $cc_basename in
20424 NCC*)
20425 # NonStop-UX NCC 3.20
20426 lt_prog_compiler_pic_CXX='-KPIC'
20430 esac
20432 vxworks*)
20435 lt_prog_compiler_can_build_shared_CXX=no
20437 esac
20440 case $host_os in
20441 # For platforms which do not support PIC, -DPIC is meaningless:
20442 *djgpp*)
20443 lt_prog_compiler_pic_CXX=
20446 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20448 esac
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20450 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20455 # Check to make sure the PIC flag actually works.
20457 if test -n "$lt_prog_compiler_pic_CXX"; then
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20459 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20460 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20461 $as_echo_n "(cached) " >&6
20462 else
20463 lt_cv_prog_compiler_pic_works_CXX=no
20464 ac_outfile=conftest.$ac_objext
20465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20466 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20467 # Insert the option either (1) after the last *FLAGS variable, or
20468 # (2) before a word containing "conftest.", or (3) at the end.
20469 # Note that $ac_compile itself does not contain backslashes and begins
20470 # with a dollar sign (not a hyphen), so the echo should work correctly.
20471 # The option is referenced via a variable to avoid confusing sed.
20472 lt_compile=`echo "$ac_compile" | $SED \
20473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20475 -e 's:$: $lt_compiler_flag:'`
20476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20477 (eval "$lt_compile" 2>conftest.err)
20478 ac_status=$?
20479 cat conftest.err >&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 if (exit $ac_status) && test -s "$ac_outfile"; then
20482 # The compiler can only warn and ignore the option if not recognized
20483 # So say no if there are warnings other than the usual output.
20484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20487 lt_cv_prog_compiler_pic_works_CXX=yes
20490 $RM conftest*
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20494 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20496 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20497 case $lt_prog_compiler_pic_CXX in
20498 "" | " "*) ;;
20499 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20500 esac
20501 else
20502 lt_prog_compiler_pic_CXX=
20503 lt_prog_compiler_can_build_shared_CXX=no
20511 # Check to make sure the static flag actually works.
20513 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20515 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20516 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20517 $as_echo_n "(cached) " >&6
20518 else
20519 lt_cv_prog_compiler_static_works_CXX=no
20520 save_LDFLAGS="$LDFLAGS"
20521 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20522 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20523 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20524 # The linker can only warn and ignore the option if not recognized
20525 # So say no if there are warnings
20526 if test -s conftest.err; then
20527 # Append any errors to the config.log.
20528 cat conftest.err 1>&5
20529 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20530 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20531 if diff conftest.exp conftest.er2 >/dev/null; then
20532 lt_cv_prog_compiler_static_works_CXX=yes
20534 else
20535 lt_cv_prog_compiler_static_works_CXX=yes
20538 $RM -r conftest*
20539 LDFLAGS="$save_LDFLAGS"
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20543 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20545 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20547 else
20548 lt_prog_compiler_static_CXX=
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20555 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20556 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20557 $as_echo_n "(cached) " >&6
20558 else
20559 lt_cv_prog_compiler_c_o_CXX=no
20560 $RM -r conftest 2>/dev/null
20561 mkdir conftest
20562 cd conftest
20563 mkdir out
20564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20566 lt_compiler_flag="-o out/conftest2.$ac_objext"
20567 # Insert the option either (1) after the last *FLAGS variable, or
20568 # (2) before a word containing "conftest.", or (3) at the end.
20569 # Note that $ac_compile itself does not contain backslashes and begins
20570 # with a dollar sign (not a hyphen), so the echo should work correctly.
20571 lt_compile=`echo "$ac_compile" | $SED \
20572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20574 -e 's:$: $lt_compiler_flag:'`
20575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20576 (eval "$lt_compile" 2>out/conftest.err)
20577 ac_status=$?
20578 cat out/conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20581 then
20582 # The compiler can only warn and ignore the option if not recognized
20583 # So say no if there are warnings
20584 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20585 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20586 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20587 lt_cv_prog_compiler_c_o_CXX=yes
20590 chmod u+w . 2>&5
20591 $RM conftest*
20592 # SGI C++ compiler will create directory out/ii_files/ for
20593 # template instantiation
20594 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20595 $RM out/* && rmdir out
20596 cd ..
20597 $RM -r conftest
20598 $RM conftest*
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20602 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20607 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20608 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20609 $as_echo_n "(cached) " >&6
20610 else
20611 lt_cv_prog_compiler_c_o_CXX=no
20612 $RM -r conftest 2>/dev/null
20613 mkdir conftest
20614 cd conftest
20615 mkdir out
20616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20618 lt_compiler_flag="-o out/conftest2.$ac_objext"
20619 # Insert the option either (1) after the last *FLAGS variable, or
20620 # (2) before a word containing "conftest.", or (3) at the end.
20621 # Note that $ac_compile itself does not contain backslashes and begins
20622 # with a dollar sign (not a hyphen), so the echo should work correctly.
20623 lt_compile=`echo "$ac_compile" | $SED \
20624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20626 -e 's:$: $lt_compiler_flag:'`
20627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20628 (eval "$lt_compile" 2>out/conftest.err)
20629 ac_status=$?
20630 cat out/conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20633 then
20634 # The compiler can only warn and ignore the option if not recognized
20635 # So say no if there are warnings
20636 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20637 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20638 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20639 lt_cv_prog_compiler_c_o_CXX=yes
20642 chmod u+w . 2>&5
20643 $RM conftest*
20644 # SGI C++ compiler will create directory out/ii_files/ for
20645 # template instantiation
20646 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20647 $RM out/* && rmdir out
20648 cd ..
20649 $RM -r conftest
20650 $RM conftest*
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20654 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20659 hard_links="nottested"
20660 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20661 # do not overwrite the value of need_locks provided by the user
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20663 $as_echo_n "checking if we can lock with hard links... " >&6; }
20664 hard_links=yes
20665 $RM conftest*
20666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20667 touch conftest.a
20668 ln conftest.a conftest.b 2>&5 || hard_links=no
20669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20671 $as_echo "$hard_links" >&6; }
20672 if test "$hard_links" = no; then
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20674 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20675 need_locks=warn
20677 else
20678 need_locks=no
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20684 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20686 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20687 case $host_os in
20688 aix[4-9]*)
20689 # If we're using GNU nm, then we don't want the "-C" option.
20690 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20691 # Also, AIX nm treats weak defined symbols like other global defined
20692 # symbols, whereas GNU nm marks them as "W".
20693 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20694 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'
20695 else
20696 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'
20699 pw32*)
20700 export_symbols_cmds_CXX="$ltdll_cmds"
20702 cygwin* | mingw* | cegcc*)
20703 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'
20706 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20708 esac
20709 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20712 $as_echo "$ld_shlibs_CXX" >&6; }
20713 test "$ld_shlibs_CXX" = no && can_build_shared=no
20715 with_gnu_ld_CXX=$with_gnu_ld
20723 # Do we need to explicitly link libc?
20725 case "x$archive_cmds_need_lc_CXX" in
20726 x|xyes)
20727 # Assume -lc should be added
20728 archive_cmds_need_lc_CXX=yes
20730 if test "$enable_shared" = yes && test "$GCC" = yes; then
20731 case $archive_cmds_CXX in
20732 *'~'*)
20733 # FIXME: we may have to deal with multi-command sequences.
20735 '$CC '*)
20736 # Test whether the compiler implicitly links with -lc since on some
20737 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20738 # to ld, don't add -lc before -lgcc.
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20740 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20741 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20742 $as_echo_n "(cached) " >&6
20743 else
20744 $RM conftest*
20745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20748 (eval $ac_compile) 2>&5
20749 ac_status=$?
20750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20751 test $ac_status = 0; } 2>conftest.err; then
20752 soname=conftest
20753 lib=conftest
20754 libobjs=conftest.$ac_objext
20755 deplibs=
20756 wl=$lt_prog_compiler_wl_CXX
20757 pic_flag=$lt_prog_compiler_pic_CXX
20758 compiler_flags=-v
20759 linker_flags=-v
20760 verstring=
20761 output_objdir=.
20762 libname=conftest
20763 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20764 allow_undefined_flag_CXX=
20765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20766 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20767 ac_status=$?
20768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20769 test $ac_status = 0; }
20770 then
20771 lt_cv_archive_cmds_need_lc_CXX=no
20772 else
20773 lt_cv_archive_cmds_need_lc_CXX=yes
20775 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20776 else
20777 cat conftest.err 1>&5
20779 $RM conftest*
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20783 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20784 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20786 esac
20789 esac
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20855 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20857 library_names_spec=
20858 libname_spec='lib$name'
20859 soname_spec=
20860 shrext_cmds=".so"
20861 postinstall_cmds=
20862 postuninstall_cmds=
20863 finish_cmds=
20864 finish_eval=
20865 shlibpath_var=
20866 shlibpath_overrides_runpath=unknown
20867 version_type=none
20868 dynamic_linker="$host_os ld.so"
20869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20870 need_lib_prefix=unknown
20871 hardcode_into_libs=no
20873 # when you set need_version to no, make sure it does not cause -set_version
20874 # flags to be left without arguments
20875 need_version=unknown
20877 case $host_os in
20878 aix3*)
20879 version_type=linux
20880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20881 shlibpath_var=LIBPATH
20883 # AIX 3 has no versioning support, so we append a major version to the name.
20884 soname_spec='${libname}${release}${shared_ext}$major'
20887 aix[4-9]*)
20888 version_type=linux
20889 need_lib_prefix=no
20890 need_version=no
20891 hardcode_into_libs=yes
20892 if test "$host_cpu" = ia64; then
20893 # AIX 5 supports IA64
20894 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20895 shlibpath_var=LD_LIBRARY_PATH
20896 else
20897 # With GCC up to 2.95.x, collect2 would create an import file
20898 # for dependence libraries. The import file would start with
20899 # the line `#! .'. This would cause the generated library to
20900 # depend on `.', always an invalid library. This was fixed in
20901 # development snapshots of GCC prior to 3.0.
20902 case $host_os in
20903 aix4 | aix4.[01] | aix4.[01].*)
20904 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20905 echo ' yes '
20906 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20908 else
20909 can_build_shared=no
20912 esac
20913 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20914 # soname into executable. Probably we can add versioning support to
20915 # collect2, so additional links can be useful in future.
20916 if test "$aix_use_runtimelinking" = yes; then
20917 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20918 # instead of lib<name>.a to let people know that these are not
20919 # typical AIX shared libraries.
20920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20921 else
20922 # We preserve .a as extension for shared libraries through AIX4.2
20923 # and later when we are not doing run time linking.
20924 library_names_spec='${libname}${release}.a $libname.a'
20925 soname_spec='${libname}${release}${shared_ext}$major'
20927 shlibpath_var=LIBPATH
20931 amigaos*)
20932 case $host_cpu in
20933 powerpc)
20934 # Since July 2007 AmigaOS4 officially supports .so libraries.
20935 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20938 m68k)
20939 library_names_spec='$libname.ixlibrary $libname.a'
20940 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20941 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'
20943 esac
20946 beos*)
20947 library_names_spec='${libname}${shared_ext}'
20948 dynamic_linker="$host_os ld.so"
20949 shlibpath_var=LIBRARY_PATH
20952 bsdi[45]*)
20953 version_type=linux
20954 need_version=no
20955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20956 soname_spec='${libname}${release}${shared_ext}$major'
20957 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20958 shlibpath_var=LD_LIBRARY_PATH
20959 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20960 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20961 # the default ld.so.conf also contains /usr/contrib/lib and
20962 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20963 # libtool to hard-code these into programs
20966 cygwin* | mingw* | pw32* | cegcc*)
20967 version_type=windows
20968 shrext_cmds=".dll"
20969 need_version=no
20970 need_lib_prefix=no
20972 case $GCC,$host_os in
20973 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20974 library_names_spec='$libname.dll.a'
20975 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20976 postinstall_cmds='base_file=`basename \${file}`~
20977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20978 dldir=$destdir/`dirname \$dlpath`~
20979 test -d \$dldir || mkdir -p \$dldir~
20980 $install_prog $dir/$dlname \$dldir/$dlname~
20981 chmod a+x \$dldir/$dlname~
20982 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20983 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20986 dlpath=$dir/\$dldll~
20987 $RM \$dlpath'
20988 shlibpath_overrides_runpath=yes
20990 case $host_os in
20991 cygwin*)
20992 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20993 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20996 mingw* | cegcc*)
20997 # MinGW DLLs use traditional 'lib' prefix
20998 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21000 pw32*)
21001 # pw32 DLLs use 'pw' prefix rather than 'lib'
21002 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21004 esac
21008 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21010 esac
21011 dynamic_linker='Win32 ld.exe'
21012 # FIXME: first we should search . and the directory the executable is in
21013 shlibpath_var=PATH
21016 darwin* | rhapsody*)
21017 dynamic_linker="$host_os dyld"
21018 version_type=darwin
21019 need_lib_prefix=no
21020 need_version=no
21021 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21022 soname_spec='${libname}${release}${major}$shared_ext'
21023 shlibpath_overrides_runpath=yes
21024 shlibpath_var=DYLD_LIBRARY_PATH
21025 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21027 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21030 dgux*)
21031 version_type=linux
21032 need_lib_prefix=no
21033 need_version=no
21034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21035 soname_spec='${libname}${release}${shared_ext}$major'
21036 shlibpath_var=LD_LIBRARY_PATH
21039 freebsd* | dragonfly*)
21040 # DragonFly does not have aout. When/if they implement a new
21041 # versioning mechanism, adjust this.
21042 if test -x /usr/bin/objformat; then
21043 objformat=`/usr/bin/objformat`
21044 else
21045 case $host_os in
21046 freebsd[23].*) objformat=aout ;;
21047 *) objformat=elf ;;
21048 esac
21050 version_type=freebsd-$objformat
21051 case $version_type in
21052 freebsd-elf*)
21053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21054 need_version=no
21055 need_lib_prefix=no
21057 freebsd-*)
21058 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21059 need_version=yes
21061 esac
21062 shlibpath_var=LD_LIBRARY_PATH
21063 case $host_os in
21064 freebsd2.*)
21065 shlibpath_overrides_runpath=yes
21067 freebsd3.[01]* | freebsdelf3.[01]*)
21068 shlibpath_overrides_runpath=yes
21069 hardcode_into_libs=yes
21071 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21072 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21073 shlibpath_overrides_runpath=no
21074 hardcode_into_libs=yes
21076 *) # from 4.6 on, and DragonFly
21077 shlibpath_overrides_runpath=yes
21078 hardcode_into_libs=yes
21080 esac
21083 gnu*)
21084 version_type=linux
21085 need_lib_prefix=no
21086 need_version=no
21087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21088 soname_spec='${libname}${release}${shared_ext}$major'
21089 shlibpath_var=LD_LIBRARY_PATH
21090 hardcode_into_libs=yes
21093 haiku*)
21094 version_type=linux
21095 need_lib_prefix=no
21096 need_version=no
21097 dynamic_linker="$host_os runtime_loader"
21098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21099 soname_spec='${libname}${release}${shared_ext}$major'
21100 shlibpath_var=LIBRARY_PATH
21101 shlibpath_overrides_runpath=yes
21102 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21103 hardcode_into_libs=yes
21106 hpux9* | hpux10* | hpux11*)
21107 # Give a soname corresponding to the major version so that dld.sl refuses to
21108 # link against other versions.
21109 version_type=sunos
21110 need_lib_prefix=no
21111 need_version=no
21112 case $host_cpu in
21113 ia64*)
21114 shrext_cmds='.so'
21115 hardcode_into_libs=yes
21116 dynamic_linker="$host_os dld.so"
21117 shlibpath_var=LD_LIBRARY_PATH
21118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21120 soname_spec='${libname}${release}${shared_ext}$major'
21121 if test "X$HPUX_IA64_MODE" = X32; then
21122 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21123 else
21124 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21128 hppa*64*)
21129 shrext_cmds='.sl'
21130 hardcode_into_libs=yes
21131 dynamic_linker="$host_os dld.sl"
21132 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21135 soname_spec='${libname}${release}${shared_ext}$major'
21136 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21140 shrext_cmds='.sl'
21141 dynamic_linker="$host_os dld.sl"
21142 shlibpath_var=SHLIB_PATH
21143 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21145 soname_spec='${libname}${release}${shared_ext}$major'
21147 esac
21148 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21149 postinstall_cmds='chmod 555 $lib'
21150 # or fails outright, so override atomically:
21151 install_override_mode=555
21154 interix[3-9]*)
21155 version_type=linux
21156 need_lib_prefix=no
21157 need_version=no
21158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21159 soname_spec='${libname}${release}${shared_ext}$major'
21160 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21161 shlibpath_var=LD_LIBRARY_PATH
21162 shlibpath_overrides_runpath=no
21163 hardcode_into_libs=yes
21166 irix5* | irix6* | nonstopux*)
21167 case $host_os in
21168 nonstopux*) version_type=nonstopux ;;
21170 if test "$lt_cv_prog_gnu_ld" = yes; then
21171 version_type=linux
21172 else
21173 version_type=irix
21174 fi ;;
21175 esac
21176 need_lib_prefix=no
21177 need_version=no
21178 soname_spec='${libname}${release}${shared_ext}$major'
21179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21180 case $host_os in
21181 irix5* | nonstopux*)
21182 libsuff= shlibsuff=
21185 case $LD in # libtool.m4 will add one of these switches to LD
21186 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21187 libsuff= shlibsuff= libmagic=32-bit;;
21188 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21189 libsuff=32 shlibsuff=N32 libmagic=N32;;
21190 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21191 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21192 *) libsuff= shlibsuff= libmagic=never-match;;
21193 esac
21195 esac
21196 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21197 shlibpath_overrides_runpath=no
21198 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21199 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21200 hardcode_into_libs=yes
21203 # No shared lib support for Linux oldld, aout, or coff.
21204 linux*oldld* | linux*aout* | linux*coff*)
21205 dynamic_linker=no
21208 # This must be Linux ELF.
21209 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21210 version_type=linux
21211 need_lib_prefix=no
21212 need_version=no
21213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21214 soname_spec='${libname}${release}${shared_ext}$major'
21215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21216 shlibpath_var=LD_LIBRARY_PATH
21217 shlibpath_overrides_runpath=no
21219 # Some binutils ld are patched to set DT_RUNPATH
21220 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21221 $as_echo_n "(cached) " >&6
21222 else
21223 lt_cv_shlibpath_overrides_runpath=no
21224 save_LDFLAGS=$LDFLAGS
21225 save_libdir=$libdir
21226 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21227 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21229 /* end confdefs.h. */
21232 main ()
21236 return 0;
21238 _ACEOF
21239 if ac_fn_cxx_try_link "$LINENO"; then :
21240 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21241 lt_cv_shlibpath_overrides_runpath=yes
21244 rm -f core conftest.err conftest.$ac_objext \
21245 conftest$ac_exeext conftest.$ac_ext
21246 LDFLAGS=$save_LDFLAGS
21247 libdir=$save_libdir
21251 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21253 # This implies no fast_install, which is unacceptable.
21254 # Some rework will be needed to allow for fast_install
21255 # before this can be enabled.
21256 hardcode_into_libs=yes
21258 # Append ld.so.conf contents to the search path
21259 if test -f /etc/ld.so.conf; then
21260 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' ' '`
21261 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21264 # We used to test for /lib/ld.so.1 and disable shared libraries on
21265 # powerpc, because MkLinux only supported shared libraries with the
21266 # GNU dynamic linker. Since this was broken with cross compilers,
21267 # most powerpc-linux boxes support dynamic linking these days and
21268 # people can always --disable-shared, the test was removed, and we
21269 # assume the GNU/Linux dynamic linker is in use.
21270 dynamic_linker='GNU/Linux ld.so'
21273 netbsd*)
21274 version_type=sunos
21275 need_lib_prefix=no
21276 need_version=no
21277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21280 dynamic_linker='NetBSD (a.out) ld.so'
21281 else
21282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21283 soname_spec='${libname}${release}${shared_ext}$major'
21284 dynamic_linker='NetBSD ld.elf_so'
21286 shlibpath_var=LD_LIBRARY_PATH
21287 shlibpath_overrides_runpath=yes
21288 hardcode_into_libs=yes
21291 newsos6)
21292 version_type=linux
21293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21294 shlibpath_var=LD_LIBRARY_PATH
21295 shlibpath_overrides_runpath=yes
21298 *nto* | *qnx*)
21299 version_type=qnx
21300 need_lib_prefix=no
21301 need_version=no
21302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21303 soname_spec='${libname}${release}${shared_ext}$major'
21304 shlibpath_var=LD_LIBRARY_PATH
21305 shlibpath_overrides_runpath=no
21306 hardcode_into_libs=yes
21307 dynamic_linker='ldqnx.so'
21310 openbsd*)
21311 version_type=sunos
21312 sys_lib_dlsearch_path_spec="/usr/lib"
21313 need_lib_prefix=no
21314 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21315 case $host_os in
21316 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21317 *) need_version=no ;;
21318 esac
21319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21321 shlibpath_var=LD_LIBRARY_PATH
21322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21323 case $host_os in
21324 openbsd2.[89] | openbsd2.[89].*)
21325 shlibpath_overrides_runpath=no
21328 shlibpath_overrides_runpath=yes
21330 esac
21331 else
21332 shlibpath_overrides_runpath=yes
21336 os2*)
21337 libname_spec='$name'
21338 shrext_cmds=".dll"
21339 need_lib_prefix=no
21340 library_names_spec='$libname${shared_ext} $libname.a'
21341 dynamic_linker='OS/2 ld.exe'
21342 shlibpath_var=LIBPATH
21345 osf3* | osf4* | osf5*)
21346 version_type=osf
21347 need_lib_prefix=no
21348 need_version=no
21349 soname_spec='${libname}${release}${shared_ext}$major'
21350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21351 shlibpath_var=LD_LIBRARY_PATH
21352 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21353 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21356 rdos*)
21357 dynamic_linker=no
21360 solaris*)
21361 version_type=linux
21362 need_lib_prefix=no
21363 need_version=no
21364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21365 soname_spec='${libname}${release}${shared_ext}$major'
21366 shlibpath_var=LD_LIBRARY_PATH
21367 shlibpath_overrides_runpath=yes
21368 hardcode_into_libs=yes
21369 # ldd complains unless libraries are executable
21370 postinstall_cmds='chmod +x $lib'
21373 sunos4*)
21374 version_type=sunos
21375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21376 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21377 shlibpath_var=LD_LIBRARY_PATH
21378 shlibpath_overrides_runpath=yes
21379 if test "$with_gnu_ld" = yes; then
21380 need_lib_prefix=no
21382 need_version=yes
21385 sysv4 | sysv4.3*)
21386 version_type=linux
21387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21388 soname_spec='${libname}${release}${shared_ext}$major'
21389 shlibpath_var=LD_LIBRARY_PATH
21390 case $host_vendor in
21391 sni)
21392 shlibpath_overrides_runpath=no
21393 need_lib_prefix=no
21394 runpath_var=LD_RUN_PATH
21396 siemens)
21397 need_lib_prefix=no
21399 motorola)
21400 need_lib_prefix=no
21401 need_version=no
21402 shlibpath_overrides_runpath=no
21403 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21405 esac
21408 sysv4*MP*)
21409 if test -d /usr/nec ;then
21410 version_type=linux
21411 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21412 soname_spec='$libname${shared_ext}.$major'
21413 shlibpath_var=LD_LIBRARY_PATH
21417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21418 version_type=freebsd-elf
21419 need_lib_prefix=no
21420 need_version=no
21421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21422 soname_spec='${libname}${release}${shared_ext}$major'
21423 shlibpath_var=LD_LIBRARY_PATH
21424 shlibpath_overrides_runpath=yes
21425 hardcode_into_libs=yes
21426 if test "$with_gnu_ld" = yes; then
21427 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21428 else
21429 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21430 case $host_os in
21431 sco3.2v5*)
21432 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21434 esac
21436 sys_lib_dlsearch_path_spec='/usr/lib'
21439 tpf*)
21440 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21441 version_type=linux
21442 need_lib_prefix=no
21443 need_version=no
21444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21445 shlibpath_var=LD_LIBRARY_PATH
21446 shlibpath_overrides_runpath=no
21447 hardcode_into_libs=yes
21450 uts4*)
21451 version_type=linux
21452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21453 soname_spec='${libname}${release}${shared_ext}$major'
21454 shlibpath_var=LD_LIBRARY_PATH
21458 dynamic_linker=no
21460 esac
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21462 $as_echo "$dynamic_linker" >&6; }
21463 test "$dynamic_linker" = no && can_build_shared=no
21465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21466 if test "$GCC" = yes; then
21467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21470 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21471 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21473 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21474 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21515 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21516 hardcode_action_CXX=
21517 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21518 test -n "$runpath_var_CXX" ||
21519 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21521 # We can hardcode non-existent directories.
21522 if test "$hardcode_direct_CXX" != no &&
21523 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21524 # have to relink, otherwise we might link with an installed library
21525 # when we should be linking with a yet-to-be-installed one
21526 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21527 test "$hardcode_minus_L_CXX" != no; then
21528 # Linking always hardcodes the temporary library directory.
21529 hardcode_action_CXX=relink
21530 else
21531 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21532 hardcode_action_CXX=immediate
21534 else
21535 # We cannot hardcode anything, or else we can only hardcode existing
21536 # directories.
21537 hardcode_action_CXX=unsupported
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21540 $as_echo "$hardcode_action_CXX" >&6; }
21542 if test "$hardcode_action_CXX" = relink ||
21543 test "$inherit_rpath_CXX" = yes; then
21544 # Fast installation is not supported
21545 enable_fast_install=no
21546 elif test "$shlibpath_overrides_runpath" = yes ||
21547 test "$enable_shared" = no; then
21548 # Fast installation is not necessary
21549 enable_fast_install=needless
21558 fi # test -n "$compiler"
21560 CC=$lt_save_CC
21561 LDCXX=$LD
21562 LD=$lt_save_LD
21563 GCC=$lt_save_GCC
21564 with_gnu_ld=$lt_save_with_gnu_ld
21565 lt_cv_path_LDCXX=$lt_cv_path_LD
21566 lt_cv_path_LD=$lt_save_path_LD
21567 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21568 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21569 fi # test "$_lt_caught_CXX_error" != yes
21571 ac_ext=c
21572 ac_cpp='$CPP $CPPFLAGS'
21573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21592 # Only expand once:
21598 # Identify the assembler which will work hand-in-glove with the newly
21599 # built GCC, so that we can examine its features. This is the assembler
21600 # which will be driven by the driver program.
21602 # If build != host, and we aren't building gas in-tree, we identify a
21603 # build->target assembler and hope that it will have the same features
21604 # as the host->target assembler we'll be using.
21605 gcc_cv_gas_major_version=
21606 gcc_cv_gas_minor_version=
21607 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21609 if test "${gcc_cv_as+set}" = set; then :
21611 else
21613 if test -x "$DEFAULT_ASSEMBLER"; then
21614 gcc_cv_as="$DEFAULT_ASSEMBLER"
21615 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21616 && test -f ../gas/Makefile \
21617 && test x$build = x$host; then
21618 gcc_cv_as=../gas/as-new$build_exeext
21619 elif test -x as$build_exeext; then
21620 # Build using assembler in the current directory.
21621 gcc_cv_as=./as$build_exeext
21622 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21623 gcc_cv_as="$AS_FOR_TARGET"
21624 else
21625 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21626 set dummy $AS_FOR_TARGET; ac_word=$2
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21628 $as_echo_n "checking for $ac_word... " >&6; }
21629 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21630 $as_echo_n "(cached) " >&6
21631 else
21632 case $gcc_cv_as in
21633 [\\/]* | ?:[\\/]*)
21634 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21638 for as_dir in $PATH
21640 IFS=$as_save_IFS
21641 test -z "$as_dir" && as_dir=.
21642 for ac_exec_ext in '' $ac_executable_extensions; do
21643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21644 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21646 break 2
21648 done
21649 done
21650 IFS=$as_save_IFS
21653 esac
21655 gcc_cv_as=$ac_cv_path_gcc_cv_as
21656 if test -n "$gcc_cv_as"; then
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21658 $as_echo "$gcc_cv_as" >&6; }
21659 else
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21661 $as_echo "no" >&6; }
21668 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21670 case "$ORIGINAL_AS_FOR_TARGET" in
21671 ./as | ./as$build_exeext) ;;
21672 *) ac_config_files="$ac_config_files as:exec-tool.in"
21674 esac
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21677 $as_echo_n "checking what assembler to use... " >&6; }
21678 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21679 # Single tree build which includes gas. We want to prefer it
21680 # over whatever linker top-level may have detected, since
21681 # we'll use what we're building after installation anyway.
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21683 $as_echo "newly built gas" >&6; }
21684 in_tree_gas=yes
21685 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21686 for f in $gcc_cv_as_bfd_srcdir/configure \
21687 $gcc_cv_as_gas_srcdir/configure \
21688 $gcc_cv_as_gas_srcdir/configure.in \
21689 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21690 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21691 if test x$gcc_cv_gas_version != x; then
21692 break
21694 done
21695 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21696 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21697 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21698 case $gcc_cv_gas_patch_version in
21699 "") gcc_cv_gas_patch_version="0" ;;
21700 esac
21701 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21702 + $gcc_cv_gas_minor_version \) \* 1000 \
21703 + $gcc_cv_gas_patch_version`
21705 in_tree_gas_is_elf=no
21706 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21707 || (grep 'obj_format = multi' ../gas/Makefile \
21708 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21709 then
21710 in_tree_gas_is_elf=yes
21712 else
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21714 $as_echo "$gcc_cv_as" >&6; }
21715 in_tree_gas=no
21718 # Identify the linker which will work hand-in-glove with the newly
21719 # built GCC, so that we can examine its features. This is the linker
21720 # which will be driven by the driver program.
21722 # If build != host, and we aren't building gas in-tree, we identify a
21723 # build->target linker and hope that it will have the same features
21724 # as the host->target linker we'll be using.
21725 gcc_cv_gld_major_version=
21726 gcc_cv_gld_minor_version=
21727 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21728 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21730 if test "${gcc_cv_ld+set}" = set; then :
21732 else
21734 if test -x "$DEFAULT_LINKER"; then
21735 gcc_cv_ld="$DEFAULT_LINKER"
21736 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21737 && test -f ../ld/Makefile \
21738 && test x$build = x$host; then
21739 gcc_cv_ld=../ld/ld-new$build_exeext
21740 elif test -x collect-ld$build_exeext; then
21741 # Build using linker in the current directory.
21742 gcc_cv_ld=./collect-ld$build_exeext
21743 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21744 gcc_cv_ld="$LD_FOR_TARGET"
21745 else
21746 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21747 set dummy $LD_FOR_TARGET; ac_word=$2
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21749 $as_echo_n "checking for $ac_word... " >&6; }
21750 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21751 $as_echo_n "(cached) " >&6
21752 else
21753 case $gcc_cv_ld in
21754 [\\/]* | ?:[\\/]*)
21755 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21759 for as_dir in $PATH
21761 IFS=$as_save_IFS
21762 test -z "$as_dir" && as_dir=.
21763 for ac_exec_ext in '' $ac_executable_extensions; do
21764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21765 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21767 break 2
21769 done
21770 done
21771 IFS=$as_save_IFS
21774 esac
21776 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21777 if test -n "$gcc_cv_ld"; then
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21779 $as_echo "$gcc_cv_ld" >&6; }
21780 else
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21782 $as_echo "no" >&6; }
21789 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21790 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21792 # Check whether --with-plugin-ld was given.
21793 if test "${with_plugin_ld+set}" = set; then :
21794 withval=$with_plugin_ld; if test x"$withval" != x; then
21795 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21796 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21802 cat >>confdefs.h <<_ACEOF
21803 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21804 _ACEOF
21807 # Check to see if we are using gold instead of ld
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21809 $as_echo_n "checking whether we are using gold... " >&6; }
21810 ld_is_gold=no
21811 if test x$gcc_cv_ld != x; then
21812 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21813 | grep "GNU gold" > /dev/null; then
21814 ld_is_gold=yes
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21818 $as_echo "$ld_is_gold" >&6; }
21820 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21822 case "$ORIGINAL_LD_FOR_TARGET" in
21823 ./collect-ld | ./collect-ld$build_exeext) ;;
21824 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21826 esac
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21829 $as_echo_n "checking what linker to use... " >&6; }
21830 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21831 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21832 # Single tree build which includes ld. We want to prefer it
21833 # over whatever linker top-level may have detected, since
21834 # we'll use what we're building after installation anyway.
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21836 $as_echo "newly built ld" >&6; }
21837 in_tree_ld=yes
21838 in_tree_ld_is_elf=no
21839 if (grep 'EMUL = .*elf' ../ld/Makefile \
21840 || grep 'EMUL = .*linux' ../ld/Makefile \
21841 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21842 in_tree_ld_is_elf=yes
21843 elif test "$ld_is_gold" = yes; then
21844 in_tree_ld_is_elf=yes
21846 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
21848 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21849 if test x$gcc_cv_gld_version != x; then
21850 break
21852 done
21853 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21854 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21855 else
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21857 $as_echo "$gcc_cv_ld" >&6; }
21858 in_tree_ld=no
21861 # Figure out what nm we will be using.
21862 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21863 if test "${gcc_cv_nm+set}" = set; then :
21865 else
21867 if test -f $gcc_cv_binutils_srcdir/configure.in \
21868 && test -f ../binutils/Makefile \
21869 && test x$build = x$host; then
21870 gcc_cv_nm=../binutils/nm-new$build_exeext
21871 elif test -x nm$build_exeext; then
21872 gcc_cv_nm=./nm$build_exeext
21873 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21874 gcc_cv_nm="$NM_FOR_TARGET"
21875 else
21876 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21877 set dummy $NM_FOR_TARGET; ac_word=$2
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21879 $as_echo_n "checking for $ac_word... " >&6; }
21880 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21881 $as_echo_n "(cached) " >&6
21882 else
21883 case $gcc_cv_nm in
21884 [\\/]* | ?:[\\/]*)
21885 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21889 for as_dir in $PATH
21891 IFS=$as_save_IFS
21892 test -z "$as_dir" && as_dir=.
21893 for ac_exec_ext in '' $ac_executable_extensions; do
21894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21895 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21897 break 2
21899 done
21900 done
21901 IFS=$as_save_IFS
21904 esac
21906 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21907 if test -n "$gcc_cv_nm"; then
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21909 $as_echo "$gcc_cv_nm" >&6; }
21910 else
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21912 $as_echo "no" >&6; }
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21920 $as_echo_n "checking what nm to use... " >&6; }
21921 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21922 # Single tree build which includes binutils.
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21924 $as_echo "newly built nm" >&6; }
21925 in_tree_nm=yes
21926 else
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21928 $as_echo "$gcc_cv_nm" >&6; }
21929 in_tree_nm=no
21932 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21934 case "$ORIGINAL_NM_FOR_TARGET" in
21935 ./nm | ./nm$build_exeext) ;;
21936 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21938 esac
21941 # Figure out what objdump we will be using.
21942 if test "${gcc_cv_objdump+set}" = set; then :
21944 else
21946 if test -f $gcc_cv_binutils_srcdir/configure.in \
21947 && test -f ../binutils/Makefile \
21948 && test x$build = x$host; then
21949 # Single tree build which includes binutils.
21950 gcc_cv_objdump=../binutils/objdump$build_exeext
21951 elif test -x objdump$build_exeext; then
21952 gcc_cv_objdump=./objdump$build_exeext
21953 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21954 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21955 else
21956 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21957 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21959 $as_echo_n "checking for $ac_word... " >&6; }
21960 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21961 $as_echo_n "(cached) " >&6
21962 else
21963 case $gcc_cv_objdump in
21964 [\\/]* | ?:[\\/]*)
21965 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21969 for as_dir in $PATH
21971 IFS=$as_save_IFS
21972 test -z "$as_dir" && as_dir=.
21973 for ac_exec_ext in '' $ac_executable_extensions; do
21974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21975 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21977 break 2
21979 done
21980 done
21981 IFS=$as_save_IFS
21984 esac
21986 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21987 if test -n "$gcc_cv_objdump"; then
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21989 $as_echo "$gcc_cv_objdump" >&6; }
21990 else
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21992 $as_echo "no" >&6; }
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22000 $as_echo_n "checking what objdump to use... " >&6; }
22001 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22002 # Single tree build which includes binutils.
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22004 $as_echo "newly built objdump" >&6; }
22005 elif test x$gcc_cv_objdump = x; then
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22007 $as_echo "not found" >&6; }
22008 else
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22010 $as_echo "$gcc_cv_objdump" >&6; }
22013 # Figure out what readelf we will be using.
22014 if test "${gcc_cv_readelf+set}" = set; then :
22016 else
22018 if test -f $gcc_cv_binutils_srcdir/configure.in \
22019 && test -f ../binutils/Makefile \
22020 && test x$build = x$host; then
22021 # Single tree build which includes binutils.
22022 gcc_cv_readelf=../binutils/readelf$build_exeext
22023 elif test -x readelf$build_exeext; then
22024 gcc_cv_readelf=./readelf$build_exeext
22025 else
22026 # Extract the first word of "readelf", so it can be a program name with args.
22027 set dummy readelf; ac_word=$2
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22029 $as_echo_n "checking for $ac_word... " >&6; }
22030 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22031 $as_echo_n "(cached) " >&6
22032 else
22033 case $gcc_cv_readelf in
22034 [\\/]* | ?:[\\/]*)
22035 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22039 for as_dir in $PATH
22041 IFS=$as_save_IFS
22042 test -z "$as_dir" && as_dir=.
22043 for ac_exec_ext in '' $ac_executable_extensions; do
22044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22045 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22047 break 2
22049 done
22050 done
22051 IFS=$as_save_IFS
22054 esac
22056 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22057 if test -n "$gcc_cv_readelf"; then
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22059 $as_echo "$gcc_cv_readelf" >&6; }
22060 else
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22062 $as_echo "no" >&6; }
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22070 $as_echo_n "checking what readelf to use... " >&6; }
22071 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22072 # Single tree build which includes binutils.
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22074 $as_echo "newly built readelf" >&6; }
22075 elif test x$gcc_cv_readelf = x; then
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22077 $as_echo "not found" >&6; }
22078 else
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22080 $as_echo "$gcc_cv_readelf" >&6; }
22083 # Figure out what assembler alignment features are present.
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22085 $as_echo_n "checking assembler flags... " >&6; }
22086 if test "${gcc_cv_as_flags+set}" = set; then :
22087 $as_echo_n "(cached) " >&6
22088 else
22089 case "$target" in
22090 i[34567]86-*-linux*)
22091 gcc_cv_as_flags="--32"
22093 powerpc*-*-darwin*)
22094 gcc_cv_as_flags="-arch ppc"
22097 gcc_cv_as_flags=" "
22099 esac
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22102 $as_echo "$gcc_cv_as_flags" >&6; }
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22105 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22106 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22107 $as_echo_n "(cached) " >&6
22108 else
22109 gcc_cv_as_balign_and_p2align=no
22110 if test $in_tree_gas = yes; then
22111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22112 then gcc_cv_as_balign_and_p2align=yes
22114 elif test x$gcc_cv_as != x; then
22115 $as_echo '.balign 4
22116 .p2align 2' > conftest.s
22117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22119 (eval $ac_try) 2>&5
22120 ac_status=$?
22121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22122 test $ac_status = 0; }; }
22123 then
22124 gcc_cv_as_balign_and_p2align=yes
22125 else
22126 echo "configure: failed program was" >&5
22127 cat conftest.s >&5
22129 rm -f conftest.o conftest.s
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22133 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22134 if test $gcc_cv_as_balign_and_p2align = yes; then
22136 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22141 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22142 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22143 $as_echo_n "(cached) " >&6
22144 else
22145 gcc_cv_as_max_skip_p2align=no
22146 if test $in_tree_gas = yes; then
22147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22148 then gcc_cv_as_max_skip_p2align=yes
22150 elif test x$gcc_cv_as != x; then
22151 $as_echo '.p2align 4,,7' > conftest.s
22152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22154 (eval $ac_try) 2>&5
22155 ac_status=$?
22156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22157 test $ac_status = 0; }; }
22158 then
22159 gcc_cv_as_max_skip_p2align=yes
22160 else
22161 echo "configure: failed program was" >&5
22162 cat conftest.s >&5
22164 rm -f conftest.o conftest.s
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22168 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22169 if test $gcc_cv_as_max_skip_p2align = yes; then
22171 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22176 $as_echo_n "checking assembler for .literal16... " >&6; }
22177 if test "${gcc_cv_as_literal16+set}" = set; then :
22178 $as_echo_n "(cached) " >&6
22179 else
22180 gcc_cv_as_literal16=no
22181 if test $in_tree_gas = yes; then
22182 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22183 then gcc_cv_as_literal16=yes
22185 elif test x$gcc_cv_as != x; then
22186 $as_echo '.literal16' > conftest.s
22187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22189 (eval $ac_try) 2>&5
22190 ac_status=$?
22191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22192 test $ac_status = 0; }; }
22193 then
22194 gcc_cv_as_literal16=yes
22195 else
22196 echo "configure: failed program was" >&5
22197 cat conftest.s >&5
22199 rm -f conftest.o conftest.s
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22203 $as_echo "$gcc_cv_as_literal16" >&6; }
22204 if test $gcc_cv_as_literal16 = yes; then
22206 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22211 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22212 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22213 $as_echo_n "(cached) " >&6
22214 else
22215 gcc_cv_as_subsection_m1=no
22216 if test $in_tree_gas = yes; then
22217 if test $in_tree_gas_is_elf = yes \
22218 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22219 then gcc_cv_as_subsection_m1=yes
22221 elif test x$gcc_cv_as != x; then
22222 $as_echo 'conftest_label1: .word 0
22223 .subsection -1
22224 conftest_label2: .word 0
22225 .previous' > conftest.s
22226 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22228 (eval $ac_try) 2>&5
22229 ac_status=$?
22230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22231 test $ac_status = 0; }; }
22232 then
22233 if test x$gcc_cv_nm != x; then
22234 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22235 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22236 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22237 then :
22238 else gcc_cv_as_subsection_m1=yes
22240 rm -f conftest.nm1 conftest.nm2
22242 else
22243 echo "configure: failed program was" >&5
22244 cat conftest.s >&5
22246 rm -f conftest.o conftest.s
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22250 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22251 if test $gcc_cv_as_subsection_m1 = yes; then
22253 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22258 $as_echo_n "checking assembler for .weak... " >&6; }
22259 if test "${gcc_cv_as_weak+set}" = set; then :
22260 $as_echo_n "(cached) " >&6
22261 else
22262 gcc_cv_as_weak=no
22263 if test $in_tree_gas = yes; then
22264 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22265 then gcc_cv_as_weak=yes
22267 elif test x$gcc_cv_as != x; then
22268 $as_echo ' .weak foobar' > conftest.s
22269 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22271 (eval $ac_try) 2>&5
22272 ac_status=$?
22273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22274 test $ac_status = 0; }; }
22275 then
22276 gcc_cv_as_weak=yes
22277 else
22278 echo "configure: failed program was" >&5
22279 cat conftest.s >&5
22281 rm -f conftest.o conftest.s
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22285 $as_echo "$gcc_cv_as_weak" >&6; }
22286 if test $gcc_cv_as_weak = yes; then
22288 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22293 $as_echo_n "checking assembler for .weakref... " >&6; }
22294 if test "${gcc_cv_as_weakref+set}" = set; then :
22295 $as_echo_n "(cached) " >&6
22296 else
22297 gcc_cv_as_weakref=no
22298 if test $in_tree_gas = yes; then
22299 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22300 then gcc_cv_as_weakref=yes
22302 elif test x$gcc_cv_as != x; then
22303 $as_echo ' .weakref foobar, barfnot' > conftest.s
22304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22306 (eval $ac_try) 2>&5
22307 ac_status=$?
22308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22309 test $ac_status = 0; }; }
22310 then
22311 gcc_cv_as_weakref=yes
22312 else
22313 echo "configure: failed program was" >&5
22314 cat conftest.s >&5
22316 rm -f conftest.o conftest.s
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22320 $as_echo "$gcc_cv_as_weakref" >&6; }
22321 if test $gcc_cv_as_weakref = yes; then
22323 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22328 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22329 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22330 $as_echo_n "(cached) " >&6
22331 else
22332 gcc_cv_as_nsubspa_comdat=no
22333 if test $in_tree_gas = yes; then
22334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22335 then gcc_cv_as_nsubspa_comdat=yes
22337 elif test x$gcc_cv_as != x; then
22338 $as_echo ' .SPACE $TEXT$
22339 .NSUBSPA $CODE$,COMDAT' > conftest.s
22340 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22342 (eval $ac_try) 2>&5
22343 ac_status=$?
22344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22345 test $ac_status = 0; }; }
22346 then
22347 gcc_cv_as_nsubspa_comdat=yes
22348 else
22349 echo "configure: failed program was" >&5
22350 cat conftest.s >&5
22352 rm -f conftest.o conftest.s
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22356 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22357 if test $gcc_cv_as_nsubspa_comdat = yes; then
22359 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22363 # .hidden needs to be supported in both the assembler and the linker,
22364 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22365 # This is irritatingly difficult to feature test for; we have to check the
22366 # date string after the version number. If we've got an in-tree
22367 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22368 # to be safe.
22369 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22371 $as_echo_n "checking assembler for .hidden... " >&6; }
22372 if test "${gcc_cv_as_hidden+set}" = set; then :
22373 $as_echo_n "(cached) " >&6
22374 else
22375 gcc_cv_as_hidden=no
22376 if test $in_tree_gas = yes; then
22377 if test $in_tree_gas_is_elf = yes \
22378 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22379 then gcc_cv_as_hidden=yes
22381 elif test x$gcc_cv_as != x; then
22382 $as_echo ' .hidden foobar
22383 foobar:' > conftest.s
22384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22386 (eval $ac_try) 2>&5
22387 ac_status=$?
22388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22389 test $ac_status = 0; }; }
22390 then
22392 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22393 # STV_HIDDEN, so disable .hidden support if so.
22394 case "${target}" in
22395 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22396 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22397 cat > conftest.s <<EOF
22398 .globl hidden
22399 .hidden hidden
22400 hidden:
22401 .globl default
22402 .set default,hidden
22404 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22405 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22406 grep '\.hidden default' > /dev/null; then
22407 gcc_cv_as_hidden=no
22408 else
22409 gcc_cv_as_hidden=yes
22411 else
22412 # Assume bug is present if objdump is missing.
22413 gcc_cv_as_hidden=no
22417 gcc_cv_as_hidden=yes
22419 esac
22420 else
22421 echo "configure: failed program was" >&5
22422 cat conftest.s >&5
22424 rm -f conftest.o conftest.s
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22428 $as_echo "$gcc_cv_as_hidden" >&6; }
22430 case "${target}" in
22431 *-*-darwin*)
22432 # Darwin as has some visibility support, though with a different syntax.
22433 gcc_cv_as_hidden=yes
22435 esac
22437 # gnu_indirect_function type is an extension proposed at
22438 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22439 # selection of function implementation
22440 # Check whether --enable-gnu-indirect-function was given.
22441 if test "${enable_gnu_indirect_function+set}" = set; then :
22442 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22443 yes | no) ;;
22444 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22445 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22446 esac
22447 else
22448 enable_gnu_indirect_function="$default_gnu_indirect_function"
22451 if test x$enable_gnu_indirect_function = xyes; then
22453 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22457 if test $in_tree_ld != yes ; then
22458 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22459 if echo "$ld_ver" | grep GNU > /dev/null; then
22460 if test x"$ld_is_gold" = xyes; then
22461 # GNU gold --version looks like this:
22463 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22465 # We extract the binutils version which is more familiar and specific
22466 # than the gold version.
22467 ld_vers=`echo $ld_ver | sed -n \
22468 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22469 else
22470 # GNU ld --version looks like this:
22472 # GNU ld (GNU Binutils) 2.21.51.20110225
22473 ld_vers=`echo $ld_ver | sed -n \
22474 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22476 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'`
22477 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22478 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22479 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22480 else
22481 case "${target}" in
22482 *-*-solaris2*)
22483 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22484 # format.
22486 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22487 # /usr/ccs/bin/ld has been configured.
22488 ld_ver=`$gcc_cv_ld -V 2>&1`
22489 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22490 ld_vers=`echo $ld_ver | sed -n \
22491 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22492 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22493 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22496 esac
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22501 $as_echo_n "checking linker for .hidden support... " >&6; }
22502 if test "${gcc_cv_ld_hidden+set}" = set; then :
22503 $as_echo_n "(cached) " >&6
22504 else
22505 if test $in_tree_ld = yes ; then
22506 gcc_cv_ld_hidden=no
22507 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 \
22508 && test $in_tree_ld_is_elf = yes; then
22509 gcc_cv_ld_hidden=yes
22511 else
22512 gcc_cv_ld_hidden=yes
22513 if test x"$ld_is_gold" = xyes; then
22515 elif echo "$ld_ver" | grep GNU > /dev/null; then
22516 if test 0"$ld_date" -lt 20020404; then
22517 if test -n "$ld_date"; then
22518 # If there was date string, but was earlier than 2002-04-04, fail
22519 gcc_cv_ld_hidden=no
22520 elif test -z "$ld_vers"; then
22521 # If there was no date string nor ld version number, something is wrong
22522 gcc_cv_ld_hidden=no
22523 else
22524 test -z "$ld_vers_patch" && ld_vers_patch=0
22525 if test "$ld_vers_major" -lt 2; then
22526 gcc_cv_ld_hidden=no
22527 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22528 gcc_cv_ld_hidden="no"
22529 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22530 gcc_cv_ld_hidden=no
22534 else
22535 case "${target}" in
22536 *-*-darwin*)
22537 # Darwin ld has some visibility support.
22538 gcc_cv_ld_hidden=yes
22540 hppa64*-*-hpux* | ia64*-*-hpux*)
22541 gcc_cv_ld_hidden=yes
22543 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22544 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22545 # .symbolic was only added in Solaris 9 12/02.
22546 gcc_cv_ld_hidden=yes
22549 gcc_cv_ld_hidden=no
22551 esac
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22556 $as_echo "$gcc_cv_ld_hidden" >&6; }
22557 libgcc_visibility=no
22560 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22561 libgcc_visibility=yes
22563 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22568 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22569 gcc_cv_ld_ro_rw_mix=unknown
22570 if test $in_tree_ld = yes ; then
22571 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 \
22572 && test $in_tree_ld_is_elf = yes; then
22573 gcc_cv_ld_ro_rw_mix=read-write
22575 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22576 echo '.section myfoosect, "a"' > conftest1.s
22577 echo '.section myfoosect, "aw"' > conftest2.s
22578 echo '.byte 1' >> conftest2.s
22579 echo '.section myfoosect, "a"' > conftest3.s
22580 echo '.byte 0' >> conftest3.s
22581 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22582 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22583 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22584 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22585 conftest2.o conftest3.o > /dev/null 2>&1; then
22586 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22587 | sed -e '/myfoosect/!d' -e N`
22588 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22589 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22590 gcc_cv_ld_ro_rw_mix=read-only
22591 else
22592 gcc_cv_ld_ro_rw_mix=read-write
22596 rm -f conftest.* conftest[123].*
22598 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22600 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22604 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22606 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22607 case "${target}" in
22608 *-*-solaris2*)
22610 # Solaris 2 ld -V output looks like this for a regular version:
22612 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22614 # but test versions add stuff at the end:
22616 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22618 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22619 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22620 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22621 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22622 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22623 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22626 esac
22629 # Check whether --enable-initfini-array was given.
22630 if test "${enable_initfini_array+set}" = set; then :
22631 enableval=$enable_initfini_array;
22632 else
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22635 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22636 if test "${gcc_cv_initfini_array+set}" = set; then :
22637 $as_echo_n "(cached) " >&6
22638 else
22639 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22640 case "${target}" in
22641 ia64-*)
22642 if test "$cross_compiling" = yes; then :
22643 gcc_cv_initfini_array=no
22644 else
22645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22646 /* end confdefs.h. */
22648 #ifndef __ELF__
22649 #error Not an ELF OS
22650 #endif
22651 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22652 if it can be used. */
22653 static int x = -1;
22654 int main (void) { return x; }
22655 int foo (void) { x = 0; }
22656 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22658 _ACEOF
22659 if ac_fn_c_try_run "$LINENO"; then :
22660 gcc_cv_initfini_array=yes
22661 else
22662 gcc_cv_initfini_array=no
22664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22665 conftest.$ac_objext conftest.beam conftest.$ac_ext
22669 gcc_cv_initfini_array=no
22670 if test $in_tree_ld = yes ; then
22671 if test "$gcc_cv_gld_major_version" -eq 2 \
22672 -a "$gcc_cv_gld_minor_version" -ge 22 \
22673 -o "$gcc_cv_gld_major_version" -gt 2 \
22674 && test $in_tree_ld_is_elf = yes; then
22675 gcc_cv_initfini_array=yes
22677 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22678 cat > conftest.s <<\EOF
22679 .section .dtors,"a",%progbits
22680 .balign 4
22681 .byte 'A', 'A', 'A', 'A'
22682 .section .ctors,"a",%progbits
22683 .balign 4
22684 .byte 'B', 'B', 'B', 'B'
22685 .section .fini_array.65530,"a",%progbits
22686 .balign 4
22687 .byte 'C', 'C', 'C', 'C'
22688 .section .init_array.65530,"a",%progbits
22689 .balign 4
22690 .byte 'D', 'D', 'D', 'D'
22691 .section .dtors.64528,"a",%progbits
22692 .balign 4
22693 .byte 'E', 'E', 'E', 'E'
22694 .section .ctors.64528,"a",%progbits
22695 .balign 4
22696 .byte 'F', 'F', 'F', 'F'
22697 .section .fini_array.01005,"a",%progbits
22698 .balign 4
22699 .byte 'G', 'G', 'G', 'G'
22700 .section .init_array.01005,"a",%progbits
22701 .balign 4
22702 .byte 'H', 'H', 'H', 'H'
22703 .text
22704 .globl _start
22705 _start:
22707 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22708 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22709 && $gcc_cv_objdump -s -j .init_array conftest \
22710 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22711 && $gcc_cv_objdump -s -j .fini_array conftest \
22712 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22713 gcc_cv_initfini_array=yes
22715 rm -f conftest conftest.*
22717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22718 /* end confdefs.h. */
22720 #ifndef __ELF__
22721 # error Not an ELF OS
22722 #endif
22723 #include <stdlib.h>
22724 #if defined __GLIBC_PREREQ
22725 # if __GLIBC_PREREQ (2, 4)
22726 # else
22727 # error GLIBC 2.4 required
22728 # endif
22729 #else
22730 # if defined __sun__ && defined __svr4__
22731 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22732 # else
22733 # error The C library not known to support .init_array/.fini_array
22734 # endif
22735 #endif
22737 _ACEOF
22738 if ac_fn_c_try_cpp "$LINENO"; then :
22740 else
22741 gcc_cv_initfini_array=no
22743 rm -f conftest.err conftest.$ac_ext;;
22744 esac
22745 else
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22747 $as_echo_n "checking cross compile... guessing... " >&6; }
22748 gcc_cv_initfini_array=no
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22752 $as_echo "$gcc_cv_initfini_array" >&6; }
22753 enable_initfini_array=$gcc_cv_initfini_array
22757 if test $enable_initfini_array = yes; then
22759 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22763 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22765 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22766 if test "${gcc_cv_as_leb128+set}" = set; then :
22767 $as_echo_n "(cached) " >&6
22768 else
22769 gcc_cv_as_leb128=no
22770 if test $in_tree_gas = yes; then
22771 if test $in_tree_gas_is_elf = yes \
22772 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22773 then gcc_cv_as_leb128=yes
22775 elif test x$gcc_cv_as != x; then
22776 $as_echo ' .data
22777 .uleb128 L2 - L1
22779 .uleb128 1280
22780 .sleb128 -1010
22781 L2:' > conftest.s
22782 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22784 (eval $ac_try) 2>&5
22785 ac_status=$?
22786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22787 test $ac_status = 0; }; }
22788 then
22789 # GAS versions before 2.11 do not support uleb128,
22790 # despite appearing to.
22791 # ??? There exists an elf-specific test that will crash
22792 # the assembler. Perhaps it's better to figure out whether
22793 # arbitrary sections are supported and try the test.
22794 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22795 if echo "$as_ver" | grep GNU > /dev/null; then
22796 as_vers=`echo $as_ver | sed -n \
22797 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22798 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22799 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22800 if test $as_major -eq 2 && test $as_minor -lt 11
22801 then :
22802 else gcc_cv_as_leb128=yes
22805 else
22806 echo "configure: failed program was" >&5
22807 cat conftest.s >&5
22809 rm -f conftest.o conftest.s
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22813 $as_echo "$gcc_cv_as_leb128" >&6; }
22814 if test $gcc_cv_as_leb128 = yes; then
22816 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22820 # Check if we have assembler support for unwind directives.
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22822 $as_echo_n "checking assembler for cfi directives... " >&6; }
22823 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22824 $as_echo_n "(cached) " >&6
22825 else
22826 gcc_cv_as_cfi_directive=no
22827 if test x$gcc_cv_as != x; then
22828 $as_echo ' .text
22829 .cfi_startproc
22830 .cfi_offset 0, 0
22831 .cfi_same_value 1
22832 .cfi_def_cfa 1, 2
22833 .cfi_escape 1, 2, 3, 4, 5
22834 .cfi_endproc' > conftest.s
22835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22837 (eval $ac_try) 2>&5
22838 ac_status=$?
22839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22840 test $ac_status = 0; }; }
22841 then
22842 case "$target" in
22843 *-*-solaris*)
22844 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22845 # read-only and read-write sections, we need to make sure that the
22846 # assembler used emits read-write .eh_frame sections.
22847 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22848 if test "x$gcc_cv_objdump" != x; then
22849 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22850 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22851 gcc_cv_as_cfi_directive=no
22852 else
22853 case "$target" in
22854 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22855 # On Solaris/x86, make sure that GCC and gas agree on using
22856 # read-only .eh_frame sections for 64-bit.
22857 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22858 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22859 sed -e /.eh_frame/!d -e N | \
22860 grep READONLY > /dev/null; then
22861 gcc_cv_as_cfi_directive=yes
22862 else
22863 gcc_cv_as_cfi_directive=no
22867 gcc_cv_as_cfi_directive=yes
22869 esac
22871 else
22872 # no objdump, err on the side of caution
22873 gcc_cv_as_cfi_directive=no
22875 else
22876 gcc_cv_as_cfi_directive=yes
22879 *-*-*)
22880 gcc_cv_as_cfi_directive=yes
22882 esac
22883 else
22884 echo "configure: failed program was" >&5
22885 cat conftest.s >&5
22887 rm -f conftest.o conftest.s
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22891 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22893 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22895 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22896 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22897 $as_echo_n "(cached) " >&6
22898 else
22899 gcc_cv_as_cfi_advance_working=no
22900 if test x$gcc_cv_as != x; then
22901 $as_echo ' .text
22902 .cfi_startproc
22903 .cfi_adjust_cfa_offset 64
22904 .skip 75040, 0
22905 .cfi_adjust_cfa_offset 128
22906 .cfi_endproc' > conftest.s
22907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22909 (eval $ac_try) 2>&5
22910 ac_status=$?
22911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22912 test $ac_status = 0; }; }
22913 then
22915 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22916 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22917 gcc_cv_as_cfi_advance_working=yes
22920 else
22921 echo "configure: failed program was" >&5
22922 cat conftest.s >&5
22924 rm -f conftest.o conftest.s
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22928 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22930 else
22931 # no objdump, err on the side of caution
22932 gcc_cv_as_cfi_advance_working=no
22936 cat >>confdefs.h <<_ACEOF
22937 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22938 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22939 _ACEOF
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22944 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22945 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22946 $as_echo_n "(cached) " >&6
22947 else
22948 gcc_cv_as_cfi_personality_directive=no
22949 if test x$gcc_cv_as != x; then
22950 $as_echo ' .text
22951 .cfi_startproc
22952 .cfi_personality 0, symbol
22953 .cfi_endproc' > conftest.s
22954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22956 (eval $ac_try) 2>&5
22957 ac_status=$?
22958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22959 test $ac_status = 0; }; }
22960 then
22961 gcc_cv_as_cfi_personality_directive=yes
22962 else
22963 echo "configure: failed program was" >&5
22964 cat conftest.s >&5
22966 rm -f conftest.o conftest.s
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22970 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22973 cat >>confdefs.h <<_ACEOF
22974 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22975 then echo 1; else echo 0; fi`
22976 _ACEOF
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22980 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22981 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22982 $as_echo_n "(cached) " >&6
22983 else
22984 gcc_cv_as_cfi_sections_directive=no
22985 if test x$gcc_cv_as != x; then
22986 $as_echo ' .text
22987 .cfi_sections .debug_frame, .eh_frame
22988 .cfi_startproc
22989 .cfi_endproc' > conftest.s
22990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22992 (eval $ac_try) 2>&5
22993 ac_status=$?
22994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22995 test $ac_status = 0; }; }
22996 then
22997 case $target_os in
22998 win32 | pe | cygwin* | mingw32* | uwin*)
22999 # Need to check that we generated the correct relocation for the
23000 # .debug_frame section. This was fixed for binutils 2.21.
23001 gcc_cv_as_cfi_sections_directive=no
23002 if test "x$gcc_cv_objdump" != x; then
23003 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23004 grep secrel > /dev/null; then
23005 gcc_cv_as_cfi_sections_directive=yes
23010 gcc_cv_as_cfi_sections_directive=yes
23012 esac
23013 else
23014 echo "configure: failed program was" >&5
23015 cat conftest.s >&5
23017 rm -f conftest.o conftest.s
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23021 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23025 cat >>confdefs.h <<_ACEOF
23026 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23027 then echo 1; else echo 0; fi`
23028 _ACEOF
23031 # GAS versions up to and including 2.11.0 may mis-optimize
23032 # .eh_frame data.
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23034 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23035 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23036 $as_echo_n "(cached) " >&6
23037 else
23038 gcc_cv_as_eh_frame=no
23039 if test $in_tree_gas = yes; then
23040 if test $in_tree_gas_is_elf = yes \
23041 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23042 then gcc_cv_as_eh_frame=yes
23044 elif test x$gcc_cv_as != x; then
23045 $as_echo ' .text
23046 .LFB1:
23047 .4byte 0
23048 .L1:
23049 .4byte 0
23050 .LFE1:
23051 .section .eh_frame,"aw",@progbits
23052 __FRAME_BEGIN__:
23053 .4byte .LECIE1-.LSCIE1
23054 .LSCIE1:
23055 .4byte 0x0
23056 .byte 0x1
23057 .ascii "z\0"
23058 .byte 0x1
23059 .byte 0x78
23060 .byte 0x1a
23061 .byte 0x0
23062 .byte 0x4
23063 .4byte 1
23064 .p2align 1
23065 .LECIE1:
23066 .LSFDE1:
23067 .4byte .LEFDE1-.LASFDE1
23068 .LASFDE1:
23069 .4byte .LASFDE1-__FRAME_BEGIN__
23070 .4byte .LFB1
23071 .4byte .LFE1-.LFB1
23072 .byte 0x4
23073 .4byte .LFE1-.LFB1
23074 .byte 0x4
23075 .4byte .L1-.LFB1
23076 .LEFDE1:' > conftest.s
23077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23079 (eval $ac_try) 2>&5
23080 ac_status=$?
23081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23082 test $ac_status = 0; }; }
23083 then
23084 cat > conftest.lit <<EOF
23085 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23086 0010 01000000 12000000 18000000 00000000 ................
23087 0020 08000000 04080000 0044 .........D
23089 cat > conftest.big <<EOF
23090 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23091 0010 00000001 00000012 00000018 00000000 ................
23092 0020 00000008 04000000 0844 .........D
23094 # If the assembler didn't choke, and we can objdump,
23095 # and we got the correct data, then succeed.
23096 # The text in the here-document typically retains its unix-style line
23097 # endings, while the output of objdump will use host line endings.
23098 # Therefore, use diff -b for the comparisons.
23099 if test x$gcc_cv_objdump != x \
23100 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23101 | tail -3 > conftest.got \
23102 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23103 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23104 then
23105 gcc_cv_as_eh_frame=yes
23106 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23108 (eval $ac_try) 2>&5
23109 ac_status=$?
23110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23111 test $ac_status = 0; }; }; then
23112 gcc_cv_as_eh_frame=buggy
23113 else
23114 # Uh oh, what do we do now?
23115 gcc_cv_as_eh_frame=no
23117 else
23118 echo "configure: failed program was" >&5
23119 cat conftest.s >&5
23121 rm -f conftest.o conftest.s
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23125 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23128 if test $gcc_cv_as_eh_frame = buggy; then
23130 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23135 $as_echo_n "checking assembler for section merging support... " >&6; }
23136 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23137 $as_echo_n "(cached) " >&6
23138 else
23139 gcc_cv_as_shf_merge=no
23140 if test $in_tree_gas = yes; then
23141 if test $in_tree_gas_is_elf = yes \
23142 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23143 then gcc_cv_as_shf_merge=yes
23145 elif test x$gcc_cv_as != x; then
23146 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23149 (eval $ac_try) 2>&5
23150 ac_status=$?
23151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23152 test $ac_status = 0; }; }
23153 then
23154 gcc_cv_as_shf_merge=yes
23155 else
23156 echo "configure: failed program was" >&5
23157 cat conftest.s >&5
23159 rm -f conftest.o conftest.s
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23163 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23165 if test $gcc_cv_as_shf_merge = no; then
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23167 $as_echo_n "checking assembler for section merging support... " >&6; }
23168 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23169 $as_echo_n "(cached) " >&6
23170 else
23171 gcc_cv_as_shf_merge=no
23172 if test $in_tree_gas = yes; then
23173 if test $in_tree_gas_is_elf = yes \
23174 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23175 then gcc_cv_as_shf_merge=yes
23177 elif test x$gcc_cv_as != x; then
23178 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23181 (eval $ac_try) 2>&5
23182 ac_status=$?
23183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23184 test $ac_status = 0; }; }
23185 then
23186 gcc_cv_as_shf_merge=yes
23187 else
23188 echo "configure: failed program was" >&5
23189 cat conftest.s >&5
23191 rm -f conftest.o conftest.s
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23195 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23199 cat >>confdefs.h <<_ACEOF
23200 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23201 _ACEOF
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23205 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23206 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23207 $as_echo_n "(cached) " >&6
23208 else
23209 gcc_cv_as_comdat_group=no
23210 if test $in_tree_gas = yes; then
23211 if test $in_tree_gas_is_elf = yes \
23212 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23213 then gcc_cv_as_comdat_group=yes
23215 elif test x$gcc_cv_as != x; then
23216 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23219 (eval $ac_try) 2>&5
23220 ac_status=$?
23221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23222 test $ac_status = 0; }; }
23223 then
23224 gcc_cv_as_comdat_group=yes
23225 else
23226 echo "configure: failed program was" >&5
23227 cat conftest.s >&5
23229 rm -f conftest.o conftest.s
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23233 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23235 if test $gcc_cv_as_comdat_group = yes; then
23236 gcc_cv_as_comdat_group_percent=no
23237 gcc_cv_as_comdat_group_group=no
23238 else
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23240 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23241 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23242 $as_echo_n "(cached) " >&6
23243 else
23244 gcc_cv_as_comdat_group_percent=no
23245 if test $in_tree_gas = yes; then
23246 if test $in_tree_gas_is_elf = yes \
23247 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23248 then gcc_cv_as_comdat_group_percent=yes
23250 elif test x$gcc_cv_as != x; then
23251 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23254 (eval $ac_try) 2>&5
23255 ac_status=$?
23256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23257 test $ac_status = 0; }; }
23258 then
23259 gcc_cv_as_comdat_group_percent=yes
23260 else
23261 echo "configure: failed program was" >&5
23262 cat conftest.s >&5
23264 rm -f conftest.o conftest.s
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23268 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23270 if test $gcc_cv_as_comdat_group_percent = yes; then
23271 gcc_cv_as_comdat_group_group=no
23272 else
23273 case "${target}" in
23274 # Sun as uses a completely different syntax.
23275 *-*-solaris2*)
23276 case "${target}" in
23277 sparc*-*-solaris2*)
23278 conftest_s='
23279 .group foo,".text%foo",#comdat
23280 .section ".text%foo", #alloc,#execinstr,#progbits
23281 .globl foo
23282 foo:
23285 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23286 conftest_s='
23287 .group foo,.text%foo,#comdat
23288 .section .text%foo, "ax", @progbits
23289 .globl foo
23290 foo:
23293 esac
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23295 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23296 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23297 $as_echo_n "(cached) " >&6
23298 else
23299 gcc_cv_as_comdat_group_group=no
23300 if test x$gcc_cv_as != x; then
23301 $as_echo "$conftest_s" > conftest.s
23302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23304 (eval $ac_try) 2>&5
23305 ac_status=$?
23306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23307 test $ac_status = 0; }; }
23308 then
23309 gcc_cv_as_comdat_group_group=yes
23310 else
23311 echo "configure: failed program was" >&5
23312 cat conftest.s >&5
23314 rm -f conftest.o conftest.s
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23318 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23321 esac
23324 if test x"$ld_is_gold" = xyes; then
23325 comdat_group=yes
23326 elif test $in_tree_ld = yes ; then
23327 comdat_group=no
23328 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 \
23329 && test $in_tree_ld_is_elf = yes; then
23330 comdat_group=yes
23332 elif echo "$ld_ver" | grep GNU > /dev/null; then
23333 comdat_group=yes
23334 if test 0"$ld_date" -lt 20050308; then
23335 if test -n "$ld_date"; then
23336 # If there was date string, but was earlier than 2005-03-08, fail
23337 comdat_group=no
23338 elif test "$ld_vers_major" -lt 2; then
23339 comdat_group=no
23340 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23341 comdat_group=no
23344 else
23345 case "${target}" in
23346 *-*-solaris2.1[1-9]*)
23347 comdat_group=no
23348 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23349 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23350 # version 1.688.
23352 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23353 # least ld version 1.2267.
23354 if test "$ld_vers_major" -gt 1; then
23355 comdat_group=yes
23356 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23357 comdat_group=yes
23358 elif test "$ld_vers_minor" -ge 2267; then
23359 comdat_group=yes
23363 # Assume linkers other than GNU ld don't support COMDAT group.
23364 comdat_group=no
23366 esac
23368 # Allow overriding the automatic COMDAT group tests above.
23369 # Check whether --enable-comdat was given.
23370 if test "${enable_comdat+set}" = set; then :
23371 enableval=$enable_comdat; comdat_group="$enable_comdat"
23374 if test $comdat_group = no; then
23375 gcc_cv_as_comdat_group=no
23376 gcc_cv_as_comdat_group_percent=no
23377 gcc_cv_as_comdat_group_group=no
23380 cat >>confdefs.h <<_ACEOF
23381 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23382 || test $gcc_cv_as_comdat_group_percent = yes \
23383 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23384 _ACEOF
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23388 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23389 if test "${gcc_cv_as_discriminator+set}" = set; then :
23390 $as_echo_n "(cached) " >&6
23391 else
23392 gcc_cv_as_discriminator=no
23393 if test $in_tree_gas = yes; then
23394 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23395 then gcc_cv_as_discriminator=yes
23397 elif test x$gcc_cv_as != x; then
23398 $as_echo ' .text
23399 .file 1 "conf.c"
23400 .loc 1 1 0 discriminator 1' > conftest.s
23401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23403 (eval $ac_try) 2>&5
23404 ac_status=$?
23405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23406 test $ac_status = 0; }; }
23407 then
23408 gcc_cv_as_discriminator=yes
23409 else
23410 echo "configure: failed program was" >&5
23411 cat conftest.s >&5
23413 rm -f conftest.o conftest.s
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23417 $as_echo "$gcc_cv_as_discriminator" >&6; }
23418 if test $gcc_cv_as_discriminator = yes; then
23420 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23424 # Thread-local storage - the check is heavily parameterized.
23425 conftest_s=
23426 tls_first_major=
23427 tls_first_minor=
23428 tls_as_opt=
23429 case "$target" in
23430 alpha*-*-*)
23431 conftest_s='
23432 .section ".tdata","awT",@progbits
23433 foo: .long 25
23434 .text
23435 ldq $27,__tls_get_addr($29) !literal!1
23436 lda $16,foo($29) !tlsgd!1
23437 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23438 ldq $27,__tls_get_addr($29) !literal!2
23439 lda $16,foo($29) !tlsldm!2
23440 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23441 ldq $1,foo($29) !gotdtprel
23442 ldah $2,foo($29) !dtprelhi
23443 lda $3,foo($2) !dtprello
23444 lda $4,foo($29) !dtprel
23445 ldq $1,foo($29) !gottprel
23446 ldah $2,foo($29) !tprelhi
23447 lda $3,foo($2) !tprello
23448 lda $4,foo($29) !tprel'
23449 tls_first_major=2
23450 tls_first_minor=13
23451 tls_as_opt=--fatal-warnings
23453 cris-*-*|crisv32-*-*)
23454 conftest_s='
23455 .section ".tdata","awT",@progbits
23456 x: .long 25
23457 .text
23458 move.d x:IE,$r10
23459 nop'
23460 tls_first_major=2
23461 tls_first_minor=20
23462 tls_as_opt=--fatal-warnings
23464 frv*-*-*)
23465 conftest_s='
23466 .section ".tdata","awT",@progbits
23467 x: .long 25
23468 .text
23469 call #gettlsoff(x)'
23470 tls_first_major=2
23471 tls_first_minor=14
23473 hppa*-*-linux*)
23474 conftest_s='
23475 t1: .reg %r20
23476 t2: .reg %r21
23477 gp: .reg %r19
23478 .section ".tdata","awT",@progbits
23479 foo: .long 25
23480 .text
23481 .align 4
23482 addil LT%foo-$tls_gdidx$,gp
23483 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23484 b __tls_get_addr
23486 addil LT%foo-$tls_ldidx$,gp
23487 b __tls_get_addr
23488 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23489 addil LR%foo-$tls_dtpoff$,%ret0
23490 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23491 mfctl %cr27,%t1
23492 addil LT%foo-$tls_ieoff$,gp
23493 ldw RT%foo-$tls_ieoff$(%r1),%t2
23494 add %t1,%t2,%t3
23495 mfctl %cr27,%t1
23496 addil LR%foo-$tls_leoff$,%t1
23497 ldo RR%foo-$tls_leoff$(%r1),%t2'
23498 tls_first_major=2
23499 tls_first_minor=15
23500 tls_as_opt=--fatal-warnings
23502 arm*-*-*)
23503 conftest_s='
23504 .section ".tdata","awT",%progbits
23505 foo: .long 25
23506 .text
23507 .word foo(gottpoff)
23508 .word foo(tpoff)
23509 .word foo(tlsgd)
23510 .word foo(tlsldm)
23511 .word foo(tlsldo)'
23512 tls_first_major=2
23513 tls_first_minor=17
23515 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23516 case "$target" in
23517 i[34567]86-*-solaris2.*)
23518 on_solaris=yes
23519 tga_func=___tls_get_addr
23521 x86_64-*-solaris2.1[0-9]*)
23522 on_solaris=yes
23523 tga_func=__tls_get_addr
23526 on_solaris=no
23528 esac
23529 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23530 conftest_s='
23531 .section .tdata,"awt",@progbits'
23532 tls_first_major=0
23533 tls_first_minor=0
23535 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23537 else
23538 conftest_s='
23539 .section ".tdata","awT",@progbits'
23540 tls_first_major=2
23541 tls_first_minor=14
23542 tls_as_opt="--fatal-warnings"
23544 conftest_s="$conftest_s
23545 foo: .long 25
23546 .text
23547 movl %gs:0, %eax
23548 leal foo@tlsgd(,%ebx,1), %eax
23549 leal foo@tlsldm(%ebx), %eax
23550 leal foo@dtpoff(%eax), %edx
23551 movl foo@gottpoff(%ebx), %eax
23552 subl foo@gottpoff(%ebx), %eax
23553 addl foo@gotntpoff(%ebx), %eax
23554 movl foo@indntpoff, %eax
23555 movl \$foo@tpoff, %eax
23556 subl \$foo@tpoff, %eax
23557 leal foo@ntpoff(%ecx), %eax"
23559 x86_64-*-*)
23560 conftest_s='
23561 .section ".tdata","awT",@progbits
23562 foo: .long 25
23563 .text
23564 movq %fs:0, %rax
23565 leaq foo@TLSGD(%rip), %rdi
23566 leaq foo@TLSLD(%rip), %rdi
23567 leaq foo@DTPOFF(%rax), %rdx
23568 movq foo@GOTTPOFF(%rip), %rax
23569 movq $foo@TPOFF, %rax'
23570 tls_first_major=2
23571 tls_first_minor=14
23572 tls_as_opt=--fatal-warnings
23574 ia64-*-*)
23575 conftest_s='
23576 .section ".tdata","awT",@progbits
23577 foo: data8 25
23578 .text
23579 addl r16 = @ltoff(@dtpmod(foo#)), gp
23580 addl r17 = @ltoff(@dtprel(foo#)), gp
23581 addl r18 = @ltoff(@tprel(foo#)), gp
23582 addl r19 = @dtprel(foo#), gp
23583 adds r21 = @dtprel(foo#), r13
23584 movl r23 = @dtprel(foo#)
23585 addl r20 = @tprel(foo#), gp
23586 adds r22 = @tprel(foo#), r13
23587 movl r24 = @tprel(foo#)'
23588 tls_first_major=2
23589 tls_first_minor=13
23590 tls_as_opt=--fatal-warnings
23592 mips*-*-*)
23593 conftest_s='
23594 .section .tdata,"awT",@progbits
23596 .word 2
23597 .text
23598 addiu $4, $28, %tlsgd(x)
23599 addiu $4, $28, %tlsldm(x)
23600 lui $4, %dtprel_hi(x)
23601 addiu $4, $4, %dtprel_lo(x)
23602 lw $4, %gottprel(x)($28)
23603 lui $4, %tprel_hi(x)
23604 addiu $4, $4, %tprel_lo(x)'
23605 tls_first_major=2
23606 tls_first_minor=16
23607 tls_as_opt='-32 --fatal-warnings'
23609 m68k-*-*)
23610 conftest_s='
23611 .section .tdata,"awT",@progbits
23613 .word 2
23614 .text
23615 foo:
23616 move.l x@TLSGD(%a5),%a0
23617 move.l x@TLSLDM(%a5),%a0
23618 move.l x@TLSLDO(%a5),%a0
23619 move.l x@TLSIE(%a5),%a0
23620 move.l x@TLSLE(%a5),%a0'
23621 tls_first_major=2
23622 tls_first_minor=19
23623 tls_as_opt='--fatal-warnings'
23625 powerpc-*-*)
23626 conftest_s='
23627 .section ".tdata","awT",@progbits
23628 .align 2
23629 ld0: .space 4
23630 ld1: .space 4
23631 x1: .space 4
23632 x2: .space 4
23633 x3: .space 4
23634 .text
23635 addi 3,31,ld0@got@tlsgd
23636 bl __tls_get_addr
23637 addi 3,31,x1@got@tlsld
23638 bl __tls_get_addr
23639 addi 9,3,x1@dtprel
23640 addis 9,3,x2@dtprel@ha
23641 addi 9,9,x2@dtprel@l
23642 lwz 9,x3@got@tprel(31)
23643 add 9,9,x@tls
23644 addi 9,2,x1@tprel
23645 addis 9,2,x2@tprel@ha
23646 addi 9,9,x2@tprel@l'
23647 tls_first_major=2
23648 tls_first_minor=14
23649 tls_as_opt="-a32 --fatal-warnings"
23651 powerpc64-*-*)
23652 conftest_s='
23653 .section ".tdata","awT",@progbits
23654 .align 3
23655 ld0: .space 8
23656 ld1: .space 8
23657 x1: .space 8
23658 x2: .space 8
23659 x3: .space 8
23660 .text
23661 addi 3,2,ld0@got@tlsgd
23662 bl .__tls_get_addr
23664 addi 3,2,ld1@toc
23665 bl .__tls_get_addr
23667 addi 3,2,x1@got@tlsld
23668 bl .__tls_get_addr
23670 addi 9,3,x1@dtprel
23671 bl .__tls_get_addr
23673 addis 9,3,x2@dtprel@ha
23674 addi 9,9,x2@dtprel@l
23675 bl .__tls_get_addr
23677 ld 9,x3@got@dtprel(2)
23678 add 9,9,3
23679 bl .__tls_get_addr
23680 nop'
23681 tls_first_major=2
23682 tls_first_minor=14
23683 tls_as_opt="-a64 --fatal-warnings"
23685 s390-*-*)
23686 conftest_s='
23687 .section ".tdata","awT",@progbits
23688 foo: .long 25
23689 .text
23690 .long foo@TLSGD
23691 .long foo@TLSLDM
23692 .long foo@DTPOFF
23693 .long foo@NTPOFF
23694 .long foo@GOTNTPOFF
23695 .long foo@INDNTPOFF
23696 l %r1,foo@GOTNTPOFF(%r12)
23697 l %r1,0(%r1):tls_load:foo
23698 bas %r14,0(%r1,%r13):tls_gdcall:foo
23699 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23700 tls_first_major=2
23701 tls_first_minor=14
23702 tls_as_opt="-m31 --fatal-warnings"
23704 s390x-*-*)
23705 conftest_s='
23706 .section ".tdata","awT",@progbits
23707 foo: .long 25
23708 .text
23709 .quad foo@TLSGD
23710 .quad foo@TLSLDM
23711 .quad foo@DTPOFF
23712 .quad foo@NTPOFF
23713 .quad foo@GOTNTPOFF
23714 lg %r1,foo@GOTNTPOFF(%r12)
23715 larl %r1,foo@INDNTPOFF
23716 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23717 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23718 tls_first_major=2
23719 tls_first_minor=14
23720 tls_as_opt="-m64 -Aesame --fatal-warnings"
23722 sh-*-* | sh[34]-*-*)
23723 conftest_s='
23724 .section ".tdata","awT",@progbits
23725 foo: .long 25
23726 .text
23727 .long foo@TLSGD
23728 .long foo@TLSLDM
23729 .long foo@DTPOFF
23730 .long foo@GOTTPOFF
23731 .long foo@TPOFF'
23732 tls_first_major=2
23733 tls_first_minor=13
23734 tls_as_opt=--fatal-warnings
23736 sparc*-*-*)
23737 case "$target" in
23738 sparc*-sun-solaris2.*)
23739 on_solaris=yes
23740 tga_func=__tls_get_addr
23743 on_solaris=no
23745 esac
23746 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23747 conftest_s='
23748 .section ".tdata",#alloc,#write,#tls'
23749 tls_first_major=0
23750 tls_first_minor=0
23751 else
23752 conftest_s='
23753 .section ".tdata","awT",@progbits'
23754 tls_first_major=2
23755 tls_first_minor=14
23756 tls_as_opt="-32 --fatal-warnings"
23758 conftest_s="$conftest_s
23759 foo: .long 25
23760 .text
23761 sethi %tgd_hi22(foo), %o0
23762 add %o0, %tgd_lo10(foo), %o1
23763 add %l7, %o1, %o0, %tgd_add(foo)
23764 call __tls_get_addr, %tgd_call(foo)
23765 sethi %tldm_hi22(foo), %l1
23766 add %l1, %tldm_lo10(foo), %l2
23767 add %l7, %l2, %o0, %tldm_add(foo)
23768 call __tls_get_addr, %tldm_call(foo)
23769 sethi %tldo_hix22(foo), %l3
23770 xor %l3, %tldo_lox10(foo), %l4
23771 add %o0, %l4, %l5, %tldo_add(foo)
23772 sethi %tie_hi22(foo), %o3
23773 add %o3, %tie_lo10(foo), %o3
23774 ld [%l7 + %o3], %o2, %tie_ld(foo)
23775 add %g7, %o2, %o4, %tie_add(foo)
23776 sethi %tle_hix22(foo), %l1
23777 xor %l1, %tle_lox10(foo), %o5
23778 ld [%g7 + %o5], %o1"
23780 tilepro*-*-*)
23781 conftest_s='
23782 .section ".tdata","awT",@progbits
23783 foo: .long 25
23784 .text
23785 addli r0, zero, tls_gd(foo)
23786 auli r0, zero, tls_gd_ha16(foo)
23787 addli r0, r0, tls_gd_lo16(foo)
23788 jal __tls_get_addr
23789 addli r0, zero, tls_ie(foo)
23790 auli r0, r0, tls_ie_ha16(foo)
23791 addli r0, r0, tls_ie_lo16(foo)'
23792 tls_first_major=2
23793 tls_first_minor=22
23794 tls_as_opt="--fatal-warnings"
23796 tilegx*-*-*)
23797 conftest_s='
23798 .section ".tdata","awT",@progbits
23799 foo: .long 25
23800 .text
23801 shl16insli r0, zero, hw0_last_tls_gd(foo)
23802 shl16insli r0, zero, hw1_last_tls_gd(foo)
23803 shl16insli r0, r0, hw0_tls_gd(foo)
23804 jal __tls_get_addr
23805 shl16insli r0, zero, hw1_last_tls_ie(foo)
23806 shl16insli r0, r0, hw0_tls_ie(foo)'
23807 tls_first_major=2
23808 tls_first_minor=22
23809 tls_as_opt="--fatal-warnings"
23811 xtensa*-*-*)
23812 conftest_s='
23813 .section ".tdata","awT",@progbits
23814 foo: .long 25
23815 .text
23816 movi a8, foo@TLSFUNC
23817 movi a10, foo@TLSARG
23818 callx8.tls a8, foo@TLSCALL'
23819 tls_first_major=2
23820 tls_first_minor=19
23822 esac
23823 set_have_as_tls=no
23824 if test "x$enable_tls" = xno ; then
23825 : # TLS explicitly disabled.
23826 elif test "x$enable_tls" = xyes ; then
23827 set_have_as_tls=yes # TLS explicitly enabled.
23828 elif test -z "$tls_first_major"; then
23829 : # If we don't have a check, assume no support.
23830 else
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23832 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23833 if test "${gcc_cv_as_tls+set}" = set; then :
23834 $as_echo_n "(cached) " >&6
23835 else
23836 gcc_cv_as_tls=no
23837 if test $in_tree_gas = yes; then
23838 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23839 then gcc_cv_as_tls=yes
23841 elif test x$gcc_cv_as != x; then
23842 $as_echo "$conftest_s" > conftest.s
23843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23845 (eval $ac_try) 2>&5
23846 ac_status=$?
23847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23848 test $ac_status = 0; }; }
23849 then
23850 gcc_cv_as_tls=yes
23851 else
23852 echo "configure: failed program was" >&5
23853 cat conftest.s >&5
23855 rm -f conftest.o conftest.s
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23859 $as_echo "$gcc_cv_as_tls" >&6; }
23860 if test $gcc_cv_as_tls = yes; then
23861 set_have_as_tls=yes
23864 case "$target" in
23865 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23866 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23867 # Sun style that Sun ld and GCC don't support any longer.
23868 *-*-solaris2.*)
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23870 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23871 ld_tls_support=no
23872 # Check ld and ld.so.1 TLS support.
23873 if echo "$ld_ver" | grep GNU > /dev/null; then
23874 # Assume all interesting versions of GNU ld have TLS support.
23875 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23876 ld_tls_support=yes
23877 else
23878 case "$target" in
23879 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23880 i?86-*-solaris2.9)
23881 min_tls_ld_vers_minor=374
23883 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23884 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23885 min_tls_ld_vers_minor=343
23887 esac
23888 if test "$ld_vers_major" -gt 1 || \
23889 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23890 ld_tls_support=yes
23891 else
23892 set_have_as_tls=no
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23896 $as_echo "$ld_tls_support" >&6; }
23898 save_LIBS="$LIBS"
23899 save_LDFLAGS="$LDFLAGS"
23900 LIBS=
23901 LDFLAGS=
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23904 $as_echo_n "checking library containing $tga_func... " >&6; }
23905 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23906 # (32-bit x86) only lived in libthread, so check for that. Keep
23907 # set_have_as_tls if found, disable if not.
23908 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23910 $as_echo_n "checking for library containing $tga_func... " >&6; }
23911 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23912 $as_echo_n "(cached) " >&6
23913 else
23914 ac_func_search_save_LIBS=$LIBS
23915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23916 /* end confdefs.h. */
23918 /* Override any GCC internal prototype to avoid an error.
23919 Use char because int might match the return type of a GCC
23920 builtin and then its argument prototype would still apply. */
23921 #ifdef __cplusplus
23922 extern "C"
23923 #endif
23924 char $tga_func ();
23926 main ()
23928 return $tga_func ();
23930 return 0;
23932 _ACEOF
23933 for ac_lib in '' thread; do
23934 if test -z "$ac_lib"; then
23935 ac_res="none required"
23936 else
23937 ac_res=-l$ac_lib
23938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23940 if ac_fn_c_try_link "$LINENO"; then :
23941 eval "$as_ac_Search=\$ac_res"
23943 rm -f core conftest.err conftest.$ac_objext \
23944 conftest$ac_exeext
23945 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23946 break
23948 done
23949 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23951 else
23952 eval "$as_ac_Search=no"
23954 rm conftest.$ac_ext
23955 LIBS=$ac_func_search_save_LIBS
23957 eval ac_res=\$$as_ac_Search
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23959 $as_echo "$ac_res" >&6; }
23960 eval ac_res=\$$as_ac_Search
23961 if test "$ac_res" != no; then :
23962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23964 else
23965 set_have_as_tls=no
23968 # Clear LIBS if we cannot support TLS.
23969 if test $set_have_as_tls = no; then
23970 LIBS=
23972 # Always define LIB_TLS_SPEC, even without TLS support.
23974 cat >>confdefs.h <<_ACEOF
23975 #define LIB_TLS_SPEC "$LIBS"
23976 _ACEOF
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23979 $as_echo "$LIBS" >&6; }
23981 LIBS="$save_LIBS"
23982 LDFLAGS="$save_LDFLAGS"
23984 esac
23985 if test $set_have_as_tls = yes ; then
23987 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23991 # Target-specific assembler checks.
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23994 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23995 gcc_cv_ld_static_dynamic=no
23996 gcc_cv_ld_static_option='-Bstatic'
23997 gcc_cv_ld_dynamic_option='-Bdynamic'
23998 if test $in_tree_ld = yes ; then
23999 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
24000 gcc_cv_ld_static_dynamic=yes
24002 elif test x$gcc_cv_ld != x; then
24003 # Check if linker supports -Bstatic/-Bdynamic option
24004 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24005 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24006 gcc_cv_ld_static_dynamic=yes
24007 else
24008 case "$target" in
24009 # HP-UX ld uses -a flags to select between shared and archive.
24010 *-*-hpux*)
24011 if test x"$gnu_ld" = xno; then
24012 gcc_cv_ld_static_dynamic=yes
24013 gcc_cv_ld_static_option="-aarchive_shared"
24014 gcc_cv_ld_dynamic_option="-adefault"
24017 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24018 *-*-solaris2*)
24019 gcc_cv_ld_static_dynamic=yes
24021 esac
24024 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24026 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24029 cat >>confdefs.h <<_ACEOF
24030 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24031 _ACEOF
24034 cat >>confdefs.h <<_ACEOF
24035 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24036 _ACEOF
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24040 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24042 if test x"$demangler_in_ld" = xyes; then
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24044 $as_echo_n "checking linker --demangle support... " >&6; }
24045 gcc_cv_ld_demangle=no
24046 if test $in_tree_ld = yes; then
24047 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 \
24048 gcc_cv_ld_demangle=yes
24050 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24051 # Check if the GNU linker supports --demangle option
24052 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24053 gcc_cv_ld_demangle=yes
24056 if test x"$gcc_cv_ld_demangle" = xyes; then
24058 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24062 $as_echo "$gcc_cv_ld_demangle" >&6; }
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24066 $as_echo_n "checking linker plugin support... " >&6; }
24067 gcc_cv_lto_plugin=0
24068 if test -f liblto_plugin.la; then
24069 save_ld_ver="$ld_ver"
24070 save_ld_vers_major="$ld_vers_major"
24071 save_ld_vers_minor="$ld_vers_minor"
24072 save_ld_is_gold="$ld_is_gold"
24074 ld_is_gold=no
24076 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24077 ld_ver="GNU ld"
24078 # FIXME: ld_is_gold?
24079 ld_vers_major="$gcc_cv_gld_major_version"
24080 ld_vers_minor="$gcc_cv_gld_minor_version"
24081 else
24082 # Determine plugin linker version.
24083 # FIXME: Partial duplicate from above, generalize.
24084 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24085 if echo "$ld_ver" | grep GNU > /dev/null; then
24086 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24087 ld_is_gold=yes
24088 ld_vers=`echo $ld_ver | sed -n \
24089 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24090 else
24091 ld_vers=`echo $ld_ver | sed -n \
24092 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24094 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24095 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24099 # Determine plugin support.
24100 if echo "$ld_ver" | grep GNU > /dev/null; then
24101 # Require GNU ld or gold 2.21+ for plugin support by default.
24102 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24103 gcc_cv_lto_plugin=2
24104 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24105 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24106 gcc_cv_lto_plugin=1
24110 ld_ver="$save_ld_ver"
24111 ld_vers_major="$save_ld_vers_major"
24112 ld_vers_minor="$save_ld_vers_minor"
24113 ld_is_gold="$save_ld_is_gold"
24116 cat >>confdefs.h <<_ACEOF
24117 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24118 _ACEOF
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24121 $as_echo "$gcc_cv_lto_plugin" >&6; }
24123 case "$target" in
24124 # All TARGET_ABI_OSF targets.
24125 alpha*-*-linux* | alpha*-*-*bsd*)
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24127 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24128 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24129 $as_echo_n "(cached) " >&6
24130 else
24131 gcc_cv_as_alpha_explicit_relocs=no
24132 if test $in_tree_gas = yes; then
24133 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24134 then gcc_cv_as_alpha_explicit_relocs=yes
24136 elif test x$gcc_cv_as != x; then
24137 $as_echo ' .set nomacro
24138 .text
24139 extbl $3, $2, $3 !lituse_bytoff!1
24140 ldq $2, a($29) !literal!1
24141 ldq $4, b($29) !literal!2
24142 ldq_u $3, 0($2) !lituse_base!1
24143 ldq $27, f($29) !literal!5
24144 jsr $26, ($27), f !lituse_jsr!5
24145 ldah $29, 0($26) !gpdisp!3
24146 lda $0, c($29) !gprel
24147 ldah $1, d($29) !gprelhigh
24148 lda $1, d($1) !gprellow
24149 lda $29, 0($29) !gpdisp!3' > conftest.s
24150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24152 (eval $ac_try) 2>&5
24153 ac_status=$?
24154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24155 test $ac_status = 0; }; }
24156 then
24157 gcc_cv_as_alpha_explicit_relocs=yes
24158 else
24159 echo "configure: failed program was" >&5
24160 cat conftest.s >&5
24162 rm -f conftest.o conftest.s
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24166 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24167 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24169 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24173 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24174 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24175 $as_echo_n "(cached) " >&6
24176 else
24177 gcc_cv_as_alpha_jsrdirect_relocs=no
24178 if test $in_tree_gas = yes; then
24179 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24180 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24182 elif test x$gcc_cv_as != x; then
24183 $as_echo ' .set nomacro
24184 .text
24185 ldq $27, a($29) !literal!1
24186 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24189 (eval $ac_try) 2>&5
24190 ac_status=$?
24191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24192 test $ac_status = 0; }; }
24193 then
24194 gcc_cv_as_alpha_jsrdirect_relocs=yes
24195 else
24196 echo "configure: failed program was" >&5
24197 cat conftest.s >&5
24199 rm -f conftest.o conftest.s
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24203 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24204 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24206 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24211 cris-*-*)
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24213 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24214 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24215 $as_echo_n "(cached) " >&6
24216 else
24217 gcc_cv_as_cris_no_mul_bug=no
24218 if test $in_tree_gas = yes; then
24219 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24220 then gcc_cv_as_cris_no_mul_bug=yes
24222 elif test x$gcc_cv_as != x; then
24223 $as_echo '.text' > conftest.s
24224 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24226 (eval $ac_try) 2>&5
24227 ac_status=$?
24228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24229 test $ac_status = 0; }; }
24230 then
24231 gcc_cv_as_cris_no_mul_bug=yes
24232 else
24233 echo "configure: failed program was" >&5
24234 cat conftest.s >&5
24236 rm -f conftest.o conftest.s
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24240 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24241 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24243 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24248 sparc*-*-*)
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24250 $as_echo_n "checking assembler for .register... " >&6; }
24251 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24252 $as_echo_n "(cached) " >&6
24253 else
24254 gcc_cv_as_sparc_register_op=no
24255 if test x$gcc_cv_as != x; then
24256 $as_echo '.register %g2, #scratch' > conftest.s
24257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24259 (eval $ac_try) 2>&5
24260 ac_status=$?
24261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24262 test $ac_status = 0; }; }
24263 then
24264 gcc_cv_as_sparc_register_op=yes
24265 else
24266 echo "configure: failed program was" >&5
24267 cat conftest.s >&5
24269 rm -f conftest.o conftest.s
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24273 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24274 if test $gcc_cv_as_sparc_register_op = yes; then
24276 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24281 $as_echo_n "checking assembler for -relax option... " >&6; }
24282 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24283 $as_echo_n "(cached) " >&6
24284 else
24285 gcc_cv_as_sparc_relax=no
24286 if test x$gcc_cv_as != x; then
24287 $as_echo '.text' > conftest.s
24288 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24290 (eval $ac_try) 2>&5
24291 ac_status=$?
24292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24293 test $ac_status = 0; }; }
24294 then
24295 gcc_cv_as_sparc_relax=yes
24296 else
24297 echo "configure: failed program was" >&5
24298 cat conftest.s >&5
24300 rm -f conftest.o conftest.s
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24304 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24305 if test $gcc_cv_as_sparc_relax = yes; then
24307 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24312 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24313 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24314 $as_echo_n "(cached) " >&6
24315 else
24316 gcc_cv_as_sparc_gotdata_op=no
24317 if test x$gcc_cv_as != x; then
24318 $as_echo '.text
24319 .align 4
24320 foo:
24322 bar:
24323 sethi %gdop_hix22(foo), %g1
24324 xor %g1, %gdop_lox10(foo), %g1
24325 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24326 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24328 (eval $ac_try) 2>&5
24329 ac_status=$?
24330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24331 test $ac_status = 0; }; }
24332 then
24333 if test x$gcc_cv_ld != x \
24334 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24335 if test x$gcc_cv_objdump != x; then
24336 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24337 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24338 gcc_cv_as_sparc_gotdata_op=no
24339 else
24340 gcc_cv_as_sparc_gotdata_op=yes
24344 rm -f conftest
24345 else
24346 echo "configure: failed program was" >&5
24347 cat conftest.s >&5
24349 rm -f conftest.o conftest.s
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24353 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24354 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24356 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24361 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24362 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24363 $as_echo_n "(cached) " >&6
24364 else
24365 gcc_cv_as_sparc_ua_pcrel=no
24366 if test x$gcc_cv_as != x; then
24367 $as_echo '.text
24368 foo:
24370 .data
24371 .align 4
24372 .byte 0
24373 .uaword %r_disp32(foo)' > conftest.s
24374 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24376 (eval $ac_try) 2>&5
24377 ac_status=$?
24378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24379 test $ac_status = 0; }; }
24380 then
24381 if test x$gcc_cv_ld != x \
24382 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24383 gcc_cv_as_sparc_ua_pcrel=yes
24385 rm -f conftest
24386 else
24387 echo "configure: failed program was" >&5
24388 cat conftest.s >&5
24390 rm -f conftest.o conftest.s
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24394 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24395 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24397 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24401 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24402 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24403 $as_echo_n "(cached) " >&6
24404 else
24405 gcc_cv_as_sparc_ua_pcrel_hidden=no
24406 if test x$gcc_cv_as != x; then
24407 $as_echo '.data
24408 .align 4
24409 .byte 0x31
24410 .uaword %r_disp32(foo)
24411 .byte 0x32, 0x33, 0x34
24412 .global foo
24413 .hidden foo
24414 foo:
24415 .skip 4' > conftest.s
24416 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24418 (eval $ac_try) 2>&5
24419 ac_status=$?
24420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24421 test $ac_status = 0; }; }
24422 then
24423 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24424 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24425 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24426 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24427 if $gcc_cv_objdump -R conftest 2> /dev/null \
24428 | grep 'DISP32' > /dev/null 2>&1; then
24430 else
24431 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24434 rm -f conftest
24435 else
24436 echo "configure: failed program was" >&5
24437 cat conftest.s >&5
24439 rm -f conftest.o conftest.s
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24443 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24444 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24446 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24450 fi # unaligned pcrel relocs
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24453 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24454 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24455 $as_echo_n "(cached) " >&6
24456 else
24457 gcc_cv_as_sparc_offsetable_lo10=no
24458 if test x$gcc_cv_as != x; then
24459 $as_echo '.text
24460 or %g1, %lo(ab) + 12, %g1
24461 or %g1, %lo(ab + 12), %g1' > conftest.s
24462 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24464 (eval $ac_try) 2>&5
24465 ac_status=$?
24466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24467 test $ac_status = 0; }; }
24468 then
24469 if test x$gcc_cv_objdump != x \
24470 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24471 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24472 gcc_cv_as_sparc_offsetable_lo10=yes
24474 else
24475 echo "configure: failed program was" >&5
24476 cat conftest.s >&5
24478 rm -f conftest.o conftest.s
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24482 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24483 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24485 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24490 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24491 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24492 $as_echo_n "(cached) " >&6
24493 else
24494 gcc_cv_as_sparc_fmaf=no
24495 if test x$gcc_cv_as != x; then
24496 $as_echo '.text
24497 .register %g2, #scratch
24498 .register %g3, #scratch
24499 .align 4
24500 fmaddd %f0, %f2, %f4, %f6
24501 addxccc %g1, %g2, %g3
24502 fsrl32 %f2, %f4, %f8
24503 fnaddd %f10, %f12, %f14' > conftest.s
24504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24506 (eval $ac_try) 2>&5
24507 ac_status=$?
24508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24509 test $ac_status = 0; }; }
24510 then
24511 gcc_cv_as_sparc_fmaf=yes
24512 else
24513 echo "configure: failed program was" >&5
24514 cat conftest.s >&5
24516 rm -f conftest.o conftest.s
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24520 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24521 if test $gcc_cv_as_sparc_fmaf = yes; then
24523 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24528 i[34567]86-*-* | x86_64-*-*)
24529 case $target_os in
24530 cygwin*)
24531 # Full C++ conformance when using a shared libstdc++-v3 requires some
24532 # support from the Cygwin DLL, which in more recent versions exports
24533 # wrappers to aid in interposing and redirecting operators new, delete,
24534 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24535 # are configuring for a version of Cygwin that exports the wrappers.
24536 if test x$host = x$target; then
24537 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24538 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24539 gcc_ac_cygwin_dll_wrappers=yes
24540 else
24541 gcc_ac_cygwin_dll_wrappers=no
24544 else
24545 # Can't check presence of libc functions during cross-compile, so
24546 # we just have to assume we're building for an up-to-date target.
24547 gcc_ac_cygwin_dll_wrappers=yes
24550 cat >>confdefs.h <<_ACEOF
24551 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24552 _ACEOF
24554 esac
24555 case $target_os in
24556 cygwin* | pe | mingw32* | interix*)
24557 # Recent binutils allows the three-operand form of ".comm" on PE. This
24558 # definition is used unconditionally to initialise the default state of
24559 # the target option variable that governs usage of the feature.
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24561 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24562 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24563 $as_echo_n "(cached) " >&6
24564 else
24565 gcc_cv_as_comm_has_align=no
24566 if test $in_tree_gas = yes; then
24567 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24568 then gcc_cv_as_comm_has_align=yes
24570 elif test x$gcc_cv_as != x; then
24571 $as_echo '.comm foo,1,32' > conftest.s
24572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24574 (eval $ac_try) 2>&5
24575 ac_status=$?
24576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24577 test $ac_status = 0; }; }
24578 then
24579 gcc_cv_as_comm_has_align=yes
24580 else
24581 echo "configure: failed program was" >&5
24582 cat conftest.s >&5
24584 rm -f conftest.o conftest.s
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24588 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24591 cat >>confdefs.h <<_ACEOF
24592 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24593 _ACEOF
24595 # Used for DWARF 2 in PE
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24597 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24598 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24600 else
24601 gcc_cv_as_ix86_pe_secrel32=no
24602 if test $in_tree_gas = yes; then
24603 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24604 then gcc_cv_as_ix86_pe_secrel32=yes
24606 elif test x$gcc_cv_as != x; then
24607 $as_echo '.text
24608 foo: nop
24609 .data
24610 .secrel32 foo' > conftest.s
24611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24613 (eval $ac_try) 2>&5
24614 ac_status=$?
24615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24616 test $ac_status = 0; }; }
24617 then
24618 if test x$gcc_cv_ld != x \
24619 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24620 gcc_cv_as_ix86_pe_secrel32=yes
24622 rm -f conftest
24623 else
24624 echo "configure: failed program was" >&5
24625 cat conftest.s >&5
24627 rm -f conftest.o conftest.s
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24631 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24632 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24634 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24637 # Test if the assembler supports the extended form of the .section
24638 # directive that specifies section alignment. LTO support uses this,
24639 # but normally only after installation, so we warn but don't fail the
24640 # configure if LTO is enabled but the assembler does not support it.
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24642 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24643 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24644 $as_echo_n "(cached) " >&6
24645 else
24646 gcc_cv_as_section_has_align=no
24647 if test $in_tree_gas = yes; then
24648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24649 then gcc_cv_as_section_has_align=yes
24651 elif test x$gcc_cv_as != x; then
24652 $as_echo '.section lto_test,"dr0"' > conftest.s
24653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24655 (eval $ac_try) 2>&5
24656 ac_status=$?
24657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24658 test $ac_status = 0; }; }
24659 then
24660 gcc_cv_as_section_has_align=yes
24661 else
24662 echo "configure: failed program was" >&5
24663 cat conftest.s >&5
24665 rm -f conftest.o conftest.s
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24669 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24671 if test x$gcc_cv_as_section_has_align != xyes; then
24672 case ",$enable_languages," in
24673 *,lto,*)
24674 { $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
24675 $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;}
24677 esac
24679 # Test if the assembler supports the section flag 'e' for specifying
24680 # an excluded section.
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24682 $as_echo_n "checking assembler for .section with e... " >&6; }
24683 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24684 $as_echo_n "(cached) " >&6
24685 else
24686 gcc_cv_as_section_has_e=no
24687 if test $in_tree_gas = yes; then
24688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24689 then gcc_cv_as_section_has_e=yes
24691 elif test x$gcc_cv_as != x; then
24692 $as_echo '.section foo1,"e"
24693 .byte 0,0,0,0' > conftest.s
24694 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24696 (eval $ac_try) 2>&5
24697 ac_status=$?
24698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24699 test $ac_status = 0; }; }
24700 then
24701 gcc_cv_as_section_has_e=yes
24702 else
24703 echo "configure: failed program was" >&5
24704 cat conftest.s >&5
24706 rm -f conftest.o conftest.s
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24710 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24713 cat >>confdefs.h <<_ACEOF
24714 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24715 _ACEOF
24718 esac
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24721 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24722 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24723 $as_echo_n "(cached) " >&6
24724 else
24725 gcc_cv_as_ix86_filds=no
24726 if test x$gcc_cv_as != x; then
24727 $as_echo 'filds mem; fists mem' > conftest.s
24728 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24730 (eval $ac_try) 2>&5
24731 ac_status=$?
24732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24733 test $ac_status = 0; }; }
24734 then
24735 gcc_cv_as_ix86_filds=yes
24736 else
24737 echo "configure: failed program was" >&5
24738 cat conftest.s >&5
24740 rm -f conftest.o conftest.s
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24744 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24745 if test $gcc_cv_as_ix86_filds = yes; then
24747 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24752 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24753 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24754 $as_echo_n "(cached) " >&6
24755 else
24756 gcc_cv_as_ix86_fildq=no
24757 if test x$gcc_cv_as != x; then
24758 $as_echo 'fildq mem; fistpq mem' > conftest.s
24759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24761 (eval $ac_try) 2>&5
24762 ac_status=$?
24763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24764 test $ac_status = 0; }; }
24765 then
24766 gcc_cv_as_ix86_fildq=yes
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_fildq" >&5
24775 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24776 if test $gcc_cv_as_ix86_fildq = yes; then
24778 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24783 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24784 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24785 $as_echo_n "(cached) " >&6
24786 else
24787 gcc_cv_as_ix86_cmov_sun_syntax=no
24788 if test x$gcc_cv_as != x; then
24789 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24792 (eval $ac_try) 2>&5
24793 ac_status=$?
24794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24795 test $ac_status = 0; }; }
24796 then
24797 gcc_cv_as_ix86_cmov_sun_syntax=yes
24798 else
24799 echo "configure: failed program was" >&5
24800 cat conftest.s >&5
24802 rm -f conftest.o conftest.s
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24806 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24807 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24809 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24814 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24815 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24816 $as_echo_n "(cached) " >&6
24817 else
24818 gcc_cv_as_ix86_ffreep=no
24819 if test x$gcc_cv_as != x; then
24820 $as_echo 'ffreep %st(1)' > conftest.s
24821 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24823 (eval $ac_try) 2>&5
24824 ac_status=$?
24825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24826 test $ac_status = 0; }; }
24827 then
24828 gcc_cv_as_ix86_ffreep=yes
24829 else
24830 echo "configure: failed program was" >&5
24831 cat conftest.s >&5
24833 rm -f conftest.o conftest.s
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24837 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24838 if test $gcc_cv_as_ix86_ffreep = yes; then
24840 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24845 $as_echo_n "checking assembler for .quad directive... " >&6; }
24846 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24847 $as_echo_n "(cached) " >&6
24848 else
24849 gcc_cv_as_ix86_quad=no
24850 if test x$gcc_cv_as != x; then
24851 $as_echo '.quad 0' > conftest.s
24852 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24854 (eval $ac_try) 2>&5
24855 ac_status=$?
24856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24857 test $ac_status = 0; }; }
24858 then
24859 gcc_cv_as_ix86_quad=yes
24860 else
24861 echo "configure: failed program was" >&5
24862 cat conftest.s >&5
24864 rm -f conftest.o conftest.s
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24868 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24869 if test $gcc_cv_as_ix86_quad = yes; then
24871 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24876 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24877 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24878 $as_echo_n "(cached) " >&6
24879 else
24880 gcc_cv_as_ix86_sahf=no
24881 if test x$gcc_cv_as != x; then
24882 $as_echo '.code64
24883 sahf' > conftest.s
24884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24886 (eval $ac_try) 2>&5
24887 ac_status=$?
24888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889 test $ac_status = 0; }; }
24890 then
24891 gcc_cv_as_ix86_sahf=yes
24892 else
24893 echo "configure: failed program was" >&5
24894 cat conftest.s >&5
24896 rm -f conftest.o conftest.s
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24900 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24901 if test $gcc_cv_as_ix86_sahf = yes; then
24903 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24908 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24909 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24910 $as_echo_n "(cached) " >&6
24911 else
24912 gcc_cv_as_ix86_hle=no
24913 if test x$gcc_cv_as != x; then
24914 $as_echo '.code64
24915 lock xacquire cmpxchg %esi, (%rcx)
24916 ' > 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_ix86_hle=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_ix86_hle" >&5
24933 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24934 if test $gcc_cv_as_ix86_hle = yes; then
24936 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24941 $as_echo_n "checking assembler for swap suffix... " >&6; }
24942 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24943 $as_echo_n "(cached) " >&6
24944 else
24945 gcc_cv_as_ix86_swap=no
24946 if test x$gcc_cv_as != x; then
24947 $as_echo 'movl.s %esp, %ebp' > conftest.s
24948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24950 (eval $ac_try) 2>&5
24951 ac_status=$?
24952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24953 test $ac_status = 0; }; }
24954 then
24955 gcc_cv_as_ix86_swap=yes
24956 else
24957 echo "configure: failed program was" >&5
24958 cat conftest.s >&5
24960 rm -f conftest.o conftest.s
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24964 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24965 if test $gcc_cv_as_ix86_swap = yes; then
24967 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24972 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24973 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24974 $as_echo_n "(cached) " >&6
24975 else
24976 gcc_cv_as_ix86_diff_sect_delta=no
24977 if test x$gcc_cv_as != x; then
24978 $as_echo '.section .rodata
24979 .L1:
24980 .long .L2-.L1
24981 .long .L3-.L1
24982 .text
24983 .L3: nop
24984 .L2: nop' > conftest.s
24985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24987 (eval $ac_try) 2>&5
24988 ac_status=$?
24989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24990 test $ac_status = 0; }; }
24991 then
24992 gcc_cv_as_ix86_diff_sect_delta=yes
24993 else
24994 echo "configure: failed program was" >&5
24995 cat conftest.s >&5
24997 rm -f conftest.o conftest.s
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25001 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25002 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25004 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25008 # These two are used unconditionally by i386.[ch]; it is to be defined
25009 # to 1 if the feature is present, 0 otherwise.
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25011 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25012 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25013 $as_echo_n "(cached) " >&6
25014 else
25015 gcc_cv_as_ix86_gotoff_in_data=no
25016 if test $in_tree_gas = yes; then
25017 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25018 then gcc_cv_as_ix86_gotoff_in_data=yes
25020 elif test x$gcc_cv_as != x; then
25021 $as_echo ' .text
25022 .L0:
25024 .data
25025 .long .L0@GOTOFF' > conftest.s
25026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25028 (eval $ac_try) 2>&5
25029 ac_status=$?
25030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25031 test $ac_status = 0; }; }
25032 then
25033 gcc_cv_as_ix86_gotoff_in_data=yes
25034 else
25035 echo "configure: failed program was" >&5
25036 cat conftest.s >&5
25038 rm -f conftest.o conftest.s
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25042 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25045 cat >>confdefs.h <<_ACEOF
25046 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25047 _ACEOF
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25051 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25052 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25053 $as_echo_n "(cached) " >&6
25054 else
25055 gcc_cv_as_ix86_rep_lock_prefix=no
25056 if test x$gcc_cv_as != x; then
25057 $as_echo 'rep movsl
25058 lock addl %edi, (%eax,%esi)
25059 lock orl $0, (%esp)' > conftest.s
25060 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25062 (eval $ac_try) 2>&5
25063 ac_status=$?
25064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25065 test $ac_status = 0; }; }
25066 then
25067 gcc_cv_as_ix86_rep_lock_prefix=yes
25068 else
25069 echo "configure: failed program was" >&5
25070 cat conftest.s >&5
25072 rm -f conftest.o conftest.s
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25076 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25077 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25079 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25084 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25085 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25086 $as_echo_n "(cached) " >&6
25087 else
25088 gcc_cv_as_ix86_tlsgdplt=no
25089 if test x$gcc_cv_as != x; then
25090 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25091 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25093 (eval $ac_try) 2>&5
25094 ac_status=$?
25095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25096 test $ac_status = 0; }; }
25097 then
25098 if test x$gcc_cv_ld != x \
25099 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25100 gcc_cv_as_ix86_tlsgdplt=yes
25102 rm -f conftest
25103 else
25104 echo "configure: failed program was" >&5
25105 cat conftest.s >&5
25107 rm -f conftest.o conftest.s
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25111 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25112 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25114 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25119 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25120 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25121 $as_echo_n "(cached) " >&6
25122 else
25123 gcc_cv_as_ix86_tlsldmplt=no
25124 if test x$gcc_cv_as != x; then
25125 $as_echo 'tls_ld:
25126 call tls_ld@tlsldmplt' > conftest.s
25127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25129 (eval $ac_try) 2>&5
25130 ac_status=$?
25131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25132 test $ac_status = 0; }; }
25133 then
25134 if test x$gcc_cv_ld != x \
25135 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25136 gcc_cv_as_ix86_tlsldmplt=yes
25138 rm -f conftest
25139 else
25140 echo "configure: failed program was" >&5
25141 cat conftest.s >&5
25143 rm -f conftest.o conftest.s
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25147 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25148 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25150 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25156 ia64*-*-*)
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25158 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25159 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25160 $as_echo_n "(cached) " >&6
25161 else
25162 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25163 if test $in_tree_gas = yes; then
25164 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25165 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25167 elif test x$gcc_cv_as != x; then
25168 $as_echo ' .text
25169 addl r15 = @ltoffx(x#), gp
25171 ld8.mov r16 = [r15], x#' > conftest.s
25172 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25174 (eval $ac_try) 2>&5
25175 ac_status=$?
25176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25177 test $ac_status = 0; }; }
25178 then
25179 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25180 else
25181 echo "configure: failed program was" >&5
25182 cat conftest.s >&5
25184 rm -f conftest.o conftest.s
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25188 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25189 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25191 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25197 powerpc*-*-*)
25198 case $target in
25199 *-*-aix*) conftest_s=' .machine "pwr5"
25200 .csect .text[PR]
25201 mfcr 3,128';;
25202 *-*-darwin*)
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25204 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25205 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25206 $as_echo_n "(cached) " >&6
25207 else
25208 gcc_cv_as_machine_directive=no
25209 if test x$gcc_cv_as != x; then
25210 $as_echo ' .machine ppc7400' > conftest.s
25211 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25213 (eval $ac_try) 2>&5
25214 ac_status=$?
25215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25216 test $ac_status = 0; }; }
25217 then
25218 gcc_cv_as_machine_directive=yes
25219 else
25220 echo "configure: failed program was" >&5
25221 cat conftest.s >&5
25223 rm -f conftest.o conftest.s
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25227 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25229 if test x$gcc_cv_as_machine_directive != xyes; then
25230 echo "*** This target requires an assembler supporting \".machine\"" >&2
25231 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25232 test x$build = x$target && exit 1
25234 conftest_s=' .text
25235 mfcr r3,128';;
25236 *) conftest_s=' .machine power4
25237 .text
25238 mfcr 3,128';;
25239 esac
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25242 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25243 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25244 $as_echo_n "(cached) " >&6
25245 else
25246 gcc_cv_as_powerpc_mfcrf=no
25247 if test $in_tree_gas = yes; then
25248 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25249 then gcc_cv_as_powerpc_mfcrf=yes
25251 elif test x$gcc_cv_as != x; then
25252 $as_echo "$conftest_s" > conftest.s
25253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25255 (eval $ac_try) 2>&5
25256 ac_status=$?
25257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25258 test $ac_status = 0; }; }
25259 then
25260 gcc_cv_as_powerpc_mfcrf=yes
25261 else
25262 echo "configure: failed program was" >&5
25263 cat conftest.s >&5
25265 rm -f conftest.o conftest.s
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25269 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25270 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25272 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25276 case $target in
25277 *-*-aix*) conftest_s=' .machine "pwr5"
25278 .csect .text[PR]
25279 popcntb 3,3';;
25280 *) conftest_s=' .machine power5
25281 .text
25282 popcntb 3,3';;
25283 esac
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25286 $as_echo_n "checking assembler for popcntb support... " >&6; }
25287 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25288 $as_echo_n "(cached) " >&6
25289 else
25290 gcc_cv_as_powerpc_popcntb=no
25291 if test $in_tree_gas = yes; then
25292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25293 then gcc_cv_as_powerpc_popcntb=yes
25295 elif test x$gcc_cv_as != x; then
25296 $as_echo "$conftest_s" > conftest.s
25297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25299 (eval $ac_try) 2>&5
25300 ac_status=$?
25301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25302 test $ac_status = 0; }; }
25303 then
25304 gcc_cv_as_powerpc_popcntb=yes
25305 else
25306 echo "configure: failed program was" >&5
25307 cat conftest.s >&5
25309 rm -f conftest.o conftest.s
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25313 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25314 if test $gcc_cv_as_powerpc_popcntb = yes; then
25316 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25320 case $target in
25321 *-*-aix*) conftest_s=' .machine "pwr5x"
25322 .csect .text[PR]
25323 frin 1,1';;
25324 *) conftest_s=' .machine power5
25325 .text
25326 frin 1,1';;
25327 esac
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25330 $as_echo_n "checking assembler for fp round support... " >&6; }
25331 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25332 $as_echo_n "(cached) " >&6
25333 else
25334 gcc_cv_as_powerpc_fprnd=no
25335 if test $in_tree_gas = yes; then
25336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25337 then gcc_cv_as_powerpc_fprnd=yes
25339 elif test x$gcc_cv_as != x; then
25340 $as_echo "$conftest_s" > conftest.s
25341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25343 (eval $ac_try) 2>&5
25344 ac_status=$?
25345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25346 test $ac_status = 0; }; }
25347 then
25348 gcc_cv_as_powerpc_fprnd=yes
25349 else
25350 echo "configure: failed program was" >&5
25351 cat conftest.s >&5
25353 rm -f conftest.o conftest.s
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25357 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25358 if test $gcc_cv_as_powerpc_fprnd = yes; then
25360 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25364 case $target in
25365 *-*-aix*) conftest_s=' .machine "pwr6"
25366 .csect .text[PR]
25367 mffgpr 1,3';;
25368 *) conftest_s=' .machine power6
25369 .text
25370 mffgpr 1,3';;
25371 esac
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25374 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25375 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25376 $as_echo_n "(cached) " >&6
25377 else
25378 gcc_cv_as_powerpc_mfpgpr=no
25379 if test $in_tree_gas = yes; then
25380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25381 then gcc_cv_as_powerpc_mfpgpr=yes
25383 elif test x$gcc_cv_as != x; then
25384 $as_echo "$conftest_s" > conftest.s
25385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25387 (eval $ac_try) 2>&5
25388 ac_status=$?
25389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25390 test $ac_status = 0; }; }
25391 then
25392 gcc_cv_as_powerpc_mfpgpr=yes
25393 else
25394 echo "configure: failed program was" >&5
25395 cat conftest.s >&5
25397 rm -f conftest.o conftest.s
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25401 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25402 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25404 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25408 case $target in
25409 *-*-aix*) conftest_s=' .csect .text[PR]
25410 LCF..0:
25411 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25412 *-*-darwin*)
25413 conftest_s=' .text
25414 LCF0:
25415 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25416 *) conftest_s=' .text
25417 .LCF0:
25418 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25419 esac
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25422 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25423 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25424 $as_echo_n "(cached) " >&6
25425 else
25426 gcc_cv_as_powerpc_rel16=no
25427 if test $in_tree_gas = yes; then
25428 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25429 then gcc_cv_as_powerpc_rel16=yes
25431 elif test x$gcc_cv_as != x; then
25432 $as_echo "$conftest_s" > conftest.s
25433 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25435 (eval $ac_try) 2>&5
25436 ac_status=$?
25437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25438 test $ac_status = 0; }; }
25439 then
25440 gcc_cv_as_powerpc_rel16=yes
25441 else
25442 echo "configure: failed program was" >&5
25443 cat conftest.s >&5
25445 rm -f conftest.o conftest.s
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25449 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25450 if test $gcc_cv_as_powerpc_rel16 = yes; then
25452 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25456 case $target in
25457 *-*-aix*) conftest_s=' .machine "pwr6"
25458 .csect .text[PR]
25459 cmpb 3,4,5';;
25460 *) conftest_s=' .machine power6
25461 .text
25462 cmpb 3,4,5';;
25463 esac
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25466 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25467 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25468 $as_echo_n "(cached) " >&6
25469 else
25470 gcc_cv_as_powerpc_cmpb=no
25471 if test $in_tree_gas = yes; then
25472 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25473 then gcc_cv_as_powerpc_cmpb=yes
25475 elif test x$gcc_cv_as != x; then
25476 $as_echo "$conftest_s" > conftest.s
25477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25479 (eval $ac_try) 2>&5
25480 ac_status=$?
25481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25482 test $ac_status = 0; }; }
25483 then
25484 gcc_cv_as_powerpc_cmpb=yes
25485 else
25486 echo "configure: failed program was" >&5
25487 cat conftest.s >&5
25489 rm -f conftest.o conftest.s
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25493 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25494 if test $gcc_cv_as_powerpc_cmpb = yes; then
25496 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25500 case $target in
25501 *-*-aix*) conftest_s=' .machine "pwr6"
25502 .csect .text[PR]
25503 dadd 1,2,3';;
25504 *) conftest_s=' .machine power6
25505 .text
25506 dadd 1,2,3';;
25507 esac
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25510 $as_echo_n "checking assembler for decimal float support... " >&6; }
25511 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25512 $as_echo_n "(cached) " >&6
25513 else
25514 gcc_cv_as_powerpc_dfp=no
25515 if test $in_tree_gas = yes; then
25516 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25517 then gcc_cv_as_powerpc_dfp=yes
25519 elif test x$gcc_cv_as != x; then
25520 $as_echo "$conftest_s" > conftest.s
25521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25523 (eval $ac_try) 2>&5
25524 ac_status=$?
25525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25526 test $ac_status = 0; }; }
25527 then
25528 gcc_cv_as_powerpc_dfp=yes
25529 else
25530 echo "configure: failed program was" >&5
25531 cat conftest.s >&5
25533 rm -f conftest.o conftest.s
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25537 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25538 if test $gcc_cv_as_powerpc_dfp = yes; then
25540 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25544 case $target in
25545 *-*-aix*) conftest_s=' .machine "pwr7"
25546 .csect .text[PR]
25547 lxvd2x 1,2,3';;
25548 *) conftest_s=' .machine power7
25549 .text
25550 lxvd2x 1,2,3';;
25551 esac
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25554 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25555 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25556 $as_echo_n "(cached) " >&6
25557 else
25558 gcc_cv_as_powerpc_vsx=no
25559 if test $in_tree_gas = yes; then
25560 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25561 then gcc_cv_as_powerpc_vsx=yes
25563 elif test x$gcc_cv_as != x; then
25564 $as_echo "$conftest_s" > conftest.s
25565 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25567 (eval $ac_try) 2>&5
25568 ac_status=$?
25569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25570 test $ac_status = 0; }; }
25571 then
25572 gcc_cv_as_powerpc_vsx=yes
25573 else
25574 echo "configure: failed program was" >&5
25575 cat conftest.s >&5
25577 rm -f conftest.o conftest.s
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25581 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25582 if test $gcc_cv_as_powerpc_vsx = yes; then
25584 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25588 case $target in
25589 *-*-aix*) conftest_s=' .machine "pwr7"
25590 .csect .text[PR]
25591 popcntd 3,3';;
25592 *) conftest_s=' .machine power7
25593 .text
25594 popcntd 3,3';;
25595 esac
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25598 $as_echo_n "checking assembler for popcntd support... " >&6; }
25599 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25600 $as_echo_n "(cached) " >&6
25601 else
25602 gcc_cv_as_powerpc_popcntd=no
25603 if test $in_tree_gas = yes; then
25604 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25605 then gcc_cv_as_powerpc_popcntd=yes
25607 elif test x$gcc_cv_as != x; then
25608 $as_echo "$conftest_s" > conftest.s
25609 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25611 (eval $ac_try) 2>&5
25612 ac_status=$?
25613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25614 test $ac_status = 0; }; }
25615 then
25616 gcc_cv_as_powerpc_popcntd=yes
25617 else
25618 echo "configure: failed program was" >&5
25619 cat conftest.s >&5
25621 rm -f conftest.o conftest.s
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25625 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25626 if test $gcc_cv_as_powerpc_popcntd = yes; then
25628 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25632 case $target in
25633 *-*-aix*) conftest_s=' .csect .text[PR]
25634 lwsync';;
25635 *) conftest_s=' .text
25636 lwsync';;
25637 esac
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25640 $as_echo_n "checking assembler for lwsync support... " >&6; }
25641 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25642 $as_echo_n "(cached) " >&6
25643 else
25644 gcc_cv_as_powerpc_lwsync=no
25645 if test $in_tree_gas = yes; then
25646 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25647 then gcc_cv_as_powerpc_lwsync=yes
25649 elif test x$gcc_cv_as != x; then
25650 $as_echo "$conftest_s" > conftest.s
25651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25653 (eval $ac_try) 2>&5
25654 ac_status=$?
25655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25656 test $ac_status = 0; }; }
25657 then
25658 gcc_cv_as_powerpc_lwsync=yes
25659 else
25660 echo "configure: failed program was" >&5
25661 cat conftest.s >&5
25663 rm -f conftest.o conftest.s
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25667 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25668 if test $gcc_cv_as_powerpc_lwsync = yes; then
25670 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25674 case $target in
25675 *-*-aix*) conftest_s=' .machine "476"
25676 .csect .text[PR]
25677 dci 0';;
25678 *) conftest_s=' .machine "476"
25679 .text
25680 dci 0';;
25681 esac
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25684 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25685 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25686 $as_echo_n "(cached) " >&6
25687 else
25688 gcc_cv_as_powerpc_dci=no
25689 if test $in_tree_gas = yes; then
25690 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25691 then gcc_cv_as_powerpc_dci=yes
25693 elif test x$gcc_cv_as != x; then
25694 $as_echo "$conftest_s" > conftest.s
25695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25697 (eval $ac_try) 2>&5
25698 ac_status=$?
25699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25700 test $ac_status = 0; }; }
25701 then
25702 gcc_cv_as_powerpc_dci=yes
25703 else
25704 echo "configure: failed program was" >&5
25705 cat conftest.s >&5
25707 rm -f conftest.o conftest.s
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25711 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25712 if test $gcc_cv_as_powerpc_dci = yes; then
25714 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25719 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25720 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25721 $as_echo_n "(cached) " >&6
25722 else
25723 gcc_cv_as_powerpc_gnu_attribute=no
25724 if test $in_tree_gas = yes; then
25725 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25726 then gcc_cv_as_powerpc_gnu_attribute=yes
25728 elif test x$gcc_cv_as != x; then
25729 $as_echo '.gnu_attribute 4,1' > conftest.s
25730 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25732 (eval $ac_try) 2>&5
25733 ac_status=$?
25734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25735 test $ac_status = 0; }; }
25736 then
25737 gcc_cv_as_powerpc_gnu_attribute=yes
25738 else
25739 echo "configure: failed program was" >&5
25740 cat conftest.s >&5
25742 rm -f conftest.o conftest.s
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25746 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25747 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25749 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25754 $as_echo_n "checking assembler for tls marker support... " >&6; }
25755 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25756 $as_echo_n "(cached) " >&6
25757 else
25758 gcc_cv_as_powerpc_tls_markers=no
25759 if test $in_tree_gas = yes; then
25760 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25761 then gcc_cv_as_powerpc_tls_markers=yes
25763 elif test x$gcc_cv_as != x; then
25764 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25767 (eval $ac_try) 2>&5
25768 ac_status=$?
25769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25770 test $ac_status = 0; }; }
25771 then
25772 gcc_cv_as_powerpc_tls_markers=yes
25773 else
25774 echo "configure: failed program was" >&5
25775 cat conftest.s >&5
25777 rm -f conftest.o conftest.s
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25781 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25782 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25784 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25788 case $target in
25789 *-*-aix*)
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25791 $as_echo_n "checking assembler for .ref support... " >&6; }
25792 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25793 $as_echo_n "(cached) " >&6
25794 else
25795 gcc_cv_as_aix_ref=no
25796 if test $in_tree_gas = yes; then
25797 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25798 then :
25800 elif test x$gcc_cv_as != x; then
25801 $as_echo ' .csect stuff[rw]
25802 stuff:
25803 .long 1
25804 .extern sym
25805 .ref sym
25806 ' > conftest.s
25807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25809 (eval $ac_try) 2>&5
25810 ac_status=$?
25811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25812 test $ac_status = 0; }; }
25813 then
25814 gcc_cv_as_aix_ref=yes
25815 else
25816 echo "configure: failed program was" >&5
25817 cat conftest.s >&5
25819 rm -f conftest.o conftest.s
25822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25823 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25824 if test $gcc_cv_as_aix_ref = yes; then
25826 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25830 esac
25833 mips*-*-*)
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25835 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25836 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25837 $as_echo_n "(cached) " >&6
25838 else
25839 gcc_cv_as_mips_explicit_relocs=no
25840 if test $in_tree_gas = yes; then
25841 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25842 then gcc_cv_as_mips_explicit_relocs=yes
25844 elif test x$gcc_cv_as != x; then
25845 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25846 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25848 (eval $ac_try) 2>&5
25849 ac_status=$?
25850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25851 test $ac_status = 0; }; }
25852 then
25853 gcc_cv_as_mips_explicit_relocs=yes
25854 else
25855 echo "configure: failed program was" >&5
25856 cat conftest.s >&5
25858 rm -f conftest.o conftest.s
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25862 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25863 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25864 if test x$target_cpu_default = x
25865 then target_cpu_default=MASK_EXPLICIT_RELOCS
25866 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25870 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25871 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25872 $as_echo_n "(cached) " >&6
25873 else
25874 gcc_cv_as_mips_no_shared=no
25875 if test $in_tree_gas = yes; then
25876 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25877 then gcc_cv_as_mips_no_shared=yes
25879 elif test x$gcc_cv_as != x; then
25880 $as_echo 'nop' > conftest.s
25881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25883 (eval $ac_try) 2>&5
25884 ac_status=$?
25885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25886 test $ac_status = 0; }; }
25887 then
25888 gcc_cv_as_mips_no_shared=yes
25889 else
25890 echo "configure: failed program was" >&5
25891 cat conftest.s >&5
25893 rm -f conftest.o conftest.s
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25897 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25898 if test $gcc_cv_as_mips_no_shared = yes; then
25900 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25905 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25906 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25907 $as_echo_n "(cached) " >&6
25908 else
25909 gcc_cv_as_mips_gnu_attribute=no
25910 if test $in_tree_gas = yes; then
25911 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25912 then gcc_cv_as_mips_gnu_attribute=yes
25914 elif test x$gcc_cv_as != x; then
25915 $as_echo '.gnu_attribute 4,1' > conftest.s
25916 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25918 (eval $ac_try) 2>&5
25919 ac_status=$?
25920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25921 test $ac_status = 0; }; }
25922 then
25923 gcc_cv_as_mips_gnu_attribute=yes
25924 else
25925 echo "configure: failed program was" >&5
25926 cat conftest.s >&5
25928 rm -f conftest.o conftest.s
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25932 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25933 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25935 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25940 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25941 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25942 $as_echo_n "(cached) " >&6
25943 else
25944 gcc_cv_as_mips_dtprelword=no
25945 if test $in_tree_gas = yes; then
25946 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25947 then gcc_cv_as_mips_dtprelword=yes
25949 elif test x$gcc_cv_as != x; then
25950 $as_echo '.section .tdata,"awT",@progbits
25952 .word 2
25953 .text
25954 .dtprelword x+0x8000' > conftest.s
25955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25957 (eval $ac_try) 2>&5
25958 ac_status=$?
25959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25960 test $ac_status = 0; }; }
25961 then
25962 gcc_cv_as_mips_dtprelword=yes
25963 else
25964 echo "configure: failed program was" >&5
25965 cat conftest.s >&5
25967 rm -f conftest.o conftest.s
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25971 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25972 if test $gcc_cv_as_mips_dtprelword = yes; then
25974 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25979 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25980 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25981 $as_echo_n "(cached) " >&6
25982 else
25983 gcc_cv_as_mips_dspr1_mult=no
25984 if test x$gcc_cv_as != x; then
25985 $as_echo ' .set mips32r2
25986 .set nodspr2
25987 .set dsp
25988 madd $ac3,$4,$5
25989 maddu $ac3,$4,$5
25990 msub $ac3,$4,$5
25991 msubu $ac3,$4,$5
25992 mult $ac3,$4,$5
25993 multu $ac3,$4,$5' > conftest.s
25994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25996 (eval $ac_try) 2>&5
25997 ac_status=$?
25998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25999 test $ac_status = 0; }; }
26000 then
26001 gcc_cv_as_mips_dspr1_mult=yes
26002 else
26003 echo "configure: failed program was" >&5
26004 cat conftest.s >&5
26006 rm -f conftest.o conftest.s
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26010 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26011 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26013 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26018 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26019 gcc_cv_as_ld_jalr_reloc=no
26020 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26021 if test $in_tree_ld = yes ; then
26022 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 \
26023 && test $in_tree_ld_is_elf = yes; then
26024 gcc_cv_as_ld_jalr_reloc=yes
26026 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26027 echo ' .ent x' > conftest.s
26028 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26029 echo ' ld $25,%call16(y)($28)' >> conftest.s
26030 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26031 echo '1: jalr $25' >> conftest.s
26032 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26033 echo '1: jalr $25' >> conftest.s
26034 echo ' .end x' >> conftest.s
26035 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26036 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26037 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26038 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26039 gcc_cv_as_ld_jalr_reloc=yes
26042 rm -f conftest.*
26045 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26046 if test x$target_cpu_default = x; then
26047 target_cpu_default=MASK_RELAX_PIC_CALLS
26048 else
26049 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26053 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26056 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26057 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26058 $as_echo_n "(cached) " >&6
26059 else
26060 gcc_cv_ld_mips_personality_relaxation=no
26061 if test $in_tree_ld = yes ; then
26062 if test "$gcc_cv_gld_major_version" -eq 2 \
26063 -a "$gcc_cv_gld_minor_version" -ge 21 \
26064 -o "$gcc_cv_gld_major_version" -gt 2; then
26065 gcc_cv_ld_mips_personality_relaxation=yes
26067 elif test x$gcc_cv_as != x \
26068 -a x$gcc_cv_ld != x \
26069 -a x$gcc_cv_readelf != x ; then
26070 cat > conftest.s <<EOF
26071 .cfi_startproc
26072 .cfi_personality 0x80,indirect_ptr
26073 .ent test
26074 test:
26076 .end test
26077 .cfi_endproc
26079 .section .data,"aw",@progbits
26080 indirect_ptr:
26081 .dc.a personality
26083 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26084 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26085 if $gcc_cv_readelf -d conftest 2>&1 \
26086 | grep TEXTREL > /dev/null 2>&1; then
26088 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26089 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26091 else
26092 gcc_cv_ld_mips_personality_relaxation=yes
26096 rm -f conftest.s conftest.o conftest
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26099 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26100 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26102 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26106 esac
26108 # Mips and HP-UX need the GNU assembler.
26109 # Linux on IA64 might be able to use the Intel assembler.
26111 case "$target" in
26112 mips*-*-* | *-*-hpux* )
26113 if test x$gas_flag = xyes \
26114 || test x"$host" != x"$build" \
26115 || test ! -x "$gcc_cv_as" \
26116 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26118 else
26119 echo "*** This configuration requires the GNU assembler" >&2
26120 exit 1
26123 esac
26125 # ??? Not all targets support dwarf2 debug_line, even within a version
26126 # of gas. Moreover, we need to emit a valid instruction to trigger any
26127 # info to the output file. So, as supported targets are added to gas 2.11,
26128 # add some instruction here to (also) show we expect this might work.
26129 # ??? Once 2.11 is released, probably need to add first known working
26130 # version to the per-target configury.
26131 case "$cpu_type" in
26132 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
26133 | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 | xtensa)
26134 insn="nop"
26136 ia64 | s390)
26137 insn="nop 0"
26139 mmix)
26140 insn="swym 0"
26142 esac
26143 if test x"$insn" != x; then
26144 conftest_s="\
26145 .file 1 \"conftest.s\"
26146 .loc 1 3 0
26147 $insn"
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26149 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26150 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26151 $as_echo_n "(cached) " >&6
26152 else
26153 gcc_cv_as_dwarf2_debug_line=no
26154 if test $in_tree_gas = yes; then
26155 if test $in_tree_gas_is_elf = yes \
26156 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26157 then gcc_cv_as_dwarf2_debug_line=yes
26159 elif test x$gcc_cv_as != x; then
26160 $as_echo "$conftest_s" > conftest.s
26161 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26163 (eval $ac_try) 2>&5
26164 ac_status=$?
26165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26166 test $ac_status = 0; }; }
26167 then
26168 if test x$gcc_cv_objdump != x \
26169 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26170 | grep debug_line > /dev/null 2>&1; then
26171 gcc_cv_as_dwarf2_debug_line=yes
26173 else
26174 echo "configure: failed program was" >&5
26175 cat conftest.s >&5
26177 rm -f conftest.o conftest.s
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26181 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26184 # The .debug_line file table must be in the exact order that
26185 # we specified the files, since these indices are also used
26186 # by DW_AT_decl_file. Approximate this test by testing if
26187 # the assembler bitches if the same index is assigned twice.
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26189 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26190 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26191 $as_echo_n "(cached) " >&6
26192 else
26193 gcc_cv_as_dwarf2_file_buggy=no
26194 if test x$gcc_cv_as != x; then
26195 $as_echo ' .file 1 "foo.s"
26196 .file 1 "bar.s"' > conftest.s
26197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26199 (eval $ac_try) 2>&5
26200 ac_status=$?
26201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26202 test $ac_status = 0; }; }
26203 then
26204 gcc_cv_as_dwarf2_file_buggy=yes
26205 else
26206 echo "configure: failed program was" >&5
26207 cat conftest.s >&5
26209 rm -f conftest.o conftest.s
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26213 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26216 if test $gcc_cv_as_dwarf2_debug_line = yes \
26217 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26219 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26224 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26225 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26226 $as_echo_n "(cached) " >&6
26227 else
26228 gcc_cv_as_gdwarf2_flag=no
26229 if test $in_tree_gas = yes; then
26230 if test $in_tree_gas_is_elf = yes \
26231 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26232 then gcc_cv_as_gdwarf2_flag=yes
26234 elif test x$gcc_cv_as != x; then
26235 $as_echo "$insn" > conftest.s
26236 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26238 (eval $ac_try) 2>&5
26239 ac_status=$?
26240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26241 test $ac_status = 0; }; }
26242 then
26243 gcc_cv_as_gdwarf2_flag=yes
26244 else
26245 echo "configure: failed program was" >&5
26246 cat conftest.s >&5
26248 rm -f conftest.o conftest.s
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26252 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26253 if test $gcc_cv_as_gdwarf2_flag = yes; then
26255 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26260 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26261 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26262 $as_echo_n "(cached) " >&6
26263 else
26264 gcc_cv_as_gstabs_flag=no
26265 if test $in_tree_gas = yes; then
26266 if test $in_tree_gas_is_elf = yes \
26267 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26268 then gcc_cv_as_gstabs_flag=yes
26270 elif test x$gcc_cv_as != x; then
26271 $as_echo "$insn" > conftest.s
26272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26274 (eval $ac_try) 2>&5
26275 ac_status=$?
26276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26277 test $ac_status = 0; }; }
26278 then
26279 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26280 # and warns about it, but still exits successfully. So check for
26281 # this.
26282 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26284 (eval $ac_try) 2>&5
26285 ac_status=$?
26286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26287 test $ac_status = 0; }; }
26288 then :
26289 else gcc_cv_as_gstabs_flag=yes
26291 else
26292 echo "configure: failed program was" >&5
26293 cat conftest.s >&5
26295 rm -f conftest.o conftest.s
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26299 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26300 if test $gcc_cv_as_gstabs_flag = yes; then
26302 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26307 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26308 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26309 $as_echo_n "(cached) " >&6
26310 else
26311 gcc_cv_as_debug_prefix_map_flag=no
26312 if test $in_tree_gas = yes; then
26313 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26314 then gcc_cv_as_debug_prefix_map_flag=yes
26316 elif test x$gcc_cv_as != x; then
26317 $as_echo "$insn" > conftest.s
26318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26320 (eval $ac_try) 2>&5
26321 ac_status=$?
26322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26323 test $ac_status = 0; }; }
26324 then
26325 gcc_cv_as_debug_prefix_map_flag=yes
26326 else
26327 echo "configure: failed program was" >&5
26328 cat conftest.s >&5
26330 rm -f conftest.o conftest.s
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26334 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26335 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26337 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26343 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26344 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26345 $as_echo_n "(cached) " >&6
26346 else
26347 gcc_cv_as_lcomm_with_alignment=no
26348 if test x$gcc_cv_as != x; then
26349 $as_echo '.lcomm bar,4,16' > conftest.s
26350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26352 (eval $ac_try) 2>&5
26353 ac_status=$?
26354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26355 test $ac_status = 0; }; }
26356 then
26357 gcc_cv_as_lcomm_with_alignment=yes
26358 else
26359 echo "configure: failed program was" >&5
26360 cat conftest.s >&5
26362 rm -f conftest.o conftest.s
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26366 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26367 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26369 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26373 # Check whether --enable-gnu-unique-object was given.
26374 if test "${enable_gnu_unique_object+set}" = set; then :
26375 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26376 yes | no) ;;
26377 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26378 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26379 esac
26380 else
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26382 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26383 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26384 $as_echo_n "(cached) " >&6
26385 else
26386 gcc_cv_as_gnu_unique_object=no
26387 if test $in_tree_gas = yes; then
26388 if test $in_tree_gas_is_elf = yes \
26389 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26390 then gcc_cv_as_gnu_unique_object=yes
26392 elif test x$gcc_cv_as != x; then
26393 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26396 (eval $ac_try) 2>&5
26397 ac_status=$?
26398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26399 test $ac_status = 0; }; }
26400 then
26401 gcc_cv_as_gnu_unique_object=yes
26402 else
26403 echo "configure: failed program was" >&5
26404 cat conftest.s >&5
26406 rm -f conftest.o conftest.s
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26410 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26411 if test $gcc_cv_as_gnu_unique_object = yes; then
26412 # We need to unquote above to to use the definition from config.gcc.
26413 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26414 if test x$host = x$build -a x$host = x$target &&
26415 ldd --version 2>/dev/null &&
26416 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26417 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26418 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26419 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26420 if test "$glibcnum" -ge 2011 ; then
26421 enable_gnu_unique_object=yes
26427 if test x$enable_gnu_unique_object = xyes; then
26429 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26434 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26435 if test "${gcc_cv_as_line_zero+set}" = set; then :
26436 $as_echo_n "(cached) " >&6
26437 else
26438 gcc_cv_as_line_zero=no
26439 if test $in_tree_gas = yes; then
26440 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26441 then gcc_cv_as_line_zero=yes
26443 elif test "x$gcc_cv_as" != x; then
26444 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26445 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26447 (eval $ac_try) 2>&5
26448 ac_status=$?
26449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26450 test $ac_status = 0; }; } &&
26451 test "x`cat conftest.out`" = x
26452 then
26453 gcc_cv_as_line_zero=yes
26454 else
26455 echo "configure: failed program was" >&5
26456 cat conftest.s >&5
26457 echo "configure: error output was" >&5
26458 cat conftest.out >&5
26460 rm -f conftest.o conftest.s conftest.out
26463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26464 $as_echo "$gcc_cv_as_line_zero" >&6; }
26465 if test "x$gcc_cv_as_line_zero" = xyes; then
26467 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26472 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26473 gcc_cv_ld_eh_frame_hdr=no
26474 if test $in_tree_ld = yes ; then
26475 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 \
26476 && test $in_tree_ld_is_elf = yes; then
26477 gcc_cv_ld_eh_frame_hdr=yes
26479 elif test x$gcc_cv_ld != x; then
26480 if echo "$ld_ver" | grep GNU > /dev/null; then
26481 # Check if linker supports --eh-frame-hdr option
26482 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26483 gcc_cv_ld_eh_frame_hdr=yes
26485 else
26486 case "$target" in
26487 *-*-solaris2*)
26488 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26489 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26490 gcc_cv_ld_eh_frame_hdr=yes
26493 esac
26497 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26499 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26503 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26506 $as_echo_n "checking linker position independent executable support... " >&6; }
26507 gcc_cv_ld_pie=no
26508 if test $in_tree_ld = yes ; then
26509 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 \
26510 && test $in_tree_ld_is_elf = yes; then
26511 gcc_cv_ld_pie=yes
26513 elif test x$gcc_cv_ld != x; then
26514 # Check if linker supports -pie option
26515 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26516 gcc_cv_ld_pie=yes
26519 if test x"$gcc_cv_ld_pie" = xyes; then
26521 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26525 $as_echo "$gcc_cv_ld_pie" >&6; }
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26528 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26529 gcc_cv_ld_eh_gc_sections=no
26530 if test $in_tree_ld = yes ; then
26531 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 \
26532 && test $in_tree_ld_is_elf = yes; then
26533 gcc_cv_ld_eh_gc_sections=yes
26535 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26536 cat > conftest.s <<EOF
26537 .section .text
26538 .globl _start
26539 .type _start, @function
26540 _start:
26541 .long foo
26542 .size _start, .-_start
26543 .section .text.foo,"ax",@progbits
26544 .type foo, @function
26545 foo:
26546 .long 0
26547 .size foo, .-foo
26548 .section .gcc_except_table.foo,"a",@progbits
26549 .L0:
26550 .long 0
26551 .section .eh_frame,"a",@progbits
26552 .long .L0
26554 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26555 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26556 | grep "gc-sections option ignored" > /dev/null; then
26557 gcc_cv_ld_eh_gc_sections=no
26558 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26559 | grep gcc_except_table > /dev/null; then
26560 gcc_cv_ld_eh_gc_sections=yes
26561 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26562 if test x$gcc_cv_as_comdat_group != xyes; then
26563 gcc_cv_ld_eh_gc_sections=no
26564 cat > conftest.s <<EOF
26565 .section .text
26566 .globl _start
26567 .type _start, @function
26568 _start:
26569 .long foo
26570 .size _start, .-_start
26571 .section .gnu.linkonce.t.foo,"ax",@progbits
26572 .type foo, @function
26573 foo:
26574 .long 0
26575 .size foo, .-foo
26576 .section .gcc_except_table.foo,"a",@progbits
26577 .L0:
26578 .long 0
26579 .section .eh_frame,"a",@progbits
26580 .long .L0
26582 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26583 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26584 | grep "gc-sections option ignored" > /dev/null; then
26585 gcc_cv_ld_eh_gc_sections=no
26586 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26587 | grep gcc_except_table > /dev/null; then
26588 gcc_cv_ld_eh_gc_sections=yes
26594 rm -f conftest.s conftest.o conftest
26596 case "$target" in
26597 hppa*-*-linux*)
26598 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26599 gcc_cv_ld_eh_gc_sections=no
26601 esac
26602 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26604 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26608 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26611 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26612 gcc_cv_ld_eh_gc_sections_bug=no
26613 if test $in_tree_ld = yes ; then
26614 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 \
26615 && test $in_tree_ld_is_elf = yes; then
26616 gcc_cv_ld_eh_gc_sections_bug=yes
26618 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
26619 gcc_cv_ld_eh_gc_sections_bug=yes
26620 cat > conftest.s <<EOF
26621 .section .text
26622 .globl _start
26623 .type _start, @function
26624 _start:
26625 .long foo
26626 .size _start, .-_start
26627 .section .text.startup.foo,"ax",@progbits
26628 .type foo, @function
26629 foo:
26630 .long 0
26631 .size foo, .-foo
26632 .section .gcc_except_table.foo,"a",@progbits
26633 .L0:
26634 .long 0
26635 .section .eh_frame,"a",@progbits
26636 .long .L0
26638 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26639 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26640 | grep "gc-sections option ignored" > /dev/null; then
26642 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26643 | grep gcc_except_table > /dev/null; then
26644 gcc_cv_ld_eh_gc_sections_bug=no
26647 rm -f conftest.s conftest.o conftest
26649 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26651 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26655 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26657 # --------
26658 # UNSORTED
26659 # --------
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26662 $as_echo_n "checking linker --as-needed support... " >&6; }
26663 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26664 $as_echo_n "(cached) " >&6
26665 else
26666 gcc_cv_ld_as_needed=no
26667 if test $in_tree_ld = yes ; then
26668 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 \
26669 && test $in_tree_ld_is_elf = yes; then
26670 gcc_cv_ld_as_needed=yes
26672 elif test x$gcc_cv_ld != x; then
26673 # Check if linker supports --as-needed and --no-as-needed options
26674 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26675 gcc_cv_ld_as_needed=yes
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26681 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26682 if test x"$gcc_cv_ld_as_needed" = xyes; then
26684 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26688 case "$target:$tm_file" in
26689 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26690 case "$target" in
26691 *-*-linux*)
26692 emul_name="-melf64ppc"
26694 *-*-freebsd*)
26695 emul_name="-melf64ppc_fbsd"
26697 esac
26698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26699 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26700 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26701 $as_echo_n "(cached) " >&6
26702 else
26703 gcc_cv_ld_no_dot_syms=no
26704 if test $in_tree_ld = yes ; then
26705 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
26706 gcc_cv_ld_no_dot_syms=yes
26708 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26709 cat > conftest1.s <<EOF
26710 .text
26711 bl .foo
26713 cat > conftest2.s <<EOF
26714 .section ".opd","aw"
26715 .align 3
26716 .globl foo
26717 .type foo,@function
26718 foo:
26719 .quad .LEfoo,.TOC.@tocbase,0
26720 .text
26721 .LEfoo:
26723 .size foo,.-.LEfoo
26725 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26726 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26727 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26728 gcc_cv_ld_no_dot_syms=yes
26730 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26735 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26736 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26738 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26743 $as_echo_n "checking linker large toc support... " >&6; }
26744 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26745 $as_echo_n "(cached) " >&6
26746 else
26747 gcc_cv_ld_large_toc=no
26748 if test $in_tree_ld = yes ; then
26749 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
26750 gcc_cv_ld_large_toc=yes
26752 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26753 cat > conftest.s <<EOF
26754 .section ".tbss","awT",@nobits
26755 .align 3
26756 ie0: .space 8
26757 .global _start
26758 .text
26759 _start:
26760 addis 9,13,ie0@got@tprel@ha
26761 ld 9,ie0@got@tprel@l(9)
26763 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26764 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26765 gcc_cv_ld_large_toc=yes
26767 rm -f conftest conftest.o conftest.s
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26772 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26773 if test x"$gcc_cv_ld_large_toc" = xyes; then
26775 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26779 esac
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26782 $as_echo_n "checking linker --build-id support... " >&6; }
26783 if test "${gcc_cv_ld_buildid+set}" = set; then :
26784 $as_echo_n "(cached) " >&6
26785 else
26786 gcc_cv_ld_buildid=no
26787 if test $in_tree_ld = yes ; then
26788 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26789 "$gcc_cv_gld_minor_version" -ge 18 -o \
26790 "$gcc_cv_gld_major_version" -gt 2 \
26791 && test $in_tree_ld_is_elf = yes; then
26792 gcc_cv_ld_buildid=yes
26794 elif test x$gcc_cv_ld != x; then
26795 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26796 gcc_cv_ld_buildid=yes
26800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26801 $as_echo "$gcc_cv_ld_buildid" >&6; }
26802 if test x"$gcc_cv_ld_buildid" = xyes; then
26804 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26808 # Check whether --enable-linker-build-id was given.
26809 if test "${enable_linker_build_id+set}" = set; then :
26810 enableval=$enable_linker_build_id;
26811 else
26812 enable_linker_build_id=no
26816 if test x"$enable_linker_build_id" = xyes; then
26817 if test x"$gcc_cv_ld_buildid" = xyes; then
26819 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26821 else
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26823 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26827 # In binutils 2.21, GNU ld gained support for new emulations fully
26828 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26830 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26831 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26832 $as_echo_n "(cached) " >&6
26833 else
26834 gcc_cv_ld_sol2_emulation=no
26835 if test $in_tree_ld = yes ; then
26836 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26837 "$gcc_cv_gld_minor_version" -ge 21 -o \
26838 "$gcc_cv_gld_major_version" -gt 2 \
26839 && test $in_tree_ld_is_elf = yes; then
26840 gcc_cv_ld_sol2_emulation=yes
26842 elif test x$gcc_cv_ld != x; then
26843 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26844 grep _sol2 > /dev/null; then
26845 gcc_cv_ld_sol2_emulation=yes
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26850 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26851 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26853 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26858 $as_echo_n "checking linker --sysroot support... " >&6; }
26859 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26860 $as_echo_n "(cached) " >&6
26861 else
26862 gcc_cv_ld_sysroot=no
26863 if test $in_tree_ld = yes ; then
26864 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
26865 gcc_cv_ld_sysroot=yes
26867 elif test x$gcc_cv_ld != x; then
26868 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26869 gcc_cv_ld_sysroot=yes
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26874 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26875 if test x"$gcc_cv_ld_sysroot" = xyes; then
26877 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26881 if test x$with_sysroot = x && test x$host = x$target \
26882 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26883 && test "$prefix" != "NONE"; then
26885 cat >>confdefs.h <<_ACEOF
26886 #define PREFIX_INCLUDE_DIR "$prefix/include"
26887 _ACEOF
26891 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26892 if test "x$with_headers" != x; then
26893 target_header_dir=$with_headers
26894 elif test "x$with_sysroot" = x; then
26895 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26896 elif test "x$with_build_sysroot" != "x"; then
26897 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26898 elif test "x$with_sysroot" = xyes; then
26899 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26900 else
26901 target_header_dir="${with_sysroot}${native_system_header_dir}"
26903 else
26904 target_header_dir=${native_system_header_dir}
26907 # Test for stack protector support in target C library.
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26909 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26910 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26911 $as_echo_n "(cached) " >&6
26912 else
26913 gcc_cv_libc_provides_ssp=no
26914 case "$target" in
26915 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26916 # glibc 2.4 and later provides __stack_chk_fail and
26917 # either __stack_chk_guard, or TLS access to stack guard canary.
26918 if test -f $target_header_dir/features.h \
26919 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26920 $target_header_dir/features.h > /dev/null; then
26921 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26922 $target_header_dir/features.h > /dev/null; then
26923 gcc_cv_libc_provides_ssp=yes
26924 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26925 $target_header_dir/features.h > /dev/null \
26926 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26927 $target_header_dir/features.h > /dev/null; then
26928 gcc_cv_libc_provides_ssp=yes
26929 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26930 $target_header_dir/features.h > /dev/null && \
26931 test -f $target_header_dir/bits/uClibc_config.h && \
26932 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26933 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26934 gcc_cv_libc_provides_ssp=yes
26936 # all versions of Bionic support stack protector
26937 elif test -f $target_header_dir/sys/cdefs.h \
26938 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26939 $target_header_dir/sys/cdefs.h > /dev/null; then
26940 gcc_cv_libc_provides_ssp=yes
26943 *-*-gnu*)
26944 # Avoid complicated tests (see
26945 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26946 # simply assert that glibc does provide this, which is true for all
26947 # realistically usable GNU/Hurd configurations.
26948 gcc_cv_libc_provides_ssp=yes;;
26949 *-*-darwin* | *-*-freebsd*)
26950 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26951 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26952 gcc_cv_libc_provides_ssp=yes
26953 else
26954 echo "no __stack_chk_fail on this target"
26958 *) gcc_cv_libc_provides_ssp=no ;;
26959 esac
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26962 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26964 if test x$gcc_cv_libc_provides_ssp = xyes; then
26966 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26970 # Test for <sys/sdt.h> on the target.
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26973 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26974 have_sys_sdt_h=no
26975 if test -f $target_header_dir/sys/sdt.h; then
26976 have_sys_sdt_h=yes
26978 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26982 $as_echo "$have_sys_sdt_h" >&6; }
26984 # Check if TFmode long double should be used by default or not.
26985 # Some glibc targets used DFmode long double, but with glibc 2.4
26986 # and later they can use TFmode.
26987 case "$target" in
26988 powerpc*-*-linux* | \
26989 sparc*-*-linux* | \
26990 s390*-*-linux* | \
26991 alpha*-*-linux*)
26993 # Check whether --with-long-double-128 was given.
26994 if test "${with_long_double_128+set}" = set; then :
26995 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26996 else
26997 gcc_cv_target_ldbl128=no
26998 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26999 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27000 && gcc_cv_target_ldbl128=yes
27005 esac
27006 if test x$gcc_cv_target_ldbl128 = xyes; then
27008 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27013 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27014 gcc_cv_target_dl_iterate_phdr=unknown
27015 case "$target" in
27016 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27017 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27018 # libdl there, both complicating its use and breaking compatibility
27019 # between Solaris 10 updates.
27020 *-*-solaris2.1[1-9]*)
27021 # <link.h> needs both a dl_iterate_phdr declaration and support for
27022 # compilation with largefile support.
27023 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27024 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27025 gcc_cv_target_dl_iterate_phdr=yes
27026 else
27027 gcc_cv_target_dl_iterate_phdr=no
27030 esac
27032 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27034 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27038 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27040 # Find out what GC implementation we want, or may, use.
27042 # Check whether --with-gc was given.
27043 if test "${with_gc+set}" = set; then :
27044 withval=$with_gc; case "$withval" in
27045 page)
27046 GGC=ggc-$withval
27048 zone)
27049 GGC=ggc-$withval
27051 $as_echo "#define GGC_ZONE 1" >>confdefs.h
27055 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
27057 esac
27058 else
27059 GGC=ggc-page
27063 echo "Using $GGC for garbage collection."
27065 # Libraries to use on the host. This will normally be set by the top
27066 # level Makefile. Here we simply capture the value for our Makefile.
27067 if test -z "${HOST_LIBS+set}"; then
27068 HOST_LIBS=
27072 # Use the system's zlib library.
27073 zlibdir=-L../zlib
27074 zlibinc="-I\$(srcdir)/../zlib"
27076 # Check whether --with-system-zlib was given.
27077 if test "${with_system_zlib+set}" = set; then :
27078 withval=$with_system_zlib; zlibdir=
27079 zlibinc=
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27088 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27089 # Check whether --enable-maintainer-mode was given.
27090 if test "${enable_maintainer_mode+set}" = set; then :
27091 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27092 else
27093 maintainer_mode=no
27097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27098 $as_echo "$maintainer_mode" >&6; }
27100 if test "$maintainer_mode" = "yes"; then
27101 MAINT=''
27102 else
27103 MAINT='#'
27106 # --------------
27107 # Language hooks
27108 # --------------
27110 # Make empty files to contain the specs and options for each language.
27111 # Then add #include lines to for a compiler that has specs and/or options.
27113 subdirs=
27114 lang_opt_files=
27115 lang_specs_files=
27116 lang_tree_files=
27117 # These (without "all_") are set in each config-lang.in.
27118 # `language' must be a single word so is spelled singularly.
27119 all_languages=
27120 all_compilers=
27121 all_outputs='Makefile'
27122 # List of language makefile fragments.
27123 all_lang_makefrags=
27124 # Additional files for gengtype
27125 all_gtfiles="$target_gtfiles"
27127 # These are the languages that are set in --enable-languages,
27128 # and are available in the GCC tree.
27129 all_selected_languages=
27131 # Add the language fragments.
27132 # Languages are added via two mechanisms. Some information must be
27133 # recorded in makefile variables, these are defined in config-lang.in.
27134 # We accumulate them and plug them into the main Makefile.
27135 # The other mechanism is a set of hooks for each of the main targets
27136 # like `clean', `install', etc.
27138 language_hooks="Make-hooks"
27140 for lang in ${srcdir}/*/config-lang.in
27142 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27144 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27145 if test "x$lang_alias" = x
27146 then
27147 echo "$lang doesn't set \$language." 1>&2
27148 exit 1
27150 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27151 subdirs="$subdirs $subdir"
27153 # $gcc_subdir is where the gcc integration files are to be found
27154 # for a language, both for internal compiler purposes (compiler
27155 # sources implementing front-end to GCC tree converters), and for
27156 # build infrastructure purposes (Make-lang.in, etc.)
27158 # This will be <subdir> (relative to $srcdir) if a line like
27159 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27160 # is found in <langdir>/config-lang.in, and will remain <langdir>
27161 # otherwise.
27163 # Except for the language alias (fetched above), the regular
27164 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27165 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27166 # only this and the language alias.
27168 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27169 if [ "$gcc_subdir" = "" ]; then
27170 gcc_subdir="$subdir"
27173 case ",$enable_languages," in
27174 *,$lang_alias,*)
27175 all_selected_languages="$all_selected_languages $lang_alias"
27176 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27177 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27180 esac
27182 language=
27183 boot_language=
27184 compilers=
27185 outputs=
27186 gtfiles=
27187 subdir_requires=
27188 . ${srcdir}/$gcc_subdir/config-lang.in
27189 if test "x$language" = x
27190 then
27191 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27192 exit 1
27195 ok=:
27196 case ",$enable_languages," in
27197 *,$lang_alias,*) ;;
27199 for i in $subdir_requires; do
27200 test -f "${srcdir}/$i/config-lang.in" && continue
27201 ok=false
27202 break
27203 done
27205 esac
27206 $ok || continue
27208 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27209 if test -f $srcdir/$gcc_subdir/lang.opt; then
27210 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27211 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27213 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27214 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27216 all_languages="$all_languages $language"
27217 all_compilers="$all_compilers $compilers"
27218 all_outputs="$all_outputs $outputs"
27219 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27220 case ",$enable_languages," in
27221 *,lto,*)
27223 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27225 enable_lto=yes
27228 *) ;;
27229 esac
27230 done
27232 # Pick up gtfiles for c
27233 gtfiles=
27234 . ${srcdir}/c-config-lang.in
27235 all_gtfiles="$all_gtfiles [c] $gtfiles"
27237 check_languages=
27238 for language in $all_selected_languages
27240 check_languages="$check_languages check-$language"
27241 done
27243 # We link each language in with a set of hooks, reached indirectly via
27244 # lang.${target}. Only do so for selected languages.
27246 rm -f Make-hooks
27247 touch Make-hooks
27248 target_list="all.cross start.encap rest.encap tags \
27249 install-common install-man install-info install-pdf install-html dvi \
27250 pdf html uninstall info man srcextra srcman srcinfo \
27251 mostlyclean clean distclean maintainer-clean install-plugin"
27253 for t in $target_list
27256 for lang in $all_selected_languages
27258 x="$x $lang.$t"
27259 done
27260 echo "lang.$t: $x" >> Make-hooks
27261 done
27263 # --------
27264 # Option include files
27265 # --------
27267 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27268 option_includes="option-includes.mk"
27271 # --------
27272 # UNSORTED
27273 # --------
27275 # Create .gdbinit.
27277 echo "dir ." > .gdbinit
27278 echo "dir ${srcdir}" >> .gdbinit
27279 if test x$gdb_needs_out_file_path = xyes
27280 then
27281 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27283 if test "x$subdirs" != x; then
27284 for s in $subdirs
27286 echo "dir ${srcdir}/$s" >> .gdbinit
27287 done
27289 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27291 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27295 # Find a directory in which to install a shared libgcc.
27297 # Check whether --enable-version-specific-runtime-libs was given.
27298 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27299 enableval=$enable_version_specific_runtime_libs;
27303 # Substitute configuration variables
27366 # Echo link setup.
27367 if test x${build} = x${host} ; then
27368 if test x${host} = x${target} ; then
27369 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27370 else
27371 echo "Links are now set up to build a cross-compiler" 1>&2
27372 echo " from ${host} to ${target}." 1>&2
27374 else
27375 if test x${host} = x${target} ; then
27376 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27377 echo " for ${target}." 1>&2
27378 else
27379 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27380 echo " from ${host} to ${target}." 1>&2
27392 if test "x${CLOOGLIBS}" != "x" ; then
27394 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27398 # Check for plugin support
27399 # Check whether --enable-plugin was given.
27400 if test "${enable_plugin+set}" = set; then :
27401 enableval=$enable_plugin; enable_plugin=$enableval
27402 else
27403 enable_plugin=yes; default_plugin=yes
27407 pluginlibs=
27409 case "${host}" in
27410 *-*-darwin*)
27411 if test x$build = x$host; then
27412 export_sym_check="nm${exeext} -g"
27413 elif test x$host = x$target; then
27414 export_sym_check="$gcc_cv_nm -g"
27415 else
27416 export_sym_check=
27420 if test x$build = x$host; then
27421 export_sym_check="objdump${exeext} -T"
27422 elif test x$host = x$target; then
27423 export_sym_check="$gcc_cv_objdump -T"
27424 else
27425 export_sym_check=
27428 esac
27430 if test x"$enable_plugin" = x"yes"; then
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27433 $as_echo_n "checking for exported symbols... " >&6; }
27434 if test "x$export_sym_check" != x; then
27435 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27436 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27437 if $export_sym_check conftest | grep foobar > /dev/null; then
27438 : # No need to use a flag
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27440 $as_echo "yes" >&6; }
27441 else
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27443 $as_echo "yes" >&6; }
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27445 $as_echo_n "checking for -rdynamic... " >&6; }
27446 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27447 if $export_sym_check conftest | grep foobar > /dev/null; then
27448 plugin_rdynamic=yes
27449 pluginlibs="-rdynamic"
27450 else
27451 plugin_rdynamic=no
27452 enable_plugin=no
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27455 $as_echo "$plugin_rdynamic" >&6; }
27457 else
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27459 $as_echo "unable to check" >&6; }
27462 # Check -ldl
27463 saved_LIBS="$LIBS"
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27465 $as_echo_n "checking for library containing dlopen... " >&6; }
27466 if test "${ac_cv_search_dlopen+set}" = set; then :
27467 $as_echo_n "(cached) " >&6
27468 else
27469 ac_func_search_save_LIBS=$LIBS
27470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27471 /* end confdefs.h. */
27473 /* Override any GCC internal prototype to avoid an error.
27474 Use char because int might match the return type of a GCC
27475 builtin and then its argument prototype would still apply. */
27476 #ifdef __cplusplus
27477 extern "C"
27478 #endif
27479 char dlopen ();
27481 main ()
27483 return dlopen ();
27485 return 0;
27487 _ACEOF
27488 for ac_lib in '' dl; do
27489 if test -z "$ac_lib"; then
27490 ac_res="none required"
27491 else
27492 ac_res=-l$ac_lib
27493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27495 if ac_fn_c_try_link "$LINENO"; then :
27496 ac_cv_search_dlopen=$ac_res
27498 rm -f core conftest.err conftest.$ac_objext \
27499 conftest$ac_exeext
27500 if test "${ac_cv_search_dlopen+set}" = set; then :
27501 break
27503 done
27504 if test "${ac_cv_search_dlopen+set}" = set; then :
27506 else
27507 ac_cv_search_dlopen=no
27509 rm conftest.$ac_ext
27510 LIBS=$ac_func_search_save_LIBS
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27513 $as_echo "$ac_cv_search_dlopen" >&6; }
27514 ac_res=$ac_cv_search_dlopen
27515 if test "$ac_res" != no; then :
27516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27520 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27521 pluginlibs="$pluginlibs -ldl"
27523 LIBS="$saved_LIBS"
27525 # Check that we can build shared objects with -fPIC -shared
27526 saved_LDFLAGS="$LDFLAGS"
27527 saved_CFLAGS="$CFLAGS"
27528 case "${host}" in
27529 *-*-darwin*)
27530 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27531 CFLAGS="$CFLAGS -fPIC"
27532 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27535 CFLAGS="$CFLAGS -fPIC"
27536 LDFLAGS="$LDFLAGS -fPIC -shared"
27538 esac
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27540 $as_echo_n "checking for -fPIC -shared... " >&6; }
27541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27542 /* end confdefs.h. */
27543 extern int X;
27545 main ()
27547 return X == 0;
27549 return 0;
27551 _ACEOF
27552 if ac_fn_c_try_link "$LINENO"; then :
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27554 $as_echo "yes" >&6; }; have_pic_shared=yes
27555 else
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27557 $as_echo "no" >&6; }; have_pic_shared=no
27559 rm -f core conftest.err conftest.$ac_objext \
27560 conftest$ac_exeext conftest.$ac_ext
27561 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27562 pluginlibs=
27563 enable_plugin=no
27565 LDFLAGS="$saved_LDFLAGS"
27566 CFLAGS="$saved_CFLAGS"
27568 # If plugin support had been requested but not available, fail.
27569 if test x"$enable_plugin" = x"no" ; then
27570 if test x"$default_plugin" != x"yes"; then
27571 as_fn_error "
27572 Building GCC with plugin support requires a host that supports
27573 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27580 if test x"$enable_plugin" = x"yes"; then
27582 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27587 # Check whether --enable-libquadmath-support was given.
27588 if test "${enable_libquadmath_support+set}" = set; then :
27589 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27590 else
27591 ENABLE_LIBQUADMATH_SUPPORT=yes
27594 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27596 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27601 # Specify what hash style to use by default.
27603 # Check whether --with-linker-hash-style was given.
27604 if test "${with_linker_hash_style+set}" = set; then :
27605 withval=$with_linker_hash_style; case x"$withval" in
27606 xsysv)
27607 LINKER_HASH_STYLE=sysv
27609 xgnu)
27610 LINKER_HASH_STYLE=gnu
27612 xboth)
27613 LINKER_HASH_STYLE=both
27616 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27618 esac
27619 else
27620 LINKER_HASH_STYLE=''
27623 if test x"${LINKER_HASH_STYLE}" != x; then
27625 cat >>confdefs.h <<_ACEOF
27626 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27627 _ACEOF
27631 # Configure the subdirectories
27632 # AC_CONFIG_SUBDIRS($subdirs)
27634 # Create the Makefile
27635 # and configure language subdirectories
27636 ac_config_files="$ac_config_files $all_outputs"
27639 ac_config_commands="$ac_config_commands default"
27641 cat >confcache <<\_ACEOF
27642 # This file is a shell script that caches the results of configure
27643 # tests run on this system so they can be shared between configure
27644 # scripts and configure runs, see configure's option --config-cache.
27645 # It is not useful on other systems. If it contains results you don't
27646 # want to keep, you may remove or edit it.
27648 # config.status only pays attention to the cache file if you give it
27649 # the --recheck option to rerun configure.
27651 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27652 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27653 # following values.
27655 _ACEOF
27657 # The following way of writing the cache mishandles newlines in values,
27658 # but we know of no workaround that is simple, portable, and efficient.
27659 # So, we kill variables containing newlines.
27660 # Ultrix sh set writes to stderr and can't be redirected directly,
27661 # and sets the high bit in the cache file unless we assign to the vars.
27663 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27664 eval ac_val=\$$ac_var
27665 case $ac_val in #(
27666 *${as_nl}*)
27667 case $ac_var in #(
27668 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27669 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27670 esac
27671 case $ac_var in #(
27672 _ | IFS | as_nl) ;; #(
27673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27674 *) { eval $ac_var=; unset $ac_var;} ;;
27675 esac ;;
27676 esac
27677 done
27679 (set) 2>&1 |
27680 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27681 *${as_nl}ac_space=\ *)
27682 # `set' does not quote correctly, so add quotes: double-quote
27683 # substitution turns \\\\ into \\, and sed turns \\ into \.
27684 sed -n \
27685 "s/'/'\\\\''/g;
27686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27687 ;; #(
27689 # `set' quotes correctly as required by POSIX, so do not add quotes.
27690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27692 esac |
27693 sort
27695 sed '
27696 /^ac_cv_env_/b end
27697 t clear
27698 :clear
27699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27700 t end
27701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27702 :end' >>confcache
27703 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27704 if test -w "$cache_file"; then
27705 test "x$cache_file" != "x/dev/null" &&
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27707 $as_echo "$as_me: updating cache $cache_file" >&6;}
27708 cat confcache >$cache_file
27709 else
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27711 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27714 rm -f confcache
27716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27717 # Let make expand exec_prefix.
27718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27720 DEFS=-DHAVE_CONFIG_H
27722 ac_libobjs=
27723 ac_ltlibobjs=
27724 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27725 # 1. Remove the extension, and $U if already installed.
27726 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27727 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27728 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27729 # will be set to the directory where LIBOBJS objects are built.
27730 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27731 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27732 done
27733 LIBOBJS=$ac_libobjs
27735 LTLIBOBJS=$ac_ltlibobjs
27740 : ${CONFIG_STATUS=./config.status}
27741 ac_write_fail=0
27742 ac_clean_files_save=$ac_clean_files
27743 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27745 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27746 as_write_fail=0
27747 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27748 #! $SHELL
27749 # Generated by $as_me.
27750 # Run this file to recreate the current configuration.
27751 # Compiler output produced by configure, useful for debugging
27752 # configure, is in config.log if it exists.
27754 debug=false
27755 ac_cs_recheck=false
27756 ac_cs_silent=false
27758 SHELL=\${CONFIG_SHELL-$SHELL}
27759 export SHELL
27760 _ASEOF
27761 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27762 ## -------------------- ##
27763 ## M4sh Initialization. ##
27764 ## -------------------- ##
27766 # Be more Bourne compatible
27767 DUALCASE=1; export DUALCASE # for MKS sh
27768 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27769 emulate sh
27770 NULLCMD=:
27771 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27772 # is contrary to our usage. Disable this feature.
27773 alias -g '${1+"$@"}'='"$@"'
27774 setopt NO_GLOB_SUBST
27775 else
27776 case `(set -o) 2>/dev/null` in #(
27777 *posix*) :
27778 set -o posix ;; #(
27779 *) :
27781 esac
27785 as_nl='
27787 export as_nl
27788 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27789 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27790 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27791 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27792 # Prefer a ksh shell builtin over an external printf program on Solaris,
27793 # but without wasting forks for bash or zsh.
27794 if test -z "$BASH_VERSION$ZSH_VERSION" \
27795 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27796 as_echo='print -r --'
27797 as_echo_n='print -rn --'
27798 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27799 as_echo='printf %s\n'
27800 as_echo_n='printf %s'
27801 else
27802 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27803 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27804 as_echo_n='/usr/ucb/echo -n'
27805 else
27806 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27807 as_echo_n_body='eval
27808 arg=$1;
27809 case $arg in #(
27810 *"$as_nl"*)
27811 expr "X$arg" : "X\\(.*\\)$as_nl";
27812 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27813 esac;
27814 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27816 export as_echo_n_body
27817 as_echo_n='sh -c $as_echo_n_body as_echo'
27819 export as_echo_body
27820 as_echo='sh -c $as_echo_body as_echo'
27823 # The user is always right.
27824 if test "${PATH_SEPARATOR+set}" != set; then
27825 PATH_SEPARATOR=:
27826 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27827 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27828 PATH_SEPARATOR=';'
27833 # IFS
27834 # We need space, tab and new line, in precisely that order. Quoting is
27835 # there to prevent editors from complaining about space-tab.
27836 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27837 # splitting by setting IFS to empty value.)
27838 IFS=" "" $as_nl"
27840 # Find who we are. Look in the path if we contain no directory separator.
27841 case $0 in #((
27842 *[\\/]* ) as_myself=$0 ;;
27843 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27844 for as_dir in $PATH
27846 IFS=$as_save_IFS
27847 test -z "$as_dir" && as_dir=.
27848 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27849 done
27850 IFS=$as_save_IFS
27853 esac
27854 # We did not find ourselves, most probably we were run as `sh COMMAND'
27855 # in which case we are not to be found in the path.
27856 if test "x$as_myself" = x; then
27857 as_myself=$0
27859 if test ! -f "$as_myself"; then
27860 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27861 exit 1
27864 # Unset variables that we do not need and which cause bugs (e.g. in
27865 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27866 # suppresses any "Segmentation fault" message there. '((' could
27867 # trigger a bug in pdksh 5.2.14.
27868 for as_var in BASH_ENV ENV MAIL MAILPATH
27869 do eval test x\${$as_var+set} = xset \
27870 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27871 done
27872 PS1='$ '
27873 PS2='> '
27874 PS4='+ '
27876 # NLS nuisances.
27877 LC_ALL=C
27878 export LC_ALL
27879 LANGUAGE=C
27880 export LANGUAGE
27882 # CDPATH.
27883 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27886 # as_fn_error ERROR [LINENO LOG_FD]
27887 # ---------------------------------
27888 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27889 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27890 # script with status $?, using 1 if that was 0.
27891 as_fn_error ()
27893 as_status=$?; test $as_status -eq 0 && as_status=1
27894 if test "$3"; then
27895 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27896 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27898 $as_echo "$as_me: error: $1" >&2
27899 as_fn_exit $as_status
27900 } # as_fn_error
27903 # as_fn_set_status STATUS
27904 # -----------------------
27905 # Set $? to STATUS, without forking.
27906 as_fn_set_status ()
27908 return $1
27909 } # as_fn_set_status
27911 # as_fn_exit STATUS
27912 # -----------------
27913 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27914 as_fn_exit ()
27916 set +e
27917 as_fn_set_status $1
27918 exit $1
27919 } # as_fn_exit
27921 # as_fn_unset VAR
27922 # ---------------
27923 # Portably unset VAR.
27924 as_fn_unset ()
27926 { eval $1=; unset $1;}
27928 as_unset=as_fn_unset
27929 # as_fn_append VAR VALUE
27930 # ----------------------
27931 # Append the text in VALUE to the end of the definition contained in VAR. Take
27932 # advantage of any shell optimizations that allow amortized linear growth over
27933 # repeated appends, instead of the typical quadratic growth present in naive
27934 # implementations.
27935 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27936 eval 'as_fn_append ()
27938 eval $1+=\$2
27940 else
27941 as_fn_append ()
27943 eval $1=\$$1\$2
27945 fi # as_fn_append
27947 # as_fn_arith ARG...
27948 # ------------------
27949 # Perform arithmetic evaluation on the ARGs, and store the result in the
27950 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27951 # must be portable across $(()) and expr.
27952 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27953 eval 'as_fn_arith ()
27955 as_val=$(( $* ))
27957 else
27958 as_fn_arith ()
27960 as_val=`expr "$@" || test $? -eq 1`
27962 fi # as_fn_arith
27965 if expr a : '\(a\)' >/dev/null 2>&1 &&
27966 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27967 as_expr=expr
27968 else
27969 as_expr=false
27972 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27973 as_basename=basename
27974 else
27975 as_basename=false
27978 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27979 as_dirname=dirname
27980 else
27981 as_dirname=false
27984 as_me=`$as_basename -- "$0" ||
27985 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27986 X"$0" : 'X\(//\)$' \| \
27987 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27988 $as_echo X/"$0" |
27989 sed '/^.*\/\([^/][^/]*\)\/*$/{
27990 s//\1/
27993 /^X\/\(\/\/\)$/{
27994 s//\1/
27997 /^X\/\(\/\).*/{
27998 s//\1/
28001 s/.*/./; q'`
28003 # Avoid depending upon Character Ranges.
28004 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28005 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28006 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28007 as_cr_digits='0123456789'
28008 as_cr_alnum=$as_cr_Letters$as_cr_digits
28010 ECHO_C= ECHO_N= ECHO_T=
28011 case `echo -n x` in #(((((
28012 -n*)
28013 case `echo 'xy\c'` in
28014 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28015 xy) ECHO_C='\c';;
28016 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28017 ECHO_T=' ';;
28018 esac;;
28020 ECHO_N='-n';;
28021 esac
28023 rm -f conf$$ conf$$.exe conf$$.file
28024 if test -d conf$$.dir; then
28025 rm -f conf$$.dir/conf$$.file
28026 else
28027 rm -f conf$$.dir
28028 mkdir conf$$.dir 2>/dev/null
28030 if (echo >conf$$.file) 2>/dev/null; then
28031 if ln -s conf$$.file conf$$ 2>/dev/null; then
28032 as_ln_s='ln -s'
28033 # ... but there are two gotchas:
28034 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28035 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28036 # In both cases, we have to default to `cp -p'.
28037 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28038 as_ln_s='cp -p'
28039 elif ln conf$$.file conf$$ 2>/dev/null; then
28040 as_ln_s=ln
28041 else
28042 as_ln_s='cp -p'
28044 else
28045 as_ln_s='cp -p'
28047 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28048 rmdir conf$$.dir 2>/dev/null
28051 # as_fn_mkdir_p
28052 # -------------
28053 # Create "$as_dir" as a directory, including parents if necessary.
28054 as_fn_mkdir_p ()
28057 case $as_dir in #(
28058 -*) as_dir=./$as_dir;;
28059 esac
28060 test -d "$as_dir" || eval $as_mkdir_p || {
28061 as_dirs=
28062 while :; do
28063 case $as_dir in #(
28064 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28065 *) as_qdir=$as_dir;;
28066 esac
28067 as_dirs="'$as_qdir' $as_dirs"
28068 as_dir=`$as_dirname -- "$as_dir" ||
28069 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28070 X"$as_dir" : 'X\(//\)[^/]' \| \
28071 X"$as_dir" : 'X\(//\)$' \| \
28072 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28073 $as_echo X"$as_dir" |
28074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28075 s//\1/
28078 /^X\(\/\/\)[^/].*/{
28079 s//\1/
28082 /^X\(\/\/\)$/{
28083 s//\1/
28086 /^X\(\/\).*/{
28087 s//\1/
28090 s/.*/./; q'`
28091 test -d "$as_dir" && break
28092 done
28093 test -z "$as_dirs" || eval "mkdir $as_dirs"
28094 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28097 } # as_fn_mkdir_p
28098 if mkdir -p . 2>/dev/null; then
28099 as_mkdir_p='mkdir -p "$as_dir"'
28100 else
28101 test -d ./-p && rmdir ./-p
28102 as_mkdir_p=false
28105 if test -x / >/dev/null 2>&1; then
28106 as_test_x='test -x'
28107 else
28108 if ls -dL / >/dev/null 2>&1; then
28109 as_ls_L_option=L
28110 else
28111 as_ls_L_option=
28113 as_test_x='
28114 eval sh -c '\''
28115 if test -d "$1"; then
28116 test -d "$1/.";
28117 else
28118 case $1 in #(
28119 -*)set "./$1";;
28120 esac;
28121 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28122 ???[sx]*):;;*)false;;esac;fi
28123 '\'' sh
28126 as_executable_p=$as_test_x
28128 # Sed expression to map a string onto a valid CPP name.
28129 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28131 # Sed expression to map a string onto a valid variable name.
28132 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28135 exec 6>&1
28136 ## ----------------------------------- ##
28137 ## Main body of $CONFIG_STATUS script. ##
28138 ## ----------------------------------- ##
28139 _ASEOF
28140 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28143 # Save the log message, to keep $0 and so on meaningful, and to
28144 # report actual input values of CONFIG_FILES etc. instead of their
28145 # values after options handling.
28146 ac_log="
28147 This file was extended by $as_me, which was
28148 generated by GNU Autoconf 2.64. Invocation command line was
28150 CONFIG_FILES = $CONFIG_FILES
28151 CONFIG_HEADERS = $CONFIG_HEADERS
28152 CONFIG_LINKS = $CONFIG_LINKS
28153 CONFIG_COMMANDS = $CONFIG_COMMANDS
28154 $ $0 $@
28156 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28159 _ACEOF
28161 case $ac_config_files in *"
28162 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28163 esac
28165 case $ac_config_headers in *"
28166 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28167 esac
28170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28171 # Files that config.status was made for.
28172 config_files="$ac_config_files"
28173 config_headers="$ac_config_headers"
28174 config_commands="$ac_config_commands"
28176 _ACEOF
28178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28179 ac_cs_usage="\
28180 \`$as_me' instantiates files and other configuration actions
28181 from templates according to the current configuration. Unless the files
28182 and actions are specified as TAGs, all are instantiated by default.
28184 Usage: $0 [OPTION]... [TAG]...
28186 -h, --help print this help, then exit
28187 -V, --version print version number and configuration settings, then exit
28188 -q, --quiet, --silent
28189 do not print progress messages
28190 -d, --debug don't remove temporary files
28191 --recheck update $as_me by reconfiguring in the same conditions
28192 --file=FILE[:TEMPLATE]
28193 instantiate the configuration file FILE
28194 --header=FILE[:TEMPLATE]
28195 instantiate the configuration header FILE
28197 Configuration files:
28198 $config_files
28200 Configuration headers:
28201 $config_headers
28203 Configuration commands:
28204 $config_commands
28206 Report bugs to the package provider."
28208 _ACEOF
28209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28210 ac_cs_version="\\
28211 config.status
28212 configured by $0, generated by GNU Autoconf 2.64,
28213 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28215 Copyright (C) 2009 Free Software Foundation, Inc.
28216 This config.status script is free software; the Free Software Foundation
28217 gives unlimited permission to copy, distribute and modify it."
28219 ac_pwd='$ac_pwd'
28220 srcdir='$srcdir'
28221 AWK='$AWK'
28222 test -n "\$AWK" || AWK=awk
28223 _ACEOF
28225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28226 # The default lists apply if the user does not specify any file.
28227 ac_need_defaults=:
28228 while test $# != 0
28230 case $1 in
28231 --*=*)
28232 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28233 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28234 ac_shift=:
28237 ac_option=$1
28238 ac_optarg=$2
28239 ac_shift=shift
28241 esac
28243 case $ac_option in
28244 # Handling of the options.
28245 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28246 ac_cs_recheck=: ;;
28247 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28248 $as_echo "$ac_cs_version"; exit ;;
28249 --debug | --debu | --deb | --de | --d | -d )
28250 debug=: ;;
28251 --file | --fil | --fi | --f )
28252 $ac_shift
28253 case $ac_optarg in
28254 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28255 esac
28256 as_fn_append CONFIG_FILES " '$ac_optarg'"
28257 ac_need_defaults=false;;
28258 --header | --heade | --head | --hea )
28259 $ac_shift
28260 case $ac_optarg in
28261 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28262 esac
28263 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28264 ac_need_defaults=false;;
28265 --he | --h)
28266 # Conflict between --help and --header
28267 as_fn_error "ambiguous option: \`$1'
28268 Try \`$0 --help' for more information.";;
28269 --help | --hel | -h )
28270 $as_echo "$ac_cs_usage"; exit ;;
28271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28272 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28273 ac_cs_silent=: ;;
28275 # This is an error.
28276 -*) as_fn_error "unrecognized option: \`$1'
28277 Try \`$0 --help' for more information." ;;
28279 *) as_fn_append ac_config_targets " $1"
28280 ac_need_defaults=false ;;
28282 esac
28283 shift
28284 done
28286 ac_configure_extra_args=
28288 if $ac_cs_silent; then
28289 exec 6>/dev/null
28290 ac_configure_extra_args="$ac_configure_extra_args --silent"
28293 _ACEOF
28294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28295 if \$ac_cs_recheck; then
28296 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28297 shift
28298 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28299 CONFIG_SHELL='$SHELL'
28300 export CONFIG_SHELL
28301 exec "\$@"
28304 _ACEOF
28305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28306 exec 5>>config.log
28308 echo
28309 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28310 ## Running $as_me. ##
28311 _ASBOX
28312 $as_echo "$ac_log"
28313 } >&5
28315 _ACEOF
28316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28318 # INIT-COMMANDS
28320 subdirs='$subdirs'
28322 _ACEOF
28324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28326 # Handling of arguments.
28327 for ac_config_target in $ac_config_targets
28329 case $ac_config_target in
28330 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28331 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28332 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28333 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28334 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28335 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28337 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28338 esac
28339 done
28342 # If the user did not use the arguments to specify the items to instantiate,
28343 # then the envvar interface is used. Set only those that are not.
28344 # We use the long form for the default assignment because of an extremely
28345 # bizarre bug on SunOS 4.1.3.
28346 if $ac_need_defaults; then
28347 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28348 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28349 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28352 # Have a temporary directory for convenience. Make it in the build tree
28353 # simply because there is no reason against having it here, and in addition,
28354 # creating and moving files from /tmp can sometimes cause problems.
28355 # Hook for its removal unless debugging.
28356 # Note that there is a small window in which the directory will not be cleaned:
28357 # after its creation but before its name has been assigned to `$tmp'.
28358 $debug ||
28360 tmp=
28361 trap 'exit_status=$?
28362 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28364 trap 'as_fn_exit 1' 1 2 13 15
28366 # Create a (secure) tmp directory for tmp files.
28369 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28370 test -n "$tmp" && test -d "$tmp"
28371 } ||
28373 tmp=./conf$$-$RANDOM
28374 (umask 077 && mkdir "$tmp")
28375 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28377 # Set up the scripts for CONFIG_FILES section.
28378 # No need to generate them if there are no CONFIG_FILES.
28379 # This happens for instance with `./config.status config.h'.
28380 if test -n "$CONFIG_FILES"; then
28382 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28383 ac_cs_awk_getline=:
28384 ac_cs_awk_pipe_init=
28385 ac_cs_awk_read_file='
28386 while ((getline aline < (F[key])) > 0)
28387 print(aline)
28388 close(F[key])'
28389 ac_cs_awk_pipe_fini=
28390 else
28391 ac_cs_awk_getline=false
28392 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28393 ac_cs_awk_read_file='
28394 print "|#_!!_#|"
28395 print "cat " F[key] " &&"
28396 '$ac_cs_awk_pipe_init
28397 # The final `:' finishes the AND list.
28398 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28400 ac_cr=`echo X | tr X '\015'`
28401 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28402 # But we know of no other shell where ac_cr would be empty at this
28403 # point, so we can use a bashism as a fallback.
28404 if test "x$ac_cr" = x; then
28405 eval ac_cr=\$\'\\r\'
28407 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28408 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28409 ac_cs_awk_cr='\r'
28410 else
28411 ac_cs_awk_cr=$ac_cr
28414 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28415 _ACEOF
28417 # Create commands to substitute file output variables.
28419 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28420 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28421 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28422 echo "_ACAWK" &&
28423 echo "_ACEOF"
28424 } >conf$$files.sh &&
28425 . ./conf$$files.sh ||
28426 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28427 rm -f conf$$files.sh
28430 echo "cat >conf$$subs.awk <<_ACEOF" &&
28431 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28432 echo "_ACEOF"
28433 } >conf$$subs.sh ||
28434 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28435 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28436 ac_delim='%!_!# '
28437 for ac_last_try in false false false false false :; do
28438 . ./conf$$subs.sh ||
28439 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28441 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28442 if test $ac_delim_n = $ac_delim_num; then
28443 break
28444 elif $ac_last_try; then
28445 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28446 else
28447 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28449 done
28450 rm -f conf$$subs.sh
28452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28453 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28454 _ACEOF
28455 sed -n '
28457 s/^/S["/; s/!.*/"]=/
28460 s/^[^!]*!//
28461 :repl
28462 t repl
28463 s/'"$ac_delim"'$//
28464 t delim
28467 s/\(.\{148\}\).*/\1/
28468 t more1
28469 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28472 b repl
28473 :more1
28474 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28477 s/.\{148\}//
28478 t nl
28479 :delim
28481 s/\(.\{148\}\).*/\1/
28482 t more2
28483 s/["\\]/\\&/g; s/^/"/; s/$/"/
28486 :more2
28487 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28490 s/.\{148\}//
28491 t delim
28492 ' <conf$$subs.awk | sed '
28493 /^[^""]/{
28495 s/\n//
28497 ' >>$CONFIG_STATUS || ac_write_fail=1
28498 rm -f conf$$subs.awk
28499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28500 _ACAWK
28501 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28502 for (key in S) S_is_set[key] = 1
28503 FS = "\a"
28504 \$ac_cs_awk_pipe_init
28507 line = $ 0
28508 nfields = split(line, field, "@")
28509 substed = 0
28510 len = length(field[1])
28511 for (i = 2; i < nfields; i++) {
28512 key = field[i]
28513 keylen = length(key)
28514 if (S_is_set[key]) {
28515 value = S[key]
28516 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28517 len += length(value) + length(field[++i])
28518 substed = 1
28519 } else
28520 len += 1 + keylen
28522 if (nfields == 3 && !substed) {
28523 key = field[2]
28524 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28525 \$ac_cs_awk_read_file
28526 next
28529 print line
28531 \$ac_cs_awk_pipe_fini
28532 _ACAWK
28533 _ACEOF
28534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28535 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28536 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28537 else
28539 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28540 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28541 _ACEOF
28543 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28544 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28545 # trailing colons and then remove the whole line if VPATH becomes empty
28546 # (actually we leave an empty line to preserve line numbers).
28547 if test "x$srcdir" = x.; then
28548 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28549 s/:*\$(srcdir):*/:/
28550 s/:*\${srcdir}:*/:/
28551 s/:*@srcdir@:*/:/
28552 s/^\([^=]*=[ ]*\):*/\1/
28553 s/:*$//
28554 s/^[^=]*=[ ]*$//
28558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28559 fi # test -n "$CONFIG_FILES"
28561 # Set up the scripts for CONFIG_HEADERS section.
28562 # No need to generate them if there are no CONFIG_HEADERS.
28563 # This happens for instance with `./config.status Makefile'.
28564 if test -n "$CONFIG_HEADERS"; then
28565 cat >"$tmp/defines.awk" <<\_ACAWK ||
28566 BEGIN {
28567 _ACEOF
28569 # Transform confdefs.h into an awk script `defines.awk', embedded as
28570 # here-document in config.status, that substitutes the proper values into
28571 # config.h.in to produce config.h.
28573 # Create a delimiter string that does not exist in confdefs.h, to ease
28574 # handling of long lines.
28575 ac_delim='%!_!# '
28576 for ac_last_try in false false :; do
28577 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28578 if test -z "$ac_t"; then
28579 break
28580 elif $ac_last_try; then
28581 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28582 else
28583 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28585 done
28587 # For the awk script, D is an array of macro values keyed by name,
28588 # likewise P contains macro parameters if any. Preserve backslash
28589 # newline sequences.
28591 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28592 sed -n '
28593 s/.\{148\}/&'"$ac_delim"'/g
28594 t rset
28595 :rset
28596 s/^[ ]*#[ ]*define[ ][ ]*/ /
28597 t def
28599 :def
28600 s/\\$//
28601 t bsnl
28602 s/["\\]/\\&/g
28603 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28604 D["\1"]=" \3"/p
28605 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28607 :bsnl
28608 s/["\\]/\\&/g
28609 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28610 D["\1"]=" \3\\\\\\n"\\/p
28611 t cont
28612 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28613 t cont
28615 :cont
28617 s/.\{148\}/&'"$ac_delim"'/g
28618 t clear
28619 :clear
28620 s/\\$//
28621 t bsnlc
28622 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28624 :bsnlc
28625 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28626 b cont
28627 ' <confdefs.h | sed '
28628 s/'"$ac_delim"'/"\\\
28629 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28632 for (key in D) D_is_set[key] = 1
28633 FS = "\a"
28635 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28636 line = \$ 0
28637 split(line, arg, " ")
28638 if (arg[1] == "#") {
28639 defundef = arg[2]
28640 mac1 = arg[3]
28641 } else {
28642 defundef = substr(arg[1], 2)
28643 mac1 = arg[2]
28645 split(mac1, mac2, "(") #)
28646 macro = mac2[1]
28647 prefix = substr(line, 1, index(line, defundef) - 1)
28648 if (D_is_set[macro]) {
28649 # Preserve the white space surrounding the "#".
28650 print prefix "define", macro P[macro] D[macro]
28651 next
28652 } else {
28653 # Replace #undef with comments. This is necessary, for example,
28654 # in the case of _POSIX_SOURCE, which is predefined and required
28655 # on some systems where configure will not decide to define it.
28656 if (defundef == "undef") {
28657 print "/*", prefix defundef, macro, "*/"
28658 next
28662 { print }
28663 _ACAWK
28664 _ACEOF
28665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28666 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28667 fi # test -n "$CONFIG_HEADERS"
28670 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28671 shift
28672 for ac_tag
28674 case $ac_tag in
28675 :[FHLC]) ac_mode=$ac_tag; continue;;
28676 esac
28677 case $ac_mode$ac_tag in
28678 :[FHL]*:*);;
28679 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28680 :[FH]-) ac_tag=-:-;;
28681 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28682 esac
28683 ac_save_IFS=$IFS
28684 IFS=:
28685 set x $ac_tag
28686 IFS=$ac_save_IFS
28687 shift
28688 ac_file=$1
28689 shift
28691 case $ac_mode in
28692 :L) ac_source=$1;;
28693 :[FH])
28694 ac_file_inputs=
28695 for ac_f
28697 case $ac_f in
28698 -) ac_f="$tmp/stdin";;
28699 *) # Look for the file first in the build tree, then in the source tree
28700 # (if the path is not absolute). The absolute path cannot be DOS-style,
28701 # because $ac_f cannot contain `:'.
28702 test -f "$ac_f" ||
28703 case $ac_f in
28704 [\\/$]*) false;;
28705 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28706 esac ||
28707 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28708 esac
28709 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28710 as_fn_append ac_file_inputs " '$ac_f'"
28711 done
28713 # Let's still pretend it is `configure' which instantiates (i.e., don't
28714 # use $as_me), people would be surprised to read:
28715 # /* config.h. Generated by config.status. */
28716 configure_input='Generated from '`
28717 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28718 `' by configure.'
28719 if test x"$ac_file" != x-; then
28720 configure_input="$ac_file. $configure_input"
28721 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28722 $as_echo "$as_me: creating $ac_file" >&6;}
28724 # Neutralize special characters interpreted by sed in replacement strings.
28725 case $configure_input in #(
28726 *\&* | *\|* | *\\* )
28727 ac_sed_conf_input=`$as_echo "$configure_input" |
28728 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28729 *) ac_sed_conf_input=$configure_input;;
28730 esac
28732 case $ac_tag in
28733 *:-:* | *:-) cat >"$tmp/stdin" \
28734 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28735 esac
28737 esac
28739 ac_dir=`$as_dirname -- "$ac_file" ||
28740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28741 X"$ac_file" : 'X\(//\)[^/]' \| \
28742 X"$ac_file" : 'X\(//\)$' \| \
28743 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28744 $as_echo X"$ac_file" |
28745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28746 s//\1/
28749 /^X\(\/\/\)[^/].*/{
28750 s//\1/
28753 /^X\(\/\/\)$/{
28754 s//\1/
28757 /^X\(\/\).*/{
28758 s//\1/
28761 s/.*/./; q'`
28762 as_dir="$ac_dir"; as_fn_mkdir_p
28763 ac_builddir=.
28765 case "$ac_dir" in
28766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28768 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28769 # A ".." for each directory in $ac_dir_suffix.
28770 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28771 case $ac_top_builddir_sub in
28772 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28773 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28774 esac ;;
28775 esac
28776 ac_abs_top_builddir=$ac_pwd
28777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28778 # for backward compatibility:
28779 ac_top_builddir=$ac_top_build_prefix
28781 case $srcdir in
28782 .) # We are building in place.
28783 ac_srcdir=.
28784 ac_top_srcdir=$ac_top_builddir_sub
28785 ac_abs_top_srcdir=$ac_pwd ;;
28786 [\\/]* | ?:[\\/]* ) # Absolute name.
28787 ac_srcdir=$srcdir$ac_dir_suffix;
28788 ac_top_srcdir=$srcdir
28789 ac_abs_top_srcdir=$srcdir ;;
28790 *) # Relative name.
28791 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28792 ac_top_srcdir=$ac_top_build_prefix$srcdir
28793 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28794 esac
28795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28798 case $ac_mode in
28801 # CONFIG_FILE
28804 _ACEOF
28806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28807 # If the template does not know about datarootdir, expand it.
28808 # FIXME: This hack should be removed a few years after 2.60.
28809 ac_datarootdir_hack=; ac_datarootdir_seen=
28810 ac_sed_dataroot='
28811 /datarootdir/ {
28815 /@datadir@/p
28816 /@docdir@/p
28817 /@infodir@/p
28818 /@localedir@/p
28819 /@mandir@/p'
28820 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28821 *datarootdir*) ac_datarootdir_seen=yes;;
28822 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28824 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28825 _ACEOF
28826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28827 ac_datarootdir_hack='
28828 s&@datadir@&$datadir&g
28829 s&@docdir@&$docdir&g
28830 s&@infodir@&$infodir&g
28831 s&@localedir@&$localedir&g
28832 s&@mandir@&$mandir&g
28833 s&\\\${datarootdir}&$datarootdir&g' ;;
28834 esac
28835 _ACEOF
28837 # Neutralize VPATH when `$srcdir' = `.'.
28838 # Shell code in configure.ac might set extrasub.
28839 # FIXME: do we really want to maintain this feature?
28840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28841 ac_sed_extra="$ac_vpsub
28842 $extrasub
28843 _ACEOF
28844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28846 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28847 s|@configure_input@|$ac_sed_conf_input|;t t
28848 s&@top_builddir@&$ac_top_builddir_sub&;t t
28849 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28850 s&@srcdir@&$ac_srcdir&;t t
28851 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28852 s&@top_srcdir@&$ac_top_srcdir&;t t
28853 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28854 s&@builddir@&$ac_builddir&;t t
28855 s&@abs_builddir@&$ac_abs_builddir&;t t
28856 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28857 $ac_datarootdir_hack
28859 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28860 if $ac_cs_awk_getline; then
28861 $AWK -f "$tmp/subs.awk"
28862 else
28863 $AWK -f "$tmp/subs.awk" | $SHELL
28864 fi >$tmp/out \
28865 || as_fn_error "could not create $ac_file" "$LINENO" 5
28867 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28868 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28869 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28871 which seems to be undefined. Please make sure it is defined." >&5
28872 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28873 which seems to be undefined. Please make sure it is defined." >&2;}
28875 rm -f "$tmp/stdin"
28876 case $ac_file in
28877 -) cat "$tmp/out" && rm -f "$tmp/out";;
28878 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28879 esac \
28880 || as_fn_error "could not create $ac_file" "$LINENO" 5
28884 # CONFIG_HEADER
28886 if test x"$ac_file" != x-; then
28888 $as_echo "/* $configure_input */" \
28889 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28890 } >"$tmp/config.h" \
28891 || as_fn_error "could not create $ac_file" "$LINENO" 5
28892 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28894 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28895 else
28896 rm -f "$ac_file"
28897 mv "$tmp/config.h" "$ac_file" \
28898 || as_fn_error "could not create $ac_file" "$LINENO" 5
28900 else
28901 $as_echo "/* $configure_input */" \
28902 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28903 || as_fn_error "could not create -" "$LINENO" 5
28907 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28908 $as_echo "$as_me: executing $ac_file commands" >&6;}
28910 esac
28913 case $ac_file$ac_mode in
28914 "as":F) chmod +x as ;;
28915 "collect-ld":F) chmod +x collect-ld ;;
28916 "nm":F) chmod +x nm ;;
28917 "default":C)
28918 case ${CONFIG_HEADERS} in
28919 *auto-host.h:config.in*)
28920 echo > cstamp-h ;;
28921 esac
28922 # Make sure all the subdirs exist.
28923 for d in $subdirs doc build common c-family
28925 test -d $d || mkdir $d
28926 done
28929 esac
28930 done # for ac_tag
28933 as_fn_exit 0
28934 _ACEOF
28935 ac_clean_files=$ac_clean_files_save
28937 test $ac_write_fail = 0 ||
28938 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28941 # configure is writing to config.log, and then calls config.status.
28942 # config.status does its own redirection, appending to config.log.
28943 # Unfortunately, on DOS this fails, as config.log is still kept open
28944 # by configure, so config.status won't be able to write to it; its
28945 # output is simply discarded. So we exec the FD to /dev/null,
28946 # effectively closing config.log, so it can be properly (re)opened and
28947 # appended to by config.status. When coming back to configure, we
28948 # need to make the FD available again.
28949 if test "$no_create" != yes; then
28950 ac_cs_success=:
28951 ac_config_status_args=
28952 test "$silent" = yes &&
28953 ac_config_status_args="$ac_config_status_args --quiet"
28954 exec 5>/dev/null
28955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28956 exec 5>>config.log
28957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28958 # would make configure fail if this is the last instruction.
28959 $ac_cs_success || as_fn_exit $?
28961 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28963 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}